Data-driven prediction of battery cycle life before capacity degradation