基于VMD-Patch-iTransformer与Flow Matching的光伏出力超短期概率预测

Ultra-Short-Term Probabilistic Forecasting of Photovoltaic Power Output Based on VMD-Patch-iTransformer and Flow Matching

  • 摘要: 随着电网新能源渗透率的不断提高,光伏出力的强随机性与波动性给新型电力系统的安全、稳定运行带来了巨大挑战。考虑到传统的确定性预测方法难以有效量化预测的不确定性,且常规基于时间步注意力的Transformer模型在处理多变量长序列时容易丢失变量间的物理耦合关系,提出一种融合变分模态分解(Variational Mode Decomposition, VMD)、分块倒置Transformer(Patch-inverted Transformer, Patch-iTransformer)与流匹配(Flow Matching)的超短期概率预测框架。首先,使用皮尔逊相关系数筛选和确定全辐射辐照度、温度、湿度等高相关气象特征,引入连续时间编码强化时序信息表达;其次,采用VMD对非平稳功率序列进行模态分解,削弱波动干扰以提升数据平稳性;再次,构建“点预测-残差拟合”的双阶段解耦流匹配生成模型,在运用Patch-iTransformer打破时间步局限进行确定性基准点预测的基础上,通过Flow Matching拟合预测残差分布,利用常微分方程(ordinary differential equation, ODE)求解实现高斯噪声向真实残差空间的演化;引入严格的梯度阻断与残差缩放对齐技术,有效解决了功率残差极小导致的信噪比失衡问题;接下来,采用基于树状Parzen估计器(Tree-structured Parzen Estimator, TPE)的Optuna贝叶斯优化框架,并结合异步连续减半算法(Asynchronous Successive Halving Algorithm, ASHA)剪枝机制,对VMD输入分解参数和Patch-iTransformer的超参数进行联合寻优,强化分解和预测效果;最终,基于多轮采样与区间校准,生成光伏出力概率预测区间。在云南光伏实测数据集的实验结果表明,该模型在点预测精度与区间预测锐度上均表现优异,MAE低至0.1617、RMSE为0.3946、MAPE仅为5.3744%、R2高达0.9989;在PICP达到96.4583%的高可靠性水平下,MPIW成功收窄至1.2328,PINAW为3.4973%,可为光伏并网的精细化调度与风险防御提供可靠的决策支撑。

     

    Abstract: With the increasing penetration of renewable energy in power grids, the strong randomness and fluctuation of photovoltaic output have brought great challenges to the safe and stable operation of new power systems. Considering that traditional deterministic forecasting methods are difficult to effectively quantify prediction uncertainty, and that conventional Transformer models based on time-step attention tend to lose the physical coupling relationships among variables when processing multivariate long sequences, this paper proposes an ultra-short-term probabilistic forecasting framework that integrates Variational Mode Decomposition (VMD), Patch-inverted Transformer (Patch-iTransformer), and Flow Matching. First, Pearson correlation coefficient is used to select highly correlated meteorological features, including global irradiance, temperature, and humidity, and cyclic time encoding is introduced to enhance temporal information representation. Second, VMD is applied to decompose the non-stationary power sequence into multiple modal components, thereby reducing fluctuation interference and improving data stationarity. Third, a two-stage decoupled Flow Matching generative model based on “point forecasting-residual fitting” is constructed. On the basis of using Patch-iTransformer to overcome the limitation of time-step-based modeling and perform deterministic baseline point forecasting, Flow Matching is employed to fit the prediction residual distribution, and an ordinary differential equation (ODE) solver is used to realize the evolution from Gaussian noise to the real residual space. In addition, strict gradient blocking and residual scaling alignment techniques are introduced to effectively solve the signal-to-noise imbalance caused by extremely small power residuals. Subsequently, an Optuna Bayesian optimization framework based on the Tree-structured Parzen Estimator (TPE), combined with the Asynchronous Successive Halving Algorithm (ASHA) pruning mechanism, is adopted to jointly optimize the VMD decomposition parameters and the hyperparameters of Patch-iTransformer, thereby enhancing both decomposition and forecasting performance. Finally, probabilistic prediction intervals of photovoltaic output are generated based on multi-round sampling and interval calibration. Experimental results on measured photovoltaic data from Yunnan show that the proposed model performs well in both point forecasting accuracy and interval prediction sharpness, with MAE reduced to 0.1617, RMSE of 0.3946, MAPE of only 5.3744%, and R2 reaching 0.9989. Under the high reliability level of 96.4583% PICP, MPIW is narrowed to 1.2328 and PINAW is 3.4973%, which can provide reliable decision support for refined photovoltaic grid-connected dispatching and risk management.

     

/

返回文章
返回