{"title":"Wind power generation prediction using LSTM model optimized by sparrow search algorithm and firefly algorithm","authors":"Wenjing Zhang, Hongjing Yan, Lili Xiang, Linling Shao","doi":"10.1186/s42162-025-00492-x","DOIUrl":null,"url":null,"abstract":"<div><p>As an important renewable energy source, wind power generation is highly stochastic and uncertain due to various environmental factors affecting its output. To raise the accuracy of wind power generation prediction, a bidirectional long short-term memory network combination model based on sparrow search algorithm and firefly algorithm optimization is designed. The model first employs a bidirectional long short-term memory network to capture the long-term dependency features of time series, and uses random forests for nonlinear modeling and feature selection. Then, the sparrow search algorithm and firefly algorithm are combined to optimize the hyperparameter configuration, improving the predictive performance and global search ability of the model. The findings denote that the accuracy of the designed model reaches 98.5%, with a mean square error as low as 0.005 and a prediction time as short as 0.18 s. The simulation analysis results show that the predicted values of the developed model almost coincide with the actual values, with small errors. The research outcomes denote that the optimized model greatly raises the accuracy and efficiency of wind power generation prediction, and has good application prospects.</p></div>","PeriodicalId":538,"journal":{"name":"Energy Informatics","volume":"8 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2025-03-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://energyinformatics.springeropen.com/counter/pdf/10.1186/s42162-025-00492-x","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Energy Informatics","FirstCategoryId":"1085","ListUrlMain":"https://link.springer.com/article/10.1186/s42162-025-00492-x","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"Energy","Score":null,"Total":0}
引用次数: 0
Abstract
As an important renewable energy source, wind power generation is highly stochastic and uncertain due to various environmental factors affecting its output. To raise the accuracy of wind power generation prediction, a bidirectional long short-term memory network combination model based on sparrow search algorithm and firefly algorithm optimization is designed. The model first employs a bidirectional long short-term memory network to capture the long-term dependency features of time series, and uses random forests for nonlinear modeling and feature selection. Then, the sparrow search algorithm and firefly algorithm are combined to optimize the hyperparameter configuration, improving the predictive performance and global search ability of the model. The findings denote that the accuracy of the designed model reaches 98.5%, with a mean square error as low as 0.005 and a prediction time as short as 0.18 s. The simulation analysis results show that the predicted values of the developed model almost coincide with the actual values, with small errors. The research outcomes denote that the optimized model greatly raises the accuracy and efficiency of wind power generation prediction, and has good application prospects.