Hoi2Threat: An Interpretable Threat Detection Method for Human Violence Scenarios Guided by Human-Object Interaction

Yuhan Wang, Cheng Liu, Dawei Zhang, Zihan Zhao, Jinyang Chen, Pei Dong, Z. Yu, Zhixiang Wang, Weichao WuarXiv 2025 · DOI

Abstract

In light of the mounting imperative for public security, the necessity for automated threat detection in high-risk scenarios is becoming increasingly pressing. However, existing methods generally suffer from the problems of uninterpretable inference and biased semantic understanding, which severely limits their reliability in practical deployment. In order to address the aforementioned challenges, this article proposes a threat detection method based on human-object interaction pairs (HOI-pairs), Hoi2Threat. This method is based on the fine-grained multimodal TD-Hoi dataset, enhancing the model's semantic modeling ability for key entities and their behavioral interactions by using structured HOI tags to guide language generation. Furthermore, a set of metrics is designed for the evaluation of text response quality, with the objective of systematically measuring the model's representation accuracy and comprehensibility during threat interpretation. The experimental results have demonstrated that Hoi2Threat attains substantial enhancement in several threat detection tasks, particularly in the core metrics of Correctness of Information (CoI), Behavioral Mapping Accuracy (BMA), and Threat Detailed Orientation (TDO), which are 5.08, 5.04, and 4.76, respectively, in comparison with the Gemma3 (4B). The aforementioned results provide comprehensive validation of the merits of this approach in the domains of semantic understanding, entity behavior mapping, and interpretability.

Introduction

In the realm of public security, automated threat detection in high-risk scenarios—such as assaults or weapon-related incidents—is a critical necessity. While Vision-Language Models (VLMs) offer a path forward, they often function as "black boxes," providing binary alerts without explaining the underlying reasoning. This lack of interpretability, coupled with a tendency to hallucinate details or misinterpret complex interactions, limits their reliability in real-world deployments.

Hoi2Threat addresses these challenges by introducing a structured approach to scene understanding. By explicitly mapping Human-Object Interaction (HOI) pairs, the model decomposes visual inputs into interpretable semantic components before generating textual descriptions. This 0.35B parameter model demonstrates that efficiency and interpretability can go hand-in-hand.

The TD-Hoi Dataset and Construction Pipeline

To train and evaluate models on fine-grained threat detection, the authors developed the TD-Hoi (Threat Detection - Human Object Interaction) dataset. This benchmark consists of 8,282 images, balancing threat scenarios from the XD-Violence dataset with normal background images from COCO.

The TD-Hoi data construction pipeline involves random frame sampling, fine-grained HOI annotation using MiniGPT-v2, and explainable text generation via LLMs.

As illustrated in Figure 2, the construction process moves from raw video frames to structured HOI tags (e.g., [person, gun, hold]) and finally to high-quality, human-verified text descriptions. This structured pipeline ensures that the model learns to ground its linguistic output in specific physical interactions rather than vague visual patterns.

Methods: Guiding Generation with HOI Tags

Hoi2Threat utilizes an image-tag-text information transfer mechanism. Unlike standard VLMs that map pixels directly to text, this architecture forces the model to "show its work" through intermediate semantic tags:

  1. HOI Encoder: A transformer-based module detects entities (humans, objects) and predicts their behavioral relationships.
  2. Cross-Modal Projector: Maps these structured HOI-pairs into a unified embedding space alongside raw visual features.
  3. Tag-Guided Generation: An Image-HOI-Caption decoder fuses visual features with HOI tags via cross-attention, ensuring the final text output is strictly grounded in the detected interactions.

Ablation studies highlight the importance of this structure: removing HOI guidance causes the Correctness of Information (CoI) score to plummet from 5.68 to 1.70, proving that intermediate tags are the primary driver of the model's accuracy.

Experimental Results and Efficiency

Hoi2Threat demonstrates that massive scale is not a prerequisite for high performance. With only 0.35B parameters, it outperforms significantly larger models in both accuracy and inference speed.

Comparison of Overall-score vs. Inference time across various vision-language models. Hoi2Threat (Ours) achieves the highest score with minimal latency.

As shown in Figure 1, Hoi2Threat (represented by the red star) occupies the optimal top-left quadrant of the performance-efficiency trade-off. It achieves an overall score of approximately 4.8 with an inference time of ~0.35s, surpassing models like LLaMA3.2-Vision (11B) and GLM4 (9B).

To better evaluate these models, the authors introduced three specific metrics:

  • Correctness of Information (CoI): Measures the factual accuracy of the entities and threats.
  • Behavioral Mapping Accuracy (BMA): Evaluates how well the model captures the "who is doing what" aspect.
  • Threat Detailed Orientation (TDO): Assesses the depth and relevance of the threat description.

On the Large-scale Anomaly Detection dataset, Hoi2Threat achieved scores of 5.68 (CoI), 5.43 (BMA), and 4.78 (TDO). For comparison, the 9B parameter GLM4 scored significantly lower (1.39, 1.32, and 1.32 respectively), highlighting the effectiveness of the HOI-guided approach.

Conclusion and Future Work

Hoi2Threat provides a scalable, interpretable solution for automated security monitoring. By leveraging structured HOI tags, it mitigates the hallucination issues common in larger, unguided models. Currently, the model operates on a frame-by-frame basis. Future research will focus on extending this architecture to real-time video, incorporating temporal modeling to better capture the dynamic nature of violent events.

Summary updated

BibTeX
@misc{wang2025hoi,
  author = {Yuhan Wang and Cheng Liu and Dawei Zhang and Zihan Zhao and Jinyang Chen and Pei Dong and Z. Yu and Zhixiang Wang and Weichao Wu},
  title = {{Hoi2Threat: An Interpretable Threat Detection Method for Human Violence Scenarios Guided by Human-Object Interaction}},
  year = {2025},
  eprint = {2503.10508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.10508},
  howpublished = {arXiv},
}
Figure