Spatio-Temporal Capsule Networks for Weakly Supervised Surveillance Video Anomaly Detection
Source abstract
Abstract
Real surveillance systems require weakly supervised video anomaly detection due to the fact that long untrimmed videos do not always have accurate temporal labels. Models will be required to label a video as normal or abnormal and also to identify sparse anomaly areas with mere video-level supervision. In this paper, we introduce ST-CapsNet, which is a spatio-temporal capsule network that enhances weakly supervised localization of anomalies by using a structured representation and temporal agreement. Every video is broken down into 32 parts and coded with 512-dimensional 3D CNN (Convolutional Neural Network) features. Primary capsules record patterns of segments as vectors, and temporal capsules are created by dynamic routing over time, enabling the related abnormal segments to provide support to a common event representation. Training is based on a multiple-instance learning model that has a bag-level BCE (Binary Cross-Entropy) loss, a ranking loss between abnormal and normal separation, and smoothness and sparsity regularization to impose temporal consistency and sparse event behavior. The weakly supervised FAST (Focused and Accelerated Subset Training) split experiments on the UCF-Crime weakly supervised FAST split demonstrate that ST-CapsNet is better than strong baselines. The findings indicate that capsule routing is an effective part of the whole temporal reasoning of weakly supervised surveillance anomaly detection.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Anomaly Detection Techniques and Applications · Human Pose and Action Recognition · Video Analysis and Summarization
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Hungary Institute of Information Technology, University of Miskolc, 3515 Miskolc, Hungary
References (37)
Show source-provided references
1. Weakly Supervised Video Anomaly Detection via Self-Guided Temporal Discriminative Transformer10.1109/TCYB.2022.3227044 ↗
2. Habeb, M.H., Salama, M., and Elrefaei, L.A. (2024). Enhancing Video Anomaly Detection Using a Transformer Spatiotemporal Attention Unsupervised Framework for Large Datasets. Algorithms, 17.10.3390/a17070286 ↗
3. Sarker, M.I., Losada-Gutiérrez, C., Marrón-Romera, M., Fuentes-Jiménez, D., and Luengo-Sánchez, S. (2021). Semi-Supervised Anomaly Detection in Video-Surveillance Scenes in the Wild. Sensors, 21.10.3390/s21123993 ↗
4. Karim, H., Doshi, K., and Yilmaz, Y. (2024, January 3–8). Real-Time Weakly Supervised Video Anomaly Detection. Proceedings of the 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Waikoloa, HI, USA.10.1109/WACV57701.2024.00670 ↗
5. Weakly-Supervised Video Anomaly Detection via Temporal Resolution Feature Learning10.1007/s10489-023-05072-8 ↗
6. Zhang, Q., Wei, H., Chen, J., Du, X., and Yu, J. (2023). Video Anomaly Detection Based on Attention Mechanism. Symmetry, 15.10.3390/sym15020528 ↗
7. Gao, W., Wang, X., Wang, Y., and Jing, X. (2025). Dual-Stream Attention-Enhanced Memory Networks for Video Anomaly Detection. Sensors, 25.10.3390/s25175496 ↗
8. Zhang, Y., Song, J., Jiang, Y., and Li, H. (2023). Online Video Anomaly Detection. Sensors, 23.10.3390/s23177442 ↗
9. Efficient-CapsNet: Capsule Network with Self-Attention Routing10.1038/s41598-021-93977-0 ↗
10. CapST: Leveraging Capsule Networks and Temporal Attention for Accurate Model Attribution in Deep-Fake Videos10.1145/3715138 ↗
11. Weakly Supervised Video Anomaly Detection Based on Hyperbolic Space
12. Xu, Y., Huang, B., Zhou, C., Wang, H., and Li, X. (2024). Video Anomaly Detection with Hyperbolic Graph Embedding and Masked Normalizing Flows. Electronics, 13.10.3390/electronics13245013 ↗
13. Ding, H., Lou, S., Ye, H., and Chen, Y. (2025). MT-CMVAD: A Multi-Modal Transformer Framework for Cross-Modal Video Anomaly Detection. Appl. Sci., 15.10.3390/app15126773 ↗
14. Federated Weakly Supervised Video Anomaly Detection with Multimodal Prompt
15. Ma, Z., Machado, J.J.M., and Tavares, J.M.R.S. (2021). Tavares Weakly Supervised Video Anomaly Detection Based on 3D Convolution and LSTM. Sensors, 21.10.3390/s21227508 ↗
16. Weakly Supervised Video Anomaly Detection Combining Deep Features with Shallow Neural Networks10.5753/jbcs.2022.2194 ↗
17. Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly Detection
18. Collaborative Normality Learning Framework for Weakly Supervised Video Anomaly Detection
19. Anomaly-Aware Self-Supervised Feature Learning for Weakly Supervised Video Anomaly Detection10.1016/j.cviu.2025.104379 ↗
20. Learning Opposite Prompts for Weakly Supervised Video Anomaly Detection10.1016/j.knosys.2025.113600 ↗
21. Toward Video Anomaly Retrieval from Video Anomaly Detection: New Benchmarks and Model10.1109/TIP.2024.3374070 ↗
22. An Overview of Transformers for Video Anomaly Detection10.1007/s00521-025-11218-1 ↗
23. Video Anomaly Detection Utilizing Efficient Spatiotemporal Feature Fusion with 3D Convolutions and Long Short-Term Memory Modules10.1002/aisy.202300706 ↗
24. Multi-Scale Spatiotemporal Normality Learning for Unsupervised Video Anomaly Detection10.1007/s10489-025-06485-3 ↗
25. Lv, L., Liu, Q., Kan, S., and Liang, Y. (November, January 29). Confidence-Aware Contrastive Learning for Semantic Segmentation. Proceedings of the 31st ACM International Conference on Multimedia, Ottawa, ON, Canada.
26. Hyperbolic Graph Attention Network Fusing Long-Context for Technical Keyphrase Extraction10.1016/j.inffus.2025.103061 ↗
27. Dual-Detector Reoptimization for Federated Weakly Supervised Video Anomaly Detection via Adaptive Dynamic Recursive Mapping10.1109/TII.2025.3574406 ↗
28. Borodin, K., Kondrashov, K., Vasiliev, N., Gladkova, K., Larina, I., Gorodnichev, M., and Mkrtchian, G. (2025). Benchmarking Compact VLMs for Clip-Level Surveillance Anomaly Detection Under Weak Supervision. J. Imaging, 11.10.3390/jimaging11110400 ↗
29. Huang, H., Zhao, B., Gao, F., Chen, P., Wang, J., and Hussain, A. (2023). A Novel Unsupervised Video Anomaly Detection Framework Based on Optical Flow Reconstruction and Erased Frame Prediction. Sensors, 23.10.3390/s23104828 ↗
30. Kang, S.-H., and Kang, H.-S. (2025). A Unified GAN-Based Framework for Unsupervised Video Anomaly Detection Using Optical Flow and RGB Cues. Sensors, 25.10.20944/preprints202508.1337.v1 ↗
31. Generative Adversarial Networks10.1145/3422622 ↗
32. Weakly Supervised Temporal Action Detection with Temporal Dependency Learning10.1109/TCSVT.2021.3125701 ↗
33. Chen, Y., Liu, Z., Zhang, B., Fok, W., Qi, X., and Wu, Y.-C. (2022). MGFN: Magnitude-Contrastive Glance-and-Focus Network for Weakly-Supervised Video Anomaly Detection. arXiv.10.1609/aaai.v37i1.25112 ↗
34. Two Phase Cooperative Learning for Supervised Dimensionality Reduction10.1016/j.patcog.2023.109871 ↗
35. Wu, P., Zhou, X., Pang, G., Yang, Z., Yan, Q., Wang, P., and Zhang, Y. (November, January 28). Weakly Supervised Video Anomaly Detection and Localization with Spatio_Temporal Prompts. Proceedings of the 32nd ACM International Conference on Multimedia, Melbourne, Australia.
36. Li, M., Sang, J., Lu, Y., and Du, L. (2025). WSVAD_CLIP: Temporally Aware and Prompt Learning with CLIP for Weakly Supervised Video Anomaly Detection. J. Imaging, 11.10.3390/jimaging11100354 ↗
37. Tian, Y., Pang, G., Chen, Y., Singh, R., Verjans, J.W., and Carneiro, G. (2021). Weakly Supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning. arXiv.10.1109/ICCV48922.2021.00493 ↗