The fluctuation of an exchange rate is easily influenced by complex factors such as the country's economic fundamentals, international trade, and political relations. Since the beginning of the trade war between the Sino-U.S., the Renminbi (RMB) exchange rate has experienced significant fluctuations. The changes in the economic and trade relationship between the two countries have introduced a series of uncertainties into the forecast of the RMB exchange rate. Based on this background, we innovatively incorporate Sino-US trade events as a significant feature in exchange rate forecasting. Firstly, In the data phase, we leverage the situational learning capabilities of Large Lange Models (LLM), specifically ChatGPT, combined with prompt engineering to enable ChatGPT to provide real-time, online, and precise automated sentiment analysis of Sino-US trade events. Breaks through the performance limitations of sentiment analysis in terms of lexicon size and model iteration in existing mainstream exchange rate forecasting methods. EMD was also used to enhance the dimensionality of the exchange rate data and increase the feature interactions. Secondly, in the modeling phase, we propose the SG-TL fusion model. This model integrates STGCN and GRU models in the feature processing approach to extract exchange rate features more accurately, mining temporal and spatial features within exchange rate data. Finally, a collaborative approach using Transformer and LSTM models is employed in the forecasting phase to forecast the Sino-US exchange rates. Experiments demonstrate that the exchange rate forecasting framework LEST constructed by LLM-EMD and SG-TL, is able to accurately capture the exchange rate fluctuations during the period of the Sino-US trade war. Its forecasting performance is more precise, efficient, and stable than similar work.
data/exchange_rate.csv
.main_feature.py
:Code for forecasting based on the LEST framework, incorporating trade event labelling in conjunction with exchange rate data .main_non_feature.py
:Code for forecasting based on the LEST framework using only exchange rate data .model.py
:Code for the LEST forecasting framework.main_non_feature.py
main_feature.py
.Q. How to make the model perform better (achieve the results in the paper or even better?)
A. In main_feature.py
, parameters can be adjusted on lines 92 to 100. In main_non_feature.py
,parameters can be adjusted on lines 86 to 94.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。