http://www.ee.unlv.edu/~b1morris/ecg782/
Adaptive Background Mixture Models for Real-Time Tracking Chris - - PowerPoint PPT Presentation
Adaptive Background Mixture Models for Real-Time Tracking Chris - - PowerPoint PPT Presentation
Adaptive Background Mixture Models for Real-Time Tracking Chris Stauffer and W.E.L Grimson CVPR 1998 Brendan Morris http://www.ee.unlv.edu/~b1morris/ecg782/ 2 Motivation Video monitoring and surveillance is a challenging task Must
Motivation
- Video monitoring and surveillance is a
challenging task
- Must deal with
β« Cluttered areas, shadows, occlusions, lighting changes, moving elements in scene, slow moving
- bjects, objects (dis)appear
2
Standard Practice
- Use of adaptive background model
β« πΆ π¦, π§, π’ = 1 β π½ πΆ π¦, π§, π’ β 1 + π½π½ π¦, π§, π’
ο π½ β is the learning rate
- Strengths: simple and effective of scenes with mostly
background and constantly moving objects
- Other techniques try to model the background pixels
statistically but cannot deal with bimodal background
β« Kalman filter to track pixel value and has automatic threshold β« Gaussian distribution for each pixel used to classify as a background or not
3
Standard Limitations
- Weakness: Poor performance
for many slow moving objects, recovers slowly, and uses a single threshold for the entire scene
- Example of a rainy day
β« Pixel intensity values over 16 frames (rain occurs halfway through)
ο 139,140,141,141,138,140,140,139 ,240,241,243,244,180,141,140,1 42
β« Model as two different distributions
4 π2 = 196.37, π2 = 50.43 π1 = 139.75, π1 = 1.22
Contributions
- Develop a computationally efficient background
modeling technique
- Pixel intensity distribution modeled using a
mixture of Gaussians
β« Able to model arbitrary distributions (e.g. bimodal)
- Designed an online approximation for
computationally efficient update of model
5
Background Distribution
- Single Gaussian distribution is
insufficient for real scenes
- ver long periods
β« Mean background assumes a single distribution with the threshold a variance parameter
- Many scenarios with multiple
values for a pixel
6
Kyungnam Kim, Thanarat H. Chalidabhongse, David Harwood, Larry Davis, Real-time foregroundβbackground segmentation using codebook model, Real-Time Imaging, Volume 11, Issue 3, June 2005, Pages 172-185
Robust Background Subtraction
- Should handle:
β« Lighting changes
ο Adaptive
β« Repetitive motion from clutter
ο Multimodal distribution
β« Long term scene changes
ο Multi-threshold 7 RG plots of a single pixel Differing threshold
- ver time
Bimodal distribution
- ver time
Algorithm Overview
- Pixel value is modeled as a mixture of adaptive
Gaussian distributions
β« Why a mixture?
ο Multiple surfaces appear in a pixel (mean background assumes a single pixel distribution)
β« Why adaptive?
ο Lighting conditions change
- Gaussians are evaluated to determine which
- nes are most likely to correspond to the
background
β« Based on persistence and variance
- Pixels that do not match the background
Gaussians are classified as foreground
8
Online Mixture Model
- History of a pixel is known up to current time π’
β« π1, β¦ , ππ’ = π½ π¦π, π§π, π : 1 β€ π β€ π’
- Model the history as a mixture of πΏ Gaussian
distributions
β« π ππ’ = π₯π,π’πͺ(ππ’|π£π,π’, Ξ£π,π’)
πΏ π=1
ο π₯π,π’ - prior probability (weight) of Gaussians π
β« Able to represent arbitrary distributions
- Gaussian distribution
β« Univariate β« Multivariate
9
Mixture Model Example
- For a grayscale image with πΏ = 5
β« Pixel intensity distribution (over time) modeled with five Gaussians
10
Model Adaption I
- Online K-means approximation is used to
update the Gaussians
β« Enables fast and efficient model parameter estimation
- Each pixel is compared with its distribution
model
β« New pixel ππ’+1 is compared with each of the existing πΏ Gaussians until a match is found β« Match is defined as a pixel value within 2.5π standard deviations of a distribution
11
Model Adaption II
- Match found:
- Update parameters
β« ππ,π’+1 = 1 β π ππ,π’ + πππ’+1 β« ππ,π’+1
2
= 1 β π ππ,π’
2 + π ππ’+1 β ππ,π’ 2
ο π = π½πͺ Xt+1 ππ,π’, ππ,π’
2
ο π½ β is a learning rate
- Update Gaussian weights
β« π₯π,π’+1 = 1 β π½ π₯π,π’ + π½ ππ,π’+1
ο ππ,π’+1 = 1 for matching Gaussian or ππ,π’+1 = 0 for all
- thers
ο Match increases weight
12
Model Adaption III
- No match found:
- None of the πΏ Gaussians match pixel value ππ’+1
β« Observed value not well explained by model
- Replace the least probable distribution with a
new one
β« Newly created distribution based on current value
ο ππ’+1 = ππ’+1 ο Has high variance and low prior weight
β« Least probable in the π/π sense (to be explained)
13
Background Model Estimation
- A background pixel value should be consistent
- Heuristic: Gaussians with the most supporting
evidence and least variance should correspond to the background
- Gaussians are ordered by the value of π/π
β« High support π and smaller variance π give larger value
- First πΆ distributions are selected as the background
model
β« πΆ = ππ πππππ( π₯π > π)
π π=1
ο π minimum portion of image expected to be background
14
Background Estimation Example
- After background estimation, red are the
background and black are foreground (not background)
15
Results
- Not much in paper, comparison from homework
16
Discussion
- Advantages
β« Different threshold for each pixel β« Pixel-wise thresholds adapt over time β« Objects are allowed to become part of the background without destroying the existing background model β« Provides fast recovery
- Disadvantages
β« Cannot handle sudden, drastic lighting changes β« Must have good Gaussian initialization (median filtering) β« There are a number of parameters to tune
17
More Issues?
- Shadows detection
β« [Prati, Mikic, Trivedi, Cucchiara 2003]
- Chen & Aggarwal: The likelihood of a pixel being
covered or uncovered is decided by the relative coordinates of optical flow vector vertices in its neighborhood.
- Oliver et al.: βEigenbackgrounds" and its variations.
- Seki et al.: Image variations at neighboring image
blocks have strong correlation.
18
Simple Improvement
- Incorporate both spatial and temporal
information into the background model
- Adaptive background mixture model + 3D
connected component analysis [Goo et al.]
β« 3rd dimension is time
19
Summary
- Simple background subtraction approaches such
as fame diff, mean, and median filtering are fast
β« Constant thresholds make them ill-suited for challenging real-world problems
- Adaptive background mixture model approach
can handle challenging situations
β« Bimodal backgrounds, long-term scene changes, and repetitive motion
- Improvements include upgrade the approach
with temporal information or using region- based techniques
20
Thank You
- Questions?
21 Background subtraction implementation using GMM at OpenCV
References
- Reading
β« Stauffer, Chris; Grimson, W.E.L., "Adaptive background mixture models for real-time tracking," in Computer Vision and Pattern Recognition, 1999. IEEE Computer Society Conference on. , vol.2, no., pp.252 Vol. 2, 1999
β« Kyungnam Kim, Thanarat H. Chalidabhongse, David Harwood, Larry Davis, Real-time foregroundβbackground segmentation using codebook model, Real-Time Imaging, Volume 11, Issue 3, June 2005, Pages 172-185
- Background Subtraction Datasets
β« https://sites.google.com/site/backgroundsubtraction/ test-sequences
22