Real-Time Fire Detection using YOLOv8
Abstract
The outcome of fire incidents can be tremendous in terms of loss of life and properties hence the need to detect early can hardly be overridden. The conventional smoke, heat, and gas detectors are prone to triggering false alarms, are slow to react and they do not give a visual confirmation. In this regard, this manuscript puts forward a real-time fire detection platform that is based on YOLOv8 object detector. The C2f feature modules of YOLOv8 along with the anchor-free architecture include the SPPF layer to improve the accuracy of the detection without reducing the speed of inference. The custom YOLOv8 was trained on a carefully selected dataset which contains fire and non-fire images and allows the system to detect flames and, where available, smoke in a variety of different environmental conditions. The arc-trained model was subsequently loaded into a python pipeline with the aid of open troubleshooting and the YOLO library to establish the continuous video maneuverability. The regions of fire are classified into bounding boxes and confidence scores and the system will automatically capture snapshots on detection thus giving incident logs. Evidence of experimental performance shows it can achieve low-latency using even moderately sized hardware (around 20 to 30 FPS), as well as being more robust in responding to changes in lighting, flame size, as well as background and generating fewer false alarms than traditional sensor-based systems.