• No results found

A foreground detection system for automatic surveillance

N/A
N/A
Protected

Academic year: 2021

Share "A foreground detection system for automatic surveillance"

Copied!
49
0
0

Loading.... (view fulltext now)

Full text

(1)

c

(2)

A FOREGROUND DETECTION SYSTEM FOR AUTOMATIC SURVEILLANCE

BY

MERT DIKMEN

THESIS

Submitted in partial fulfillment of the requirements

for the degree of Master of Science in Electrical and Computer Engineering in the Graduate College of the

University of Illinois at Urbana-Champaign, 2009

Urbana, Illinois

Adviser:

(3)

ABSTRACT

Automated surveillance has long been an application goal of computer vision. An integral part of such surveillance systems is concerned with accurately segmenting foreground objects from the static background in the videos. In this thesis we introduce a novel system for background subtraction, which takes a different approach than the conventional background subtraction sys-tems. We make the assumption that the video background is stationary and the foreground objects take up only a small portion of the entire frame at any given time. This specific assumption allows us to formulate the foreground signal as a sparse additive error introduced to otherwise clean background sig-nal. We outline the algorithm for performing background subtraction using linear programming, and demonstrate accurate segmentations of foreground objects under realistic surveillance scenarios. The proposed method is on par with the state of the art approaches for accurately segmenting the foreground under challenging conditions. Furthermore we propose several methods for building a set of bases to represent the background and provide empirical justification of their effectiveness.

(4)
(5)

ACKNOWLEDGMENTS

This project would not have been possible without the support and guidance of my adviser Professor Thomas S. Huang. I also would like to thank Prof. Yi Ma for fruitful conversations and fellow student Shen-Fu Tsai for discussions and collaboration.

(6)

TABLE OF CONTENTS

LIST OF TABLES . . . vi

LIST OF FIGURES . . . vii

LIST OF ABBREVIATIONS . . . viii

CHAPTER 1 INTRODUCTION . . . 1

1.1 A Brief Introduction to Motion Analysis . . . 1

1.2 The Contribution of This Thesis . . . 4

CHAPTER 2 AN OUTLOOK ON AUTOMATIC SURVEILLANCE . 6 2.1 High Level Applications . . . 7

2.2 Scene Modeling . . . 9

CHAPTER 3 BACKGROUND SUBTRACTION SYSTEM . . . 12

3.1 Foreground Detection as Sparse Error Recovery Problem . . . 12

3.2 Error Recovery using Linear Programming . . . 12

3.3 Subspace Modeling of the Background . . . 16

3.4 The Base Selection . . . 19

3.5 Regional Processing . . . 25

3.6 Incorporating Other Information Modalities . . . 25

3.7 Experiments . . . 26

CHAPTER 4 CONCLUSIONS AND FUTURE WORK . . . 33

REFERENCES . . . 36

(7)

LIST OF TABLES

(8)

LIST OF FIGURES

3.1 Illustration for foreground as l1 error . . . 20

3.2 Robust function . . . 24

3.3 Results on ETISEO Metro sequence . . . 28

3.4 Background subtraction results on UCF outdoor scene. . . 29

3.5 Examples from the A*Star background dataset . . . 30

(9)

LIST OF ABBREVIATIONS

GMM Mixture of Gaussians HVS Human Visual System CCTV Closed Circuit Television

LP Linear Programming

(10)

CHAPTER 1

INTRODUCTION

This thesis provides a novel formulation of a longstanding problem in com-puter vision: segmentation of moving foreground from stationary background in videos. This problem is formally known as background subtraction because the underlying logic is to compute the foreground-free background and then subtract this from the observed frame. Segmenting the foreground is an essential component in many motion analysis applications. The quality of foreground segmentation has a direct impact on the complexity and the even-tual robustness of the targeted platforms. The range of applications where background subtraction is utilized is very diverse. The following section aims to give a brief introduction to motion analysis in computer vision.

1.1

A Brief Introduction to Motion Analysis

Processing of motion information makes up a major pathway in the primate visual system [1]. The visual analysis of motion is of integral importance for understanding events in the nature. Furthermore, in most cases it is the only practical means of realizing certain smart computing applications from very simple ones such as inferring the basic traffic patterns in public high-ways to very complicated ones such as digitizing motion of person’s limbs in any given video sequence (called articulated tracking and referred to as such from here onwards). A typical system for analyzing human motion

(11)

con-Table 1.1: Examples for levels of automatic processing in vision

Low Level Mid Level High Level

Filtering Feature Extraction Semantic Search

Background Subtraction Tracking Automatic Surveillance

Super-resolution Detection Robot Navigation

Denoising

Video Stabilization

sists of several primitive components depending on the type of application, prior assumptions on the camera location and the overall imaging conditions. Each of these components usually acts as an information source to a higher level module. At the highest level are the decision engines. These are gener-ally the designated output nodes of artificial intelligence applications, which make informed decisions based on contextual cues harvested from lower level modules. Examples for low-, mid- and high-level modules in a motion analy-sis setting are listed in Table 1.1. The mid-level primitives frequently utilize foreground segmentation as an important pre-processing step. One of these is tracking, where the goal is to know the location and the displacement of the objects and/or their parts at any given time instance. Another primitive is the detection and recognition of the visual entities (objects, activities etc.) based predominantly on the motion patterns.

Tracking through the visual analysis of motion has numerous advantages to other means of tracking. Without the use of cameras, one either relies on other remote sensing modalities or implanted devices on the tracked objects. One way of remotely sensing the location is with time of flight based devices (e.g., radars, sonars). Time of flight based trackers continuously send out directional signals. If there is an object in the vicinity, the signal will bounce back off its surface and be picked up at the location of origin. Then the distance of the object can be determined based on the time delay between the

(12)

transmission and reception (i.e., time of flight). Consequently the tracking problem can be simplified to associating detected objects over time instances. While such time of flight based devices are the essential means of tracking for objects outside the visual range, they are generally quite indiscriminate in the objects they detect and prone to intrusion (jamming) or cloaking. Another means of tracking is via implanted devices on the tracked objects such as RFID tags or GPS trackers for tracking objects on a coarse level or limb markers in the case of fine, articulated body tracking. Aside from being impractical in many real world scenarios (e.g., tracking people in an airport terminal, tracking limbs of an actor in a movie), implanted devices usually are a big cause for privacy concerns. It is evident that in many applications requiring tracking of entities, tracking via optical sensors will be the ubiquitous method of choice once it can be accomplished in a robust manner.

Detection and recognition make up another avenue in the area of common mid-level primitives. Here the goal is to identify semantically meaningful entities based on the visual cues. In vision research the terms detection and recognition are coined to describe two very similar problems. The main differ-ence is that in detection problems one makes a decision whether the queried entity is present in a specific database, while in recognition the goal is to decide to which of the K pre-defined categories the visual query belongs. In a wide range of applications, the said visual categories could be anything from objects like people to actions such as swimming and stealing. The con-nection between detection and recognition problems can be seen through the following example: a combination of K perfect detection systems for corre-sponding categories would also be a perfect recognition system, or a perfect recognition system in which one of the categories entails “everything else”

(13)

(rejection class) is also a perfect detection system. The human visual system (HVS) is evolved to be attentive for valid reasons. Most of the time it is very easy to distinguish between two objects just based on their motion patterns. A moving person with arms swinging and legs bending exhibits a complex motion pattern, which is very unique and different from anything else in na-ture. Thus in a traffic surveillance setting it is quite feasible to distinguish between pedestrians and vehicles solely based on the motion features.

1.2

The Contribution of This Thesis

Currently there is no panacea to the general foreground segmentation prob-lem that works in every possible scenario encountered in the real world. Furthermore, as will be demonstrated in the following chapter, some aspects of the problem are only well defined within the constraints of the context in which they are posed and may create conflicting goals in an unconstrained general setting (such as the foreground aperture problem). This thesis ad-dresses specifically the foreground segmentation problem, where the camera has a far field perspective. Further, the camera is assumed to be steady with the foreground objects occupying a small region compared to the field of view. The common difficulties tackled are uneven and unforeseen light-ing changes, difficulty of initialization in high traffic environments and pos-sible foreground–background interactions. These difficulties are typical of most surveillance scenarios. Therefore high emphasis will be given to the specifics of surveillance applications and solutions to the common problems seen therein.

The rest of the thesis is structured as follows. The next chapter will discuss visual surveillance and background subtraction in detail, placing this work

(14)

in the general context of research in this area. The technical discussion of the method will start with an introduction to the theory of sparse error recovery using linear programming (LP). Then the problem of background subtraction will be formulated as a sparse error recovery problem, where the error is thought of as the foreground. A discussion of base selection for background modeling will follow. Finally we show and discuss results, as well as propose future research directions.

(15)

CHAPTER 2

AN OUTLOOK ON AUTOMATIC

SURVEILLANCE

Automation of visual surveillance is one of the most popular topics in com-puter vision. The potential applications are of high impact and could provide immediate security benefits to the general population as well as create a new paradigm of noninvasive security measures. Some of the example applica-tions are the survey of high sensitivity locaapplica-tions for potential threats, access control for specific zones, person recognition through noninvasive biomet-rics and inspection of retail spaces for theft as well as consumer behavior. There are several advantages of utilizing automated surveillance systems as assisting tools for security personnel:

• Privacy: The wide prevalence of surveillance cameras in public and private spaces has also raised a debate on the privacy issues due to the fact that people are being constantly monitored by security personnel regardless of their threat potential. Surely these privacy concerns are justified; nonetheless, some areas require constant monitoring simply to ensure the security of the people present. The trade-off between pri-vacy and security is a long debated issue [2]. In this context computer assisted visual surveillance can help alleviate some privacy concerns, if they are deployed as the first level of screening for threats and abnormal behavior.

(16)

operated by several security personnel who continuously monitor the footage on a number of screens in front of them. This is a complicated process which is error prone. A slight distraction of operators can cause important threats to go unnoticed. An automatic surveillance system that is able to identify basic suspicious behavior can assist the operators by drawing their attention to the specific zones where the suspicious activity is taking place.

• Effectiveness: Without a doubt, closed circuit television (CCTV) surveillance systems are being deployed at an increased rate in recent years. The factors that have contributed to the increase include pub-lic coverage of high profile crimes, affordability of the equipment and heightened acceptance and trust of such systems by the general public [3]. There is statistical evidence [4] that deployment of surveillance cameras is an effective tool for reducing crime rates.

Moreover, the benefits are not limited to security related goals. Automated surveillance also has the potential to make immediate impact on the civilian life. Through accurate analysis of crowd behavior, businesses and stores can develop new strategies or adjust their existing ones to better meet the demands of their customer base.

2.1

High Level Applications

A video with mostly static background (i.e., objects in the background do not move unless they are dislocated by foreground interaction) can be viewed as a composition of two distinct layers. The first layer is the background and the second layer is the foreground which partially occludes the background

(17)

layer. The goal of a background subtraction system is to accurately segment the foreground layer.

Robust background subtraction is an essential problem for many surveil-lance systems involving videos with mostly static background. Some highly desirable applications such as object detection or tracking can be significantly simplified or in some cases trivialized with the help of a robust background subtraction component.

Whether on stationary or mobile cameras, most surveillance systems first attempt to model the scene with varying degrees of complexity. Scene mod-eling helps in various ways to reduce the complexity of goals in the system. Background subtraction algorithms, whose purpose is to robustly segment the moving foreground objects from static entities in the scene, are useful for a quick, first pass detection of moving objects in the scene. If a 3D model of the scene geometry is available, the output of the background subtraction can even be used for localizing the objects in terms of the real world mea-surements. In the case of mobile cameras scene geometry modeling is also useful in self-localization of the surveying agent [5]. Dynamic modeling of the scenes is used in segmentation of complex motions [6] as well as stabilization of acquired images [7].

In addition to localization of the objects, background subtraction also pro-vides cues for other means of high level analysis. In articulated tracking of the body parts, the silhouette of foreground objects is often used as a cue by itself [8], or is the necessary information for building more complex de-scriptors of the body shape [9, 10]. Recognition and detection of actions also frequently rely on good background subtraction for building robust features [11], as well as methods which are aimed to model overall characteristics of activity in a surveillance environment [12].

(18)

2.2

Scene Modeling

In this thesis we demonstrate a systematic way of treating background sub-traction as a signal estimation problem. We use recent results from sparse representation theory [13, 14] to provide a general solution. This results in a simple yet robust method for segmenting videos into background and foreground components.

Probably due to its benefits, background subtraction is a long researched topic in the vision community. Much work has been devoted to modeling the variations in the background layer as it is assumed to have quite predictable behavior. Pixels or regions that have largely different characteristics from the background model are marked as foreground. A very simple approach is to model each pixel intensity with a unimodal distribution and classify as fore-ground all pixels whose intensity values have little probability of belonging to the background[15, 16].

The unimodular model cannot be trained with active foreground in the video since it will skew the sufficient statistics. For the same reason, it is also not robust against periodically moving background objects. The nat-ural extension and a very popular background subtraction technique is to use Stauffer and Grimson’s [17] mixture of Gaussians model (GMM). The mixture model based approach has attracted considerable interest in the lit-erature, and has been either improved or utilized on solving higher level prob-lems, by using Bayesian frameworks [18], region based models [19], mean-shift [20] and stereo information [21].

It is inevitable that all foreground objects will create edges. Recent works have concentrated in exploiting this property for overcoming shortcomings of color based modeling. Javed et al. [22] use a hierarchical model of gradient

(19)

and color information to model the background, while Mittal and Paragios [23] have employed motion features, which is useful for filtering periodic motion in the background (e.g., waves in the sea or a shaking tree).

In their excellent study on background subtraction, Toyama et al. [24] pointed out a common shortcoming of the mixture of Gaussians models and other popular methods. A background subtraction algorithm that updates its model too fast using the new information in the scene is susceptible to classifying stationary foreground objects as background. On the other hand if the model update is too slow, sudden changes due to illumination or dis-placement of large background objects will yield gross errors on estimating foreground regions. We believe that under certain conditions, our model is very robust in dealing with the foreground aperture problem. Our approach based on separate subspace modeling of each color channel allows us to deal with large illumination changes that occur rapidly. For object dislocation we define a time frame, for which a stationary object will be classified as background.

This so called foreground aperture problem has been addressed by a few nonparametric density estimation methods in the literature [23, 25, 26]. Due to memory load, nonparametric techniques are usually forced to work on single information modalities, causing them to be unable to distinguish a foreground that is very similar to occluded background in terms of that par-ticular choice of modality.

In this work we assume that shadows belong to the foreground, as it is the widely accepted practice in the community. For a survey of shadow removal techniques please refer to [27].

Our method differs significantly from the aforementioned approaches as we avoid the tedious practice of trying to model the background using parametric

(20)

or nonparametric models. Rather, we rely on an algebraic formulation that mimics the classic problem of decoding with additive error. Even though, as will be demonstrated in Section 3.4, the system can be made more robust with additional modeling of the background, this can be left out to save time, with little impact on performance. Our underlying assumption for this claim is that, at least on a region by region basis, the background of any frame in the video can be reconstructed using other frames in the video. This formulation gives rise to a novel framework for background subtraction. Also worth noting is that different information modalities (e.g., color, gradient, texture) can be trivially combined for robust results.

(21)

CHAPTER 3

BACKGROUND SUBTRACTION SYSTEM

3.1

Foreground Detection as Sparse Error Recovery

Problem

Frames of videos with static background can be viewed as samples of a signal with sparse corruption caused by foreground objects. We cast background subtraction as a signal estimation problem, where the error sparsity is en-forced through minimization of the `1 norm of the difference between the

processed frame and estimated background subspace, as an approximation to the underlying `0norm minimization structure. Our work provides a novel

framework for background subtraction with the added benefit of easy inte-gration of local discriminative information (e.g., gradient, texture, motion field etc.) for improved robustness. We show that the proposed method is able to overcome various difficulties frequently encountered in real applica-tion settings, and is competitive with the state of the art. Furthermore we propose and test practical methods for building dictionaries of background bases, such that the foreground objects can be recovered accurately.

3.2

Error Recovery using Linear Programming

In this section we restate the theory for recovering sparse signals through linear programming (LP), and outline the main connection to the sparse

(22)

representation theory for completeness. Interested readers are referred to [28] for a more rigorous discussion of the theory on recovery of sparse errors. Consider the following linear decoding problem. One would like to recover the input f ∈ Rn from corrupted measurements y ∈ Rm of the form:

y = Af + e∗ (3.1)

In this case, A is an m × n coding matrix with m  n. The columns of A can be imagined as codewords that transform the message vector f into a coded entry in Rm. The corruption vector eis sparse. Here the definition

of sparsity implies that most of the elements in e∗ are zero. Since m > n the coding procedure is redundant. That means if there is no corruption and furthermore if A is of full rank, then the exact recovery of f is trivial. Then the question becomes: Under what conditions can f be recovered from y, and if so how much corruption can be tolerated?

One can construct a matrix F, whose kernel is equal to the the column range of the matrix A, such that F annihilates A on the left (i.e., FA = 0). Coupling this with the fact that the support of the error is sparse the problem can be interpreted as finding a sparse representation for e∗ [28].

˜

y = F(Af + e∗) = Fe∗ (3.2)

Finding e∗ is equivalent to recovering f , since y is an overcomplete rep-resentation produced through a projection by full-ranked A. Given F, it is straightforward to formulate an optimization problem for enforcing sparsity of e∗. One needs to find the vector e with the least number of non-zero elements that satisfies Fe = ˜y, and consequently Fe = Fe∗. This definition implies the following `0 norm minimization procedure with the

(23)

aforemen-tioned equality constraint:

min

e ||e||0, subject to: Fe = ˜y (3.3)

The minimization of the `0 norm in Eq. (3.3) is non convex and requires

combinatorial search over the columns of F. Therefore a relaxation is neces-sary in order to make the problem tractable. It was suggested to approximate the `0norm by minimizing the `1 norm instead, which is the smallest `p norm

that is convex.

min

e ||e||1, subject to: Fe = ˜y (3.4)

Through introduction of a dummy vector variable u, the `1 minimization

procedure can be rewritten as a linear program. The domain of the problem is e ∈ Rm and u ∈ Rm

+. The solution to Eq. (3.5) can be efficiently computed

using one of the well researched linear program solvers.

min u,e m X i=1 ui (3.5) subject to: Fe ≤ u −Fe ≤ u

The question becomes when the solutions to the problems in Eq. (3.3) and Eq. (3.5) are equivalent. Donoho has stated in his groundbreaking works [29, 30] that: When there exists any sufficiently sparse near-solution, the near-solution with minimal `1 norm is a good approximation to it.

The result establishes a direct link between the theory of sparse represen-tation and some realistic engineering problems. Consequently, the theory of

(24)

representing signals by sparse set of bases has recently drawn interest from the research community, where several successful applications such as face recognition under occlusion [31], image separation [32], image coding [33], im-age denoising [34], and finally signal classification by adding a term enforcing sparsity in the cost function of LDA [35].

Notice that sparse representation formulation is not a direct solution to the decoding problem. It is rather a dual formulation, which requires the knowledge of F. Although one can construct such F with the knowledge of A, it is more desirable to find the solution directly. Fortunately, Candes and Tao [28] have demonstrated a direct method for recovering the original signal f .

The equality constraint in Eq. (3.4) implies that the solution has to satisfy x = e∗− Ah for some h. This allows us to write Eq. (3.4) in the domain of A.

min

h∈Rn||x||1 (3.6)

subject to: x = e∗− Ah

This means that any perturbation to e∗, as long as it is in the range space of A, shall yield the same solution as in Eq. (3.6). Specifically:

min

h+k∈Rn||x||1 (3.7)

subject to: x = e∗− Ah − Ak

(25)

range space of A. We can construct a vector g = h + f such that the signal itself is contained in the cost function. That in turn yields the following formulation:

min

h∈Rn||x||1 (3.8)

subject to: x = e∗− Ah = e∗+ Af − Ag = y − Ag

which is equivalent to:

min

g∈Rn||y − Ag||1 (3.9)

3.3

Subspace Modeling of the Background

We begin by setting up the algebraic notation for the rest of the chapter. Let y{t,k} be the vector of pixel values for the color channel k of the frame y at

time t.

Following the theory outlined in the previous section we formulate back-ground subtraction as a sparse error recovery problem. We assume that each color channel in the video can be independently modeled as the linear combi-nation of the same color channel from other frames. By finding appropriate scalings for each color channel separately, we can accurately compensate for global changes in the illumination sources without altering the general structure of the frame composition, a frequently encountered problem in real settings (e.g., the sky becomes overcast or camera applies automatic white balance correction).

(26)

γ{t,k} layers.

y{t,k} = β{t,k}+ γ{t,k} (3.10)

where β{t,k} is generated by a coding matrix Ak:

β{t,k}= Akx (3.11)

We will introduce several systematic ways for constructing the coding ma-trix Ak in Section 3.4. One of these ways is to let the columns of the matrix

Ak simply be other frames in the same video sequence. Thus, the matrix

Ak would be a collection of the same color channel information from other

frames in the video. Here we make the assumption that the true background lies in the range of Ak, and any reconstruction error is due to corruption by

foreground. We believe this assumption is reasonable for two reasons. The structural background information (e.g., uniform color regions and region boundaries) will be present in most of the frames in Ak. Furthermore for a

reasonable amount of traffic in the video, the probability that the foreground object will occupy a region with very similar shape and very similar color information to the current frame’s foreground is quite low. For very crowded scenes the second assumption may become invalid. However, we overcome this difficulty by region by region processing (Section 3.5) and utilizing mul-tiple information sources such as image gradient (see Section 3.6). For the rest of this section assume that Ak is constructed in the following manner:

Ak=y{ϕ(1),k}, y{ϕ(2),k}, . . . , y{ϕ(n),k}



(3.12) where ϕ(i) is a selector function, which selects a subset of available frame indices from the video. In practice we let ϕ(i) be a discrete linear function in

(27)

time, which selects equally spaced past frames that are at least a pre-specified amount of time (t0) prior to the current frame.

Substituting the new expression for background into Eq. (3.10), we obtain:

y{t,k}= Akx + γ{t,k} (3.13)

Thus we express the foreground as the error between the current frame and the linear approximation.

γ{t,k}= Akx − y{t,k} (3.14)

Sparse error assumption naturally gives rise to an `0 norm minimization

of the subspace reconstruction of the current frame, where each erroneous component contributes a uniform penalty.

min

x ||Akx − y{t,k}||0 (3.15)

Aside from being an NP-hard problem, the cost function in Eq. (3.15) is unrealistic because, in addition to the sparse foreground corruption, there is widespread small amplitude noise due to imaging and compression artifacts. Approximation by the `1 norm is reasonable and can be solved efficiently via

linear programming. In our implementation we use the conjugate gradient method provided by [28] for memory efficiency since the matrix Ak is by

nature quite large.

min

x ||γ{t,k}||1 (3.16)

subject to:

Akx − y{t,k}≤ γ{t,k}

(28)

3.4

The Base Selection

It is immediately apparent that the proposed method is highly dependent on the robustness of the dictionary Ak. Consider the case where one of the

bases in the dictionary contains exactly the same foreground object at the exact same location in the frame. In this case there is no hope of recover-ing the fore-ground object in the current frame, because it will be perfectly reconstructed by the particular base. In real settings this case is highly im-probable; however, similar effects can be observed in the crowded scenes. In this section we introduce several alternatives for building robust dictionaries.

3.4.1

Using other frames as bases

Selection of frames to be included in the coding matrix Akis directly related

to the foreground aperture problem [24]. Selecting frames too close in time from the processed frame will cause relatively stationary foreground regions to be included in the possible reconstructions of the background. However selecting frames too far in time will cause other structural changes in back-ground (e.g., displaced chair) to be registered as false foreback-ground regions for a long time. Without utilizing higher level interpretation of the actions in the frame, the two problems present conflicting requirements. We use the following rule for definition of background object, which should provide a reasonable low level solution that is application dependent:

An object is part of the background if it has been stationary for P frames.

As we have mentioned, the definition of P is highly application dependent. For airport terminal surveillance one would set P to be very long because the

(29)

cost of rendering an abandoned luggage as background is very high. However for traffic surveillance a smaller P is preferred since there is very little value in labeling a parked car, or a parking spot that has just been freed by a car as part of the foreground.

Another point of consideration is the causality. Including future frames can improve the adaptation performance of the system tremendously. The decisive trade-off is a lag by P frames in order to avoid classifying stationary foreground objects as background.

A simplified visualization of using actual frames as bases is shown in Figure 3.1. The `1 error is equal to the radius of the smallest `1-ball, which is

centered at a point in the subspace spanned by other frames of the video and touches the observed frame on one of the vertices.

Figure 3.1: Geometric interpretation of the foreground estimation process. The `1 ball centered around the current frame is extended until it comes

into contact with the subspace spanned by other frames in the video. The difference vector gives us the foreground.

(30)

3.4.2

k-SVD

The first method considered is the k-SVD algorithm [36], which is aimed at finding a dictionary which yields a sparse representation of the data items. The cost function of k-SVD is:

min

A,X||Y − AX||F, subject to: ||xi||0 ≤ c ∀i (3.17)

Unlike k-Means [37], columns xi of the matrix X can have more than a single

nonzero component provided that they are sparse. Authors of [36] devised an iterative procedure for resolving bases A and coefficients X in an alternating fashion. The algorithm can be outlined as follows:

• Initialize the dictionary A ∈ RM xK

• Repeat until convergence:

1. Finding sparse coefficients (solve for all xi):

min

xi

||yi− Axi||22, subject to: ||xi||0 ≤ c

2. Updating the dictionary: For k = 1, 2, . . . , K

– Find the samples that use ak for reconstruction:

(31)

– Calculate the residual error without the base ak:

Ek= Y −

X

j6=k

ajxj

where xj denotes the j’th row of X, essentially building an at

most rank K − 1 approximation to Y . – Create submatrix ER

k by only taking the columns ei i ∈ ωk

– Apply SVD to ER

k = U∆V

T. Update a

k and X with the best

rank 1 approximation to ER k:

ak = u1, xkR= ∆(1, 1)v1

We adapt our foreground separation algorithm to work with the sparse dictionary produced by the k-SVD framework. Following the trick in [31] we append the dictionary with an (N × N ) diagonal matrix consisting of all possible elementary bases ˜A =A, IN ×N and modify the dictionary of our algorithm. Also worth noting is that, due to memory and processing time limitations, the `0 solution is found using orthogonal matching pursuit [38]

instead of solving the `1 norm minimization problem using linear

program-ming (OMP).

The outline of the orthogonal matching pursuit algorithm is as follows: 1. Initialize the variables:

• the residual: r0 = y

• set of selected indices: Λ0 = ∅

• iteration counter: t = 1 2. λt = argmax

j

(32)

3. Λt = Λ(t−1)∪ {λt}, and define ˜A(t) to be the matrix with columns of A indexed by Λt. 4. Solve: xt= argmin x k ˜A(t)x − yk 2

5. The new approximation to y, at this iteration, is ht = ˜A(t)x.

6. And the residual for the next iteration: rt = y − ht.

7. Increment t and repeat for a pre-set number of iterations.

At the end of the OMP procedure, we obtain the indexes of columns ˜A that are used for reconstructing the frame y in a least squares manner and the corresponding weights of these columns. The weights of the columns, which correspond to the columns of an (N × N ) identity matrix, yield the reconstruction error due to additive foreground containment. We threshold these weights to obtain the foreground.

3.4.3

Robust PCA

The second method considered is the Robust-PCA method of De La Torre and Black [39]. To find the principal components of the data, it proposes the following error function to dampen the outlier amplifying property of the `2

penalty: n X i=1 d X p=1 ρ(ypi− µp− k X j=1 apjxji,σp) (3.18)

The robust function given by ρ(q, σ) = q2q2 2 has quadratic penalty for

small errors, and near constant penalty error for large values of q. The behavior is controlled by parameter σ (Figure 3.2).

(33)

Figure 3.2: Comparison of robust penalty vs. `2 penalty.

In our integration of Robust-PCA for background modeling, we first di-rectly learn the background subspace and then perform the original method in [40], with the slight change that the dictionary A is the bases found using Robust-PCA. The original Robust-PCA paper proposes a least squares so-lution for foreground detection. We also include this method for comparison in our experiments.

3.4.4

Running median

We have also implemented a simple approach to modeling background with a simple median window of length K in time at each pixel location. The intuition is that the median is more robust to pixel value changes than the simple mean, which can be skewed by arbitrarily large errors of pixel val-ues. Thus several background bases are formed using the running median approach by placing the sampling window at different locations in time and taking the median RGB value of each pixel with respect to T frames around

(34)

this location. The background bases are formally:

aj(i) = median(y¯j(i)), (3.19)

¯

j ∈ {φ(j), φ(j) + 1, . . . , φ(j) + K}

3.5

Regional Processing

A key requirement for the background subtraction systems to be usable is that they can be initialized on the fly. However, in most realistic surveillance environments, it is impossible to find clean frames that are free of foreground objects. This means that it is almost guaranteed that the bases included in Akwill contain partial foreground. So we know a priori that the background

cannot be accurately reconstructed using a holistic Ak. But while there is a

good chance that no frame in the video is free of foreground, there is a very high probability that smaller regions of the frame are frequently completely foreground free. Therefore we avoid the problem of foreground containment in Akby segmenting the frame into a predetermined L regions and performing

background subtraction on each region individually.

3.6

Incorporating Other Information Modalities

Up to this point we have only discussed using color information to perform foreground estimation. However, experience has shown that pixel-wise color comparison is not enough to produce accurate results. Our framework al-lows easy integration of other information modalities to assist with accurate estimation of foreground pixel positions. Here we utilize color gradient

(35)

in-formation in addition to color to obtain more accurate results. The frame descriptor vectors, and consequently the coding matrix A, are extended by concatenating vectorized row and column derivatives of each color channel to the frame descriptors. ∇ry{t,k} and ∇cy{t,k}will denote the vectors of row

and column derivatives of the frame’s color channels, respectively. (In our implementation we have used {-1, 0, 1} filters for estimating the derivatives. One is free to use more advanced and noise resistant gradient operators.)

The new frame descriptor ˆy{t,k} is:

ˆ

y{t,k} = α1yT{t,k}, α2∇Try{t,k}, α3∇Tcy{t,k}

T

(3.20) The weights αi define the relative importance of information modalities.

X

i

αi = 1 (3.21)

Similarly ˆAk is now a composition of new image descriptor vectors.

ˆ

Ak =ˆy{ϕ(1),k}, ˆy{ϕ(2),k}, . . . , ˆy{ϕ(n),k}



(3.22)

3.7

Experiments

We first demonstrate results on our baseline system, which uses other frames in the video as bases in Ak (see Algorithm 1). We have tested this system

extensively on surveillance type data provided by ETISEO Video Under-standing Evaluation [41], and sample surveillance data from UCF [22]. All frames were resized such that their width is less than 300 pixels. For each video sequence, we assumed a noncausal system architecture, and uniformly

(36)

Algorithm 1 Background Subtraction Set: T := Number of frames

Set: N := 20 (Number of bases)

Set: P := 210 (foreground sleep threshold ≈ 7 seconds) for t = 1 to T do Pick bases: for i = 1 to N − 1 do ϕ(i) = ceil(i · (t−P )N −1) end for ϕ(N ) := t + P for region R = 1 to L do A(pixel)k =hy(R){ϕ(1),k}, . . . , y{ϕ(N ),k}(R) i A∇r k = h ∇ry(R){ϕ(1),k}, . . . , ∇ry(R){ϕ(N ),k} i A∇c k = h ∇cy (R) {ϕ(1),k}, . . . , ∇cy (R) {ϕ(N ),k} i Ak=    α1Apixelk α2A (∇r) k α3A (∇c) k    ˆ y{t,k}= h α1y (R)T {t,k}, α2∇Try (R) {t,k}, α3∇Tcy (R) {t,k} iT Solve: ˜x = arg min

x ||Akx − ˆy{t,k}||1 f oreground(R) = X k∈{R,G,B} α1|A(pixel)k · ˜x − y(R){t,k}| + α2|A (∇r) k · ˜x − y (R) {t,k}| + α3|A (∇c) k · ˜x − y (R) {t,k}| end for end for

(37)

sampled 20 frames from the past frames. The sleeping foreground tolerance (P ) was set to 100 frames (about 4 s). Note that in real surveillance scenarios this time should be significantly longer, but due to time limitations on the length of the sequences we settled for a small P . Regional processing was utilized through dividing each frame to 4 equal rectangular regions and com-puting the foreground for each of them separately. Figure 3.3 shows sample frames from our algorithms results on ETISEO Metro sequence.

Figure 3.3: Background subtraction results on ETISEO Metro sequence. (a) Original frames, (b) foreground regions. The algorithm was run with no initialization. The loitering person and the abandoned bag are both classi-fied as foreground over the sequence, confirming robustness of our method against foreground aperture problem. Boundaries of the foreground objects are precisely recovered

(38)

We also compared our algorithm to Javed et al.’s hierarchical background subtraction algorithm [22], where gradient and color cues are hierarchically combined to classify foreground, and to the widely used mixture of Gaus-sians [17], on the challenging video sequence with rapidly changing ground illumination (video courtesy of UCF Vision Lab). While accurately coping with rapid change in background color composition, our algorithm provides better defined object boundaries (Figure 3.4).

Figure 3.4: Background subtraction results on UCF outdoor scene. (a) orig-inal sequence, (b) mixture of Gaussians, (c) hierarchical subtraction, (d) our approach.

For quantifying the performance of each dictionary building approach, a test set with ground truth is necessary. We use the dataset of A*Star of Sin-gapore [42], which contains nine short video sequences with different imaging conditions and scenes. These nine sequences all have hand-labeled ground truth on 10 respective frames showing the foreground mask. Samples of the

(39)

ground truth data can be seen in Figure 3.5.

Figure 3.5: Examples from the A*Star background dataset (frames and their respective ground truths).

We train and run the algorithms on 8 of the 9 video sequences and compare the results to the ground truth. One sequence had to be excluded because the ground truth frames were at the beginning of the video sequence, thus not allowing enough diversity in the training data. For quantifying the results we use the well-known receiver operating characteristic curves for comparing the algorithms, and plot the rate of true foreground detections vs. false foreground positives.

TruePositives = |{F oreground} ∩ {GroundtruthF oreground}|

|{GroundtruthF oreground}| (3.23) FalsePositives = |{F oreground} ∩ {GrountruthBackground}|

(40)

The true positive and false positive rates are calculated for each sequence individually and then averaged over all sequences. An alternative would be to treat all video sequences as a big entity and compute the true positive and false positive rates over the union of ground truth for this entire set. However, different videos have different motion characteristics with different foreground/background ratios; therefore, evaluating the results over all video sequences is, we believe, a more reasonable approach. To obtain the operating points on the ROC curves, for each algorithm we threshold the foreground magnitude. It must be noted that at this point we do not perform any morphological operations for denoising the end results. This means that the false positive rate on the ROC plot reflects the raw false positive rate, and this rate can be improved by simple post processing operations. Clearly foreground objects will create foreground pixels that are clustered together. Thus using operations such as erosion, dilation and median filtering can be utilized to fill in the gaps in foreground objects as well as clean isolated pixels that are falsely detected as foreground pixels.

From the results (Figure 3.6) it can be observed that the robust methods comfortably outperform the baseline approach of modeling the pixels with a Gaussian density. The best performer is the Robust-PCA combined with `1 minimization procedure. Dictionary building via simple median filtering

is also a simple yet effective alternative to Robust-PCA, while being 2-3 times faster in the dictionary building stage. The difference between Robust-PCA and least squares estimation is very small in some videos but quite significant in other videos, especially when there is crowd motion. k-SVD + OMP procedure seems to break down more frequently, probably because of the lower breakdown point of the OMP. It must also be noted that k-SVD finds a sparse representation of the background. However our goal is

(41)

to find the sparse foreground. As the experiments demonstrate, the original method with simple dictionary building, while being the fastest method after Gaussian modeling, is below the other curves in performance. This confirms our initial observation that crowded scenes in the dictionary could affect the segmentation of foreground regions at the detection stage.

0 0.05 0.1 0.15 0.2 0.25 0.3 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 false positives

true positives Gaussian

Simple L1 Median RPCA−L1 RPCA−LS K−SVD + OMP

(42)

CHAPTER 4

CONCLUSIONS AND FUTURE WORK

Our method takes a signal decoding perspective, which gives us a nice frame-work to incorporate many of the useful ideas from which previous frame-works on background subtraction have benefited, under a single linear optimization problem. It is useful to recognize key advantages of our method.

Directly optimizing for the error that is sparse lets us employ regional information to make pixel-wise decisions, which in turn yields precise and well defined object boundaries. Our approach to background subtraction is therefore a good match for certain trackers and object detectors which can work directly on background subtracted data.

Another key advantage is that our method is quite forgiving on changes that are coherent with the past in terms of background structure; this is due to the fact that we express the background in the current frame as a linear combination of other frames in the video. This yields an approximate sub-space, where the current background is assumed to have come from. Note that while the previous works have been relatively effective in coping with sudden global illumination changes, they still require a certain amount of gradualness in the illumination change rather than a change that is com-pletely unforeseen, because eventually they rely on learned models for the magnitude of the color (and consequently edge) components, and the respec-tive systems are only as fast as their model’s ability to react to the change in the environment. We believe that our subspace approach combined with

(43)

separate modeling of each color channel is more robust against sudden and unforeseen lighting variations because there is no explicit bound on the mag-nitudes of the background bases as long as they produce structurally coherent results with the current composition.

We have also introduced robust methods for building the background dic-tionary, which are more forgiving to practical challenges such as foreground containment in training frames. This, however, comes with a nontrivial com-putational cost, which must be factored in according to the application re-quirements.

Finally, we have introduced an easy way to incorporate different cues for foreground segmentation, by which the most useful cues can be utilized based on the challenges of the target application. As of now our information fusion strategy is static, with weights set at the initialization. In the future we would like to devise a dynamical way of adjusting feature priorities in order to cope with scenarios that present challenges that vary over time.

One of the future challenges is to bring the computational cost of the sys-tem down. The main bottleneck of the algorithm is the linear programming step used for optimizing the `1 cost function. However, the theory of sparse

representation is a rapidly growing field producing alternative methods to the well known algorithms such as basis pursuit and orthogonal matching pur-suit. These alternatives can provide substantial improvement to the overall algorithm both in terms of speed and accuracy.

Another challenge worth pursuing is generalizing the field of application of the algorithm from static cameras to slow moving cameras. With sufficiently weak assumptions, which should apply to many far- to mid-field views of surveillance cameras, the displacement of the static background due to the ego-motion of the camera can be modeled with an affine transformation.

(44)

Incorporating this kind of transformation into the optimization framework can pave the way for generalizing the algorithm to subtract background from moving cameras.

Lastly, improving overall accuracy of the system remains another intriguing challenge. While we recognize that our system is quite good at accurately segmenting foreground objects, this performance is achieved by making no assumptions on the shape of the foreground objects. Forcing the foreground pixels to be in connected clusters will definitely yield algorithms more robust to random sensor noise as well as dynamic textures and foreground subjects with clothing similar in color to the background.

(45)

REFERENCES

[1] S. Zeki, J. Watson, C. Lueck, K. Friston, C. Kennard, and R. Frack-owiak, “A direct demonstration of functional specialization in human visual cortex,” Journal of Neuroscience, vol. 11, no. 3, pp. 641–649, 1991.

[2] K. Bowyer, “Face recognition technology: Security versus privacy,” IEEE Technology and Society Magazine, vol. 23, no. 1, pp. 9–19, Spring 2004.

[3] M. Nieto, “Public video surveillance: Is it an effective crime prevention tool,” 1997, California Research Bureau. [Online]. Available: http://www. library. ca. gov/CRB/97/05

[4] B. C. Welsh and D. P. Farrington, “Effects of closed-circuit television on crime,” The ANNALS of the American Academy of Political and Social Science, vol. 587, no. 1, pp. 110–135, May 2003.

[5] H. Morita, M. Hild, J. Miura, and Y. Shirai, “Panoramic view-based navigation in outdoor environments based on support vector learning,” in IEEE/RSJ International Conference on Intelligent Robots and Sys-tems, Oct. 2006, pp. 2302–2307.

[6] J. Shi and J. Malik, “Motion segmentation and tracking using normal-ized cuts,” Sixth International Conference on Computer Vision 1998, pp. 1154–1160, Jan. 1998.

[7] M. Irani, B. Rousso, and S. Peleg, “Recovery of ego-motion using im-age stabilization,” IEEE Conference on Computer Vision and Pattern Recognition, pp. 454–460, June 1994.

[8] A. Yilmaz, X. Li, and M. Shah, “Contour-based object tracking with oc-clusion handling in video acquired using mobile cameras,” IEEE Trans-actions on Pattern Analysis and Machine Intelligence, vol. 26, no. 11, pp. 1531–1536, 2004.

[9] P. Fieguth and D. Terzopoulos, “Color-based tracking of heads and other mobile objects at video frame rates,” in IEEE Conference on Computer

(46)

Vision and Pattern Recognition. Washington, DC, USA: IEEE Com-puter Society, 1997, p. 21.

[10] A. Ali and J. Aggarwal, “Segmentation and recognition of continuous human activity,” in IEEE Workshop on Detection and Recognition of Events in Video, 2001, pp. 28–35.

[11] J. Davis and A. Bobick, “The representation and recognition of action using temporal templates,” in IEEE Conference on Computer Vision and Pattern Recognition, 1997, pp. 928–934.

[12] D. Makris and T. Ellis, “Learning semantic scene models from observing activity in visual surveillance,” IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, vol. 35, no. 3, pp. 397–408, 2005. [13] D. Donoho and X. Huo, “Uncertainty principles and ideal atomic decom-position,” IEEE Transactions on Information Theory, vol. 47, no. 7, pp. 2845–2862, Nov. 2001.

[14] E. Candes and T. Tao, “Near-optimal signal recovery from random pro-jections: Universal encoding strategies?” IEEE Transactions on Infor-mation Theory, vol. 52, no. 12, pp. 5406–5425, Dec. 2006.

[15] C. Wren, A. Azarbayejani, T. Darrell, and A. Pentland, “Pfinder: real-time tracking of the human body,” IEEE Transactions on Pattern Anal-ysis and Machine Intelligence, vol. 19, no. 7, pp. 780–785, Jul 1997. [16] T. Horprasert, D. Harwood, and L. S. Davis, “A statistical approach

for real-time robust background subtraction and shadow detection,” in IEEE ICCV99 Frame-Rate Workshop, Sept. 1999, pp. 1–19.

[17] C. Stauffer and W. Grimson, “Adaptive background mixture models for real-time tracking,” in IEEE Conference on Computer Vision and Pattern Recognition, vol. 2, 1999, pp. 245–252.

[18] D.-S. Lee, J. Hull, and B. Erol, “A Bayesian framework for Gaussian mixture background modeling,” in IEEE International Conference on Image Processing, vol. 3, Sept. 2003, pp. 973–6.

[19] M. Cristani, M. Bicego, and V. Murino, “Integrated region- and pixel-based approach to background modelling,” in Workshop on Motion and Video Computing, 2002, Dec. 2002, pp. 3–8.

[20] F. Porikli and O. Tuzel, “Human body tracking by adaptive background models and mean-shift analysis,” Mitsubishi Electric Research Labora-tory, Tech. Rep. TR-2003-36, 2003.

(47)

[21] M. Harville, “A framework for high-level feedback to adaptive, per-pixel, mixture-of-Gaussian background models,” in 7th European Conference on Computer Vision, vol. 3, London, UK, 2002, pp. 543–560.

[22] O. Javed, K. Shafique, and M. Shah, “A hierarchical approach to robust background subtraction using color and gradient information,” IEEE Workshop on Motion and Video Computing, vol. 75, p. 22, 2002. [23] A. Mittal and N. Paragios, “Motion-based background subtraction using

adaptive kernel density estimation,” in IEEE Conference on Computer Vision and Pattern Recognition, vol. 2, June 2004, pp. 302–309.

[24] K. Toyama, J. Krumm, B. Brumitt, and B. Meyers, “Wallflower: Prin-ciples and practice of background maintenance,” IEEE International Conference on Computer Vision, vol. 1, p. 255, 1999.

[25] A. M. Elgammal, D. Harwood, and L. S. Davis, “Non-parametric model for background subtraction,” in 6th European Conference on Computer Vision, vol. 2, 2000, pp. 751–767.

[26] K. Kim, T. H. Chalidabhongse, D. Harwood, and L. Davis, “Real-time foreground-background segmentation using codebook model,” Real-Time Imaging: Special Issue on Video Object Processing, vol. 11, no. 3, pp. 172–185, 2005.

[27] A. Prati, R. Cucchiara, I. Mikic, and M. Trivedi, “Analysis and detec-tion of shadows in video streams: a comparative evaluadetec-tion,” in IEEE Conference Computer Vision and Pattern Recognition, vol. 2, 2001, pp. 571–576.

[28] E. Candes and T. Tao, “Decoding by linear programming,” IEEE Trans-actions on Information Theory, vol. 51, no. 12, pp. 4203–4215, 2005. [29] D. Donoho, “For most large underdetermined systems of linear equations

the minimal `1-norm solution is also the sparsest solution,”

Communi-cations on Pure and Applied Mathematics, vol. 59, no. 6, pp. 797–829, 2006.

[30] D. Donoho, “For most large underdetermined systems of equations, the minimal `1-norm near-solution approximates the sparsest near-solution,”

Communications on Pure and Applied Mathematics, vol. 59, no. 7, pp. 907–934, 2006.

[31] J. Wright, A. Yang, A. Ganesh, S. Sastry, and Y. Ma, “Robust face recognition via sparse representation,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 31, no. 2, pp. 210–227, Feb. 2009.

(48)

[32] J. Starck, M. Elad, and D. Donoho, “Image decomposition via the com-bination of sparse representations and a variational approach,” IEEE Transactions on Image Processing, vol. 14, no. 10, pp. 1570–1582, 2005. [33] B. Olshausen, P. Sallee, and M. Lewicki, “Learning sparse image codes using a wavelet pyramid architecture,” Advances in Neural Information Processing Systems, pp. 887–893, 2001.

[34] M. Elad and M. Aharon, “Image denoising via sparse and redundant representations over learned dictionaries,” IEEE Transactions on Image Processing, vol. 15, no. 12, pp. 3736–3745, Dec. 2006.

[35] K. Huang and S. Aviyente, “Sparse representation for signal classifica-tion,” Advances in Neural Information Processing Systems, vol. 19, pp. 609–617, 2007.

[36] M. Aharon, M. Elad, and A. Bruckstein, “K-SVD: Design of dictionaries for sparse representation,” in Proceedings of SPARS05, 2005, pp. 9–12. [37] S. Lloyd, “Least squares quantization in PCM,” IEEE Transactions on

Information Theory, vol. 28, no. 2, pp. 129–137, Mar. 1982.

[38] J. Tropp and A. Gilbert, “Signal recovery from random measurements via orthogonal matching pursuit,” IEEE Transactions on Information Theory, vol. 53, no. 12, pp. 4655–4666, Dec. 2007.

[39] F. De La Torre and M. J. Black, “A framework for robust subspace learning,” International Journal of Computer Vision, vol. 54, pp. 117– 142, 2003.

[40] M. Dikmen and T. Huang, “Robust estimation of foreground in surveil-lance videos by sparse error estimation,” in 19th International Confer-ence on Pattern Recognition, Dec. 2008, pp. 1–4.

[41] A. T. Nghiem, F. Bremond, M. Thonnat, and V. Valentin, “ETISEO, performance evaluation for video surveillance systems,” in IEEE Con-ference on Advanced Video and Signal Based Surveillance, 2007, pp. 476–481.

[42] L. Li, W. Huang, I. Y.-H. Gu, and Q. Tian, “Statistical modeling of com-plex backgrounds for foreground object detection,” IEEE Transactions on Image Processing, vol. 13, no. 11, pp. 1459–1472, Nov. 2004.

(49)

AUTHOR’S BIOGRAPHY

Mert Dikmen was born in Palo Alto, CA, USA in 1981. He received his bachelor’s degree in electrical engineering with a minor in mathematics, in 2005 from the University of Illinois at Urbana-Champaign (UIUC). From 2005 he has held research assistant positions at UIUC, as well as visiting researcher and summer intern positions at Siemens Medical Systems.

References

Related documents

Here the new method for the moving object detection based on background subtraction is defined by establishing a reliable background updating model which uses a dynamic

paper ID 212201450 International Journal of Research in Advent Technology, Vol 2, No 12, December2014 E ISSN 2321 9637 114 A Survey of Automatic Surveillance Systems for Detection of

Paragios, “Fast illumina- tioninvariant background subtraction using two views: error analysis, sensor placement and applications,” in Proceedings of the IEEE Computer

It combines many existing methods like background subtraction, kalman filter, 2-linesalgorithm,headlight detection, license plate detection algorithm The proposed system implements

The proposed system consists of three processing steps: (i) Object extraction, involving a new background subtraction algorithm based on combination of periodic background

We have presented a new background subtraction Technique just to extract foreground objects in a wide range of environmental conditions. Our new technique was

[2] Suresh.D.S, Lavanya.M.P, “Motion Detection and Tracking using Background Subtraction and Consecutive Frames Difference Method”, International Journal of

We use the dominant motion model to calculate both the background and foreground motion in a robust estimation framework and then combine it with the result of static segmentation