An enhanced Transformer framework with incremental learning for online stock price prediction
Author:
Open Access
- 13 January 2025
- journal article
- research article
- Published by Public Library of Science (PLoS) in PLOS ONE
- Vol. 20 (1) , e0316955
Abstract
To address the limitations of existing stock price prediction models in handling real-time data streams—such as poor scalability, declining predictive performance due to dynamic changes in data distribution, and difficulties in accurately forecasting non-stationary stock prices—this paper proposes an incremental learning-based enhanced Transformer framework (IL-ETransformer) for online stock price prediction. This method leverages a multi-head self-attention mechanism to deeply explore the complex temporal dependencies between stock prices and feature factors. Additionally, a continual normalization mechanism is employed to stabilize the data stream, enhancing the model’s adaptability to dynamic changes. To ensure that the model retains prior knowledge while integrating new information, a time series elastic weight consolidation (TSEWC) algorithm is introduced to enable efficient incremental training with incoming data. Experiments conducted on five publicly available datasets demonstrate that the proposed method not only effectively captures the temporal information in the data but also fully exploits the correlations among multi-dimensional features, significantly improving stock price prediction accuracy. Notably, the method shows robust performance in coping with non-stationary and frequently changing financial market data.Keywords
This publication has 30 references indexed in Scilit:
- Transformer-based attention network for stock movement predictionExpert Systems with Applications, 2022
- A comprehensive survey on deep neural networks for stock market: The need, challenges, and future directionsExpert Systems with Applications, 2021
- IncLSTM: Incremental Ensemble LSTM Model towards Time Series DataComputers and Electrical Engineering, 2021
- DWE-IL: a new incremental learning algorithm for non-stationary time series prediction via dynamically weighting ensemble learningApplied Intelligence, 2021
- Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models2021
- A CNN-BiLSTM-AM method for stock price predictionNeural Computing and Applications, 2020
- A novel hybrid model based on recurrent neural networks for stock market timingSoft Computing, 2020
- Genetic algorithm-optimized multi-channel convolutional neural network for stock market predictionNeural Computing and Applications, 2019
- Stock price prediction based on deep neural networksNeural Computing and Applications, 2019
- Group Normalization2018