On Segmentation of Moving Objects by Integrating Pca Method with the Adaptive Background Model

Tracking and segmentation of moving objects are suffering from many problems including those caused by elimination changes, noise and shadows. A modified algorithm for the adaptive background model is proposed by linking Gaussian mixture model with the method of principal component analysis PCA. This approach utilizes the advantage of the PCA method in providing the projections that capture the most relevant pixels for segmentation within the background models. We report the update on both the parameters of the modified method and that of the Gaussian mixture model. The obtained results show the relatively outperform of the integrated method.


Introduction
Object segmentation is an important technique used in many systems, especially in the field of computer vision.Background subtraction which involves calculating a reference image, labels the pixels corresponding to foreground objects.N. Friedman and S. Russell were proposed a Gaussian mixture model (GMM) for the background subtraction [1].C. Stauffer and W. Grimson developed an algorithm for foreground segmentation based on the Gaussian mixture model [2,3].W. Grimson and et al used tracking information in multicamera calibration, for object detection and classification [4].T. Bouwmans, F. ElBaf and B. Vachon surveyed the background modeling using mixture of Gaussians for object detection [5].F. Zbu and K. Fujimura demonstrated a face tracking method using GMM and EM algorithm [6].P. Kaew-TraKulPong and R. Bowden proposed a method to detect moving shadows using Gaussian mixture model.The shadow detection also reduces the effect of small repetitive motions in the background scene [7].On the other hand, the binding ellipsis, due to S. Cheung and C. Kamath is inappropriate for complex-shaped objects such as human beings.They used frame-differencing as it produces minimal false foreground trails behind objects [8].
The principal component analysis is as a linear transformation filter.It can be used to simplify a dataset and creates new classifiers.H. Moon and P. Jonathan introduced a statistical pattern recognition PCA algorithm which has become the famous benchmark PCA algorithm [9].H. Kim, D. Kim, and S. Yang proposed PCA mixture models applicable to many areas, where applied as the alphabet recognition [10].B. Antoni, M. Vijay and V. Nuno introduced a generalization of the Stauffer-Grimson background subtraction algorithm.However, the background subtraction algorithm was evaluated through extensive experiments, involving scenes with dynamic backgrounds, and high detection.Moreover, in their generalization the low false positive rates were obtained regardless of object scale suggesting that it may be suitable for surveillance on dynamic scenes [11].I. Gómez, D. Olivieri, X. Vila, and S. Orozco proposed a method for foreground, background segmentation and created a feature vector for discriminating and tracking several people in the scene [12].Y. Sheikh and M. Shah Introduced single distribution and kernel density [13].Y. Yong and W. Ya-fei used Gaussian mixture model with spatial local correlation and Markov Chain [14].R. Hassanpour, A. Shahbahrami and S. Wong proposed Gaussian mixture model and considered the higher level a priori knowledge of spatial and temporal relationship between the pixels in a video sequence [15].G. Rajkumar, K. Srinivasarho and P. Sribivasa proposed a new image segmentation algorithm used the finite mixture of doubly truncated bivariate Gaussian distribution by integrating with the hierarchical clustering [16].In fact, we cannot detect the boundaries of object with a good precision and it is difficult to separate a moving object and its shadow.In our work, we attempt to integrate the PCA method with Gaussian mixture.Accordingly, we link the Gaussian mixture with PCA to obtain the feature of the shape in the scenes and classification of each object.
The remainder of the paper is organized as follows: in the Section 2, we present adaptive background subtraction algorithm based on Gaussian mixture model followed by PCA algorithm placed in the Section 3. The linkage between PCA and the adaptive model is explained in the Section 4. The applications of the algorithm with their experimental results are presented with comments in the Section 5.

Gaussian Mixture Models
In the adaptive mixture of Gaussian in our work, the pixel processes is considered at time series.We consider each pixel as an independent statistical process, incorporates all pixel observations.The mixture model does not distinguish components that correspond to background from those associated with foreground objects and record the observed intensity at each pixel over the previous N frames.
In the same manner as C. Stauffer and W. Grimson [3], we used the same number k of components (K = 3, 5).We consider the values of a particular pixel, with initial over time t and we can define the history of this particular pixel as , , , :1 , where I is the image sequence.The probability of pixels observation data X is defined as follows: where , , For simplicity we use , where I identity matrix.Next, we update the mixture of each pixel consecutively by reading in new pixel values and update each matching mixture component.We initialize the parameters , W  and  .They are updated for each frame in the mixture.We calculate W for each k th Gaussian component in the mixture.When the current pixel value matches none of the distributions, the least probable distribution is updated with the current pixel values.Then the parameters of the mixture are updated as follows: where the constant  is a learning rate to update the components weights, , k t M is a dummy variable with value 1 for matching models and 0 otherwise.We introduce the following criterion for screening the preliminary Gaussian matching distribution with Mahalanobis distance less than a threshold to collect the targeted pixels, with the update recursive equations and where indicates how to accelerate the update.Thus, we can find the foreground resulted from the background and then find the best segment of the image.The non active background Gaussian is treated as foreground.In the ordering, we selected the ratios k k W  Large values of ratios are associated with distributions which have a high weight, low variance.The first B distributions chosen under the expression: where the threshold T is a prior probability estimated from the background process.Movements caused by the background (such as tree branches shaking, surface fluctuations, etc.) were considered to segment for the foreground objects.

Principle Component Analysis (PCA)
We used observation data First we consider each of the N frames in one color (R) such that we can define the frame vectors for fixed i with respect to the j th pixels index: , 1, , The arithmetic average of pixels in each component for the N i frame vector can be defined as follows: where i th is number of pixels in the frame i.
Next, we compute the difference i i i for the i th image R r    i  and construct the difference matrix A as: The covariance matrix of each frame vector is defined by: We compute the eigenvectors and corresponding eigenvalues by: Using Singular Value Decomposition (SVD) method, where V is the set of eigenvectors associated with the corresponding eigenvalues λ.To apply the method of PCA we need to define the projection i by applying the translation matrix to the vectors Next, we construct each frame to obtain the features of the shape.Then we can define the estimated data ˆi x by: One property of PCA is that the projection onto the principal subspace minimizes squared errors.To find the feature principal subspecies of PCA, the sequential reconstruction errors are estimated from: the major advantage of the PCA method comes from its generalization ability.It reduces the feature space dimension by considering the variance of the input data.This method determines which projections are referable for representing the structure of input data.Those projections are selected in such a way that the maximum amount of information (i.e.maximum values of variances, where Eigenvalues represent the largest variances) is obtained in the smallest dimension of feature space.

Extended Gaussian Mixture
Since the Gaussian mixture model does not vary greatly with illumination changes and noise, we propose in this study an algorithm based on linking PCA method with GMM.
We extend Gaussian mixture of observing pixel data i X from (1, 2), using the method of PCA.The estimated x is obtained by projecting the data on the axis, then with the new data , t = 1, N, we propose to compute based on S such that: and again for simplicity we assume 2 , , k , where I is identity matrix.In linking PCA with GMM it is evident that the integrated based on by its physical structure, contains the maximum amount of information or has the minimum squared errors as com- of the GMM in handling the limitation and shadow that contribute to noise in the adaptive Gaussian model.
To update each mixture of each pixel entails reading the new pixel values and select the matching components, then compute the mean obtained with x and finally injecting that mean into the covariance of PCA method form (5,6). Symbolically the update is based on: and where indicates how to accelerate the update.In the integrated method we insert the estimates of the mean , ˆi t  and covariance of each , ˆi t  component in PCA into GMM respectively.We simply select the components with largest weights and re-estimate with (7) as the follows: And their Gaussian matching parameters must satisfy: with the estimates the ratios ˆk k W  Large values of ratios are associated with distributions which have a high weight, low variance and first Gaussian distributions: Then for estimating the distribution of data by integrating PCA and mixture Gaussian, we need to perform both the appropriate partitioning of the component and the estimation of model parameters.We can perform this task successfully due to the important property of the PCA method.

Experiment Results and Analysis
In our application, we performed a quantitative comparison between two algorithms for segmentation and objects estimation of the mean in the feature space, and the differences between mean and each color were computed.
detection: The first algorithm based on Gaussian mixture model (GMM) and the second competing algorithm based on linking PCA with the adaptive background model.
After we applied the PCA to solve the problem of Gaussian mixture and obtained improved result in the two cases, see Figure 1 and Figure 3, the performance enhanced remarkably with the PCA-GMM proposed detection method.
In our experiment, each pixel is checked against the current frame of the background model by comparing it with every component in the Gaussian model under each of the two algorithms.
Clearly, the detection accuracy in terms of recall and precision of PCA + GMM method is consistently higher than the mixture of Gaussians approach, the GMM method, as illustrated by Figure 2 and Figure 4 that show the perframe detection rates.
For each of the GMM method and PCA-GMM method, this process continues until a matching is found with k components (k = 3, 5).With changes in time, we used the data sequentially in the range 121 to 1000 frames and parameters and  .   0.0067 Consequently, the PCA + GMM method reflects more accurate detection of object results than the GMM method at each level of the proposed approach.The experiment resulted in two frame's sequences in the different backgrounds (tree, lightness).The frame's dimensions were 167 × 120.From Figure 1 and Figure 2, it is obviously to observe the impact of the noise and lightness associated with GMM method.

Conclusion
As the appearance of scene varies with illumination changes and noise, it is difficult to separate and track objects in a dynamic scene environment.In this paper, we reported an application study based on a proposed Next we select each component of mixture model, minimum reconstruction error over the data need to be estimated.After the selection of one color in data, the     algorithm that links PCA and the Gaussian Mixture Model (GMM), to address this difficulty.The proposed algorithm has manipulated the variation to ease the segmentation of the foreground from the background.The study confirms that the proposed algorithm produces relatively good results compared to GMM method.

Figure 1 .
Figure 1.Sample frames, the top row are original images, the second row are the results obtained by Gaussians mixture method, and the third row results obtained by the PCA + GMM.

Figure 2 .
Figure 2. Precision-recall plots, for scenes in the Figure 1.

Figure. 3 .
Figure. 3. Sample frames, in the top row are the original images, in the second row are the results obtained by using Mixture of Gaussians method and in the third row are the results obtained by the PCA + GMM.

Figure 4 .
Figure 4. Precision-recall plots, for scenes in the Figure 3.
[7] P. KaewTraKulPong and R. Bowden, "An Improved Adaptive Background Mixture Model for Real-Time Tracking with Shadow Detection," 2nd European Workshop on Advanced Video Based Surveillance Systems (AVBS01), September 2001.