Horticulturae (Mar 2024)

Prediction of Weekly Price Trend of Garlic Based on Classification Algorithm and Combined Features

  • Feihu Sun,
  • Xianyong Meng,
  • Hongqi Zhang,
  • Yue Wang,
  • Pingzeng Liu

DOI
https://doi.org/10.3390/horticulturae10040347
Journal volume & issue
Vol. 10, no. 4
p. 347

Abstract

Read online

To promote the sustainable development of the garlic industry and provide a reference for the prediction of agricultural product price trends, this study used the garlic price in Jinxiang, China as the research object. First, the feature combination De was obtained by extracting the sequence obtained using VMD decomposition. Then, the De_Vo combined feature was constructed by combining the volatility feature Vo. Classification algorithms, such as logistic regression, SVM, and XGBoost, were used to classify and predict the garlic price trend. The results showed that the prediction results based on the combined features were better than those based on the single De or Vo features. In the binary classification prediction, the accuracy values for LR, SVM, and XGBoost were 62.6%, 71.4%, and 72.9%, respectively. Among them, the XGBoost algorithm performed better than the LR and SVM algorithms in the three-class, four-class, and five-class predictions.

Keywords