IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v15y2022i14p4993-d858451.html
   My bibliography  Save this article

Transformer-Based Model for Electrical Load Forecasting

Author

Listed:
  • Alexandra L’Heureux

    (Department of Electrical and Computer Engineering, The University of Western Ontario, London, ON N6A 5B9, Canada)

  • Katarina Grolinger

    (Department of Electrical and Computer Engineering, The University of Western Ontario, London, ON N6A 5B9, Canada)

  • Miriam A. M. Capretz

    (Department of Electrical and Computer Engineering, The University of Western Ontario, London, ON N6A 5B9, Canada)

Abstract

Amongst energy-related CO 2 emissions, electricity is the largest single contributor, and with the proliferation of electric vehicles and other developments, energy use is expected to increase. Load forecasting is essential for combating these issues as it balances demand and production and contributes to energy management. Current state-of-the-art solutions such as recurrent neural networks (RNNs) and sequence-to-sequence algorithms (Seq2Seq) are highly accurate, but most studies examine them on a single data stream. On the other hand, in natural language processing (NLP), transformer architecture has become the dominant technique, outperforming RNN and Seq2Seq algorithms while also allowing parallelization. Consequently, this paper proposes a transformer-based architecture for load forecasting by modifying the NLP transformer workflow, adding N-space transformation, and designing a novel technique for handling contextual features. Moreover, in contrast to most load forecasting studies, we evaluate the proposed solution on different data streams under various forecasting horizons and input window lengths in order to ensure result reproducibility. Results show that the proposed approach successfully handles time series with contextual data and outperforms the state-of-the-art Seq2Seq models.

Suggested Citation

  • Alexandra L’Heureux & Katarina Grolinger & Miriam A. M. Capretz, 2022. "Transformer-Based Model for Electrical Load Forecasting," Energies, MDPI, vol. 15(14), pages 1-23, July.
  • Handle: RePEc:gam:jeners:v:15:y:2022:i:14:p:4993-:d:858451
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/15/14/4993/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/15/14/4993/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Zhao, Huiru & Guo, Sen, 2016. "An optimized grey model for annual power load forecasting," Energy, Elsevier, vol. 107(C), pages 272-286.
    2. Jessica Walther & Matthias Weigold, 2021. "A Systematic Review on Predicting and Forecasting the Electrical Energy Consumption in the Manufacturing Industry," Energies, MDPI, vol. 14(4), pages 1-24, February.
    3. Fekri, Mohammad Navid & Patel, Harsh & Grolinger, Katarina & Sharma, Vinay, 2021. "Deep learning for load forecasting with smart meter data: Online Adaptive Recurrent Neural Network," Applied Energy, Elsevier, vol. 282(PA).
    4. Yang, Wangwang & Shi, Jing & Li, Shujian & Song, Zhaofang & Zhang, Zitong & Chen, Zexu, 2022. "A combined deep learning load forecasting model of single household resident user considering multi-time scale electricity consumption behavior," Applied Energy, Elsevier, vol. 307(C).
    5. Hu, Yi & Qu, Boyang & Wang, Jie & Liang, Jing & Wang, Yanli & Yu, Kunjie & Li, Yaxin & Qiao, Kangjia, 2021. "Short-term load forecasting using multimodal evolutionary algorithm and random vector functional link network based ensemble learning," Applied Energy, Elsevier, vol. 285(C).
    6. Cai, Mengmeng & Pipattanasomporn, Manisa & Rahman, Saifur, 2019. "Day-ahead building-level load forecasts using deep learning vs. traditional time-series techniques," Applied Energy, Elsevier, vol. 236(C), pages 1078-1088.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jakubek, Dariusz & Ocłoń, Paweł & Nowak-Ocłoń, Marzena & Sułowicz, Maciej & Varbanov, Petar Sabev & Klemeš, Jiří Jaromír, 2023. "Mathematical modelling and model validation of the heat losses in district heating networks," Energy, Elsevier, vol. 267(C).
    2. Aoqi Xu & Man-Wen Tian & Behnam Firouzi & Khalid A. Alattas & Ardashir Mohammadzadeh & Ebrahim Ghaderpour, 2022. "A New Deep Learning Restricted Boltzmann Machine for Energy Consumption Forecasting," Sustainability, MDPI, vol. 14(16), pages 1-12, August.
    3. Raiden Skala & Mohamed Ahmed T. A. Elgalhud & Katarina Grolinger & Syed Mir, 2023. "Interval Load Forecasting for Individual Households in the Presence of Electric Vehicle Charging," Energies, MDPI, vol. 16(10), pages 1-21, May.
    4. Songjiang Li & Wenxin Zhang & Peng Wang, 2023. "TS2ARCformer: A Multi-Dimensional Time Series Forecasting Framework for Short-Term Load Prediction," Energies, MDPI, vol. 16(15), pages 1-22, August.
    5. Ze Wu & Feifan Pan & Dandan Li & Hao He & Tiancheng Zhang & Shuyun Yang, 2022. "Prediction of Photovoltaic Power by the Informer Model Based on Convolutional Neural Network," Sustainability, MDPI, vol. 14(20), pages 1-16, October.
    6. Pilotti, L. & Colombari, M. & Castelli, A.F. & Binotti, M. & Giaconia, A. & Martelli, E., 2023. "Simultaneous design and operational optimization of hybrid CSP-PV plants," Applied Energy, Elsevier, vol. 331(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Li, Yiyan & Zhang, Si & Hu, Rongxing & Lu, Ning, 2021. "A meta-learning based distribution system load forecasting model selection framework," Applied Energy, Elsevier, vol. 294(C).
    2. Stefan Ungureanu & Vasile Topa & Andrei Cristinel Cziker, 2021. "Analysis for Non-Residential Short-Term Load Forecasting Using Machine Learning and Statistical Methods with Financial Impact on the Power Market," Energies, MDPI, vol. 14(21), pages 1-26, October.
    3. Ping Ma & Shuhui Cui & Mingshuai Chen & Shengzhe Zhou & Kai Wang, 2023. "Review of Family-Level Short-Term Load Forecasting and Its Application in Household Energy Management System," Energies, MDPI, vol. 16(15), pages 1-17, August.
    4. Diogo M. F. Izidio & Paulo S. G. de Mattos Neto & Luciano Barbosa & João F. L. de Oliveira & Manoel Henrique da Nóbrega Marinho & Guilherme Ferretti Rissi, 2021. "Evolutionary Hybrid System for Energy Consumption Forecasting for Smart Meters," Energies, MDPI, vol. 14(7), pages 1-19, March.
    5. Kong, Xiangyu & Li, Chuang & Wang, Chengshan & Zhang, Yusen & Zhang, Jian, 2020. "Short-term electrical load forecasting based on error correction using dynamic mode decomposition," Applied Energy, Elsevier, vol. 261(C).
    6. Fang, Lei & He, Bin, 2023. "A deep learning framework using multi-feature fusion recurrent neural networks for energy consumption forecasting," Applied Energy, Elsevier, vol. 348(C).
    7. Jonathan Berrisch & Micha{l} Narajewski & Florian Ziel, 2022. "High-Resolution Peak Demand Estimation Using Generalized Additive Models and Deep Neural Networks," Papers 2203.03342, arXiv.org, revised Nov 2022.
    8. Ibrahim, Muhammad Sohail & Dong, Wei & Yang, Qiang, 2020. "Machine learning driven smart electric power systems: Current trends and new perspectives," Applied Energy, Elsevier, vol. 272(C).
    9. Wei, Ziqing & Zhang, Tingwei & Yue, Bao & Ding, Yunxiao & Xiao, Ran & Wang, Ruzhu & Zhai, Xiaoqiang, 2021. "Prediction of residential district heating load based on machine learning: A case study," Energy, Elsevier, vol. 231(C).
    10. Hyunsoo Kim & Jiseok Jeong & Changwan Kim, 2022. "Daily Peak-Electricity-Demand Forecasting Based on Residual Long Short-Term Network," Mathematics, MDPI, vol. 10(23), pages 1-17, November.
    11. Wang, Qiang & Jiang, Feng, 2019. "Integrating linear and nonlinear forecasting techniques based on grey theory and artificial intelligence to forecast shale gas monthly production in Pennsylvania and Texas of the United States," Energy, Elsevier, vol. 178(C), pages 781-803.
    12. Wang, Ran & Lu, Shilei & Feng, Wei, 2020. "A novel improved model for building energy consumption prediction based on model integration," Applied Energy, Elsevier, vol. 262(C).
    13. Zhu, Jizhong & Dong, Hanjiang & Zheng, Weiye & Li, Shenglin & Huang, Yanting & Xi, Lei, 2022. "Review and prospect of data-driven techniques for load forecasting in integrated energy systems," Applied Energy, Elsevier, vol. 321(C).
    14. Ding, Song, 2018. "A novel self-adapting intelligent grey model for forecasting China's natural-gas demand," Energy, Elsevier, vol. 162(C), pages 393-407.
    15. Lu, Renzhi & Bai, Ruichang & Ding, Yuemin & Wei, Min & Jiang, Junhui & Sun, Mingyang & Xiao, Feng & Zhang, Hai-Tao, 2021. "A hybrid deep learning-based online energy management scheme for industrial microgrid," Applied Energy, Elsevier, vol. 304(C).
    16. Natei Ermias Benti & Mesfin Diro Chaka & Addisu Gezahegn Semie, 2023. "Forecasting Renewable Energy Generation with Machine Learning and Deep Learning: Current Advances and Future Prospects," Sustainability, MDPI, vol. 15(9), pages 1-33, April.
    17. Fachrizal Aksan & Yang Li & Vishnu Suresh & Przemysław Janik, 2023. "Multistep Forecasting of Power Flow Based on LSTM Autoencoder: A Study Case in Regional Grid Cluster Proposal," Energies, MDPI, vol. 16(13), pages 1-20, June.
    18. Marian Kampik & Marcin Fice & Adam Pilśniak & Krzysztof Bodzek & Anna Piaskowy, 2023. "An Analysis of Energy Consumption in Small- and Medium-Sized Buildings," Energies, MDPI, vol. 16(3), pages 1-21, February.
    19. Moral-Carcedo, Julián & Pérez-García, Julián, 2017. "Integrating long-term economic scenarios into peak load forecasting: An application to Spain," Energy, Elsevier, vol. 140(P1), pages 682-695.
    20. Wang, Lin & Hu, Huanling & Ai, Xue-Yi & Liu, Hua, 2018. "Effective electricity energy consumption forecasting using echo state network improved by differential evolution algorithm," Energy, Elsevier, vol. 153(C), pages 801-815.

    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:jeners:v:15:y:2022:i:14:p:4993-:d:858451. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.