Fight Detection from Still Images in the Wild

Şeymanur Aktı, Ferda Ofli, Muhammad Imran, Hazım Kemal EkenelarXiv 2021

TL;DR

Researchers have developed a new "in-the-wild" dataset, Social Media Fight Images (SMFI), to prove that violent altercations can be detected with high accuracy from single still images alone. By leveraging Vision Transformers (ViT), the team achieved over 95% accuracy, demonstrating that temporal video data isn't always necessary to identify physical conflict in the chaotic world of social media.

What Problem Does This Paper Address?

Most automated fight detection systems are built for video. They rely on "temporal information"—the sequence of movements over time—to distinguish a punch from a high-five. However, social media is saturated with still images where this temporal context is missing.

Furthermore, existing fight datasets are often "sanitized" or niche, focusing on specific environments like ice hockey rinks, movie sets, or fixed CCTV cameras. These don't translate well to the "wild" nature of social media, where images feature diverse lighting, various camera angles from mobile devices, and a wide array of human behaviors. The authors address this gap by investigating whether we can reliably detect fights from a single frame and by providing a dataset that actually reflects the diversity of the real world.

Methods

The authors framed the problem as a binary classification task (fight vs. non-fight). They compared several state-of-the-art architectures:

  • Convolutional Neural Networks (CNNs): Standard models like VGG-16, ResNet-50, and ResNeXt-50.
  • Vision Transformer (ViT): Specifically, the ViT-Large-16 model.

While CNNs are the traditional workhorse for image tasks, the researchers found that ViT’s self-attention mechanism was particularly effective. It allows the model to learn the spatial alignment between different regions of an image—such as the relative positions of limbs and bodies—which is crucial for recognizing a "fight" posture. They also noted that ViT is more robust to motion blur, a common feature in action shots.

Datasets

The centerpiece of this work is the new Social Media Fight Images (SMFI) dataset.

  • SMFI: Contains 5,691 samples collected from Twitter, Google, and mobile-recorded frames from the NTU CCTV-Fights dataset. It includes "hard negatives"—images of hugging, falling, or sports—to ensure the model learns to recognize actual violence rather than just "fast movement" or "closeness."
  • Benchmarks: To test generalization, the authors used four established video-based datasets (using single frames from each): Hockey Fight, Movie Fight, Violent Flows (Crowd Violence), and Surveillance Fight.

Key Insights and Ideas

  • Spatial Context is King: The most surprising takeaway is that you don't need to see the "swing" to recognize the "hit." The appearance and posture in a single frame are often sufficient for high-accuracy detection.
  • The "Dataset Bias" Trap: The paper highlights a major hurdle in computer vision: models often "overfit" to the specific quirks of a dataset. While models hit nearly 100% accuracy when trained and tested on the same dataset (like Hockey Fights), their performance plummeted to ~70% when tested on different datasets.
  • Transformers Generalize Better: ViT significantly outperformed CNNs in validation. While CNNs tended to memorize the training data (hitting 100% training accuracy but lower validation scores), ViT maintained a much smaller gap, suggesting it learned more fundamental features of what a "fight" looks like.
  • Robustness to Data Loss: Because social media platforms frequently delete violent content, the authors simulated "data loss." They found that even with 60% of the training data missing, the ViT model remained remarkably stable, maintaining high accuracy.

Key Results

  • Top Performance: The ViT-Large-16 model achieved a 95.5% validation accuracy on the SMFI dataset, outperforming ResNet-50 (87.7%) and VGG-16 (83.0%).
  • Cross-Dataset Success: When trained on the new SMFI dataset and tested across all other datasets, the model achieved an average accuracy of 72.2%. This was second only to the Surveillance Fight dataset (74.3%), proving that SMFI is one of the most representative and "difficult" benchmarks available.
  • Video Dataset "Simplicity": The researchers found that many existing video datasets are actually quite simple; a model can often correctly classify a video just by looking at one random frame, suggesting that temporal features in those specific datasets might be redundant.

Limitations and Future Work

The authors acknowledge that while spatial information is powerful, it isn't a silver bullet. In certain datasets like Surveillance Fight, adding temporal information still provides a significant boost because CCTV footage is often lower resolution and captured from a distance, making individual postures harder to read.

Future work could involve:

  1. Multi-modal detection: Combining image analysis with the text of social media posts for even higher accuracy.
  2. Fine-grained action recognition: Moving beyond binary "fight/no-fight" to identify specific types of violence or weapons.
  3. Real-time deployment: Optimizing these heavy Transformer models for real-time moderation on social media feeds.

Summary updated

Abstract

Detecting fights from still images shared on social media is an important task required to limit the distribution of violent scenes in order to prevent their negative effects. For this reason, in this study, we address the problem of fight detection from still images collected from the web and social media. We explore how well one can detect fights from just a single still image. We also propose a new dataset, named Social Media Fight Images (SMFI), comprising real-world images of fight actions. Results of the extensive experiments on the proposed dataset show that fight actions can be recognized successfully from still images. That is, even without exploiting the temporal information, it is possible to detect fights with high accuracy by utilizing appearance only. We also perform cross-dataset experiments to evaluate the representation capacity of the collected dataset. These experiments indicate that, as in the other computer vision problems, there exists a dataset bias for the fight recognition problem. Although the methods achieve close to 100% accuracy when trained and tested on the same fight dataset, the cross-dataset accuracies are significantly lower, i.e., around 70% when more representative datasets are used for training. SMFI dataset is found to be one of the two most representative datasets among the utilized five fight datasets.
BibTeX
@misc{akt2021fight,
  author = {Şeymanur Aktı and Ferda Ofli and Muhammad Imran and Hazım Kemal Ekenel},
  title = {{Fight Detection from Still Images in the Wild}},
  year = {2021},
  eprint = {2111.08370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.08370},
}
Figure