[Paper Review] Machine Learning for Forecasting Mid Price Movement using Limit Order Book Data
This paper proposes a machine learning framework that combines handcrafted limit order book (LOB) features with representations learned via autoencoders and bag-of-features models to forecast mid price movements in high-frequency trading. The approach achieves significant predictive performance across multiple time horizons, with handcrafted features and hybrid representations yielding the strongest results, especially when combined with MLP classifiers.
Forecasting the movements of stock prices is one the most challenging problems in financial markets analysis. In this paper, we use Machine Learning (ML) algorithms for the prediction of future price movements using limit order book data. Two different sets of features are combined and evaluated: handcrafted features based on the raw order book data and features extracted by ML algorithms, resulting in feature vectors with highly variant dimensionalities. Three classifiers are evaluated using combinations of these sets of features on two different evaluation setups and three prediction scenarios. Even though the large scale and high frequency nature of the limit order book poses several challenges, the scope of the conducted experiments and the significance of the experimental results indicate that Machine Learning highly befits this task carving the path towards future research in this field.
Motivation & Objective
- To investigate whether limit order book (LOB) data contains sufficient predictive information for forecasting mid price movements in high-frequency trading.
- To evaluate the effectiveness of handcrafted financial features versus machine learning-extracted representations (e.g., autoencoders, BoF) in predicting future price direction.
- To compare the performance of multiple classifiers—SVM, MLP, SLFN—across different feature representations and prediction horizons.
- To address real-world challenges such as class imbalance, high data velocity, and real-time constraints in financial forecasting.
- To determine whether learned representations can improve or complement traditional financial features in predicting stock price trends.
Proposed method
- The study uses high-frequency limit order book data as input, capturing bid and ask quotes at multiple price levels and time points.
- Two types of features are extracted: (1) handcrafted features based on financial expertise (e.g., bid-ask spread, imbalance, order flow), and (2) learned representations using autoencoders (AE) and bag-of-features (BoF) models.
- Feature representations include raw concatenation (concat), mean, last, and hybrid forms (e.g., last + mean, last ⊕ BoF), with dimensionality ranging from 24 to 720.
- Multiple classifiers—SVM, MLP, and SLFN—are trained and evaluated using two experimental setups: hold-out and walk-forward validation to assess generalization and real-time performance.
- Statistical significance is assessed using Friedman’s test and Nemenyi post-hoc analysis to compare classifiers and feature representations across scenarios.
- The evaluation considers three prediction scenarios: immediate next sample, average movement over next 5 samples, and average movement over next 10 samples.
Experimental results
Research questions
- RQ1Can machine learning models effectively forecast mid price movements using only limit order book data?
- RQ2How do handcrafted financial features compare in performance to machine learning-extracted representations in predicting price direction?
- RQ3Which combination of feature representations and classifiers yields the highest predictive accuracy across different time horizons?
- RQ4Does the dimensionality of the input representation affect model performance, and is there a trade-off between computational efficiency and predictive power?
- RQ5How do classifiers perform under real-time constraints and class imbalance typical in high-frequency financial data?
Key findings
- The MLP classifier outperforms both SVM and SLFN across all scenarios, with statistically significant gains over the SLFN, though differences between MLP and SVM are not significant at α=0.1.
- Handcrafted features incorporating temporal information—especially the mean and last+mean representations—yield the most accurate predictions, significantly outperforming other representations.
- The mean representation achieves better results than the last representation despite identical dimensionality, due to its noise-suppressing de-noising effect from averaging.
- The BoF and last ⊕ BoF representations perform well, but their performance degrades with reduced input dimensionality, indicating a trade-off between efficiency and discriminative power.
- Combining handcrafted and learned features improves predictive performance, showing that ML-extracted features uncover latent, auxiliary knowledge not captured by traditional features.
- The Friedman’s test strongly rejects the null hypothesis (p=5.5×10⁻³⁵), confirming that at least one feature representation or classifier performs significantly differently, with the Nemenyi test identifying the most effective configurations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.