Beyond Walking: A Large-Scale Image-Text Benchmark for Text-based Person Anomaly Search

Shuyu Yang, Yaxiong Wang, Li Zhu, Zhedong Zheng

TL;DR

This paper introduces "Text-based Person Anomaly Search," a new task that goes beyond simply finding people to identifying them performing unusual or abnormal actions using text descriptions. To support this, they've created the large-scale "Pedestrian Anomaly Behavior (PAB)" benchmark, featuring both synthetic and real-world data. Their proposed "Cross-Modal Pose-aware (CMP)" framework leverages human pose information and identity-based hard negative mining to achieve state-of-the-art performance.

What Problem Does This Paper Address?

Traditional text-based person search excels at finding individuals based on their appearance using natural language queries. However, existing benchmarks and methods often focus on common actions like walking or standing, neglecting the critical need to detect and identify abnormal or unusual behaviors in real-world scenarios. This limitation hinders applications in areas like security, emergency response, and surveillance, where spotting anomalies is paramount. Current anomaly detection methods also often lack the fine-grained behavioral understanding and large-scale, diverse datasets required for robust performance.

Methods

The authors propose a Cross-Modal Pose-aware (CMP) framework designed to tackle this challenge. Key components include:

  • Pose-aware Image Encoder (PE): This module explicitly incorporates human pose information, recognizing that abnormal actions often manifest as distinct pose patterns. It uses a pose map to extract pose-aware features that are then integrated with image features through cross-attention.
  • Identity-based Hard Negative Mining (IHNM): To train models effectively, it's crucial to distinguish subtle behavioral differences. IHNM generates challenging negative pairs by creating images and texts that describe the same person but with different actions (e.g., normal vs. anomalous). This forces the model to learn fine-grained action discrimination.
  • Cross-modal Modeling: The framework employs a three-pronged approach:
  • Image-Text Matching (ITM): Uses a cross-encoder to predict if an image-text pair is a match, with a focus on hard negative pairs generated by IHNM.
  • Contrastive Learning: Aligns image and text representations in a shared embedding space.
  • Masked Language Modeling (MLM): Predicts masked words in a text description conditioned on the corresponding image.

The overall objective is a combined loss from these three tasks.

Datasets

  • Pedestrian Anomaly Behavior (PAB) Benchmark: This is the core contribution for dataset creation.
  • Training Set: Synthetically generated using diffusion models and large language models (like Qwen2-VL) to create over 1 million image-text pairs. This approach addresses the scarcity of real-world anomaly data and ethical concerns.
  • Test Set: Collected from real-world videos (OOPS! dataset) and carefully curated to ensure high quality and relevance, resulting in 1,978 real-world image-text pairs.
  • UCF-Crime: Used to create an Out-of-Distribution (OOD) test set (UCC) to evaluate the model's generalization capabilities on unseen data.

Key Insights and Ideas

  • The Importance of Pose for Anomaly Detection: The paper highlights that human pose is a critical signal for distinguishing normal from abnormal actions, a factor often overlooked in traditional person search.
  • Synthetic Data for Anomaly Training: Leveraging generative models is a viable and effective strategy to overcome the lack of real-world anomaly data, enabling the creation of large-scale, diverse training sets.
  • Hard Negative Mining is Crucial: Simply using random negative pairs is insufficient. Generating hard negatives that are semantically similar but differ in the critical aspect (action) is key to learning fine-grained behavioral discrimination.
  • Bridging the Gap Between Identity and Behavior Search: The proposed task and benchmark explicitly address the need to unify appearance-based retrieval with behavior-based anomaly detection.

Key Results

  • The proposed CMP framework achieved 84.93% recall@1 accuracy on the PAB benchmark.
  • The model demonstrated strong performance on the UCC OOD test set, achieving 54.12% recall@1 accuracy, indicating good generalization.
  • Ablation studies showed that both the Pose-aware Image Encoder (PE) and Identity-based Hard Negative Mining (IHNM) significantly contribute to the overall performance, with CMP outperforming baselines by substantial margins.
  • The paper also shows that even with 10% of the PAB training data, the model achieves competitive recall rates, suggesting the effectiveness of the IHNM strategy.

Limitations and Future Work

  • Limitations: While the synthetic data generation is a strength, the paper acknowledges that it might not perfectly capture all nuances of real-world scenarios. The OOD performance, while competitive, still shows a significant gap compared to in-distribution performance, indicating room for improvement in generalization.
  • Future Work: The authors suggest that the rich annotations in the PAB dataset can support future tasks like action or scene classification. The framework's ability to handle diverse environmental conditions (multi-weather settings) is also a promising direction for further exploration. The paper also implies that further improvements in cross-modal understanding and anomaly detection are possible.

Summary updated

BibTeX
@inproceedings{yang2025beyond,
  author = {Shuyu Yang and Yaxiong Wang and Li Zhu and Zhedong Zheng},
  title = {{Beyond Walking: A Large-Scale Image-Text Benchmark for Text-based Person Anomaly Search}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure