Improved Bacterial Foraging Optimization Algorithm with Machine Learning-Driven Short-Term Electricity Load Forecasting: A Case Study in Peninsular Malaysia
Abstract
:1. Introduction
- Regarding Malaysia’s geography and environment, the correlation between weather variables and the load consumption that influences the forecasting process is analyzed using Pearson’s correlation coefficient method where the findings will influence the direction of the next generation research.
- A novel improved bacterial foraging optimization algorithm (IBFOA) is proposed to optimize the important parameters of the LSSVM model and enhance the forecasting accuracy of the actual electricity load demand in reflecting the sustainable power market in Malaysia.
- A full support validation accuracy measures are incorporated into the proposed model to evaluate performance of the LSSVM-IBFOA while giving such accurate load profile demand for the power network in Malaysia.
2. Review of Related Work
3. Methodology
3.1. Data Pre-Processing
3.1.1. Data Collection
3.1.2. Data Interpolation
3.1.3. Pearson Correlation Analysis
3.1.4. Data Division
3.1.5. Data Normalization
3.2. Architecture of DNN
3.3. Least Square Support Vector Machine (LSSVM)
3.4. Bacterial Foraging Optimization Algorithm
- Chemotaxis: It is a process by which bacteria navigate their environment in response to chemical gradients. This behavior allows them to locate favorable conditions, such as nutrient sources. Bacteria achieve chemotaxis through a series of short runs (swims) and tumbles. Flagellar rotation determines their movement: swimming in a defined direction or tumbling to explore new areas. A unit-length random direction vector as described in Equation (15) representing a tumble for the n-th bacterium at the t-th chemotactic step, r-th reproductive step, and e-th elimination dispersal step. This vector describes the direction change after a tumble.
- Reproduction: The reproduction step happens following a predefined number of chemotactic steps (Nc). This step promotes the propagation of “fitter” bacteria within the population. Bacteria with higher health values, typically determined by a fitness function have a greater chance of reproducing. Conversely, bacteria with lower health values will be eliminated. This mechanism ensures a constant population size while favoring individuals with better foraging abilities. The health value of the bacterium obtained as below:
- Elimination-dispersal: Elimination-dispersal simulates the dynamic nature of the bacterial environment, where local events can drastically affect bacterial populations. This process can either eliminate all bacteria in a local region or disperse them to new locations, potentially disrupting chemotaxis progress but also aiding in exploration by placing bacteria near potential food sources.
3.5. Proposed Improved Bacterial Foraging Optimization Algorithm
3.6. Forecasting Process by Hybrid LSSVM-IBFOA
3.7. Evaluation Metrics
4. Results and Discussion
4.1. Correlation Analysis
4.2. Case Study
Seasonality in Load
4.3. Load Forecasting Results
- Day type: Monday
- Day type: Tuesday, Wednesday, Thursday (Tuesday–Thursday)
- Day type: Friday
- Day type: Saturday
- Day type: Sunday
4.4. Algorithm Performance
5. Conclusions
- (a)
- Application for LSSVM-IBFOA for forecasting on a smaller load aggregation for residential and commercial buildings or considering specific electrical loads such as air-conditioning;
- (b)
- Perform forecasting analyses using two approaches: one incorporating weather data as input features, and another relying solely on historical load data during normal periods;
- (c)
- Inclusion of sensitivity analysis on the tuning parameters of the hybrid method;
- (d)
- Adding more experiments for calculation of speed and resources of the forecasting model.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
ANN | Artificial neural network |
ARIMA | Auto-regressive integrated moving average |
BFOA | Bacterial foraging optimization algorithm |
CDD | Cooling degree days |
CV-RMSE | Cross-validation root mean square error |
DNN | Deep neural network |
EMS | Energy management system |
GDP | Gross domestic product |
HDD | Heating degree days |
IBFOA | Improved bacterial foraging optimization algorithm |
LF | Load forecasting |
LSSVM | Least square support vector machine |
LSTM | Long short-term memory |
LTLF | Long term load forecasting |
MAE | Mean absolute error |
MAPE | Mean absolute percentage error |
MCO | Movement control order |
ML | Machine learning |
MSE | Mean square error |
MTLF | Medium term load forecasting |
NRMSE | Normalized root mean square error |
PCC | Pearson’s correlation coefficient |
R2 | Determination coefficient |
RE | Renewable energy |
RMSE | Root mean square error |
SARIMA | Seasonal auto-regressive integrated moving average |
STLF | Short-term load forecasting |
SVM | Support vector machine |
VSTLF | Very short-term load forecasting |
References
- Zulkifli, Z. Malaysia Country Report. In Proceedings of the 17th Asia Construct Conference, Seoul, Republic of Korea, 17 December 2021; pp. 170–190. [Google Scholar]
- IRENA. Malaysia Energy Transition Outlook; International Renewable Energy Agency: Abu Dhabi, United Arab Emirates, 2023; ISBN 978-92-9260-357-1. [Google Scholar]
- Aswanuwath, L.; Pannakkong, W.; Buddhakulsomsiri, J.; Karnjana, J. An Improved Hybrid Approach for Daily Electricity Peak Demand Forecasting during Disrupted Situations: A Case Study of COVID-19 Impact in Thailand. Energies 2023, 17, 78. [Google Scholar] [CrossRef]
- Mir, A.A.; Alghassab, M.; Ullah, K.; Khan, Z.A.; Lu, Y.; Imran, M. A review of electricity demand forecasting in low and middle income countries: The demand determinants and horizons. Sustainability 2020, 12, 5931. [Google Scholar] [CrossRef]
- Koukaras, P.; Bezas, N.; Gkaidatzis, P.; Ioannidis, D.; Tzovaras, D.; Tjortjis, C. Introducing a novel approach in one-step ahead energy load forecasting. Sustain. Comput. Inform. Syst. 2021, 32, 100616. [Google Scholar] [CrossRef]
- Moon, J.; Jung, S.; Rew, J.; Rho, S.; Hwang, E. Combination of short-term load forecasting models based on a stacking ensemble approach. Energy Build. 2020, 216, 109921. [Google Scholar] [CrossRef]
- Islam, B.U.; Rasheed, M.; Ahmed, S.F. Review of Short-Term Load Forecasting for Smart Grids Using Deep Neural Networks and Metaheuristic Methods. Math. Probl. Eng. 2022, 2022, 4049685. [Google Scholar] [CrossRef]
- Nti, I.K.; Teimeh, M.; Nyarko-Boateng, O.; Adekoya, A.F. Electricity load forecasting: A systematic review. J. Electr. Syst. Inf. Technol. 2020, 7, 13. [Google Scholar] [CrossRef]
- Hammad, M.A.; Jereb, B.; Rosi, B.; Dragan, D. Methods and Models for Electric Load Forecasting: A Comprehensive Review. Logist. Sustain. Transp. 2020, 11, 51–76. [Google Scholar] [CrossRef]
- Han, Y.; Xiong, H.; Wei, D. Short-term load forecasting of BP network based on bacterial foraging optimization. IOP Conf. Ser. Mater. Sci. Eng. 2019, 569, 052082. [Google Scholar] [CrossRef]
- Zhou, Z.; Wu, G.; Zhang, X. Short-term Load Forecasting Model Based on IBFO-BILSTM. IOP Conf. Ser. Earth Environ. Sci. 2020, 440, 032134. [Google Scholar] [CrossRef]
- Zhang, Y.; Wu, L.; Wang, S. Bacterial foraging optimization based neural network for short-term load forecasting. J. Comput. Inf. Syst. 2010, 6, 2099–2105. [Google Scholar]
- Pelekis, S.; Seisopoulos, I.-K.; Spiliotis, E.; Pountridis, T.; Karakolis, E.; Mouzakitis, S.; Askounis, D. A comparative assessment of deep learning models for day-ahead load forecasting: Investigating key accuracy drivers. Sustain. Energy Grids Netw. 2023, 36, 101171. [Google Scholar] [CrossRef]
- Luo, H.; Zhang, H.; Wang, J. Ensemble power load forecasting based on competitive-inhibition selection strategy and deep learning. Sustain. Energy Technol. Assess. 2022, 51, 101940. [Google Scholar] [CrossRef]
- Tarmanini, C.; Sarma, N.; Gezegin, C.; Ozgonenel, O. Short term load forecasting based on ARIMA and ANN approaches. Energy Rep. 2023, 9, 550–557. [Google Scholar] [CrossRef]
- Amjady, N.; Keynia, F. A new neural network approach to short term load forecasting of electrical power systems. Energies 2011, 4, 488–503. [Google Scholar] [CrossRef]
- Jawad, M.; Nadeem, M.S.A.; Shim, S.O.; Khan, I.R.; Shaheen, A.; Habib, N.; Hussain, L.; Aziz, W. Machine Learning Based Cost Effective Electricity Load Forecasting Model Using Correlated Meteorological Parameters. IEEE Access 2020, 8, 146847–146864. [Google Scholar] [CrossRef]
- Stamatellos, G.-T.L.F.; Stamatelos, T. Short-Term Load Forecasting of the Greek Electricity System. Appl. Sci. 2023, 13, 2719. [Google Scholar] [CrossRef]
- Ahmed, T.; Vu, D.H.; Muttaqi, K.M.; Agalgaonkar, A.P. Load forecasting under changing climatic conditions for the city of Sydney, Australia. Energy 2018, 142, 911–919. [Google Scholar] [CrossRef]
- Ahmad, T.; Chen, H.; Shair, J.; Xu, C. Deployment of data-mining short and medium-term horizon cooling load forecasting models for building energy optimization and management. Int. J. Refrig. 2019, 98, 399–409. [Google Scholar] [CrossRef]
- Wang, Y.; Chen, J.; Chen, X.; Zeng, X.; Kong, Y.; Sun, S.; Guo, Y.; Liu, Y. Short-term load forecasting for industrial customers based on TCN-LightGBM. IEEE Trans. Power Syst. 2021, 36, 1984–1997. [Google Scholar] [CrossRef]
- Yang, A.; Li, W.; Yang, X. Short-term electricity load forecasting based on feature selection and Least Squares Support Vector Machines. Knowl.-Based Syst. 2019, 163, 159–173. [Google Scholar] [CrossRef]
- Li, S.; Kong, X.; Yue, L.; Liu, C.; Khan, M.A.; Yang, Z.; Zhang, H. Short-term electrical load forecasting using hybrid model of manta ray foraging optimization and support vector regression. J. Clean. Prod. 2023, 388, 135856. [Google Scholar] [CrossRef]
- Chaianong, A.; Winzer, C.; Gellrich, M. Impacts of traffic data on short-term residential load forecasting before and during the COVID-19 pandemic. Energy Strateg. Rev. 2022, 43, 100895. [Google Scholar] [CrossRef]
- Yang, L.; Yang, S.; Li, S.; Zhang, R.; Liu, F.; Jiao, L. Coupled compressed sensing inspired sparse spatial-spectral LSSVM for hyperspectral image classification. Knowl.-Based Syst. 2015, 79, 80–89. [Google Scholar] [CrossRef]
- Ge, Q.; Guo, C.; Jiang, H.; Lu, Z.; Yao, G.; Zhang, J.; Hua, Q. Industrial Power Load Forecasting Method Based on Reinforcement Learning and PSO-LSSVM. IEEE Trans. Cybern. 2022, 52, 1112–1124. [Google Scholar] [CrossRef] [PubMed]
- Wang, G.; Wang, X.; Wang, Z.; Ma, C.; Song, Z. A VMD-CISSA-LSSVM Based Electricity Load Forecasting Model. Mathematics 2022, 10, 28. [Google Scholar] [CrossRef]
- Zhang, S.; Zhang, N.; Zhang, Z.; Chen, Y. Electric Power Load Forecasting Method Based on a Support Vector Machine Optimized by the Improved Seagull Optimization Algorithm. Energies 2022, 15, 9197. [Google Scholar] [CrossRef]
- Khan, B.; Redae, K.; Gidey, E.; Mahela, O.P.; Taha, I.B.M.; Hussien, M.G. Optimal integration of DSTATCOM using improved bacterial search algorithm for distribution network optimization. Alex. Eng. J. 2022, 61, 5539–5555. [Google Scholar] [CrossRef]
- Awad, H.; Hafez, A. Optimal operation of under-frequency load shedding relays by hybrid optimization of particle swarm and bacterial foraging algorithms. Alex. Eng. J. 2022, 61, 763–774. [Google Scholar] [CrossRef]
- Nguyen, H.M.V.; Phung, T.T.; Le, T.N.; Nguyen, N.A.; Nguyen, Q.T.; Nguyen, P.N. Using an improved Neural Network with Bacterial Foraging Optimization algorithm for Load Shedding. In Proceedings of the 2023 International Conference on System Science and Engineering (ICSSE), Ho Chi Minh, Vietnam, 27–28 July 2023; pp. 281–286. [Google Scholar] [CrossRef]
- Tounsi Fokui, W.S.; Saulo, M.J.; Ngoo, L. Optimal Placement of Electric Vehicle Charging Stations in a Distribution Network with Randomly Distributed Rooftop Photovoltaic Systems. IEEE Access 2021, 9, 132397–132411. [Google Scholar] [CrossRef]
- Panwar, A.; Sharma, G.; Nasiruddin, I.; Bansal, R.C. Frequency stabilization of hydro–hydro power system using hybrid bacteria foraging PSO with UPFC and HAE. Electr. Power Syst. Res. 2018, 161, 74–85. [Google Scholar] [CrossRef]
- Kumar, R.; Diwania, S.; Singh, R.; Ashfaq, H.; Khetrapal, P.; Singh, S. An intelligent Hybrid Wind–PV farm as a static compensator for overall stability and control of multimachine power system. ISA Trans. 2022, 123, 286–302. [Google Scholar] [CrossRef] [PubMed]
- Zadehbagheri, M.; Sutikno, T.; Kiani, M.J.; Yousefi, M. Designing a power system stabilizer using a hybrid algorithm by genetics and bacteria for the multi-machine power system. Bull. Electr. Eng. Inform. 2023, 12, 1318–1331. [Google Scholar] [CrossRef]
- Zhang, Y.; Lv, Y.; Zhou, Y. Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization. Biomimetics 2023, 8, 150. [Google Scholar] [CrossRef] [PubMed]
- de Moraes, C.H.V.; Boas, J.L.d.V.; Lambert-Torres, G.; de Andrade, G.C.C.; Costa, C.I.d.A. Intelligent Power Distribution Restoration Based on a Multi-Objective Bacterial Foraging Optimization Algorithm. Energies 2022, 15, 1445. [Google Scholar] [CrossRef]
- Chen, Y.; Xiao, C.; Yang, S.; Yang, Y.; Wang, W. Research on long term power load grey combination forecasting based on fuzzy support vector machine. Comput. Electr. Eng. 2024, 116, 109205. [Google Scholar] [CrossRef]
- Zhou, M.; Yu, J.; Wang, M.; Quan, W.; Bian, C. Research on the combined forecasting model of cooling load based on IVMD-WOA-LSSVM. Energy Build. 2024, 317, 114339. [Google Scholar] [CrossRef]
- Bakare, M.S.; Abdulkarim, A.; Shuaibu, A.N.; Muhamad, M.M. A hybrid long-term industrial electrical load forecasting model using optimized ANFIS with gene expression programming. Energy Rep. 2024, 11, 5831–5844. [Google Scholar] [CrossRef]
- Lotfipoor, A.; Patidar, S.; Jenkins, D.P. Deep neural network with empirical mode decomposition and Bayesian optimisation for residential load forecasting. Expert Syst. Appl. 2024, 237, 121355. [Google Scholar] [CrossRef]
- Jahani, A.; Zare, K.; Mohammad Khanli, L. Short-term load forecasting for microgrid energy management system using hybrid SPM-LSTM. Sustain. Cities Soc. 2023, 98, 104775. [Google Scholar] [CrossRef]
- Zhao, X.; Shen, B.; Lin, L.; Liu, D.; Yan, M.; Li, G. Residential Electricity Load Forecasting Based on Fuzzy Cluster Analysis and LSSVM with Optimization by the Fireworks Algorithm. Sustainability 2022, 14, 1312. [Google Scholar] [CrossRef]
- Li, J.; Lei, Y.; Yang, S. Mid-long term load forecasting model based on support vector machine optimized by improved sparrow search algorithm. Energy Rep. 2022, 8, 491–497. [Google Scholar] [CrossRef]
- Jiang, Y.; Huang, Q.; Zhang, K.; Lin, Z.; Zhang, T.; Hu, X.; Liu, S.; Jiang, C.; Yang, L.; Lin, Z. Medium-long term load forecasting method considering industry correlation for power management. Energy Rep. 2021, 7, 1231–1238. [Google Scholar] [CrossRef]
- Zhi, X.; Yuexin, S.; Jin, M.; Lujie, Z.; Zijian, D. Research on the Pearson correlation coefficient evaluation method of analog signal in the process of unit peak load regulation. In Proceedings of the 2017 13th IEEE International Conference on Electronic Measurement & Instruments (ICEMI), Yangzhou, China, 20–22 October 2017; pp. 522–527. [Google Scholar] [CrossRef]
- Sukarti, S.; Sulaima, M.F.; Kadir, A.F.A.; Shamsor, M.H.; Yao, S.W. Advancing industrial building energy measurement and verification (M&V) with deep learning: Evaluating data size and feature selection impact. Energy Build. 2024, 319, 114457. [Google Scholar] [CrossRef]
- Suykens, J.A.K.; Vandewalle, J. Least Squares Support Vector Machine Classifiers. Neural Process. Lett. 1999, 9, 293–300. [Google Scholar] [CrossRef]
- Gao, K.; Xu, X.; Jiao, S. Prediction and visualization analysis of drilling energy consumption based on mechanism and data hybrid drive. Energy 2022, 261, 125227. [Google Scholar] [CrossRef]
- Yuan, X.; Chen, C.; Yuan, Y.; Huang, Y.; Tan, Q. Short-term wind power prediction based on LSSVM-GSA model. Energy Convers. Manag. 2015, 101, 393–401. [Google Scholar] [CrossRef]
- Passino, K.M. Biomimicry of Bacterial Foraging for Distributed Optimization and Control. IEEE Control Syst. 2002, 22, 52–67. [Google Scholar] [CrossRef]
- Zhang, Y.; Lv, Y. Research on electrical load distribution using an improved bacterial foraging algorithm. Front. Energy Res. 2023, 11, 1103038. [Google Scholar] [CrossRef]
- Lee, C.Y.; Lee, Z.J.; Huang, J.Q.; Ye, F.L.; Yao, J.; Ning, Z.Y.; Meen, T.H. Hybrid algorithm based on simulated annealing and bacterial foraging optimization for mining imbalanced data. Sens. Mater. 2021, 33, 1297–1312. [Google Scholar] [CrossRef]
- Sharma, A. Adaptive bacterial foraging optimization based task scheduling in cloud computing. J. Green Eng. 2020, 10, 10189–10202. [Google Scholar]
- Mohammad, S.; Mat Jusof, M.F.; Mhd Rizal, N.A.; Abd Razak, A.A.; Nasir, A.N.K.; Ismail, R.M.T.R.; Ahmad, M.A. Sine based Bacterial Foraging Algorithm for a Dynamic Modelling of a Twin Rotor System. In Proceedings of the 2019 19th International Conference on Control, Automation and Systems (ICCAS), Jeju, Republic of Korea, 15–18 October 2019; pp. 131–136. [Google Scholar] [CrossRef]
- Ahmad, N.; Ghadi, Y.; Adnan, M.; Ali, M. Load Forecasting Techniques for Power System: Research Challenges and Survey. IEEE Access 2022, 10, 71054–71090. [Google Scholar] [CrossRef]
- Hong, T.; Fan, S. Probabilistic electric load forecasting: A tutorial review. Int. J. Forecast. 2016, 32, 914–938. [Google Scholar] [CrossRef]
- Vivas, E.; Allende-Cid, H.; Salas, R. A systematic review of statistical and machine learning methods for electrical power forecasting with reported mape score. Entropy 2020, 22, 1412. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.; Du, P.; Lu, H.; Yang, W.; Niu, T. An improved grey model optimized by multi-objective ant lion optimization algorithm for annual electricity consumption forecasting. Appl. Soft Comput. J. 2018, 72, 321–337. [Google Scholar] [CrossRef]
- Zhao, H.; Guo, S. An optimized grey model for annual power load forecasting. Energy 2016, 107, 272–286. [Google Scholar] [CrossRef]
- Sekhar, C.; Dahiya, R. Robust framework based on hybrid deep learning approach for short term load forecasting of building electricity demand. Energy 2023, 268, 126660. [Google Scholar] [CrossRef]
- Moradzadeh, A.; Zakeri, S.; Shoaran, M.; Mohammadi-Ivatloo, B.; Mohammadi, F. Short-term load forecasting of microgrid via hybrid support vector regression and long short-term memory algorithms. Sustainability 2020, 12, 7076. [Google Scholar] [CrossRef]
- Fan, G.F.; Zhang, L.Z.; Yu, M.; Hong, W.C.; Dong, S.Q. Applications of random forest in multivariable response surface for short-term load forecasting. Int. J. Electr. Power Energy Syst. 2022, 139, 108073. [Google Scholar] [CrossRef]
- Tsalikidis, N.; Mystakidis, A.; Tjortjis, C.; Koukaras, P.; Ioannidis, D. Energy load forecasting: One-step ahead hybrid model utilizing ensembling. Computing 2023, 106, 241–273. [Google Scholar] [CrossRef]
- Groß, A.; Lenders, A.; Schwenker, F.; Braun, D.A.; Fischer, D. Comparison of short-term electrical load forecasting methods for different building types. Energy Inform. 2021, 4 (Suppl. S3), 13. [Google Scholar] [CrossRef]
- Kök, A.; Yükseltan, E.; Hekimoğlu, M.; Aktunc, E.A.; Yücekaya, A.; Bilge, A. Forecasting Hourly Electricity Demand Under COVID-19 Restrictions. Int. J. Energy Econ. Policy 2022, 12, 73–85. [Google Scholar] [CrossRef]
- Park, R.J.; Song, K.B.; Kwon, B.S. Short-term load forecasting algorithm using a similar day selection method based on reinforcement learning. Energies 2020, 13, 2640. [Google Scholar] [CrossRef]
- Xie, J.; Zhong, Y.; Xiao, T.; Wang, Z.; Zhang, J.; Wang, T.; Schuller, B.W. A multi-information fusion model for short term load forecasting of an architectural complex considering spatio-temporal characteristics. Energy Build. 2022, 277, 112566. [Google Scholar] [CrossRef]
- Jiang, Z.; Zhang, L.; Ji, T. NSDAR: A neural network-based model for similar day screening and electric load forecasting. Appl. Energy 2023, 349, 121647. [Google Scholar] [CrossRef]
- Son, J.; Cha, J.; Kim, H.; Wi, Y.M. Day-Ahead Short-Term Load Forecasting for Holidays Based on Modification of Similar Days’ Load Profiles. IEEE Access 2022, 10, 17864–17880. [Google Scholar] [CrossRef]
- Madrid, E.A.; Antonio, N. Short-term electricity load forecasting with machine learning. Information 2021, 12, 50. [Google Scholar] [CrossRef]
- Mandal, P.; Senjyu, T.; Urasaki, N.; Funabashi, T. A neural network based several-hour-ahead electric load forecasting using similar days approach. Int. J. Electr. Power Energy Syst. 2006, 28, 367–373. [Google Scholar] [CrossRef]
- Barman, M.; Dev Choudhury, N.B. Season specific approach for short-term load forecasting based on hybrid FA-SVM and similarity concept. Energy 2019, 174, 886–896. [Google Scholar] [CrossRef]
- Lee, G.C. Regression-Based Methods for Daily Peak Load Forecasting in South Korea. Sustainability 2022, 14, 3984. [Google Scholar] [CrossRef]
- Pinheiro, M.G.; Madeira, S.C.; Francisco, A.P. Short-term electricity load forecasting—A systematic approach from system level to secondary substations. Appl. Energy 2023, 332, 120493. [Google Scholar] [CrossRef]
- Erişen, E.; Iyigun, C.; Tanrısever, F. Short-term electricity load forecasting with special days: An analysis on parametric and non-parametric methods. Ann. Oper. Res. 2017, 1–34. [Google Scholar] [CrossRef]
Year | Hybrid Model | Main Contributions | Findings | Error Value | Application |
---|---|---|---|---|---|
2024 | Fuzzy support vector machine-grey model (FSVM-GM) [38] | Utilized hybrid FSVM-GM for LTLF of the power system | The FSVM enhances the model’s ability to fit the data and generalize to unseen data, leading to improved accuracy and reliability for LTLF | MSE = 0.6 Average error = 0.6% | Power system bus |
2024 | Improved variational mode decomposition—whale optimization algorithm (IVMD-WOA-LSSVM) [39] | The hybrid of IVMD-WOA-LSSVM is proposed | The WOA algorithm exhibits faster convergence and has great local optima avoidance, leading to improved optimization performance | MAPE = 3.21% CVRMSE = 0.0344 R2 = 0.9901 | Cooling load |
2024 | Gene expression programming—adaptive neuro fuzzy inference system (GEP-ANFIS) [40] | A hybrid of GEP-ANFIS model for LTLF is proposed and compared with single GEP and ANFIS | The proposed hybrid model consistently achieves lower error values and higher R² values compared to ANFIS and GEP models across all years | RMSE = 0.0007 MSE = 5.2296 × 10−7 R2 = 0.9841 MAPE = 0.1934% | Food industry |
2024 | Convolutional neural network—long short-term memory (CNN-LSTM) [41] | The hybrid of CNN-LSTM is proposed and integrates with feature selection (FE) and data decomposition technique (EMD) | The EMD and FE techniques substantially enhance forecasting accuracy, leading to significant improvements in both model performance and computational complexity | MAE = 33.60 MSE = 10,599.60 RMSE = 102.95 | Residential |
2023 | Sequential pattern mining—long short-term memory (SPM-LSTM) [42] | Hybrid of SPM-LSTM is proposed for STLF that uses load and meteorological data | SPM-LSTM outperforms LSTM, LSTM-ANN, and CNN-GA in terms of accuracy, while also requiring less training and response time | RMSE = 387.06 MAE = 207.63 CV-RMSE = 8.45% R2 = 0.951 | Cities in Spain |
2022 | Fuzzy cluster—fireworks algorithm—LSSVM (FC-FWA-LSSVM) [43] | Introduced a feature extraction method that combines frequency component analysis (FCA) with firefly algorithm (FA) optimization for data compression | It provides high accuracy forecasting which minimizes RMSE to 2.32%, MAPE to 2.21% compared to traditional methods | RMSE = 2.19% MAPE = 2.32% MAE = 2.40% | Residential |
2022 | Improved sparrow search algorithm—support vector machine (ISSA-SVM) [44] | An ISSA is proposed to address the issues with hyper parameter selection of the SVM model for mid-long term load forecasting | The ISSA-SVM can effectively improve the forecasting accuracy compared with the original SVM, BPNN, MLR, ELM, and Elman | MAPE = 2.18% Relative error = 3.94% | China’s electricity consumption |
Condition | Description |
---|---|
r = +1 | linear and perfect positive correlation |
0.8 < r < 1.0 | very strong linear correlation |
0.6 < r < 0.8 | strong linear correlation |
0.4 < r < 0.6 | moderate linear correlation |
0.2 < r < 0.4 | weak linear correlation |
r = 0 | no correlation exists between the two variables |
r = −1 | linear and perfect negative correlation |
Dataset | Period (Year 2021) | Total Days |
---|---|---|
Training set | week 1 of January–week 2 of September | 252 days |
Validation set | week 3 of September–week 3 of November | 72 days |
Testing set | week 4 of November–week 3 of December | 30 days |
Parameter | Value |
---|---|
Number of nodes in hidden layer | 100 |
Output shape | None, 100 |
Layer | 1 (Dense_1) |
Training algorithm | Trainim |
Data division function | 70/20/10 |
Transfer function—hidden layer | logsig |
Transfer function—output layer | purelin |
Activation function | Scaled exponential linear unit (Selu) |
Optimizer | Adam |
Epoch | 100 |
Number of Steps | Description |
---|---|
Step 1 | Collecting the historical power load data for the analysis and stored in a MATLAB file format (.mat). The load function in MATLAB is then employed to import these data into the workspace |
Step 2 | The power load forecasting dataset is divided into training data, validation data and testing data according to the ratio 70:20:10, and the data are normalized |
Step 3 | Parameters setting: p, n, S, Nc, Ns, Nre, Ned, Ped where p is the number of parameters to be optimized, S is the number of bacteria, Ns is the swimming length, Nc is the maximum number of iterations in chemotaxis, Nre is the maximum number of reproduction, Ned is the maximum number of elimination dispersal, Ped is the probability of elimination-dispersal |
Step 4 | Generate the initial population of bacteria with random positions |
Step 5 | Create an initial population of bacteria with random positions where each bacterium’s positions encode the LSSVM parameters |
Step 6 | Set the fitness function |
Step 7 | For each bacterium, train an LSSVM model with the corresponding parameters on historical load data. Evaluate the fitness of each bacterium based on the mean absolute percentage error (MAPE) value: (23) where p is the total number of forecasting data, wi is the actual value and is the forecasted value |
Step 8 | Elimination-dispersal: e = e + 1 |
Step 9 | Reproduction loop: r = r + 1 |
Step 10 | Chemotaxis loop: t = t + 1 |
Step 11 | Update the positions of bacteria based on BFOA’s chemotaxis mechanism (Equation (20)) |
Step 12 | Go to step 8 if t < Nc |
Step 13 | Perform reproduction |
Step 14 | Select bacteria for reproduction based on their fitness value |
Step 15 | Go to step 7 if r < Nre |
Step 16 | Perform elimination-dispersal |
Step 17 | Eliminate and disperse each bacterium with probability of Ped. Go to step 6 if e < Ned |
Step 18 | Evaluate fitness and selection |
Step 19 | Train LSSVM models using the updated positions of bacteria. Evaluate the fitness of the updated bacteria by using Equation (23) |
Step 20 | Use the LSSVM-IBFOA to forecast the test data and select MAPE as the objective function for forecasting (24) |
Step 21 | Inverse normalize the forecasting results |
Step 22 | Output the accuracy measures for evaluation |
MAPE (%) | Forecasting Capability |
---|---|
<10 | Highly accurate forecasting |
10–20 | Good forecasting |
20–50 | Reasonable forecasting |
>50 | Inaccurate forecasting |
Measures | Criteria | Description | Equation | No. of Equation |
---|---|---|---|---|
MAPE | Mean absolute percentage error | Reflects the degree of data dispersion and accurately captures the actual forecasted data [63] | (25) | |
MAE | Mean absolute error | Shows the mean distance between the actual and forecasted values | (26) | |
MSE | Mean square error | Reflects the degree of dispersion of the dataset [63] | (27) | |
RMSE | Root mean square error | Captures the average error between the forecasted value and the actual value [63] | (28) | |
R2 | Determination coefficient | Determines the proportion of the variance in the dependent variable that is predictable from the independent variables [64] | (29) | |
NRMSE | Normalized root mean square error | Normalizes the RMSE by dividing it by the average of the actual values. Prone to the influence of large outliers [65] | (30) |
No | Variables | Pearson Correlation Coefficient (r), (load and Model Inputs) |
---|---|---|
1 | Last day relative humidity (%) | −0.4351 |
2 | Last two days’ relative humidity (%) | −0.4965 |
3 | Last week relative humidity (%) | −0.5302 |
4 | Last day temperature (°C) | 0.4874 |
5 | Last two days’ temperature (°C) | 0.5653 |
6 | Last week temperature (°C) | 0.5676 |
7 | Last day dew point (°C) | −0.0945 |
8 | Last two days’ dew point (°C) | −0.2429 |
9 | Last week’s dew point (°C) | −0.0421 |
10 | Last day load (MW) | 0.7762 |
11 | Last two days’ load (MW) | 0.7256 |
12 | Last week load (MW) | 0.6457 |
Model | MAPE (%) | MAE (MW) | RMSE (MW) | MSE (MW) | NRMSE | R2 |
---|---|---|---|---|---|---|
Monday | ||||||
DNN | 6.0479 | 906.6782 | 1020.2530 | 1,040,916.2167 | 0.0666 | 0.7344 |
LSSVM | 4.0025 | 586.6865 | 710.5824 | 504,927.3971 | 0.0464 | 0.9593 |
LSSVM-BFOA | 1.9592 | 303.1394 | 374.5812 | 140,311.0720 | 0.0244 | 0.9824 |
LSSVM-IBFOA | 1.4324 | 220.2668 | 280.5340 | 78,699.33177 | 0.0183 | 0.9880 |
Tuesday–Thursday | ||||||
DNN | 6.5912 | 964.7379 | 1231.8604 | 1,517,480.1165 | 0.0816 | 0.3582 |
LSSVM | 8.2086 | 1270.5557 | 1536.8228 | 2,361,824.3854 | 0.1013 | 0.5614 |
LSSVM-BFOA | 5.1020 | 809.2579 | 897.7997 | 806,044.3621 | 0.0591 | 0.8357 |
LSSVM-IBFOA | 4.8542 | 735.9945 | 861.9280 | 742,919.9222 | 0.0568 | 0.9451 |
Friday | ||||||
DNN | 7.8070 | 1144.208 | 1482.2793 | 2,197,151.8130 | 0.0996 | 0.1839 |
LSSVM | 8.3786 | 1303.5522 | 1503.8283 | 2,261,499.7912 | 0.1010 | 0.8292 |
LSSVM-BFOA | 7.5746 | 1167.3021 | 1338.5298 | 1,791,662.0492 | 0.0899 | 0.8834 |
LSSVM-IBFOA | 7.2436 | 1116.3861 | 1292.7109 | 1671,101.5480 | 0.0868 | 0.8901 |
Saturday | ||||||
DNN | 4.3742 | 611.1440 | 772.4642 | 596,700.8900 | 0.0540 | 0.5979 |
LSSVM | 3.7320 | 543.9430 | 661.4871 | 437,565.1258 | 0.0462 | 0.8876 |
LSSVM-BFOA | 3.2253 | 464.7921 | 563.3847 | 317,402.3313 | 0.0393 | 0.9295 |
LSSVM-IBFOA | 3.1348 | 449.5594 | 562.3752 | 316,265.9746 | 0.0393 | 0.9606 |
Sunday | ||||||
DNN | 4.2268 | 573.4755 | 659.2291 | 434,583.0080 | 0.0482 | 0.6144 |
LSSVM | 4.4664 | 618.7235 | 789.2292 | 622,882.7987 | 0.0577 | 0.4719 |
LSSVM-BFOA | 4.1507 | 577.6956 | 725.2978 | 526,056.9152 | 0.0530 | 0.7405 |
LSSVM-IBFOA | 4.1427 | 566.0997 | 652.6199 | 425,912.8607 | 0.0477 | 0.9479 |
Average | ||||||
DNN | 5.8094 | 840.0488 | 3669.8426 | 43,732,764.2466 | 0.2472 | 0.4978 |
LSSVM | 5.7576 | 864.6922 | 1040.3900 | 1,237,739.8996 | 0.0705 | 0.7419 |
LSSVM-BFOA | 4.4024 | 664.4374 | 779.9860 | 716,295.3460 | 0.0532 | 0.8743 |
LSSVM-IBFOA | 4.1615 | 617.6613 | 730.0336 | 646,979.9275 | 0.0498 | 0.9464 |
Day Type | Algorithm | Convergence Time (Minutes) |
---|---|---|
Monday | BFOA IBFOA | 44.6826 38.1281 |
Tuesday–Thursday | BFOA IBFOA | 31.2697 26.9290 |
Friday | BFOA IBFOA | 25.8514 16.5285 |
Saturday | BFOA IBFOA | 35.5887 21.7109 |
Sunday | BFOA IBFOA | 33.8185 31.6932 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zaini, F.A.; Sulaima, M.F.; Razak, I.A.W.A.; Othman, M.L.; Mokhlis, H. Improved Bacterial Foraging Optimization Algorithm with Machine Learning-Driven Short-Term Electricity Load Forecasting: A Case Study in Peninsular Malaysia. Algorithms 2024, 17, 510. https://doi.org/10.3390/a17110510
Zaini FA, Sulaima MF, Razak IAWA, Othman ML, Mokhlis H. Improved Bacterial Foraging Optimization Algorithm with Machine Learning-Driven Short-Term Electricity Load Forecasting: A Case Study in Peninsular Malaysia. Algorithms. 2024; 17(11):510. https://doi.org/10.3390/a17110510
Chicago/Turabian StyleZaini, Farah Anishah, Mohamad Fani Sulaima, Intan Azmira Wan Abdul Razak, Mohammad Lutfi Othman, and Hazlie Mokhlis. 2024. "Improved Bacterial Foraging Optimization Algorithm with Machine Learning-Driven Short-Term Electricity Load Forecasting: A Case Study in Peninsular Malaysia" Algorithms 17, no. 11: 510. https://doi.org/10.3390/a17110510
APA StyleZaini, F. A., Sulaima, M. F., Razak, I. A. W. A., Othman, M. L., & Mokhlis, H. (2024). Improved Bacterial Foraging Optimization Algorithm with Machine Learning-Driven Short-Term Electricity Load Forecasting: A Case Study in Peninsular Malaysia. Algorithms, 17(11), 510. https://doi.org/10.3390/a17110510