Digital twins and prognostic models deliver detailed insights into a battery’s behaviour and lifespan, and machine learning..