ISSN ONLINE(2278-8875) PRINT (2320-3765)

All submissions of the EM system will be redirected to Online Manuscript Submission System. Authors are requested to submit articles directly to Online Manuscript Submission System of respective journal.

DEVELOPMENT OF A HIGHLY EFFICIENT OBJECT TRACKING SYSTEM USING MODIFIED MEAN SHIFT TRACKING

Abhishek Kesharwani1, Preeti Tuli2
  1. PG Student, Dept. of CSE, Disha Institute of Management & Technology, Raipur, Chhattisgarh, India
  2. Reader, Dept. of CSE, Disha Institute of Management & Technology, Raipur, Chhattisgarh, India
Related article at Pubmed, Scholar Google

Visit for more related articles at International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering

Abstract

Object tracking is the process of locating a moving object (or multiple objects) over time using a camera. It has a variety of uses, some of which are: human-computer interaction, security and surveillance, video communication and compression, augmented reality, traffic control, medical imaging and video editing. Video tracking can be a time consuming process due to the amount of data that is contained in video. A lot of object tracking algorithms have been reported in literatures, but the area is still lacking with an efficient algorithm which can, not only track the objects but at the same time able to recognize the orientation and movement of object. In this paper an efficient object tracking system is proposed based on Modified mean shift tracking (MMST) algorithm. This work basically deals with how to address the problem to estimate the scale and orientation changes of the target under the mean shift tracking framework. In the original mean shift tracking algorithm, the position of the target can be well estimated, while the scale and orientation changes cannot be adaptively estimated. This paper presents an efficient modification on available mean shift tracking technique, that the weight image derived from the target model and the candidate model can represent the possibility that a pixel belongs to the target, in this work it will be shown that the original mean shift tracking algorithm can be derived using the zeroth and the first order moments of the weight image.

Keywords

Object Tracking, Mean Shift Tracking, Scale and Orientation, MMST

INTRODUCTION

The objective of object tracking is to associate target objects in consecutive video frames. The association can be especially difficult when the objects are moving fast relative to the frame rate. Another situation that increases the complexity of the problem is when the tracked object changes scale and orientation over time. For these situations object tracking systems usually employ a motion model which describes how the image of the target might change for different possible motions of the object.
In the classical mean shift tracking algorithm [9], the estimation of scale and orientation changes of the target is not solved. Although it is not robust, the CAMSHIFT algorithm [6], as the earliest mean shift based tracking scheme, could actually deal with various types of movements of the object. In CAMSHIFT, the moment of the weight image determined by the target model was used to estimate the scale (also called area) and orientation of the object being tracked. Based on Comaniciu et al’s work in [9], many tracking schemes [10, 11, 17, 18, and 23] were proposed to solve the problem of target scale and/or orientation estimation. Collins [10] adopted Lindeberg et al’s scale space theory [19, 20] for kernel scale selection in mean-shift based blob tracking. However, it cannot handle the rotation changes of the target. An EM-shift algorithm was proposed by Zivkovic and Krose in [11], which simultaneously estimates the position of the local mode and the covariance matrix that can approximately describe the shape of the local mode. In [23], a distance transform based asymmetric kernel is used to fit the object shape through a scale adaptation followed by a segmentation process. Hu et al [17] developed a scheme to estimate the scale and orientation changes of the object by using spatial-color features and a novel similarity measure function [12, 16]. In this paper, a Modified mean shift tracking (MMST) algorithm is proposed under the mean shift framework.

MEAN SHIFT TRACKING ALGORITHM

A. Target Representation
In object tracking, a target is usually defined as a rectangle or an ellipsoidal region in the image. Currently, a widely used target representation is the color histogram because of its independence of scaling and rotation and its robustness to partial occlusions [9, 21]. Denote by {Xi*=} i=1...n the normalized pixels in the target region, which is supposed to be centered at the origin point and have n pixels. The probability of the feature u (u=1, 2… m) in the target model is computed as [9].
image
image
image
Similarly, the probability of the feature u in the target candidate model from the candidate region centered at position y is given by
image
image
image
Since the first term in Eq. (2.7) is independent of y, to minimize the distance in Eq. (2.6) is to maximize the second term in Eq. (2.7). In the mean shift iteration, the estimated target moves from y to a new position y1, which is defined as
image
When we choose the kernel k(x) with the Epanechnikov profile, there is g(x) =-k(x) =1, and Eq. (2.9) can be reduced to [9].
image
By using Eq. (2.10), the mean shift tracking algorithm finds in the new frame the most similar region to the object. From Eq. (2.10) it can be observed that the key parameters in the mean shift tracking algorithm are the weights wi. In this project we will focus on the analysis of wi with which the scale and orientation of the tracked target can be well estimated, and then a scale and orientation adaptive mean shift tracking algorithm can be developed.
B. Modified Mean Shift Tracking For Scale And Orientation Of Target.
In this section, we first analyse how to calculate adaptively the scale and orientation of the target in sub-sections II.II.I ~ II.II.V, then in sub-section II.II.VI, a modified mean shift tracking (MMST) algorithm for scale and orientation of target is presented.
The enlarging or shrinking of the target is usually a gradual process in consecutive frames. Thus we can assume that the scale change of the target is smooth and this assumption holds reasonably well in most video sequences. If the scale of the target changes abruptly in adjacent frames, no general tracking algorithm can track it effectively. With this assumption, we can make a small modification of the original mean shift tracking algorithm. Suppose that we have estimated the area of the target (the area estimation will be discussed in sub-section II.II.II) in the previous frame, in the current frame we let the window size or the area of the target candidate region be a little bigger than the estimated area of the target. Therefore, no matter how the scale and orientation of the target change, it should be still in this bigger target candidate region in the current frame. Now the problem turns to how to estimate the real area and orientation from the target candidate region.
1. The Weight Images For Target Scale Changing
In the CAMSHIFT and the mean shift tracking algorithms, the estimation of the target location is actually obtained by using a weight image [10, 24]. In CAMSHIFT, the weight image is determined using a hue-based object histogram where the weight of a pixel is the probability of its hue in the object model. While in the mean shift tracking algorithm, the weight image is defined by Eq. (2.8) where the weight of a pixel is the square root of the ratio of its color probability in the target model to its color probability in the target candidate model. Moreover, it is not accurate to use the weight image by CAMSHIFT to estimate the location of the target, and the mean shift tracking algorithm can have better estimation results. That is to say, the weight image in the mean shift tracking algorithm is more reliable than that in the CAMSHIFT algorithm.
2. Estimating The Target Area
Since the weight value of a pixel in the target candidate region represents the probability that it belongs to the target, the sum of the weights of all pixels, i.e., the zeroth order moment, can be considered as the weighted area of the target in the target candidate region:
image
In mean shift tracking, the target is usually in the big target candidate region. Due to the existence of the background features in the target candidate region, the probability of the target features is less than that in the target model. So Eq. (2.8) will enlarge the weights of target pixels and suppress the weight of background pixels. Thus, the pixels from the target will contribute more to target area estimation, while the pixels from the background will contribute less. On the other hand, the Bhattacharyya coefficient (referring to Eq. (2.5)) is an indicator of the similarity between the target model q and the target candidate model p(y) . A smaller Bhattacharyya coefficient means that there are more features from the background and fewer features from the target in the target candidate region, vice versa. If we take Moo as the estimation of the target area, then according to Eq. (11), when the weights from the target become bigger, the estimation error by taking M00 as the area of the target will be bigger, vice versa. Therefore, the Bhattacharyya coefficient is a good indicator of how reliable it is by taking M00 as the target area. We propose the following equation to estimate it:
image
Where c(ρ) is a monotonically increasing function with respect to the Bhattacharyya coefficient ρ(0 ≤ ρ ≤ 1).Here we choose the exponential function as c(ρ) based on our experimental experience:
image
From Eqs. (2.12) and (2.13) we can see that when ρ approaches to the upper bound 1, i.e., when the target candidate model approaches to the target model, c(ρ) approaches to 1 and in this case it is more reliable to use M00 as the estimation of target area. When ρ decreases, i.e. the candidate model is not identical to the target model, M00 will be much bigger than the target area but c(ρ) is less than 1 so that A can avoid being biased too much from the real target area. When ρ approaches to 0, i.e., the tracked target gets lost, c(ρ) will be very small so that A is close to zero.
3. The Moment Features In Mean Shift Tracking
In this sub-section, we analyze the moment features in mean shift tracking and then combine them with the estimated target area to further estimate the width, height and orientation of the target in the next sub-section. Like in CAMSHIFT, we can easily calculate the moments of the weight image as follows:
image
image
Where pair (xi,1, xi,2) is the coordinate of pixel i in the candidate region. Comparing Eq. (2.10) with Eqs. (2.11) and (2.14), we can find that y1 is actually the ratio of the first order moment to the zeroth order moment:
image
Where (x 1, x 2) represents the centroid of the target candidate region. The second order center moment could describe the shape and orientation of an object. By using Eqs. (10), (11), (15) and (16), we can convert Eq. (9) to the second order center moment as follows
image
Eq. (2.17) can be rewritten as the following covariance matrix in order to estimate the width, height and orientation of the target:
image
4. Estimating The Width, Height And Orientation Of The Target
By using the estimated area (sub-section 2.2.2) and the moment features (sub-section 2.2.3), the width, height and orientation of the target can be well estimated. The covariance matrix in Eq.(2.18) can be decomposed by using the singular value decomposition (SVD) [22] as follows
image
image
Because the weight image is a reliable density distribution function, the orientation estimation of the target provided by matrix U is more reliable than that by CAMSHIFT. Moreover, in the CAMSHIFT algorithm, λ1 and λ2 height of the target, which is actually improper? Next, we present a new scheme to more accurately estimate the width and height of the target.
Suppose that the target is represented by an ellipse, for which the lengths of the semi-major axis and semiminor axis are denoted by a and b, respectively. Instead of using and λ1 and λ2 directly as the width a and height b, it has been shown that the ratio of λ1 and λ2 can well approximate the ratio of a to b, i.e., λ1 λ2 ≈ a/b Thus we can set a = k λ1 and b= k λ2 , where k is a scale factor. Since we have estimated the target area A, there is πab = π (k λ1) (k λ2) = A. Then it can be easily derived that
image
image
Now the covariance matrix becomes
image
The adjustment of covariance matrix Cov in Eq. (22) is a key step of the proposed algorithm. It should be noted that the EM-like algorithm by Zivkovic and Krose [11] estimates iteratively the covariance matrix for each frame based on the mean shift tracking algorithm. Unlike the EM-like algorithm, our algorithm combines the area of target, i.e., A, with the covariance matrix to estimate the width, height and orientation of the target.
5. Determining The Candidate Region In Next Frame
Once the location, scale and orientation of the target are estimated in the current frame, we need to determine the location of the target candidate region in the next frame. With Eq. (2.22), we define the following covariance matrix to represent the size of the target candidate region in the next frame
image
where Δd is the increment of the target candidate region in the next frame. The position of the initial target candidate region is defined by the following ellipse region
image
6. Implementation Of The Mmst Algorithm
Based on the above analyses in sub-sections 2.2.1 ~ 2.2.5, the scale and orientation of the target can be estimated and then a scale and orientation adaptive mean shift tracking algorithm, i.e. the MMST algorithm, can be developed. The implementation of the whole algorithm is summarized as follows.

Algorithm of Modified Mean Shift Tracking (MMST)

1) Initialization: calculate the target model q and initialize the position y0 of the target candidate model in the previous frame.
2) Initialize the iteration number k ←0.
3) Calculate the target candidate model p(y0) in the current frame.
image

EXPERIMENTAL RESULTS AND DISCUSSIONS

This section evaluates the Developed MMST algorithm in comparison with the original mean shift algorithm, i.e., mean shift tracking with a fixed scale, the adaptive scale algorithm [9] and the EM-shift algorithm [11, 25]. The adaptive scale algorithm and the EM-shift algorithm are two representative schemes to address the scale and orientation changes of the targets under the mean shift framework. Because the weight image estimated by CAMSHIFT is not reliable, it is prone to errors in estimating the scale and orientation of the object. So CAMSHIFT is not used in the experiments.
We selected RGB color space as the feature space and it was quantized into 16×16×16 bins for a fair comparison between different algorithms. It should be noted that other color space such as the HSV color space can also be used in MMST. One synthetic video sequence and three real video sequences are used in the experiments.
A. Experiments On Real Video Sequences
The developed MMST algorithm is tested by using four real video sequences. The first video is a Torch sequence recorded in home (Figure 3.1) where the object has clearly scale and orientation changes. To show the efficiency of developed MMST algorithm figure (3.1) consists subsequent frames 20, 40, 80. The second video is a palm sequence (Figure 3.2) of 26 frames, where the object has clearly scale and orientation changes, the estimated target scale and orientation by is accurate by the MMST algorithm.
image
image
image
Fig. 3.3: Tracking results of the car sequence by different tracking algorithms. The frames 15, 40, 60 and 75 are displayed.
The last experiment is on a Card reader sequence which is complex because the object is small and having scale and orientation change. The object exhibits large scale changes with partial occlusion. The MMST scheme works much better in estimating the scale and orientation of the target.
image
image
Table 1 lists the average numbers of iterations by different schemes on the four video sequences. The average number of iterations of the developed MMST is approximately equal to that of the original mean shift algorithm with fixed scale. The iteration number of the modified scale algorithm is the highest because it runs mean shift algorithm three times. The main factors which affect the convergence speed of the EM-shift and the MMST algorithms are the computation of the covariance matrix. EM-shift estimates it in each iteration while MMST only estimates it once for each frame. So MMST is faster than EM-shift. In general, the developed MMST algorithm, which is motivated by the CAMSHIFT algorithm [6], extends the mean shift algorithm when the target has large scale and orientation variations. It inherits the simplicity and effectiveness of the original mean shift algorithm while being adaptive to the scale and orientation changes of the target.

CONCLUSIONS

By analyzing the moment features of the weight image of the target candidate region and the Bhattacharyya coefficients, we developed a scale and orientation adaptive mean shift tracking (MMST) algorithm. It can well solve the problem of how to estimate robustly the scale and orientation changes of the target under the mean shift tracking framework.
The weight of a pixel in the candidate region represents its probability of belonging to the target, while the zeroth order moment of the weights image can represent the weighted area of the candidate region. By using the zeroth order moment and the Bhattacharyya coefficient between the target model and the candidate model, a simple and effective method to estimate the target area was proposed. Then a new approach, which is based on the area of the target and the corrected second order center moments, was proposed to adaptively estimate the width, height and orientation changes of the target.
The developed MMST method inherits the merits of mean shift tracking, such as simplicity, efficiency and robustness. Extensive experiments were performed and the results showed that MMST can reliably track the objects with scale and orientation changes, which is difficult to achieve by other state-of-the-art schemes. In the future research, we will focus on how to detect and use the true shape of the target, instead of an ellipse or a rectangle model, for a more robust tracking.

References