{"title":"利用遗传和贝叶斯优化算法优化长短期记忆网络,实现准确预测","authors":"M. Zulfiqar","doi":"10.1016/j.nxener.2025.100425","DOIUrl":null,"url":null,"abstract":"<div><div>Accurate load forecasting is crucial for effective grid management and strategic decision-making in the energy sector, particularly due to the inherent volatility and nonlinearity in load demand. This paper introduces a hybrid forecasting framework that combines advanced feature selection and Bayesian optimization (BO) to tune the long short-term memory (LSTM) model. The feature selection employs a genetic algorithm-based wrapper to systematically eliminate irrelevant and redundant features, enhancing computational efficiency and addressing dimensionality challenges. Unlike conventional approaches, the proposed framework uses BO for LSTM hyperparameter tuning, overcoming manual tuning limitations and reducing the risk of suboptimal performance. Integrating the search capabilities of the genetic algorithm with LSTM’s nonlinear modeling strengths and the optimization precision of BO, the framework achieves superior accuracy, enhanced stability, and accelerated convergence. The proposed model achieves a mean absolute percentage error of 0.5% by iteration 12, converging 20–40% faster than counterpart algorithms. Whereas, the other models exhibit slower convergences with an error of 1.4–1.6%. Statistical analysis validates the performance of the proposed algorithm marking it as a robust solution for dynamic forecasting, with precision and stability for real-world applications.</div></div>","PeriodicalId":100957,"journal":{"name":"Next Energy","volume":"9 ","pages":"Article 100425"},"PeriodicalIF":0.0000,"publicationDate":"2025-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Optimizing long short-term memory network with genetic and Bayesian optimization algorithms for accurate forecasting\",\"authors\":\"M. Zulfiqar\",\"doi\":\"10.1016/j.nxener.2025.100425\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Accurate load forecasting is crucial for effective grid management and strategic decision-making in the energy sector, particularly due to the inherent volatility and nonlinearity in load demand. This paper introduces a hybrid forecasting framework that combines advanced feature selection and Bayesian optimization (BO) to tune the long short-term memory (LSTM) model. The feature selection employs a genetic algorithm-based wrapper to systematically eliminate irrelevant and redundant features, enhancing computational efficiency and addressing dimensionality challenges. Unlike conventional approaches, the proposed framework uses BO for LSTM hyperparameter tuning, overcoming manual tuning limitations and reducing the risk of suboptimal performance. Integrating the search capabilities of the genetic algorithm with LSTM’s nonlinear modeling strengths and the optimization precision of BO, the framework achieves superior accuracy, enhanced stability, and accelerated convergence. The proposed model achieves a mean absolute percentage error of 0.5% by iteration 12, converging 20–40% faster than counterpart algorithms. Whereas, the other models exhibit slower convergences with an error of 1.4–1.6%. Statistical analysis validates the performance of the proposed algorithm marking it as a robust solution for dynamic forecasting, with precision and stability for real-world applications.</div></div>\",\"PeriodicalId\":100957,\"journal\":{\"name\":\"Next Energy\",\"volume\":\"9 \",\"pages\":\"Article 100425\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2025-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Next Energy\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2949821X25001887\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Next Energy","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2949821X25001887","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Optimizing long short-term memory network with genetic and Bayesian optimization algorithms for accurate forecasting
Accurate load forecasting is crucial for effective grid management and strategic decision-making in the energy sector, particularly due to the inherent volatility and nonlinearity in load demand. This paper introduces a hybrid forecasting framework that combines advanced feature selection and Bayesian optimization (BO) to tune the long short-term memory (LSTM) model. The feature selection employs a genetic algorithm-based wrapper to systematically eliminate irrelevant and redundant features, enhancing computational efficiency and addressing dimensionality challenges. Unlike conventional approaches, the proposed framework uses BO for LSTM hyperparameter tuning, overcoming manual tuning limitations and reducing the risk of suboptimal performance. Integrating the search capabilities of the genetic algorithm with LSTM’s nonlinear modeling strengths and the optimization precision of BO, the framework achieves superior accuracy, enhanced stability, and accelerated convergence. The proposed model achieves a mean absolute percentage error of 0.5% by iteration 12, converging 20–40% faster than counterpart algorithms. Whereas, the other models exhibit slower convergences with an error of 1.4–1.6%. Statistical analysis validates the performance of the proposed algorithm marking it as a robust solution for dynamic forecasting, with precision and stability for real-world applications.