Skip to main content
QUICK REVIEW

[Paper Review] SOFA-Net: Second-Order and First-order Attention Network for Crowd Counting

Haoran Duan, Shidong Wang|arXiv (Cornell University)|Aug 9, 2020
Video Surveillance and Tracking MethodsComputer Science15 references7 citations
TL;DR

SOFA-Net proposes a novel deep learning framework for crowd counting that leverages second-order and first-order statistical features to enhance feature representation in dense crowd scenarios. By introducing a Statistic-Wise Convolution and a multi-stream attention architecture, the model improves density map regression, achieving state-of-the-art performance on four public datasets, with a 57.5 MAE on ShanghaiTech Part A.

ABSTRACT

Automated crowd counting from images/videos has attracted more attention in recent years because of its wide application in smart cities. But modelling the dense crowd heads is challenging and most of the existing works become less reliable. To obtain the appropriate crowd representation, in this work we proposed SOFA-Net(Second-Order and First-order Attention Network): second-order statistics were extracted to retain selectivity of the channel-wise spatial information for dense heads while first-order statistics, which can enhance the feature discrimination for the heads' areas, were used as complementary information. Via a multi-stream architecture, the proposed second/first-order statistics were learned and transformed into attention for robust representation refinement. We evaluated our method on four public datasets and the performance reached state-of-the-art on most of them. Extensive experiments were also conducted to study the components in the proposed SOFA-Net, and the results suggested the high-capability of second/first-order statistics on modelling crowd in challenging scenarios. To the best of our knowledge, we are the first work to explore the second/first-order statistics for crowd counting.

Motivation & Objective

  • To address the challenge of accurate crowd counting in highly dense and occluded scenes where existing methods fail due to poor feature representation.
  • To explore the feasibility and effectiveness of second- and first-order statistical features for modeling crowd patterns in challenging scenarios.
  • To design a multi-stream attention mechanism that integrates second- and first-order statistics to refine density map predictions.
  • To improve density map regression quality through tailored components such as Statistic-Wise Convolution, normalization masks, and scale enhancement.
  • To empirically validate the complementary nature of second- and first-order statistics in enhancing feature discrimination and spatial selectivity.

Proposed method

  • The model employs a multi-stream architecture to learn second-order (SO) and first-order (FO) statistical features from feature maps, enhancing representation for dense head regions.
  • A Statistic-Wise Convolution operation is proposed to transform second- and first-order statistics into learnable attention maps for feature refinement.
  • Second-order statistics preserve spatial selectivity and high likelihoods in dense head areas, while first-order statistics enhance feature discrimination in head regions.
  • A normalization mask is trained end-to-end to scale density maps and suppress trivial outputs in non-head areas, improving regression accuracy.
  • The network uses a 3-stream weight-sharing scheme to share parameters across feature streams and tasks, enabling efficient joint optimization of feature learning and normalization.
  • Scale enhancement and normalization strategies are applied to improve the quality of generated density maps, especially in large-scale crowd scenes.

Experimental results

Research questions

  • RQ1Can second- and first-order statistical features improve crowd representation in highly dense and occluded scenes?
  • RQ2How do second-order and first-order statistics complement each other in modeling crowd density patterns?
  • RQ3What is the impact of integrating second- and first-order statistics on density map regression performance?
  • RQ4How effective is the proposed Statistic-Wise Convolution in transforming statistical features into attention maps?
  • RQ5Does the normalization mask trained with weight-sharing improve density map quality compared to non-shared or full-shared schemes?

Key findings

  • The proposed SOFA-Net achieved a mean absolute error (MAE) of 57.5 on the challenging ShanghaiTech Part A dataset, outperforming previous state-of-the-art methods.
  • Second-order statistical attention contributed the most to performance improvement, reducing MAE from 68.6 (no attention) to 60.8.
  • The combination of both second- and first-order features yielded the best result, reducing MAE to 57.5 and MSE to 92.1 on ShanghaiTech Part A.
  • Ablation studies confirmed that the normalization mask trained with the 3-stream weight-sharing scheme significantly improved performance over non-shared or full-shared alternatives.
  • Qualitative results showed that second-order features preserved precise head likelihoods, while first-order features enhanced boundary discrimination, and their fusion produced the clearest and most accurate density maps.
  • The model demonstrated robustness in extreme scenarios, generating accurate density maps even in scenes with over a thousand people.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.