| Literature DB >> 35721410 |
Abstract
For decades, time series forecasting had many applications in various industries such as weather, financial, healthcare, business, retail, and energy consumption forecasting. An accurate prediction in these applications is a very important and also difficult task because of high sampling rates leading to monthly, daily, or even hourly data. This high-frequency property of time series data results in complexity and seasonality. Moreover, the time series data can have irregular fluctuations caused by various factors. Thus, using a single model does not result in good accuracy results. In this study, we propose an efficient forecasting framework by hybridizing the recurrent neural network model with Facebook's Prophet to improve the forecasting performance. Seasonal-trend decomposition based on the Loess (STL) algorithm is applied to the original time series and these decomposed components are used to train our recurrent neural network for reducing the impact of these irregular patterns on final predictions. Moreover, to preserve seasonality, the original time series data is modeled with Prophet, and the output of both sub-models are merged as final prediction values. In experiments, we compared our model with state-of-art methods for real-world energy consumption data of seven countries and the proposed hybrid method demonstrates competitive results to these state-of-art methods.Entities:
Keywords: Hybrid model; LSTM; Prophet; Seasonality; Time series forecasting
Year: 2022 PMID: 35721410 PMCID: PMC9202617 DOI: 10.7717/peerj-cs.1001
Source DB: PubMed Journal: PeerJ Comput Sci ISSN: 2376-5992
Figure 1LSTM cell structure.
Figure 2Stacked LSTM network.
Figure 3Proposed hybrid model.
Figure 4Decomposition of time series.
Figure 5Steps for training LSTM.
Sample data from energy consumption dataset of seven countries (GWh).
| Date (mm/dd/yy) | Brazil | Canada | France | Italy | Japan | Mexico | Turkey |
|---|---|---|---|---|---|---|---|
| 07/01/06 | 29,114 | 46,205 | 35,518 | 31,877 | 92,375 | 20,964 | 14,792 |
| 08/01/06 | 29,886 | 45,308 | 31,887 | 25,414 | 100,074 | 20,875 | 15,583 |
| 09/01/06 | 29,917 | 42,417 | 34,300 | 28,872 | 84,229 | 19,460 | 13,747 |
| 10/01/06 | 30,144 | 46,657 | 36,782 | 29,335 | 85,673 | 19,539 | 13,148 |
| 11/01/06 | 30,531 | 48,777 | 41,886 | 29,326 | 86,296 | 17,931 | 15,385 |
| 12/01/06 | 30,494 | 53,009 | 49,453 | 29,114 | 91,021 | 17,971 | 15,232 |
Figure 6Decomposition of Brazilian data.
Respective LSTM model topologies for each dataset.
| Dataset | Method | Input | Hidden layer 1 | Hidden layer 2 | Hidden layer 3 | Output | Sample length |
|---|---|---|---|---|---|---|---|
| Canada | Hybrid | (126,1) | 16 | 8 | 4 | (1) | 14 |
| BiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| deBiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| France | Hybrid | (126,1) | 16 | 8 | 4 | (1) | 14 |
| BiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| deBiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| Japan | Hybrid | (126,1) | 32 | 16 | 8 | (1) | 5 |
| BiLSTM | (126,1) | 32 | 16 | 8 | (1) | 5 | |
| deBiLSTM | (126,1) | 32 | 16 | 8 | (1) | 5 | |
| Mexico | Hybrid | (126,1) | 64 | 32 | 16 | (1) | 24 |
| BiLSTM | (126,1) | 64 | 32 | 16 | (1) | 24 | |
| deBiLSTM | (126,1) | 64 | 32 | 16 | (1) | 24 | |
| Brazil | Hybrid | (126,1) | 8 | 8 | 4 | (1) | 5 |
| BiLSTM | (126,1) | 8 | 8 | 4 | (1) | 5 | |
| deBiLSTM | (126,1) | 8 | 8 | 4 | (1) | 5 | |
| Turkey | Hybrid | (126,1) | 16 | 8 | 4 | (1) | 14 |
| BiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| deBiLSTM | (126,1) | 16 | 8 | 4 | (1) | 14 | |
| Italy | Hybrid | (126,1) | 32 | 16 | 8 | (1) | 5 |
| BiLSTM | (126,1) | 32 | 16 | 8 | (1) | 5 | |
| deBiLSTM | (126,1) | 32 | 16 | 8 | (1) | 5 |
Performance results of models for each country.
| Dataset | Method | MAE | MSE | RMSE |
|---|---|---|---|---|
| Canada | Hybrid | 1,778.090 | 5,514,174.558 |
|
| Prophet | 2,692.760 | 16,970,198.845 | 4,119.490 | |
| BiLSTM | 2,024.409 | 7,131,390.874 | 2,670.466 | |
| deBiLSTM | 4,939.208 | 33,110,916.113 | 5,754.208 | |
| France | Hybrid | 1,536.671 | 4,611,178.316 |
|
| Prophet | 3,012.561 | 15,460,298.534 | 3,931.958 | |
| BiLSTM | 1,715.494 | 4,736,708.254 | 2,176.398 | |
| deBiLSTM | 6,313.654 | 47,940,856.736 | 6,923.933 | |
| Japan | Hybrid | 2,802.822 | 11,420,135.400 |
|
| Prophet | 4,921.811 | 31,072,199.315 | 5,574.244 | |
| BiLSTM | 7,470.529 | 84,741,633.077 | 9,205.521 | |
| deBiLSTM | 5,862.992 | 47,186,452.464 | 6,869.239 | |
| Mexico | Hybrid | 8,80.816 | 1,105,985.936 |
|
| Prophet | 1,029.039 | 1,589,788.345 | 1,260.868 | |
| BiLSTM | 881.306 | 1,224,851.574 | 1,106.730 | |
| deBiLSTM | 2,186.271 | 6,005,540.182 | 2,450.620 | |
| Brazil | Hybrid | 1,519.002 | 2,642,345.014 | 1,625.529 |
| Prophet | 2,733.089 | 8,786,595.659 | 2,964.219 | |
| BiLSTM | 903.928 | 1,200,980.218 | 1,095.892 | |
| deBiLSTM | 803.921 | 1,000,117.467 |
| |
| Turkey | Hybrid | 1,122.314 | 1,844,760.862 | 1,358.219 |
| Prophet | 706.916 | 916,967.034 |
| |
| BiLSTM | 1,792.026 | 5,655,776.258 | 2,378.187 | |
| deBiLSTM | 2,177.616 | 7,583,899.725 | 2,753.888 | |
| Italy | Hybrid | 845.159 | 1,225,318.038 |
|
| Prophet | 1,520.558 | 3,612,153.530 | 1,900.566 | |
| BiLSTM | 1,965.405 | 4,830,733.821 | 2,197.893 | |
| deBiLSTM | 989.882 | 2,667,179.095 | 1,633.150 |
Note: Bold text indicates best results.
Figure 7Prediction results for Canada.
Figure 13Prediction results for Italy.
Comparison with other models.
| Dataset | Method | RMSE |
|---|---|---|
| Canada | Hybrid |
|
| ARIMA | 2,718.240 | |
| SVR | 4,977.226 | |
| Holt-Winters | 2,474.736 | |
| EMD-LSTM | 2,514.770 | |
| EMD-GRU | 2,912.871 | |
| France | Hybrid |
|
| ARIMA | 2,865.827 | |
| SVR | 3,881.359 | |
| Holt-Winters | 2,463.391 | |
| EMD-LSTM | 2,571.966 | |
| EMD-GRU | 2,748.025 | |
| Japan | Hybrid |
|
| ARIMA | 3,267.591 | |
| SVR | 6,883.180 | |
| Holt-Winters | 3,345.802 | |
| EMD-LSTM | 3,401.124 | |
| EMD-GRU | 3,299.705 | |
| Mexico | Hybrid | 1,051.658 |
| ARIMA | 968.572 | |
| SVR | 4,538.936 | |
| Holt-Winters | 1,558.574 | |
| EMD-LSTM |
| |
| EMD-GRU | 1,022.981 | |
| Brazil | Hybrid | 1,625.529 |
| ARIMA | 1,943.011 | |
| SVR | 2,160.605 | |
| Holt-Winters | 2,961.887 | |
| EMD-LSTM |
| |
| EMD-GRU | 1,871.742 | |
| Turkey | Hybrid | 1,358.219 |
| ARIMA |
| |
| SVR | 1,887.737 | |
| Holt-Winters | 707.484 | |
| EMD-LSTM | 1,501.665 | |
| EMD-GRU | 1,444.853 | |
| Italy | Hybrid | 1,106.940 |
| ARIMA | 1,221.386 | |
| SVR | 1,613.364 | |
| Holt-Winters | 803.252 | |
| EMD-LSTM |
| |
| EMD-GRU | 998.125 |
Note: Bold text indicates the best results.