Financial Lane Detection: Semantic Segmentation of High-Frequency Limit Order Books for Anomaly Masking

Main Article Content

Jay Gupta
Dr. Meenakshi Gupta

Abstract

Limit-order-book (LOB) models mostly predict price direction and say little about where in the book misleading liquidity sits. We reformulate LOB analysis as semantic segmentation: a window of event-level LOBSTER data is encoded as a level–event tensor and a U-Net outputs a per-cell mask of spoof-like liquidity. Because verified spoofing labels are not public, we inject spoof-like orders into real books of five NASDAQ stocks (one trading day, 10 levels), audit the injector for label leaks (one was found and removed), add hard negatives (large genuine-looking orders that must not be flagged) and report means over three seeds. On a standard test the U-Net reaches IoU 0.866 ± 0.017 with three channels and 0.944 ± 0.004 with six, against 0.113, 0.015 and 0.163 for a volume threshold, a local -score and a window-level classifier. Models trained without hard negatives flag 42–45% of decoy cells; training with them reduces this to 2.1–3.5% and gives IoU 0.605 (three channels) and 0.713 (six) on a decoy-containing test, the more realistic figure. The original per-window BCE+Dice loss caused a precision collapse in the two most active stocks late in the session (test IoU 0.624); dropping Dice or computing it only over windows that contain an anomaly removes it. The models’ flags overlap real rule-based candidate orders no better than chance, and a stylised execution simulation shows a shortfall reduction of at most 0.79%. All scores measure recovery of a synthetic anomaly class on one day of data; they are not evidence of detecting real manipulation.

Article Details

Section
Articles