农业大数据学报 ›› 2026, Vol. 8 ›› Issue (3): 305-312.doi: 10.19788/j.issn.2096-6369.000166

• 数据处理与分析 • 上一篇    下一篇

基于双通道GWO-KELM的河北省主要蔬菜品种价格预测研究

贾新诚1,2(), 贾华1,*()   

  1. 1 大连海洋大学机械与动力工程学院, 辽宁大连 116023
    2 阜平县职业技术教育中心, 河北保定 073200
  • 收稿日期:2026-05-13 接受日期:2026-07-15 出版日期:2026-09-26 发布日期:2026-10-08
  • 通讯作者: 贾华,E-mail:jiahua110023@126.com。
  • 作者简介:贾新诚,E-mail:djpc_Jia@126.com。
  • 基金资助:
    河北省职业教育科学研究“十四五”规划2025年度课题(JZY25181)

Prediction of Main Vegetable Prices in Hebei Province Based on Dual-Channel GWO-KELM

JIA Xincheng1,2(), JIA Hua1,*()   

  1. 1 College of Mechanical and Power Engineering, Dalian Ocean University, Dalian 116023, Liaoning, China
    2 Fuping County Vocational and Technical Education Center, Baoding 073200, Hebei, China
  • Received:2026-05-13 Accepted:2026-07-15 Published:2026-09-26 Online:2026-10-08

摘要:

针对河北省主要蔬菜价格序列的非线性、非平稳性与高噪声特征,以及核极限学习机(KELM)参数依赖经验设定导致预测精度受限的问题,构建一种融合灰狼优化算法(GWO)与双通道核极限学习机的多变量组合预测模型,以提升蔬菜价格的短期预测精度。以2021年1月至2024年12月河北省10个主要蔬菜品种(大白菜、洋白菜、西红柿、黄瓜、土豆、青椒、大葱、大蒜、豆角、西葫芦)的周度批发价格数据为研究对象,总样本量2 080条。同时采集气象、节日、农资、成品油、微博舆情、百度指数、宏观经济、食品消费等8类28个外部特征。采用均值插补和3σ原则进行数据清洗,Min‑Max归一化消除量纲影响。首先通过格兰杰因果检验验证外部特征与价格的预测性因果关系,并为保证模型简洁性和训练效率,每个品种保留最显著的8个特征;进而构建双通道并行KELM模型——通道1输入价格历史序列(4周),通道2输入筛选后的外部特征,两通道核矩阵通过可学习权重α进行加权融合。引入GWO算法对正则化系数C、核参数σ1、σ2及融合权重α进行自动寻优,以验证集均方根误差(RMSE)为适应度函数,种群规模15、迭代50次。同时与单通道价格历史模型(M1)、单通道特征拼接模型(M2)以及SVM、LSTM、GRU等3种主流模型进行对比。双通道GWO-KELM模型(M3)在10个品种上的平均绝对百分比误差(MAPE)为7.52%,较M1(10.59%)降低3.07个百分点,较M2(9.12%)降低1.60个百分点,显著优于LSTM(9.87%)、GRU(9.56%)等深度学习方法。在高波动品种大葱上改善尤为显著(MAPE由13.76%降至9.85%)。融合权重α显示:价格平稳品种(大蒜α=0.81,土豆α=0.76)更依赖历史惯性,高波动品种(大葱α=0.48,黄瓜α=0.54)对外部特征依赖更强,α与价格变异系数呈负相关(r≈-0.73)。外部特征贡献度分析表明,气温、农资价格、节日舆情及成品油价格是影响蔬菜价格的重要先行指标。模型在未参与训练的茄子、芹菜、生菜上MAPE分别为7.98%、9.12%、12.06%,各季节误差增幅控制在1个百分点以内。本研究构建的双通道GWO-KELM组合模型有效解决了KELM参数依赖经验设定的问题,通过格兰杰因果验证与双通道核融合机制,实现了时序特征与多源异构外部特征的自适应整合。在河北省主要蔬菜品种价格预测中具有高精度、强泛化能力和良好稳健性,可为政府调控、企业运营和农户生产提供科学决策支持。

关键词: 灰狼优化算法, 核极限学习机, 格兰杰因果检验, 蔬菜价格预测, 河北省, 双通道模型

Abstract:

To address the nonlinear, non-stationary, and high-noise characteristics of main vegetable price series in Hebei Province, as well as the problem that the kernel extreme learning machine (KELM) relies on empirical parameter settings, which limits its prediction accuracy, this paper constructs a multivariate combined forecasting model integrating the grey wolf optimizer (GWO) and a dual-channel KELM to improve short-term vegetable price prediction accuracy. The weekly wholesale price data of 10 major vegetable varieties (Chinese cabbage, cabbage, tomato, cucumber, potato, green pepper, scallion, garlic, bean, and zucchini) in Hebei Province from January 2021 to December 2024 are collected, with a total sample size of 2,080 records. Eight categories of external features (meteorological, holiday, agricultural material prices, refined oil prices, Weibo public opinion, Baidu index, macro-economic indicators, and food consumption) comprising 28 variables are also collected. Missing values are imputed by mean interpolation, outliers are corrected based on the 3σ principle, and Min-Max normalization is applied to eliminate dimensional effects. First, the Granger causality test is used to verify the predictive causal relationship between external features and vegetable prices, and for the sake of model parsimony and training efficiency, the eight most significant features per variety are retained. Then, a dual-channel parallel KELM model is constructed: Channel 1 takes the price history (4 weeks) and Channel 2 takes the selected external features. The kernel matrices of the two channels are fused by a learnable weight α. The GWO algorithm is introduced to automatically optimize the regularization coefficient C, kernel parameters σ1 and σ2, and the fusion weight α, using the root mean square error (RMSE) on the validation set as the fitness function with a population size of 15 and 50 iterations. The proposed model (M3) is compared with a single-channel model using only price history (M1), a single-channel feature-concatenation model (M2), as well as three mainstream models (SVM, LSTM, GRU). The dual-channel GWO-KELM model (M3) achieves an average mean absolute percentage error (MAPE) of 7.52% across the 10 varieties, which is 3.07 percentage points lower than that of M1 (10.59%) and 1.60 percentage points lower than that of M2 (9.12%), and significantly outperforms deep learning methods such as LSTM (9.87%) and GRU (9.56%). The improvement is particularly significant for highly volatile varieties, such as scallion (MAPE reduced from 13.76% to 9.85%). The fusion weight α shows that price-stable varieties (garlic α=0.81, potato α=0.76) rely more on historical inertia, while highly volatile varieties (scallion α=0.48, cucumber α=0.54) depend more on external features, with a negative correlation between α and the coefficient of price variation (r≈−0.73). Contribution analysis of external features indicates that temperature, agricultural material prices, holiday/opinion indicators, and refined oil prices are important leading indicators for vegetable prices. The model also exhibits good generalization on untrained varieties (eggplant, celery, lettuce), with MAPEs of 7.98%, 9.12%, and 12.06%, respectively, and its seasonal error increase is controlled within 1 percentage point. The dual-channel GWO-KELM model constructed in this paper effectively solves the problem of empirical parameter setting of KELM. By integrating Granger causality verification and dual-channel kernel fusion, it achieves adaptive integration of temporal features and heterogeneous external features. The model demonstrates high accuracy, strong generalization ability and good robustness in forecasting main vegetable prices in Hebei Province, and can provide scientific decision support for government regulation, enterprise operations and farmer production.

Key words: Grey Wolf Optimizer, kernel extreme learning machine, Granger causality test, vegetable price prediction, Hebei Province, dual-channel model