ADDITIONAL MENU
Forex Price Predictions using Hybrid TCN-LSTM and LSTM-TCN Models
Abstract
Forecasting financial market prices, particularly foreign exchange (forex) rates, remains a substantial difficulty due to the market's inherent unpredictability, intricacy, and turbulent characteristics. By combining the Temporal Convolutional Network (TCN) and Long Short-Term Memory (LSTM) models into a hybrid framework, this study overcomes this difficulty and improves prediction accuracy. The MinMaxScaler function was used to standardize the input data prior to training, bringing all values into a range between 0 and 1. An 80% training segment and a 20% testing segment were then separated from the prepared dataset. We tested two different hybrid architectures, the LSTM-TCN and the TCN-LSTM, with the EUR/USD, AUD/USD, and GBP/USD value pairs. With uniform parameters applied to both models during training, the Root Mean Squared Error (RMSE) measure was used for all performance evaluations in order to ensure a fair comparison and determine which model was better. The LSTM-TCN architecture proved to be the superior predictor on the testing set. It recorded a lower average RMSE of 0.003911. This result contrasts with the TCN-LSTM model's performance, which yielded a higher average RMSE of 0.004181.
Keywords
Foreign Exchange; Hybrid; Long Short-Term Memory; Prediction; Temporal Convolutional
References
A. Chaboud, D. Rime, and V. Sushko, “The foreign exchange market,” in Research Handbook of Financial Markets, Edward Elgar Publishing, 2023, pp. 253–275. doi: 10.4337/9781800375321.00020.
M. Ayitey Junior, P. Appiahene, O. Appiah, and C. N. Bombie, “Forex market forecasting using machine learning: Systematic Literature Review and meta-analysis,” J Big Data, vol. 10, no. 1, p. 9, Jan. 2023, doi: 10.1186/s40537-022-00676-2.
R. C. Michie, Forex Forever. Oxford University PressOxford, 2024. doi: 10.1093/oso/9780198903697.001.0001.
G.-J. Wang, L. Wan, Y. Feng, C. Xie, G. S. Uddin, and Y. Zhu, “Interconnected multilayer networks: Quantifying connectedness among global stock and foreign exchange markets,” International Review of Financial Analysis, vol. 86, p. 102518, Mar. 2023, doi: 10.1016/j.irfa.2023.102518.
J. E. Sandubete, L. Beleña, and J. C. García-Villalobos, “Testing the Efficient Market Hypothesis and the Model-Data Paradox of Chaos on Top Currencies from the Foreign Exchange Market (FOREX),” Mathematics, vol. 11, no. 2, p. 286, Jan. 2023, doi: 10.3390/math11020286.
B. H. A. Khattak et al., “A Systematic Survey of AI Models in Financial Market Forecasting for Profitability Analysis,” IEEE Access, vol. 11, pp. 125359–125380, 2023, doi: 10.1109/ACCESS.2023.3330156.
M. S. Islam and E. Hossain, “Foreign exchange currency rate prediction using a GRU-LSTM hybrid network,” Soft Computing Letters, vol. 3, p. 100009, Dec. 2021, doi: 10.1016/j.socl.2020.100009.
Md. S. Islam, E. Hossain, A. Rahman, M. S. Hossain, and K. Andersson, “A Review on Recent Advancements in FOREX Currency Prediction,” Algorithms, vol. 13, no. 8, p. 186, Jul. 2020, doi: 10.3390/a13080186.
M. Fisichella and F. Garolla, “Can Deep Learning Improve Technical Analysis of Forex Data to Predict Future Price Movements?,” IEEE Access, vol. 9, pp. 153083–153101, 2021, doi: 10.1109/ACCESS.2021.3127570.
Z. Hu, Y. Zhao, and M. Khushi, “A Survey of Forex and Stock Price Prediction Using Deep Learning,” Applied System Innovation, vol. 4, no. 1, p. 9, Feb. 2021, doi: 10.3390/asi4010009.
M. Ayitey Junior, P. Appiahene, O. Appiah, and C. N. Bombie, “Forex market forecasting using machine learning: Systematic Literature Review and meta-analysis,” J Big Data, vol. 10, no. 1, p. 9, Jan. 2023, doi: 10.1186/s40537-022-00676-2.
M. Ulina, R. Purba, and A. Halim, “Foreign Exchange Prediction using CEEMDAN and Improved FA-LSTM,” in 2020 Fifth International Conference on Informatics and Computing (ICIC), IEEE, Nov. 2020, pp. 1–6. doi: 10.1109/ICIC50835.2020.9288615.
A. J. Dautel, W. K. Härdle, S. Lessmann, and H.-V. Seow, “Forex exchange rate forecasting using deep recurrent neural networks,” Digit Finance, vol. 2, no. 1–2, pp. 69–96, Sep. 2020, doi: 10.1007/s42521-020-00019-x.
M. Ayitey Junior, P. Appiahene, and O. Appiah, “Forex market forecasting with two-layer stacked Long Short-Term Memory neural network (LSTM) and correlation analysis,” Journal of Electrical Systems and Information Technology, vol. 9, no. 1, p. 14, Dec. 2022, doi: 10.1186/s43067-022-00054-1.
M. M. Panda, S. N. Panda, and P. K. Pattnaik, “Forecasting Foreign Currency Exchange Rate using Convolutional Neural Network,” International Journal of Advanced Computer Science and Applications, vol. 13, no. 2, 2022, doi: 10.14569/IJACSA.2022.0130272.
C. Caroline, R. Purba, and M. F. Pasha, “Stock Price Prediction using Long-Short Term Memory and Temporal Convolutional Network,” in 2023 Fifth International Conference on Informatics and Computing (ICIC), Malang: IEEE, Dec. 2023.
T. Mahmud, T. Akter, S. Anwar, M. T. Aziz, M. S. Hossain, and K. Andersson, “Predictive Modeling in Forex Trading: A Time Series Analysis Approach,” in 2024 Second International Conference on Inventive Computing and Informatics (ICICI), IEEE, Jun. 2024, pp. 390–397. doi: 10.1109/ICICI62254.2024.00070.
P. I. Zitis, S. M. Potirakis, and A. Alexandridis, “Forecasting Forex Market Volatility Using Deep Learning Models and Complexity Measures,” Journal of Risk and Financial Management, vol. 17, no. 12, p. 557, Dec. 2024, doi: 10.3390/jrfm17120557.
A. Saghafi, M. Bagherian, and F. Shokoohi, “Forecasting Forex EUR/USD Closing Prices Using a Dual-Input Deep Learning Model with Technical and Fundamental Indicators,” Mathematics, vol. 13, no. 9, p. 1472, Apr. 2025, doi: 10.3390/math13091472.
D. M. Ahmed, M. M. Hassan, and R. J. Mstafa, “A Review on Deep Sequential Models for Forecasting Time Series Data,” Applied Computational Intelligence and Soft Computing, vol. 2022, pp. 1–19, Jun. 2022, doi: 10.1155/2022/6596397.
M. Mohammadi, S. Jamshidi, A. Rezvanian, M. Gheisari, and A. Kumar, “Advanced fusion of MTM-LSTM and MLP models for time series forecasting: An application for forecasting the solar radiation,” Measurement: Sensors, vol. 33, p. 101179, Jun. 2024, doi: 10.1016/j.measen.2024.101179.
J. Bi, X. Zhang, H. Yuan, J. Zhang, and M. Zhou, “A Hybrid Prediction Method for Realistic Network Traffic With Temporal Convolutional Network and LSTM,” IEEE Transactions on Automation Science and Engineering, vol. 19, no. 3, pp. 1869–1879, Jul. 2022, doi: 10.1109/TASE.2021.3077537.
J. Fan, K. Zhang, Y. Huang, Y. Zhu, and B. Chen, “Parallel spatio-temporal attention-based TCN for multivariate time series prediction,” Neural Comput Appl, vol. 35, no. 18, pp. 13109–13118, Jun. 2023, doi: 10.1007/s00521-021-05958-z.
H. Xue, X. Gui, G. Wang, X. Yang, H. Gong, and F. Du, “Prediction of gas drainage changes from nitrogen replacement: A study of a TCN deep learning model with integrated attention mechanism,” Fuel, vol. 357, p. 129797, Feb. 2024, doi: 10.1016/j.fuel.2023.129797.
C.Y. Hsu, Y.W. Lu, and J.H. Yan, “Temporal Convolution-Based Long-Short Term Memory Network With Attention Mechanism for Remaining Useful Life Prediction,” IEEE Transactions on Semiconductor Manufacturing, vol. 35, no. 2, pp. 220–228, May 2022, doi: 10.1109/TSM.2022.3164578.
X. Wei and Y. Xu, “Research on carbon emission prediction and economic policy based on TCN-LSTM combined with attention mechanism,” Front Ecol Evol, vol. 11, Oct. 2023, doi: 10.3389/fevo.2023.1270248.
L. Heng, C. Hao, and L. C. Nan, “Load forecasting method based on CEEMDAN and TCN-LSTM,” PLoS One, vol. 19, no. 7, p. e0300496, Jul. 2024, doi: 10.1371/journal.pone.0300496.
M. Diqi, “StockTM: Accurate Stock Price Prediction Model Using LSTM,” International Journal of Informatics and Computation, vol. 4, no. 1, p. 1, Oct. 2022, doi: 10.35842/ijicom.v4i1.50.
S. Bai, J. Z. Kolter, and V. Koltun, “An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling,” Mar. 2018.
P. Janssen, “Attention based Temporal Convolutional Network for Stock Price Prediction,” Utrecht University, 2022.
DOI: http://dx.doi.org/10.24014/ijaidm.v8i3.38354
Refbacks
- There are currently no refbacks.
Office and Secretariat:
Big Data Research Centre
Puzzle Research Data Technology (Predatech)
Laboratory Building 1st Floor of Faculty of Science and Technology
UIN Sultan Syarif Kasim Riau
Jl. HR. Soebrantas KM. 18.5 No. 155 Pekanbaru Riau – 28293
Website: http://predatech.uin-suska.ac.id/ijaidm
Email: ijaidm@uin-suska.ac.id
e-Journal: http://ejournal.uin-suska.ac.id/index.php/ijaidm
Phone: 085275359942
Journal Indexing:
Google Scholar | ROAD | PKP Index | BASE | ESJI | General Impact Factor | Garuda | Moraref | One Search | Cite Factor | Crossref | WorldCat | Neliti | SINTA | Dimensions | ICI Index Copernicus
IJAIDM Stats










