Discover how a new algorithm, combining machine learning and traditional beam physics equations, can predict the shape of particle beams to create a detailed picture. This breakthrough promises to save researchers time and effort while giving them greater insight into the behaviour of these beams.