首页|期刊导航|电力信息与通信技术|基于PatchTST-STL模型的光伏发电功率日前预测

基于PatchTST-STL模型的光伏发电功率日前预测OA

Day-ahead Photovoltaic Power Forecasting Utilizing the PatchTST-STL Hybrid Model

中文摘要英文摘要

光伏功率日前预测的准确性对电网的能源管理至关重要.针对光伏功率随机性及波动性大、预测精度不高的问题,文章提出一种基于PatchTST-STL模型的光伏发电功率日前预测方法.该方法通过引入时序块和季节趋势分解(seasonal and trend decomposition using loess,STL)改进Transformer的输入和架构,将每个时间步作为1个令牌(Token)改进为每个时序块(Patch)作为1个令牌,使得局部依赖关系被保留在1个令牌内,以提升局部模式捕捉能力,同时利用Transformer多头自注意力机制抽取序列长期依赖关系.考虑到光伏序列的模式复杂,采用STL对多变量光伏序列进行处理,分离出趋势、周期和残差部分,作为独立通道输入.使用灰狼优化算法(grey wolf optimizer,GWO)对模型超参数中时序块大小进行优化,以实现算法快速收敛.在澳大利亚沙漠知识太阳能中心数据集的实验结果表明,所提算法与Informer相比,平均绝对误差(mean absolute error,MAE)和均方根误差(root mean square error,RMSE)平均分别降低了36.7%和 11.7%;与 Transformer 相比,MAE 和 RMSE 平均分别降低了57.6%和 30.9%.

Accurate day-ahead forecasting of photovoltaic(PV)power is crucial for energy management in electrical grids.Addressing the challenges of high randomness and volatility in PV power,which often lead to low prediction accuracy,this paper proposes a novel day-ahead photovoltaic power forecasting method based on the PatchTST-STL model.The method enhances the input and architecture of the Transformer by introducing the concept of Patches and applying Seasonal and Trend decomposition using Loess(STL).Each time step is redefined as a single token,preserving local dependencies within each token,thereby enhancing the model's ability to capture local patterns while leveraging the Transformer's multi-head self-attention mechanism to extract long-term dependencies from the sequence.Considering the complexity of PV sequence patterns,the STL process is employed to handle multivariate PV sequences,separating them into trend,seasonal,and residual components,which are then inputted as independent channels.The Grey Wolf Optimizer(GWO)is utilized to optimize the Patch size,a critical hyperparameter,ensuring rapid convergence of the algorithm.Experimental results on the DKASC dataset demonstrate that,compared to the Informer model,our proposed method achieves an average reduction of 36.7%in Mean Absolute Error(MAE)and 11.7%in Root Mean Square Error(RMSE).Furthermore,when compared to the traditional Transformer,the MAE and RMSE are reduced by an average of 57.6%and 30.9%,respectively,showcasing the superior performance of our approach in PV power forecasting.

陈嘉伦;武晓圆;马玉梅

国网冀北电力有限公司 怀安县供电分公司,河北省 张家口市 076150国网冀北电力有限公司 怀安县供电分公司,河北省 张家口市 076150华北电力大学控制与计算机工程学院,河北省保定市 071003

信息技术与安全科学

光伏功率预测STL灰狼优化TransformerPatch

photovoltaic power forecastingSTLGWOTransformerPatch

《电力信息与通信技术》 2026 (3)

45-51,7

国家自然科学基金项目(51677072).

10.16543/j.2095-641x.electric.power.ict.2026.03.06

评论