1
0
mirror of https://github.com/ami-sc/fire-detection.git synced 2024-07-04 16:17:51 +02:00
Fire detection through normal RGB videos for forest fire prevention.
Go to file
2024-05-03 05:31:03 -05:00
assets Add example video 2023-11-17 16:33:57 -06:00
data Clean up data directory 2023-11-17 16:33:30 -06:00
figures Update README 2023-11-17 16:34:59 -06:00
models Add XGBoost model 2023-11-17 16:34:13 -06:00
notebooks Update notebooks directory 2023-11-17 16:34:30 -06:00
reports Add report and slides 2023-11-17 16:39:13 -06:00
src Update project code 2023-11-17 16:34:48 -06:00
.gitignore Ignore project icon 2024-01-13 18:43:54 -06:00
environment.yml Update envirionemnt installation 2024-01-13 18:44:29 -06:00
LICENSE Add license 2023-11-22 15:14:25 -06:00
README.md Update link to my profile 2024-04-11 11:39:30 +02:00

Project Header

Fire Detection

Abstract

Forest fires represent an important threat to natural ecosystems. Early detection is essential to prevent extensive damage and reduce risks associated with them. Conventional fire detection systems primarily rely on smoke or temperature-based sensors. These approaches have inherent limitations that restrict their effectiveness, particularly in outdoor environments and forested areas.

Our approach attempts to combine the feed obtained from traditional video or surveillance cameras with a motion detection algorithm and a model to predict forest fires in real-time. This approach is more cost-effective and requires less human intervention than other methods.

Implementation

We use a Motion Detection Algorithm that uses a background subtraction method with recursive updates of thresholds and estimated backgrounds.

Motion Detection Algorithm

The used model is an XGBoost model pre-trained on labeled image datasets containing fire and non-fire images. A histogram was computed for the color channels to differentiate without using the entire images.

Model Training

Additional details can be found in the Technical Report and in the Project Slides.

Installation

First, create a new conda environment using:

conda env create -f environment.yml

Activate the new environment using:

conda activate FireDetection

Usage

The file main.py in the src directory contains a simple interface for using the program.

To execute, use:

python ./src/main.py

To change the video that is being used for detection, replace the video_path value in line 18 of main.py with the path to your target video.

Additionally, the algorithm can be tested with a live feed from http://66.119.104.155/mjpg/video.mjpg.

The example video was sourced from: Fire: Fountaingrove in Santa Rosa (Monday, Oct. 9)

Authors

🔗 Alessio Olivieri

🔗 Robert Li

🔗 Emilio Soriano Chávez

This project was made as part of the 2023 AI Lab: Computer Vision and NLP course at Sapienza Università di Roma.