IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0315955.html
   My bibliography  Save this article

Solar energy prediction through machine learning models: A comparative analysis of regressor algorithms

Author

Listed:
  • Huu Nam Nguyen
  • Quoc Thanh Tran
  • Canh Tung Ngo
  • Duc Dam Nguyen
  • Van Quan Tran

Abstract

Solar energy generated from photovoltaic panel is an important energy source that brings many benefits to people and the environment. This is a growing trend globally and plays an increasingly important role in the future of the energy industry. However, it intermittent nature and potential for distributed system use require accurate forecasting to balance supply and demand, optimize energy storage, and manage grid stability. In this study, 5 machine learning models were used including: Gradient Boosting Regressor (GB), XGB Regressor (XGBoost), K-neighbors Regressor (KNN), LGBM Regressor (LightGBM), and CatBoost Regressor (CatBoost). Leveraging a dataset of 21045 samples, factors like Humidity, Ambient temperature, Wind speed, Visibility, Cloud ceiling and Pressure serve as inputs for constructing these machine learning models in forecasting solar energy. Model accuracy is meticulously assessed and juxtaposed using metrics such as coefficient of determination (R2), Root Mean Square Error (RMSE), and Mean Absolute Error (MAE). The results show that the CatBoost model emerges as the frontrunner in predicting solar energy, with training values of R2 value of 0.608, RMSE of 4.478 W and MAE of 3.367 W and the testing value is R2 of 0.46, RMSE of 4.748 W and MAE of 3.583 W. SHAP analysis reveal that ambient temperature and humidity have the greatest influences on the value solar energy generated from photovoltaic panel.

Suggested Citation

  • Huu Nam Nguyen & Quoc Thanh Tran & Canh Tung Ngo & Duc Dam Nguyen & Van Quan Tran, 2025. "Solar energy prediction through machine learning models: A comparative analysis of regressor algorithms," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-23, January.
  • Handle: RePEc:plo:pone00:0315955
    DOI: 10.1371/journal.pone.0315955
    as

    Download full text from publisher

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

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

    File URL: https://libkey.io/10.1371/journal.pone.0315955?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. Mondal, Rakesh & Roy, Surajit Kr & Giri, Chandan, 2024. "Solar power forecasting using domain knowledge," Energy, Elsevier, vol. 302(C).
    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. Yuan Li & Paul P. J. Gaffney & Fang Zhao & Xiangbo Xu & Mingbo Zhang, 2024. "Application of Life Cycle Assessment to Policy Environmental Impact Assessment—A Clean Energy Action Plan Case Study in Qinghai Region," Sustainability, MDPI, vol. 17(1), pages 1-21, 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:0315955. 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.