Alexander Micallef , Maurice Apap , John Licari , Cyril Spiteri Staines , Zhaoxia Xiao
{"title":"A comparative framework for evaluating machine learning models in forecasting electricity demand for port microgrids","authors":"Alexander Micallef , Maurice Apap , John Licari , Cyril Spiteri Staines , Zhaoxia Xiao","doi":"10.1016/j.egyai.2025.100494","DOIUrl":null,"url":null,"abstract":"<div><div>This study presents a framework for forecasting electricity demand in port microgrids using advanced machine learning models, including Random Forest, Least Squares Boosting Ensemble, and Gaussian Process Regression. These models were evaluated under different forecasting setups (fixed origin, expanding windows, and rolling windows) and compared against simpler baseline methods, such as Linear Regression and Naive models. The study assessed the effectiveness of machine learning models in handling dynamic electricity demand patterns in port environments and highlighted the advantages of data-driven models. Results indicate that the Random Forest (expanding window) model outperforms the other models, achieving a root mean square error of 1.1848 MW and a mean average percentage error of 7.2483 %. Gaussian Process Regression with Exponential kernel follows closely with a root mean square error of 1.1904 MW and a mean average percentage error of 7.5017 %. In contrast, the Naive Method (previous day) shows the poorest performance with a root mean square error of 4.5357 MW and a mean average percentage error of 18.1485 %. Partial Dependence Plots reveal that features such as weighted port calls play a significant role in improving prediction accuracy. These findings highlight the effectiveness of machine learning models in accurately forecasting port microgrid demand and optimizing energy management.</div></div>","PeriodicalId":34138,"journal":{"name":"Energy and AI","volume":"20 ","pages":"Article 100494"},"PeriodicalIF":9.6000,"publicationDate":"2025-03-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Energy and AI","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666546825000266","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
This study presents a framework for forecasting electricity demand in port microgrids using advanced machine learning models, including Random Forest, Least Squares Boosting Ensemble, and Gaussian Process Regression. These models were evaluated under different forecasting setups (fixed origin, expanding windows, and rolling windows) and compared against simpler baseline methods, such as Linear Regression and Naive models. The study assessed the effectiveness of machine learning models in handling dynamic electricity demand patterns in port environments and highlighted the advantages of data-driven models. Results indicate that the Random Forest (expanding window) model outperforms the other models, achieving a root mean square error of 1.1848 MW and a mean average percentage error of 7.2483 %. Gaussian Process Regression with Exponential kernel follows closely with a root mean square error of 1.1904 MW and a mean average percentage error of 7.5017 %. In contrast, the Naive Method (previous day) shows the poorest performance with a root mean square error of 4.5357 MW and a mean average percentage error of 18.1485 %. Partial Dependence Plots reveal that features such as weighted port calls play a significant role in improving prediction accuracy. These findings highlight the effectiveness of machine learning models in accurately forecasting port microgrid demand and optimizing energy management.