Foreign exchange currency rate prediction using a GRU-LSTM hybrid network

M.S. Islam , E. Hossain
{"title":"Foreign exchange currency rate prediction using a GRU-LSTM hybrid network","authors":"M.S. Islam ,&nbsp;E. Hossain","doi":"10.1016/j.socl.2020.100009","DOIUrl":null,"url":null,"abstract":"<div><p>The foreign exchange (FOREX) market is one of the biggest financial markets in the world. More than 5.1 trillion dollars are traded each day in the FOREX market by banks, retail traders, corporations, and individuals. Due to complex, volatile, and high fluctuation, it is quite difficult to guess the price ahead of the actual time. Traders and investors continuously look for new methods to outperform the market and to earn a higher profit. Therefore, researchers around the world are continuously coming up with new forecasting models to successfully predict the nature of this unsettled market. This paper presents a new model that combines two powerful neural networks used for time series prediction: Gated Recurrent Unit (GRU) and Long Short Term Memory (LSTM), for predicting the future closing prices of FOREX currencies. The first layer of our proposed model is the GRU layer with 20 hidden neurons and the second layer is the LSTM layer with 256 hidden neurons. We have applied our model on four major currency pairs: EUR/USD, GBP/USD, USD/CAD, and USD/CHF. The prediction is done for 10 minutes timeframe using the data from January 1, 2017 to December 31, 2018, and 30 minutes timeframe using the data from January 1, 2019 to June 30, 2020 as a proof-of-concept. The performance of the model is validated using MSE, RMSE, MAE, and <span><math><msup><mi>R</mi><mn>2</mn></msup></math></span> score. Moreover, we have compared the performance of our model against a standalone LSTM model, a standalone GRU model and simple moving average (SMA) based statistical model where the proposed hybrid GRU-LSTM model outperforms all models for 10-mins timeframe and for 30-mins timeframe provides the best result for GBP/USD and USD/CAD currency pairs in terms of MSE, RMSE, and MAE performance metrics. But in terms of <span><math><msup><mi>R</mi><mn>2</mn></msup></math></span> score, our system outperforms all compared models and thus proves itself as the least risky model among all.</p></div>","PeriodicalId":101169,"journal":{"name":"Soft Computing Letters","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2021-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/j.socl.2020.100009","citationCount":"55","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Soft Computing Letters","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666222120300083","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 55

Abstract

The foreign exchange (FOREX) market is one of the biggest financial markets in the world. More than 5.1 trillion dollars are traded each day in the FOREX market by banks, retail traders, corporations, and individuals. Due to complex, volatile, and high fluctuation, it is quite difficult to guess the price ahead of the actual time. Traders and investors continuously look for new methods to outperform the market and to earn a higher profit. Therefore, researchers around the world are continuously coming up with new forecasting models to successfully predict the nature of this unsettled market. This paper presents a new model that combines two powerful neural networks used for time series prediction: Gated Recurrent Unit (GRU) and Long Short Term Memory (LSTM), for predicting the future closing prices of FOREX currencies. The first layer of our proposed model is the GRU layer with 20 hidden neurons and the second layer is the LSTM layer with 256 hidden neurons. We have applied our model on four major currency pairs: EUR/USD, GBP/USD, USD/CAD, and USD/CHF. The prediction is done for 10 minutes timeframe using the data from January 1, 2017 to December 31, 2018, and 30 minutes timeframe using the data from January 1, 2019 to June 30, 2020 as a proof-of-concept. The performance of the model is validated using MSE, RMSE, MAE, and R2 score. Moreover, we have compared the performance of our model against a standalone LSTM model, a standalone GRU model and simple moving average (SMA) based statistical model where the proposed hybrid GRU-LSTM model outperforms all models for 10-mins timeframe and for 30-mins timeframe provides the best result for GBP/USD and USD/CAD currency pairs in terms of MSE, RMSE, and MAE performance metrics. But in terms of R2 score, our system outperforms all compared models and thus proves itself as the least risky model among all.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于GRU-LSTM混合网络的外汇汇率预测
外汇市场是世界上最大的金融市场之一。每天在外汇市场上,银行、散户、公司和个人的交易量超过5.1万亿美元。由于复杂、不稳定、波动大,在实际时间之前猜测价格是相当困难的。交易员和投资者不断寻找新的方法来超越市场,赚取更高的利润。因此,世界各地的研究人员不断提出新的预测模型,以成功地预测这个不稳定市场的性质。本文提出了一个新模型,该模型结合了两个用于时间序列预测的强大神经网络:门控循环单元(GRU)和长短期记忆(LSTM),用于预测外汇货币的未来收盘价。我们提出的模型的第一层是包含20个隐藏神经元的GRU层,第二层是包含256个隐藏神经元的LSTM层。我们将模型应用于四种主要货币对:欧元/美元、英镑/美元、美元/加元和美元/瑞士法郎。该预测使用2017年1月1日至2018年12月31日的数据进行10分钟的时间范围内的预测,使用2019年1月1日至2020年6月30日的数据进行30分钟的时间范围内的预测,作为概念验证。使用MSE、RMSE、MAE和R2评分来验证模型的性能。此外,我们将模型的性能与独立的LSTM模型、独立的GRU模型和基于简单移动平均(SMA)的统计模型进行了比较,其中提出的混合GRU-LSTM模型在10分钟时间范围内优于所有模型,在30分钟时间范围内,就MSE、RMSE和MAE性能指标而言,为英镑/美元和美元/加元货币对提供了最佳结果。但在R2得分方面,我们的系统优于所有被比较的模型,从而证明了自己是所有模型中风险最小的模型。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Editorial: Socio-cultural inspired Metaheuristics A fuzzy optimization model for methane gas production from municipal solid waste A fuzzy proximity relation approach for outlier detection in the mixed dataset by using rough entropy-based weighted density method Analysis of French phonetic idiosyncrasies for accent recognition An ensemble machine learning model for the prediction of danger zones: Towards a global counter-terrorism
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1