Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning

This paper presents a novel approach to stock market prediction and portfolio management by integrating deep learning, clustering, and reinforcement learning techniques. This research extends the development of an interpretable Transformer network by [55], which leverages self-attention mechanism...

Full description

Saved in:
Bibliographic Details
Main Author: Chia, Samuel Wei Kit
Other Authors: Quek Hiok Chai
Format: Final Year Project
Language:English
Published: Nanyang Technological University 2024
Subjects:
Online Access:https://hdl.handle.net/10356/181152
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-181152
record_format dspace
spelling sg-ntu-dr.10356-1811522024-11-18T00:53:27Z Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning Chia, Samuel Wei Kit Quek Hiok Chai College of Computing and Data Science ASHCQUEK@ntu.edu.sg Computer and Information Science This paper presents a novel approach to stock market prediction and portfolio management by integrating deep learning, clustering, and reinforcement learning techniques. This research extends the development of an interpretable Transformer network by [55], which leverages self-attention mechanisms to predict stock prices while providing insights into the importance of historical data points. A key contribution of this paper is the conduction of a large-scale comparison of various clustering algorithms, including K-Means, DBSCAN, and HDBSCAN, to enhance the fuzzification process, enabling better stock groupings and improved prediction accuracy. For portfolio management, we implement the Advantage Actor-Critic (A2C) reinforcement learning model to dynamically optimize asset allocation based on predicted stock prices. We demonstrate enhanced performance in both long-only and long-short strategies by evaluating key financial metrics such as the Sharpe ratio, annualized returns, and maximum drawdown. The model, tested within configurable environments developed using the Gymnasium API, allows for flexible experimentation with portfolio configurations and reward engineering techniques. The results indicate that our model outperforms traditional methods in stock price forecasting and portfolio optimization, delivering enhanced risk-adjusted returns. Future research could explore the integration of multimodal data sources and more advanced reinforcement learning architectures to further improve performance and scalability in real-time trading environments. Bachelor's degree 2024-11-18T00:53:27Z 2024-11-18T00:53:27Z 2024 Final Year Project (FYP) Chia, S. W. K. (2024). Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/181152 https://hdl.handle.net/10356/181152 en SCSE23-0113 application/pdf Nanyang Technological University
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Computer and Information Science
spellingShingle Computer and Information Science
Chia, Samuel Wei Kit
Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
description This paper presents a novel approach to stock market prediction and portfolio management by integrating deep learning, clustering, and reinforcement learning techniques. This research extends the development of an interpretable Transformer network by [55], which leverages self-attention mechanisms to predict stock prices while providing insights into the importance of historical data points. A key contribution of this paper is the conduction of a large-scale comparison of various clustering algorithms, including K-Means, DBSCAN, and HDBSCAN, to enhance the fuzzification process, enabling better stock groupings and improved prediction accuracy. For portfolio management, we implement the Advantage Actor-Critic (A2C) reinforcement learning model to dynamically optimize asset allocation based on predicted stock prices. We demonstrate enhanced performance in both long-only and long-short strategies by evaluating key financial metrics such as the Sharpe ratio, annualized returns, and maximum drawdown. The model, tested within configurable environments developed using the Gymnasium API, allows for flexible experimentation with portfolio configurations and reward engineering techniques. The results indicate that our model outperforms traditional methods in stock price forecasting and portfolio optimization, delivering enhanced risk-adjusted returns. Future research could explore the integration of multimodal data sources and more advanced reinforcement learning architectures to further improve performance and scalability in real-time trading environments.
author2 Quek Hiok Chai
author_facet Quek Hiok Chai
Chia, Samuel Wei Kit
format Final Year Project
author Chia, Samuel Wei Kit
author_sort Chia, Samuel Wei Kit
title Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
title_short Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
title_full Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
title_fullStr Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
title_full_unstemmed Fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
title_sort fuzzified stock market forecasting with transformer networks and adaptive portfolio management using reinforcement learning
publisher Nanyang Technological University
publishDate 2024
url https://hdl.handle.net/10356/181152
_version_ 1816858965224456192