高级检索+

基于VMD-TCAN模型的大蒜价格预测与预警研究

Garlic price prediction and early warning based on VMD-TCAN model

  • 摘要: 大蒜作为中国重要农产品和出口商品之一,精准预警大蒜价格波动对于保障农民收益与产业稳定至关重要。针对大蒜价格时间序列具有非线性、非平稳及“尖峰厚尾”分布特征,导致传统预警方法对复杂时序特征捕捉不足、预警方法准确率不高的问题,通过研究构建价格警情指标、大蒜价格警限划分的方法,研究构建VMD-TCAN的大蒜价格预测与分级预警模型。首先通过变分模态分解(variational mode decomposition,VMD)对大蒜价格序列进行分解,采用粒子群算法(particle swarm optimization,PSO)动态确定VMD(variational mode decomposition,VMD)最优参数,提取出具有不同中心频率的本征模态函数(intrinsic mode functions,IMF),实现了对长期趋势、季节波动与短期冲击等多尺度特征的有效分离。然后将IMF分量、大蒜历史价格与种植面积、库存、汇率等6类影响因素输入到基于贝叶斯(Bayesian optimization ,BYS)全局寻优的时序卷积注意力网络模型(temporal convolutional attention-based network,TCAN)中,利用自注意力机制动态加权关键时间步特征,强化对价格异常波动的捕捉能力进行价格的精准预测与价格波动的风险预警。同时,针对大蒜价格波动率的非正态分布特性,采用基于历史波动率分布的分位数法划定五级警限区间,将连续价格预测结果映射为离散风险等级,构建预测—预警一体化框架。试验选取金乡产区2005~2024年日价格数据,结果表明,VMD-TCAN模型的均方根误差(root mean square error,RMSE)、决定系数 R^2 分别为0.042元/500g和0.998,预测精度显著优于单一对比模型及其对应的VMD混合模型;在预警性能方面,准确率和F1分数相较于TCN(temporal convolutional network,TCN)提升了约4.86和4.97个百分点。该模型能够更为精准地把握大蒜市场的异常波动,可为农民和相关企业提供及时、准确的价格预测与预警信息,同时为政府主管部门宏观调控提供参考。

     

    Abstract: Garlic is one of the major agricultural products and export commodities in China. It is of great significance for the accurate early warning of garlic price fluctuations in the market. However, the time series of garlic price is often characterized by the nonlinear, non-stationary, and “sharp-peaked and heavy-tailed” distribution. Conventional early warning cannot effectively capture complex temporal features, resulting in limited warning accuracy. In this study, a VMD-TCAN framework was proposed to forecast the garlic price. The early warning model was then graded for the precise prediction and automatic warning. A price alert indicator system was also constructed to divide the warning threshold. Firstly, Variational Mode Decomposition (VMD) was introduced to mitigate the high noise and non-stationarity of the original price series. The optimal solution of variational modes was searched iteratively, and then adaptively decomposed the signal into intrinsic mode functions (IMFs) with specific sparsity and finite bandwidth. Mode mixing and end effects were also reduced in the VMD, unlike Empirical Mode Decomposition (EMD). The Particle Swarm Optimization (PSO) algorithm was employed to reduce the subjectivity in VMD parameter selection. The minimum fuzzy entropy was taken as the fitness function to dynamically determine the optimal number of modes and penalty factors. The garlic price series was thereby decomposed into eight IMFs with the center frequencies. Multi-scale components were effectively separated, such as long-term trends, seasonal fluctuations, and short-term random shocks. Secondly, a TCAN prediction model was developed using multi-source information fusion. Six external influencing factors were selected to cover the production (planting area and planting cost), circulation (inventory and export volume), and market (exchange rate and CPI). A high-dimensional input tensor was then formed, together with the VMD-derived IMF components and daily garlic prices. Causal convolution dilated using the TCAN architecture. The long-range historical dependency features were efficiently extracted to exponentially expand the receptive fields with the temporal causality. A self-attention mechanism was further introduced to globally perceive multi-source inputs. The correlation weights were dynamically assigned to the critical time steps that significantly influenced the price movements. The performance was substantially enhanced to capture the abnormal price volatility intensity and trend turning points under complex market dynamics. Finally, an integrated “forecasting–early warning” framework was established after evaluation. The Shapiro–Wilk test revealed that the garlic price volatility followed the non-normal, sharp-peaked, and heavy-tailed distribution, thereby rendering the conventional rule inapplicable. Therefore, a quantile-based method was adopted in the historical volatility distribution. Five warning levels were defined: severe negative warning, mild negative warning, no warning, mild positive warning, and severe positive warning. Continuous numerical forecasts were thus mapped into discrete risk-level signals. Daily price data were collected from the Jinxiang production area from 2005 to 2024. Experimental results show that the VMD-TCAN model achieved a root mean square error (RMSE) of 0.042 yuan/500g and a coefficient of determination (R2) of 0.998, significantly outperforming benchmark models and their VMD hybrid versions. In terms of early warning performance, the accuracy and F1-score were improved by 4.86 percent points and 4.97percent points, respectively, compared with the TCN model. More precise identification of abnormal fluctuations was realized in the garlic market. The timely and reliable price forecasts and warnings can greatly contribute to the decision-making in the garlic industry.

     

/

返回文章
返回