IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v18y2026i3p1653-d1858296.html

Blockchain-Enabled Microgrid IoT with Accurate Predictions of Renewable Energy and Electricity Load Using LevySSA-LSTM-GRU

Author

Listed:
  • Yuting Sun

    (School of Electrical and Information Engineering, Anhui University of Technology, Ma’anshan 243002, China
    School of Business, Anhui University of Technology, Ma’anshan 243002, China)

  • Zhipeng Chang

    (School of Business, Anhui University of Technology, Ma’anshan 243002, China)

  • Jianan Yu

    (School of Economics and Management, Anhui Normal University, Wuhu 241000, China)

  • Zongxiang Chen

    (School of Electrical and Information Engineering, Anhui University of Technology, Ma’anshan 243002, China)

Abstract

Smart microgrid is promising in providing a more affordable, efficient, and sustainable energy solution with increasing energy production from distributed renewable sources and diverse household electricity usage with large amounts of connected smart devices. Accurate prediction of the household electricity load and renewable energy production plays a significant role in achieving optimized efficiency of the microgrid. Meanwhile, the privacy and security of data sharing over the smart grid are crucial. This paper proposes a blockchain-enabled microgrid Internet of Things (MIoT) with accurate predictions of renewable energy production and household electricity load. The blockchain framework can guarantee the privacy and security of data sharing over the microgrid. An improved model by stacking long short-term memory (LSTM) and gated recurrent units (GRUs) is proposed for energy generation and electricity load predictions using historical data in the microgrid and the weather forecasting data. The sparrow search algorithm optimized by Levy flights (LevySSA) is used to optimize the hyperparameters of the stacked LSTM-GRU method. The experimental results verify the accuracy and robustness of the proposed method in the prediction of electricity load and renewable energy production for effective smart microgrid operation. For PV forecasting, the proposed LevySSA-LSTM-GRU achieves nRMSE = 0.0535, nMAE = 0.0455, and R 2 = 0.9898, outperforming the strongest baseline. For load forecasting, averaged over four test intervals, it yields nRMSE = 0.1034, nMAE = 0.0836, with R 2 = 0.9340, demonstrating consistent superiority compared with conventional baseline models. Overall, the proposed framework enables secure data sharing and high-accuracy forecasting, offering strong potential to support real-time energy management and operational optimization in smart microgrids.

Suggested Citation

  • Yuting Sun & Zhipeng Chang & Jianan Yu & Zongxiang Chen, 2026. "Blockchain-Enabled Microgrid IoT with Accurate Predictions of Renewable Energy and Electricity Load Using LevySSA-LSTM-GRU," Sustainability, MDPI, vol. 18(3), pages 1-25, February.
  • Handle: RePEc:gam:jsusta:v:18:y:2026:i:3:p:1653-:d:1858296
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/18/3/1653/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/18/3/1653/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:18:y:2026:i:3:p:1653-:d:1858296. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.