DSGC-Net: A Dual-Stream Graph Convolutional Network for Crowd Counting via Feature Correlation Mining

Yihong Wu, Jinqiao Wei, Xionghui Zhao, Yidi Li, Shaoyi Du, Bin Ren, Nicu SebearXiv 2025 · DOI

Abstract

Crowd counting in complex scenes is frequently challenged by uneven crowd densities and diverse camera perspectives. We present DSGC-Net, a novel framework utilizing a dual-stream Graph Convolutional Network (GCN) to capture long-range semantic correlations. By modeling density and feature similarities through a Feature Correlation Mining (DSGC-CoM) module, the network effectively bridges distant but related image regions. DSGC-Net achieves state-of-the-art performance on major benchmarks like ShanghaiTech and UCF-QNRF while maintaining minimal computational overhead.

Introduction

Estimating the number of people in a single image is a fundamental computer vision task with significant implications for public safety, event management, and urban planning. Traditional approaches typically rely on density map estimation or point regression. However, real-world scenarios present two primary challenges that local convolutional operations struggle to solve:

  1. Density Variations: Scenes often contain both highly congested backgrounds and sparse foregrounds. Standard models frequently struggle with these drastic local shifts, leading to missed counts or duplicate detections.
  2. Representation Inconsistency: Camera perspective (the "near-large, far-small" effect) and varying body postures cause significant visual differences in how individuals appear across an image. Local receptive fields in standard CNNs are insufficient for capturing the global, long-range correlations needed to address these inconsistencies.

Methodology

To overcome these limitations, we propose DSGC-Net, a hybrid architecture that integrates density map prediction with point-level regression. The central innovation is the DSGC-CoM (Feature Correlation Mining) module, which employs graph structures to model non-local relationships and break free from spatial constraints.

Overview of the DSGC-Net architecture, highlighting the dual-stream Feature Correlation Mining (DSGC-CoM) module and the prediction head.

The DSGC-CoM module operates via two parallel streams:

  • Density Approximation (DA) Branch: This branch constructs a "Density-driven Semantic Graph" where nodes represent image regions. Edges connect regions with similar predicted densities, allowing the GCN to share contextual information across spatially distant but semantically similar areas.
  • Representation Approximation (RA) Branch: This branch builds a "Representation-driven Semantic Graph" based on cosine similarity between high-dimensional feature vectors. It connects regions that share visual characteristics (e.g., similar poses or occlusion patterns), helping the model generalize across diverse perspectives.

Features from both streams are fused and processed by a prediction head to localize target points, combining the strengths of density-based and point-based counting.

Evaluation and Results

The performance of DSGC-Net was evaluated on three standard benchmarks: ShanghaiTech Part A (congested), ShanghaiTech Part B (sparse), and UCF-QNRF (extremely dense and complex). Performance is measured using Mean Absolute Error (MAE) and Mean Squared Error (MSE).

Performance comparison of DSGC-Net against state-of-the-art methods on ShanghaiTech and UCF-QNRF datasets.

As shown in the comparative results, DSGC-Net achieves state-of-the-art (SOTA) performance across all metrics:

  • ShanghaiTech Part A: Achieved an MAE of 48.9 and an MSE of 77.8, representing a 5.4% improvement over the previous best method (CAAPN).
  • ShanghaiTech Part B: Achieved an MAE of 5.9 and an MSE of 9.3, a 5.1% improvement over the second-best result.
  • UCF-QNRF: Achieved a SOTA MAE of 79.3 and a highly competitive MSE of 133.9.

Discussion and Conclusion

A key insight from this work is that graph proximity is more effective than spatial proximity for crowd counting. By treating the feature map as a graph, the model can apply learned representations of occluded individuals across the entire image. Furthermore, the graph modules are highly efficient, adding only approximately 0.6M parameters in total.

Ablation studies indicate that graph sparsity is critical; connecting a node to its $K=4$ most similar neighbors yields the best results, preventing "over-smoothing" where distinct features become blurred. While the current implementation uses VGG-16 as a backbone, future research may explore integrating DSGC-Net with emerging architectures like Swin Transformers or Mamba-based models to further enhance performance. In summary, DSGC-Net provides a robust and lightweight solution for crowd counting that effectively addresses the complexities of real-world visual data through dual-stream graph convolution.

Summary updated

BibTeX
@misc{wu2025dsgc,
  author = {Yihong Wu and Jinqiao Wei and Xionghui Zhao and Yidi Li and Shaoyi Du and Bin Ren and Nicu Sebe},
  title = {{DSGC-Net: A Dual-Stream Graph Convolutional Network for Crowd Counting via Feature Correlation Mining}},
  year = {2025},
  eprint = {2509.02261},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.02261},
}
Figure