Research on a Dense Pedestrian-Detection Algorithm Based on an Improved YOLO11

Liang Wu, Xiang Li, Ping Ma, Yicheng CaiFuture Internet 2025

TL;DR

This paper introduces an improved YOLOv11 algorithm for dense pedestrian detection, tackling challenges like occlusion and scale variation. By integrating a lightweight backbone, a novel attention mechanism, and an enhanced loss function, the model achieves a significant boost in accuracy and efficiency, making it more suitable for real-world applications like intelligent transportation and public security.

What Problem Does This Paper Address?

Detecting pedestrians in crowded environments, often referred to as "dense pedestrian detection," is a critical task for intelligent vision systems. Applications range from enabling safe autonomous driving and monitoring traffic to ensuring public safety in crowded venues like stadiums and subway stations. However, this task is fraught with challenges:

  • Class Imbalance and Hard Examples: Images are dominated by background, with pedestrians occupying small regions. Furthermore, heavy occlusion leads to many "low-quality" positive samples (e.g., only a leg is visible), making it hard for models to learn effectively.
  • Scale Variation: Pedestrians appear at vastly different distances from the camera, leading to significant variations in their size within an image.
  • Occlusion: In dense crowds, pedestrians frequently overlap, making it difficult to distinguish individual targets and leading to incomplete feature extraction.
  • Appearance Similarity: Many pedestrians wear similar clothing and adopt similar postures, further complicating detection.

Existing object detection models, including earlier YOLO variants, struggle to balance real-time performance with high accuracy in these complex, dense scenarios. They often face issues with redundant features, difficulty handling hard samples, and limited cross-dimensional feature modeling. This paper aims to bridge this gap by proposing an improved YOLOv11 that specifically addresses these challenges.

Methods

The authors propose an "YOLOv11-Improved" model by enhancing the original YOLOv11 with three key components:

  • Lightweight C3K2-Lighter Module: This module replaces the standard Bottleneck blocks in the C3K2 architecture with a FasterNet-inspired design. It utilizes "Partial Convolution" (PConv) and "Point-by-Point Convolution" (PWConv) to reduce computational redundancy and memory access by applying filters to only a subset of input channels. This significantly reduces the number of parameters and FLOPs, leading to a more lightweight model without a substantial drop in accuracy.
  • Triplet Attention (TA) Module: This novel attention mechanism is designed to capture cross-dimensional interactions (channel, height, and width) within feature maps. By combining spatial and cross-channel information, it aims to enhance the model's ability to distinguish features of occluded or similar-looking pedestrians, improving robustness in crowded and occluded scenes.
  • VariFocal Loss (VFL): This enhanced loss function is an improvement over Focal Loss. VFL adaptively weights positive samples based on their quality (IoU with ground truth) and downweights easy negatives. This asymmetric weighting mechanism helps the model focus on hard-to-detect, high-quality positive samples, effectively mitigating class imbalance and improving training stability, especially with noisy annotations.

These three components are integrated into the YOLOv11 framework, with C3K2-Lighter in the backbone and neck, Triplet Attention in deeper backbone layers, and VFL at the detection head.

Datasets

The primary dataset used for training and evaluation in this paper is:

  • CrowdHuman: A large-scale, complex scene pedestrian detection dataset. It contains 15,000 training, 4370 validation, and 5000 test images, with an average of 22.6 people per image. It offers detailed annotations for head, visible area, and full-body bounding boxes, along with multi-dimensional features for occlusion levels and body postures, making it particularly suitable for evaluating performance in densely occluded environments.

Key Insights and Ideas

  • Synergistic Improvements: The paper demonstrates that combining lightweight architectural changes (C3K2-Lighter), advanced attention mechanisms (Triplet Attention), and improved loss functions (VFL) leads to synergistic gains in both accuracy and efficiency, outperforming individual component improvements.
  • Efficiency vs. Accuracy Trade-off Reimagined: The research challenges the common assumption that higher accuracy necessitates greater model complexity. By carefully designing lightweight modules and attention mechanisms, they achieve significant accuracy improvements while simultaneously reducing model size and computational cost.
  • Targeted Solutions for Dense Scenarios: The proposed methods are specifically tailored to address the unique challenges of dense pedestrian detection. VFL directly tackles class imbalance and hard examples, Triplet Attention handles occlusion and similarity, and C3K2-Lighter ensures real-time deployability.
  • Attention for Cross-Dimensional Understanding: The Triplet Attention module's ability to capture interactions across channel, height, and width dimensions is crucial for disentangling features in highly cluttered and occluded scenes, a limitation of many existing attention mechanisms that operate on single dimensions.

Key Results

The YOLOv11-Improved model achieved impressive results on the CrowdHuman benchmark:

  • Accuracy Improvement: The model achieved an average AP (Average Precision) of 83.2%, a +3.7% increase compared to the baseline YOLO11 (78.5% AP). Precision also increased by +2.8%.
  • Efficiency Gains: The number of parameters was reduced by 0.5 M (from 2.6 M to 2.1 M), and FLOPs were reduced by 21.5 G (from 28.6 G to 21.5 G) compared to the baseline. This makes the model significantly lighter and faster.
  • Comparison with State-of-the-Art: YOLO11-Improved achieved the highest AP among the compared algorithms, including Faster R-CNN, YOLOv5n, YOLOv8n, and RT-DETR, while maintaining a competitive parameter count.
  • Qualitative Improvements: Visualizations showed that the improved model provided more accurate and tightly aligned bounding boxes for pedestrians in dense and occluded scenes, better distinguishing them from complex backgrounds.

Limitations and Future Work

The authors acknowledge several limitations:

  • Performance in Simple Scenarios: The model's advantages are less pronounced in simpler scenarios with sparse or low-occlusion pedestrians, where the baseline YOLO11 already performs well.
  • Attention Bias: The attention mechanism, while beneficial, sometimes focuses more on densely populated central regions, potentially leading to slightly reduced confidence scores for peripheral targets.
  • Miss Rate: The YOLO11-Improved model has a slightly higher miss rate (MR) compared to some other models. This is attributed to its more conservative prediction strategy, which prioritizes higher precision by avoiding false positives, but can lead to more missed detections in crowded scenes.

Future work directions suggested by the authors include:

  • Developing more adaptive attention mechanisms that dynamically adjust focus based on crowd distribution.
  • Exploring hybrid CNN-Transformer backbones for a better balance of local and global feature extraction.
  • Designing advanced loss functions that can better handle noisy annotations.
  • Investigating specialized approaches for severe occlusion scenarios, such as occlusion-aware feature disentanglement or part-based representation learning.
  • Integrating the model into multi-task frameworks for joint pedestrian detection and tracking.

Summary updated

BibTeX
@article{wu2025research,
  author = {Liang Wu and Xiang Li and Ping Ma and Yicheng Cai},
  title = {{Research on a Dense Pedestrian-Detection Algorithm Based on an Improved YOLO11}},
  journal = {Future Internet},
  year = {2025},
  doi = {10.3390/fi17100438},
}
Figure