Efficient video violence detection through segmented temporal sampling and CNN–transformer modeling
Fray L. Becerra-Suarez, Karem Menacho-Navarrete, Mónica Díaz, Franccesca A. Recharte-Trucios, Felix R. Landeo-Castillo, Lloy Pinedo
Key points
From the paper's conclusion- These results support segmented temporal sampling as an efficient strategy for violence detection while highlighting remaining challenges under domain shift.
Abstract
Detecting violence in video requires models capable of capturing spatial and temporal information without relying on long sequences, optical flow, or additional modalities. This study presents a CNN–Transformer framework based on segmented temporal sampling, evaluating 4, 8, and 16 frames per video. Each frame is encoded using EfficientNet-B0 pre-trained on ImageNet; features are projected onto 256-dimensional tokens, supplemented with sinusoidal positional encoding, and processed using a Transformer encoder followed by attention pooling. The framework was evaluated using video-level partitioning, multi-seed training, bootstrapping, robustness analysis, computational efficiency, independent benchmark evaluation and cross-dataset generalization. The 4-frame configuration achieved the most favorable multi-seed validation performance and was therefore selected for final evaluation. On the RLVS test set, the selected configuration achieved an Accuracy of 0.9508 ± 0.0038, F1-score of 0.9517 ± 0.0039, MCC of 0.9022 ± 0.0078, and PR-AUC of 0.9915 ± 0.0008. Under Gaussian noise, the CNN–Transformer showed the smallest MCC degradation (ΔMCC = −0.1853). Independent evaluation yielded Accuracies of 0.9517 ± 0.0076 on Hockey Fight Videos and 0.8857 ± 0.0143 on AIRTLab. The final model contained 5.39 million parameters and achieved 9.57 ± 1.25 ms inference latency per video. These results support segmented temporal sampling as an efficient strategy for violence detection while highlighting remaining challenges under domain shift.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Attention-free temporal modelling for efficient video violence detectionScientific Reports · 2026
- Video violence detection using pre-trained VGG19 combined with manual logic, LSTM layers and Bi-LSTM layersApplied Intelligence · 2026
- Multimodal Violence Understanding and Temporal Retrieval in Movies with Adaptive Audio-Visual FusionarXiv · 2026
- Efficient Zero-Shot Video Anomaly Detection via Signal-Aware Adaptive Fusion (SAAF)arXiv · 2026
- IDG-ViolenceNet: A Video Violence Detection Model Integrating Identity-Aware Graphs and 3D-CNNSensors · 2025
- An embedded deep learning framework for real-time violence detection and alert generationScientific Reports · 2026