Hybrid CNN-LSTM and TimeGAN Models for Enhanced Energy Consumption Prediction in Smart Homes
Received: 10 August 2025 | Revised: 31 October 2025 | Accepted: 11 November 2025 | Online: 4 December 2025
Corresponding author: Budoor Ahmad Allehyani
Abstract
Accurate prediction of energy consumption in smart homes is essential for optimizing energy usage, reducing operational costs, and enhancing occupant comfort. Traditional statistical and machine learning models often struggle to capture the complex spatiotemporal patterns inherent in energy usage data. To address this limitation, this study proposes a hybrid Convolutional Neural Network–Long Short-Term Memory (CNN-LSTM) model for forecasting energy consumption in smart homes, combining the spatial feature extraction strengths of Convolutional Neural Networks (CNNs) with the temporal learning capabilities of Long Short-Term Memory (LSTM) networks. The model demonstrated high predictive accuracy and generalization, as reflected by the evaluation metrics: Mean Absolute Error (MAE) = 0.0325, Mean Squared Error (MSE) = 0.0031, Root Mean Squared Error (RMSE) = 0.0557, and Mean Absolute Percentage Error (MAPE) = 0.2054. However, as the model was trained on synthetic data, further validation using real-world energy consumption datasets is necessary to assess its practical applicability and robustness.
Keywords:
energy consumption, smart home, machine learning, deep learning, feature engineering, sustainabilityDownloads
References
S. Bourhnane, M. R. Abid, R. Lghoul, K. Zine-Dine, N. Elkamoun, and D. Benhaddou, "Machine learning for energy consumption prediction and scheduling in smart buildings," SN Applied Sciences, vol. 2, no. 2, Jan. 2020, Art. no. 297. DOI: https://doi.org/10.1007/s42452-020-2024-9
M. K. M. Shapi, N. A. Ramli, and L. J. Awalin, "Energy consumption prediction by using machine learning for smart building: Case study in Malaysia," Developments in the Built Environment, vol. 5, Mar. 2021, Art. no. 100037. DOI: https://doi.org/10.1016/j.dibe.2020.100037
R. Dulyala, S. Audomsi, and W. Sa-Ngiamvibool, "Artificial Neural Networks Based on Optimization Technique for Short-Term Electricity Demand Forecasting: Uttaradit Rajabhat University Data Analysis," International Journal of Engineering Trends and Technology, vol. 73, no. 6, pp. 183–190, June 2025. DOI: https://doi.org/10.14445/22315381/IJETT-V73I6P116
N. E. Assri, M. A. Jallal, S. E. E. Aoud, S. Chabaa, and A. Zeroual, "Synergistic Neural Network and Velocity Pausing Particle Swarm Optimization for Enhanced Residential Building Energy Efficiency: A Case Study in Kuwait," Engineering, Technology & Applied Science Research, vol. 14, no. 5, pp. 17507–17516, Oct. 2024. DOI: https://doi.org/10.48084/etasr.8278
S. Audomsi, S. Wattana, N. Uthathip, and W. Sa-Ngiamvibool, "Development and Design of an Optimal Fuzzy Logic Two Degrees of Freedom-Proportional Integral Derivative Controller for a Two-Area Power System Using the Bee Algorithm," Energies, vol. 18, no. 4, Feb. 2025, Art. no. 915. DOI: https://doi.org/10.3390/en18040915
C. Lu, S. Li, and Z. Lu, "Building energy prediction using artificial neural networks: A literature survey," Energy and Buildings, vol. 262, May 2022, Art. no. 111718. DOI: https://doi.org/10.1016/j.enbuild.2021.111718
U. ur Rehman, P. Faria, L. Gomes, and Z. Vale, "Future of Energy Management Models in Smart Homes: A Systematic Literature Review of Research Trends, Gaps, and Future Directions," Process Integration and Optimization for Sustainability, vol. 9, no. 4, pp. 1169–1198, Sept. 2025. DOI: https://doi.org/10.1007/s41660-025-00506-x
R. V. Klyuev et al., "Methods of Forecasting Electric Energy Consumption: A Literature Review," Energies, vol. 15, no. 23, Dec. 2022, Art. no. 8919. DOI: https://doi.org/10.3390/en15238919
E. J. Al-Reshidi, R. Α. Ramadan, B. W. Aboshosha, M. Salem, and A. M. Alayba, "Real-Time Home Energy Management with IoT and Blockchain: Balancing Consumption and Peer-to-Peer Trading," Engineering, Technology & Applied Science Research, vol. 14, no. 3, pp. 14014–14021, June 2024. DOI: https://doi.org/10.48084/etasr.7188
R. Ramadan, "Energy Consumption Dataset For Smart Homes." Mendeley Data, Dec. 18, 2023.
R. A. Ramadan, "Internet of things dataset for home renewable energy management," Data in Brief, vol. 53, Apr. 2024, Art. no. 110166. DOI: https://doi.org/10.1016/j.dib.2024.110166
J. Kaiser, "Dealing with Missing Values in Data," Journal of Systems Integration, vol. 5, no. 1, pp. 42–51, Jan. 2014. DOI: https://doi.org/10.20470/jsi.v5i1.178
S. Gorard, "Handling missing data in numeric analyses," International Journal of Social Research Methodology, vol. 23, no. 6, pp. 651–660, Nov. 2020. DOI: https://doi.org/10.1080/13645579.2020.1729974
K. Potdar, T. S. Pardawala, and C. D. Pai, "A Comparative Study of Categorical Variable Encoding Techniques for Neural Network Classifiers," International Journal of Computer Applications, vol. 175, no. 4, pp. 7–9, Oct. 2017. DOI: https://doi.org/10.5120/ijca2017915495
H. Henderi, T. Wahyuningsih, and E. Rahwanto, "Comparison of Min-Max normalization and Z-Score Normalization in the K-nearest neighbor (kNN) Algorithm to Test the Accuracy of Types of Breast Cancer," International Journal of Informatics and Information Systems, vol. 4, no. 1, pp. 13–20, Mar. 2021. DOI: https://doi.org/10.47738/ijiis.v4i1.73
W. Yu, Y. Wang, X. Que, and C. Xu, "Virtual Shuffling for Efficient Data Movement in MapReduce," IEEE Transactions on Computers, vol. 64, no. 2, pp. 556–568, Feb. 2015. DOI: https://doi.org/10.1109/TC.2013.216
J. Yoon, D. Jarrett, and M. van der Schaar, "Time-series Generative Adversarial Networks," in 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada, 2019, pp. 5508–5518.
M. EskandariNasab, S. M. Hamdi, and S. F. Boubrahimi, "ChronoGAN: Supervised and Embedded Generative Adversarial Networks for Time Series Generation," in 2024 International Conference on Machine Learning and Applications, Miami, FL, USA, 2024, pp. 567–574. DOI: https://doi.org/10.1109/ICMLA61862.2024.00083
M. Fochesato, F. Khayatian, D. F. Lima, and Z. Nagy, "On the use of conditional TimeGAN to enhance the robustness of a reinforcement learning agent in the building domain," in Proceedings of the 9th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation, Boston, MA, USA, 2022, pp. 208–217. DOI: https://doi.org/10.1145/3563357.3564080
Y. Zhang, Z. Zhou, J. Liu, and J. Yuan, "Data augmentation for improving heating load prediction of heating substation based on TimeGAN," Energy, vol. 260, Dec. 2022, Art. no. 124919. DOI: https://doi.org/10.1016/j.energy.2022.124919
S. Hochreiter and J. Schmidhuber, "Long Short-Term Memory," Neural Computation, vol. 9, no. 8, pp. 1735–1780, Nov. 1997. DOI: https://doi.org/10.1162/neco.1997.9.8.1735
S. M. Hasanat et al., "Enhancing Load Forecasting Accuracy in Smart Grids: A Novel Parallel Multichannel Network Approach Using 1D CNN and Bi-LSTM Models," International Journal of Energy Research, vol. 2024, no. 1, July 2024, Art. no. 2403847. DOI: https://doi.org/10.1155/2024/2403847
A. Zafar et al., "A Comparison of Pooling Methods for Convolutional Neural Networks," Applied Sciences, vol. 12, no. 17, Sept. 2022, Art. no. 8643. DOI: https://doi.org/10.3390/app12178643
S. Siami-Namini, N. Tavakoli, and A. S. Namin, "The Performance of LSTM and BiLSTM in Forecasting Time Series," in 2019 IEEE International Conference on Big Data, Los Angeles, CA, USA, 2019, pp. 3285–3292. DOI: https://doi.org/10.1109/BigData47090.2019.9005997
D. P. Kingma and J. Ba, "Adam: A Method for Stochastic Optimization." arXiv, Jan. 30, 2017.
N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov, "Dropout: a simple way to prevent neural networks from overfitting," The Journal of Machine Learning Research, vol. 15, no. 1, pp. 1929–1958, Jan. 2014.
J. Jiang and A. Feofilova, "Research on Urban Road Traffic Flow Prediction Based on Hybrid CNN-LSTM Model," Applied and Computational Engineering, vol. 129, no. 1, pp. 77–83, Jan. 2025. DOI: https://doi.org/10.54254/2755-2721/2025.20467
T.-Y. Kim and S.-B. Cho, "Predicting residential energy consumption using CNN-LSTM neural networks," Energy, vol. 182, pp. 72–81, Sept. 2019. DOI: https://doi.org/10.1016/j.energy.2019.05.230
T. Le, M. T. Vo, B. Vo, E. Hwang, S. Rho, and S. W. Baik, "Improving Electric Energy Consumption Prediction Using CNN and Bi-LSTM," Applied Sciences, vol. 9, no. 20, Oct. 2019, Art. no. 4237. DOI: https://doi.org/10.3390/app9204237
P. P. Phyo and Y.-C. Byun, "Hybrid Ensemble Deep Learning-Based Approach for Time Series Energy Prediction," Symmetry, vol. 13, no. 10, Oct. 2021, Art. no. 1942. DOI: https://doi.org/10.3390/sym13101942
A. Agga, A. Abbou, M. Labbadi, and Y. el Houm, "Short-Term Load Forecasting: Based on Hybrid CNN-LSTM Neural Network," in 2021 6th International Conference on Power and Renewable Energy, Shanghai, China, 2021, pp. 886–891. DOI: https://doi.org/10.1109/ICPRE52634.2021.9635488
Z. A. Khan, T. Hussain, A. Ullah, S. Rho, M. Lee, and S. W. Baik, "Towards Efficient Electricity Forecasting in Residential and Commercial Buildings: A Novel Hybrid CNN with a LSTM-AE based Framework," Sensors, vol. 20, no. 5, Mar. 2020, Art. no. 1399. DOI: https://doi.org/10.3390/s20051399
Downloads
How to Cite
License
Copyright (c) 2025 Budoor Ahmad Allehyani, Ghader Reda Kurdi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
