Research on Black Smoke Detection and Class Evaluation Method for Ships Based on YOLOv5s-CMBI Multi-Feature Fusion
Abstract
:1. Introduction
2. Relevant Theories
2.1. Ship Emission Detection and Grading Process
2.2. YOLOv5s-CMBI Modelings
2.2.1. Overall Structure of the YOLOv5s-CMBI Algorithm
2.2.2. Convolutional Block Attention Module
2.2.3. Improvement Strategy for Multi-Feature Fusion Mechanism
- (1)
- Reduction in feature layers: The original BiFPN structure’s input feature nodes were simplified to adapt to the overall YOLOv5s base model architecture. Consequently, three effective input feature layers were retained to avoid increasing the network’s complexity.
- (2)
- Elimination of unidirectional input nodes: low-contributing input nodes were removed to maintain a streamlined network structure.
- (3)
- Augmentation of feature fusion paths: Jump connections were introduced between input nodes and output nodes of the same scale, thereby enhancing feature reuse to the maximum extent within the limitations of the network structure. This section may be divided by subheadings. It should provide a concise and precise description of the experimental results, their interpretation, as well as the experimental conclusions that can be drawn.
- (1)
- Firstly, let represent the feature map at level 3 resolution. Adjust the features and from other levels n = 1,2 (n ≠ l) to the same dimensions as .
- (2)
- Use and to denote feature vectors at position (I, j) adjusted from level 1 to level 3, and from level 2 to level 3, respectively. The fused output vector at level 3 is calculated using the following Equation (11):
2.2.4. GIoU_Loss Function
2.3. The Black Smoke Assessment Method Based on Ringelmann Darkness
2.3.1. Quantitative Evaluation Process of Ship’s Black Smoke
2.3.2. Establishment of Evaluation Dataset
2.3.3. Image Preprocessing
2.3.4. Image Segmentation
Improved k-Means Algorithm
- (1)
- Determining the number of clusters
- (2)
- Initial cluster center selection
- (1)
- Determination of initial peaks
- (2)
- Elimination of ineffective peaks
- (3)
- Determination of initial cluster centers
2.3.5. Ringerman Blackness Grading
2.3.6. Ringerman Blackness Value Calculationn
- (1)
- Calculate the weighted average grayscale of the pixels in the exhaust gas area and the weighted average grayscale of the pixels in the background area. Then, compute the ratio between these two values.
- (2)
- Scale the calculated ratio to cover a range of 256 grayscale levels, aligning it with the Ringerman Blackness grading scale as presented in Table 1.
- (3)
- Determine the Ringerman Blackness grade of the ship emission based on the scaled ratio. A higher Ringerman Blackness grade indicates a more severe level of pollution.
3. Experimental Analysis and Verification
3.1. Establishment of Ship Black Smoke Target Detection Dataset and Model Comparison Analysis
3.1.1. Ringerman Blackness Value Calculationn
- (1)
- Dataset selection and augmentation
- (2)
- Haze synthesis
- (3)
- Integration into training and testing sets
3.1.2. Experimental Setup
3.1.3. Model Evaluation Metrics
3.1.4. Analysis of Comparative Results of Modeling Experiments
3.2. Experimental Analysis of YOLOv5s-CMBI Modeling
3.2.1. Analysis of Training Results
3.2.2. Comparative Analysis of the Improved Network Model
3.2.3. Ablation Experiment Analysis
3.2.4. Comparative Analysis of Different Network Algorithms
3.2.5. YOLOv5s-CMBI Model Robustness Test Analysis
3.3. Evaluation Method of Black Smoke on Ships Based on Ringelmann Blackness
3.3.1. Image Dataset Production
3.3.2. Experiments to Improve the k-means Algorithm
- (1)
- Retaining meaningful peaks
- (2)
- Eliminating insignificant peaks
3.3.3. Comparative Analysis of Image Segmentation Effect
3.3.4. Analysis of Blackness Value Test Results of Ship Exhaust
4. Conclusions
- (1)
- A ship exhaust plume detection dataset with diverse backgrounds and varying environments is constructed by integrating data from different sources. Some of the data undergo standard optical model aerosolization processing.
- (2)
- A lightweight deep learning model named YOLOv5s-CMBI is proposed, which includes features such as a convolutional attention mechanism (CBAM), lightweight weighted bi-directional feature pyramid network (Tiny-BiFPN), ASFF module, and EIoU_Loss for precise detection. Comparative experiments demonstrate that the model achieves a detection accuracy of 95.9%, with increased robustness under low-visibility environmental interference.
- (3)
- To mitigate the influence of environmental factors on ship exhaust plume darkness evaluation, a k-means-based ship exhaust plume segmentation method and a Ringerman Blackness-based ship exhaust plume darkness level evaluation method are introduced. Experimental results show that the proposed methods achieve an accuracy of 92.1% in estimating ship exhaust plume darkness levels.
- (1)
- From the experimental results, the blackness evaluation accuracy of the ship’s black smoke detection and evaluation method for non-ideal environment need to be improved. The accuracy of blackness evaluation is not high in the case of complex background area; how to improve its evaluation accuracy, such as replacing the reference system of the evaluation method so that it can better reflect the blackness level of the real ship’s black smoke, is one of the next research directions.
- (2)
- While this study simulates ship exhaust plume datasets under conditions of haze or fog using standard optical models, the performance of darkness level evaluation is not ideal under very-low-visibility conditions. Future work could explore image enhancement methods such as dark channel prior dehazing and deep learning-based dehazing to better represent the actual darkness of ship exhaust plumes.
- (3)
- The accuracy of darkness evaluation is lower in scenarios with complex backgrounds. Improving the accuracy could involve considering changing the evaluation method’s reference system to better reflect the darkness level of ship exhaust plumes in such scenarios.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Wang, Y. The Battle to Defend Blue Sky on Water Goes Deeper—Yang Xinzhai, Deputy Director General of the Maritime Safety Bureau of the Ministry of Transport, Explains the Implementation Plan of Air Pollutant Emission Control Area for Ships. Transp. Constr. Manag. 2019, 01, 80–82. [Google Scholar]
- Li, J.F.; Dai, Y.T. International experience and China’s practice of gaseous pollution control in low emission port. Mar. Environ. Sci. 2021, 40, 16–23+33. [Google Scholar]
- Dimitropoulos, K.; Barmpoutis, P.; Grammalidis, N. Higher order linear dynamical systems for smoke detection in video sur-veillance applications. IEEE Trans. Circuits Syst. Video Technol. 2016, 27, 1143–1154. [Google Scholar] [CrossRef]
- Sun, R.; Chen, X.; Chen, B. Smoke detection for videos based on adaptive learning rate and linear fitting algorithm. In Proceedings of the Chinese Automation Congress (CAC) 2018, Xi’an, China, 30 November–2 December 2018; pp. 1948–1954. [Google Scholar]
- Tanveer, M. Fuzzy Logic in Surveillance Big Video Data Analysis. ACM Comput. Surv. 2021, 54, 1–33. [Google Scholar]
- Muhammad, K.; Ahmad, J.; Baik, S.W. Early fire detection using convolutional neural networks during surveillance for effective disaster management. Neurocomputing 2018, 288, 30–42. [Google Scholar]
- Muhammad, K.; Ahmad, J.; Mehmood, I.; Rho, S.; Baik, S.W. Convolutional neural networks based fire detection in surveillance videos. IEEE Access 2018, 6, 18174–18183. [Google Scholar]
- Cao, Y.; Lu, C.; Lu, X.; Xia, X. A Spatial Pyramid Pooling Convolutional Neural Network for Smoky Vehicle Detection. In Proceedings of the 37th Chinese Control Conference (CCC), Wuhan, China, 25–27 July 2018; Volume 25, pp. 9170–9175. [Google Scholar]
- Tao, H.; Lu, X. Smoke vehicle detection based on robust codebook model and robust volume local binary count patterns. Image Vis. Comput. 2019, 86, 17–27. [Google Scholar]
- Liu, C.C.; Liu, P.J.; Ji, Y.Y. Research on forest fire smoke detection technology based on video region dynamic features. J. Beijing For. Univ. 2021, 43, 10–19. [Google Scholar]
- Guo, G.Y. Research on Deep Learning Based Detection Method for Black Smoke Vehicles. Master’s Thesis, Nanjing University of Science and Technology, Nanjing, China, 2020. [Google Scholar]
- Wu, B.F.; Ye, B.; Wang, S.M. Smoky vehicle detection based on two-stream convolutional neural networks. J. Hefei Univ. Technol. 2022, 45, 198–202. [Google Scholar]
- Wang, X.; Jiang, A.; Wang, Y. A segmentation method of smoke in forest-fire image based on FBM and region growing. In Proceedings of the 4th International Workshop on Chaos Fractals Theories and Applications, Hangzhou, China, 19–22 October 2011; pp. 390–393. [Google Scholar]
- Jia, Y.; Lin, G.H.; Wang, J.J.; Fang, J.; Zhang, Y.M. Early Video Smoke Segmentation Algorithm Based on Saliency Detection and Gaussian Mixture Model. Comput. Eng. 2016, 42, 206–209+217. [Google Scholar]
- Zhang, N.; Wang, H.Q.; Hu, Y. Smoke Image Segmentation Algorithm Based on Rough Set and Region Growin. J. Front. Comput. Sci. Technol. 2017, 11, 1296–1304. [Google Scholar]
- Filonenko, A.; Hernández, D.C.; Jo, K.H. Fast Smoke Detection for Video Surveillance Using CUDA. IEEE Trans. Ind. Inform. 2018, 14, 725–733. [Google Scholar] [CrossRef]
- Li, S.; Shi, Y.S.; Wang, B.; Zhou, Z.Q.; Wang, H.L. Video Smoke Detection Based on Color Transformation and MSER. Trans. Beijing Inst. Technol. 2016, 36, 1072–1078. [Google Scholar]
- Yuan, F.N.; Zhang, L.; Xia, X.; Huang, Q.H.; Li, X.L. A Wave-Shaped Deep Neural Network for Smoke Density Estimation. IEEE Trans. Image Process. 2019, 29, 2301–2313. [Google Scholar] [CrossRef] [PubMed]
- Deng, S.Q.; Ding, H.; Yang, M.; Liu, S.; Chen, J.Z. Fire Smoke Detection in Highway Tunnels Based on Video Images. Tunn. Constr. 2022, 42, 291–302. [Google Scholar]
- Ma, Z.F.; Cao, Y.G.; Song, L.; Hao, F.; Zhao, J.X. A New Smoke Segmentation Method Based on Improved Adaptive Density Peak Clustering. Appl. Sci. 2023, 13, 1281. [Google Scholar] [CrossRef]
- Sun, W.J.; Qi, J.C. The analysis of emission standard in boiler’s air pollutants. Recycl. Resour. Circ. Econ. 2017, 10, 29–31. [Google Scholar]
- Liang, J.P.; Wen, G.J.; Gan, L.; Wu, D.; Wang, Y.D. Machine vision-based smoke measurement of in-use diesel vehicles. Comput. Meas. Control. 2019, 27, 32–35+45. [Google Scholar]
- Xue, M.; Xun, J.P.; Liang, H.X.; Ai, Y.; Zhou, L.L.; Qiu, Z.B. Design of automobile exhaust detection system based on background difference. Appl. Electron. Tech. 2019, 45, 85–88. [Google Scholar]
- Tao, H.J. Research on Feature Extraction Method of Vehicle Smoke. Ph.D. Thesis, Southeast University, Nanjing, China, 2020. [Google Scholar]
- Hu, J.B.; Deng, M.T.; Hu, W.; Xie, X.; Zhang, H.L.; Peng, S.T. Improved Ringmann Blackness Method for the Detection of Ships’ Black Smoke. China Marit. Saf. 2022, 10, 51–54. [Google Scholar]
- Zhang, R.F.; Dong, F.; Cheng, X.H. Improvement of YOLOv5s algorithm for non-motorized helmet wearing detection. J. Henan Univ. Sci. Technol. (Nat. Sci.) 2023, 44, 44–53+7. [Google Scholar]
- Li, X.; Li, W.; Ren, D.; Zhang, H.; Wang, M.; Zuo, W. Enhanced Blind Face Restoration with Multi-Exemplar Images and Adaptive Spatial Feature Fusion. In Proceedings of the 2020 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 14–19 June 2020; pp. 235–245. [Google Scholar]
- Wang, S.Z.; Zhang, Y.F.; Hsieh, T.H.; Liu, W.; Yin, F.; Liu, B. Fire situation detection method for unmanned fire-fighting vessel based on coordinate attention structure-based deep learning network. Ocean. Eng. 2022, 266, 113208. [Google Scholar]
- Dai, Z.; Xie, J.; Jiang, M. A coupled peridynamics–smoothed particle hydrodynamics model for fracture analysis of fluid–structure interactions. Ocean Eng. 2023, 279, 114582. [Google Scholar]
- Wang, D.J.; Liu, L.S.; Yuan, Y.; Yang, H.; Zhou, Y.X.; Duan, R.Z. Design and key heating power parameters of a newly-developed household biomass briquette heating boiler. Renew. Energy 2020, 147, 1371–1379. [Google Scholar] [CrossRef]
- Chen, Y.Y.; Wu, C.Y.; Guan, Z.H. Rice canopy image segmentation based on statistical histogram k-means clustering. J. Chongqing Univ. Posts Telecommun. 2019, 31, 279–284. [Google Scholar]
Blackness Rating | Blackness Value (A) | Rules for Calculating the Blackness of an Image (Keep One Place) |
---|---|---|
Level 1 | 205 | 155 < A ≤ 205 1 + (205-A) / (205-155) |
Level 2 | 155 | 102 < A ≤ 155 2 + (155-A) / (155-102) |
Level 3 | 102 | 51 < A ≤ 102 3 + (102-A) / (102-51) |
Level 4 | 51 | 25 < A ≤ 51 4 + (51-A) / (51-25) |
Level 5 | 1 | 1 < A ≤ 25 5 |
Data Sources | Number of Images | Cropped Image Size | Number of Data Expansion |
---|---|---|---|
Video Materials | 1953 | 640 × 480 | 200 |
Web Resources | 1526 | 640 × 480 | 200 |
Total | 3479 | 640 × 480 | 400 |
Parameter | Configuration |
---|---|
Operating System | Windows 10 |
GPU Model | GTX 1080 Ti |
CPU Model | Intel(R) Core(TM)i7-9700CPU @ 3.20GHz |
Programming Language | Python 3.8 |
Language Framework | Pytorch 1.7.1 |
GPU Environment Acceleration | CUDA 11.1 |
NetworkModel | Accuracy (%) | Parameter (Million) | Weight (MB) | Detection Speed (frame • |
---|---|---|---|---|
SSD | 83.6 | — | 108.4 | 33.8 |
Faster-R-CNN | 92.7 | 137.6 | 111.9 | 13.3 |
YOLOv3-spp | 92.1 | 62.4 | 119.3 | 49.6 |
YOLOv4 | 91.7 | 64.7 | 250.8 | 46.8 |
YOLOv5s | 91.6 | 7.1 | 14.4 | 84.5 |
YOLOv5x | 92.9 | 87.2 | 175.2 | 41.6 |
Model | CBAM | Tiny-BiFPN | ASFF | EIOU | mAP0.5 | FPS |
---|---|---|---|---|---|---|
YOLOv5s | N | N | N | N | 90.6 | 84.53 |
YOLOv5s-A | Y | N | N | N | 91.7 | 82.26 |
YOLOv5s-B | Y | Y | N | N | 93.5 | 79.45 |
YOLOv5s-C | Y | N | Y | N | 93.4 | 75.58 |
YOLOv5s-D | Y | Y | Y | N | 94.2 | 72.47 |
Proposed | Y | Y | Y | Y | 95.2 | 74.69 |
Model | Precision/% | Recall/% | mAP0.5/% | mAP0.5:0.95/% | FPS /(Frames/s) |
---|---|---|---|---|---|
FasterR-CNN | 92.8 | 87.8 | 91.3 | 55.4 | 22.26 |
SSD | 84.4 | 80.6 | 81.2 | 48.4 | 33.87 |
YOLOv3 | 90.7 | 83.7 | 88.6 | 56.8 | 50.98 |
YOLOv4-tiny | 90.4 | 84.9 | 90.8 | 57.9 | 79.65 |
YOLOv5s | 92.1 | 85.6 | 90.6 | 56.2 | 84.53 |
Proposed | 95.9 | 91.3 | 95.2 | 62.4 | 74.69 |
Network Model | Number of Iterations | Number of Images | Precision/% | mAP/% | F1-Score/% |
---|---|---|---|---|---|
YOLOv5S | 200 | 200 | 87.1 | 85.3 | 86.4 |
Proposed | 200 | 200 | 92.4 | 91.5 | 90.6 |
Group | Ringlemann Blackness Level | Video Resources | Web Resources Total | Total |
---|---|---|---|---|
Group I | 1 | 56 | 19 | 75 |
Group II | 2 | 452 | 116 | 568 |
Group III | 3 | 386 | 141 | 527 |
Group IV | 4 | 202 | 266 | 468 |
Group V | 5 | 0 | 21 | 21 |
Total | 1-5 | 1096 | 563 | 1659 |
Metrics | Scenarios | Otsu | Region Growing Method | K-Means | Algorithm |
---|---|---|---|---|---|
MSE | Scene 1 | 0.233 | 0.208 | 0.234 | 0.197 |
Scene 2 | 0.295 | 0.334 | 0.282 | 0.254 | |
Scene 3 | 0.364 | 0.524 | 0.324 | 0.271 | |
PSNR/dB | Scene 1 | 28.2632 | 30.5475 | 29.1947 | 32.6357 |
Scene 2 | 27.2644 | 24.5687 | 27.5434 | 29.2656 | |
Scene 3 | 20.1625 | 16.6478 | 22.9546 | 30.1174 | |
Average Time/ms | Scene 1 | 105 | 213 | 168 | 122 |
Scene 2 | 115 | 221 | 174 | 133 | |
Scene 3 | 117 | 246 | 171 | 131 |
Black Level | Number of Images | Number of Correct Detection | Detection Accuracy | Number of Correctly Assessed | Rate of Correct Assessment |
---|---|---|---|---|---|
Level 1 | 75 | 69 | 92.0% | 63 | 84.0% |
Level 2 | 568 | 546 | 96.1% | 517 | 91.0% |
Level 3 | 527 | 506 | 96.4% | 502 | 95.3% |
Level 4 | 468 | 449 | 95.9% | 429 | 91.2% |
Level 5 | 21 | 21 | 100.0% | 17 | 81.0% |
Total | 1659 | 1591 | — | 1528 | 92.1% |
Images | Mean Gray Scale of Tail Gas | Mean Gray Value of the Background | Estimated Blackness Value | Blackness Level ≥ 2 | Evaluation Results |
---|---|---|---|---|---|
a | 65.4 | 181.5 | 3.2 | Yes | ✓ |
b | 15.6 | 173.6 | 4.8 | Yes | ✓ |
c | 19.2 | 239.7 | 4.9 | Yes | ✓ |
d | 78.4 | 226.2 | 3.3 | Yes | ✓ |
e | 128.1 | 170.9 | 1.3 | No | ✓ |
f | 99.3 | 220.2 | 2.8 | Yes | ✓ |
g | 113.3 | 185.2 | 2.0 | Yes | ✓ |
h | 146.4 | 213.5 | 1.6 | Yes | ✓ |
i | 87.1 | 191.1 | 2.7 | Yes | ✓ |
j | 130.2 | 167.3 | 1.1 | No | ✓ |
k | 108.6 | 182.9 | 2.1 | Yes | ✓ |
l | 73.5 | 156.8 | 2.6 | Yes | ✓ |
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 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
Wang, S.; Han, Y.; Yu, M.; Wang, H.; Wang, Z.; Li, G.; Yu, H. Research on Black Smoke Detection and Class Evaluation Method for Ships Based on YOLOv5s-CMBI Multi-Feature Fusion. J. Mar. Sci. Eng. 2023, 11, 1945. https://doi.org/10.3390/jmse11101945
Wang S, Han Y, Yu M, Wang H, Wang Z, Li G, Yu H. Research on Black Smoke Detection and Class Evaluation Method for Ships Based on YOLOv5s-CMBI Multi-Feature Fusion. Journal of Marine Science and Engineering. 2023; 11(10):1945. https://doi.org/10.3390/jmse11101945
Chicago/Turabian StyleWang, Shipeng, Yang Han, Mengmeng Yu, Haiyan Wang, Zhen Wang, Guangzheng Li, and Haochen Yu. 2023. "Research on Black Smoke Detection and Class Evaluation Method for Ships Based on YOLOv5s-CMBI Multi-Feature Fusion" Journal of Marine Science and Engineering 11, no. 10: 1945. https://doi.org/10.3390/jmse11101945
APA StyleWang, S., Han, Y., Yu, M., Wang, H., Wang, Z., Li, G., & Yu, H. (2023). Research on Black Smoke Detection and Class Evaluation Method for Ships Based on YOLOv5s-CMBI Multi-Feature Fusion. Journal of Marine Science and Engineering, 11(10), 1945. https://doi.org/10.3390/jmse11101945