Skip to main content

TECHNOLOGY AND CODE article

Front. Energy Res.
Sec. Solar Energy
Volume 12 - 2024 | doi: 10.3389/fenrg.2024.1452173

Research on prediction method of photovoltaic power generation based on Transformer model

Provisionally accepted
Ning Zhou Ning Zhou 1*Bo-Wen Shang Bo-Wen Shang 1*Jinshuai Zhang Jinshuai Zhang 1Shi-Hao Xu Shi-Hao Xu 2*Ming-Ming Xu Ming-Ming Xu 1*
  • 1 State Grid Henan Electric Power Research Institute, Zhengzhou, China
  • 2 School of Electrical Engineering, Shanghai University of Electric Power, Shanghai, China

The final, formatted version of the article will be published soon.

    Accurate prediction of photovoltaic power generation is of great significance to stable operation of power system. To improve the prediction accuracy of photovoltaic power, a photovoltaic power generation prediction machine learning model based on Transformer model is proposed in this paper. In this paper, the basic principle of Transformer model is introduced. Correlation analysis tools such as Pearson correlation coefficient and Spearman correlation coefficient are introduced to analyze the correlation between various factors and power generation in the photovoltaic power generation process. Then, the prediction results of traditional machine learning models and the Transformer model proposed in this paper were compared and analyzed for errors. The results show that: for long-term prediction tasks such as photovoltaic power generation prediction, Transformer model has higher prediction accuracy than traditional machine learning models. Moreover, compared with BP, LSTM and Bi-LSTM models, the Mean Square Error (MSE) of Transformer model decreases by 70.16%, 69.32% and 62.88% respectively in short-term prediction, and the Mean Square Error (MSE) of Transformer model decreases by 63.58%, 51.02% and 38.3% respectively in long-term prediction, which has good prediction effect. In addition, compared with the long-term prediction effect of Informer model, Transformer model has higher prediction accuracy.

    Keywords: Photovoltaic power generation, machine learning, Transformer model, Correlation analysis, Long-term prediction

    Received: 20 Jun 2024; Accepted: 23 Jul 2024.

    Copyright: © 2024 Zhou, Shang, Zhang, Xu and Xu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence:
    Ning Zhou, State Grid Henan Electric Power Research Institute, Zhengzhou, China
    Bo-Wen Shang, State Grid Henan Electric Power Research Institute, Zhengzhou, China
    Shi-Hao Xu, School of Electrical Engineering, Shanghai University of Electric Power, Shanghai, China
    Ming-Ming Xu, State Grid Henan Electric Power Research Institute, Zhengzhou, China

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.