Predicting stock prices is a notoriously difficult task due to the high volatility and noise inherent in financial markets. Traditional statistical methods often struggle with the non-linear, chaotic nature of these datasets. This paper introduces a robust hybrid deep learning framework that combines 1-D Residual Convolutional Neural Networks (ResNet) for adaptive denoising with Long Short-Term Memory (LSTM) networks for time-series forecasting. The core contribution lies in the integration of a sparse autoencoder for noise reduction and the strategic selection of the target variable.
Addressing the Noise in Financial Data
Financial time series are influenced by a complex web of global events, macroeconomic shifts, and human sentiment. This "noise" often obscures the underlying signals, leading standard deep learning models to overfit—memorizing random fluctuations rather than learning meaningful trends. To combat this, the authors propose an adaptive denoising stage that filters data before it reaches the prediction model.
Methodology: The Hybrid Pipeline
The proposed framework follows a three-stage process:
- Feature Engineering: A 17-channel input matrix is constructed by merging daily trading data (e.g., Open, Close, Volume), technical indicators (e.g., MACD, RSI), and macroeconomic variables (e.g., USD index, interest rates).
- Adaptive Denoising via 1-D ResNet Sparse Autoencoder: Unlike traditional fixed-filter methods like Wavelet Transforms, this model uses a 1-D ResNet architecture configured as a sparse autoencoder. The "shortcut connections" in ResNet allow for deeper feature extraction, while the autoencoder structure forces the model to compress data into high-level abstract features, effectively stripping away irrelevant noise.
- Temporal Prediction with LSTM: The denoised features are passed into an LSTM network, which is optimized for capturing long-term dependencies in sequential data.
Key Insights: Rate of Change vs. Absolute Price
A pivotal finding of this research is the "Scale Trap." Absolute stock prices (e.g., the DJIA at 25,000) operate on a scale much larger than daily fluctuations. When models attempt to predict absolute prices directly, small percentage errors result in large absolute loss values, causing the model to prioritize magnitude over movement.
By shifting the target variable to the Price Rate of Change (ROC), the authors inject prior knowledge into the system. This framing forces the model to focus on the dynamics of the market rather than the absolute magnitude, leading to significantly more accurate and stable predictions.
Performance and Generalization
The effectiveness of the denoising stage is clearly visible in the model's training dynamics. Models trained on raw data ("Single") tend to show a widening gap between training and test loss, a hallmark of overfitting. In contrast, the "Denoise" model maintains a much tighter gap, indicating superior generalization to unseen data.
Results
The C1D-ROC model (1-D ResNet + LSTM predicting ROC) was tested on six major global indices, including the S&P 500 and Nikkei 225. It consistently outperformed state-of-the-art benchmarks:
- Accuracy: On the DJIA, the model achieved a Mean Absolute Percent Error (MAPE) of 0.008.
- Correlation: Linear correlation (R) between predicted and actual prices frequently exceeded 0.96.
- Volatility Tracking: Qualitative analysis showed the model followed actual price curves closely, even during high-volatility periods where baseline models typically lagged.
Conclusion and Future Directions
The combination of adaptive denoising and ROC-based target framing provides a powerful tool for financial forecasting. While the current model assumes uniform relationships between time steps, future work will explore Attention Mechanisms to dynamically weight the importance of specific historical events, further refining the model's predictive capabilities.
Summary updated