结合虚拟样本生成的油菜花期集成学习预测模型

    Ensemble learning prediction model for rapeseed flowering periods incorporating virtual sample generation

    • 摘要: 针对统计和线性回归模型难以完全揭示花期影响因子与花期之间的复杂非线性关系及油菜花期样本稀少的问题,提出了一种结合虚拟样本生成的集成学习算法来实现油菜花期的预测。该研究利用浙江省衢州市龙游县1999—2023年油菜盛花期与1998—2023年气象数据,通过基于高斯混合模型的虚拟样本生成(GMM-based virtual sample generation,GMM-VSG)算法与三次样条插值法(cubic spline interpolation)分别对原始样本进行扩充,采用8种机器学习算法建模并基于贝叶斯优化器进行超参数优化,最后通过Stacking集成学习方法,对 8种算法进行不同的组合,建立了油菜花期预测模型。研究结果表明:相较于原始数据集,通过三次样条插值法与高斯混合模型生成的两个扩展数据集在各种机器学习算法中的性能显著提升,其中通过三次样条插值法生成的数据集表现最为优异。通过Stacking思想能提升模型的精度,其中以核岭回归(kernel ridge regression, KRR)、支持向量回归(support vector regression, SVR)、极端梯度提升树(extreme gradient boosting, XGBoost)这3种算法作为基模型,线性回归作为元模型的SRX_L模型表现最优,其平均绝对误差、均方根误差和决定系数,分别为0.105 6 d、0.122 7 d和0.9997。该研究结果可为油菜花期的准确预测提供有效方法。

       

      Abstract: Linear regression cannot fully reveal the complex non-linear relationships among influencing factors and scarce samples in the flowering period. In this study, ensemble learning was proposed to predict the flowering periods of rapeseed. The generation of virtual samples was also incorporated. The rapeseed in full bloom and meteorological data was utilized in Longyou County, Quzhou City, Zhejiang Province, China from 1998 to 2023. The original samples were expanded using Gaussian Mixture Model-based Virtual Sample Generation and Cubic Spline Interpolation. Two new datasets were obtained, each of which contained 985 samples. The models were established using eight machine learning methods: Random Forest (RF), Kernel Ridge Regression (KRR), Ridge Regression (RR), Least Absolute Shrinkage and Selection Operator (Lasso), Support Vector Regression (SVR), Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LightGBM), and Gradient Boosting Decision Tree (GBDT). Hyperparameter optimization was conducted using a Bayesian optimizer. Finally, a prediction model was established for the rapeseed flowering period using stacking ensemble learning. The vast majority of models demonstrated superior performance on the Cubic interpolation dataset, compared with the original and GMM-VSG dataset. Specifically, the RF model was achieved in an RMSE of 0.679 d, an MAE of 0.351 d, and an R2 of 0.990, indicating significant improvements, compared with the original dataset with an RMSE of 6.286 d, an MAE of 5.028 d, and an R2 of 0.201, as well as the GMM-VSG dataset with an RMSE of 2.680 d, an MAE of 1.588 d, and an R2 of 0.881. Additionally, the SVR model also performed better on the Cubic dataset, with an RMSE of 0.849 d, an MAE of 0.333 d, and an R2 of 0.984, indicating a better performance than before. LightGBM as an ensemble learning was performed the best on the Cubic dataset, with the lowest RMSE of 0.613 d MAE of 0.336 d, and the highest R2 of 0.992. The strong feature learning and noise resistance were verified to capture the complex relationships within the dataset. In contrast, there was no significant improvement of Lasso and RR models on the Cubic dataset. For instance, Lasso exhibited an RMSE of 3.879 d and an MAE of 3.054 d on the Cubic dataset. There was a relative decrease in the error, compared with the original RMSE of 6.329 d and MAE of 5.567 d. There was a substantial gap relative to other models. Five models were developed using the Stacking ensemble learning approach: SRX_L, All_L, SLL_L, SRL_L, and SRK_L. Among them, the SRX_L model performed the best across various metrics. The highest R2 value of 0.999 7 was achieved with the lowest RMSE and MAE values among all models, at 0.122 7 d and 0.105 6 d, respectively. There was a general consistency in the actual and predicted flowering trends, in terms of the fitting flowering period. The high predictive accuracy was also obtained over most years, particularly in 2001, 2011, and 2014. Among them, the prediction closely matched the actual data with minimal discrepancies, sometimes less than 0.01 or even approaching zero. However, there were some years with the larger differences, such as 1999 and 2023. Particularly, the year 1999 experienced the largest discrepancy, where the error was 0.442 1 d. The maximum actual flowering period occurred in 2005, reaching 92 days, with an error between the predicted and actual values of 0.041 6 d. The minimum actual flowering period was observed in 2020, at 63 days, with an error between the predicted and actual values of 0.132 5 d. Therefore, the model can be expected to highly accurately predict the extreme values. The virtual sample generation can also be suitable for small datasets. The predictive accuracy and generalizability of the improved model were significantly enhanced to reduce the costs and challenges of data collection. Compared with single machine learning, Stacking ensemble learning can substantially improve the predictive performance. Stacking ensemble learning is well-suited to complex tasks with nonlinear relationships, such as the flowering periods of rapeseed.

       

    /

    返回文章
    返回