An M-DeepSORT Algorithm for Pedestrian Detection and Tracking Based on Video Images – A Case Study in Ji-nan Subway Station

Wei Zhang, Chuang Zhu, Yunchao Qu, Guanhua Liu, Denise LeePROMET 2025

TL;DR

Researchers have developed M-DeepSORT, an enhanced tracking-by-detection framework that combines YOLOv5 with a modified DeepSORT algorithm to tackle the chaotic environment of subway stations. By introducing confidence-based Kalman filtering and momentum-driven trajectory updates, the system achieves a 23.5% improvement in tracking accuracy (MOTA) and significantly reduces trajectory "jitter" in crowded scenes.

What Problem Does This Paper Address?

Subway stations are a nightmare for computer vision. High passenger density, frequent occlusions (people walking in front of each other), and varying lighting conditions make it incredibly difficult to maintain a consistent "lock" on individual pedestrians.

Traditional tracking-by-detection methods often suffer from two major issues in these environments:

  1. Trajectory Drift/ID Switching: When a person is briefly blocked by a pillar or another passenger, the system often loses them or assigns them a new ID when they reappear.
  2. Trajectory Jitter: Random noise in the detection bounding boxes causes the calculated path of a pedestrian to look "shaky" or "wobbly," which is useless for high-precision flow analysis or safety monitoring.

The authors aim to bridge the gap between raw detection and smooth, reliable trajectory extraction that can actually be used by subway operators for crowd management.

Methods

The authors propose an integrated pipeline they call M-DeepSORT, which builds upon the popular YOLOv5 detector and the DeepSORT tracker with three key innovations:

  • DIoU Loss in YOLOv5: Instead of standard Intersection over Union (IoU), they use Distance-IoU (DIoU). DIoU considers the distance between the center points of bounding boxes, which leads to faster convergence and more accurate localization, especially when boxes are enclosed within one another—a common occurrence in crowded subway lines.
  • Confidence-Based (CB) Kalman Filtering: Standard Kalman filters assume a constant measurement noise. The authors argue that not all detections are created equal. They modified the filter to adaptively calculate noise covariance based on the detector's confidence score. If the model is "unsure" about a detection, the Kalman filter gives it less weight, relying more on the predicted motion model to maintain the track.
  • Momentum-Based Trajectory Updates: To combat "jitter," the authors introduced a momentum parameter ($\beta$) into the coordinate update step. Instead of jumping to the new detected center, the system calculates a weighted average of the previous position and the new detection. This acts as a low-pass filter, smoothing out the "wobble" caused by minor detection errors.

Datasets

The study utilized two primary data sources for validation:

  1. MOT16-11: A widely recognized benchmark dataset for multi-object tracking. Specifically, the authors used the MOT16-11 sequence because its crowded urban environment closely mirrors subway conditions.
  2. Ji-nan Subway Station Video: Real-world surveillance footage from a subway station in Ji-nan, China. This served as the "acid test" for the algorithm's performance in diverse, high-stakes scenarios including gate entries and corridor flows.

Key Insights and Ideas

  • The "Confidence" Advantage: The most elegant idea here is the CB Kalman Filter. In a subway, a blurry or partially occluded detection shouldn't be trusted as much as a clear, centered one. By tying the filter's "trust" to the detector's confidence score, the system becomes much more resilient to random noise.
  • Physics-Informed Smoothing: The use of momentum acknowledges that human movement is continuous. People don't teleport 5 centimeters to the left and back in 1/30th of a second. The momentum update (which reduced jitter by 15.87%) aligns the computer vision output with the physical reality of human locomotion.
  • Motion + Appearance Fusion: The paper emphasizes a weighted fusion of Mahalanobis distance (motion) and Cosine distance (appearance/ReID). This dual-check system ensures that if a person's movement is erratic, their visual features (clothing, height) can still keep the ID consistent.

Key Results

The proposed M-DeepSORT outperformed standard DeepSORT across nearly every metric:

  • Accuracy (MOTA): Jumped from 61.6% to 76.1%, representing a substantial 23.5% relative improvement.
  • Precision (MOTP): Increased significantly from 66.185 to 273.813, indicating much tighter spatial localization.
  • Recall: Improved by 29%, meaning the system missed far fewer pedestrians in crowded frames.
  • Stability: The momentum-based update reduced the amplitude of trajectory jitter by 15.87%, resulting in much "cleaner" visual paths for analysis.

Limitations and Future Work

While the model is highly effective, the authors acknowledge a few hurdles:

  • Embedded Deployment: The current model, while "compact," is not yet fully optimized for the low-power embedded devices typically found in edge-computing surveillance cameras.
  • Model Compression: Future work will focus on pruning and compressing the YOLOv5 backbone to enable real-time processing on edge devices without sacrificing the accuracy gains achieved in this study.
  • Complex Behaviors: While it handles "walking" well, the paper doesn't deeply explore complex behaviors like loitering or sudden falls, which are critical for safety applications.

Summary updated

BibTeX
@inproceedings{zhang2025m,
  author = {Wei Zhang and Chuang Zhu and Yunchao Qu and Guanhua Liu and Denise Lee},
  title = {{An M-DeepSORT Algorithm for Pedestrian Detection and Tracking Based on Video Images – A Case Study in Ji-nan Subway Station}},
  booktitle = {PROMET},
  year = {2025},
  doi = {10.7307/ptt.v37i2.635},
}
Figure