Code Monkey home page Code Monkey logo

fire-detection-from-flame-dataset's Introduction

Fire-Detection-from-FLAME-Dataset

Deep Learning model implementation for Fire detection both classification and segmentation from the FLAME dataset.

Introduction

There are two applications that can be defined based on the collected FLAME dataset along with Deep Learning solutions for these problems. The first problem is the fire versus no-fire classification using a deep neural network (DNN) approach. The second problem deals with fire segmentation, which can be used for fire detection by masking the identified fire regions on video frames classified as fire-containing in the first problem.

  • Theoritical Description of the model used click here

Training the Model

Run the following python code for training the models:

  • Classification Training (classification_training.py) click here
  • Segmentation Training (segmentation_training.py) click here

Evalutation, Prediction and Training Plots:

After training, run the following code to plot the dataset, evaluate the model, training metrices, model predictions.

  • Fire-vs-NoFire Classification (fire_classification.py) click here
  • Fire Segmentation (fire_segmentation.py) click here

Supporting Code Description

  • Fetching the dataset from the directory (dataset_fetching.py) click here
  • Plotting the dataset visualization, training metrices, model evalutation, model predication (data_plotting.py) click here

Directory Structure of the Dataset

The downloaded dataset should be put into the folder structure as shown below:

Screenshot 2022-07-11 at 22 56 22

Dataset Visualization

Classification Dataset with Labels:

fire_classification_data_visualization

Segmentation Dataset with Mask (ground truth):

fire_segmentation_data_visualization

Training of the model (Metrices vs Epochs)

  • Classification Training:

fire_classification_training

  • Segmentation Training:

fire_segmentation_training

Model Evaluation and Prediction

  • Classification Tasks Confusion Matrix:

confusion_matrix

  • Segmentation Task Predicted Masks:

fire_segmentation_prediction1 fire_segmentation_prediction

fire-detection-from-flame-dataset's People

Contributors

sunnyiisc avatar sunnyisro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.