Giter Club home page Giter Club logo

harshit2490 / fire-detection-using-ml-algorithms Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 2.31 MB

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

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

Jupyter Notebook 100.00%
fire-detection data-analysis forest-fire-detection google-colab machine-learning-algorithms python-data-analysis data-analysis-python data-visualization desiciontree knn

fire-detection-using-ml-algorithms's Introduction

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 !


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.