Predicting battery end of life from solar offgrid system field data using machine learning