Abstract
This paper proposes a low computational cost method for abnormal crowd behavior detection with surveillance applications in fixed cameras. Our proposal is based on statistical modelling of moved pixels density. For modelling we take as reference datasets available in the literature focused in crowd behavior. During anomalous events we capture data to replicate abnormal crowd behavior for computer graphics and virtual reality applications. Our algorithm performance is compared with other proposals in the literature applied in two datasets. In addition, we test the execution time to validate its usage in real-time. In the results we obtain fast execution time of the algorithm and robustness in its performance.
Access provided by CONRICYT-eBooks. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
According to [1] abnormal or unusual behavior are somehow interesting that catch the attention of human observers, and often quite easy to identify. In recent years, surveillance systems have been improved, the main reasons are the technological advances and the increasing availability of monitoring cameras in different environments [2,3,4]. The challenge of abnormal or unusual behavior detection for surveillance camera operators is that it requires a lot of attention without stop and is an exhausting process because the abnormal events occur with a low probability, making that the major part of the effort be wasted watching regular videos [1, 5]. Abnormal crowd behavior detection is a topic of interest in multiple fields as: computer vision, real-time applications [6,7,8] crowd behavior analysis, and others; capturing the attention of several research groups [9].
In the field of computer graphics [10], computer simulations [11, 12], and virtual reality [13]; models of people behavior have been used to simulate crowds in different scenarios [14, 15]. According to [16], the behavior of people in crowds could be different depending on situation; it makes more difficult to represent the dynamic models of a crowd.
Our approach is focused on fast abnormal events detection based on analysis of inter-frame pixel motion. We obtain a model of pixel density behavior in human crowds using statistical concepts, and replicate the abnormal crowd behavior in computer simulations.
This paper is organized as follows: Sect. 2 describes the related work on abnormal crowd behavior detection. Next, the statistical modelling and our algorithm are presented in the Sect. 3. In Sect. 4, we present the experimental results followed by the summary. Finally conclusions and future works are presented in Sect. 5.
2 Related Works
In the literature, several research groups have proposed methods to deal with the problem of abnormal human behavior detection in different contexts [1] like suspicious events [17], irregular behavior [18], abnormal behavior [19, 20], and others. ed to. Multiple authors have divided all these methods in two main approaches: model based detection and particle advection based detection. The choose of the model will depend of the density of the crowd to be analyzed [21].
Model based methods analyze individuals behavior using detection and segmentation, works like [22, 23] analyze the motion patterns using people tracking. In [24, 25] the extracted trajectories were used to represent normal patterns, atypical values were considered abnormal.
Particle advection based models [26,27,28] represents a holistic vision of a crowd. Common approaches in this field include: optical flow [14, 27, 28], gradients [29], spatio-temporal features [30], and others.
Our method for anomaly detection uses a particle advection based algorithm; we analyze pixel densities with statistical modelling to identify abrupt movements in the image and detect abnormal behavior.
3 Our Approach
For abnormal crowd behavior detection, we divide our method in three stages: Motion detection and motion analysis, statistical modelling of normal behavior, and abnormal crowd behavior detection and simulation.
3.1 Motion Detection and Motion Analysis
For motion detection, we use algorithm based on image differences in consecutive frames. First, we three consecutive frames are read: previous frame (or first frame), current frame and next frame (the algorithm could have one frame of delay). Then, we applicate RGB to Gray transformation to each frame for color channels simplification. We operate between images as color matrices obtaining the absolute difference between consecutive frames using the Eqs. 1 and 2:
We apply the logical operation AND to these differences, finding pixels that have moved in current frame. This algorithm is graphically presented in Fig. 1.
With moved pixels, adjacent pixels are grouped to get little contours. Background subtraction approaches like [31] proposes that with the increase of the speed in the motion, increases the density of these grouped pixels. We group this moved pixels inside bounding boxes as show the Fig. 2.
The Fig. 2 shows that the algorithm generates bounding boxes around moved pixels; the computational advantage of this approach is to reduce the image analysis to simple matrix operations.
3.2 Statistical Modelling
Normal Behavior Modelling
In the literature, several datasets for abnormal behavior detection have been created. For pixel density modelling, we get the average area of bounding boxes by frame during normal crowd behavior scenes. We use 3 video datasets focused on abnormal crowd behavior detection:
-
UMN dataset [28]: Abnormal behavior consist in panic situations resulting in evacuation or scape.
-
UCSD ped1 dataset [24]: Abnormal behavior represent different objects like bikes or cars with different speed and direction in comparison with common pedestrians.
-
Avenue Dataset [5]: Abnormal behavior are individuals running or moving with abnormal speeds respect to other pedestrians.
In order to have small variation in data, we set all videos to the same size (320 × 240 pixels). We tabulate the data for each frame. In total, 12154 frames were analyzed. The results of histograms are presented in Fig. 3.
Additionally we compute the mean, standard deviation and coefficient of variation given by the Eqs. 3, 4 and 5 respectively:
In the Eqs. 3 and 4, \( N \) represents the total number of data, and \( x_{i} \) represents each single data (\( i = 1,2,3, \ldots N \)). As we can see in Fig. 3, all datasets present similar trends. Data of mean, standard deviation and coefficient of variability are tabulated in Table 1.
According to standard deviation and coefficient of variation, Avenue dataset [5] is the most unstable for the application of this method.
Abnormal Crowd Detection
For abnormal crowd behavior we compute the atypical values in pixel densities. When an atypical value is detected, we will assume that crowd experiments an abnormal behavior. For this, we calculate the upper limit for atypical values given by the equation:
Where \( Q_{3} \) represent the third quartile and \( IQR \) is the interquartile range. We only take values over the upper limit because there are not atypical values under lower limit. The interquartile range (IQR) is defined as:
Where \( Q_{1} \) is the first quartile.
The value of upper limit for extreme atypical values in each dataset is presented in Table 2.
The Table 2 shows that UMN dataset have the maximum upper limit, so we will take this value to implement the algorithm.
3.3 Abnormal Behavior Detection and Simulation Algorithm
With the atypical values calculated, we determinate that abnormal crowd behavior occurs when different pixels exceed upper limit density.
Simulation
We obtain the center points of bounding boxes during abnormal crowd in function of time that they appear. In video screens the position \( y = 0 \) begins at up-left corner, for this reason, we must subtract 240 minus “y” positions to match it with Cartesian coordinates. We present graphical results in Fig. 4.
4 Results and Discussion
4.1 Execution Time
To evaluate the execution time we run the program in two computers with the following characteristics:
-
PC1: Processor Intel (R) Core (TM) i3, 2.4 GHz, 4.0 GB of RAM memory
-
PC2: Processor Intel (R) Core (TM) i7, 2.8 GHz, 7.7 GB of RAM memory
The results of evaluation are presented in Table 3.
Table 3 shows that in computers with low and high features the algorithm works fast, thus the algorithm can be used in real time applications.
4.2 Algorithm Performance
For algorithm evaluation, we count the number of bounding boxes that present atypical values, defining a threshold of counted atypical values to determinate an abnormal behavior. In each threshold we tabulate the true positive and false positive rates. We compare our algorithm based on statistical pixel density model (SPDM) in two datasets: UMN [28] and UCSD ped1 [24] according to their respective ground–truth annotations. In the first dataset we evaluate our approach and social-force model presented in [28]. In the second dataset we compare our method with: MPPCA + SF [24], Adam [32], y subspace [33]. Results are presented in Fig. 5.
In Fig. 5, our algorithm presents better performance that methods presented in the state of art for frame level analysis in two datasets. In UCSD ped1 [24], many approaches determinate the performance at pixel level, however this paper not deal with this task.
5 Conclusions and Future Work
Despite the videos for statistical modeling are different, they present similar features during density pixel estimation; it allows generating a global model that works in different applications.
Due to the low computational cost of image processing, the proposed method for motion detection works for real time applications as show the Table 3.
In our method, we use abrupt changes in pixel density to detect anomalies. This proposal for abnormal crowd behavior detection is robust compared with approaches in the literature.
In the future, we will improve the detection including pixel level analysis; however it is necessary to include more variables in the process. This will allow improving simulation and avoidance systems like [34,35,36].
References
Popoola, O.P., Wang, K.: Video-based abnormal human behavior recognition—a review. IEEE Trans. Syst. Man Cybern. Part C Appl. Rev. 42, 865–878 (2012)
Aguilar, W.G., Luna, M.A., Moya, J.F., Abad, V., Ruiz, H., Parra, H., Angulo, C.: Pedestrian detection for UAVs using cascade classifiers and saliency maps. In: Rojas, I., Joya, G., Catala, A. (eds.) IWANN 2017. LNCS, vol. 10306, pp. 563–574. Springer, Cham (2017). doi:10.1007/978-3-319-59147-6_48
Aguilar, W.G., Luna, M.A., Moya, J.F., et al.: Pedestrian detection for UAVs using cascade classifiers with meanshift. In: 2017 IEEE 11th International Conference on Semantic Computing, pp. 509–514. IEEE (2017)
Rahmalan, H., Nixon, M.S., Carter, J.N.: On crowd density estimation for surveillance. In: IET Conference on Crime Security, pp. 540–545. IEEE (2006)
Lu, C., Shi, J., Jia, J.: Abnormal event detection at 150 fps in matlab. In: Proceedings of IEEE International Conference on Computer Vision, pp. 2720–2727 (2013)
Aguilar, W.G., Angulo, C.: Real-time model-based video stabilization for microaerial vehicles. Neural Process. Lett. 43, 459–477 (2016)
Aguilar, W.G., Angulo, C.: Real-time video stabilization without phantom movements for micro aerial vehicles. EURASIP J. Image Video Process. 2014, 46 (2014)
Aguilar, W.G., Angulo, C.: Robust video stabilization based on motion intention for low-cost micro aerial vehicles. In: 2014 11th International Multi-Conference Systems, Signals & Devices (SSD), pp. 1–6 (2014)
Silveira Jr., J., Musse, S.R., Jung, C.R.: Crowd analysis using computer vision techniques. IEEE Sig. Process. Mag. 27, 66–77 (2010)
Cabras, P., Rosell, J., Pérez, A., et al.: Haptic-based navigation for the virtual bronchoscopy. IFAC Proc. 18, 9638–9643 (2011)
Aguilar, W., Morales, S.: 3D environment mapping using the kinect V2 and path planning based on RRT algorithms. Electronics 5, 70 (2016)
Aguilar, W.G., Morales, S., Ruiz, H., Abad, V.: RRT* GL based optimal path planning for real-time navigation of UAVs. In: Rojas, I., Joya, G., Catala, A. (eds.) IWANN 2017. LNCS, vol. 10306, pp. 585–595. Springer, Cham (2017). doi:10.1007/978-3-319-59147-6_50
Shendarkar, A., Vasudevan, K., Lee, S., Son, Y.-J.: Crowd simulation for emergency response using BDI agent based on virtual reality. In: Proceedings of the 38th Conference Winter Simulation, pp. 545–533 (2006)
Andrade, E.L., Blunsden, S., Fisher, R.B.: Modelling crowd scenes for event detection. In: Pattern Recognition, ICPR 2006, vol. 1, pp. 175–178 (2006)
Bellomo, N., Dogbé, C.: On the modelling crowd dynamics from scaling to hyperbolic macroscopic models. Math. Model Methods Appl. Sci. 18, 1317–1345 (2008)
Lemercier, S., Jelic, A., Kulpa, R., et al.: Realistic following behaviors for crowd simulation. In: EUROGRAPHICS (2012)
Lavee, G., Khan, L., Thuraisingham, B.: A framework for a video analysis tool for suspicious event detection. Multimed. Tools Appl. 35, 109–123 (2007)
Zhang, Y., Liu, Z.-J.: Irregular behavior recognition based on treading track. In: 2007 International Conference on Wavelet Analysis and Pattern Recognition, pp. 1322–1326. IEEE (2007)
Benezeth, Y., Jodoin, P.-M., Saligrama, V., Rosenberger, C.: Abnormal events detection based on spatio-temporal co-occurences. In: 2009 IEEE Conference Computer Vision and Pattern Recognition, pp. 2458–2465. IEEE (2009)
Park, K., Lin, Y., Metsis, V., et al.: Abnormal human behavioral pattern detection in assisted living environments. In: Proceedings of 3rd International Conference on PErvasive Technologies Related to Assistive Environments – PETRA 2010, p. 1. ACM Press, New York, USA, (2010)
Raghavendra, R., Cristani, M., Del Bue, A., Sangineto, E., Murino, V.: Anomaly detection in crowded scenes: a novel framework based on swarm optimization and social force modeling. In: Ali, S., Nishino, K., Manocha, D., Shah, M. (eds.) Modeling, Simulation and Visual Analysis of Crowds. TISVC, vol. 11, pp. 383–411. Springer, New York (2013). doi:10.1007/978-1-4614-8483-7_15
Basharat, A., Gritai, A., Shah, M.: Learning object motion patterns for anomaly detection and improved object detection. In: 2008 IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–8. IEEE (2008)
Stauffer, C., Grimson, W.E.L.: Learning patterns of activity using real-time tracking. IEEE Trans. Pattern Anal. Mach. Intell. 22, 747–757 (2000)
Mahadevan, V., Li, W., Bhalodia, V., Vasconcelos, N.: Anomaly detection in crowded scenes. In: 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 1975–1981. IEEE (2010)
Wu, S., Moore, B.E., Shah, M.: Chaotic invariants of lagrangian particle trajectories for anomaly detection in crowded scenes. In: Computer Vision and Pattern Recognition (2010)
Mehran, R., Moore, B.E., Shah, M.: A streakline representation of flow in crowded scenes. In: Daniilidis, K., Maragos, P., Paragios, N. (eds.) ECCV 2010. LNCS, vol. 6313, pp. 439–452. Springer, Heidelberg (2010). doi:10.1007/978-3-642-15558-1_32
Ali, S., Shah, M.: A Lagrangian particle dynamics approach for crowd flow segmentation and stability analysis. In: Computer Vision and Pattern Recognition (2007)
Mehran, R., Oyama, A., Shah, M.: Abnormal crowd behavior detection using social force model. In: Computer Vision and Pattern Recognition (2009)
Ke, Y., Sukthankar, R., Hebert, M.: Event Detection in crowded videos. In: Comput Vision, 2007 ICCV 2007 pp. 1–8 (2007)
Kratz, L., Nishino, K.: Anomaly detection in extremely crowded scenes using spatio-temporal motion pattern models. Computer Vision and Pattern Recognition, pp. 1446–1453 (2009)
Zivkovic, Z., Van Der Heijden, F.: Efficient adaptive density estimation per image pixel for the task of background subtraction. Pattern Recognit. Lett. 27, 773–780 (2006)
Adam, A., Rivlin, E., Shimshoni, I., Reinitz, D.: Robust real-time unusual event detection using multiple fixed-location monitors. IEEE Trans. Pattern Anal. Mach. Intell. 30, 555–560 (2008)
Elhamifar, E., Vidal, R.: Sparse Subspace Clustering : In: 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 2790–2797. IEEE (2009)
Aguilar, W.G., Casaliglla, V.P., Pólit, J.L.: Obstacle avoidance based-visual navigation for micro aerial vehicles. Electronics 6, 10 (2017)
Aguilar, W.G., Casaliglla, V.P., Pólit, J.L., Abad, V., Ruiz, H.: Obstacle avoidance for flight safety on unmanned aerial vehicles. In: Rojas, I., Joya, G., Catala, A. (eds.) IWANN 2017. LNCS, vol. 10306, pp. 575–584. Springer, Cham (2017). doi:10.1007/978-3-319-59147-6_49
Aguilar, W.G., Casaliglla, V.P., Polit, J.L.: Obstacle avoidance for low-cost UAVs. In: Proceedings of - IEEE 11th Int Conference on Semantic Computing, ICSC 2017 (2017)
Acknowledgement
This work is part of the project Perception and localization system for autonomous navigation of rotor micro aerial vehicle in gps-denied environments, VisualNavDrone, 2016-PIC-024, from the Universidad de las Fuerzas Armadas ESPE, directed by Dr. Wilbert G. Aguilar.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Aguilar, W.G. et al. (2017). Statistical Abnormal Crowd Behavior Detection and Simulation for Real-Time Applications. In: Huang, Y., Wu, H., Liu, H., Yin, Z. (eds) Intelligent Robotics and Applications. ICIRA 2017. Lecture Notes in Computer Science(), vol 10463. Springer, Cham. https://doi.org/10.1007/978-3-319-65292-4_58
Download citation
DOI: https://doi.org/10.1007/978-3-319-65292-4_58
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-65291-7
Online ISBN: 978-3-319-65292-4
eBook Packages: Computer ScienceComputer Science (R0)