Skip to main content

An Ensemble Learning Approach for Energy Demand Forecasting in Microgrids Using Fog Computing

  • Conference paper
  • First Online:
Intelligent and Fuzzy Techniques for Emerging Conditions and Digital Transformation (INFUS 2021)


Increased usage of smart meters enables information exchange between customers and utility providers in smart grid systems. Nowadays, the cloud-centric architecture has become a bottleneck for the decentralized and data-driven microgrids evolving from centralized Smart grids. Hence, fog computing is an appropriate paradigm to build distributed, latency-aware, and privacy-preserving energy demand applications in microgrid systems. In this work, we proposed a 3-tier architecture of a microgrid energy demand management system comprising edge, fog, and cloud layers. We set up a simulation environment where Raspberry Pi devices act as fog nodes and resource-efficient Docker applications run on these nodes. As the main contribution of the work, we developed a short-term load forecasting application based on an ensemble model that integrates support vector regression (SVR) and long-short term memory (LSTM) by leveraging the potential of distributed and low-latency fog nodes for complex models. We evaluated the forecasting model deployed in a fog-based simulation environment using the public REFIT Electrical Load dataset. We also tested the deployed fog-based simulation environment based on latency and execution time metrics.

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

Access this chapter

USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions


  1. Ghasempour, A.: Optimum number of aggregators based on power consumption, cost, and network lifetime in advanced metering infrastructure architecture for Smart Grid Internet of Things. In: 13th CCNC, pp. 295–296 (2016)

    Google Scholar 

  2. Jalali, F., Vishwanath, A., de Hoog, J., Suits, F.: Interconnecting Fog computing and microgrids for greening IoT. IEEE ISGT-Asia, pp. 693–698 (2016)

    Google Scholar 

  3. Hernandez, L., Carlos, B., Javier, M.A., et al.: A survey on electric power demand forecasting: future trends in smart grids. microgrids and smart buildings. IEEE Commun. Surv. Tutorials 16(3), 1460–1495 (2014)

    Google Scholar 

  4. Bera, S., Misra, S., Rodrigues, J.J.P.C.: Cloud computing applications for smart grid: a survey. IEEE Trans. Parallel Distrib. Syst. 26(5), 1477–1494 (2015)

    Article  Google Scholar 

  5. Jaiswal, R., Davidrajuh, R., Rong, C.: Fog computing for realizing smart neighborhoods in smart grids. Computers 9, 76 (2020)

    Article  Google Scholar 

  6. Okay, F.Y., Ozdemir, S.: A fog computing based smart grid model. In: ISNCC, pp. 1–6 (2016)

    Google Scholar 

  7. Samie, F., Bauer, L., Henkel, J.: Edge computing for smart grid: an overview on architectures and solutions: design challenges and paradigms, power systems, pp. 21–42 (2019)

    Google Scholar 

  8. Hong, W.: Intelligent Energy Demand Forecasting. Springer, London (2013)

    Google Scholar 

  9. Petrican, T., Andreea, V.V., Marcel, A., et al.: Evaluating forecasting techniques for integrating household energy prosumers into smart grids. In: IEEE 14th ICCP, pp. 79–85 (2018)

    Google Scholar 

  10. Wang, L., Mao, S., Wilamowski, B.: Short-term load forecasting with LSTM based ensemble learning, ithings. In: IEEE GreenCom, IEEE CPSCom and IEEE Smart Data, pp. 793–800 (2019)

    Google Scholar 

  11. Tang, L., Yi, Y., Peng, Y.: An ensemble deep learning model for short-term load forecasting based on ARIMA and LSTM. In: IEEE SmartGridComm, pp. 1–6 (2019)

    Google Scholar 

  12. Svorobej, S., Takako, P., Bendechache, M., et al.: Simulating fog and edge computing scenarios: an overview and research challenges. Future Internet 11(3), 55 (2019)

    Article  Google Scholar 

  13. Xu, Q., Zhang, J.: piFogBed: a fog computing testbed based on Raspberry Pi. In: IEEE 38th IPCCC, pp. 1–8 (2019)

    Google Scholar 

  14. Sonmez, C., Ozgovde, A., Ersoy, C.: EdgeCloudSim: An environment for performance evaluation of Edge Computing systems. Presented at the (2017)

    Google Scholar 

  15. Naas, M.I., Boukhobza, J., Raipin Parvedy, P., Lemarchand, L.: An extension to iFogSim to enable the design of data placement strategies. In: IEEE 2nd ICFEC, pp. 1–8 (2018)

    Google Scholar 

  16. Murray, D., Stankovic, L., Stankovic, V.: An electrical load measurements dataset of United Kingdom households from a two-year longitudinal study. Sci. Data 4, 160122 (2017)

    Google Scholar 

Download references

Author information

Authors and Affiliations


Corresponding author

Correspondence to Gökhan İnce .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Keskin, T., İnce, G. (2022). An Ensemble Learning Approach for Energy Demand Forecasting in Microgrids Using Fog Computing. In: Kahraman, C., Cebi, S., Cevik Onar, S., Oztaysi, B., Tolga, A.C., Sari, I.U. (eds) Intelligent and Fuzzy Techniques for Emerging Conditions and Digital Transformation. INFUS 2021. Lecture Notes in Networks and Systems, vol 308. Springer, Cham.

Download citation

Publish with us

Policies and ethics