DOI: 10.3390/app16168261 ISSN: 2076-3417

Ramp-Aware Photovoltaic Power Interval Forecasting Using a Temporal Fusion Transformer

Jin Zhao, Yayu Mu, Xiaofeng Qian, Baozhu Wang, Haoran Xiao

Photovoltaic (PV) power interval forecasting models are commonly trained on data dominated by non-ramp samples, which may weaken uncertainty characterization during rapid power changes. This study proposes a ramp-aware quantile regression Temporal Fusion Transformer (RQR-TFT) that jointly estimates PV power quantiles and the probability of a future ramp event. Ramp labels are constructed from the normalized power change between adjacent sampling instants. A shared Temporal Fusion Transformer (TFT) encoder extracts temporal representations from historical PV power and meteorological variables, and two output branches perform quantile forecasting and ramp-event identification. Ramp-sample-weighted quantile loss and positive-class-weighted classification loss are jointly optimized to increase the influence of minority ramp samples. The proposed method is evaluated for 4 h ahead forecasting using measurements collected from a 50 MW PV power station during 2019–2020. For the nominal 90% prediction interval, RQR-TFT achieves a ramp-sample prediction interval coverage probability (PICPR) of 0.864, an overall prediction interval normalized average width (PINAW) of 0.209, and an overall normalized interval score (NIS) of 0.365. The area under the precision–recall curve for ramp-event identification is 0.906. The results demonstrate improved ramp-sample coverage and overall interval quality, although ramp-sample coverage remains below the nominal level.

More from our Archive