Skip to main content

Advertisement

Log in

Energy consumption assessment of Internet of Things (IoT) based on machine learning approach

  • Original Paper
  • Published:
Signal, Image and Video Processing Aims and scope Submit manuscript

Abstract

Due to the fact that a huge amount of energy consumption takes place in today’s city buildings, particularly in modern countries, this ought to be highlighted as one of the world’s important issues, which will raise the requirement for developing a variety of evaluation methods so as to advance an optimal predictive device for consuming energies efficiently in buildings. On the one hand, Internet of Things (IoT) and its characteristics are the most popular research areas in real-life applications at present. On the other hand, machine learning (ML) techniques significantly has improved the Internet of things (IoT)’s capability to control energy consumption. To this end, this study, firstly, evaluated five models’ performance in terms of predicting IoT-oriented energy consumption by dividing the studied dataset into 80% train and 20% test. The involved ML models were Adaptive Boosting, Histogram-based Gradient Boosting Machine (HistGBM), K-Nearest Neighbors, Light Gradient Boosting Machine, Extreme Gradient Boosting. The contrastive investigation of the applied models’ evaluation metric criteria demonstrated the supremacy of HistGBM model before optimization process, with the highest R2 and the lowest RMSE. For further investigation, we tuned the parameters of the abovementioned models with Bat optimization algorithm (BOA) for IoT-based energy consumption forecast in city buildings. The results are then examined for the opted model’s hyperparameters using the optimization techniques, obtaining the most accurate and reliable hybrid model. The results confirm that the proposed hybrid BOA-XGBoost approach significantly improves the efficiency of the ML methods’ forecasting. In particular, the achieved highest R2 values by 0.9999 and 0.9979, respectively as well as the lowest RMSE of 0.34 and 4.70 for both training and testing dataset in building energy consumption prediction proved that the hybrid BOA-XGBoost model outperform the other models. The spent testing time for OP-XGBoost is the lowest one by 0.0033, which makes it become the most time-efficient hybrid model. The main point of the obtained results is to underpin the general efficacy of the selected optimizer regarding the accuracy of the delivered consequences.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24
Fig. 25
Fig. 26

Similar content being viewed by others

Availability of data and materials

No datasets were generated or analysed during the current study.

References

  1. Malki, A., Atlam, E.-S., Gad, I.: Machine learning approach of detecting anomalies and forecasting time-series of IoT devices. Alexandria Eng. J. 61(11), 8973–8986 (2022)

    MATH  Google Scholar 

  2. Mazlan, N., Ramli, N.A., Awalin, L., Ismail, M., Kassim, A., Menon, A.: A smart building energy management using internet of things (IoT) and machine learning. Test. Eng. Manag 83, 8083–8090 (2020)

    Google Scholar 

  3. Rashid, R.A., Chin, L., Sarijari, M.A., Sudirman, R., Ide, T.: Machine learning for smart energy monitoring of home appliances using IoT. In: 2019 Eleventh International Conference on Ubiquitous and Future Networks (ICUFN), IEEE, pp. 66–71 (2019)

  4. Abdel-Basset, M., Hawash, H., Chakrabortty, R.K., Ryan, M.: Energy-net: a deep learning approach for smart energy management in iot-based smart cities. IEEE Internet Things J. 8(15), 12422–12435 (2021)

    MATH  Google Scholar 

  5. Alzoubi, A.: Machine learning for intelligent energy consumption in smart homes. Int. J. Comput. Inf. Manuf. 2(1), 66 (2022)

    MATH  Google Scholar 

  6. Ateeq, M., Ishmanov, F., Afzal, M.K., Naeem, M.: Multi-parametric analysis of reliability and energy consumption in IoT: a deep learning approach. Sensors 19(2), 309 (2019)

    MATH  Google Scholar 

  7. Azar, J., Makhoul, A., Barhamgi, M., Couturier, R.: An energy efficient IoT data compression approach for edge machine learning. Futur. Gener. Comput. Syst. 96, 168–175 (2019)

    Google Scholar 

  8. Fard, R.H., Hosseini, S.: Machine learning algorithms for prediction of energy consumption and IoT modeling in complex networks. Microprocess. Microsyst. 89, 104423 (2022)

    MATH  Google Scholar 

  9. Ghazal, T.M.: Energy demand forecasting using fused machine learning approaches. Intell. Autom. Soft Comput. 31(1), 539–553 (2022)

    MATH  Google Scholar 

  10. Machorro-Cano, I., Alor-Hernández, G., Paredes-Valverde, M.A., Rodríguez-Mazahua, L., Sánchez-Cervantes, J.L., Olmedo-Aguirre, J.O.: HEMS-IoT: a big data and machine learning-based smart home system for energy saving. Energies 13(5), 1097 (2020)

    Google Scholar 

  11. Saba, T., Haseeb, K., Shah, A.A., Rehman, A., Tariq, U., Mehmood, Z.: A machine-learning-based approach for autonomous IoT security. IT Prof. 23(3), 69–75 (2021)

    MATH  Google Scholar 

  12. Shafi, M.K.I., Sultan, M.R., Rahman, S.M.M., Hoque, M.M.: IoT Based Smart Home: A Machine Learning Approach. In: 2021 24th International Conference on Computer and Information Technology (ICCIT), IEEE, pp. 1–6 (2021)

  13. Shah, S.F.A., et al.: The role of machine learning and the internet of things in smart buildings for energy efficiency. Appl. Sci. 12(15), 7882 (2022)

    MATH  Google Scholar 

  14. Majumdar, P., Bhattacharya, D., Mitra, S., Bhushan, B.: Application of green IoT in agriculture 4.0 and beyond: requirements, challenges and research trends in the era of 5G, LPWANs and Internet of UAV Things. Wirel. Pers. Commun. 131(3), 1767–1816 (2023)

    MATH  Google Scholar 

  15. Majumdar, P., Mitra, S.: Blockchain technology for society 4.0: a comprehensive review of key applications, requirement analysis, research trends, challenges and future avenues. Cluster Comput. 27, 1–23 (2024)

    MATH  Google Scholar 

  16. Zekić-Sušac, M., Mitrović, S., Has, A.: Machine learning based system for managing energy efficiency of public sector as an approach towards smart cities. Int. J. Inf. Manage. 58, 102074 (2021)

    MATH  Google Scholar 

  17. Ghazal, T.M., et al.: IoT for smart cities: machine learning approaches in smart healthcare—A review. Futur. Internet 13(8), 218 (2021)

    MATH  Google Scholar 

  18. Smpokos, G., Elshatshat, M.A., Lioumpas, A., Iliopoulos, I.: On the energy consumption forecasting of data centers based on weather conditions: Remote sensing and machine learning approach. In: 2018 11th International Symposium on Communication Systems, Networks and Digital Signal Processing (CSNDSP), IEEE, pp. 1–6 (2018)

  19. Tekin, N., Acar, A., Aris, A., Uluagac, A.S., Gungor, V.C.: Energy consumption of on-device machine learning models for IoT intrusion detection. Internet Things 21, 100670 (2023)

    MATH  Google Scholar 

  20. Ventura, D., Casado-Mansilla, D., López-de-Armentia, J., Garaizar, P., López-de-Ipina, D., Catania, V.: ARIIMA: a real IoT implementation of a machine-learning architecture for reducing energy consumption. In: Ubiquitous Computing and Ambient Intelligence. Personalisation and User Adapted Services: 8th International Conference, UCAmI 2014, Belfast, UK, December 2–5, 2014. Proceedings 8, Springer, pp. 444–451 (2014)

  21. Verma, A., Ranga, V.: Machine learning based intrusion detection systems for IoT applications. Wirel. Pers. Commun. 111(4), 2287–2310 (2020)

    MATH  Google Scholar 

  22. Tahsien, S.M., Karimipour, H., Spachos, P.: Machine learning based solutions for security of Internet of Things (IoT): a survey. J. Netw. Comput. Appl. 161, 102630 (2020)

    Google Scholar 

  23. Leiprecht, S., Behrens, F., Faber, T., Finkenrath, M.: A comprehensive thermal load forecasting analysis based on machine learning algorithms. Energy Rep. 7, 319–326 (2021)

    Google Scholar 

  24. Peng, H., Xiong, J., Pi, C., Zhou, X., Wu, Z.: A dynamic multi-objective optimization evolutionary algorithm with adaptive boosting. Swarm Evol. Comput. 89, 101621 (2024)

    MATH  Google Scholar 

  25. HistGradientBoostingClassifier in Sklearn. Accessed 12 Feb 2024. [Online]. Available: https://www.geeksforgeeks.org/histgradientboostingclassifier-in-sklearn/

  26. K-Nearest Neighbor(KNN) Algorithm. Accessed 12 Feb 2021. [Online]. Available: https://www.geeksforgeeks.org/k-nearest-neighbours/

Download references

Acknowledgements

We would like to take this opportunity to acknowledge that there are no individuals or organizations that require acknowledgment for their contributions to this work.

Funding

This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.

Author information

Authors and Affiliations

Authors

Contributions

HW performed Data collection. simulation and analysis. ZD evaluate the first draft of the manuscript, editing and writing.

Corresponding author

Correspondence to Zhizheng Dang.

Ethics declarations

Conflict of interest

The authors declare no competing interests.

Ethical approval

The research paper has received ethical approval from the institutional review board, ensuring the protection of participants’ rights and compliance with the relevant ethical guidelines.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wang, H., Dang, Z. Energy consumption assessment of Internet of Things (IoT) based on machine learning approach. SIViP 19, 420 (2025). https://doi.org/10.1007/s11760-025-03947-6

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11760-025-03947-6

Keywords