Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jun 15;18(6):e0275702.
doi: 10.1371/journal.pone.0275702. eCollection 2023.

Recurrent neural network architecture for forecasting banana prices in Gujarat, India

Affiliations

Recurrent neural network architecture for forecasting banana prices in Gujarat, India

Prity Kumari et al. PLoS One. .

Abstract

Objectives: The forecasting of horticulture commodity prices, such as bananas, has wide-ranging impacts on farmers, traders and end-users. The considerable volatility in horticultural commodities pricing estimates has allowed farmers to exploit various local marketplaces for profitable sales of their farm produce. Despite the demonstrated efficacy of machine learning models as a suitable substitute for conventional statistical approaches, their application for price forecasting in the context of Indian horticulture remains an area of contention. Past attempts to forecast agricultural commodity prices have relied on a wide variety of statistical models, each of which comes with its own set of limitations.

Methods: Although machine learning models have emerged as formidable alternatives to more conventional statistical methods, there is still reluctance to use them for the purpose of predicting prices in India. In the present investigation, we have analysed and compared the efficacy of a variety of statistical and machine learning models in order to get accurate price forecast. Autoregressive Integrated Moving Average (ARIMA), Seasonal Autoregressive Integrated Moving Average model (SARIMA), Autoregressive Conditional Heteroscedasticity model (ARCH), Generalized Autoregressive Conditional Heteroscedasticity model (GARCH), Artificial Neural Network (ANN) and Recurrent Neural Network (RNN) were fitted to generate reliable predictions of prices of banana in Gujarat, India from January 2009 to December 2019.

Results: Empirical comparisons have been made between the predictive accuracy of different machine learning (ML) models and the typical stochastic model and it is observed that ML approaches, especially RNN, surpassed all other models in the majority of situations. Mean Absolute Percent Error (MAPE), Root Mean Square Error (RMSE), symmetric mean absolute percentage error (SMAPE), mean absolute scaled error (MASE) and mean directional accuracy (MDA) are used to illustrate the superiority of the models and RNN resulted least in terms of all error accuracy measures.

Conclusions: RNN outperforms other models in this study for predicting accurate prices when compared to various statistical and machine learning techniques. The accuracy of other methodologies like ARIMA, SARIMA, ARCH GARCH, and ANN falls short of expectations.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Architecture of Artificial Neural Network (ANN).
The diagram was created using NN-SVG (Lenail, 2015) [43].
Fig 2
Fig 2. Architecture of Recurrent Neural Network (RNN).
The diagram was created using PyTorch and graphviz library [–45].
Fig 3
Fig 3. Time series scattered plot for banana prices in Gujarat.
Fig 4
Fig 4. Time series decomposition of banana prices in Gujarat.
Fig 5
Fig 5. Pair-plot of multiple lag prices of banana in Gujarat.
Fig 6
Fig 6. ACF& PACF lags of time series data for banana price in Gujarat.
Fig 7
Fig 7. Performance of time series models for banana price on test dataset.
Fig 8
Fig 8. Polar chart of accuracy measures on testing data of time series models for banana prices in Gujarat.
Fig 9
Fig 9. Performance of time series models for banana price for forecasted period.
Fig 10
Fig 10. Polar chart of accuracy measures on forecasted data of time series models for banana prices in Gujarat.

References

    1. Arjun KM. Indian agriculture-status, importance and role in Indian economy. International Journal of Agriculture and Food Science Technology. 2013; 4(4): 343–346.
    1. Ravichandra NG. Horticulture and its role in the national economies. Horticultural Nematology. 2014; 1–3.
    1. nhb.gov.in [Internet]. National Horticulture Board website, Ministry of Agriculture & Farmers Welfare, Govt. of India; c2021 [cited 2021 June 3]. Available from: http://nhb.gov.in/.
    1. Wardhan H, Das S, Gulati A. Banana and Mango Value Chains. In Agricultural Value Chains in India. Springer, 2022. p. 99–143.
    1. Sankar TJ, Pushpa P. Design and Development of Stochastic Modelling for Musa paradisiaca Linn Production in India. J. Algebraic Statistics. 2022; 13(2):3591–3599.

Publication types