A Smart Fire Detector IoT System with Extinguisher Class Recommendation Using Deep Learning
Abstract
:1. Introduction
- Traditional smoke detectors determine the presence of fire from smoke. If someone is cooking where smoke is generated, these smoke detectors produce false alarms [2]. In the proposed fire detector device, fire is detected using thermal camera images with a higher confidence level, and thus false alarms can be reduced.
- The smoke detectors have a high response time as smoke needs to travel to the detector. The proposed thermal-camera-based fire detector has a lower response time as light travels faster than smoke.
- When smoke is detected, traditional smoke detectors produce alarm sounds. If there is no one in the house and the fire starts from a leaking gas pipe or electrical short-circuits, then no one will hear the sound, and the fire will spread. In the proposed device, notifications will be sent to the users and the emergency responders using the Internet, so people will be notified even if they are away from home—thus, it will give peace of mind.
- Fire extinguishers are classified as types A, B, C, D, or K [3]. It is crucial to use the right type of extinguisher for the specific class of fire to avoid personal injury or damage to property. The wrong type of extinguisher could cause electrical shocks or explosions, or spread the fire [4]. The proposed device recognizes the object that is burning and suggests the class of fire extinguisher needed and then sends a notification with this information to emergency responders. Thus, the emergency responders know the type of fire extinguisher needed and can arrive at the site with the right fire extinguisher—thus, harm to life and property can be reduced.
2. Literature Review
3. Materials and Methods
3.1. Detection Algorithms
3.1.1. Object Detection
3.1.2. Fire Detection
3.1.3. Burning Object Detection
3.1.4. Extinguisher Recommendation
3.2. Architecture of the Prototype System
3.2.1. Smart Fire Detector Device
Hardware
Firmware
3.2.2. Software for the Central Server
Structured Query Language (SQL) Database
Processing Data within a TCP Server
Fire Event Searching
3.2.3. App for Smartphone
4. Results
4.1. Simulation Results
4.2. Prototype Testing Results
- Testing fire on a known object: During testing, fires were set in front of the objects that are known to the object detector as listed in [18]. Testing was carried out for the couch and TV as shown in Figure 13a,b, respectively. The device successfully detected the fire and the class of the burning object and notified the central server within a second. Upon receiving the notification data from the device, the central server successfully marked the location of the fire event on the map, displayed the assigned user and device information in the event log, saved the event data in the database, generated warning sounds, and sent smartphone notifications to the assigned user and all the emergency responders. Some screenshots of the central server software and smartphone app after a fire event are shown in Figure 14 and Figure 15. Here, we see that the proposed system correctly identified the objects on fire, such as the couch and TV, and also successfully suggested the fire extinguisher class, such as A for the couch and C for the TV.
- Testing fire on an unknown object: When the fire was on an unknown object as shown in Figure 13c, such as the wooden TV stand, it detected fire but did not recommend fire extinguisher class. The notification was successfully sent to the smartphones about the fire, without recommending a fire extinguisher.
- Testing fire on an exception object: When the fire was on an exception object, as shown in Figure 13d, such as on an oven where a high temperature is expected, the system neither considered it fire nor sent any notification.
- Testing with multiple users and devices: The system was also tested with multiple emergency responders, multiple users, and devices having many-to-many relationships, and notifications were sent successfully as expected to several devices.
5. Discussion and Future Work
6. Conclusions
Funding
Data Availability Statement
Conflicts of Interest
References
- House Fire Statistics. Available online: https://www.thezebra.com/resources/research/house-fire-statistics/ (accessed on 30 August 2023).
- The Reasons for Smoke Detector False Alarms. Available online: https://www.x-sense.com/blogs/tips/the-common-reasons-for-smoke-detectors-false-alarms (accessed on 30 August 2023).
- Choosing and Using Fire Extinguishers. Available online: https://www.usfa.fema.gov/prevention/home-fires/prepare-for-fire/fire-extinguishers/ (accessed on 30 August 2023).
- Different Types of Fire Extinguishers for Each Kind of Fire. Available online: https://weeklysafety.com/blog/fire-extinguisher-types/ (accessed on 30 August 2023).
- Nest Protect smoke and CO Alarm. Available online: https://store.google.com/product/nest_protect_2nd_gen?hl=en-US (accessed on 1 September 2023).
- Li, P.; Zhao, W. Image fire detection algorithms based on convolutional neural networks. Case Stud. Therm. Eng. 2020, 19, 100625. [Google Scholar] [CrossRef]
- Pincott, J.; Tien, P.W.; Wei, S.; Calautit, J.K. Indoor fire detection utilizing computer vision-based strategies. J. Build. Eng. 2022, 61, 105154. [Google Scholar] [CrossRef]
- Samarth, G.; Bhowmik, C.A.N.; Breckon, T.P. Experimental Exploration of Compact Convolutional Neural Network Architectures for Non-Temporal Real-Time Fire Detection. In Proceedings of the 2019 18th IEEE International Conference on Machine Learning and Applications (ICMLA), Boca Raton, FL, USA, 16–19 December 2019; pp. 653–658. [Google Scholar]
- Celik, T. Fast and Efficient Method for Fire Detection Using Image Processing. ETRI J. 2010, 32, 881–890. [Google Scholar] [CrossRef]
- Çelik, T.; Özkaramanlı, H.; Demirel, H. Fire and smoke detection without sensors: Image processing based approach. In Proceedings of the 2007 15th European Signal Processing Conference, Poznan, Poland, 3–7 September 2007; pp. 1794–1798. [Google Scholar]
- Ma, Y.; Feng, X.; Jiao, J.; Peng, Z.; Qian, S.; Xue, H.; Li, H. Smart Fire Alarm System with Person Detection and Thermal Camera. In ICCS 2020. Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2020; Volume 12143, pp. 353–366. [Google Scholar]
- Jetson Nano Developer Kit. Available online: https://developer.nvidia.com/embedded/jetson-nano-developer-kit (accessed on 6 September 2023).
- iLAND Dollhouse Furniture and Accessories. Available online: https://www.amazon.com/Dollhouse-Furniture-Accessories-Bookshelves-Decorations/dp/B09QM4WMDP?th=1 (accessed on 6 September 2023).
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In European Conference on Computer Vision (ECCV), Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2016; Volume 9905, pp. 21–37. [Google Scholar]
- Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the Inception Architecture for Computer Vision. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 2818–2826. [Google Scholar]
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In European Conference on Computer Vision (ECCV), Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2014; Volume 8693, pp. 740–755. [Google Scholar]
- COCO Dataset. Available online: https://cocodataset.org/ (accessed on 5 September 2023).
- SSD COCO Class Labels. Available online: https://github.com/dusty-nv/jetson-inference/blob/master/data/networks/ssd_coco_labels.txt (accessed on 5 September 2023).
- Babbar, G.; Bajaj, R. Homography Theories Used for Image Mapping: A Review. In Proceedings of the 10th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), Noida, India, 13–14 October 2022; pp. 1–5. [Google Scholar]
- Feature Matching + Homography to Find Objects. Available online: https://docs.opencv.org/3.4/d1/de0/tutorial_py_feature_homography.html (accessed on 7 September 2023).
- Homography Examples Using OpenCV (Python/C ++). Available online: https://learnopencv.com/homography-examples-using-opencv-python-c/ (accessed on 7 September 2023).
- FLIR Lepton 2.5—Thermal Imaging Module. Available online: https://www.sparkfun.com/products/16465 (accessed on 13 September 2023).
- PureThermal 2 FLIR Lepton Smart I/O Module. Available online: https://www.digikey.com/en/products/detail/groupgets-llc/PURETHERMAL-2/9866290 (accessed on 13 September 2023).
- Waveshare 8MP IMX219-77 Camera Compatible with NVIDIA Jetson Nano Developer Kit. Available online: https://www.amazon.com/IMX219-77-Camera-Developer-Resolution-Megapixels/dp/B07S2QDT4V (accessed on 13 September 2023).
- Wireless NIC Module for Jetson Nano. Available online: https://www.amazon.com/Wireless-AC8265-Wireless-Developer-Support-Bluetooth/dp/B07V9B5C6M/ (accessed on 13 September 2023).
- Bluetooth Device Configure. Available online: https://manpages.ubuntu.com/manpages/trusty/man8/hciconfig.8.html (accessed on 13 September 2023).
- PyBluez. Available online: https://pybluez.readthedocs.io/en/latest/ (accessed on 13 September 2023).
- Wi-Fi Wrapper Library. Available online: https://pypi.org/project/wifi-wrapper/ (accessed on 13 September 2023).
- C++/CUDA/Python Multimedia Utilities for NVIDIA Jetson. Available online: https://github.com/dusty-nv/jetson-utils (accessed on 14 September 2023).
- Boson Video and Image Capture Using OpenCV 16-Bit Y16. Available online: https://flir.custhelp.com/app/answers/detail/a_id/3387/~/boson-video-and-image-capture-using-opencv-16-bit-y16 (accessed on 14 September 2023).
- Locating Objects with DetectNet. Available online: https://github.com/dusty-nv/jetson-inference/blob/master/docs/detectnet-console-2.md#pre-trained-detection-models-available (accessed on 14 September 2023).
- Image Manipulation with CUDA. Available online: https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-image.md (accessed on 14 September 2023).
- Jetson Inference Library Documentation. Available online: https://rawgit.com/dusty-nv/jetson-inference/master/docs/html/python/jetson.inference.html#detectNet, (accessed on 14 September 2023).
- OpenCV Contours. Available online: https://docs.opencv.org/3.4/d4/d73/tutorial_py_contours_begin.html (accessed on 14 September 2023).
- Socket—Low-Level Networking Interface. Available online: https://docs.python.org/3/library/socket.html (accessed on 14 September 2023).
- Date and Time Library. Available online: https://docs.python.org/3/library/datetime.html (accessed on 14 September 2023).
- HTTP Server. Available online: https://docs.python.org/3/library/http.server.html (accessed on 14 September 2023).
- SQL Server 2022 Express. Available online: https://www.microsoft.com/en-us/sql-server/sql-server-downloads (accessed on 18 September 2023).
- Android Identifiers. Available online: https://developer.android.com/training/articles/user-data-ids (accessed on 18 September 2023).
- FCM Registration Token. Available online: https://firebase.google.com/docs/cloud-messaging/manage-tokens#ensuring-registration-token-freshness (accessed on 18 September 2023).
- TCP Server. Available online: https://www.codeproject.com/articles/488668/csharp-tcp-server (accessed on 18 September 2023).
- How to Port Forward. Available online: https://www.noip.com/support/knowledgebase/general-port-forwarding-guide/ (accessed on 18 September 2023).
- How Do I Open a Port on Windows Firewall? Available online: https://www.howtogeek.com/394735/how-do-i-open-a-port-on-windows-firewall/ (accessed on 18 September 2023).
- Thompson, B. C# Database Connection: How to Connect SQL Server. Available online: https://www.guru99.com/c-sharp-access-database.html (accessed on 18 September 2023).
- GMap.NET—Maps for Windows. Available online: https://github.com/judero01col/GMap.NET (accessed on 18 September 2023).
- FcmSharp. Available online: https://github.com/bytefish/FcmSharp (accessed on 18 September 2023).
- GeoLocation. Available online: https://www.b4x.com/android/forum/threads/geolocation.99710/#content (accessed on 18 September 2023).
- Firebase Cloud Messaging. Available online: https://firebase.google.com/docs/cloud-messaging (accessed on 18 September 2023).
- FirebaseNotifications—Push messages/Firebase Cloud Messaging (FCM). Available online: https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023.148715/ (accessed on 18 September 2023).
- TensorFlow 1 Detection Model Zoo. Available online: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1_detection_zoo.md#coco-trained-models (accessed on 15 November 2023).
- Jetson-Stats. Available online: https://rnext.it/jetson_stats/ (accessed on 5 October 2023).
- The SIFT Keypoint Detector. Available online: https://www.cs.ubc.ca/~lowe/keypoints/ (accessed on 11 October 2023).
P. Li et al. [6] | J. Pincott et al. [7] | G. Samarth et al. [8] | T. Celik et al. [9] | H. Demirel et al. [10] | Y. Ma et al. [11] | Proposed | |
---|---|---|---|---|---|---|---|
Fire detection method | From images using CNN | From images using CNN | From images using CNN | Image processing | Image processing with fuzzy logic | Thermal camera | Thermal camera |
Fire detection accuracy | 83.7% | 95% | 96% | 99.88% | 99% | 100% | 100% |
The object on fire detection | No | No | No | No | No | No | Yes, using ssd-inception-v2 |
Embedded system implementation | No | No | No | No | No | Yes | Yes |
Record fire scene video with timestamp | No | No | No | No | No | Yes | Yes |
Plot on map | No | No | No | No | No | No | Yes |
User and device configuration | No | No | No | No | No | No | Yes |
Database implementation | No | No | No | No | No | No | Yes |
Smartphone notification | No | No | No | No | No | Yes | Yes |
Extinguisher recommendation | No | No | No | No | No | No | Yes |
Model. | Latency (ms) | mAP |
---|---|---|
SSD mobilenet_v1 | 30 | 21 |
SSD mobilenet v2 | 31 | 22 |
SSD mobilenet v2 quantized | 29 | 22 |
SSD inception v2 | 42 | 24 |
SSD resnet 50 fpn | 76 | 35 |
Hardware Part | Power |
---|---|
Jetson Nano’s CPU | 1.2 W |
Jetson Nano’s GPU | 3 W |
Entire Device | 6.6 W |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Khan, T. A Smart Fire Detector IoT System with Extinguisher Class Recommendation Using Deep Learning. IoT 2023, 4, 558-581. https://doi.org/10.3390/iot4040024
Khan T. A Smart Fire Detector IoT System with Extinguisher Class Recommendation Using Deep Learning. IoT. 2023; 4(4):558-581. https://doi.org/10.3390/iot4040024
Chicago/Turabian StyleKhan, Tareq. 2023. "A Smart Fire Detector IoT System with Extinguisher Class Recommendation Using Deep Learning" IoT 4, no. 4: 558-581. https://doi.org/10.3390/iot4040024