Skip to main navigation menu Skip to main content Skip to site footer

Research Articles

Vol. 12 No. 3 (2025)

Deep learning for cotton price prediction: Unveiling the impact of weather variables

DOI
https://doi.org/10.14719/pst.8643
Submitted
2 April 2025
Published
25-06-2025 — Updated on 01-07-2025
Versions

Abstract

Accurate forecasting of cotton prices is crucial for farmers and stakeholders in the agricultural sector to optimize crop selection, improve profitability and mitigate market risks. This study had developed a novel weather-based deep learning model to predict cotton prices in two major cotton-growing districts of Tamil Nadu, Perambalur and Salem. Despite the non-linear relationship between weather variables and price, advanced deep learning techniques were employed to uncover hidden patterns and enhance predictive accuracy. Since the price series was non-stationary, Seasonal-Trend-Residual decomposition using Loess decomposition was done to separate trend, seasonality and residual components and distinct models were fitted to each component. Four weather parameters-maximum temperature, minimum temperature, relative humidity and rainfall-were considered as exogenous variables. Feature selection was performed based on the mutual information score. Various deep learning architectures like STL-ANN, STL-TDNN, STL-GRU and STL-LSTM were explored to assess their effectiveness in forecasting prices for each decomposed component and finally ensembled together. The results demonstrated the potential of incorporating weather data into predictive models for cotton price forecasting, with the LSTM model outperforming other three models with MAPE of 3.68 % and 4.07 % in Salem and Perambalur districts respectively. The study highlights the potential of LSTM-based models in supporting informed decision-making and improved crop planning for cotton farmers in these regions.

References

  1. 1. Prashar K, Talwar R, Kant C, editors. CNN based on overlapping pooling method and multi-layered learning with SVM & KNN for American cotton leaf disease recognition. In: 2019 International Conference on Automation, Computational and Technology Management (ICACTM). IEEE; 2019. https://doi.org/10.1109/ICACTM.2019.8776730
  2. 2. India. Ministry of Textiles. Note on cotton sector [Internet]. New Delhi: The Ministry; [cited 2025 May 6]. Available from: https://texmin.gov.in/sites/default/files/Note%20on%20Cotton%20Sector.pdf.
  3. 3. Crane TA, Roncoli C, Paz J, Breuer N, Broad K, Ingram KT, et al. Forecast skill and farmers’ skills: Seasonal climate forecasts and agricultural risk management in the southeastern United States. Weather, Climate, and Society. 2010;2(1):44-59. https://doi.org/10.1175/2009WCAS1006.1
  4. 4. LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521(7553):436-44. https://doi.org/10.1038/nature14539
  5. 5. Antad S. Kisan Dhan - crop price prediction using random forest. Communications on Applied Nonlinear Analysis. 2024;31:240-53. https://doi.org/10.52783/cana.v31.762
  6. 6. Chen Z, Goh HS, Sin KL, Lim K, Chung NKH, Liew XY. Automated agriculture commodity price prediction system with machine learning techniques. 2021. https://doi.org/10.48550/arXiv.2106.12747
  7. 7. Zhang D, Dai X, Wang Q, Lau CKM. Impacts of weather conditions on the US commodity markets systemic interdependence across multi-timescales. Energy Economics. 2023;123:106732. https://doi.org/10.1016/j.eneco.2023.106732
  8. 8. Goodfellow I, Bengio Y, Courville A, Bengio Y. Deep learning. Cambridge: MIT Press; 2016. https://doi.org/10.4258/hir.2016.22.4.351
  9. 9. Krupesh S, Kalpana M, Venkatesa N, Shivakumar K, Vijayabhama M. Neural network framework for predicting groundnut price volatility in india. Plant Science Today. 2024;11:5849. https://doi.org/10.14719/pst.5849
  10. 10. Das P, Jha GK, Lama A. An improved cointegration based time delay neural network model for price forecasting. J Indian Soc Agric Stat. 2021;75(3):187-92. https://doi.org/10.32614/CRAN.package.ECTTDNN
  11. 11. Avinash G, Ramasubramanian V, Ray M, Paul RK, Godara S, Nayak GH, et al. Hidden Markov guided deep learning models for forecasting highly volatile agricultural commodity prices. Applied Soft Computing. 2024;158:111557. https://doi.org/10.1016/j.asoc.2024.111557
  12. 12. Panapakidis IP, Dagoumas AS. Day-ahead electricity price forecasting via the application of artificial neural network based models. Applied Energy. 2016;172:132-51. https://doi.org/10.1016/j.apenergy.2016.03.089
  13. 13. Guo Y, Tang D, Cai Q, Tang W, Wu J, Tang Q. Agricultural price prediction based on data mining and attention-based gated recurrent unit: a case study on China’s hog. Journal of Intelligent & Fuzzy Systems. 2024;46(4):9923-43. http://dx.doi.org/10.3233/JIFS-235843
  14. 14. Guo Z. Research on the augmented Dickey-Fuller test for predicting stock prices and returns. Advances in Economics, Management and Political Sciences. 2023;44:101-6. https://doi.org/10.54254/2754-1169/44/20232198
  15. 15. Kagalwala A. kpsstest: A command that implements the Kwiatkowski, Phillips, Schmidt, and Shin test with sample-specific critical values and reports p-values. The Stata Journal: Promoting communications on statistics and Stata. 2022;22(2):269-92. https://doi.org/10.1177/1536867X221106371
  16. 16. Olalude G. Detection of non-linearity in the time series using BDS test. Science Journal of Applied Mathematics and Statistics. 2015;3(4):184-7. https://doi.org/10.11648/j.sjams.20150304.13
  17. 17. Jaiswal R, Jha GK, Choudhary K, Kumar RR. STL decomposition based LSTM model for seasonal agricultural price forecasting. 2022. https://doi.org/10.21203/rs.3.rs-1350423/v1
  18. 18. Lem KH, editor The STL-ARIMA approach for seasonal time series forecast: A preliminary study. ITM Web of Conferences. EDP Sciences; 2024. https://doi.org/10.1051/itmconf/20246701008
  19. 19. Xu X, Zhang Y. Thermal coal price forecasting via the neural network. Intelligent Systems with Applications. Intelligent Systems with Applications. 2022;14:200084. https://doi.org/10.1016/j.iswa.2022.200084
  20. 20. Ish-Horowicz J, Reid J. Mutual information estimation for transcriptional regulatory network inference. BioRxiv. 2017:132647. https://doi.org/10.1101/132647
  21. 21. Contreras-Reyes JE, Brito A. Refined cross-sample entropy based on freedman-diaconis rule:‎ application to foreign exchange time series. Journal of Applied and Computational Mechanics. 2022;8(3):1005-13. https://doi.org/10.22055/jacm.2022.39470.3412
  22. 22. Nikou M, Mansourfar G, Bagherzadeh J. Stock price prediction using DEEP learning algorithm and its comparison with machine learning algorithms. Intelligent Systems in Accounting, Finance and Management. 2019;26(4):164-74. https://doi.org/10.1002/isaf.1459
  23. 23. Banerjee C, Mukherjee T, Pasiliao Jr E, editors. An empirical study on generalizations of the ReLU activation function. Proceedings of the 2019 ACM Southeast Conference; 2019. https://doi.org/10.1145/3299815.3314450
  24. 24. Mastromichalakis S. ALReLU: A different approach on Leaky ReLU activation function to improve Neural Networks Performance. 2020. https://doi.org/10.48550/arXiv.2012.07564
  25. 25. Narkhede MV, Bartakke PP, Sutaone MS. A review on weight initialization strategies for neural networks. Artificial Intelligence Review. 2022;55(1):291-322. https://doi.org/10.1007/s10462-021-10033-z
  26. 26. Yang M, Lim MK, Qu Y, Li X, Ni D. Deep neural networks with L1 and L2 regularization for high dimensional corporate credit risk prediction. Expert Systems with Applications. 2023;213:118873. https://doi.org/10.1016/j.eswa.2022.118873
  27. 27. Guo L. Extreme learning machine with elastic net regularization. Intelligent Automation & Soft Computing. 2020;26(3):421-7. https://doi.org/10.32604/iasc.2020.013918
  28. 28. Srivastava N. Improving neural networks with dropout. MSc [dissertation]. Toronto: University of Toronto; 2013. Available from: https://www.cs.toronto.edu/~nitish/msc_thesis.pdf
  29. 29. Scientific Research Publishing. Advances in Artificial Neural Networks. Wuhan (China): Scientific Research Publishing; 2012. Available from: https://www.scirp.org/book/detailedinforofabook?bookid=2716&booktypeid=1
  30. 30. Bland C, Tonello L, Biganzoli E, Snowdon D, Antuono P, Lanza M. Advances in artificial neural networks. Scientific Research Books; 2020. p. 119.
  31. 31. Nayak GH, Alam MW, Singh K, Avinash G, Kumar RR, Ray M, et al. Exogenous variable driven deep learning models for improved price forecasting of TOP crops in India. Scientific Reports. 2024;14(1):17203.
  32. 32. Jha GK, Choudhary K, Jaiswal R. EEMD-FCR-TDNN: a hybrid model for forecasting agricultural commodity prices. Indian Journal Extension Education. 2023;77:79-88.
  33. 33. Zou H, Xia G, Yang F, Wang H. An investigation and comparison of artificial neural network and time series models for Chinese food grain price forecasting. Neurocomputing. 2007;70(16-18):2913-23. https://doi.org/10.1016/j.neucom.2007.01.009
  34. 34. Jha GK, Sinha K. Agricultural price forecasting using neural network model: An innovative information delivery system. Agricultural Economics Research Review. 2013;26(2):229-39. http://dx.doi.org/10.22004/ag.econ.162150
  35. 35. Mehtab S, Sen J, Dutta A, editors. Stock price prediction using machine learning and LSTM-based deep learning models. Symposium on machine learning and metaheuristics algorithms, and applications. Springer; 2020. https://doi.org/10.1007/978-981-16-0419-5_8
  36. 36. Rezaei H, Faaljou H, Mansourfar G. Stock price prediction using deep learning and frequency decomposition. Expert Systems with Applications. 2021;169:114332. https://doi.org/10.1016/j.eswa.2020.114332
  37. 37. Chung J, Gulcehre C, Cho K, Bengio Y. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint. 2014. arXiv:1412.3555. https://arxiv.org/abs/1412.3555
  38. 38. Kurumatani K. Time series forecasting of agricultural product prices based on recurrent neural networks and its evaluation method. SN Applied Sciences. 2020;2(8):1434. https://doi.org/10.1007/s42452-020-03225-9
  39. 39. Chaudhary M. AI aided tools for fresh produce yield and price forecasting: deep learning approaches: University of Waterloo; 2021.

Downloads

Download data is not yet available.