An Embedded Portable Lightweight Platform for Real-Time Early Smoke Detection
"> Figure 1
<p>System overall design block diagram.</p> "> Figure 2
<p>Raspberry Pi 4B Microprocessor.</p> "> Figure 3
<p>Hardware Design Block Diagram.</p> "> Figure 4
<p>Example of filtering effect: (<b>a</b>,<b>b</b>): original image; (<b>c</b>,<b>d</b>): mean filtering; (<b>e</b>,<b>f</b>): median filtering; (<b>g</b>,<b>h</b>): Gaussian filtering.</p> "> Figure 5
<p>Histogram equalization of pixels.</p> "> Figure 6
<p>Histogram equalization: (<b>a</b>) original histogram of RGB channel, equalized histogram; (<b>b</b>) original image of RGB channel, equalized image; (<b>c</b>) original image, equalized image.</p> "> Figure 7
<p>Original LBP operator.</p> "> Figure 8
<p>Cascade classifier structure diagram.</p> "> Figure 9
<p>Email alarm interface.</p> "> Figure 10
<p>Remote connection interface.</p> "> Figure 11
<p>Positive sample examples.</p> "> Figure 12
<p>Negative sample examples.</p> "> Figure 13
<p>Example of detection effect where regions in green boxes are detected as smoke region: (<b>a</b>) 307th frame of test video 1 (<b>b</b>) 674th frame of test video 1 (<b>c</b>) 237th frame of test video 2 (<b>d</b>) 778th frame of test video 2 (<b>e</b>) 807th frame of test video 3 (<b>f</b>) 1414th frame of test video 3 (<b>g</b>) 454th frame of test video 7 (<b>h</b>) 584th frame of test video 7 (<b>i</b>) 698th frame of test video 8 (<b>j</b>) 770th frame of test video 8.</p> ">
Abstract
:1. Introduction
2. Platform Design
2.1. Development Board Platform Selection
2.2. Hardware Design for Video Input Module
2.3. Software Design for Image Processing Module
2.3.1. Denoising Process
2.3.2. Histogram Equalization
2.3.3. Cascading Classifier Based on LBP Features
- (1)
- LBP features
- (2)
- Adaboost strong classifier training
Algorithm 1 The Detailed Cascade Classifier Training Steps |
|
2.4. Email Alarm Module
2.5. Display Output Module
3. Case Studies and Discussion
3.1. Experimental Indicators
3.2. Test Result Discussion
4. Conclusions and Future Work
- (1)
- The Adaboost cascade classifier based on LBP features is applied in the developed platform to ensure the detection accuracy and real-time performance of the method.
- (2)
- With the iterative upgrade of the Raspberry Pi version, the configuration of hardware and software has been greatly improved to meet the needs of processing a large number of low-level image features extracted by the lightweight learning model.
- (3)
- The characteristics of Raspberry Pi, such as the small size, strong computing power, and abundant peripherals, provide a good platform for hardware development of smoke detection, which can be applied to more complex and changeable environments.
- (4)
- The GAB-based cascade classifier has better performance in training and testing, including shorter training time, high detection efficiency, and low missed detection rate, but the detection effect when the smoke concentration is low and the shape distribution is discrete could be improved.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- She, L. Application of Statistical Detection Method in Early Warning of Fire. Master’s Thesis, Huaqiao University, Quanzhou, China, 2008. Available online: https://kns.cnki.net/KCMS/detail/detail.aspx?dbname=CMFD2010&filename=2009015192.nh (accessed on 16 March 2010).
- Zhang, J. Research on Fire Recognition Algorithm Based on Video Image. Master’s Thesis, Jilin University, Changchun, China, 2019. Available online: https://kns.cnki.net/KCMS/detail/detail.aspx?dbname=CMFD201902&filename=1019162464.nh (accessed on 16 November 2019).
- Zhan, J.; Hu, Y.; Zhou, G.; Wang, Y.; Cai, W.; Li, L. A high-precision forest fire smoke detection approach based on ARGNet. Comput. Electron. Agric. 2022, 196, 106874. [Google Scholar] [CrossRef]
- Jiang, J.; Song, H. Smoke Sensing Alarm System Based on GSM SMS. Meas. Control. Technol. 2014, 33, 1–3. [Google Scholar] [CrossRef]
- Zhao, D. Design of smoke sensor based on MSP430F2012 microcontroller. Ind. Min. Autom. 2011, 37, 110–112. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=MKZD201108034&DbName=CJFQ2011 (accessed on 10 August 2011).
- Wang, W. Development of ionic smoke sensor. Min. Saf. Environ. Prot. 2004, 15–17, 86. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=ENER200406006&DbName=CJFQ2004 (accessed on 10 December 2004).
- Zhang, Y.; Liu, J. Design of fire alarm based on Raspberry Pi. Comput. Prod. Circ. 2018, 107, 2. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=WXXJ201802097&DbName=CJFQ2018 (accessed on 15 February 2018).
- Zhu, T.; Yang, Z.; Zhou, G.; Zhang, C.; Han, J. A Lightweight Network Flame and Smoke Detection Algorithm. Appl. Sci. Technol. 2021, 83–86. [Google Scholar] [CrossRef]
- Liu, J.; Wu, Y.; Gao, X.; Zhang, X. A Simple Method of Mapping Landslides Runout Zones Considering Kinematic Uncertainties. Remote Sens. 2022, 14, 668. [Google Scholar] [CrossRef]
- Aiguo, W.; Chunyan, D.; Ming, L. Fire Smoke Detection Based on Mixed Gaussian Model and Wavelet Transform. J. Instrum. 2008, 29, 1622–1626. [Google Scholar] [CrossRef]
- Yuan, F. A fast accumulative motion orientation model based on integral image for video smoke detection. Pattern Recognit. Lett. 2008, 29, 925–932. [Google Scholar] [CrossRef]
- Gunnar, H. Fire Plumes, Flame Height, and Air Entrainment; Springer: New York, NY, USA, 2016; pp. 396–428. [Google Scholar] [CrossRef]
- Ferrari, R.J.; Zhang, H.; Kube, C.R. Real-time detection of steam in video images. Pattern Recognit. 2007, 40, 1148–1159. [Google Scholar] [CrossRef]
- Yuan, F. A double mapping framework for extraction of shape-invariant features based on multi-scale partitions with AdaBoost for video smoke detection. Pattern Recognit. 2012, 45, 4326–4336. [Google Scholar] [CrossRef]
- Cruz, H.; Eckert, M.; Meneses, J.; Martínez, J.F. Efficient Forest Fire Detection Index for Application in Unmanned Aerial Systems (UASs). Sensors 2016, 16, 893. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Jia, Y.; Yuan, J.; Wang, J.; Fang, J.; Zhang, Q.; Zhang, Y. A saliency-based method for early smoke detection in video sequences. Fire Technol. 2016, 52, 1271–1292. [Google Scholar] [CrossRef]
- Emmy Prema, C.; Vinsley, S.S.; Suresh, S. Multi Feature Analysis of Smoke in YUV Color Space for Early Forest Fire Detection. Fire Technol. 2016, 52, 1319–1342. [Google Scholar] [CrossRef]
- Wang, S.; He, Y.; Yang, H.; Wang, K.; Wang, J. Video smoke detection using shape, color and dynamic features. J. Intell. Fuzzy Syst. Appl. Eng. Technol. 2017, 33, 305–313. [Google Scholar] [CrossRef]
- Song, S. Research on Forest Fire Detection Based on Improved GMM Algorithm. Master’s Thesis, Nanjing University of Posts and Telecommunications, Nanjing, China, 2021. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=1021853567.nh&DbName=CMFD2022. (accessed on 22 November 2021).
- Gao, Y.; Cheng, P. Forest fire smoke detection based on visual smoke root and diffusion model. Fire Technol. 2019, 55, 1801–1826. [Google Scholar] [CrossRef]
- Gao, Y.; Cheng, P. Full-Scale Video-Based Detection of Smoke from Forest Fires Combining ViBe and MSER Algorithms. Fire Technol. 2021, 57, 1637–1666. [Google Scholar] [CrossRef]
- Lou, L.; Chen, F.; Cheng, P. Smoke root detection from video sequences based on multi-feature fusion. J. For. Res. 2022, 1–16. [Google Scholar] [CrossRef]
- Hu, Y.; Wang, H.; Yao, T.; Gao, Y. Video Fire Smoke Recognition Based on Block Segmentation and SVM. Comput. Simul. 2012, 29, 170–173. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=JSJZ201209042&DbName=CJFQ2012. (accessed on 15 September 2012).
- Guo, W. Research on Forest Fire Smoke Image Detection Technology Based on Motion Features. Master’s Thesis, Beijing Forestry University, Beijing, China, 2012. Available online: https://kns.cnki.net/KCMS/detail/detail.aspx?dbname=CMFD2012&filename=1012350392.nh (accessed on 18 June 2012).
- Zhao, N.; Wang, X.W.; Yin, S. Research of fire smoke detection algorithm based on video. Int. J. Electron. Inf. Eng. 2021, 13, 1–9. [Google Scholar] [CrossRef]
- Cheng, S.; Ma, J.; Zhang, S. Smoke detection and trend prediction method based on deeplabv3+ and generative adversarial network. J. Electron. Imaging 2019, 28, 033006. [Google Scholar] [CrossRef]
- Wang, L. Research and Implementation of Intelligent Video Surveillance Firework Detection. Master’s Thesis, University of Electronic Science and Technology of China, Chengdu, China, 2011. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=1011073335.nh&DbName=CMFD2011 (accessed on 1 March 2011).
- Cai, R. Design of servo control system based on Arduino. Comput. Knowl. Technol. 2012, 3, 3719–3721. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=DNZS201215085&DbName=CJFQ2012 (accessed on 25 May 2012).
- Ge, H.; Xu, X.; Gu, Z.; Zhang, J. Design of an intelligent car obstacle avoidance system based on Arduino. Mod. Electron. Technol. 2014, 37, 118–120. [Google Scholar] [CrossRef]
- Cui, Y.; Zhang, W.; Bai, Y. An Arduino-based smart home control system. Electron. Technol. Appl. 2014, 40, 123–125. [Google Scholar] [CrossRef]
- Ding, G.; Chen, X. Design of License Plate Recognition System Based on ARM Cortex-A8. Appl. Single Chip Microcomput. Embed. Syst. 2021, 21, 83–85. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=DPJY202111030&DbName=CJFQ2021 (accessed on 6 April 2014).
- Dai, Z. Face Recognition System Based on Gabor Response Coding. Master’s Thesis, Shenzhen University, Shenzhen, China, 2016. Available online: https://kns.cnki.net/KCMS/detail/detail.aspx?dbname=CMFD201701&filename=1016763661.nh (accessed on 1 November 2021).
- Gao, F.; Chen, X.; Chen, W. Video detection and tracking system based on Raspberry Pi B+ microprocessor. Telev. Technol. 2015, 39, 105–108. [Google Scholar] [CrossRef]
- Cao, Z.; Jing, J.; Su, Z.; Zhang, W. Research on defect detection of dyed fabrics based on deep learning based on Raspberry Pi. Cotton Text. Technol. 2019, 47, 11–15. Available online: https://kns.cnki.net/kcms/detail/detail.aspx?FileName=MFJS201901004&DbName=CJFQ2019 (accessed on 10 January 2019).
- Chen, P.; Chen, C.; Li, P.; Niu, H.; Zhou, Q. Design and implementation of Raspberry Pi 3B+ blind guidance system. J. Xi’an Univ. Technol. 2020, 40, 305–309. [Google Scholar] [CrossRef]
- Liu, Y.; Song, R.; Wang, Y.; Bai, L. Design of real-time communication system for portable smart glasses based on Raspberry Pi. J. Northeast. Electr. Power Univ. 2019, 39, 81–85. [Google Scholar] [CrossRef]
- Wei, B.; Chen, X.; Zhang, H.; Yang, J.; Li, D. Remote intelligent monitoring and alarm system for the elderly living alone based on Raspberry Pi. Electron. World 2017, 39, 20–22. [Google Scholar] [CrossRef]
- Wang, P.; Wang, L.; Leung, H.; Zhang, G. Super-Resolution Mapping Based on Spatial-Spectral Correlation for Spectral Imagery. IEEE Trans. Geosci. Remote Sens. 2021, 59, 2256–2268. [Google Scholar] [CrossRef]
- Ojala, T.; Pietikainen, M.; Maenpaa, T. Multiresolution gray-scale and rotation invariant texture classification with local binary patterns. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 971–987. [Google Scholar] [CrossRef]
- [Sample Fire and Smoke Video Clips]. Available online: http://signal.ee.bilkent.edu.tr/VisiFire/Demo/SampleClips.html (accessed on 17 June 2022).
- [Video Smoke Detection]. Available online: http://staff.ustc.edu.cn/~yfn/vsd.html (accessed on 17 June 2022).
- [CVPR Lab. at Keimyung University]. Available online: https://cvpr.kmu.ac.kr/ (accessed on 17 June 2022).
Development Board | Arduino Uno | Raspberry Pi | BeagleBone Black |
---|---|---|---|
Version | R3 | 4B | Rev C |
Price | $20 | $150 | $100 |
Size | 53 × 68 | 58 × 88 | 53 × 86 |
Processor | ATmega328P | ARMcortex-A72 | AM335x |
Clock frequency | 16 MHz | 1.4 GHz | 1 GHz |
RAM | 2 KB | 1/2/4 GB | 512 MB |
Storage memory | 32 KB | (SD Card) | 4 GB (microSD) |
Input voltage | 7–12 V | 5 V | 5 V |
Minimum power | 20 mA (0.14 W) | 3 A (15 W) | 350 mA (1.75 W) |
GPIO | 14 | 40 | 88 |
Analog input | 6–10 bit | N/A | 7–12 bit |
UART | 1 | 1 | 5 |
Dev IDE | Arduino Tool | Python /Scratch/Squeak/Linux | Python/Scratch/Squeak/Linux/Cloud9 |
USB Master | N/A | 2 USB2.0, 2 USB3.0 | 2 USB2.0 |
video output | N/A | HDMI, Composite | N/A |
Audio output | N/A | HDMI, Analog | Analog |
Test Video | Resolution | Total Frames | Smoke Frames | Illustration |
---|---|---|---|---|
video test1 | 320 × 240 | 900 | 835 | A smoking device is thrown to the ground and releases white smoke, smoke movement is chaotic, and there are distractors such as spilled water in the middle. |
video test2 | 320 × 240 | 1200 | 1050 | Simulate forest fire smoke, and create smoke among leaves. Smoke moves roughly up and to the right, and the background leaves frequently shake. |
video test3 | 320 × 240 | 2326 | 2326 | In mountainous areas, the direction of smoke movement is to the upper right and the distance is relatively short. The picture is dark. |
video test4 | 320 × 240 | 4536 | 0 | Pedestrians in the background, no smoke |
video test5 | 320 × 240 | 1000 | 0 | Cars on the road, no smoke |
video test6 | 320 × 240 | 894 | 0 | Large areas of continuously shaking leaves |
video test7 | 320 × 240 | 606 | 606 | Mountainous areas, smoke is far away and the brightness of the picture is high. |
video test8 | 320 × 240 | 2886 | 2886 | Mountainous area, the direction of smoke movement is more confusing, and the picture has moving objects such as firefighting fliers, far away. |
Smoke Classification | Actual Situation | ||
---|---|---|---|
Smoke | Non-Smoke | ||
Predicted results | Smoke | TP | FP |
Non-Smoke | FN | TN |
Number of Positive Samples | Number of Negative Samples | Number of Stages | PrecalcValBufSize | PrecalcIdxBufSize |
---|---|---|---|---|
2800 | 4000 | 20 | 1024 MB | 1024 MB |
Stage_Type | Feature_Type | Width | Height |
---|---|---|---|
BOOST | LBP | 35 | 35 |
Boosted Type | Min_Hit_Rate | Max_False_Alarm_Rate | Weight_Trim_Rate | Max_Depth | Max_Weak_Count |
---|---|---|---|---|---|
GAB/DAB | 0.999 | 0.5 | 0.95 | 1 | 100 |
Test Video | Adaboost Type | FPS | Test Results | |||||||
---|---|---|---|---|---|---|---|---|---|---|
TP | TN | FN | FP | ACC (%) | TPR (%) | FPR (%) | FNR (%) | |||
video_test1 | LBP + GAB | 28.52 | 410 | 33 | 6 | 1 | 98.44 | 98.56 | 2.94 | 1.44 |
LBP + DAB | 17.81 | 279 | 31 | 137 | 3 | 68.89 | 67.07 | 8.82 | 32.93 | |
video_test2 | LBP + GAB | 25.80 | 365 | 84 | 150 | 1 | 74.83 | 70.87 | 1.18 | 29.13 |
LBP + DAB | 12.65 | 486 | 67 | 29 | 18 | 92.17 | 94.37 | 21.18 | 5.63 | |
video_test3 | LBP + GAB | 23.30 | 1150 | \ | 13 | \ | 98.88 | 98.88 | \ | 1.12 |
LBP + DAB | 12.00 | 1163 | \ | 0 | \ | 100 | 100 | \ | 0 | |
video_test4 | LBP + GAB | 29.68 | \ | 2244 | \ | 24 | 98.94 | \ | 1.06 | \ |
LBP + DAB | 14.96 | \ | 1831 | \ | 437 | 80.73 | \ | 19.27 | \ | |
video_test5 | LBP + GAB | 28.34 | \ | 438 | \ | 62 | 87.60 | \ | 12.40 | \ |
LBP + DAB | 13.42 | \ | 300 | \ | 200 | 60.00 | \ | 40.00 | \ | |
video_test6 | LBP + GAB | 26.72 | \ | 398 | \ | 49 | 89.04 | \ | 10.96 | \ |
LBP + DAB | 20.70 | \ | 337 | \ | 110 | 75.39 | \ | 24.61 | \ | |
video_test7 | LBP + GAB | 22.34 | 300 | \ | 3 | \ | 99.01 | 99.01 | \ | 0.99 |
LBP + DAB | 11.50 | 303 | \ | 0 | \ | 100 | 100 | \ | 0 | |
video_test8 | LBP + GAB | 27.24 | 1438 | \ | 5 | \ | 99.65 | 99.65 | \ | 0.35 |
LBP + DAB | 15.79 | 1337 | \ | 106 | \ | 92.65 | 92.65 | \ | 7.35 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. 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
Liu, B.; Sun, B.; Cheng, P.; Huang, Y. An Embedded Portable Lightweight Platform for Real-Time Early Smoke Detection. Sensors 2022, 22, 4655. https://doi.org/10.3390/s22124655
Liu B, Sun B, Cheng P, Huang Y. An Embedded Portable Lightweight Platform for Real-Time Early Smoke Detection. Sensors. 2022; 22(12):4655. https://doi.org/10.3390/s22124655
Chicago/Turabian StyleLiu, Bowen, Bingjian Sun, Pengle Cheng, and Ying Huang. 2022. "An Embedded Portable Lightweight Platform for Real-Time Early Smoke Detection" Sensors 22, no. 12: 4655. https://doi.org/10.3390/s22124655
APA StyleLiu, B., Sun, B., Cheng, P., & Huang, Y. (2022). An Embedded Portable Lightweight Platform for Real-Time Early Smoke Detection. Sensors, 22(12), 4655. https://doi.org/10.3390/s22124655