Audio-Visual Transformer Based Crowd Counting

Usman Sajid, Xiangyu Chen, Hasan Sajid, Taejoon Kim, Guanghui Wang

Introduction

Crowd counting is a fundamental task in computer vision with critical applications in urban planning, public safety, and large-scale event management. While deep learning has significantly advanced image-based counting, "in-the-wild" scenarios—characterized by low light, heavy noise, or severe occlusion—remain a major challenge. In such conditions, visual information is often insufficient, leading models to produce inaccurate estimates.

This research introduces a novel multi-modal approach that mimics human perception by integrating both sight and sound. By leveraging the ambient noise of a crowd—such as the roar of a stadium or the chatter of a busy plaza—the proposed CC-AV (Crowd Counting Audio-Visual) model provides a robust estimate even when visual cues are compromised. The core innovation lies in a transformer-inspired architecture that effectively fuses these disparate modalities.

Proposed Methodology

The CC-AV architecture is designed to extract and integrate features from both images and audio clips through several specialized components:

  1. Visual Feature Extraction (VFE): Unlike standard backbones, the model employs a multi-scale branch structure. This allows it to process images at multiple resolutions simultaneously, using inter-branch fusion to maintain spatial context across different scales.
  2. Audio Feature Extraction (AFE): One-second audio clips are converted into Log Mel-Spectrograms and processed via a ResNet-like CNN to generate a compact audio embedding.
  3. Audio-Visual Transformer (AVT): This central module facilitates the interaction between visual and audio features. It produces two auxiliary outputs: Patch-Importance Ranking (PIR), which identifies regions likely to contain people, and Patch-wise Crowd Estimate (PCE), which performs local density regression.
  4. Cross-Modality Co-attention Module (CCM): The CCM uses the PIR and PCE data to create a dynamic "attended modality." This acts as a bridge, guiding the visual model to focus on high-density regions based on the context provided by the audio.
Overview of the CC-AV architecture featuring visual and audio feature extraction, the Audio-Visual Transformer, and the Co-attention Module.

Experimental Evaluation

The researchers evaluated their model on the DISCO dataset, currently the largest benchmark for audio-visual crowd counting, containing nearly 2,000 high-resolution image-audio pairs. To test the visual backbone's inherent strength, they also evaluated a vision-only variant (CC-V) on standard benchmarks like ShanghaiTech Part-A and UCF-QNRF.

Key Results

  • State-of-the-Art Accuracy: On the DISCO dataset, CC-AV achieved a 33.8% improvement in Mean Absolute Error (MAE) over previous leading models like AudioCSRNet.
  • Environmental Resilience: In tests involving low illumination and Gaussian noise, the model demonstrated a 19.6% to 22.5% performance boost over existing methods.
  • Extreme Occlusion Handling: Perhaps most impressively, the model remains functional even under 100% visual occlusion (a completely black image). In such cases, the model relies entirely on audio cues to provide a reasonable crowd estimate, whereas vision-only models fail entirely.
Qualitative comparison of crowd counting performance. The proposed audio-visual method (Ours) closely matches the ground-truth density map compared to visual-only and previous audio-visual baselines.

Insights and Future Directions

The study highlights that audio serves as a powerful "sanity check" for visual models. By forcing the network to learn auxiliary tasks like PIR and PCE, the authors provide explicit guidance that helps the model localize crowds more effectively.

While the results are promising, future work could address the challenges of audio-visual alignment in environments with unrelated background noise (e.g., nearby construction). Additionally, optimizing the transformer-based architecture for real-time deployment on edge devices and incorporating temporal context from video sequences represent logical next steps for this research.

Summary updated

BibTeX
@inproceedings{sajid2021audio,
  author = {Usman Sajid and Xiangyu Chen and Hasan Sajid and Taejoon Kim and Guanghui Wang},
  title = {{Audio-Visual Transformer Based Crowd Counting}},
  booktitle = {ICCVW},
  year = {2021},
  doi = {10.1109/iccvw54120.2021.00254},
}
Figure