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

Enhancing Photovoltaic Energy Output Predictions Using ANN and DNN: A Hyperparameter Optimization Approach

Author

Listed:
  • Atıl Emre Cosgun

    (Faculty of Engineering, Aksaray University, 68100 Aksaray, Türkiye)

Abstract

This study investigates the use of artificial neural networks (ANNs) and deep neural networks (DNNs) for estimating photovoltaic (PV) energy output, with a particular focus on hyperparameter tuning. Supervised regression for photovoltaic (PV) direct current power prediction was conducted using only sensor-based inputs (PanelTemp, Irradiance, AmbientTemp, Humidity), together with physically motivated-derived features (ΔT, IrradianceEff, IrradianceSq, Irradiance × ΔT). Samples acquired under very low irradiance (<50 W m −2 ) were excluded. Predictors were standardized with training-set statistics (z-score), and the target variable was modeled in log space to stabilize variance. A shallow artificial neural network (ANN; single hidden layer, widths {4–32}) was compared with deeper multilayer perceptrons (DNN; stacks {16 8}, {32 16}, {64 32}, {128 64}, {128 64 32}). Hyperparameters were selected with a grid search using validation mean squared error in log space with early stopping; Bayesian optimization was additionally applied to the ANN. Final models were retrained and evaluated on a held-out test set after inverse transformation to watts. Test performance was obtained as MSE, RMSE, MAE, R 2 , and MAPE for the ANN and DNN. Hence, superiority in absolute/squared error and explained variance was exhibited by the ANN, whereas lower relative error was achieved by the DNN with a marginal MAE advantage. Ablation studies showed that moderate depth can be beneficial (e.g., two-layer variants), and a simple bootstrap ensemble improved robustness. In summary, the ANN demonstrated superior performance in terms of absolute-error accuracy, whereas the DNN exhibited better consistency with relative-error accuracy.

Suggested Citation

  • Atıl Emre Cosgun, 2025. "Enhancing Photovoltaic Energy Output Predictions Using ANN and DNN: A Hyperparameter Optimization Approach," Energies, MDPI, vol. 18(17), pages 1-19, August.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:17:p:4564-:d:1736155
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/17/4564/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/17/4564/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Vu, Ba Hau & Chung, Il-Yop, 2022. "Optimal generation scheduling and operating reserve management for PV generation using RNN-based forecasting models for stand-alone microgrids," Renewable Energy, Elsevier, vol. 195(C), pages 1137-1154.
    2. Wen-Chi Kuo & Chiun-Hsun Chen & Sih-Yu Chen & Chi-Chuan Wang, 2022. "Deep Learning Neural Networks for Short-Term PV Power Forecasting via Sky Image Method," Energies, MDPI, vol. 15(13), pages 1-17, June.
    3. Bedi, Jatin & Toshniwal, Durga, 2019. "Deep learning framework to forecast electricity demand," Applied Energy, Elsevier, vol. 238(C), pages 1312-1326.
    4. Javier López Gómez & Ana Ogando Martínez & Francisco Troncoso Pastoriza & Lara Febrero Garrido & Enrique Granada Álvarez & José Antonio Orosa García, 2020. "Photovoltaic Power Prediction Using Artificial Neural Networks and Numerical Weather Data," Sustainability, MDPI, vol. 12(24), pages 1-18, December.
    5. Rai, Amit & Shrivastava, Ashish & Jana, Kartick C., 2023. "Differential attention net: Multi-directed differential attention based hybrid deep learning model for solar power forecasting," Energy, Elsevier, vol. 263(PC).
    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. Younes Zahraoui & Tarmo Korõtko & Argo Rosin & Saad Mekhilef & Mehdi Seyedmahmoudian & Alex Stojcevski & Ibrahim Alhamrouni, 2024. "AI Applications to Enhance Resilience in Power Systems and Microgrids—A Review," Sustainability, MDPI, vol. 16(12), pages 1-35, June.
    2. Lim, Juin Yau & Safder, Usman & How, Bing Shen & Ifaei, Pouya & Yoo, Chang Kyoo, 2021. "Nationwide sustainable renewable energy and Power-to-X deployment planning in South Korea assisted with forecasting model," Applied Energy, Elsevier, vol. 283(C).
    3. Mariusz Niekurzak & Wojciech Lewicki & Hasan Huseyin Coban & Agnieszka Brelik, 2023. "Conceptual Design of a Semi-Automatic Process Line for Recycling Photovoltaic Panels as a Way to Ecological Sustainable Production," Sustainability, MDPI, vol. 15(3), pages 1-20, February.
    4. Gao, Yuan & Miyata, Shohei & Akashi, Yasunori, 2022. "Interpretable deep learning models for hourly solar radiation prediction based on graph neural network and attention," Applied Energy, Elsevier, vol. 321(C).
    5. Saima Akhtar & Sulman Shahzad & Asad Zaheer & Hafiz Sami Ullah & Heybet Kilic & Radomir Gono & Michał Jasiński & Zbigniew Leonowicz, 2023. "Short-Term Load Forecasting Models: A Review of Challenges, Progress, and the Road Ahead," Energies, MDPI, vol. 16(10), pages 1-29, May.
    6. Yang, Yanru & Liu, Yu & Zhang, Yihang & Shu, Shaolong & Zheng, Junsheng, 2025. "DEST-GNN: A double-explored spatio-temporal graph neural network for multi-site intra-hour PV power forecasting," Applied Energy, Elsevier, vol. 378(PA).
    7. Lu, Hongfang & Ma, Xin & Ma, Minda, 2021. "A hybrid multi-objective optimizer-based model for daily electricity demand prediction considering COVID-19," Energy, Elsevier, vol. 219(C).
    8. Ahmad, Tanveer & Chen, Huanxin, 2019. "Deep learning for multi-scale smart energy forecasting," Energy, Elsevier, vol. 175(C), pages 98-112.
    9. Diaa Salman & Mehmet Kusaf, 2021. "Short-Term Unit Commitment by Using Machine Learning to Cover the Uncertainty of Wind Power Forecasting," Sustainability, MDPI, vol. 13(24), pages 1-22, December.
    10. 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).
    11. Atif Maqbool Khan & Artur Wyrwa, 2024. "A Survey of Quantitative Techniques in Electricity Consumption—A Global Perspective," Energies, MDPI, vol. 17(19), pages 1-38, September.
    12. Md Tariqul Islam & M. J. Hossain, 2023. "Artificial Intelligence for Hosting Capacity Analysis: A Systematic Literature Review," Energies, MDPI, vol. 16(4), pages 1-33, February.
    13. Zeng, Sheng & Su, Bin & Zhang, Minglong & Gao, Yuan & Liu, Jun & Luo, Song & Tao, Qingmei, 2021. "Analysis and forecast of China's energy consumption structure," Energy Policy, Elsevier, vol. 159(C).
    14. Zizhen Cheng & Li Wang & Yumeng Yang, 2023. "A Hybrid Feature Pyramid CNN-LSTM Model with Seasonal Inflection Month Correction for Medium- and Long-Term Power Load Forecasting," Energies, MDPI, vol. 16(7), pages 1-18, March.
    15. 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.
    16. Peng, Shiliang & Fan, Lin & Zhang, Li & Su, Huai & He, Yuxuan & He, Qian & Wang, Xiao & Yu, Dejun & Zhang, Jinjun, 2024. "Spatio-temporal prediction of total energy consumption in multiple regions using explainable deep neural network," Energy, Elsevier, vol. 301(C).
    17. Isaac Gallardo & Daniel Amor & Álvaro Gutiérrez, 2023. "Recent Trends in Real-Time Photovoltaic Prediction Systems," Energies, MDPI, vol. 16(15), pages 1-17, July.
    18. Meng, Qinglong & Wei, Ying'an & Fan, Jingjing & Li, Yanbo & Zhao, Fan & Lei, Yu & Sun, Hang & Jiang, Le & Yu, Lingli, 2024. "Peak regulation strategies for ground source heat pump demand response of based on load forecasting: A case study of rural building in China," Renewable Energy, Elsevier, vol. 224(C).
    19. Tang, Qinghu & Guo, Hongye & Zheng, Kedi & Chen, Qixin, 2024. "Forecasting individual bids in real electricity markets through machine learning framework," Applied Energy, Elsevier, vol. 363(C).
    20. 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).

    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:jeners:v:18:y:2025:i:17:p:4564-:d:1736155. 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.