Skip to content

Fire Eye is a robust and fixed lookout system capable of real-time forest fire and smoke detection. We have use Flask Python web framework to develop the user interface of our application.

Notifications You must be signed in to change notification settings

Amerzish-25/Fire_Eye-A_Real-Time_Forest_Fire_and_Smoke_Detection_Website

Repository files navigation

FIRE EYE

bandicam 2023-08-08 22-05-41-790

CONTENTS

WHAT IS FIRE EYE?

Fire Eye is a system developed for detecting and monitoring forest fires using two cutting-edge deep learning algorithms (YOLO-v5 and Inception-v3), designed to detect fires at their earliest stages. This early warning system critically analyses the scope of artificial intelligence, reduces the response time of fire authorities, and helps them mitigate the loss of life and property caused by forest fires before they spread uncontrollably. This system increases the reliability and accuracy of fire detection and monitoring operations and contributes to the overall sustainability and resilience of forest ecosystems.  

FEATURES

  • Includes real-time monitoring feature, using YOLO algorithm for early detection and rapid response to wildfires
  • Include Location Tracker feature, in which GPS tracker is implemented to track the area and location of fire
  • Include Fire Alerts Reports feature, which generate instant reporting for timely decision-making and effective fire record management
  • Utilize the Inception v3 deep learning model in model prediction feature, to accurately detect and classify smoke, fire and non fire
  • Improve the efficiency and effectiveness of forest management and firefighting operations

Features

INSTALLATION

  1. Clone the repository:
git clone https://github.com/Amerzish-25/Fire_Eye-A_Real-Time_Forest_Fire_and_Smoke_Detection_Website.git
cd Fire_Eye-A_Real-Time_Forest_Fire_and_Smoke_Detection_Website
  1. Install the required dependencies:
pip install -r requirements.txt

USAGE

  1. To run Flask Server:
python App.py
  1. Open your web browser and Navigate to http://127.0.0.1:5000 to access the application.

DATASET

For training the YOLO-v5 and Inception-v3 models, you can find the datasets on Kaggle:

Please note that these datasets were used for training the respective models in this project. Ensure that you review the dataset licenses and terms on Kaggle before using them for your own purposes.

MODEL TRAINING

• YOLO-v5 Model Training

  1. Download the YOLO training dataset from Kaggle
  2. Set up Yolov5_Training.ipynb script for training the model from scratch.
  3. Use the following script to install the YOLOv5
git clone https://github.com/ultralytics/yolov5  
cd yolov5
  1. Install the required dependencies
pip install -r requirements.txt
  1. Train the model on custom dataset
!python train.py --img 640 --batch 64 --epochs 70 --data custom_train.yaml --weights yolov5s.pt 

• Inception-v3 Model Trraining

  1. Download the Inception v3 training dataset from Kaggle
  2. Set up Inceptionv3_Model_Training.ipynb script for training the model from scratch
  3. Preprocess the Dataset using data augmentation
training_datagenarator= ImageDataGenerator(rescale=1./255,horizontal_flip=True, vertical_flip=True,
                                          shear_range=0.2, zoom_range=0.2,width_shift_range=0.2,
                                           height_shift_range=0.2,validation_split=0.1)
  1. Load the Inception-v3 Model and configure model architecture
inceptionV3 = InceptionV3(input_shape=IMG_SIZE + [3], weights='imagenet', include_top=False)
  1. Compile and Train the model
history =model.fit_generator(train, validation_data=validation, epochs=50,
                              steps_per_epoch=train.samples//BATCH_SIZE,
                             validation_steps=validation.samples//BATCH_SIZE, callbacks = callback)
  1. Save the model for evaluation and prediction

RESULTS

Results

Yolov5 Results Visualization:

val_batch0_pred

Inception v3 Results Visualization:

predicted_images (3copy)

CONCLUSION

In conclusion, the Fire Eye represents a significant step forward in using technology to enhance forest fire detection and monitoring. As a collaborative and open-source project, we invite contributors from around the world to join us in further refining and expanding the capabilities of Fire Eye. Thank you for exploring our project.