Abstract
Abnormal crowd behavior detection is a hot research topic in the field of computer vision. In order to solve the problems of high computational cost and the imbalance between positive and negative samples, we propose an efficient algorithm that can detect and locate anomalies in videos. In order to solve the problem of less negative samples, the algorithm uses the spatiotemporal autoencoder to identify and extract the negative samples (contain abnormal behaviors) in the dataset in an unsupervised learning method. On this basis, a spatiotemporal convolutional neural network (CNN) is constructed with simple structure and low computational complexity. The supervised training method is used to train the spatiotemporal CNN with positive and negative samples to generate the detection model. Experiments are conducted on the UCSD and UMN datasets. The experiment results show that the proposed algorithm can detect and locate abnormal behaviors in real time (using only CPU), and the accuracy of the algorithm exceeds those of the existing algorithms at both the pixel level and frame level.
Similar content being viewed by others
References
Popoola, O.P., Wang, K.: Video-based abnormal human behavior recognition—a review. IEEE Trans. Syst. Man Cybern. C Cybern. 42(6), 865–878 (2012)
Yong, S.C., Yong, H.T.: Abnormal event detection in videos using spatiotemporal autoencoder. In: IEEE Computer Vision and Pattern Recognition. pp. 189–196 (2017)
Ravanbakhsh, M., Nabi, M., Sangineto, E., et al.: Abnormal event detection in videos using generative adversarial nets. In: 2017 IEEE International Conference on Image Processing (ICIP). IEEE, pp. 1577–1581
Akcay, S., Atapour-Abarghouei, A., Breckon, T. P.: Ganomaly: semi-supervised anomaly detection via adversarial training. In: Springer Asian Conference on Computer Vision, pp. 622–637 (2018)
Sabokrou, M., Fathy, M., Moayed, Z., et al.: Fast and accurate detection and localization of abnormal behavior in crowded scenes. Mach. Vis. Appl. 28(8), 965–985 (2017)
Marsden, M., Mcguinness, K., Little, S., et al.: Holistic features for real-time crowd behaviour anomaly detection. In: IEEE International Conference on Image Processing, pp. 918–922 (2016)
Wu, S., Moore, B.E., Shah, M.: Chaotic invariants of lagrangian particle trajectories for anomaly detection in crowded scenes. In: IEEE Computer Vision and Pattern Recognition, pp. 2054–2060 (2010)
Basharat, A., Gritai, A., Shah, M.: Learning object motion patterns for anomaly detection and improved object detection. In: IEEE Computer Vision and Pattern Recognition, pp. 1–8 (2008)
Hospedales, T., Gong, S., Xiang, T.: A markov clustering topic model for mining behaviour in video. In: IEEE International Conference on Computer Vision, pp. 1165–1172 (2009)
Kratz, L., Nishino, K.: Anomaly detection in extremely crowded scenes using spatio-temporal motion pattern models. In: IEEE Computer Vision and Pattern Recognition, pp. 1446–1453 (2009)
Zhao, B., Li, F.F., Xing, E.P.: Online detection of unusual events in videos via dynamic sparse coding. In: IEEE Computer Vision and Pattern Recognition, pp. 3313–3320 (2011)
Schlegl, T., Seeböck, P., Waldstein, S. M., et al.: Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In: Springer International Conference on Information Processing in Medical Imaging, pp. 146–157 (2017)
Rasheed, N., Khan, S.A., Khalid, A.: Tracking and abnormal behavior detection in video surveillance using optical flow and neural networks. In: IEEE International Conference on Advanced Information NETWORKING and Applications Workshops, pp. 61–66 (2014)
Zhou, S., Shen, W., Zeng, D., et al.: Unusual event detection in crowded scenes by trajectory analysis. In: IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 1300–1304 (2015)
Li, C., Han, Z., Ye, Q., et al.: Abnormal behavior detection via sparse reconstruction analysis of trajectory. In: IEEE Sixth International Conference on Image and Graphics, pp. 807–810 (2011)
Piciarelli, C., Micheloni, C., Foresti, G.L.: Trajectory-based anomalous event detection. IEEE Trans. Circuits Syst. Video Technol. 18(11), 1544–1554 (2008)
Mo, X., Monga, V., Bala, R., et al.: Adaptive sparse representations for video anomaly detection. IEEE Trans. Circuits Syst. Video Technol. 24(4), 631–645 (2014)
Anjum, N., Cavallaro, A.: Multifeature object trajectory clustering for video analysis. IEEE Trans. Circuits Syst. Video Technol. 18(11), 1555–1564 (2008)
Kratz, L., Nishino, K.: Tracking pedestrians using local spatio-temporal motion patterns in extremely crowded scenes. IEEE Trans. Pattern Anal. Mach. Intell. 34(5), 987–1002 (2012)
Marques, J.S., Jorge, P.M., Abrantes, A.J., et al.: Tracking groups of pedestrians in video sequences. In: IEEE Computer Vision and Pattern Recognition Workshop, p. 101 (2008)
Kim, J., Grauman, K.: Observe locally, infer globally: A space-time MRF for detecting abnormal activities with incremental updates. In: IEEE Computer Vision and Pattern Recognition, pp. 2921–2928 (2009)
Mehran, R., Oyama, A., Shah, M.: Abnormal crowd behavior detection using social force model. In: IEEE Computer Vision and Pattern Recognition, pp. 935–942 (2009)
Reddy, V., Sanderson, C., Lovell, B.C.: Improved anomaly detection in crowded scenes via cell-based analysis of foreground speed, size and texture. In: IEEE Computer Vision and Pattern Recognition Workshops, pp. 55–61 (2013)
Dalal, N., Triggs, B.: Histograms of oriented gradients for human detection. In: IEEE Computer Vision and Pattern Recognition, pp. 886–893 (2005)
Xiao, T., Zhang, C., Zha, H., et al.: Anomaly detection via local coordinate factorization and spatio-temporal pyramid. In: Computer Vision ACCV, pp. 66–82 (2014)
Laptev, I., Marszalek, M., Schmid, C., et al.: Learning realistic human actions from movies. In: IEEE Computer Vision and Pattern Recognition, pp. 1–8 (2008)
Cong, Y., Yuan, J., Tang, Y.: Video anomaly search in crowded scenes via spatio-temporal motion context. IEEE Trans. Inform. Forensics Security 8(10), 1590–1599 (2013)
Cong, Y., Yuan, J., Liu, J.: Sparse reconstruction cost for abnormal event detection. IEEE Comput. Vis. Pattern Recognit. 32(14), 3449–3456 (2011)
Yang, C., Yuan, J., Liu, J.: Abnormal event detection in crowded scenes using sparse representation. Pattern Recogn. 46(7), 1851–1864 (2013)
Li, W., Mahadevan, V., Vasconcelos, N.: Anomaly detection and localization in crowded scenes. IEEE Trans. Pattern Anal. Mach. Intell. 36(1), 18–32 (2013)
Lu, C., Shi, J., Jia, J.: Abnormal event detection at 150 fps in matlab. In: IEEE International Conference on Computer Vision, pp. 2720–2727 (2014)
Zhou, S., Shen, W., Zeng, D., et al.: Spatial-temporal convolutional neural networks for anomaly detection and localization in crowded scenes. Signal Process. Image Commun. 47, 358–368 (2016)
Hasan, M., Choi, J., Neumann, J., et al.: Learning temporal regularity in video sequences. In: EEE Computer Vision and Pattern Recognition, pp. 733–742 (2016)
Medel, J.R.: Anomaly detection using predictive convolutional long short-term memory units. Available http://scholarworks.rit.edu/theses/9319 (2016)
Mahadevan, V., Li, W., Bhalodia, V., et al.: Anomaly detection in crowded scenes. In: IEEE Computer Vision and Pattern Recognition, pp. 1975–1981 (2010)
Raghavendra, R., Bue, A.D., Cristani, M.: Unusual crowd activity dataset of University of Minnesota. Available http://mha.cs.umn.edu/Movies/Crowd-Activity-All.avi (2006)
Adam, A., Rivlin, E., Shimshoni, I., et al.: Robust real-time unusual event detection using multiple fixed-location monitors. IEEE Trans. Pattern Anal. Mach. Intell. 30(3), 555–560 (2008)
Ravanbakhsh, M., Nabi, M., Mousavi, H., et al.: Plug-and-play cnn for crowd motion analysis: An application in abnormal event detection. In: 2018 IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE, pp. 1689–1698
Lee, D.G., Suk, H.I., Park, S.K., et al.: Motion influence map for unusual human activity detection and localization in crowded scenes. IEEE Trans. Circuits Syst. Video Technol. 25(10), 1612–1623 (2015)
Turchini, F., Seidenari, L., Bimbo, A.D.: Convex polytope ensembles for spatio-temporal anomaly detection. In: International Conference on Image Analysis and Processing, pp. 174–184 (2017)
Sabokrou, M., Fayyaz, M., Fathy, M., Klette, R.: Deep-cascade: cascading 3d deep neural networks for fast anomaly detection and localization in crowded scenes. IEEE Trans. Image Process. 26(4), 1992–2004 (2017)
Sabokrou, M., Fayyaz, M., Fathy, M., et al.: Deep-anomaly: fully convolutional neural network for fast anomaly detection in crowded scenes. Comput. Vis. Image Understanding 172, 88–97 (2018)
Sabokrou, M., Khalooei, M., Fathy, M., Adeli, E.: Adversarially learned one-class classifier for novelty detection. In: IEEE Computer Vision and Pattern Recognition, pp. 3379–3388 (2018)
Sabokrou, M., Pourreza, M., Fayyaz, M., et al.: Avid: Adversarial visual irregularity detection. In: Springer Asian Conference on Computer Vision, pp. 488–505 (2018)
Sabokrou, M., Khalooei, M., Adeli, E.: Self-supervised representation learning via neighborhood-relational encoding. In: IEEE International Conference on Computer Vision, pp. 8010–8019 (2019)
Sabokrou, M., Fathy, M., Hoseini, M.: Video anomaly detection and localisation based on the sparsity and reconstruction error of auto-encoder. Electron. Lett. 52(13), 1122–1124 (2016)
Mousavi, H., Nabi, M., Kiani, H., et al.: Crowd motion monitoring using tracklet-based commotion measure. In: IEEE International Conference on Image Processing, pp. 2354–2358 (2015)
Boiman, O., Irani, M.: Detecting irregularities in images and in video. Int. J. Comput. Vis. 74(1), 17–31 (2007)
Roshtkhari, M.J., Levine, M.D.: An on-line, real-time learning method for detecting anomalies in videos using spatio-temporal compositions. Comput. Vis. Image Understanding 117(10), 1436–1452 (2013)
Hassner, T., Itcher, Y., Kliper-Gross, O.: Violent flows: real-time detection of violent crowd behavior. In: IEEE Computer Vision and Pattern Recognition Workshops, pp. 1–6 (2012)
Kaltsa, V., Briassouli, A., Kompatsiaris, I., et al.: Swarm intelligence for detecting interesting events in crowded environments. IEEE Trans. Image Process. 24(7), 2153 (2015)
Acknowledgments
This study was funded by Natural Science Foundation of Beijing Municipality (No. L192036) and National Natural Science Foundation of China (No. 61701029) and Basic Research Foundation of Beijing Institute of Technology (No. 20170542008) and Industry-University-Research Innovation Foundation of the Science and Technology Development Center of the Ministry of Education (No. 2018A02012).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Fan, Z., Yin, J., Song, Y. et al. Real-time and accurate abnormal behavior detection in videos. Machine Vision and Applications 31, 72 (2020). https://doi.org/10.1007/s00138-020-01111-3
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00138-020-01111-3