Distraction-Aware Feature Learning for Human Attribute Recognition via Coarse-to-Fine Attention Mechanism

Mingda Wu, Di Huang, Yuanfang Guo, Yunhong Wang

Introduction

Human Attribute Recognition (HAR) involves the identification of semantic traits—such as gender, clothing type, or accessories—from images of people. While this task is foundational for applications in surveillance, retail analytics, and social media, "in-the-wild" images present significant challenges. Unlike controlled laboratory settings, real-world images are often cluttered with "distractions" that impede accurate feature extraction.

The authors of this paper identify a major bottleneck in existing HAR systems: the inability to distinguish between the target subject and their surroundings. Traditional attention mechanisms frequently suffer from "leakage," where the model inadvertently attributes features from the background or nearby individuals to the target subject. Common distractions include surrounding people, similar-looking objects (e.g., a pole mistaken for a limb), and complex background textures that trigger false positives for patterns like "plaid" or "striped."

A crowded scene featuring multiple individuals and objects, illustrating the type of 'distractions' the Da-HAR model aims to filter.

Existing solutions often attempt to mitigate this by incorporating auxiliary tasks like pose estimation or body part detection. However, these methods are often fragile in crowded or low-resolution scenes. To overcome these limitations, this paper introduces Da-HAR (Distraction-aware Human Attribute Recognition), a deep learning framework that utilizes a coarse-to-fine attention mechanism to explicitly filter out distractions and focus on the target subject.

Methodology: The Da-HAR Framework

The Da-HAR architecture is built upon a ResNet-101 backbone and features a dual-branch design focused on progressive refinement. The framework consists of three primary components:

Coarse Distraction-Aware Learning (Self-Mask Block)

The model integrates "self-mask blocks" between the backbone layers. These blocks perform a rough estimation of the target person's location by summing feature channels to identify "activated neurons" that correlate with the subject. This process generates a low-resolution mask that suppresses background noise early in the network's processing stages, ensuring that subsequent layers receive cleaner feature representations.

Fine Distraction-Aware Learning (Masked Attention)

A dedicated side branch takes the coarse features and refines them into a more precise spatial representation. This "masked attention block" is trained using auxiliary supervision. Because most HAR datasets do not provide pixel-level masks, the authors employ an innovative approach: they use an off-the-shelf segmenter (pre-trained on MS-COCO) to generate "pseudo-ground truth" masks. This allows the model to learn precise spatial boundaries without the need for manual pixel-level labeling.

An example of a complex, occluded scene where identifying specific attributes of a target individual is challenging due to physical interaction.

Multi-Level Feature Aggregation

Attributes vary in their semantic complexity; for instance, a "logo" is a low-level texture, whereas "formal dress" is a high-level concept. To capture this diversity, Da-HAR fuses features from multiple depths of the network. This multi-level aggregation ensures that both fine-grained details and global context are considered in the final attribute prediction.

Experimental Evaluation

The Da-HAR model was rigorously evaluated on two major benchmarks:

  1. WIDER-Attribute: A general-domain dataset containing approximately 13,000 images across 14 categories, known for its high degree of clutter and diversity.
  2. RAP (Rapidly Evolving Pedestrian): A large-scale surveillance dataset with over 41,000 images and 69 attribute categories, focusing on pedestrian monitoring.

Key Results

Da-HAR achieved state-of-the-art performance on the WIDER-Attribute dataset, reaching a mean Average Precision (mAP) of 87.3%, surpassing previous leading methods like DIAA (86.4%). Notably, the model showed a significant 3% improvement in the "Hat" attribute, which is typically difficult to recognize in crowded environments.

In terms of efficiency, the added complexity of the side branch and mask blocks resulted in only a minimal increase in inference time—from 22.28ms to 24.04ms per image on an NVIDIA 1080Ti. This demonstrates that the model is viable for real-time applications. Qualitative analysis through saliency maps confirms that Da-HAR remains "locked on" to the target person even in cases of partial occlusion or when surrounded by individuals in similar attire.

Discussion and Future Work

A key insight of this research is the effectiveness of using pre-trained segmentation networks to provide "free" supervision. This allows the model to learn spatial boundaries without the prohibitive cost of manual labeling. The coarse-to-fine approach is particularly beneficial for small, localized attributes like sunglasses or hats, which are often lost in cluttered backgrounds.

However, limitations remain. Da-HAR still struggles with "Hard" cases involving heavy occlusion where the target is almost entirely hidden. Furthermore, the model's performance is partially dependent on the quality of the pseudo-labels generated by the external segmenter. Future research may explore the integration of temporal information in video-based HAR to further improve target disambiguation in dynamic, crowded scenes.

Conclusion

The Da-HAR framework represents a significant step forward in Human Attribute Recognition by making feature learning explicitly distraction-aware. By progressively refining attention from a coarse to a fine level, the model achieves superior accuracy and robustness in complex, real-world environments.

Summary updated

BibTeX
@inproceedings{wu2020distraction,
  author = {Mingda Wu and Di Huang and Yuanfang Guo and Yunhong Wang},
  title = {{Distraction-Aware Feature Learning for Human Attribute Recognition via Coarse-to-Fine Attention Mechanism}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6925},
}
Figure