An Intelligent Framework for Energy Forecasting and Management in Photovoltaic-Integrated Smart Homes in Tunisia with V2H Support Using LSTM Optimized by the Harris Hawks Algorithm
Aymen Mnassri,
Nouha Mansouri (),
Sihem Nasri,
Abderezak Lashab,
Juan C. Vasquez () and
Adnane Cherif
Additional contact information
Aymen Mnassri: Analyze and Process Electrical and Energy Signals (ATSSEE) Research Laboratory, Faculty of Sciences of Tunis El Manar, Tunis 2092, Tunisia
Nouha Mansouri: Higher School of Engineering Technologies, ESPRIT, Ariana 2083, Tunisia
Sihem Nasri: Analyze and Process Electrical and Energy Signals (ATSSEE) Research Laboratory, Faculty of Sciences of Tunis El Manar, Tunis 2092, Tunisia
Abderezak Lashab: Center for Research on Microgrids (CROM), Department of Energy Technology, Aalborg University, 9220 Aalborg, Denmark
Juan C. Vasquez: Center for Research on Microgrids (CROM), Department of Energy Technology, Aalborg University, 9220 Aalborg, Denmark
Adnane Cherif: Analyze and Process Electrical and Energy Signals (ATSSEE) Research Laboratory, Faculty of Sciences of Tunis El Manar, Tunis 2092, Tunisia
Energies, 2025, vol. 18, issue 21, 1-27
Abstract:
This paper presents an intelligent hybrid framework for short-term energy consumption forecasting and real-time energy management in photovoltaic (PV)-integrated smart homes with Vehicle-to-Home (V2H) systems, tailored to the Tunisian context. The forecasting module employs an Attention-based Long Short-Term Memory (LSTM) neural network, whose hyperparameters (learning rate, hidden units, temporal window size) are optimized using the Harris Hawks Optimization (HHO) algorithm. Simulation results show that the proposed LSTM-HHO model achieves a Root Mean Square Error (RMSE) of 269 Wh, a Mean Absolute Error (MAE) of 187 Wh, and a Mean Absolute Percentage Error (MAPE) of 9.43%, with R 2 = 0.97, substantially outperforming conventional LSTM (RMSE: 945 Wh, MAPE: 51.05%) and LSTM-PSO (RMSE: 586 Wh, MAPE: 28.72%). These accurate forecasts are exploited by the Energy Management System (EMS) to optimize energy flows through dynamic appliance scheduling, HVAC load shifting, and coordinated operation of home and EV batteries. Compared with baseline operation, PV self-consumption increased by 18.6%, grid reliance decreased by 25%, and household energy costs were reduced by 17.3%. Cost savings are achieved via predictive and adaptive control that prioritizes PV utilization, shifts flexible loads to surplus periods, and hierarchically manages distributed storage (home battery for short-term balancing, EV battery for extended deficits). Overall, the proposed LSTM-HHO-based EMS provides a practical and effective pathway toward smart, sustainable, and cost-efficient residential energy systems, contributing directly to Tunisia’s energy transition goals.
Keywords: smart home; energy management system (EMS); V2H; attention-LSTM; HHO; short-term forecasting; hyperparameter optimization; renewable integration; RMSE; MAPE; economic savings (search for similar items in EconPapers)
JEL-codes: Q Q0 Q4 Q40 Q41 Q42 Q43 Q47 Q48 Q49 (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/1996-1073/18/21/5635/pdf (application/pdf)
https://www.mdpi.com/1996-1073/18/21/5635/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jeners:v:18:y:2025:i:21:p:5635-:d:1780478
Access Statistics for this article
Energies is currently edited by Ms. Cassie Shen
More articles in Energies from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().