Human Action Recognition Based on Fusion Features Extraction of Adaptive Background Subtraction and Optical Flow Model

A novel method based on hybrid feature is proposed for human action recognition in video image sequences, which includes two stages of feature extraction and action recognition. Firstly, we use adaptive background subtraction algorithm to extract global silhouette feature and optical flowmodel to extract local optical flow feature.Then we combine global silhouette feature vector and local optical flow feature vector to form a hybrid feature vector. Secondly, in order to improve the recognition accuracy, we use an optimized Multiple Instance Learning algorithm to recognize human actions, in which an Iterative Querying Heuristic (IQH) optimization algorithm is used to train theMultiple Instance Learningmodel.We demonstrate that our hybrid feature-based action representation can effectively classify novel actions on two different data sets. Experiments show that our results are comparable to, and significantly better than, the results of two state-of-the-art approaches on these data sets, which meets the requirements of stable, reliable, high precision, and anti-interference ability and so forth.


Introduction
Human actions recognition based on computer vision is of great scientific and practical importance.It has numerous significant theoretic values and wide potential applications, such as real-time video surveillance system, interpretation of sport events, and human computer interactions [1][2][3].In recent years, human actions recognition has become a research hot spot.Tremendous amount of researches has been carried out in the field of human actions recognition from video sequence.There are many human actions recognition methods already presented.Common method to recognize human actions aims at both still images and video sequences [4,5].In paper [6], Madabhushi and Aggarwal proposed a Bayesian approach for human activity recognition.Park and Aggarwal [7] used a hierarchical Bayesian network (BN) to recognize two-person interactions.Duong et al. [8] proposed activity recognition and abnormality detection using the switching hidden semi-Markov model.Bayesian approach and Hidden Markov Models (HMM) have been extensively used to detect simple and complex events that occur in the scenarios.
Human action evolves dynamically.Due to a large number of parameters which need to be set, learning those models is also hard.Thus these approaches may limit their practical use.Recently, one popular approach for human action recognition is applied, in which a representation known as "temporal templates" captures both motion and shape to recognize human action.Bobick and Davis [9] applied temporal templates to recognize human movement.In papers [2,10], Niebles et al. and Savarese et al. presented an unsupervised learning method for human action categories using spatial temporal words.Iosifidis et al. [11] used Linear Discriminant Analysis (LDA) to achieve human body postures in the dyneme space and produce a time invariant multiview movement representation, which obtained high human movement classification accuracy.In paper [12], Qian et al. aggregated multiple SVMs to accomplish the recognition of actions and achieved the best classification performance.Schüldt et al. [13] performed human action recognition by training SVM classifiers.However, these approaches ignore the contextual information provided by different frames in a video; the modeling and learning frameworks are rather simple.Danafar and Gheissari [14] firstly constructed motion descriptors with optic flow and then classified human action with SVM.In papers [15,16], the proposed approaches used two latent topic models, PLSA and LDA, to learn and recognize human action categories, which can save a lot of computation cost.Shotton et al. [17] proposed a new method to quickly and accurately predict human pose by designing an intermediate representation in terms of body parts, which obtained high accuracy on both synthetic and real test sets.Xia et al. [18] presented a novel approach for human action recognition with histograms of 3D joint locations (HOJ3D), which was real-time and achieved superior results on the challenging 3D action dataset.Jalal et al. [19] employed the radon transformation on depth silhouettes for human home action recognition.The result was interesting but at the same time not as good as one would expect.Ni et al. [20] combined color and depth information for human action recognition using spatiotemporal interest points (STIPs) and motion history images (MHIs).These results were interesting but at the same time not as good as one would expect.Even great efforts have been made for decades, but these approaches have been fraught with difficulty because they are often inconsistent with other evidence of human actions [21].The human actions recognition is still an immature technology and a challenging problem in computer vision to achieve robust human actions recognition from image sequences because of occlusion, human postures, illumination conditions, changing backgrounds, camera movements.With moving target and cameras, nonstationary background, few vision algorithms can categorize and recognize human actions well.It is essential for intelligent and natural human computer interaction to recognize human actions automatically.
In this paper, we present a novel method for human action recognition from video sequences.This approach includes two steps of feature extraction and human action recognition.In the extracting feature, global silhouette features of human are extracted by using adaptive background subtraction algorithm; local optical flow features are extracted by using optical flow model.Then fusing global silhouette feature vector and local optical flow feature vector form a hybrid feature vector.
Finally an optimized Multiple Instance Learning algorithm is used for human action recognition.In addition, in order to improve the recognition accuracy, an Iterative Querying Heuristic (IQH) optimization algorithm is used to train the Multiple Instance Learning model.
Given unlabeled human actions video sequence, it is our goal to automatically learn different human actions categories in the data and apply the Multiple Instance Learning model for human actions categorization and recognition in the new video sequences.Our approach is illustrated in Figure 1.
The rest of this paper is organized as follows.In Section 2, we describe human action features representation based on adaptive background subtraction and optical flow models.In Section 3, we give details of algorithm for human action recognition using an optimized Multiple Instance Learning algorithm.Section 4 shows experiment result, also comparing our approach with two state-of-the-art methods, and the conclusions are given in the final section.

Human Actions Hybrid Features Representation
Recognizing human actions from video sequences is both a challenging problem and an interesting research area.Generally, two important questions are involved in human action recognition.One is how to represent efficiently human actions, which is the key for a good human actions recognition method, and the other is how to model reference movements, which efficiently deal with variations at spatial and temporal scales within similar motion categories.
Extracting useful motion information from raw video data is crucial for human actions recognition.The choice of the motion features affects the result of the human action recognition method directly.Many factors often influence the single feature differently, such as appearance of human body, environment, and video camera.So the accuracy of action recognition is limited.After fully considering the advantages and disadvantages of different features, we propose a hybrid feature method on the basis of studying the representation and recognition of human actions, which is fusing global silhouette feature and local optical flow feature.
2.1.Global Silhouette Feature Representation.Human silhouettes in single frame image can be used to describe the information of which overall shape of a human body movement changes [22,23].
Adaptive background subtraction [24] is a kind of very good method for global silhouette feature extraction.We use it to determine the general area of the movement and the human body shadow.
Assume that all the actions are performed before the static background.We use adaptive background subtraction to determine the motion area and extract the human body silhouette.The step for adaptive background subtraction algorithm is as follows.
Step 1 (initialize the background model).First Taking  background image continuously, then through the image, a single gaussian distribution is created to set the initial background statistical model (  , V 2  ).Forming the Gaussian distribution needs the mean and standard deviation, which can be calculated using where   is color value of the point  in the th image.
Step 2 (extracting foreground area).Assuming that color value of the point  is   in current image, the image binarization is expressed as where points of all signs "1" are foreground area and points of all signs "0" are background region.
Step 3 (update background model).Assume that   () is color expectations of the point  at time , V 2  () is color variance of the point  at time , and   () is color value of the point  in time  which collect images.At time  + 1, there is where  is used to control the background update rate, 0 <  < 1.Each point in the binary image is marked by flag  , if value of the flag  is "1, " which is foreground, and flag  is "0, " which is the background.Thus, the area marked as "0" constitutes the background region and the area marked as "1" constitutes the foreground area.
So we can get the foreground of the binary image.Figure 2 shows an example of adaptive background subtraction to extract the moving human body silhouette.
Silhouette features have the following advantages.Silhouette features can be used to describe the shape of human movement information simply and visually [25].
Silhouette features are easy to be extracted.Binary silhouette figure is not sensitive to texture and color of the foreground image.
Suppose that a video sequence  contains  frame image -namely,  = [ 1 ,  2 , . . .,   ]-and  is the sequence of motion silhouette corresponding to video -namely,  = [ 1 ,  2 , . . .,   ].We use the contour vector to describe the overall human silhouette and shape information.The step is as follows.
Step 2. Calculate the center of mass about human body contour, which is expressed as where (  ,   ) is the center of mass and (  ,   ) is edge points of the contour.  is the number of edge points in the th image.
Step 3. Calculate the distance from the center to the edge points, which is expressed as where   is the edge distance from the center of mass to edge points, which the th edge points correspond to.
Step 4 (normalize contour vector).We use 2-norm for contour vector normalization processing [26].2-norm is the most popular general approaches for computing approximations of the condition number.It is the incremental condition estimation (ICE) of a triangular matrix and can be viewed as a special case of the framework.The strategy is naturally connected to adaptive techniques and contains clearly visible links to matrix decompositions.After the normalization processing of contour vector, we perform interval such as resampling.We obtain the fixed point , where  is set as 180.
We can obtain  = (  ,   ) by minimizing the objective function: We use the iterative algorithm [28] to compute the optical flow; optical flow is decomposed into longitudinal and transverse two components, namely, the longitudinal optical flow and transverse optical flow, which is expressed as where  is the number of iterations,    ,    are the average velocity of the neighborhood of point (, ), and  0  =  0  = 0 is initial value of velocity.
After standardization, optical flow diagrams are divided into 2 × 2 subframe, where they are set  1 ,  2 ,  3 ,  4 , respectively.The size of subframe is set 60 × 60, and the centers of subframe are set   as shown in Figure 3, where  = 1, 2, 3, 4. Then each subframe is divided into 18 subareas in the centers of subframe and degree of each central angle is 20 ∘ as shown in Figure 4, where they are set    , and where  = 1, 2, . . ., 18.  Thus each frame image of optical flow graph is divided into 72 subareas.We calculate the sum of the longitudinal optical flow   , and the sum of the transverse optical flow   , at subarea: where    is the subarea,  = 1, 2, 3, 4 and  = 1, 2, . . ., 18, and  is the number of the longitudinal optical flows or the transverse optical flows.
Optical flow information of the image can be represented by the sum of longitudinal optical flow and transverse optical flow in 72 subareas, which is expressed as  , (10) where   is the sum of longitudinal optical flow in 72 subareas and   is the sum of transverse optical flow in 72 subareas.
We calculate local optical flow vector   : where we use 2-norm for   normalization processing and get the local optical flow vector of the current frame image.

Human Action
Hybrid Feature Representation.In order to improve the accuracy of human action recognition, fusing the contour vector and local optical flow vector form a hybrid feature vector, which is expressed as where   is the hybrid feature vector of each frame image,   is local optical flow vector, and   is contour vector.Human actions are represented by the hybrid feature vectors of contour vector and local optical flow vector.Because human actions can be regard as motion, the local optical flow features can describe human actions effectively.In addition, silhouette features can describe the shape of human movement information simply and visually.Thus, the hybrid features have been shown to perform reliably with noisy image sequences and have been applied in various tasks, such as action classification and action recognition.

Human Actions Recognition
After characterizing human actions, there are many methods to recognize human actions.Because human actions recognition is innately a Multiple Instance Learning problem, we use the Multiple Instance Learning algorithm to learn and recognize human actions.The Multiple Instance Learning model has been applied to various computer visions, such as object recognition, action recognition, and human detection [29,30].In order to increase recognition efficiency without compromising accuracy, an Iterative Querying Heuristic (IQH) optimization algorithm is used to train the Multiple Instance Learning model, and then the improved Multiple Instance Learning framework is used to learn a unified classifier instead of individual classifiers for all categories.

The Multiple Instance Learning Algorithm Analysis. The Multiple Instance
Learning is one of the most efficient machine learning algorithms at present.Its idea was originally proposed by Keeler et al. [31] in 1990.It was called Integrated Segmentation and Recognition (ISR), and its key idea is to provide a different way in constituting training samples.Training samples are in "bags, " they are not singletons, and all of the samples in a bag share a label.Each bag contains a large number of instances.Samples are organized into positive bags or negative bags of instances, where at least one instance is positive in a positive bag, but all instances are negative in a negative bag.In the Multiple Instance Learning, it must simultaneously learn that samples in the positive bags are positive along with the parameters of the classifier [32,33].In this paper, the Multiple Instance Learning is used for human actions with nonaligned training samples.The step for recognizing human actions based on the Multiple Instance Learning is as follows.
Step 3. Initialize all strong classifiers:   = 0 for all , , where strong classifiers are composed of all the weak classifier.
In the th bag, when the th sample is positive, the probability is calculated as follows: where In the positive bag, the probability is calculated as follows: where    = (  |   ).The likelihood, which is assigned to a set of training bags, is expressed as End for.Find the maximum  * from  and obtain the current optimal weak classifier as follows: The strong classifier is produced by the  * as follows: End for.
Step 5.  weak classifiers constitute a strong classifier, which is expressed as where ℎ  is a weak classifier, which can make binary predictions by using sign(  ()).
In the Multiple Instance Learning, samples come into positive bags and negative bags of instances.Each instance   is indexed by two indices, where  stands for the bag and  stands for the instance in the bag.All instances in a bag share a bag label   .The weight of each sample consists of the weight of bags and the weight of samples in the bag, where the number of the samples can be interpreted as a likelihood ratio.   is the probability of positive instances in the bags, so the weight of samples is    .We calculate   =  log   /  and obtain the weight of the bags   [34].

Optimizing the Multiple Instance Learning Algorithm for
Human Actions Recognition.The Multiple Instance Learning algorithm provides a general paradigm for a more relaxed form of supervised learning.In the Multiple Instance Learning, the learner gets unordered sets of instances or bags instead of receiving example or label pairs, and labels are provided for each bag rather than for each instance, where a positive bag contains at least one positive instance.In the initial training stages, training and evaluating have a direct effect on both the features and the appropriate thresholds selected, and it is the key to a fast and effective classifier.The samples have high score in positive bags.The final classifier labels these samples to be positive.The rest of the samples have a low score in the positive bags, which are assigned a low weight.The final classifier classifies these samples as negative samples.Setting the detection threshold and training a complete classifier, we obtain the desired false positive rates and false negative rates.Retrain the initial weak classifier to get a zero false negative rate on the positive samples.Repeat the process to train the second classifier and yield a zero false negative rate on the remaining samples.
During the inference stage, given a testing image, we can treat each aspect in the Multiple Instance Learning model as one class of human actions.Human actions recognition needs large amount of training data, so it will result in long training time.In this paper, we adopt an Iterative Querying Heuristic (IQH) algorithm to train the Multiple Instance Learning model [35].The main step is as follows.
Step 3. Query  new candidate instances per bag: Step 4. Keep  the highest scoring instance by using ℎ  , where ℎ  is the form of classifier and can label the instances of a positive bag  as varying with the latent parameter.
Step 5. Train ℎ   with the selected instances: Step 6. End for.
Step 7. Return ℎ   and the corresponding ℎ   .
In Iterative Querying Heuristic [36], for positive bags, we use the current estimate of the classifier to select the most positive instances, which ensure that at least one of the queried instances is positive.For negative bags, all instances are negative.In this case, we select the closest instances to

Experimental Results and Analysis
In this section we presented some experiments to validate our proposed approach.The effectiveness of the proposed algorithm was verified by using C++ and Matlab hybrid implementation on a PC with Pentium 3.2 GHz processor and 4G RAM.We tested our algorithm using Weizmann human action data set and the ballet data set.The reason of selecting these two types of videos is that they are challenging databases.

Experiment on Weizmann Data
Set. Weizmann human action data set [37] is the largest available video sequence dataset of human actions, whose sample images are shown in Figure 5. Weizmann database contains 83 video sequences and nine groups of images, where each performs nine different actions.They are "running, " "walking, " "jumping-jack" ("jack"), "jumping-forward-on-two-legs" ("jump"), "jumping-inplace-on-two-legs" ("pjump"), "galloping-sideways" ("sideways"), "waving-two-hands" ("wave2"), "waving-one-hand" ("wave1"), and "bending, " respectively.We track and stabilize the figures using the adaptive background subtraction masks that come with this data set.After an automatic preprocessing step, the video sequences were tracked and stabilized, and all the figures appeared in the center of the field of view.In this experiment, we studied recognition results of nine kinds of human actions from Weizmann human motion dataset.We investigated the performance of the proposed approach method for human action recognition.On the Weizmann dataset, the results of human action recognition are shown in Table 1, where the correct recognition rate is defined as follows: The correct recognition rate = the number of the times of correct recognition total number of the samples In Table 1 we can see that our method can correctly recognize most of human actions.The recognition rate is as high as 100% for "bending, " "jumping-jack, " "jumping-in-placeon-two-legs, " "galloping-sideways, " "waving-two-hands, " and "waving-one-hand".Our method achieves 98.5% average recognition rate.A few mistakes were confusions between "jumping-forward-on-two-legs" and "jumping-in-place-ontwo-legs" because these two kinds of actions were similar to each other.[38] contains several minutes of digitized instructional ballet from an instructional ballet DVD.These images were preprocessed by aligning and scaling so that each human figure could be tracked and stabilized for all images.Finally, we obtained 50 tracks.All the frames in these video sequences were manually labeled with one of eight action labels (e.g., "left-to-right hand opening, " "right-to-left hand opening, " "standing hand opening, " "leg swinging, " "jumping, " "turning, " "hopping, " and "standing still.").Some sample frames are shown in Figure 6.
In order to examine the accuracy of our proposed approach, we researched recognition accuracy of eight kinds of human actions from ballet human motion data set by using our method, which is the most challenging of the database.Recognition results were presented in the confusion matrices as shown in Figure 7, where Action1 to Action8 indicate "left-to-right hand opening, " "right-to-left hand opening, " "standing hand opening, " "leg swinging, " "jumping, " "turning, " "hopping, " and "standing still, " respectively.Each cell in the confusion matrix is the average result of every human action, respectively.
As Figure 7 shows, our algorithm can correctly classify most actions.The only exception is "standing still." This is intuitively reasonable since it is difficult to reliably obtain optical flow features for "standing still" action.
In order to testify the effectiveness of our proposed approach, our method is compared with SVM and LDA on the same data set and the same experimental settings, which were two state-of-the-art approaches for human action recognition.We used 260 different human action images for this experiment.For each method, we used the single and hybrid feature, respectively, in the experiment.The average recognition accuracy was observed, which is displayed in Table 2.
We can see that our method improves the recognition accuracy with either a single or hybrid feature from the above experiments.When we did experiments with hybrid characteristics, our method achieves 98.5% average recognition rate, whereas "SVM" obtains a result of 91.2% and "LDA" gets a result of 93.7%.In the experiment of single feature, our method gets a result of 94.6%, whereas "SVM" and "LDA" only achieve 85.4% and 89.3% average recognition rate, respectively.The reason is that we improve the recognition accuracy in the two stages of human action feature extraction and human action recognition.In the stage of human action feature extraction, we use a hybrid feature vector that combines global silhouette feature and local optical flow feature, which are reliable with noisy image sequences and describe human action effectively.In the stage of human action recognition, we use the improved Multiple Instance Learning algorithm to classify human action.Our method performs significantly better.

Conclusion
In this paper, we present a new method for human action recognition in video sequences, which focuses on two key problems extracting more useful and discriminating feature and improving the accuracy of classifier.The main contribution can conclude as follows.
In feature extraction and representation, we extracted global silhouette feature using adaptive background subtraction method, and optical flow model was used for extracting motion features.Then fusing two kinds of feature formed a hybrid feature vector.
In action modeling and recognition, we proposed the improved Multiple Instance Learning algorithm for human action recognition using Iterative Querying Heuristic (IQH) algorithm, so that the recognition efficiency can be increased without compromising accuracy.
Experiments were performed on Weizmann human action data set and ballet data set.Experiments evaluated the proposed method.Experimental results revealed that our proposed method performed better than previous ones.Our algorithm can also recognize multiple actions in complex motion sequences.

Figure 1 :
Figure 1: Flowchart of human action recognition based on fusion features extraction.

Figure 2 :
Figure 2: The processing pipeline of the adaptive background subtraction: (a) the original images, (b) the background images, and (c) the body silhouettes.

Figure 4 :
Figure 4: 18 subareas of each subframe in the centers of subframe.

Figure 5 :
Figure 5: Key frames for Weizmann human action data set.

Figure 6 :
Figure 6: Key frames for Weizmann human action data set.

Figure 7 :
Figure 7: Confusion matrix for human action recognition on the ballet data set.

Table 1 :
The results of human action recognition on Weizmann database.
4.2.Experiment on Ballet Data Set.The ballet data set

Table 2 :
Comparison of recognition accuracy for three methods.