A Hybrid LSTM-KNN Framework for Detecting Market Microstructure Anomalies:

Evidence from High-Frequency Jump Behaviors in Credit Default Swap Markets

Authors

  • GuoLi Rao Mathematics in Finance, New York University, NY, USA Author
  • Tianyu Lu Computer Science, Northeastern University, MA, USA Author
  • Lei Yan Electronics and Communications Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing, China Author
  • Yibang Liu Financial Engineering, Baruch College, NY, USA Author

DOI:

https://doi.org/10.60087/jklst.v3.n4.p361

Keywords:

Market Microstructure Analysis, High-Frequency Trading, LSTM Neural Networks, Anomaly Detection, Credit Default Swaps

Abstract

This paper proposes a novel hybrid LSTM-KNN framework for detecting market microstructure anomalies in high-frequency credit default swap (CDS) markets. The framework integrates the temporal learning capabilities of Long Short-Term Memory networks with the pattern recognition strengths of K-Nearest Neighbors classification to identify price jumps and market anomalies. Through analysis of high-frequency CDS market data spanning from 2020 to 2023, encompassing over 2.5 million data points from five major CDS indices, the research demonstrates significant improvements in jump detection accuracy. The hybrid model achieves a 92.8% accuracy rate, representing a 15.2% improvement over traditional statistical methods and an 8.5% enhancement compared to standalone deep learning approaches. The framework maintains computational efficiency with an average processing latency of 48.2 milliseconds, enabling real-time market applications. The empirical analysis reveals strong correlations between detected jumps and market liquidity conditions, with bid-ask spreads and order book imbalances identified as critical predictive indicators. The research contributes to both theoretical understanding of market microstructure dynamics and practical applications in risk management and market surveillance.

Downloads

Download data is not yet available.

References

Nystrup, P., Kolm, P. N., & Lindström, E. (2021). Feature selection in jump models. Expert Systems with Applications, 184, 115558.

Siami-Namini, S., & Namin, A. S. (2018). Forecasting economics and financial time series: ARIMA vs. LSTM. arXiv preprint arXiv:1803.06386.

Sako, K., Mpinda, B. N., & Rodrigues, P. C. (2022). Neural networks for financial time series forecasting. Entropy, 24(5), 657.

Au Yeung, J. F., Wei, Z. K., Chan, K. Y., Lau, H. Y., & Yiu, K. F. C. (2020). Jump detection in financial time series using machine learning algorithms. Soft Computing, 24, 1789-1801.

Zhang, X., Liang, X., Zhiyuli, A., Zhang, S., Xu, R., & Wu, B. (2019, July). At-lstm: An attention-based lstm model for financial time series prediction. In IOP Conference Series: Materials Science and Engineering (Vol. 569, No. 5, p. 052037). IOP Publishing.

Zheng, W., Yang, M., Huang, D., & Jin, M. (2024). A Deep Learning Approach for Optimizing Monoclonal Antibody Production Process Parameters. International Journal of Innovative Research in Computer Science & Technology, 12(6), 18-29.

Ma, X., Wang, J., Ni, X., & Shi, J. (2024). Machine Learning Approaches for Enhancing Customer Retention and Sales Forecasting in the Biopharmaceutical Industry: A Case Study. International Journal of Engineering and Management Research, 14(5), 58-75.

Wang, G., Ni, X., Shen, Q., & Yang, M. (2024). Leveraging Large Language Models for Context-Aware Product Discovery in E-commerce Search Systems. Journal of Knowledge Learning and Science Technology ISSN: 2959-6386 (online), 3(4).

Li, H., Wang, G., Li, L., & Wang, J. (2024). Dynamic Resource Allocation and Energy Optimization in Cloud Data Centers Using Deep Reinforcement Learning. Journal of Artificial Intelligence General science (JAIGS) ISSN: 3006-4023, 1(1), 230-258.

Li, H., Sun, J., & Ke, X. (2024). AI-Driven Optimization System for Large-Scale Kubernetes Clusters: Enhancing Cloud Infrastructure Availability, Security, and Disaster Recovery. Journal of Artificial Intelligence General science (JAIGS) ISSN: 3006-4023, 2(1), 281-306.

Xia, S., Wei, M., Zhu, Y., & Pu, Y. (2024). AI-Driven Intelligent Financial Analysis: Enhancing Accuracy and Efficiency in Financial Decision-Making. Journal of Economic Theory and Business Management, 1(5), 1-11.

Zhang, H., Lu, T., Wang, J., & Li, L. (2024). Enhancing Facial Micro-Expression Recognition in Low-Light Conditions Using Attention-guided Deep Learning. Journal of Economic Theory and Business Management, 1(5), 12-22.

Wang, J., Lu, T., Li, L., & Huang, D. (2024). Enhancing Personalized Search with AI: A Hybrid Approach Integrating Deep Learning and Cloud Computing. International Journal of Innovative Research in Computer Science & Technology, 12(5), 127-138.

Ma, X., Zeyu, W., Ni, X., & Ping, G. (2024). Artificial intelligence-based inventory management for retail supply chain optimization: a case study of customer retention and revenue growth. Journal of Knowledge Learning and Science Technology ISSN: 2959-6386 (online), 3(4), 260-273.

Zheng, H.; Wu, J.; Song, R.; Guo, L.; Xu, Z. Predicting Financial Enterprise Stocks and Economic Data Trends Using Machine Learning Time Series Analysis. Applied and Computational Engineering 2024, 87, 26–32.

Ju, C., & Zhu, Y. (2024). Reinforcement Learning‐Based Model for Enterprise Financial Asset Risk Assessment and Intelligent Decision‐Making.

Huang, D., Yang, M., & Zheng, W. (2024). Integrating AI and Deep Learning for Efficient Drug Discovery and Target Identification.

Yang, M., Huang, D., & Zhan, X. (2024). Federated Learning for Privacy-Preserving Medical Data Sharing in Drug Development.

Cao, G., Zhang, Y., Lou, Q., & Wang, G. (2024). Optimization of High-Frequency Trading Strategies Using Deep Reinforcement Learning. Journal of Artificial Intelligence General science (JAIGS) ISSN: 3006-4023, 6(1), 230-257.

Li, L., Zhang, Y., Wang, J., & Ke, X. (2024). Deep Learning-Based Network Traffic Anomaly Detection: A Study in IoT Environments.

Downloads

Published

25-12-2024

How to Cite

Rao, G., Lu, T. ., Yan, . L. ., & Liu, Y. . (2024). A Hybrid LSTM-KNN Framework for Detecting Market Microstructure Anomalies:: Evidence from High-Frequency Jump Behaviors in Credit Default Swap Markets. Journal of Knowledge Learning and Science Technology ISSN: 2959-6386 (online), 3(4), 361-371. https://doi.org/10.60087/jklst.v3.n4.p361