Journal of Machine and Computing


Prediction of Electricity Consumption in Residential Areas using Temporal Fusion Transformer and Convolutional Neural Network



Journal of Machine and Computing

Received On : 10 April 2024

Revised On : 18 September 2024

Accepted On : 04 November 2024

Volume 05, Issue 01


Article Views

Abstract


The consumption of energy in the residential area causes adverse impacts on the environment. The mitigation or maintenance of power consumption can be the main step to preserve electricity for the future and proper supply. In context with this, the work focuses on predicting the consumption of energy with the novel hybrid tactic. The hybrid tactic is the integration of Temporal Fusion Transformer (TFT) and Convolutional Neural Network (CNN) (HTFT-CNN). This work is developed to predict the usage of energy across varying time frames with the grip of a multivariate time series of the power consumption of individual residential areas. The proposed HTFT-CNN is implemented to combine both the feature and temporal-based data and can be utilized to observe intricate consumption patterns. The Attention mechanism (AM) is implemented for the fusion of features that are obtained using the proposed HTFT-CNN tactic. The multi-step (k=24) for input sequences and k=24 is the length of input sequence at 24 hours. Simulations are conducted to analyze the robustness and forecasting accuracy of the designed model with the parameters such as Root Mean Square error (RMSE), and Mean Absolute Percentage Error (MAPE). The analyzed performance depicts that the proposed design can be used for planning and energy management in the residential area with minimized RMSE and MAPE values.


Keywords


Power Consumption, Residential Area, Forecasting Accuracy, And Multivariate Time Series.


  1. S. Abbas et al., “Modeling, Simulation and Optimization of Power Plant Energy Sustainability for IoT Enabled Smart Cities Empowered With Deep Extreme Learning Machine,” IEEE Access, vol. 8, pp. 39982–39997, 2020, doi: 10.1109/access.2020.2976452.
  2. A. Hirata et al., “Assessment of Human Exposure to Electromagnetic Fields: Review and Future Directions,” IEEE Transactions on Electromagnetic Compatibility, vol. 63, no. 5, pp. 1619–1630, Oct. 2021, doi: 10.1109/temc.2021.3109249.
  3. H. T. Dinh, J. Yun, D. M. Kim, K.-H. Lee, and D. Kim, “A Home Energy Management System With Renewable Energy and Energy Storage Utilizing Main Grid and Electricity Selling,” IEEE Access, vol. 8, pp. 49436–49450, 2020, doi: 10.1109/access.2020.2979189.
  4. S. Jacob, G. Balanagireddy, K. S. Kumar, and M. M. Vijay, “Interrelation between Temporal Coordinates and Intrusion Detection Techniques in Cyber Physical Systems,” 2022 International Conference on Inventive Computation Technologies (ICICT), pp. 386–390, Jul. 2022, doi: 10.1109/icict54344.2022.9850633.
  5. P. W. Khan and Y.-C. Byun, “Genetic Algorithm Based Optimized Feature Engineering and Hybrid Machine Learning for Effective Energy Consumption Prediction,” IEEE Access, vol. 8, pp. 196274–196286, 2020, doi: 10.1109/access.2020.3034101.
  6. A. U. Rehman et al., “An Optimal Power Usage Scheduling in Smart Grid Integrated With Renewable Energy Sources for Energy Management,” IEEE Access, vol. 9, pp. 84619–84638, 2021, doi: 10.1109/access.2021.3087321.
  7. A. Akbari-Dibavar, B. Mohammadi-Ivatloo, K. Zare, T. Khalili, and A. Bidram, “Economic-Emission Dispatch Problem in Power Systems With Carbon Capture Power Plants,” IEEE Transactions on Industry Applications, vol. 57, no. 4, pp. 3341–3351, Jul. 2021, doi: 10.1109/tia.2021.3079329.
  8. Feedback: support@crossref.orgA. Barzkar and M. Ghassemi, “Electric Power Systems in More and All Electric Aircraft: A Review,” IEEE Access, vol. 8, pp. 169314–169332, 2020, doi: 10.1109/access.2020.3024168.
  9. G. Hafeez et al., “An Innovative Optimization Strategy for Efficient Energy Management With Day-Ahead Demand Response Signal and Energy Consumption Forecasting in Smart Grid Using Artificial Neural Network,” IEEE Access, vol. 8, pp. 84415–84433, 2020, doi: 10.1109/access.2020.2989316.
  10. F. U. M. Ullah, A. Ullah, I. U. Haq, S. Rho, and S. W. Baik, “Short-Term Prediction of Residential Power Energy Consumption via CNN and Multi-Layer Bi-Directional LSTM Networks,” IEEE Access, vol. 8, pp. 123369–123380, 2020, doi: 10.1109/access.2019.2963045.
  11. R. Olu-Ajayi, H. Alaka, I. Sulaimon, F. Sunmola, and S. Ajayi, “Building energy consumption prediction for residential buildings using deep learning and other machine learning techniques,” Journal of Building Engineering, vol. 45, p. 103406, Jan. 2022, doi: 10.1016/j.jobe.2021.103406.
  12. H. R. O. Rocha, I. H. Honorato, R. Fiorotti, W. C. Celeste, L. J. Silvestre, and J. A. L. Silva, “An Artificial Intelligence based scheduling algorithm for demand-side energy management in Smart Homes,” Applied Energy, vol. 282, p. 116145, Jan. 2021, doi: 10.1016/j.apenergy.2020.116145.
  13. Y. Hong, Y. Zhou, Q. Li, W. Xu, and X. Zheng, “A Deep Learning Method for Short-Term Residential Load Forecasting in Smart Grid,” IEEE Access, vol. 8, pp. 55785–55797, 2020, doi: 10.1109/access.2020.2981817.
  14. D. Syed et al., “Deep Learning-Based Short-Term Load Forecasting Approach in Smart Grid With Clustering and Consumption Pattern Recognition,” IEEE Access, vol. 9, pp. 54992–55008, 2021, doi: 10.1109/access.2021.3071654.
  15. S. Goudarzi, M. H. Anisi, S. A. Soleymani, M. Ayob, and S. Zeadally, “An IoT-Based Prediction Technique for Efficient Energy Consumption in Buildings,” IEEE Transactions on Green Communications and Networking, vol. 5, no. 4, pp. 2076–2088, Dec. 2021, doi: 10.1109/tgcn.2021.3091388.
  16. A. Nazir, A. K. Shaikh, A. S. Shah, and A. Khalil, “Forecasting energy consumption demand of customers in smart grid using Temporal Fusion Transformer (TFT),” Results in Engineering, vol. 17, p. 100888, Mar. 2023, doi: 10.1016/j.rineng.2023.100888.
  17. Z. Niu, X. Han, D. Zhang, Y. Wu, and S. Lan, “Interpretable wind power forecasting combining seasonal-trend representations learning with temporal fusion transformers architecture,” Energy, vol. 306, p. 132482, Oct. 2024, doi: 10.1016/j.energy.2024.132482.
  18. M. Raza, F. K. Hussain, O. K. Hussain, Z. ur Rehman, and M. Zhao, “Imputing sentiment intensity for SaaS service quality aspects using T-nearest neighbors with correlation-weighted Euclidean distance,” Knowledge and Information Systems, vol. 63, no. 9, pp. 2541–2584, Jul. 2021, doi: 10.1007/s10115-021-01591-3.
  19. L. Huang, J. Qin, Y. Zhou, F. Zhu, L. Liu, and L. Shao, “Normalization Techniques in Training DNNs: Methodology, Analysis and Application,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 8, pp. 10173–10196, Aug. 2023, doi: 10.1109/tpami.2023.3250241.
  20. K. R. Deepa and N. Thillaiarasu, “Integrated Architecture for Smart Grid Energy Management: Deep Attention-Enhanced Sequence-to-Sequence Model with Energy-Aware Optimized Reinforcement Learning for Demand Response,” SN Computer Science, vol. 5, no. 8, Nov. 2024, doi: 10.1007/s42979-024-03305-2.
  21. LIU, J.W., LIU, J.W. and LUO, X.L., 2021. Research progress in attention mechanism in deep learning. Chinese Journal of Engineering, 43(11), pp.1499-1511.

Acknowledgements


Author(s) thanks to Dr. Harish Kumar K S for this research completion and support.


Funding


No funding was received to assist with the preparation of this manuscript.


Ethics declarations


Conflict of interest

The authors have no conflicts of interest to declare that are relevant to the content of this article.


Availability of data and materials


Data sharing is not applicable to this article as no new data were created or analysed in this study.


Author information


Contributions

All authors have equal contribution in the paper and all authors have read and agreed to the published version of the manuscript.


Corresponding author


Rights and permissions


Open Access This article is licensed under a Creative Commons Attribution NoDerivs is a more restrictive license. It allows you to redistribute the material commercially or non-commercially but the user cannot make any changes whatsoever to the original, i.e. no derivatives of the original work. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/


Cite this article


Shwetha B N and Harish Kumar K S, “Prediction of Electricity Consumption in Residential Areas using Temporal Fusion Transformer and Convolutional Neural Network”, Journal of Machine and Computing. doi: 10.53759/7669/jmc202505016.


Copyright


© 2025 Shwetha B N and Harish Kumar K S. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.