Abstract
Forecasting methods are advantageous tools to predict the future, especially for agricultural commodities production. This study aims to compare the forecasting method between Fourier Regression, Multilayer Perceptrons Neural Networks (MPNN), and introducing a new forecasting method hybrid Fourier Regression – Multilayer Perceptrons Neural Networks Model proposed by the author. These methods are applied to forecast the production of big chili commodities since it is one of the essential vegetable commodities with a high household and industrial consumption in Indonesia. The big chili production data used is monthly from January 2010 to June 2017 (in quintal units) sourced from Statistics Indonesia. The results show hybrid Fourier Regression – Multilayer Perceptrons Neural Networks Model is more accurate to forecast big chili production than Fourier Regression and Multilayer Perceptrons (MPNN). The MAPE produced by Fourier Regression-MPNN is the lowest compared to the other methods, which is 4.45. In summary, the use of the hybrid Fourier Regression-MPNN method in forecasting big chili production can help the government to find out the potential production of big chili in the next few quarters. Furthermore, the results are useful for considering some government policies about big chili needs such as making a decision to export or import big chili commodities.
Introduction
Forecasting is the art and science of predicting events using historical data and projecting them into the future using some form of mathematical model. There are two approaches to forecasting, namely the qualitative approach and the quantitative approach. Qualitative forecasting methods are used when historical data are not available. The qualitative method of forecasting is a subjective (intuitive) method. This method is based on qualitative information. This information base can predict events in the future. The accuracy of this method is highly subjective. Quantitative forecasting methods are divided into two types, causal and time series. The causal forecasting method includes factors related to the predicted variables such as Regression analysis. Time series forecasting is a quantitative method for analyzing past data that is collected regularly using appropriate techniques. The results used to be a reference for forecasting future values [6].
Previously, forecasting methods such as exponential smoothing, moving average, ARIMA, ARFIMA, and Fourier Regression (Harmonic Regression/Spectral Regression) only used one forecasting method. However, due to advances in computational technology, forecasting methods have become more complex and accurate. Implementing data mining techniques in the forecasting process and even combining them with classical methods into a hybrid forecasting method such as Ref. [1, 3, 4, 7, 8]. results in a much more accurate forecasting value than only one forecasting method (non-hybrid).
Implementation of forecasting method is good enough to predict future agricultural production, such as big chili production. Big chili is an essential vegetable commodity. The need for big chili is high every year. Here is the household consumption participation rate of big chili base on the National Socio-Economic Survey (SUSENAS).
The average household consumption participation rate of chili in 2015–2019 is 59.41%. Not only the household but there is also a high demand for industrial consumption. So the forecasting of big chili is a helpful indicator for the government to control domestic stock. The big chili production is influenced by seasonal factors such as climate.
In this paper, the authors propose a hybrid method between Fourier Regression (Harmonic Regression /Spectral Regression) and Multilayer Perceptrons Neural Network (MPNN) for forecasting big chili production data. The basic idea of this method is data containing strong seasonality (stationary-data) is assumed to be a combination of sinusoidal and noise components. Sinusoidal components are accomplished by Fourier Regression while noise (irregular) components are by Multilayer Perceptrons.

Household consumption participation rate of big chili in 2015–2019.
Fourier regression
The stationary
where
To estimate the parameters in Eq. (2), the least square method or by removing the trend element
The most common form of NN used for forecasting is the multilayer perceptrons feedforward. The multilayer perceptrons architecture is presented in Fig. 2. Figure 2 explains that the output produced in forecasting is only one value. The forecasting uses two hidden layers (hidden layers can be more than one hidden layer) consists of four nodes in the first hidden layer and three nodes in the second hidden layer. Meanwhile, the input layer in the one-step-ahead forecasting,

Multilayer perceptrons architecture.
In Eq. (3),
The hybrid Fourier Regression – MPNN Model combines the Fourier Regression model and the multilayer perceptrons neural network applied to the time series, which assumes that the time series is composed of sinusoidal components
The sinusoidal components are estimated by the Harmonic Regression model, while the residuals obtained from the Fourier Regression:
As a consequence of the method that the author proposes on the paper that consists of two stages, the first stage Fourier Regression applied for modeling the sinusoidal component. In the second stage, multilayer perceptrons is applied for modeling the residuals of the Fourier Regression. Because the Fourier Regression cannot explain the irregular component of the data, the residuals of the Fourier Regression contain information about irregularities that are sporadic and random. The hybrid model can improve forecasting accuracy as an implication of the previous explanation.
The sample spectrum is formulated:
where:
The periodogram is one of the analytical tools for detecting periodicity in time series data. In some cases, periodicity cannot be detected but using a smoothed spectrum plot. The periodogram is formulated as follows:
Spectrum plot of sample
Checking seasonal
The hybrid Fourier Regression – MPNN method proposed by the author was applied to forecast big chili production. Big chili production data (in quintal units) is monthly data from January 2010 to June 2017 sourced from Statistics Indonesia. For comparison, the forecasting data was estimated using Fourier Regression, MPNN, and hybrid Fourier Regression – MPNN. The first 84 data points are used as in samples for modeling, then 6 data points as testing samples are used to compare the three methods which are determined based on the MAPE (Mean Absolute Percentage Error) formulated as follows:
where

Development of big chili production (quintal) in Indonesia, 2010–2016 (dash line: trend).
Figure 3 shows that there is a strong additive trend and seasonality element which indicates the magnitude of the seasonal pattern does not depend on the data value, whether the data value is increasing or decreasing. A periodogram is needed to see if the sinusoidal components have a strong effect by removing the trend element first. Here is the periodogram for big chili production (detrended) in Fig. 4. Based on the periodogram presented in Fig. 4, it shows the significant sinusoidal component in magnitude is the 7th sinusoidal component marked by point A and the 14th component marked by point B. These components are implemented in Eq. (2).

Periodogram of big chili production.

Forecasting out samples with Fourier Regression (black smooth line: forecasted of big chili, black dots: actual production data of big chili, gray shaded area: confident interval of forecasted).
Based on Eq. (2), the Fourier Regression model estimation obtained as follows:
The
Forecasting big chili production using Fourier Regression produces a MAPE of 7.44. These are the results of the forecast for the out-sample as follows in Table 1.
Based on the results of processing using in-sample data with 30,000 repetitions, four types of MPNN architectures are obtained, namely, 1 - 2 - 1, 2 - 2 - 1, 6 - 2 - 1, and 12 - 2 - 1, where each input layers are 1, 2, 6, and 12 nodes that use input lagged variables
Forecasting results of big chili peppers using fourier regression
Forecasting results of big chili peppers using fourier regression
Forecasting results of big chili peppers using MPNN
Results of out sample forecasting of big chili production with fourier regression – MPNN

Forecasting out sample using MPNN (black line: actual productin of big chili, blue line: forecasted production of big chili, shaded area: confident interval of forecasted data).

Forecasting out sample with hybrid fourier regression – MPNN [black line: forecasted of big chili production.
The Hybrid Fourier Regression – MPNN method uses the estimation results of Fourier Regression Eq. (11) with big chili production data input to obtain component estimation
Conclusion and recommendations
Based on the results of the previous discussion, forecasting using the Hybrid Fourier Regression – multilayer perceptrons (MPNN) method is more accurate than the Fourier Regression and multilayer perceptrons (MPNN). Since the MAPE produced by the hybrid Fourier Regression – multilayer perceptrons (MPNN) method is the lowest compared to the other methods.
The use of the hybrid Fourier Regression-MPNN method in forecasting big chili production can help the government to find out the potential production of big chili in the next few quarters. Forecasting results of big chili production can help in considering government policies, for example, the decision to export and import big chili commodity. If the forecasting results show the decreasing production of the big chili, the government should prepare for importing big chili. Thus, the price and stock balance of big chili stay controlled. Big chili production data has a significant seasonal effect. The limitation of using the Hybrid Fourier Regression-MPNN method is it can only be applied if the data used has a significant seasonal effect.
For further research, shocks such as the policy effects, sporadic droughts, etc., need to be investigated for their effects on modeling and forecasting results. Thus, strategies and mitigation can be carried out by modifying existing methods.
Footnotes
Acknowledgments
We like to thank Mr. Pieter Everaers from Editor in Chief SJIAOS – IAOS for his kind mentorship in finalizing this paper; Gemma Van Halderen from the Statistics Division in the United Nations Economic and Social Commission for Asia and the Pacific (ESCAP), Our institutions Badan Pusat Statistik-Statistics Indonesia for supporting.
