Abstract Machine learning has emerged as a highly effective tool for addressing complex data problems, garnering significant attention in the field of equipment degradation and remaining service life prediction. Existing prediction models typically exhibit two primary shortcomings: on the one hand, the accuracy of life prediction reaches the desired level of precision while failing to achieve a sufficiently fast prediction speed, and on the other hand, generalization is not guaranteed while requiring the model to be robust. These two aspects present a significant challenge to the field of machine learning. In light of the aforementioned issues, we propose a prediction model based on the goose algorithm. Initially, we set the goose algorithm using adaptive initialization of the goose population to guarantee that the goose population is set at the appropriate interval, and we incorporate it into the extreme learning machine model through the improved goose algorithm. goose algorithm is used to predict the service life. Finally, we utilize different types of lithium batteries with varying operational conditions to conduct pertinent case studies to validate the proposed prediction model. The results demonstrated that the average accuracy was above 98% in all validated datasets. The shortest computation time was 0.19 s.