background subtraction based on cooccurrence of image variations seki, wada, fujiwara & sumi -...

77
Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Upload: rosamund-robbins

Post on 13-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Background Subtractionbased on

Cooccurrence of Image VariationsSeki, Wada, Fujiwara & Sumi - 2003

Presented by: Alon Pakash & Gilad Karni

Page 2: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Motivation

Detecting foreground objectsin dynamic scenes

involving swaying trees andfluttering flags.

Page 3: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Dynamic Scenes

Page 4: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Background Subtraction so far:

Stationary background

Permissible range of image

variation

Dynamic update of the background

model

Cooccurrence…

Page 5: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Permissible range of image variation

Feature

Space

Input image

(as vector)

Background

model

Chosen Pixels,

DCT coefficients,

Page 6: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

The Problem:

Training set

Background model + VARIANCE

BIG variance = Detection sensitivity decreases!

Page 7: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

The Solution:

Dynamically narrow the permissible range…

By using the Cooccurrence.

Page 8: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

“Cooccurrence”

• What is Cooccurrence?

Image variations at neighboring image blocks have strong correlation!

Page 9: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Permissible range with Cooccurrence

Input image

(as vector)

Cooccurrence DBof background

image variations

Feature

Space

Background model without considering cooccurrence

Narrowed background

model

Page 10: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Cooccurrence“Is it really that good”?

• Partition the image: NxN Blocks

• In time t, block u is represented by:i(u,t)

Page 11: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Example:Sunlight changes

Page 12: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Illustrating Principal Components Analysis

Our Goal:Revealing the internal structure of the data in a way which best explains the

variance in the data

Page 13: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Illustrating Principal Components Analysis

Page 14: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Illustrating Principal Components Analysis

Page 15: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Illustrating Principal Components Analysis

Page 16: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Example:Sunlight changes

Page 17: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

N x N

1 x N2

Page 18: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

1 x N2

e1

e2

Projection

Page 19: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 20: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Another Example:Tree sway

Block A Block B

Page 21: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Block A Block B

Page 22: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Cooccurrence – Cont’d

• Also stands for:– Higher dimension feature space– Other neighboring blocks in the picture– Fluttering flags

• Conclusion:Neighboring image blocks have strong

correlation!

Page 23: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Background Subtraction Method

The general idea:Narrow the background image variations by

estimating the background image in each block from the neighboring blocks in the input

image

Page 24: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

e1

e2

e3

e1

e2

e3

(A,t1)(B,t1)

Z*

ZB(A,t2)

(B,t2)

(A,t3)(B,t3)ZA

Page 25: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

e1

e2

e3

Z)B,t1(

Z*

ZB

Z)B,t2(

Z)B,t3(

Page 26: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Advantages

• Since the method utilizes the spatial property of background image variations, it is not affected by the quick image variations.

• The method can be applied not only to the background object motions, such as swaying tree leaves, but also to illumination variations.

Page 27: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Experiments

Page 28: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Difference Picture

Page 29: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

The experiment procedure

• Number of dimensions?

• Number of neighbors?

Page 30: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Num. of Dimensions

• Determination of the dimensions of the eigen space: until more than 90% of the blocks are “effective”.

Page 31: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Num. of neighbors

• Determination of the number of neighbors: until the error (the Euclidean distance in the eigen space) is small enough.

Z(B,t1)

Z*

ZB

Z(B,t2)

Z)B,t3(

Page 32: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Comparison to other methods

• Method 1: Learning in the same features space for each block, background subtraction using Mahalanobis distances.

• Method 2: Doesn’t use “Cooccurence”, relies only on the input pattern in the focused block.

• Method 3: The proposed method.

Page 33: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 34: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 35: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 36: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 37: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 38: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 39: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 40: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 41: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 42: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 43: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 44: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 45: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 46: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 47: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 48: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 49: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 50: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 51: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 52: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 53: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 54: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 55: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Belief Propagation in a 3D Spatio-temporal MRF for Moving Object Detection

Yin & Collins - 2007

Page 56: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Dis\Similarity

Surroundings of an element is taken into consideration

Pixel Vs. Block

Page 57: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Problems solved in this method

• Objects camouflaged by similar appearance to the background

• Objects with uniform color

Page 58: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Markov Random Field+-+++-

-----+

+-++--

---++-

-+-+--

-++-++

+

+-

P)Xij = + | Xkm, k≠i, m≠j(

= P)Xij = + | Xkm, k=i±1, m=j±1(

Page 59: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

• With the realization that each pixel influences neighboring pixels spatially and temporally in the video sequence we develop a 3D MRF (Markov Random Field) model to represent the system.

Page 60: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Frame i

Frame

i+1

Frame i-1

• Observed Data

• Hidden State

Page 61: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Hidden State & Observed Data

• Hidden state – represents the likelihood that a pixel contains object motion

• Observed data – represents the binary motion detection result

Page 62: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Relations between hidden to observed nodes

• If an observed node is “0” (no-motion), its corrsponding hidden node will contain a uniform distribution.

• Otherwise, it will contain an impulse distribution.

Φ j (s k

,d k)

sksk

Page 63: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Relations between hidden to hidden nodes

• Each hidden node encourages its neighboring nodes to have the same state. sk

sk

Ψjk

Page 64: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Belief PropagationIn a nutshell

A powerful algorithm for making approximate inferences over joint

distributions defined by MRF models

Page 65: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 66: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

Message Update Schedule

• Different message passing schedules have different effects on the detection process.

Page 67: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 68: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 69: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 70: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 71: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 72: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 73: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 74: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 75: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 76: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni
Page 77: Background Subtraction based on Cooccurrence of Image Variations Seki, Wada, Fujiwara & Sumi - 2003 Presented by: Alon Pakash & Gilad Karni

To Conclude

• Copes with shape changes

• Not affected by speed changes of the moving object

• Handles low resolution videos (e.g. Thermal)