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. 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.
    2. 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.
    3. 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.
    4. 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).
    5. Bedi, Jatin & Toshniwal, Durga, 2019. "Deep learning framework to forecast electricity demand," Applied Energy, Elsevier, vol. 238(C), pages 1312-1326.
    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. 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).
    4. 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).
    5. 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).
    6. 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).
    7. 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.
    8. 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.
    9. 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.
    10. 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).
    11. Salma Riad & Naoual Bekkioui & Merlin Simo-Tagne & Ndukwu Macmanus Chinenye & Hamid Ez-Zahraouy, 2025. "Artificial Intelligence Prediction Analysis of Daily Power Photovoltaic Bifacial Modules in Two Moroccan Cities," Sustainability, MDPI, vol. 17(15), pages 1-22, July.
    12. Aguilar, Diego & Quinones, Jhon J. & Pineda, Luis R. & Ostanek, Jason & Castillo, Luciano, 2024. "Optimal scheduling of renewable energy microgrids: A robust multi-objective approach with machine learning-based probabilistic forecasting," Applied Energy, Elsevier, vol. 369(C).
    13. Zhang, Chonghui & Wang, Zhen & Su, Weihua & Dalia, Streimikiene, 2024. "Differentiated power rationing or seasonal power price? Optimal power allocation solution for Chinese industrial enterprises based on the CSW-DEA model," Applied Energy, Elsevier, vol. 353(PB).
    14. 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).
    15. Minghao Ran & Yingchao Wang & Qilu Qin & Jindi Huang & Jiading Jiang, 2025. "An Improved Grey Prediction Model Integrating Periodic Decomposition and Aggregation for Renewable Energy Forecasting: Case Studies of Solar and Wind Power," Sustainability, MDPI, vol. 17(11), pages 1-31, May.
    16. Lu, Shixiang & Xu, Qifa & Jiang, Cuixia & Liu, Yezheng & Kusiak, Andrew, 2022. "Probabilistic load forecasting with a non-crossing sparse-group Lasso-quantile regression deep neural network," Energy, Elsevier, vol. 242(C).
    17. Baratsas, Stefanos G. & Niziolek, Alexander M. & Onel, Onur & Matthews, Logan R. & Floudas, Christodoulos A. & Hallermann, Detlef R. & Sorescu, Sorin M. & Pistikopoulos, Efstratios N., 2022. "A novel quantitative forecasting framework in energy with applications in designing energy-intelligent tax policies," Applied Energy, Elsevier, vol. 305(C).
    18. Zang, Haixiang & Chen, Dianhao & Liu, Jingxuan & Cheng, Lilin & Sun, Guoqiang & Wei, Zhinong, 2024. "Improving ultra-short-term photovoltaic power forecasting using a novel sky-image-based framework considering spatial-temporal feature interaction," Energy, Elsevier, vol. 293(C).
    19. Wang, Sen & Qin, Chaoxu & Feng, Qihong & Javadpour, Farzam & Rui, Zhenhua, 2021. "A framework for predicting the production performance of unconventional resources using deep learning," Applied Energy, Elsevier, vol. 295(C).
    20. Chitalia, Gopal & Pipattanasomporn, Manisa & Garg, Vishal & Rahman, Saifur, 2020. "Robust short-term electrical load forecasting framework for commercial buildings using deep recurrent neural networks," Applied Energy, Elsevier, vol. 278(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.