research and implementation of smoke detection in video streams [email protected]

61
Slide 1 of 61 Research and Implementation of Smoke Detection in Video Streams Naveed Akram 维德 School of Computer Science and Engineering , Beihang University, Beijing [email protected]

Upload: naveed-akram

Post on 16-Jul-2015

245 views

Category:

Business


0 download

TRANSCRIPT

Page 1: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 1 of 61

Research and Implementation

of

Smoke Detection in Video Streams

Naveed Akram 内维德

School of Computer Science and Engineering ,

Beihang University, Beijing

[email protected]

Page 2: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 2 of 61

Agenda

Introduction of Research Work

Background and Motivation

Overview of Research Work

Research and Implementation

Results / Demo

Question / Answer

Page 3: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 3 of 61

Introduction

An image processing based technique

is proposed to detect fire smoke in

video streams.

Basic Idea is to use already installed

CCTV cameras for smoke detection

instead of using conventional smoke

detectors.

Page 4: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 4 of 61

Background and Motivation

Fire is one of the biggest disasters for

the human beings.

In 2009 (only in USA)

◦ estimated 1,348,500 fires

◦ 3,010 deaths

◦ 17,050 injuries

◦ $12.5 Billion property loss

Backgro

und a

nd

Mo

tiva

tion

Page 5: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 5 of 61

Why we need this study

Traditional methods can not work in

some situation and fail to detect fire

smoke.

◦ Some times can not detect at all.

◦ Produces delay and need close proximity

◦ Fail in open places, outdoor, forests

◦ No method to verify false alarms

We are proposing a method that can

overcome these issues.

Backgro

und a

nd

Mo

tiva

tion

Page 6: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 6 of 61

Video Based Fire Detection

System Lower cost

Faster response

Large coverage area

Verification of false alarms

Backgro

und a

nd

Mo

tiva

tion

Page 7: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 7 of 61

Challenges

Still evolving technology

Difficult to process due to variability in

smoke density, lighting, diverse

background, interfering non-rigid objects

etc.

Primitive image features such as

intensity, motion, edge, and obscuration

do not characterizes smoke very well in

the videos

Visual pattern of smoke is difficult to

model.

Backgro

und a

nd

Mo

tiva

tion

Page 8: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 8 of 61

Related Work

In recent literature a number of

methods for smoke detection in videos

are presented based on

◦ Self-Similarity

◦ Motion and optical flow

◦ Wavelet Transformation

(flickering/∆energy)

◦ Based on Color models

◦ Night Vision fire detection

◦ Feature’s based

Backgro

und a

nd

Mo

tiva

tion

Page 9: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 9 of 61

OVERVIEW OF RESEARCH WORK

Page 10: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 10 of 61

Overview of Research Work

Pre-

Processing

Moving

Target

Detection

Feature

ExtractionSmoke

Detection

Ove

rvie

w o

f Re

se

arc

h

Work

Page 11: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 11 of 61

Pre Processing

Pre-

Processing

Moving

Target

Detection

Feature

ExtractionSmoke

Detection

1.Frame Extraction from Video Stream

2.Color to gray scale conversion

3.Median filtering

Ove

rvie

w o

f Re

se

arc

h

Work

Page 12: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 12 of 61

Moving Target Detection

Moving

Target

Detection

Feature

ExtractionSmoke

Detection

Pre-

Processing

1.Background Subtraction

2.Grayscale to Binary Conversion

3.Contour Extraction

Ove

rvie

w o

f Re

se

arc

h

Work

Page 13: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 13 of 61

Feature Detection

Feature

ExtractionSmoke

Detection

Pre-

Processing

Moving

Target

Detection

1.Calculation of static and dynamic features of

moving target object.

2.Such as Local Wavelet Energy, Growth rate,

Disorder, flickering frequency, Source

Stability etc.

Ove

rvie

w o

f Re

se

arc

h

Work

Page 14: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 14 of 61

Smoke Detection

Feature

ExtractionSmoke

Detection

Pre-

Processing

Moving

Target

Detection

1.Training of Neural Network (Once)

2.Use of Neural Network to decide either

smoke or not

Ove

rvie

w o

f Re

se

arc

h

Work

Page 15: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 15 of 61

RESEARCH AND IMPLEMENTATION

Page 16: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 16 of 61

Moving Target Detection

Moving

Target

Detection

Feature

ExtractionSmoke

Detection

Background

SubtractionContour

Extraction

Researc

h a

nd

Imple

me

nta

tion

Page 17: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 17 of 61

Background Subtraction

Preliminary frame differencing

Dynamics Matrix

Adaptive Background Update

Researc

h a

nd

Imple

me

nta

tion

Page 18: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 18 of 61

Background Subtraction

Background Update Model

Page 19: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 19 of 61

Background Subtraction

Foreground detectionStart

Current Filtered

Frame, I(k)

B(i,j) from Background

update Model

If FD(i,j) >TForeground

FG(i,j)=0

Foreground

FG(i,j)=I(i,j)

.F.

.T.

Link to Next

Process

Absolute Frame Difference

, , ,( ) ( ) ( )i j i j i jFD k I k B k

Researc

h a

nd

Imple

me

nta

tion

Page 20: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 20 of 61

Background Subtraction

Results

(a) Original Frames (b) Foreground Objects

Researc

h a

nd

Imple

me

nta

tion

Page 21: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 21 of 61

Contour Extraction

Grayscale to Binary Conversion

(Otsu's method )

Dilation and Erosion of Binary Image

Researc

h a

nd

Imple

me

nta

tion

Page 22: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 22 of 61

Grayscale->Binary

Conversation

Researc

h a

nd

Imple

me

nta

tion

Page 23: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 23 of 61

Erosion and Dilation

Erosio

n

Dilation

Researc

h a

nd

Imple

me

nta

tion

Page 24: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 24 of 61

Contour Extraction

Erosio

n

Dilation

Contour= Dilation-

Erosion

Researc

h a

nd

Imple

me

nta

tion

Page 25: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 25 of 61

Results of Moving Target

Detection

GR=4.07 DS=0.01 NOB=2 FLC=47.0 EN=-1.0 SS=1394

Smoke Detected Fr 252 Fgnd.Fr 221

Researc

h a

nd

Imple

me

nta

tion

Page 26: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 26 of 61

Feature Extraction

Pre-

Processing

Moving

Target

Detection

Smoke

Detection

Dynamic

FeaturesStatic

Features

Feature

Extraction

Growth Rate DisorderNumber of

Segments

Source

Stability

Flickering

Frequency

Local

Wavelet

Energy

Researc

h a

nd

Imple

me

nta

tion

Page 27: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 27 of 61

Growth Rate

as percentage change in Area of the

current frame with reference to

previous frame

( , ) Number of '1's in binary i

A x y image i

1

1

( , ) ( , ) 2

( , )

i i

i

A x y A x yGrow thRate i

A x y

Researc

h a

nd

Imple

me

nta

tion

Page 28: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 28 of 61

Growth Rate Results

Researc

h a

nd

Imple

me

nta

tion

Page 29: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 29 of 61

Disorder Feature

Smoke has another feature that

makes it distinguish from other

foreground objects that is its rapidly

changing shape. This feature of

smoke is called disorder

Researc

h a

nd

Imple

me

nta

tion

Page 30: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 30 of 61

Disorder Feature

Human

Movement

Smoke

Video

Researc

h a

nd

Imple

me

nta

tion

Page 31: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 31 of 61

Results of

Disorder Feature

280 285 290 295 300 305 310 315 320 325 3301.6

1.8

2

2.2

2.4

2.6

2.8

3Disorder VS Frame No

Frame No

Dis

ord

er

280 285 290 295 300 305 310 315 320 325 3303.5

4

4.5

5

5.5

6Disorder VS Frame No

Frame No

Dis

ord

er

Human

Movement

Smoke

Video

Researc

h a

nd

Imple

me

nta

tion

Page 32: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 32 of 61

Number of Segments

While smoke spreads it splits into

different small / large patches.

Sometime these patches may

increase to 8 to 10.

We used 8-connected pixels algorithm

to calculate number of segments in

current video frame.

Researc

h a

nd

Imple

me

nta

tion

Page 33: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 33 of 61

Number of Segments

Researc

h a

nd

Imple

me

nta

tion

Page 34: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 34 of 61

Frequent Flickering

A pixel at the edge of a turbulent flame

or boundary of smoke could appear

and disappear several times in one

second of a video sequence. This kind

of temporal periodicity is commonly

known as flickering

Researc

h a

nd

Imple

me

nta

tion

Page 35: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 35 of 61

Frequent Flickering

Transition Matrix

Frequency Matrix

Pixels on contour

Researc

h a

nd

Imple

me

nta

tion

Page 36: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 36 of 61

Frequent Flickering

Thresholding

Feature Calculation

Researc

h a

nd

Imple

me

nta

tion

Page 37: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 37 of 61

Researc

h a

nd

Imple

me

nta

tion

Flow Chart

Page 38: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 38 of 61

Frequent Flickering

Subtracting consecutive frames to get transition

matrices

Frequency MatrixAND with ContourThresholding

Researc

h a

nd

Imple

me

nta

tion

Page 39: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 39 of 61

Results

Sm

oke

Vid

eo

Hum

an

Movem

ent V

ideo

Page 40: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 40 of 61

Local Wavelet Energy

Sharp edges in the background are

sources of high frequency and hence

high wavelet energy

Fire smoke can smoothen the edges

in an image because of the fuzzy

effect of smoke .

Hence it decreases local wavelet

energy in the scene

Researc

h a

nd

Imple

me

nta

tion

Page 41: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 41 of 61

Local Wavelet Energy

we calculate difference of LWE of

background frame and Current frame

to get this feature

Researc

h a

nd

Imple

me

nta

tion

Page 42: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 42 of 61

Local Wavelet Energy

Backgroun

d

Current

Frame

Researc

h a

nd

Imple

me

nta

tion

Page 43: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 43 of 61

Results

0 20 40 60 80 100 120 140 160 180 200-5

0

5

10

15

20x 10

-3 Change is Wavelet Energy (eb-e)

Video Frames

Change in W

avelle

t E

nerg

y

0 20 40 60 80 100 120 140 160 180 200-0.3

-0.25

-0.2

-0.15

-0.1

-0.05

0

0.05Change is Wavelet Energy (eb-e)

Video Frames

Change in W

avelle

t E

nerg

y

Fire

Sm

oke

Vid

eo

Hum

an M

ovem

ent

Vid

eo

Researc

h a

nd

Imple

me

nta

tion

Page 44: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 44 of 61

Source Stability

Source of fire smoke always remain

near about at same location while in

case of a human movement complete

foreground object moves and there is

not a single emerging (source) path.

Researc

h a

nd

Imple

me

nta

tion

Page 45: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 45 of 61

Source Stability

Researc

h a

nd

Imple

me

nta

tion

Page 46: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 46 of 61

Results

Researc

h a

nd

Imple

me

nta

tion

Page 47: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 47 of 61

Results Comparison

0 100 200 300 400 500 600 700 8000

2000

4000

6000

8000

10000

12000

14000Source Stability VS Frame No

Frame No

Sou

rce

Sta

bili

ty

0 50 100 150 200 250 300 350 400 4500

500

1000

1500

2000

2500Source Stability VS Frame No

Frame No

Sou

rce

Sta

bilit

y

0 50 100 150 200 250 300 3500

100

200

300

400

500

600Source Stability VS Frame No

Frame No

Sou

rce

Sta

bili

ty

0 100 200 300 400 500 600 700-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1Source Stability VS Frame No

Frame No

Sou

rce

Sta

bili

ty

Fire

Sm

oke

Vid

eo

Hum

an M

ovem

ent

Vid

eo

Researc

h a

nd

Imple

me

nta

tion

Page 48: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 48 of 61

BP Neural Networks

BP Neural Networks are trained using

logsig training function with several

smoke and non-smoke videos.

Later this trained Network is used for

real time smoke detection.

MATLAB is use to train the NN

Pre-

Processing

Moving

Target

Detection

Feature

ExtractionSmoke

Detection

Researc

h a

nd

Imple

me

nta

tion

Page 49: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 49 of 61

BP Neural Networks

1. Growth Rate

2. Disorder

3. Number of Segments

4. Frequent Flickering

5. Local Wavelet Energy

6. Source Stability

0.65 & & 1 Sm oke

0.25 & & 0.64 D anger

0 & & 0.24 N orm al

out

Researc

h a

nd

Imple

me

nta

tion

Page 50: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 50 of 61

Features Weights for NN

Results

Growth Rate

Disorder

Number of Segments

Frequent Flickering

Local Wavelet Energy

Source Stability

Smoke Starts Smoke

Spreads

Researc

h a

nd

Imple

me

nta

tion

Page 51: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 51 of 61

Tra

inin

g o

f the N

N

Construction of Network

Samples Completed

Frame Extraction

Video Samples

(8 Videos)

Moving Target Detection

Feature Extraction

Save Feature Vector

Training of Neural Networks

Page 52: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 52 of 61

Training of the NN

Researc

h a

nd

Imple

me

nta

tion

Page 53: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 53 of 61

Use o

f Tra

ined N

N

Page 54: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 54 of 61

RESULTS

Page 55: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 55 of 61

Results of Smoke Detection

Results

Page 56: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 56 of 61

NN Results (Smoke Video)

Results

Page 57: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 57 of 61

NN Results (non-Smoke

Video)

Results

Page 58: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 58 of 61

NN Results

Results

Page 59: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 59 of 61

DEMOS

Page 61: Research and implementation of smoke detection in video streams  naveedakram@live.com

Slide 61 of 61

QUESTIONS / ANSWERS

THANKS EVERYONE FOR

YOUR TIME