A comparative study of time series and wavelet-based models for accurate Mesta price forecasting in Andhra Pradesh
Abstract
This study focuses on comparing traditional time series models and wavelet decomposition-based models to identify the most effective method for forecasting Mesta wholesale prices in the Amadalavalasa market of Andhra Pradesh. Utilizing monthly price data from January 2010 to December 2024, various models including ARIMA, GARCH, Artificial Neural Networks (ANN), Wavelet-ARIMA (WARIMA), Wavelet-ANN (WANN), and Wavelet-GARCH (WGARCH) were evaluated. Model performance was assessed using accuracy metrics such as Root Mean Squared Error (RMSE), Mean Squared Error (MSE), and Mean Absolute Percentage Error (MAPE) on both training and testing datasets. The results demonstrated that wavelet decomposition-based models, particularly WARIMA, outperformed traditional models by providing more balanced and consistent forecasts with strong generalization capabilities. While ARIMA exhibited stable and reliable predictive accuracy, other models like GARCH and wavelet-based nonlinear approaches showed less consistent performance. The findings underscore the advantage of incorporating wavelet decomposition in time series forecasting to capture complex price dynamics, thereby improving the accuracy and reliability of Mesta price predictions for market stakeholders.
Full Text
Tables and figures are in the full-text PDF.
Introduction
Agricultural commodity price forecasting plays a critical role in the effective management of supply chains, market planning, and policy formulation. Accurate forecasts enable farmers, traders, and policymakers to anticipate market trends, mitigate risks, and optimise resource allocation. Mesta (Hibiscus sabdariffa), a vital natural fiber crop predominantly cultivated in Andhra Pradesh and other parts of India, holds significant economic and cultural importance. Known for its versatile applications in textiles, ropes, and eco-friendly packaging materials, Mesta contributes substantially to rural livelihoods and the agro-based industry. However, the crop's market prices are often subject to high volatility caused by seasonal production cycles, fluctuating demand, and external economic factors. Therefore, improving the accuracy of Mesta price forecasting is essential for stabilizing farmer incomes and supporting sustainable agricultural development. Traditional time series models such as Autoregressive Integrated Moving Average (ARIMA) and Generalized Autoregressive Conditional Heteroskedasticity (GARCH) have been extensively employed in commodity price forecasting. ARIMA models are adept at capturing linear trends and seasonality, while GARCH models address volatility clustering often observed in financial and commodity markets. However, these conventional models may struggle to accurately predict prices when faced with non-linearities, structural breaks, and noise commonly present in agricultural price data. To address these challenges, hybrid models that integrate wavelet decomposition techniques with conventional forecasting approaches have gained prominence. Wavelet-based models can decompose complex time series data into multiple frequency components, enabling more nuanced analysis of both short-term fluctuations and long-term trends. By leveraging the strengths of both wavelet transforms and traditional models, these hybrid approaches have demonstrated improved forecasting performance in various agricultural and financial applications.
This study aims to comparatively evaluate traditional models (ARIMA, GARCH, Artificial Neural Networks) and wavelet decomposition-based hybrid models (Wavelet-ARIMA, Wavelet-ANN, Wavelet-GARCH) for forecasting Mesta wholesale prices in the Amadalavalasa market of Andhra Pradesh. Using monthly price data spanning January 2010 to December 2024, the research assesses model performance based on established accuracy metrics across training and testing datasets. The findings are expected to identify the most effective forecasting technique, thereby providing valuable insights for stakeholders engaged in Mesta production and marketing.
Materials and Methods
The research data was sourced from Indiastat and desagri, covering a timeline from January 2010 to December 2024, which amounts to 15 years of monthly data. The study took place in 2025 at S. V. Agricultural College in Tirupati. The dataset includes monthly average prices (measured in INR per quintal) specific to Andhra Pradesh, consisting of 180 observations. Of these, 168 data points were used for training purposes, while the remaining 12 data points, ranging from 169 to 180, were allocated for testing. The analysis was conducted using R Studio.
Methodology
In this research, wavelet analysis was utilized to explore the fundamental patterns and structures within the time series data of Cotton prices. This method enabled us to break down price fluctuations into various frequency components, effectively capturing both short-term volatility and longterm trends. As a result, the accuracy of our forecasting models was enhanced and gained valuable insights into price dynamics within the agricultural market. The wavelet transform provides a versatile framework for decomposing non-stationary time series data into localized frequency components, allowing for an in-depth analysis of both lowfrequency trends and high-frequency variations, as demonstrated in Paul et al. (2021) [14] .
Wavelet Filter Selection
The Haar wavelet filter was employed due to its simplicity and orthogonality, which makes it particularly suitable for identifying abrupt changes in the time series. The Haar wavelet was selected for its excellent time localization properties and computational efficiency, making it advantageous for analysing non-stationary signals. Its application within the Maximal Overlap Discrete Wavelet Transform (MODWT) framework ensures shift-invariance and maintains alignment with the original time series, thereby facilitating a clearer and more robust multiscale decomposition for forecasting purposes.
Wavelet Transform Approach
For the wavelet transformation, MODWT was opted instead of the traditional Discrete Wavelet Transform (DWT). The MODWT was chosen for its ability to manage signals of any length, to preserve alignment with the original time series, and to offer a shift-invariant representation. These features greatly enhance the analysis and forecasting of time series data.
Implementation
The wavelet transform was implemented using the `modwt` function in R, with the following parameters set: Filter: "haar" MODWT: TRUE` Level of Decomposition: 7 Boundary Handling: "periodic" Computation Mode: `fast = TRUE` This configuration allowed us to decompose the time series into multiple components: one set of approximation coefficients capturing low-frequency trends and seven sets of detail coefficients representing high-frequency variations across different scales. This multilevel decomposition provided a more thorough understanding of both short-and long-term dynamics in the data, thereby supporting more accurate forecasting in subsequent modelling stages.
ARIMA (AutoRegressive Integrated Moving Average)
The procedure outlined can be observed in the work of Jadhav et al. (2017) [8] . The ARIMA model is widely used for forecasting time series data and consists of three main components:
AR (AutoRegressive):
This component examines the relationship between a current observation and several preceding observations (or lagged data points). I (Integrated): This involves differencing the raw data to ensure the time series becomes stationary. MA (Moving Average): This part looks at the relationship between the current observation and the error from a moving average model applied to the lagged observations.
Specification of the ARIMA Model
The ARIMA model is represented as ARIMA (p, d, q), where: p: Represents the number of lag observations (AR component) d: Indicates how many times the raw data is differenced (I component) q: Refers to the size of the moving average window (MA component) Formula:
The ARIMA model can be expressed as:
Where, 𝑌 𝑡 is value of the time series at time t. 𝜙 terms are the coefficients of the AR part. 𝜃 terms are the coefficients of the MA part. 𝜀 𝑡 is the white noise error term.
GARCH (Generalized AutoRegressive Conditional Heteroskedasticity)
GARCH models, which stand for Generalized Autoregressive Conditional Heteroskedasticity models, are widely utilized for modeling and forecasting the volatility of returns in time series data. These models enhance the original ARCH (AutoRegressive Conditional Heteroskedasticity) framework by incorporating lagged volatility terms, allowing for a more comprehensive analysis of changing volatility patterns over time. This approach can be seen in Bhardwaj et al. (2014) [4] . The GARCH model assumes that the variance of the current error term is conditional on past error terms and past variances.
GARCH Model Specification
The GARCH model is typically specified as GARCH (p, q), where p: Number of lagged variance terms q: Number of lagged error terms Formula:
The GARCH (1, 1) model can be expressed as:
where: 𝑌 𝑡 is the return at time t. 𝜇 is the mean of the series. 𝜎 𝑡 2 is the conditional variance. 𝑍 𝑡 is a white noise process. 𝛼 0 , 𝛼 𝑖 , and 𝛽 𝑗 are parameters to be estimated.
ANN (Artificial Neural Networks)
Artificial Neural Networks (ANNs) are sophisticated computational models that draw inspiration from the neural networks in the human brain. These networks are made up of interconnected units called neurons, organized into layers: an input layer, several hidden layers, and an output layer. ANNs excel at identifying and modelling complex nonlinear relationships within datasets, making them valuable in various fields such as machine learning, data analysis, and artificial intelligence. The application of artificial neural networks is examined by Paul et al. (2020) [15] .
Architecture
Input Layer: Accepts the input features. Hidden Layer(s): Analyses inputs using activation functions to identify patterns. Output Layer: Generates the predicted output.
Training
Artificial Neural Networks (ANNs) learn from a dataset by modifying their weights and biases through a method known as back propagation, which aims to reduce the discrepancy between the predicted and actual outputs.
Formula: For a single-layer feed forward ANN, the output Y can be computed as:
where: 𝑌 is the output of the neuron. 𝑋 𝑖 are the input features. 𝑤 𝑖 are the weights associated with the inputs. 𝑏 is the bias term. 𝑓 is the activation function (e.g., sigmoid, ReLU).
A series of wavelet models were developed to predict Cotton prices based on historical price data. The models applied in this research include:
Wavelet-ARIMA:
A combination of wavelet decomposition and ARIMA for forecasting both trend and seasonal components of time series data. The application of this approach can be seen in Kriechbaumer et al. (2014) [11] .
Wavelet-GARCH:
A model incorporating wavelet decomposition and GARCH to forecast price volatility.
Wavelet-ANN:
It involves decomposing the time series into different frequency components using wavelet transform, training separate artificial neural networks on each component, and then reconstructing the forecasted series through inverse wavelet transform to capture both linear and nonlinear patterns for improved accuracy. The application of this approach can be seen in Paul et al. (2022) [16] .
Statistical Tests
Stationarity tests can be performed to identify whether differencing is necessary. To check the stationarity of price series of Mesta, the Augmented Dickey Fuller unit root tests were used. It is observed from the table that original series at level with lag 1, the ADF values are below the critical value at 5% level of significance indicating that no existence of unit root, hence differencing at level with lag 1, the ADF values are above the critical value at 5% level of significance indicating the existence of unit root.
Box-Pierce Test:
This test is used to check for autocorrelation in residuals to assess the randomness of the data.
Brock-Dechert-Scheinkman (BDS) Test:
This test is used to determine the presence of nonlinearity, which justifies the application of nonlinear models like ANN.
Performance Evaluation Metrics
To evaluate the models, the following performance metrics were used:
Root Mean Square Error (RMSE)
Measures the square root of the average squared differences between actual and predicted values. Formula:
where 𝑦 𝑖 and 𝑦 𝑖 ̂are the actual and predicted values of response variable, respectively.
Mean Square Error (MSE)
Measures the average squared differences between actual and predicted values
where 𝑦 𝑖 and 𝑦 𝑖 ̂are the actual and predicted values of response variable, respectively.
Mean absolute percentage error (MAPE)
The mean absolute percentage error (MAPE) is one of the most popular measures of the forecast accuracy. 𝐴 𝑡 and 𝐹 𝑡 note the actual and forecast values at data point t, respectively.
Results and Discussion
The descriptive statistics for Mesta wholesale prices (in INR), as shown in Table 1, provide important insights into the data characteristics over the study period. The mean price of ₹2977.23 indicates the average market price, while the median value of ₹2625, which is lower than the mean, alongside a positive skewness of 0.84, suggests that the price distribution is right-skewed. This implies the presence of occasional high price spikes that pull the average upwards. The mode of ₹2200 further highlights the most frequently occurring price in the dataset.
The relatively high standard deviation of ₹1011.62 and a wide range of ₹3680 (from a minimum of ₹1620 to a maximum of ₹5300) reveal significant variability and fluctuations in Mesta prices over time. The kurtosis value of-0.32 indicates a slightly platykurtic distribution, meaning the data distribution has lighter tails and is less peaked than a normal distribution. Such variability and skewness underscore the complex nature of Mesta price movements and emphasize the need for advanced forecasting models that can effectively capture these dynamic patterns. The stationarity of the data was tested using ADF test in which the data was found to be non-stationary but after the first difference the data attained stationarity. The ARIMA model was fitted on the data using the auto.arima () function in R studio. Based on the lowest AIC value ARIMA (0,1,1) model was found to be the best model out of the other (p,d,q) parameters of ARIMA for the dataset. The Box-Pierce test shows no significant autocorrelation in the ARIMA residuals (p = 0.9445), indicating a good fit for linear patterns. However, the BDS test reveals significant nonlinear dependence, suggesting the model may not fully capture nonlinear structures in the data. After which the GARCH (1,1) was trained on the dataset, the Box-Pierce test indicates significant autocorrelation remains in the GARCH residuals (p = 0.0012). The BDS test also showed strong evidence of nonlinear dependence, suggesting the model may not fully capture all linear and nonlinear patterns in the residuals. Further ANN (12,2) model was trained on the dataset. The Box-Pierce test showed no significant autocorrelation in the neural network residuals (p = 0.7974). However, the BDS test detects significant nonlinear dependence at most epsilon levels, indicating some nonlinear patterns remain unmodeled. Next, the wavelet decomposition models were trained on the dataset using Haar wavelet filter with 7 levels of decomposition. In Figure 1, the wavelet decomposition plot breaks the original time series (bottom panel) into different frequency components, with coarse-scale trends captured in the top panels (V 7 , W 7 ) and progressively finer-scale fluctuations in lower panels (W 6 to W 1 ). Higher-level components show long-term price movements, while lower-level components highlight shortterm volatility and noise. This multiscale representation helps in identifying both underlying trends and transient variations in the data.
The performance comparison of all the models is given in
Conclusion
This study compared traditional time series models and wavelet decomposition-based approaches for forecasting Mesta wholesale prices in the Amadalavalasa market of Andhra Pradesh. While WARIMA achieved the lowest error metrics on the test set, ARIMA (0,1,1) emerged as the most suitable model when considering a combination of forecasting accuracy, stability between training and testing performance, and residual adequacy. ARIMA provided consistently low errors across datasets, a small train-test performance gap, and comparatively better residual properties than wavelet-based models, which all exhibited autocorrelation and nonlinearity. Although wavelet decomposition enhanced short-term forecasting accuracy by capturing multi-scale patterns, its residual limitations reduce its statistical adequacy. The findings suggest that ARIMA is a robust and statistically reliable choice for Mesta price forecasting, offering a balanced approach for both predictive performance and model soundness. These results can support policymakers, traders, and market analysts in making informed decisions, while also highlighting the potential of wavelet methods as supplementary tools for improving short-term forecast precision in volatile agricultural markets.
References
- Alkesaiberi A, Harrou F, Sun Y. Efficient wind power prediction using machine learning methods: A comparative study. Energies. 2022;15(7):2327-2327.
- Alsuwaylimi AA. Comparison of ARIMA, ANN and hybrid ARIMA-ANN models for time series forecasting. Inf Sci Lett. 2023;12(2):1003-1016.
- Anjoy P, Paul RK. Comparative performance of wavelet-based neural network approaches. Neural Comput Appl. 2019;31:3443-3453.
- Bhardwaj SP, Paul RK, Singh DR, Singh KN. An empirical investigation of ARIMA and GARCH models in agricultural price forecasting. Econ Aff. 2014;59(3):415-428.
- Bao W, Cao Y, Yang Y, Che H, Huang J, Wen S. Datadriven stock forecasting models based on neural networks: A review. Inf Fusion. 2024;102616:1.
- Chen Y, Bhutta MS, Abubakar M, Xiao D, Almasoudi FM, Naeem H, Faheem M. Evaluation of machine learning models for smart grid parameters: Performance analysis of ARIMA and Bi-LSTM. Sustainability. 2023;15(11):8555-8555.
- Das T, Paul RK, Bhar LM, Paul AK. Application of machine learning techniques with GARCH model for forecasting volatility in agricultural commodity prices. J Indian Soc Agric Stat. 2020;74(3):187-194.
- Jadhav V, Reddy BV, Gaddi GM. Application of ARIMA model for forecasting agricultural prices. J Agric Sci Technol. 2017;19(5):981-992.
- Janiesch C, Zschech P, Heinrich K. Machine learning and deep learning. Electron Mark. 2021;31(3):685-695.
- Kigo SN, Omondi EO, Omolo BO. Assessing predictive performance of supervised machine learning algorithms for a diamond pricing model. Sci Rep. 2023;13(1):17315-17315.
- Kriechbaumer T, Angus A, Parsons D, Casado MR. An improved wavelet-ARIMA approach for forecasting metal prices. Resour Policy. 2014;39:32-41.
- Özdemir O. Volatility spillover in cryptocurrency markets during the COVID-19 pandemic: Evidence from DCC-GARCH and wavelet analysis. Financ Innov. 2022;8(1):12-12.
- Panasa V, Kumari RV, Ramakrishna G, Kaviraju S. Maize price forecasting using auto regressive integrated moving average (ARIMA) model. Int J Curr Microbiol App Sci. 2017;6(8):2887-2895.
- Paul RK, Garai S. Performance comparison of waveletbased machine learning techniques for forecasting agricultural commodity prices. Soft Comput. 2021;25(20):12857-12873.
- Paul RK, Vennila S, Yadav SK, Bhat MN, Kumar M, Chandra P, Prabhakar M. Weather-based forecasting of sterility mosaic disease in pigeon pea (Cajanus cajan) using machine learning techniques and hybrid models. Indian J Agric Sci. 2020;90(10):1952-1958.
- Paul RK, Vennila S, Yeasin M, Kumar S. Wavelet decomposition and machine learning technique for predicting occurrence of spiders in pigeon pea. Agronomy. 2022;12(6):1429-1429.
- Paul RK, Yeasin M, Kumar P, Paul AK, Roy HS. Deep learning technique for forecasting the price of cauliflower. Curr Sci. 2023;124(9):1065-1073.
- Rathod S, Singh KN, Paul RK, Meher SK, Mishra GC, Gurung B, Ray M, Sinha K. An improved ARFIMA model using maximum overlap discrete wavelet transform (MODWT) and ANN for forecasting agricultural commodity price. J Indian Soc Agric Stat. 2017;71(2):103-111.
- Ray M, Rai A, Ramasubramanian V, Singh KN. ARIMA-WNN hybrid model for forecasting wheat yield time-series data. J Indian Soc Agric Stat. 2016;70(1):63-70.
- Ray M, Singh KN, Ramasubramanian V, Paul RK, Mukherjee A, Rathod S. Integration of wavelet transform with ANN and WNN for time series forecasting: An application to Indian monsoon rainfall. Natl Acad Sci Lett. 2020;43(6):509-513.
- Setiawan B, Abdallah M, Fekete-Farkas M, Suhendra A. GARCH models and analysis of stock market turmoil during COVID-19 outbreak. J Risk Financ Manag. 2021;14(12):576-576.
- Shameem S, Kumari LP, Murthy BR, Vani N. Forecasting wholesale castor prices in Andhra Pradesh with hybrid, machine learning and wavelet decomposition techniques. Int J Stat Appl Math. 2025;10(5):92-98.
- Shameem S, Kumari LP, Murthy BR, Vani N. A synergistic approach to forecasting sesamum prices in Andhra Pradesh: Hybrid, machine learning and wavelet decomposition models. J Sci Res Rep. 2025;31(6):1033-1043.
- Zhang GP. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing. 2003;50:159-175.
- Zhu R, Zhong GY, Li JC. Forecasting price in a new hybrid neural network model with machine learning. Expert Syst Appl. 2024;249:123697-123697.
How this paper connects to the literature. Drag to explore, click any node to open that paper.
