International Journal of Electrical Power & Energy Systems (Mar 2025)
Multistep photovoltaic power forecasting based on multi-timescale fluctuation aggregation attention mechanism and contrastive learning
Abstract
The integration of photovoltaic (PV) power into electrical grids introduces significant uncertainty due to the inherent volatility and intermittency of solar energy, underscoring the need for precise short and medium-term PV power forecasting. Despite the superior performance of Transformer-based time series methods, their application to PV power prediction remains suboptimal. In response to this deficiency, this paper proposes a novel attention mechanism that aggregates fluctuations across multiple time scales. This mechanism enhances the segmentation and extraction of nonlinear correlations between PV power outputs and meteorological factors, assigning variable weights to patterns of change across different time scales. Furthermore, a novel approach for selecting similar days is also developed based on contrastive learning, which enables self-supervised identification of similarities among PV power samples and enhances the model’s attention to local dynamic variations. Comparative analysis with eight state-of-the-art benchmark methods shows that the proposed MFA-attention model achieves lower prediction errors and improved effectiveness.© 2017 Elsevier Inc. All rights reserved.