Skip to main content
QUICK REVIEW

[Paper Review] Using Depth for Pixel-Wise Detection of Adversarial Attacks in Crowd Counting

Weizhe Liu, Mathieu Salzmann|arXiv (Cornell University)|Nov 26, 2019
Anomaly Detection Techniques and ApplicationsComputer Science75 references7 citations
TL;DR

This paper proposes a pixel-wise adversarial attack detection method for crowd counting by leveraging depth estimation as a complementary signal in a two-stream deep network. By training a model to jointly regress crowd density and scene depth, it detects perturbed pixels through inconsistencies in depth predictions, achieving over 90% detection accuracy even for small perturbations, and remaining robust against both unexposed and exposed attacks.

ABSTRACT

State-of-the-art methods for counting people in crowded scenes rely on deep networks to estimate crowd density. While effective, deep learning approaches are vulnerable to adversarial attacks, which, in a crowd-counting context, can lead to serious security issues. However, attack and defense mechanisms have been virtually unexplored in regression tasks, let alone for crowd density estimation. In this paper, we investigate the effectiveness of existing attack strategies on crowd-counting networks, and introduce a simple yet effective pixel-wise detection mechanism. It builds on the intuition that, when attacking a multitask network, in our case estimating crowd density and scene depth, both outputs will be perturbed, and thus the second one can be used for detection purposes. We will demonstrate that this significantly outperforms heuristic and uncertainty-based strategies.

Motivation & Objective

  • To address the lack of defense mechanisms against adversarial attacks in deep learning-based crowd counting, a regression task largely unexplored in adversarial security.
  • To develop a robust, pixel-wise detection mechanism that can identify adversarial examples without relying on uncertainty or heuristic-based methods.
  • To leverage multi-task learning—specifically, joint estimation of crowd density and scene depth—to create a detection signal that is hard for attackers to bypass.
  • To ensure resilience against both unexposed attacks (where the attacker does not know the detector) and exposed attacks (where the attacker has access to the detector and reference depth maps).

Proposed method

  • Train a two-stream deep network to regress both crowd density and scene depth simultaneously, using a shared backbone and task-specific heads.
  • Use a reference depth map—either from a depth sensor, geometric priors, or a pre-trained depth model—as a ground truth for detecting inconsistencies in perturbed inputs.
  • Define a tampering indicator based on pixel-wise deviation between predicted depth and reference depth, using a thresholding strategy to flag suspicious pixels.
  • Apply gradient-based adversarial attacks (e.g., FGSM) to the density head while monitoring depth predictions for anomalies.
  • Introduce a loss term with hyperparameter λ to stabilize depth predictions during adversarial training, balancing detection performance and model accuracy.
  • Use mIoU, DMAE, RMSE, and ZMAE as evaluation metrics to quantify detection accuracy and regression error under various attack intensities.

Experimental results

Research questions

  • RQ1Can joint estimation of crowd density and scene depth serve as a reliable signal for detecting pixel-wise adversarial attacks in regression-based crowd counting?
  • RQ2How effective is the proposed method against adversarial attacks when the attacker has full knowledge of the detection mechanism (exposed attacks)?
  • RQ3What is the impact of perturbation magnitude (ε) and thresholding strategy on detection performance?
  • RQ4Can the method maintain high detection accuracy even when the attacker has access to the reference depth map?
  • RQ5How does the trade-off between detection robustness and regression accuracy vary with the strength of the depth regularization (λ)?

Key findings

  • The proposed method achieves over 90% pixel-wise detection accuracy even for very small perturbations (β = 0.01), with performance increasing rapidly with larger perturbations.
  • Detection performance remains strong under exposed attacks, where the attacker has access to both the density network and the reference depth map, due to the difficulty of simultaneously manipulating both outputs consistently.
  • For the ShanghaiTechRGBD dataset, the method achieves a mean Intersection over Union (mIoU) of 0.52 at ε = 1.0, rising to 0.58 at ε = 19.0, indicating strong sensitivity to attack intensity.
  • The optimal threshold for classifying tampered pixels is 5%, which yields the best mIoU across all datasets and attack types.
  • Increasing the depth regularization hyperparameter λ reduces both detection accuracy and density estimation error, confirming a trade-off between robustness and model performance.
  • The method significantly outperforms heuristic and uncertainty-based detection strategies, as demonstrated across multiple benchmark datasets including ShanghaiTechRGBD, MICC, and Venice.

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.