# Real-time Forecasting of Time Series in Financial Markets Using Sequentially Trained Many-to-one LSTMs

arXiv: https://arxiv.org/abs/2205.04678 · HTML: https://mlsanity.com/paper/2205.04678/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 13 of its 30 references that are in the map.
- First posted on arXiv 10 May 2022.

## Builds on (most cited first, 13 of 13)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [DeepAR: Probabilistic Forecasting with Autoregressive Recurrent Networks](https://mlsanity.com/paper/1704.04110/) (2017)
- [Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting](https://mlsanity.com/paper/1912.09363/) (2019)
- [N-BEATS: Neural basis expansion analysis for interpretable time series forecasting](https://mlsanity.com/paper/1905.10437/) (2019)
- [On the Convergence Rate of Training Recurrent Neural Networks](https://mlsanity.com/paper/1810.12065/) (2018)
- [Memory-Efficient Backpropagation Through Time](https://mlsanity.com/paper/1606.03401/) (2016)
- [Quantifying the vanishing gradient and long distance dependency problem in recursive neural networks and recursive LSTMs](https://mlsanity.com/paper/1603.00423/) (2016)
- [Residual LSTM: Design of a Deep Recurrent Architecture for Distant Speech Recognition](https://mlsanity.com/paper/1701.03360/) (2017)
- [A Nonlinear Dimensionality Reduction Framework Using Smooth Geodesics](https://mlsanity.com/paper/1707.06757/) (2017)
- [Bounded Manifold Completion](https://mlsanity.com/paper/1912.09026/) (2019)
- [Identifying manifolds underlying group motion in Vicsek agents](https://mlsanity.com/paper/1508.02809/) (2015)
- [Reconstruction of Fragmented Trajectories of Collective Motion using Hadamard Deep Autoencoders](https://mlsanity.com/paper/2110.10428/) (2021)
- [Deep LSTM for Large Vocabulary Continuous Speech Recognition](https://mlsanity.com/paper/1703.07090/) (2017)

## Built on by (most cited first, 1 of 1)

- [Fraud Detection Using Optimized Machine Learning Tools Under Imbalance Classes](https://mlsanity.com/paper/2209.01642/) (2022)

## Abstract (arXiv)

Financial markets are highly complex and volatile; thus, learning about such markets for the sake of making predictions is vital to make early alerts about crashes and subsequent recoveries. People have been using learning tools from diverse fields such as financial mathematics and machine learning in the attempt of making trustworthy predictions on such markets. However, the accuracy of such techniques had not been adequate until artificial neural network (ANN) frameworks were developed. Moreover, making accurate real-time predictions of financial time series is highly subjective to the ANN architecture in use and the procedure of training it. Long short-term memory (LSTM) is a member of the recurrent neural network family which has been widely utilized for time series predictions. Especially, we train two LSTMs with a known length, say T time steps, of previous data and predict only one time step ahead. At each iteration, while one LSTM is employed to find the best number of epochs, the second LSTM is trained only for the best number of epochs to make predictions. We treat the current prediction as in the training set for the next prediction and train the same LSTM. While classic ways of training result in more error when the predictions are made further away in the test period, our approach is capable of maintaining a superior accuracy as training increases when it proceeds through the testing period. The forecasting accuracy of our approach is validated using three time series from each of the three diverse financial markets: stock, cryptocurrency, and commodity. The results are compared with those of an extended Kalman filter, an autoregressive model, and an autoregressive integrated moving average model.
