Skip to content

๐—™๐—ถ๐—ฟ๐—ฒ ๐——๐—ฒ๐˜๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐Ÿ”ฅusing Machine Learning Algorithm with python๐Ÿ, GoogleColab & database taken from ๐—จ๐—–๐—œ ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ฒ๐—ฝ๐—ผ๐˜€๐—ถ๐˜๐—ผ๐—ฟ๐˜†

harshit2490/Fire-Detection-using-ML-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fire Detection Using Machine Learning Algorithms

๐—™๐—ถ๐—ฟ๐—ฒ ๐——๐—ฒ๐˜๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐Ÿ”ฅusing Machine Learning Algorithm with python๐Ÿ, GoogleColab & database taken from ๐—จ๐—–๐—œ ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ฒ๐—ฝ๐—ผ๐˜€๐—ถ๐˜๐—ผ๐—ฟ๐˜†

View Live Project on Google Colab:

https://colab.research.google.com/drive/1KLMoYmrs7GgP5UbU7FK-doUKopwVtXoT?usp=sharing

Dataset from UCI Repository:

https://archive.ics.uci.edu/ml/datasets/Forest+Fires


Introduction

Fire in the forest can occur naturally or by humans. Naturally, fire takes place due to extreme drought, hot weather, lightning or combustion of dry leaves and scobs. Human activities like throwing cigarettes, especially in forest areas or using borne fire also lead to fires.

  • So, fires which take place due to humans, are identified earlier than naturally occurring fires. There are various factors involved when a region catches fire. The hot and dry weather works as catalysts for fire. Since when there is fire in any region then the temperature of the region will become high due to fire. So increase in temperature is one of the factors which can help in fire detection events.
  • But we cannot just depend on temperature to detect fire as the temperature of a region also may increase due to sunlight. So we can also check the concentration of CO, CO2 gases in that region to detect the fire. But CO, CO2 gases can also be generated when someone uses the cigarette in that region so it may give false alarm, i.e., false fire event detection.
  • To increase the accuracy in predicting fire events, we will use various ML algorithms to check if there is fire or not. We will also train the machine and test by providing custom input whether there is fire or not. We will also calculate the accuracy, recall, and precision of these ML Algorithms. Hence we can save our environment ,animals and livelihood from the adverse results of forest fires.

Project Requirement

- HARDWARE
    Processor Above: 1.5Ghz
    Hardware Disk: 80GB
    RAM: 2GB

+ SOFTWARE
    OS: Windows 7,8, 10
    Language: Python
    IDE: Colab (by Google)

Proposed Approach

Dataset is taken from UCI Machine Learning repository, description of dataset is described as below:

  • Dataset contains image and video data.
  • Image data contains test and train data in image format each having 3 class i.e., default, smoke, fire.
  • Test_default has 84 images, test_fire has 57 images, test_smoke has 30 images.
  • Train_default has 161 images, train_fire has 274 images, train_smoke has 258 images.
  • Video data contains test and train data in video format.
  • Test_video contains 3 videos.
  • Train_video contains 12 videos consisting of fire with smoke, only fire, only smoke, no fire videos.

Project Workflow


-> Gathering data
-> Data pre-processing
-> Researching the model that will be best for the type of data
-> Training and testing the model
-> Evaluation


Implementation Analysis



Different algorithms are used to predict their Accuracy, Precision and Recall


Experiment And Results

For this purpose, โ€œForest-fires.csvโ€ dataset from UCI machine learning repository was taken and machine learning algorithms were applied to find accuracy of detection. The dataset โ€œForest-fires.csvโ€ contains 517 instances and 13 attributes.


Table: Correlation Coefficient Analysis

Attributes Correlation Coefficient
Day -0.042970
RH -0.035587
Rain 0.025550
ISI 0.035663
Wind 0.055702
Y 0.056892
X 0.062491
DMC 0.062672
FFMC 0.073823
Temperature 0.076047
DC 0.096724
Month 0.130329
Output 1.000000

Thank You !


About

๐—™๐—ถ๐—ฟ๐—ฒ ๐——๐—ฒ๐˜๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐Ÿ”ฅusing Machine Learning Algorithm with python๐Ÿ, GoogleColab & database taken from ๐—จ๐—–๐—œ ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ฒ๐—ฝ๐—ผ๐˜€๐—ถ๐˜๐—ผ๐—ฟ๐˜†

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published