Research Article

IoT-Based Energy Consumption Prediction Using Transformers

Volume: 11 Number: 2 June 29, 2024
EN

IoT-Based Energy Consumption Prediction Using Transformers

Abstract

With the advancement of various IoT-based systems, the amount of data is steadily increasing. The increase of data on a daily basis is essential for decision-makers to assess current situations and formulate future policies. Among the various types of data, time-series data presents a challenging relationship between current and future dependencies. Time-series prediction aims to forecast future values of target variables by leveraging insights gained from past data points. Recent advancements in deep learning-based algorithms have surpassed traditional machine learning-based algorithms for time-series in IoT systems. In this study, we employ Enc & Dec Transformer, the latest advancements in neural networks for time-series prediction problems. The obtained results were compared with Encoder-only and Decoder-only Transformer blocks as well as well-known recurrent based algorithms, including 1D-CNN, RNN, LSTM, and GRU. To validate our approach, we utilize three different univariate time-series datasets collected on an hourly basis, focusing on energy consumption within IoT systems. Our results demonstrate that our proposed Transformer model outperforms its counterparts, achieving a minimum Mean Squared Error (MSE) of 0.020 on small, 0.008 on medium, and 0.006 on large-sized datasets.

Keywords

References

  1. Adhikari, R., & Agrawal, R.K. (2013). An Introductory Study on Time Series Modeling and Forecasting. ArXiv, abs/1302.6613. https://doi.org/10.48550/arXiv.1302.6613
  2. Afanasieva, T., & Platov, P. (2019). The Study of Recurrent Neuron Networks based on GRU and LSTM in Time Series Forecasting. In ITISE 2019. Proceedings of papers. Vol 1 (pp. 12). Granada, Spain: International Conference on Time Series and Forecasting. https://itise.ugr.es/ITISE2019_Vol1.pdf
  3. Akiba, T., Sano, S., Yanase, T., Ohta, T., & Koyama, M. (2019). Optuna: A Next-generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (pp. 2623–2631). Association for Computing Machinery. https://doi.org/10.1145/3292500.3330701
  4. Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Hoboken, NJ: John Wiley & Sons Inc. https://doi.org/10.1111/jtsa.12194
  5. Cao, L. (2003). Support vector machines experts for time series forecasting. Neurocomputing, 51, 321-339. https://doi.org/10.1016/S0925-2312(02)00577-5
  6. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., & Zagoruyko, S. (2020). End-to-End Object Detection with Transformers. CoRR, abs/2005.12872. https://doi.org/10.48550/arXiv.2005.12872
  7. Cochrane, J. H. (1997). Time Series for Macroeconomics and Finance. Graduate School of Business, University of Chicago. Retrieved from http://www.fsb.miamioh.edu/lij14/672_notes_Cochrane
  8. Coulibaly, P., & Baldwin, C. K. (2005). Nonstationary hydrological time series forecasting using nonlinear dynamic methods. Journal of Hydrology, 307(1–4), 164-174. https://doi.org/10.1016/j.jhydrol.2004.10.008

Details

Primary Language

English

Subjects

Deep Learning

Journal Section

Research Article

Early Pub Date

June 5, 2024

Publication Date

June 29, 2024

Submission Date

February 15, 2024

Acceptance Date

April 3, 2024

Published in Issue

Year 2024 Volume: 11 Number: 2

APA
Alıoghlı, A. A., & Yıldırım Okay, F. (2024). IoT-Based Energy Consumption Prediction Using Transformers. Gazi University Journal of Science Part A: Engineering and Innovation, 11(2), 304-323. https://doi.org/10.54287/gujsa.1438011
AMA
1.Alıoghlı AA, Yıldırım Okay F. IoT-Based Energy Consumption Prediction Using Transformers. GU J Sci, Part A. 2024;11(2):304-323. doi:10.54287/gujsa.1438011
Chicago
Alıoghlı, Abdul Amir, and Feyza Yıldırım Okay. 2024. “IoT-Based Energy Consumption Prediction Using Transformers”. Gazi University Journal of Science Part A: Engineering and Innovation 11 (2): 304-23. https://doi.org/10.54287/gujsa.1438011.
EndNote
Alıoghlı AA, Yıldırım Okay F (June 1, 2024) IoT-Based Energy Consumption Prediction Using Transformers. Gazi University Journal of Science Part A: Engineering and Innovation 11 2 304–323.
IEEE
[1]A. A. Alıoghlı and F. Yıldırım Okay, “IoT-Based Energy Consumption Prediction Using Transformers”, GU J Sci, Part A, vol. 11, no. 2, pp. 304–323, June 2024, doi: 10.54287/gujsa.1438011.
ISNAD
Alıoghlı, Abdul Amir - Yıldırım Okay, Feyza. “IoT-Based Energy Consumption Prediction Using Transformers”. Gazi University Journal of Science Part A: Engineering and Innovation 11/2 (June 1, 2024): 304-323. https://doi.org/10.54287/gujsa.1438011.
JAMA
1.Alıoghlı AA, Yıldırım Okay F. IoT-Based Energy Consumption Prediction Using Transformers. GU J Sci, Part A. 2024;11:304–323.
MLA
Alıoghlı, Abdul Amir, and Feyza Yıldırım Okay. “IoT-Based Energy Consumption Prediction Using Transformers”. Gazi University Journal of Science Part A: Engineering and Innovation, vol. 11, no. 2, June 2024, pp. 304-23, doi:10.54287/gujsa.1438011.
Vancouver
1.Abdul Amir Alıoghlı, Feyza Yıldırım Okay. IoT-Based Energy Consumption Prediction Using Transformers. GU J Sci, Part A. 2024 Jun. 1;11(2):304-23. doi:10.54287/gujsa.1438011

Cited By