This project implements a deep learning-based fire detection system using the MobileNet architecture. The model is designed to identify fire in images or video frames in real time, enabling early detection and faster response to potential hazards.
The solution leverages lightweight convolutional neural networks to ensure efficient performance, making it suitable for deployment on resource-constrained devices such as edge systems and mobile platforms.
Fire accidents cause significant loss to life, property, and the environment. Traditional fire detection systems rely on sensors (smoke/temperature), which often:
- Detect fire at a later stage
- Fail in open or large environments
- Lack visual confirmation
This project addresses these limitations using computer vision and deep learning for early visual fire detection.
- Build a fire detection model using MobileNet
- Classify images into Fire / No Fire
- Enable real-time detection using video/webcam
- Optimize model for fast inference and low resource usage
- Lightweight and efficient CNN architecture
- Uses depthwise separable convolutions
- Suitable for real-time and edge deployment
MobileNet-based systems are widely used for fire detection due to their efficiency and ability to run on low-power devices while maintaining high accuracy :contentReference[oaicite:0]{index=0}.
- Data Collection (Fire & Non-Fire images)
- Data Preprocessing (Resizing, normalization)
- Model Training using MobileNet
- Evaluation (Accuracy, loss)
- Inference on images / video
- Python – Core programming
- TensorFlow / Keras – Model building
- OpenCV – Image & video processing
- NumPy & Pandas – Data handling
- Matplotlib – Visualization
fire-detection-mobilenet/
│
├── dataset/ # Training & testing images
├── notebooks/ # Model training notebook
├── model/ # Saved trained model
├── scripts/ # Helper scripts
├── app.py / main.py # Entry point for detection
├── requirements.txt
└── README.md- Load dataset
- Apply preprocessing
- Use pre-trained MobileNet (Transfer Learning)
- Fine-tune model for fire classification
- Input: Image / Video frame
- Output: Fire / No Fire classification
- Confidence score
- Achieved high accuracy in detecting fire images
- Efficient inference suitable for real-time applications
- Reduced computational cost due to lightweight architecture
- Forest fire detection
- Industrial safety monitoring
- Smart surveillance systems
- IoT-based fire alert systems
- Real-time fire detection
- Lightweight and efficient model
- Scalable for edge deployment
- Easy integration with camera systems
- Add smoke detection (multi-class classification)
- Deploy using Flask / FastAPI
- Integrate with IoT alert systems
- Improve dataset diversity for better generalization
- Deep Learning (CNN, Transfer Learning)
- Computer Vision
- Model Optimization
- Real-time Detection Systems
- Python Development
Nirjana Das