Research on Ginger Price Prediction Model Based on Deep Learning
Abstract
:1. Introduction
2. Materials and Methods
2.1. Analysis of Factors Affecting the Price of Ginger
2.2. Theoretical Approach and Model Construction
- (i)
- The STL (Seasonal Trend Decomposition) module serves to decompose the ginger price time series into a trend component, a seasonal component and a stochastic component.
- (ii)
- In the LSTM-ATT-KAN process, LSTM processes time series data to capture long-term dependent information; the attention mechanism highlights key time point information, and the KAN module optimally integrates the information to improve prediction accuracy.
- (iii)
- The AMP-PSO optimisation step ensures optimal model prediction performance by adaptively adjusting the particle swarm search space and optimising the model parameters.
2.2.1. Seasonal-Trend Decomposition Using STL for Ginger Price Analysis
2.2.2. LSTM-ATT-KAN Model Construction
- Step 1: LSTM in STL-LSTM-ATT-KAN Model
- Step 2: Attention Mechanism in STL-LSTM-ATT-KAN Model
- Step 3: Kolmogorov-Arnold Network (KAN) in STL-LSTM-ATT-KAN Model
- Input Features: Represented as x1, x2, x3, these are the initial features (e.g., decomposed trends and seasonal components from ginger price data).
- One-Dimensional Functions: Each input feature is transformed by a corresponding one-dimensional function ().
- Feature Fusion: The outputs are aggregated into a fused feature , as shown in Equation (12):
- Output Layer: The fused feature is mapped through a fully connected layer to generate the final prediction , as described in Equation (13):
2.2.3. Adaptive Multi-Population Particle Swarm Optimisation (AMP-PSO) Algorithm
- (1)
- Multi-Population Strategy
- Leader Population: Conducts global searches by interacting with other sub-populations to expand the solution space.
- Follower Population: Focuses on local refinement, leveraging local optima to enhance precision.
- (2)
- Adaptive Parameter Adjustment
- (3)
- Particle Update Mechanism
- Velocity Update:
- Position Update:
- (4)
- Particle Exchange Mechanism
- (5)
- Determination of Global Optimal Solution
2.3. Experimental Design
2.3.1. Experimental Setup
- Experimental environment
- Data sources
- Data processing
2.3.2. Forecast Evaluation Indicators
2.4. Model Optimisation Parameter Setting
3. Results
3.1. Experimental Results
3.2. Comparative Experimental Results
3.3. Results of Ablation Experiments
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
Abbreviation | Full Name |
ATT | Attention Mechanism |
ATTAIN | Attention-based Time-Aware LSTM Network |
AMP-PSO | Adaptive Multi-Population Particle Swarm Optimization |
ARIMA | Autoregressive Integrated Moving Average |
CEEMD | Complementary Ensemble Empirical Mode Decomposition |
CES | Complex Exponential Smoothing |
CNN | Convolutional Neural Network |
CMA | China Meteorological Administration |
CPI | Consumer Price Index |
CH-LSTM | Contextualized Hierarchical Long Short-Term Memory |
DIA | Dual Input Attention |
EEMD | Ensemble Empirical Mode Decomposition |
EIA | U.S. Energy Information Administration |
FAO | Food and Agriculture Organization of the United Nations |
GACC | General Administration of Customs, PRC |
GCRNN | Group-Constrained Convolutional Recurrent Neural Network |
GRU | Gated Recurrent Unit |
KAN | Kolmogorov-Arnold Network |
LOESS | Locally Estimated Scatterplot Smoothing |
LSTM | Long Short-Term Memory Networks |
MAE | Mean Absolute Error |
M2 | Broad Money Supply |
MARA | Ministry of Agriculture and Rural Affairs, PRC |
MSE | Mean Squared Error |
MOFCOM | Ministry of Commerce, PRC |
NBS | National Bureau of Statistics |
PBC | People’s Bank of China |
PROPHET | Prophet |
PRC | People’s Republic of China |
PSO | Particle Swarm Optimization |
R2 | Coefficient of Determination |
RNN | Recurrent Neural Network |
RMSE | Root Mean Squared Error |
RF | Random Forest |
STL | Seasonal-Trend Decomposition using LOESS |
STL-LSTM-ATT-KAN | Seasonal-Trend Decomposition-Long Short-Term Memory-Attention Mechanism-Kolmogorov-Arnold Network Combination Model |
SVM | Support Vector Machine |
STCN-LSTM | Spatial-Temporal Convolutional Network with Long Short-Term Memory |
USD/CNY | United States Dollar to Chinese Yuan |
VMD | Variational Mode Decomposition |
XGBoost | Extreme Gradient Boosting |
Term | Synonyms |
AMP-PSO Algorithm | Adaptive Multi-Population Particle Swarm Optimization |
Attention Mechanism | Attention Model, Attention Network |
CES | Complex Exponential Smoothing |
Coefficient of Determination | R2, Goodness of Fit |
Data Preprocessing | Data Cleaning, Data Processing |
Feature Extraction | Feature Selection, Feature Processing |
Ginger Price Prediction | Ginger Price Forecasting, Ginger Market Prediction |
KAN Network | Kolmogorov-Arnold Network |
LOESS Method | Locally Estimated Scatterplot Smoothing |
LSTM Networks | Long Short-Term Memory Networks, Long Short-Term Memory Units |
LSTM Unit | Long Short-Term Memory Unit |
MAE | Mean Absolute Error, Average Error |
MSE | Mean Squared Error, Squared Error |
Market Regulation | Market Adjustment, Market Intervention |
Model Ensemble | Model Fusion |
Model Fitting | Model Training, Model Learning |
Model Optimization | Parameter Optimization, Model Tuning |
Model Testing | Model Validation, Model Evaluation |
Pareto Optimality | Pareto Optimal Solution, Non-Dominated Solution |
Prediction Accuracy | Prediction Precision, Prediction Performance |
Price Forecasting | Time Series Forecasting |
RMSE | Root Mean Squared Error, Root Mean Square Error |
STL Decomposition | Seasonal-Trend Decomposition |
Sequence Decomposition | Data Decomposition, Time Series Decomposition |
References
- Xu, K. Short-Term Price Forecasting Model for Fresh and Live Agricultural Products Based on Price Decomposition. Ph.D. Thesis, Chinese Academy of Agricultural Sciences, Beijing, China, 2016. [Google Scholar]
- Liu, F.; Wang, R.; Li, C. Application of ARIMA model in agricultural products price forecasting. Comput. Eng. Appl. 2009, 45, 238–239+248. [Google Scholar]
- Ding, W.; He, Y.; Liu, C. China’s corn price fluctuation trend and short-term forecast. Price Theory Pract. 2014, 83–84. [Google Scholar] [CrossRef]
- Ravishankar, P.; Rakesh, S.; Ranjit, P.K. Price Forecasting of Mango in Varanasi Market of Uttar Pradesh. Price Theory Pract. 2018, 6, 218–224. [Google Scholar]
- Wang, B.; Song, Y.; Zong, Y. Cucumber price trend analysis and market forecast based on ARIMA model. Stat. Manag. 2019, 87–90. [Google Scholar] [CrossRef]
- Van Gestel, T.; Suykens, J.; Baestaens, D.-E.; Lambrechts, A.; Lanckriet, G.; Vandaele, B.; De Moor, B.; Vandewalle, J. Financial time series prediction using least squares support vector machines within the evidence framework. IEEE Trans. Neural Networks 2001, 12, 809–821. [Google Scholar] [CrossRef]
- Das, M.; Ghosh, S.K. A probabilistic approach for weather forecast using spatio-temporal inter-relationships among climate variables. In Proceedings of the 2014 9th International Conference on Industrial and Information Systems (ICIIS), Gwalior, India, 15–17 December 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 1–6. [Google Scholar]
- Duan, Q.; Zhang, L.; Wei, F.; Xiao, X.; Wang, L. Forecasting model and validation of aquatic product price based on time series GA-SVR. J. Agric. Eng. 2017, 33, 308–314. [Google Scholar]
- Wang, P.; Zhang, H.; Qin, Z.; Zhang, G. A novel hybrid-Garch model based on ARIMA and SVM for PM2.5 concentrations forecasting. Atmos. Pollut. Res. 2017, 8, 850–860. [Google Scholar] [CrossRef]
- Polyiam, K.; Boonrawd, P. A hybrid forecasting model of cassava price based on artificial neural network with support vector machine technique. In Proceedings of the 2017 3rd International Conference on Information Management (ICIM), Chengdu, China, 21–23 April 2017; IEEE: Piscataway, NJ, USA; pp. 123–127. [Google Scholar] [CrossRef]
- Zhao, B.-H.; Huo, Q.; Lu, Y.-H. Research on the characteristics of ginger price fluctuation and its law—Analysis based on ARCH class model. Price Theory Pract. 2022, 5, 130–133. [Google Scholar]
- Sun, F.; Meng, X.; Zhang, Y.; Wang, Y.; Jiang, H.; Liu, P. Agricultural Product Price Forecasting Methods: A Review. Agriculture 2023, 13, 1671. [Google Scholar] [CrossRef]
- Teng, J.; Liu, P.; Zhang, Y.; Xu, S.; Xu, G.; Han, W. A study on ginger price prediction based on Prophet. Chin. J. Agric. Mech. Chem. 2020, 41, 211–216. [Google Scholar]
- Wang, Y. Research on the Combination Prediction Model of Ginger Price Based on Multiple Influencing Factors; Shandong Agricultural University: Tai’an, China, 2023. [Google Scholar]
- Lv, X. Research on Price Prediction of Small Agricultural Products Based on the Influence of Network Public Opinion. Ph.D. Thesis, Northeast Agricultural University, Harbin, China, 2023. [Google Scholar]
- Chaudhary, R.; Giri, H.N.; Bhusal, N.R.; Dahal, S.; Timalsina, P.; Bhandari, N. An analysis of the ginger value chain in palpa, Nepal. Cogent Food Agric. 2023, 9, 2270799. [Google Scholar] [CrossRef]
- Manjubala, M. Weekly price prediction of garlic and ginger using complex exponential smoothing. Int. J. Stat. Appl. Math. 2023, 8, 214–220. [Google Scholar]
- Li, H.; Jia, Y.; Zhang, Y. Research on Pricing Strategies Based on Time Series Analysis Model and Greedy Algorithm Model. Highlights Bus. Econ. Manag. 2024, 25, 127–133. [Google Scholar] [CrossRef]
- Fu, L.; Zhang, H. Analysis of Price Influencing Factors of Small-Scale Agricultural Products Based on Network Perspective. Front. Sustain. Food Syst. 2023, 8, 1355853. [Google Scholar]
- Anamisa, D.R.; Mufarroha, F.A.; Jauhari, A.; Yusuf, M.; Khotimah, B.K.; Haq, A.F. Long Short-Term Memory Method Based on Normalisation Data for Forecasting Analysis of Madura Ginger Selling Price. In Proceedings of the 4th International Conference on Informatics, Technology and Engineering 2023 (InCITE 2023), Yogyakarta, Indonesia, 14–15 September 2023. [Google Scholar]
- Lin, S.; Runger, C.G. GCRNN: Group-Constrained Convolutional Recurrent Neural Network. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 4709–4718. [Google Scholar] [CrossRef]
- Hu, L.; Li, J.; Nie, L.; Li, X.-L.; Shao, C. What Happens Next? Future Subevent Prediction Using Contextual Hierarchical LSTM. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence (AAAI’17), San Francisco, CA, USA, 4–9 February 2017; AAAI Press: Palo Alto, CA, USA; pp. 3450–3456. [Google Scholar] [CrossRef]
- Zhang, Y.; Yang, X.; Ivy, J. ATTAIN: Attention-based Time-Aware LSTM Networks for Disease Progression Modeling. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence {IJCAI-19}, Macao, China, 10–16 August 2019. [Google Scholar] [CrossRef]
- Zhang, D.B.; Zeng, L.L.; Ling, L.W. An integrated prediction model based on VMD-ELM for agricultural futures price decomposition. Oper. Res. Manag. 2023, 32, 127–133. [Google Scholar]
- Wang, R.; Zhang, X.; Wang, M. Agricultural product price prediction based on signal decomposition and deep learning. J. Agric. Eng. 2022, 38, 256–267. [Google Scholar]
- Fang, X.; Wu, C.; Yu, S.; Zhang, D.; Ouyang, Q. Research on short-term prediction model of agricultural products price based on EEMD-LSTM. China Manag. Sci. 2021, 29, 68–77. [Google Scholar] [CrossRef]
- Gu, Y.H.; Jin, D.; Yin, H.; Zheng, R.; Piao, X.; Yoo, S.J. Forecasting Agricultural Commodity Prices Using Dual Input Attention LSTM. Agriculture 2022, 12, 256. [Google Scholar] [CrossRef]
- Sun, C.; Pei, M.; Cao, B.; Chang, S.; Si, H. A Study on Agricultural Commodity Price Prediction Model Based on Secondary Decomposition and Long Short-Term Memory Network. Agriculture 2023, 14, 60. [Google Scholar] [CrossRef]
- Zhi, L.; Zuo, Y. Collaborative Path Planning of Multiple AUVs Based on Adaptive MultiPopulation PSO. J. Mar. Sci. Eng. 2024, 12, 223. [Google Scholar] [CrossRef]
- Liu, Z.; Wang, Y.; Vaidya, S.; Ruehle, F.; Halverson, J.; Soljačić, M.; Hou, T.Y.; Tegmark, M. Kan: Kolmogorov-arnold networks. arXiv 2024, arXiv:2404.19756. [Google Scholar]
Level 1 Impact Factors | Specific Influencing Factors |
---|---|
Agricultural price factors | The daily wholesale price of garlic |
The daily wholesale price of scallions | |
Agricultural production factors | Average daily temperature in the main ginger-producing areas |
Area under crops | |
Production | |
Production volume index | |
Economic indicator factors | Fresh Vegetables Consumer Price Index (CPI) |
Broad money supply M2 | |
Exchange rate (USD/CNY) | |
International market factors | Ginger export amount |
Ginger export volume | |
International crude oil prices | |
Market Opinion Factors | Ginger public opinion |
Model Parameter | Parameter Value |
---|---|
kan_units | 22 |
lstm_units | 50 |
learning_rate | 0.004 |
batch_size | 36.451 |
Evaluation Metrics | AMP-PSO Optimised STL-LSTM-ATT-KAN | RF | SVM | XGBoost | CNN | RNN | LSTM | GRU |
---|---|---|---|---|---|---|---|---|
MAE | 0.111 | 0.113 | 0.224 | 0.123 | 0.398 | 0.295 | 0.643 | 0.707 |
MSE | 0.021 | 0.032 | 0.143 | 0.0409 | 0.268 | 0.1737 | 0.782 | 1.195 |
RMSE | 0.146 | 0.181 | 0.378 | 0.202 | 0.518 | 0.416 | 0.884 | 1.093 |
R2 | 0.998 | 0.996 | 0.986 | 0.996 | 0.975 | 0.984 | 0.928 | 0.890 |
Evaluation Metrics | STL-LSTM-ATT-KAN | STL-LSTM(20)-ATT-KAN | STL-LSTM(75)-ATT-KAN | STL-LSTM(100)-ATT-KAN |
---|---|---|---|---|
MAE | 0.111 | 0.129 | 0.181 | 0.139 |
MSE | 0.021 | 0.026 | 0.044 | 0.030 |
RMSE | 0.146 | 0.160 | 0.211 | 0.174 |
R2 | 0.998 | 0.997 | 0.995 | 0.997 |
Evaluation Metrics | STL-LSTM-ATT-KAN | STL-LSTM-ATT | STL-LSTM | LSTM |
---|---|---|---|---|
MAE | 0.111 | 0.113 | 0.124 | 0.643 |
MSE | 0.021 | 0.019 | 0.023 | 0.782 |
RMSE | 0.146 | 0.139 | 0.151 | 0.884 |
R2 | 0.998 | 0.998 | 0.997 | 0.928 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Li, F.; Meng, X.; Zhu, K.; Yan, J.; Liu, L.; Liu, P. Research on Ginger Price Prediction Model Based on Deep Learning. Agriculture 2025, 15, 596. https://doi.org/10.3390/agriculture15060596
Li F, Meng X, Zhu K, Yan J, Liu L, Liu P. Research on Ginger Price Prediction Model Based on Deep Learning. Agriculture. 2025; 15(6):596. https://doi.org/10.3390/agriculture15060596
Chicago/Turabian StyleLi, Fengyu, Xianyong Meng, Ke Zhu, Jun Yan, Lining Liu, and Pingzeng Liu. 2025. "Research on Ginger Price Prediction Model Based on Deep Learning" Agriculture 15, no. 6: 596. https://doi.org/10.3390/agriculture15060596
APA StyleLi, F., Meng, X., Zhu, K., Yan, J., Liu, L., & Liu, P. (2025). Research on Ginger Price Prediction Model Based on Deep Learning. Agriculture, 15(6), 596. https://doi.org/10.3390/agriculture15060596