A Predictive Energy Management Framework for Malaysian Residential Microgrid Using LSTM-Driven Adaptive Rule-Based Control
DOI:
https://doi.org/10.31436/iiumej.v27i3.4635Keywords:
Energy Management System (EMS), Long Short-Term Memory (LSTM), Machine Learning (ML), Rule-Based Control (RBC), Tertiary-Level ControlAbstract
The rapid increase in global energy demand and the growing emphasis on environmental sustainability have accelerated the integration of renewable energy sources (RES) into modern microgrids. However, the stochastic nature of RES, the unpredictable behavior of load demand, and the variability of utility electricity tariffs under the Time of Use (ToU) pricing mechanism increase the operational complexity of microgrid energy management systems (EMS). To address these challenges, this research focuses on developing and implementing a hybrid EMS that integrates machine learning (ML)-based Long Short-Term Memory (LSTM) predictive models with conventional Rule-based Control (RBC) strategies for tertiary-level control of a centralized, grid-connected residential microgrid. The proposed EMS approach combines one-hour-ahead forecasts of solar Photovoltaic (PV) energy generation and residential load demand with predefined Load Following (LF) and Cycle Charging (CC) control strategies, enabling the EMS to anticipate future operating conditions while preserving the simplicity of the conventional RBC framework. The main objective of this research is to evaluate whether integrating LSTM predictive models into conventional RBC strategies can reduce the total operating cost of a Malaysian residential microgrid under the applicable ToU electricity tariff and Solar Accelerated Transition Action Program (Solar ATAP) scheme. The microgrid is modeled in MATLAB Simulink as a grid-connected system comprising a solar PV system, battery energy storage system (BESS), and three residential load profiles representing terrace, apartment, and condominium households in Kuala Lumpur, Malaysia. The data used to develop the proposed hybrid EMS are sourced from various trusted platforms, including Tenaga Nasional Berhad (TNB) energy smart meters, Huawei Solar Fusion, and Solcast. The simulation results showed that the developed LSTM predictive models achieved higher forecasting accuracy for both solar PV energy generation and residential load demand than the baseline Feedforward Neural Network (FFNN) models. Leveraging these forecasts, the proposed LSTM-RBC-based EMS effectively coordinated the distributed energy resources (DERs) under the ToU electricity tariff and Solar ATAP scheme by strategically scheduling BESS charging and discharging operations and managing grid energy import and export based on economic operating conditions. The proposed hybrid EMS achieved a significant reduction in total operating cost by approximately 30% to 40% compared with conventional RBC strategies under different initial BESS State of Charge (SoC) scenarios. These results demonstrate that integrating ML-based LSTM predictive models into conventional RBC strategies enables more economical microgrid operation, highlighting the potential of predictive control to improve the operational performance of residential microgrids.
ABSTRAK: Peningkatan pesat dalam permintaan tenaga global serta penekanan yang semakin meningkat terhadap kelestarian alam sekitar telah mempercepat integrasi sumber tenaga boleh baharu (RES) ke dalam mikrogrid moden. Walau bagaimanapun, sifat stokastik RES, ketidakpastian tingkah laku permintaan beban, serta perubahan tarif elektrik utiliti di bawah mekanisme harga Masa Penggunaan (ToU) telah meningkatkan kerumitan operasi sistem pengurusan tenaga (EMS) mikrogrid. Bagi menangani cabaran ini, kajian ini memberi tumpuan kepada pembangunan dan pelaksanaan EMS hibrid yang mengintegrasi model ramalan Ingatan Jangka Pendek Berpanjangan (LSTM) berasaskan pembelajaran mesin (ML) dengan strategi konvensional Kawalan Berasaskan Peraturan (RBC) bagi kawalan peringkat tertier untuk mikrogrid kediaman berpusat yang disambungkan kepada grid. Pendekatan EMS ini menggabungkan ramalan satu jam ke hadapan bagi penjanaan tenaga solar foto volta (PV) dan permintaan beban kediaman dengan strategi kawalan Pengikutan Beban (LF) dan Kitar Pengecasan (CC) yang telah ditetapkan, bagi membolehkan EMS menjangka keadaan operasi pada masa hadapan sambil mengekalkan kesederhanaan kerangka RBC konvensional. Objektif utama kajian ini adalah bagi menilai sama ada integrasi model ramalan LSTM ke dalam strategi RBC konvensional dapat mengurangkan jumlah kos operasi mikrogrid kediaman di Malaysia di bawah tarif elektrik ToU yang berkuat kuasa dan skim Program Solar Accelerated Transition Action Programme (Solar ATAP). Mikrogrid tersebut dimodelkan dalam MATLAB Simulink sebagai sistem yang disambung kepada grid dan terdiri daripada sistem solar PV, sistem penyimpanan tenaga bateri (BESS), serta tiga profil beban kediaman yang mewakili rumah teres, apartmen, dan kondominium di Kuala Lumpur, Malaysia. Data yang digunakan dalam pembangunan EMS hybrid ini diperoleh dari beberapa platform yang dipercayai, termasuk meter pintar tenaga Tenaga Nasional Berhad (TNB), Huawei FusionSolar, dan Solcast. Hasil simulasi menunjukkan bahawa model ramalan LSTM yang dibangunkan mencapai ketepatan ramalan lebih tinggi bagi kedua-dua penjanaan tenaga solar PV dan permintaan beban kediaman berbanding model asas Rangkaian Neural Suap ke Depan (FFNN). Melalui ramalan ini, EMS berasaskan LSTM-RBC berjaya menyelaras sumber tenaga teragih (DERs) dengan berkesan di bawah tarif elektrik ToU dan skim Program Solar ATAP melalui penjadualan strategik operasi pengecasan dan nyahcas BESS, serta pengurusan import dan eksport tenaga grid berdasarkan keadaan operasi yang lebih ekonomik. EMS hibrid ini mencapai pengurangan ketara dalam jumlah kos operasi, iaitu kira-kira 30% hingga 40% berbanding strategi RBC konvensional di bawah senario keadaan cas awal (SoC) BESS berbeza. Dapatan ini menunjukkan bahawa pengintegrasian model ramalan LSTM berasaskan ML ke dalam strategi RBC konvensional membolehkan operasi mikrogrid yang lebih ekonomik, sekaligus menonjolkan potensi kawalan ramalan dalam meningkatkan prestasi operasi mikrogrid kediaman.
Downloads
Metrics
References
L. Fusheng, L. Ruisheng, and Z. Fengquan, “Composition and classification of the microgrid,” Microgrid technology and engineering application, pp. 11–27, 2016.
“Energy Commission - Voltan Nominal.” Accessed: Mar. 20, 2026. [Online]. Available: https://www.st.gov.my/en/web/general/details/144
“Energy transition in Malaysia.” Accessed: Mar. 19, 2026. [Online]. Available: https://www.energymonitor.ai/data-insights/energy-transition-in-malaysia/?cf-view
T. B. Lopez-Garcia, A. Coronado-Mendoza, and J. A. Domínguez-Navarro, “Artificial neural networks in microgrids: A review,” Eng. Appl. Artif. Intell., vol. 95, p. 103894, Oct. 2020, doi: 10.1016/J.ENGAPPAI.2020.103894.
P. A. Cárdenas, M. Martínez, M. G. Molina, and P. E. Mercado, “Development of Control Techniques for AC Microgrids: A Critical Assessment,” Sustainability 2023, Vol. 15, Page 15195, vol. 15, no. 21, p. 15195, Oct. 2023, doi: 10.3390/SU152115195.
A. Elmouatamid, R. Ouladsine, M. Bakhouya, N. El Kamoun, M. Khaidar, and K. Zine-Dine, “Review of Control and Energy Management Approaches in Micro-Grid Systems,” Energies 2021, Vol. 14, Page 168, vol. 14, no. 1, p. 168, Dec. 2020, doi: 10.3390/en14010168.
K. Hassan, T. Trireksani, A. Hussain, and H.-M. Kim, “A Rule-Based Modular Energy Management System for AC/DC Hybrid Microgrids,” Sustainability 2025, Vol. 17, Page 867, vol. 17, no. 3, p. 867, Jan. 2025, doi: 10.3390/SU17030867.
A. S. Aziz, M. F. N. Tajuddin, M. R. Adzman, M. A. M. Ramli, and S. Mekhilef, “Energy Management and Optimization of a PV/Diesel/Battery Hybrid Energy System Using a Combined Dispatch Strategy,” Sustainability 2019, Vol. 11, Page 683, vol. 11, no. 3, p. 683, Jan. 2019, doi: 10.3390/SU11030683.
S. Chakraborty, G. Modi, and B. Singh, “A Cost Optimized-Reliable-Resilient-Realtime- Rule-Based Energy Management Scheme for a SPV-BES-Based Microgrid for Smart Building Applications,” IEEE Trans. Smart Grid, vol. 14, no. 4, pp. 2572–2581, Jul. 2023, doi: 10.1109/TSG.2022.3232283.
M. M. Awad, A. Bhattacharjee, and K. N. Hasan, “Design and Energy Management of Solar PV-BESS Integrated Off-Grid Electric Vehicle Charging Station,” 2025 12th National Power Electronics Conference (NPEC), pp. 1–6, Dec. 2025, doi: 10.1109/NPEC66512.2025.11450150.
K. Nassereddine, M. Turzynski, H. Bielokha, and R. Strzelecki, “Simulation of energy management system using model predictive control in AC/DC microgrid,” Sci. Rep., vol. 15, no. 1, pp. 1–12, Dec. 2025, doi: 10.1038/S41598-025-89036-7.
M. Kaheni, J. Fu, and A. V. Papadopoulos, “Rule-Based Predictive Control for Battery Scheduling in Microgrids Under Power Generation and Load Uncertainties,” IEEE Transactions on Automation Science and Engineering, vol. 22, pp. 9782–9792, 2025, doi: 10.1109/TASE.2024.3512882.
S. Y. Chen and C. H. Chang, “Optimal Power Flows Control for Home Energy Management With Renewable Energy and Energy Storage Systems,” IEEE Transactions on Energy Conversion, vol. 38, no. 1, pp. 218–229, Mar. 2023, doi: 10.1109/TEC.2022.3198883.
A. Abbasi, H. A. Khalid, H. Rehman, and A. U. Khan, “A Novel Dynamic Load Scheduling and Peak Shaving Control Scheme in Community Home Energy Management System Based Microgrids,” IEEE Access, vol. 11, pp. 32508–32522, 2023, doi: 10.1109/ACCESS.2023.3255542.
M. M. Shibl, L. S. Ismail, and A. M. Massoud, “An Intelligent Two-Stage Energy Dispatch Management System for Hybrid Power Plants: Impact of Machine Learning Deployment,” IEEE Access, vol. 11, pp. 13091–13102, 2023, doi: 10.1109/ACCESS.2023.3243097.
E. Giglio, G. Luzzani, V. Terranova, G. Trivigno, A. Niccolai, and F. Grimaccia, “An Efficient Artificial Intelligence Energy Management System for Urban Building Integrating Photovoltaic and Storage,” IEEE Access, vol. 11, pp. 18673–18688, 2023, doi: 10.1109/ACCESS.2023.3247636.
O. Akbulut, M. Cavus, M. Cengiz, A. Allahham, D. Giaouris, and M. Forshaw, “Hybrid Intelligent Control System for Adaptive Microgrid Optimization: Integration of Rule-Based Control and Deep Learning Techniques,” Energies 2024, Vol. 17, Page 2260, vol. 17, no. 10, p. 2260, May 2024, doi: 10.3390/EN17102260.
“Fahami Tarif Elektrik Anda | TNB Malaysia.” Accessed: Aug. 13, 2025. [Online]. Available: https://www.mytnb.com.my/tariff/index.html?v=1.1.34
“Solar ATAP Malaysia 2026 | Cut TNB Bills 90% | No Quota, Apply Anytime.” Accessed: Aug. 12, 2026. [Online]. Available: https://solaratap.my/
R. R. Onteru, V. Sandeep, Rupesh, and R. Onteru, “An intelligent model for efficient load forecasting and sustainable energy management in sustainable microgrids,” Discover Sustainability 2024 5:1, vol. 5, no. 1, pp. 170-, Jul. 2024, doi: 10.1007/s43621-024-00356-6.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 IIUM Press

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.








