Figure 1.
Block diagram of proposed deep Bidirectional GRU Fused Attention (BiG-FA) model.
Figure 1.
Block diagram of proposed deep Bidirectional GRU Fused Attention (BiG-FA) model.
Figure 2.
Forecast using the proposed Fused Attention Model (BiG-FA) on the NIFTY 50 stock index to effectively capture different temporal scales. The proposed model outperformed all other baseline and attention-based models, achieving MAE = 124.70, RMSE = 173.34, MAPE = 0.58%, and R2 Score = 0.9955.
Figure 2.
Forecast using the proposed Fused Attention Model (BiG-FA) on the NIFTY 50 stock index to effectively capture different temporal scales. The proposed model outperformed all other baseline and attention-based models, achieving MAE = 124.70, RMSE = 173.34, MAPE = 0.58%, and R2 Score = 0.9955.
Figure 3.
Forecast using BiGRU + Bahdanau Attention on NIFTY 50 stock index: yielded best results with MAE = 192.30, RMSE = 248.87, MAPE = 0.89%, and R2 = 0.9908.
Figure 3.
Forecast using BiGRU + Bahdanau Attention on NIFTY 50 stock index: yielded best results with MAE = 192.30, RMSE = 248.87, MAPE = 0.89%, and R2 = 0.9908.
Figure 4.
Forecast using BiLSTM + Bahdanau Attention on NIFTY 50 stock index: yielded MAE = 198.80, RMSE = 250.38, MAPE = 0.91%, and R2 = 0.9906.
Figure 4.
Forecast using BiLSTM + Bahdanau Attention on NIFTY 50 stock index: yielded MAE = 198.80, RMSE = 250.38, MAPE = 0.91%, and R2 = 0.9906.
Figure 5.
Forecast using GRU + Luong Attention on NIFTY 50 stock index: produced MAE = 209.74, RMSE = 271.52, MAPE = 0.94%, and R2 = 0.9890.
Figure 5.
Forecast using GRU + Luong Attention on NIFTY 50 stock index: produced MAE = 209.74, RMSE = 271.52, MAPE = 0.94%, and R2 = 0.9890.
Figure 6.
Forecast using N-BEATS on NIFTY 50 stock index: achieved MAE = 270.86, RMSE = 341.48, MAPE = 1.24%, and R2 = 0.9826.
Figure 6.
Forecast using N-BEATS on NIFTY 50 stock index: achieved MAE = 270.86, RMSE = 341.48, MAPE = 1.24%, and R2 = 0.9826.
Figure 7.
Forecast using GRU + Bahdanau Attention on NIFTY 50 stock index: reported MAE = 300.00, RMSE = 401.01, MAPE = 1.36%, and R2 = 0.9760.
Figure 7.
Forecast using GRU + Bahdanau Attention on NIFTY 50 stock index: reported MAE = 300.00, RMSE = 401.01, MAPE = 1.36%, and R2 = 0.9760.
Figure 8.
Forecast using GRU on NIFTY 50 stock index: scored MAE = 330.71, RMSE = 411.02, MAPE = 1.50%, and R2 = 0.9748.
Figure 8.
Forecast using GRU on NIFTY 50 stock index: scored MAE = 330.71, RMSE = 411.02, MAPE = 1.50%, and R2 = 0.9748.
Figure 9.
Forecast using LSTM + Bahdanau Attention on NIFTY 50 stock index: registered MAE = 405.53, RMSE = 493.85, MAPE = 1.82%, and R2 = 0.9612.
Figure 9.
Forecast using LSTM + Bahdanau Attention on NIFTY 50 stock index: registered MAE = 405.53, RMSE = 493.85, MAPE = 1.82%, and R2 = 0.9612.
Figure 10.
Forecast using GRU + Vanilla Attention on NIFTY 50 stock index: resulted in MAE = 631.98, RMSE = 672.55, MAPE = 2.95%, and R2 = 0.9324.
Figure 10.
Forecast using GRU + Vanilla Attention on NIFTY 50 stock index: resulted in MAE = 631.98, RMSE = 672.55, MAPE = 2.95%, and R2 = 0.9324.
Figure 11.
Forecast using DeepAR on NIFTY 50 stock index: achieved MAE = 662.39, RMSE = 808.03, MAPE = 2.91%, and R2 = 0.9024.
Figure 11.
Forecast using DeepAR on NIFTY 50 stock index: achieved MAE = 662.39, RMSE = 808.03, MAPE = 2.91%, and R2 = 0.9024.
Figure 12.
Forecast using LSTM + Luong Attention on NIFTY 50 stock index: achieved MAE = 794.24, RMSE = 920.11, MAPE = 3.62%, and R2 = 0.8732.
Figure 12.
Forecast using LSTM + Luong Attention on NIFTY 50 stock index: achieved MAE = 794.24, RMSE = 920.11, MAPE = 3.62%, and R2 = 0.8732.
Figure 13.
Forecast using LSTM + Vanilla Attention on NIFTY 50 stock index: generated MAE = 854.19, RMSE = 995.65, MAPE = 3.86%, and R2 = 0.8518.
Figure 13.
Forecast using LSTM + Vanilla Attention on NIFTY 50 stock index: generated MAE = 854.19, RMSE = 995.65, MAPE = 3.86%, and R2 = 0.8518.
Figure 14.
Forecast using TCN model on NIFTY 50 stock index: achieved MAE = 1198.30, RMSE = 1479.59, MAPE = 5.27%, and R2 = 0.6728.
Figure 14.
Forecast using TCN model on NIFTY 50 stock index: achieved MAE = 1198.30, RMSE = 1479.59, MAPE = 5.27%, and R2 = 0.6728.
Figure 15.
Forecast using LSTM on NIFTY 50 stock index: produced poor results with MAE = 1472.77, RMSE = 1526.47, MAPE = 6.85%, and R2 = 0.6518.
Figure 15.
Forecast using LSTM on NIFTY 50 stock index: produced poor results with MAE = 1472.77, RMSE = 1526.47, MAPE = 6.85%, and R2 = 0.6518.
Figure 16.
Forecast using CNN + LSTM + Attention on NIFTY 50 stock index: recorded the lowest performance with MAE = 1782.56, RMSE = 1884.56, MAPE = 8.19%, and R2 = 0.4692.
Figure 16.
Forecast using CNN + LSTM + Attention on NIFTY 50 stock index: recorded the lowest performance with MAE = 1782.56, RMSE = 1884.56, MAPE = 8.19%, and R2 = 0.4692.
Figure 17.
Forecast using Random Forest on NIFTY 50 stock index: yielded MAE = 2855.10, RMSE = 3709.02, MAPE = 12.30%, and R2 = −1.0560.
Figure 17.
Forecast using Random Forest on NIFTY 50 stock index: yielded MAE = 2855.10, RMSE = 3709.02, MAPE = 12.30%, and R2 = −1.0560.
Figure 18.
Forecast using XGBoost Model on NIFTY 50 stock index: yielded MAE = 3010.03, RMSE = 3861.51, MAPE = 13.01%, and R2 = −1.2285.
Figure 18.
Forecast using XGBoost Model on NIFTY 50 stock index: yielded MAE = 3010.03, RMSE = 3861.51, MAPE = 13.01%, and R2 = −1.2285.
Figure 19.
Forecast using the proposed BiG-FA model on S&P 500 stock index: achieved the best overall performance with MAE = 30.13, RMSE = 40.29, MAPE = 0.63%, and R2 Score = 0.9961.
Figure 19.
Forecast using the proposed BiG-FA model on S&P 500 stock index: achieved the best overall performance with MAE = 30.13, RMSE = 40.29, MAPE = 0.63%, and R2 Score = 0.9961.
Figure 20.
Forecast using BiGRU + Bahdanau Attention on S&P 500 stock index: yielded strong results with MAE = 55.42, RMSE = 64.90, MAPE = 1.12, and R2 = 0.9899.
Figure 20.
Forecast using BiGRU + Bahdanau Attention on S&P 500 stock index: yielded strong results with MAE = 55.42, RMSE = 64.90, MAPE = 1.12, and R2 = 0.9899.
Figure 21.
Forecast using BiLSTM + Bahdanau Attention on S&P 500 stock index: achieved MAE = 55.48, RMSE = 65.71, MAPE = 1.12%, and R2 = 0.9896.
Figure 21.
Forecast using BiLSTM + Bahdanau Attention on S&P 500 stock index: achieved MAE = 55.48, RMSE = 65.71, MAPE = 1.12%, and R2 = 0.9896.
Figure 22.
Forecast using GRU + Bahdanau Attention on S&P 500 stock index: reported MAE = 66.13, RMSE = 74.73, MAPE = 1.36%, and R2 = 0.9866.
Figure 22.
Forecast using GRU + Bahdanau Attention on S&P 500 stock index: reported MAE = 66.13, RMSE = 74.73, MAPE = 1.36%, and R2 = 0.9866.
Figure 23.
Forecast using GRU + Luong Attention on S&P 500 stock index: resulted in MAE = 77.86, RMSE = 111.72, MAPE = 1.48%, and R2 = 0.9699.
Figure 23.
Forecast using GRU + Luong Attention on S&P 500 stock index: resulted in MAE = 77.86, RMSE = 111.72, MAPE = 1.48%, and R2 = 0.9699.
Figure 24.
Forecast using N-BEATS on S&P 500 stock index: achieved MAE = 306.75, RMSE = 388.32, MAPE = 5.80%, and R2 = 0.6369.
Figure 24.
Forecast using N-BEATS on S&P 500 stock index: achieved MAE = 306.75, RMSE = 388.32, MAPE = 5.80%, and R2 = 0.6369.
Figure 25.
Forecast using GRU on S&P 500 stock index: produced MAE = 109.93, RMSE = 129.42, MAPE = 2.17%, and R2 = 0.9597.
Figure 25.
Forecast using GRU on S&P 500 stock index: produced MAE = 109.93, RMSE = 129.42, MAPE = 2.17%, and R2 = 0.9597.
Figure 26.
Forecast using LSTM + Bahdanau Attention on S&P 500 stock index: registered MAE = 116.96, RMSE = 139.26, MAPE = 2.28%, and R2 = 0.9533.
Figure 26.
Forecast using LSTM + Bahdanau Attention on S&P 500 stock index: registered MAE = 116.96, RMSE = 139.26, MAPE = 2.28%, and R2 = 0.9533.
Figure 27.
Forecast using LSTM + Luong Attention on S&P 500 stock index: achieved MAE = 152.70, RMSE = 177.39, MAPE = 3.00%, and R2 = 0.9242.
Figure 27.
Forecast using LSTM + Luong Attention on S&P 500 stock index: achieved MAE = 152.70, RMSE = 177.39, MAPE = 3.00%, and R2 = 0.9242.
Figure 28.
Forecast using GRU + Vanilla Attention on S&P 500 stock index: produced MAE = 165.55, RMSE = 189.70, MAPE = 3.28%, and R2 = 0.9134.
Figure 28.
Forecast using GRU + Vanilla Attention on S&P 500 stock index: produced MAE = 165.55, RMSE = 189.70, MAPE = 3.28%, and R2 = 0.9134.
Figure 29.
Forecast using LSTM + Vanilla Attention on S&P 500 stock index: yielded MAE = 178.43, RMSE = 203.58, MAPE = 3.53%, and R2 = 0.9002.
Figure 29.
Forecast using LSTM + Vanilla Attention on S&P 500 stock index: yielded MAE = 178.43, RMSE = 203.58, MAPE = 3.53%, and R2 = 0.9002.
Figure 30.
Forecast using CNN + LSTM + Attention on S&P 500 stock index: resulted in relatively poor performance with MAE = 273.28, RMSE = 312.32, MAPE = 5.33%, and R2 = 0.7651.
Figure 30.
Forecast using CNN + LSTM + Attention on S&P 500 stock index: resulted in relatively poor performance with MAE = 273.28, RMSE = 312.32, MAPE = 5.33%, and R2 = 0.7651.
Figure 31.
Forecast using TCN on S&P 500 stock index: achieved MAE = 258.75, RMSE = 320.01, MAPE = 4.95%, and R2 = 0.7534.
Figure 31.
Forecast using TCN on S&P 500 stock index: achieved MAE = 258.75, RMSE = 320.01, MAPE = 4.95%, and R2 = 0.7534.
Figure 32.
Forecast using LSTM on S&P 500 stock index: recorded the lowest performance with MAE = 296.58, RMSE = 323.50, MAPE = 5.89%, and R2 = 0.7480.
Figure 32.
Forecast using LSTM on S&P 500 stock index: recorded the lowest performance with MAE = 296.58, RMSE = 323.50, MAPE = 5.89%, and R2 = 0.7480.
Figure 33.
Forecast using N-BEATS on S&P 500 stock index: achieved MAE = 306.75, RMSE = 388.32, MAPE = 5.80%, and R2 = 0.6369.
Figure 33.
Forecast using N-BEATS on S&P 500 stock index: achieved MAE = 306.75, RMSE = 388.32, MAPE = 5.80%, and R2 = 0.6369.
Figure 34.
Forecast using Random Forest on S&P 500 stock index: yielded MAE = 360.41, RMSE = 549.23, MAPE = 6.52%, and R2 = 0.2737.
Figure 34.
Forecast using Random Forest on S&P 500 stock index: yielded MAE = 360.41, RMSE = 549.23, MAPE = 6.52%, and R2 = 0.2737.
Figure 35.
Forecast using XGBoost on S&P 500 stock index: yielded MAE = 400.13, RMSE = 598.67, MAPE = 7.26%, and R2 = 0.1370.
Figure 35.
Forecast using XGBoost on S&P 500 stock index: yielded MAE = 400.13, RMSE = 598.67, MAPE = 7.26%, and R2 = 0.1370.
Figure 36.
Visualization of Attention Weights—NIFTY 50 stock index.
Figure 36.
Visualization of Attention Weights—NIFTY 50 stock index.
Figure 37.
Visualization of Attention Weights—S&P 500 stock index.
Figure 37.
Visualization of Attention Weights—S&P 500 stock index.
Figure 38.
Integrated Gradient over Time Steps—NIFTY 50 stock index.
Figure 38.
Integrated Gradient over Time Steps—NIFTY 50 stock index.
Figure 39.
Integrated Gradient over time steps—S&P 500 stock index.
Figure 39.
Integrated Gradient over time steps—S&P 500 stock index.
Figure 40.
SHAP Summary Plot: Feature Impact on Prediction for NIFTY 50 index.
Figure 40.
SHAP Summary Plot: Feature Impact on Prediction for NIFTY 50 index.
Figure 41.
SHAP summary plot: feature impact on prediction for S&P 500 index.
Figure 41.
SHAP summary plot: feature impact on prediction for S&P 500 index.
Table 1.
Performance comparison of models on NIFTY 50 index close price prediction.
Table 1.
Performance comparison of models on NIFTY 50 index close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention (Sparse + Global + Bahdanau) | 124.70 | 173.34 | 0.58% | 0.9955 |
| BiGRU + Bahdanau Attention | 192.30 | 248.87 | 0.89% | 0.9908 |
| BiLSTM + Bahdanau Attention | 198.80 | 250.38 | 0.91% | 0.9906 |
| GRU + Luong Attention | 209.74 | 271.52 | 0.94% | 0.9890 |
| N-BEATS | 270.86 | 341.48 | 1.24% | 0.9826 |
| GRU + Bahdanau Attention | 300.00 | 401.01 | 1.36% | 0.9760 |
| GRU | 330.71 | 411.02 | 1.50% | 0.9748 |
| LSTM + Bahdanau Attention | 405.53 | 493.85 | 1.82% | 0.9612 |
| GRU + Vanilla Attention | 631.98 | 672.55 | 2.95% | 0.9324 |
| DeepAR | 662.39 | 808.03 | 2.91% | 0.9024 |
| LSTM + Luong Attention | 794.24 | 920.11 | 3.62% | 0.8732 |
| LSTM + Vanilla Attention | 854.19 | 995.65 | 3.86% | 0.8518 |
| TCN | 1198.30 | 1479.59 | 5.27% | 0.6728 |
| LSTM | 1472.77 | 1526.47 | 6.85% | 0.6518 |
| CNN + LSTM + Attention | 1782.56 | 1884.56 | 8.19% | 0.4692 |
| Random Forest | 2855.10 | 3709.02 | 12.30% | −1.0560 |
| XGBoost | 3010.03 | 3861.51 | 13.01% | −1.2285 |
Table 2.
Performance comparison of models on S&P 500 index close price prediction.
Table 2.
Performance comparison of models on S&P 500 index close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention (Sparse + Global + Bahdanau) | 30.13 | 40.29 | 0.63% | 0.9961 |
| BiGRU + Bahdanau Attention | 55.42 | 64.90 | 1.12% | 0.9899 |
| BiLSTM + Bahdanau Attention | 55.48 | 65.71 | 1.12% | 0.9896 |
| GRU + Bahdanau Attention | 66.13 | 74.73 | 1.36% | 0.9866 |
| GRU + Luong Attention | 77.86 | 111.72 | 1.48% | 0.9699 |
| DeepAR | 99.17 | 123.80 | 1.92% | 0.9631 |
| GRU | 109.93 | 129.42 | 2.17% | 0.9597 |
| LSTM + Bahdanau Attention | 116.96 | 139.26 | 2.28% | 0.9533 |
| LSTM + Luong Attention | 152.70 | 177.39 | 3.00% | 0.9242 |
| GRU + Vanilla Attention | 165.55 | 189.70 | 3.28% | 0.9134 |
| LSTM + Vanilla Attention | 178.43 | 203.58 | 3.53% | 0.9002 |
| CNN + LSTM + Attention | 273.28 | 312.32 | 5.33% | 0.7651 |
| TCN | 258.75 | 320.01 | 4.95% | 0.7534 |
| LSTM | 296.58 | 323.50 | 5.89% | 0.7480 |
| N-BEATS | 306.75 | 388.32 | 5.80% | 0.6369 |
| Random Forest | 360.41 | 549.23 | 6.52% | 0.2737 |
| XGBoost | 400.13 | 598.67 | 7.26% | 0.1370 |
Table 3.
Performance of the proposed BiGRU–Fused Attention model under crisis regimes for S&P 500 and NIFTY 50.
Table 3.
Performance of the proposed BiGRU–Fused Attention model under crisis regimes for S&P 500 and NIFTY 50.
| Experiment | MAE | RMSE | MAPE (%) | R2 |
|---|
| S&P 500–COVID-19 Crisis | 95.0442 | 114.2608 | 3.29 | 0.8167 |
| S&P 500–Global Financial Crisis | 31.4984 | 43.6248 | 3.08 | 0.9734 |
| NIFTY 50–COVID-19 Crisis | 317.4508 | 414.1400 | 3.30 | 0.8711 |
| NIFTY 50–Global Financial Crisis | 31.6047 | 43.8923 | 3.15 | 0.9731 |
Table 4.
Performance Comparison of models on AAPL close price prediction.
Table 4.
Performance Comparison of models on AAPL close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention | 3.03 | 3.82 | 1.55% | 0.9807 |
| BiGRU + Bahdanau Attention | 3.81 | 5.07 | 1.90% | 0.9660 |
| N-BEATS | 4.14 | 5.14 | 2.22% | 0.9651 |
| GRU + Bahdanau Attention | 3.87 | 5.22 | 1.95% | 0.9640 |
| BiLSTM + Bahdanau Attention | 5.32 | 6.67 | 2.85% | 0.9412 |
| GRU + Vanilla Attention | 6.33 | 8.44 | 3.16% | 0.9058 |
| GRU + Luong Attention | 6.84 | 8.52 | 3.70% | 0.9041 |
| DeepAR | 6.83 | 8.54 | 3.61% | 0.9036 |
| TCN | 7.47 | 9.27 | 3.85% | 0.8865 |
| LSTM + Luong Attention | 8.17 | 10.19 | 4.19% | 0.8628 |
| GRU | 8.40 | 10.32 | 4.32% | 0.8592 |
| LSTM + Bahdanau Attention | 8.57 | 10.72 | 4.20% | 0.8481 |
| LSTM + Vanilla Attention | 11.06 | 11.97 | 5.74% | 0.8105 |
| LSTM | 10.14 | 12.59 | 5.10% | 0.7903 |
| CNN + LSTM + Attention | 11.39 | 14.78 | 5.72% | 0.7113 |
| Random Forest | 20.62 | 30.51 | 9.61% | −0.2308 |
| XGBoost | 22.98 | 32.94 | 10.79% | −0.4345 |
Table 5.
Performance Comparison of models on MSFT close price prediction.
Table 5.
Performance Comparison of models on MSFT close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention | 10.08 | 12.08 | 2.77% | 0.9612 |
| BiGRU + Bahdanau Attention | 10.70 | 12.43 | 2.80% | 0.9589 |
| GRU + Luong Attention | 14.91 | 18.34 | 4.17% | 0.9106 |
| BiLSTM + Bahdanau Attention | 15.41 | 18.34 | 4.11% | 0.9106 |
| GRU + Bahdanau Attention | 17.63 | 20.60 | 4.76% | 0.8871 |
| GRU | 23.46 | 27.94 | 6.17% | 0.7925 |
| N-BEATS | 24.20 | 28.08 | 6.21% | 0.7904 |
| DeepAR | 25.32 | 28.57 | 6.53% | 0.7829 |
| LSTM + Luong Attention | 24.60 | 29.20 | 6.53% | 0.7733 |
| LSTM + Vanilla Attention | 25.63 | 31.24 | 6.71% | 0.7406 |
| GRU + Vanilla Attention | 26.15 | 32.16 | 6.72% | 0.7250 |
| LSTM + Bahdanau Attention | 26.78 | 32.34 | 6.91% | 0.7219 |
| TCN | 30.24 | 35.54 | 7.78% | 0.6641 |
| LSTM | 31.06 | 37.59 | 7.96% | 0.6242 |
| CNN + LSTM + Attention | 49.94 | 58.77 | 12.74% | 0.0816 |
| Random Forest | 52.54 | 68.74 | 12.86% | −0.2564 |
| XGBoost | 59.06 | 76.55 | 14.48% | −0.5582 |
Table 6.
Performance comparison of models on AMZN close price prediction.
Table 6.
Performance comparison of models on AMZN close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention | 2.87 | 3.71 | 1.85% | 0.9894 |
| DeepAR | 4.30 | 5.24 | 3.08% | 0.9788 |
| N-BEATS | 5.53 | 6.55 | 4.09% | 0.9669 |
| BiGRU + Bahdanau Attention | 5.88 | 7.23 | 3.91% | 0.9597 |
| GRU + Luong Attention | 8.21 | 10.48 | 5.95% | 0.9152 |
| GRU + Bahdanau Attention | 6.13 | 11.49 | 3.40% | 0.8982 |
| BiLSTM + Bahdanau Attention | 9.27 | 11.65 | 5.66% | 0.8953 |
| LSTM + Luong Attention | 9.12 | 11.68 | 6.37% | 0.8948 |
| LSTM + Vanilla Attention | 9.71 | 12.37 | 6.73% | 0.8819 |
| LSTM + Bahdanau Attention | 10.07 | 12.88 | 6.87% | 0.8721 |
| GRU | 11.81 | 13.34 | 8.50% | 0.8628 |
| TCN | 11.15 | 13.71 | 7.65% | 0.8551 |
| LSTM | 11.69 | 13.79 | 8.76% | 0.8532 |
| XGBoost | 9.54 | 16.68 | 5.16% | 0.7854 |
| Random Forest | 13.87 | 17.65 | 9.05% | 0.7597 |
| GRU + Vanilla Attention | 13.11 | 17.73 | 8.12% | 0.7576 |
| CNN + LSTM + Attention | 16.70 | 19.86 | 11.43% | 0.6959 |
Table 7.
Performance comparison of models on GOOGL close price prediction.
Table 7.
Performance comparison of models on GOOGL close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Fused Attention | 2.14 | 2.90 | 1.56% | 0.9885 |
| BiLSTM + Bahdanau Attention | 3.48 | 4.32 | 2.71% | 0.9745 |
| BiGRU + Bahdanau Attention | 3.59 | 4.71 | 2.61% | 0.9696 |
| GRU + Bahdanau Attention | 6.03 | 7.31 | 4.89% | 0.9269 |
| GRU + Luong Attention | 6.03 | 7.68 | 4.28% | 0.9193 |
| GRU | 6.31 | 7.72 | 4.54% | 0.9184 |
| LSTM + Luong Attention | 7.57 | 9.37 | 5.60% | 0.8799 |
| TCN | 8.70 | 10.34 | 6.87% | 0.8537 |
| LSTM + Vanilla Attention | 8.80 | 10.79 | 6.50% | 0.8406 |
| DeepAR | 11.46 | 12.72 | 9.19% | 0.7786 |
| LSTM + Bahdanau Attention | 10.00 | 13.18 | 6.85% | 0.7621 |
| N-BEATS | 10.95 | 13.36 | 7.91% | 0.7556 |
| LSTM | 11.06 | 13.86 | 7.85% | 0.7371 |
| GRU + Vanilla Attention | 11.61 | 13.93 | 8.50% | 0.7345 |
| CNN + LSTM + Attention | 11.57 | 15.05 | 8.00% | 0.6898 |
| XGBoost | 10.45 | 16.33 | 6.35% | 0.6349 |
| Random Forest | 10.51 | 16.60 | 6.36% | 0.6229 |
Table 8.
Performance comparison of models on META close price prediction.
Table 8.
Performance comparison of models on META close price prediction.
| Model | MAE | RMSE | MAPE | R2 Score |
|---|
| BiGRU + Bahdanau Attention | 11.04 | 14.28 | 3.06% | 0.9891 |
| BiGRU + Fused Attention | 11.83 | 15.34 | 3.13% | 0.9875 |
| BiLSTM + Bahdanau Attention | 20.93 | 26.58 | 5.23% | 0.9623 |
| GRU | 23.22 | 27.63 | 6.39% | 0.9593 |
| N-BEATS | 22.77 | 29.67 | 5.48% | 0.9531 |
| GRU + Bahdanau Attention | 24.74 | 30.61 | 6.43% | 0.9500 |
| DeepAR | 28.39 | 32.73 | 8.58% | 0.9429 |
| TCN | 29.21 | 39.18 | 6.64% | 0.9182 |
| GRU + Luong Attention | 29.31 | 39.24 | 6.73% | 0.9179 |
| GRU + Vanilla Attention | 31.86 | 42.47 | 7.78% | 0.9038 |
| LSTM + Luong Attention | 37.47 | 50.13 | 8.55% | 0.8660 |
| LSTM | 37.51 | 52.39 | 8.88% | 0.8537 |
| LSTM + Bahdanau Attention | 47.54 | 62.04 | 11.25% | 0.7948 |
| LSTM + Vanilla Attention | 61.27 | 83.64 | 13.53% | 0.6270 |
| CNN + LSTM + Attention | 70.26 | 99.25 | 14.86% | 0.4748 |
| Random Forest | 70.99 | 105.70 | 13.89% | 0.4044 |
| XGBoost | 78.73 | 116.26 | 15.44% | 0.2794 |