31 - Fire Detection System Using Raspberry Pi
31 - Fire Detection System Using Raspberry Pi
Abstract—Fire presents significant threat to life due to its work done for the project, Section IV consist of system model
severe hazards and ability to spread rapidly. Fire detection which describes the whole system of the fire detection, Section
systems, specially vision-based system offers flame detection prior V methodology behind the proposed system, and Section VI
to any loss or destruction. In this present model, new vision-based
device is designed which works on Raspberry Pi and detects consist of implementation of algorithm.
flame (visible part of fire) over remote regions. An immediate There aremany fire detection systems are working in differ
alert is generated on android application. Here in, HSV color ent areas in different manners but mostly are sensored based
combination is used for proposed model and changes in flame and detect fire through heat and smoke.But the method of fire
color and texture is studied. detection by using sensors ar now not very effective becausce
Index Terms—Fire detection, flame color, flame texture, false
alarm
they generate alerts when fire has reached its maximum level
which is very dangerous that is why the system is proposed
that detects fire in the beginig which is very important to stop
I. I n t r o d u c t io n
it very before so the loss or damages can not be done by it.
Fire is a serious threat to life and property worldwide. It is
usually caused by combustion of materials which releases heat Rectifier Regulator
and light in large amounts. Fire detection systems have been
designed to detect fire via sensing different fire related change.
Two types of fire detectors have been used so far, namely:
traditional/sensor-based and vision-based systems. Former re
sponds against smoke, heat, temperature and pressure, whereas
later rely on the light detection. Among the two systems used,
traditional detectors have several disadvantages associated
with them. These include high cost, slow response time and
limited detection range. Additionally, these systems are not
feasible as outdoor detectors due to excessive sunlight and
wind pressure.
Besides, vision-based detectors can respond flame quickly
and can analyzed location of fire. In these detectors, flame
which is the vision part of fire can be analyzed via its color,
shape and movement based on spectral and spatial models. Fig. 1. System Model
Although, vision-based detectors have several advantages,
however, false detections limit their utilities. Therefore, there is
II. L i t e r a t u r e Su r v e y
still dire to design new models that are more efficient and can
solve problems associated with previously reported models. A. Motivation
The reason behind proposing a system of like fire detection Internet of things (IoT) is the network of programmable
is to prevent from the loss and damages done by fire very software, sensors, electronics and communication facility that
before by generating an alert.This research paper consist of six helps to gather and transfer data. The objective of the designed
sections.Section I consist of introduction of project, Section system is to alert the remote user while the fire accidents occur.
II consist of literature survey, Section III consist of related This system can be easily installed at any remote locations
already done. The fire detection system is used to detect fire The purpose is to create a hardware which can detect fire
in air through camera in real time monitoring system based on from far away. This device supports the Raspberry Pi platform
Raspberry Pi. The main feature of system is to alert generate and android application. Fire is a dangerous thing which can
when fire is started or reached it minimum level to prevent bring a lot of harm to anything. To prevent from loss, sensors
from the loss of lives and damages of any other property or are installed but these sensors are not effective. Sometimes
valuable things that are useful for the company or any place they get destroyed by heat or fire or sometimes they generate
where it is installed. alert very late until the damage has been done. In contrast
Raspberry Pi is very useful because it consumes low power and
C. Surveillance system it is of low cost and it does not need any sensors because the
The fire detection system need surveillance to detect the fire camera will detect the fire and generate the alert immediately
and to control it by generating an alert to the registered users to the users or the members of the organization, where this
on the application. This can be achieved by using Raspberry system is installed.
Pi which control the fire detection s system and the android
application is very useful when fire is detected it generate
alert and give an alert to fire department. This system works
on Raspberry Pi and the Android application. The image
processing algorithm is working and it is designed on Python
programming language which detects fire and send alert on the
server which is connected to android.The android application
receives the alert and send notification or generate an alert on
the application which can be seen by registered users.
III. R e l a t ed Wo r k
Some of previously reported fire detection system are based Fig. 2. Raspberry Pi
on detecting smoke as a change and then sent response to
detector, which rings alarm. Some detectors sense heat as
change and after communicating with a detector emergency
mode is triggered which ends up in ringing the buzzers. How
ever, after mentioned systems have problems which decrease
their importance and open the window to explore new systems.
Interestingly, only few reports are available in literature visual
based fire detection system. Most of reported problems are
system getting damaged due to heat or wire system get Fig. 3. Pi Camera
damaged.
A. Shape Representation V. M e t h o d o l o g y
System will detect the colors consistent with the basic Fire patterns with heat signature are used to detect fire which
spectrum factors used in the RGB model, which is based on are color patterns for representing the fire. Following are the
the Cartesian coordinate system. Initially, videos or images three types of filters used to find these signatures:
• RGB filter
• cieLAB filter
• Both
• HSV filter
A. RGB filter
This is used to extract Blue (B), Green (G) and Red (R)
component of each pixel. It is necessary for every pixel to
verify following conditions:
• If R>G>B
• If R>Rt
where Rt red threshold value ranging between (0,255). Its
value is dependent on light of the image. Rt=5 is used in
this method.
B. cieLAB filter
The LAB color model is used cieLAB color model are red,
yellow and related colors like orange. For each pixels in this
frame the mean value of L, A and Compnents are identified.
For each pixel four filters are used.
L >L
A >A
B >B Fig. 4. Flow Chart
B>A
C. HSV filter
HSV is Hue Saturation Value. It uses HSV component
and works well in image processing. Using this filter, an
object with a specific color can be detected and to reduce
the influence of light intensity from the outside.
VI. I M PLEM ENTATION OF ALG O R ITH M
Our implementation of fire detection is used to facilitates
the organizations or companies to prevent from the loss of
lives and damages of valuable assets. The moment when the
fire is detected and to generate an alert on it through mobile
application/android application to the users on the application.
The algorithm is designed in such a way so that every one can
understand it and the android application is also very easy to
use. The algorithm is defined below which is very important
part of this project or the main part of the project.
• Step 1: Start
• Step 2: Image is captured on real time
• Step 3: Camera captured video continuously on real time
• Step 4: The image frame is acquired from the real time
live video feed
• Step 5: Captured image is sent to Raspberry Pi on the
real time
• Step 6: Image processing is done on images Fig. 5. Use case Diagram
isFire = False
threshold = 400
start = None
font = cv2.FONT_HERSHEY_SIMPLEX
#fire detection
for frame in camera.capture_continuous
(rawCapture, format="bgr",
use_video_port=True):
image = frame.array
Fig. 6. Hardware Testing of Raspberry Pi
image = np.array(image, dtype=np.uint8)
B. Software Testing
The software testing consist of android application working
and testing part which is essential and is very useful. Following
are the User Interface of android application given down below
to understand the android application designing and the use of
it.