A measure of capacity of the battery responsive is generated responsive to a discharge of the battery. A prediction of service life is generated from the measure of capacity using a Kalman filter. Generation of a prediction of service life from the measure of capacity using a Kalman filter may be preceded by generating a set of measures of capacity of the battery corresponding to a series of discharges of the battery and generating a regression model, such as a straight-line model, that relates battery capacity to time based on the set of measures of battery capacity. Generating a prediction of service life from the measure of capacity using a Kalman filter may include initializing the Kalman filter responsive to the regression model meeting a predetermined criterion.
展开▼