IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0340268.html

Short-term forecasting of Indonesia electricity generation using MATLAB based on NARX neural network

Author

Listed:
  • Nicholas Pranata
  • Fahmy Rinanda Saputri

Abstract

Electricity consumption, production, and supply based on fossil fuels have increased due to population growth, urbanization, and technological development, leading to environmental damage in countries like Indonesia. In response to this issue, electricity forecasting is essential. This study applies to a Nonlinear Autoregressive with Exogenous Input (NARX) neural network to forecast one year ahead of electricity generation using MATLAB. Two algorithms are used for comparison: Levenberg-Marquardt and Bayesian Regularization. The data is classified using a standard method of 70%−30% split, with 30 hidden layers and a standard delay of 2-time steps. The results show that both algorithms achieve an R² value above 0.9 and a Mean Absolute Percent Error (MAPE) of under 3%, with the Levenberg-Marquardt algorithm demonstrating marginally superior performance. These results indicate that the model provides valuable insights for forecasting annual electricity generation in Indonesia over a short timeframe.

Suggested Citation

  • Nicholas Pranata & Fahmy Rinanda Saputri, 2026. "Short-term forecasting of Indonesia electricity generation using MATLAB based on NARX neural network," PLOS ONE, Public Library of Science, vol. 21(2), pages 1-11, February.
  • Handle: RePEc:plo:pone00:0340268
    DOI: 10.1371/journal.pone.0340268
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0340268
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0340268&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0340268?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Madeline Hui Li Lee & Yee Chee Ser & Ganeshsree Selvachandran & Pham Huy Thong & Le Cuong & Le Hoang Son & Nguyen Trung Tuan & Vassilis C. Gerogiannis, 2022. "A Comparative Study of Forecasting Electricity Consumption Using Machine Learning Models," Mathematics, MDPI, vol. 10(8), pages 1-23, April.
    2. Mustafa Saglam & Catalina Spataru & Omer Ali Karaman, 2022. "Electricity Demand Forecasting with Use of Artificial Intelligence: The Case of Gokceada Island," Energies, MDPI, vol. 15(16), pages 1-22, August.
    Full references (including those not matched with items on IDEAS)

    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. Mustafa Saglam & Catalina Spataru & Omer Ali Karaman, 2023. "Forecasting Electricity Demand in Turkey Using Optimization and Machine Learning Algorithms," Energies, MDPI, vol. 16(11), pages 1-23, June.
    2. Yuyang Zhang & Lei Cui & Wenqiang Yan, 2025. "Integrating Kolmogorov–Arnold Networks with Time Series Prediction Framework in Electricity Demand Forecasting," Energies, MDPI, vol. 18(6), pages 1-18, March.
    3. Jin, Haowei & Guo, Jue & Tang, Lei & Du, Pei, 2024. "Long-term electricity demand forecasting under low-carbon energy transition: Based on the bidirectional feedback between power demand and generation mix," Energy, Elsevier, vol. 286(C).
    4. Marwa Salah EIDin Fahmy & Farhan Ahmed & Farah Durani & Štefan Bojnec & Mona Mohamed Ghareeb, 2023. "Predicting Electricity Consumption in the Kingdom of Saudi Arabia," Energies, MDPI, vol. 16(1), pages 1-20, January.
    5. Siyu Zhang & Liusan Wu & Ming Cheng & Dongqing Zhang, 2022. "Prediction of Whole Social Electricity Consumption in Jiangsu Province Based on Metabolic FGM (1, 1) Model," Mathematics, MDPI, vol. 10(11), pages 1-14, May.
    6. Gulaydin, Oguzhan & Mourshed, Monjur, 2025. "Machine learning for subnational residential electricity demand forecasting to 2050 under shared socioeconomic pathways: Comparing tree-based, neural and kernel methods," Energy, Elsevier, vol. 336(C).
    7. Chenhua Xu & Zhicheng Tu & Wenjie Zhang & Jian Cen & Jianbin Xiong & Na Wang, 2022. "A Method of Optimizing Cell Voltage Based on STA-LSSVM Model," Mathematics, MDPI, vol. 10(24), pages 1-20, December.

    More about this item

    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:plo:pone00:0340268. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.