TL;DR
This paper introduces a novel method for transforming non-stationary Limit Order Book (LOB) data into stationary features, enabling Deep Learning models to predict stock price movements more effectively. By combining Convolutional Neural Networks (CNNs) for feature extraction with Long Short-Term Memory (LSTM) networks for time-series analysis, the authors' hybrid CNN-LSTM model consistently outperforms standard architectures across multiple prediction horizons.
What Problem Does This Paper Address?
Deep Learning (DL) has revolutionized fields like computer vision and NLP, but quantitative finance remains a "hard nut to crack." The primary culprit is non-stationarity: financial data, specifically stock prices, fluctuates and drifts over time. A model trained on price levels from one month may become useless the next if the "normal" price range shifts significantly.
Traditional methods often rely on handcrafted features or simple normalization (like z-scores), but these often fail to capture the "microstructure" of the market—the subtle dance of supply and demand within the Limit Order Book. The authors seek to bridge this gap by creating a feature set that remains statistically stable (stationary) regardless of absolute price levels, allowing DL models to generalize better on unseen data.
Methods
The authors propose two major contributions: a stationary feature extraction pipeline and a hybrid model architecture.
1. Stationary Feature Engineering
Instead of feeding raw prices into a network, the authors transform the LOB data into three types of stationary features:
- Price Level Differences: The percentage difference between each LOB price level and the current mid-price.
- Mid-price Change: The proportional movement of the mid-price since the previous event (essentially the asset's return).
- Depth Size Cumsum: The cumulative volume of orders at each price level.
2. The CNN-LSTM Hybrid
The authors argue that while CNNs are excellent at extracting local spatial features (like the shape of the order book), LSTMs are superior at modeling long-term temporal dependencies. Their proposed CNN-LSTM model uses convolutional layers as a front-end feature extractor, feeding the resulting "feature time series" into an LSTM layer to make the final prediction.
To improve training, they implement a "burn-in" period, where the model observes the first 100 time steps of a sequence to build an internal state before any gradients are calculated, preventing noisy updates from insufficient information.
Datasets
The study utilizes a large-scale, high-frequency LOB dataset provided by Nasdaq Nordic.
- Scope: 10 days of data for 5 Finnish company stocks (Kesko Oyj, Outokumpu Oyj, Sampo, Rautaruukki, and Wartsila Oyj) from June 2010.
- Scale: Approximately 4.5 million snapshots.
- Depth: 10 levels of price and volume for both bid and ask sides (40 values per snapshot).
Key Insights and Ideas
- Stationarity is King: The most significant "aha moment" is that even powerful DL models like LSTMs struggle with raw price data. Converting prices into relative percentage differences (stationary features) provides an "intrinsically normalized" measure that prevents the model from being overwhelmed by absolute price magnitude.
- Architectural Synergy: The CNN-LSTM hybrid isn't just a combination for the sake of it; it addresses the specific nature of LOB data. The CNN captures the "state" of the book at a moment in time, while the LSTM captures the "momentum" of how that state evolves.
- Handling Class Imbalance: Price movements are often "noisy" or stationary (no change). The authors used a weighted cross-entropy loss to ensure the model didn't simply default to predicting "no change" to achieve high accuracy while failing to catch actual price moves.
Key Results
The authors compared their stationary features against raw values across four prediction horizons ($k=10, 50, 100, 200$ events).
- Superiority of Stationary Features: Across all models (SVM, MLP, CNN, LSTM), the stationary features significantly outperformed raw price features. For example, at $k=100$, the CNN's Cohen’s $\kappa$ (a measure of agreement corrected for chance) jumped from 0.12 with raw features to 0.21 with stationary ones.
- CNN-LSTM Performance: The hybrid model achieved the best overall results, particularly in longer horizons. At $k=200$, the CNN-LSTM reached a Mean F1 score of 0.49 and a Cohen’s $\kappa$ of 0.25, outperforming the standalone LSTM (0.46 F1, 0.22 $\kappa$) and CNN (0.45 F1, 0.20 $\kappa$).
Limitations and Future Work
- Model Complexity: While the CNN-LSTM performed well, the authors noted that larger models were prone to overfitting given the current dataset size. More data would be required to scale the architecture further.
- Sampling Logic: The current model predicts movements over a fixed number of events ($k$). The authors suggest that "intelligent r-sampling"—extracting features over specific time intervals rather than event counts—could prevent information loss.
- Attention Mechanisms: The authors identify attention mechanisms as a promising next step to help the network ignore noisy market events and focus only on relevant LOB shifts.
Summary updated