Skip to main content
QUICK REVIEW

[Paper Review] Automated Agriculture Commodity Price Prediction System with Machine Learning Techniques

Zhiyuan Chen, Howe Seng Goh|arXiv (Cornell University)|Jun 24, 2021
Stock Market Forecasting MethodsDecision Sciences22 references9 citations
TL;DR

This paper proposes a web-based automated system for predicting agricultural commodity prices using machine learning, comparing ARIMA, SVR, Prophet, XGBoost, and LSTM models on Malaysian historical price data. The LSTM model achieved the best performance with a mean squared error of 0.304, establishing it as the optimal prediction engine for the system.

ABSTRACT

The intention of this research is to study and design an automated agriculture commodity price prediction system with novel machine learning techniques. Due to the increasing large amounts historical data of agricultural commodity prices and the need of performing accurate prediction of price fluctuations, the solution has largely shifted from statistical methods to machine learning area. However, the selection of proper set from historical data for forecasting still has limited consideration. On the other hand, when implementing machine learning techniques, finding a suitable model with optimal parameters for global solution, nonlinearity and avoiding curse of dimensionality are still biggest challenges, therefore machine learning strategies study are needed. In this research, we propose a web-based automated system to predict agriculture commodity price. In the two series experiments, five popular machine learning algorithms, ARIMA, SVR, Prophet, XGBoost and LSTM have been compared with large historical datasets in Malaysia and the most optimal algorithm, LSTM model with an average of 0.304 mean-square error has been selected as the prediction engine of the proposed system.

Motivation & Objective

  • To design an automated web-based system for predicting agricultural commodity prices using machine learning techniques.
  • To evaluate and compare the performance of five machine learning models—ARIMA, SVR, Prophet, XGBoost, and LSTM—on large historical agricultural price datasets.
  • To identify the optimal model with minimal error, robustness to nonlinearity, and effective handling of high-dimensional data.
  • To address challenges such as model selection, hyperparameter tuning, and the curse of dimensionality in agricultural price forecasting.
  • To develop a scalable, automated solution for real-time commodity price prediction in agricultural markets.

Proposed method

  • The system uses large historical agricultural commodity price datasets from Malaysia as input for model training and evaluation.
  • Five machine learning models—ARIMA, SVR, Prophet, XGBoost, and LSTM—are trained and compared using the same dataset and evaluation protocol.
  • Model performance is evaluated using mean squared error (MSE), with lower values indicating better predictive accuracy.
  • Hyperparameter tuning is applied to optimize each model’s performance, particularly for LSTM and XGBoost.
  • The final prediction engine is implemented as a web-based system using the best-performing model, LSTM, for real-time forecasting.
  • The system automates data ingestion, model training, and prediction deployment to enable scalable and repeatable price forecasting.

Experimental results

Research questions

  • RQ1Which machine learning model performs best in predicting agricultural commodity prices using large historical datasets?
  • RQ2How do traditional statistical models like ARIMA compare to modern deep learning models like LSTM in price prediction accuracy?
  • RQ3To what extent can automated hyperparameter tuning and model selection reduce prediction error in agricultural price forecasting?
  • RQ4Can the system effectively handle nonlinearity and high-dimensional features in agricultural price data?
  • RQ5What is the optimal balance between model complexity, training time, and prediction accuracy for real-world agricultural price prediction?

Key findings

  • The LSTM model achieved the lowest mean squared error of 0.304, outperforming ARIMA, SVR, Prophet, and XGBoost across the tested datasets.
  • LSTM demonstrated superior capability in capturing complex, nonlinear patterns in agricultural commodity price time series.
  • The automated system successfully integrated the best-performing model (LSTM) into a functional web-based interface for real-time predictions.
  • The comparison revealed that deep learning models like LSTM significantly outperform classical statistical models such as ARIMA in this context.
  • The system's automated pipeline reduced manual intervention in model selection and hyperparameter tuning, enhancing scalability and reproducibility.
  • The results confirm that LSTM is the most suitable model for accurate and robust agricultural commodity price forecasting under the given data conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.