An intelligent black smoke detection method and system based on deep learning segmentation strategy

Through an intelligent black smoke detection method based on deep learning segmentation strategy, rectangular and polygonal data sets are used to train neural networks and cancel upsampling, achieving efficient and accurate black smoke detection in complex environments, solving the problem of poor detection results in existing technologies. and high cost issues, suitable for running on devices with insufficient computing power.

CN114612864BActive Publication Date: 2024-09-13SHENZHEN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210302609.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-09-13
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

Existing black smoke detection methods have problems such as poor detection results, heavy manual workload, and high application costs. Especially in complex environments, it is difficult to achieve efficient and accurate black smoke detection.

Method used

An intelligent black smoke detection method based on deep learning segmentation strategy is adopted. By obtaining surveillance video samples, a black smoke detection data set is established. Rectangular and polygonal data sets are used for pre-training and in-depth training of the neural network model. The upsampling part is canceled and blocks are used. The segmentation method is used for detection, reducing the resolution to adapt to the neural network structure and improving detection accuracy and robustness.

Benefits of technology

It achieves higher detection accuracy in different environmental scenarios, more accurate positioning, reduces computing power and usage costs, and is suitable for large-scale popularization in urban environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612864B
    Figure CN114612864B
Patent Text Reader

Abstract

The embodiment of the present invention discloses an intelligent black smoke detection method and system based on a deep learning segmentation strategy, including: obtaining a picture sample with black smoke in an actual monitoring video; marking the black smoke part in the picture sample to establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set; constructing a black smoke detection neural network model based on a deep learning segmentation strategy; training the black smoke detection neural network model using the first black smoke data set and the second black smoke data set; inputting the picture to be detected into the trained black smoke detection neural network model to obtain a detection result. Compared with the prior art, the technical solution of the present invention has a higher detection accuracy in different environmental scenarios, more accurate positioning of black smoke, and can maintain good real-time performance in mobile devices with weak computing power, reducing the cost of use, and is conducive to large-scale popularization in urban environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pollutant identification, and in particular to an intelligent black smoke detection method and system based on a deep learning segmentation strategy. Background Art

[0002] The detection methods of black smoke can be divided into two categories from the perspective of detection equipment: (1) Detection methods based on remote sensing monitoring equipment. This method uses spectral absorption technology. When black smoke is present, the detection light emitted by the remote sensing equipment passes through the black smoke and is reflected back to the detection unit, thereby completing the detection of components such as hydrocarbons and nitrogen oxides in the black smoke, as well as the measurement of opaque smoke and light absorption coefficient. However, due to the high cost of remote sensing detection equipment, the detection range is relatively small, and it is greatly affected by weather and wind speed. Therefore, it is difficult to popularize it on a large scale in outdoor environments. (2) Detection methods based on surveillance cameras. This method uses computer vision technology to process and identify the surveillance video collected by the camera. It has the characteristics of low equipment cost and wide detection range, and is suitable for large-scale promotion in outdoor environments.

[0003] However, there are two common black smoke detection methods:

[0004] The first is a non-deep learning black smoke detection method. This method first establishes a model of the physical and mathematical characteristics of black smoke through human observation, and then classifies and identifies the feature information extracted by the model through certain rules or classifiers, thereby achieving the function of detecting black smoke. The non-deep learning black smoke detection method is greatly affected by lighting, weather, background, and shadows, is not robust, and has poor black smoke detection effect in complex environments.

[0005] The second is a black smoke detection method based on deep learning, which includes a method based on target detection and a method based on image segmentation. The method based on target detection can only roughly locate the black smoke area. In some special cases, the detected black smoke area will contain more background information. The black smoke detection method based on image segmentation can provide black smoke location information accurate to the pixel point. However, since black smoke does not have obvious edge features, the human eye cannot accurately identify it in some areas where black smoke is not obvious. It is difficult to manually label the black smoke segmentation data set accurate to the pixel point and there are inevitable system errors. In addition, whether it is a black smoke detection method based on target detection or image segmentation, its neural network model is usually large and needs to be deployed on a device with high computing power, which increases the application cost.

[0006] In summary, the current existing technologies have problems such as poor detection effect, large manual workload and high application cost, and a more efficient and accurate black smoke detection method is urgently needed. Summary of the invention

[0007] In view of this, an embodiment of the present invention proposes an intelligent black smoke detection method and system based on a deep learning segmentation strategy.

[0008] An embodiment of the present invention provides an intelligent black smoke detection method based on a deep learning segmentation strategy, comprising:

[0009] Obtain image samples containing black smoke in actual surveillance videos;

[0010] Annotating the black smoke part in the image sample to establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set;

[0011] Construct a black smoke detection neural network model based on deep learning segmentation strategy;

[0012] Using the first black smoke data set and the second black smoke data set to train the black smoke detection neural network model;

[0013] The image to be detected is input into the trained black smoke detection neural network model to obtain the detection result.

[0014] Furthermore, the first black smoke dataset is a rectangle-based black smoke detection dataset containing multiple black smoke scenes, and the second black smoke dataset is a polygon-based black smoke segmentation dataset containing multiple black smoke scenes.

[0015] Furthermore, the image samples containing black smoke include, but are not limited to, forest black smoke image samples, ship black smoke image samples, and automobile exhaust black smoke image samples.

[0016] Furthermore, the “using the first black smoke data set and the second black smoke data set to train the black smoke detection neural network model” includes:

[0017] Pre-training a black smoke detection neural network model using the first black smoke data set;

[0018] The second black smoke data set is used to perform deep training on a black smoke detection neural network model.

[0019] Furthermore, the “pre-training the black smoke detection neural network model using the first black smoke data set” includes:

[0020] Processing the first black smoke data set, and determining a first reduction factor according to the black smoke detection neural network model;

[0021] The annotation result of the first black smoke data set is reduced according to the first reduction factor to adapt to the neural network structure.

[0022] Furthermore, the “using the second black smoke data set to perform deep training on the black smoke detection neural network model” includes:

[0023] Processing the second black smoke data set, and determining a second reduction factor according to the black smoke detection neural network model;

[0024] The annotation result of the second black smoke data set is reduced according to the second reduction factor to adapt to the neural network structure.

[0025] Furthermore, the black smoke detection neural network model cancels the upsampling part and automatically changes the resolution of the annotation result according to the downsampling multiple.

[0026] Furthermore, it also includes:

[0027] The low-resolution detection results are restored to the original image size to obtain the black smoke area detection results.

[0028] Furthermore, the black smoke detection neural network model cancels the upsampling part and uses a block-based segmentation method for detection.

[0029] Another embodiment of the present invention provides an intelligent black smoke detection system based on a deep learning segmentation strategy, comprising:

[0030] A sample acquisition unit, used to acquire a picture sample containing black smoke in the actual surveillance video;

[0031] a labeling unit, configured to label the black smoke part in the image sample and establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set;

[0032] A model building unit, used to build a black smoke detection neural network model based on a deep learning segmentation strategy;

[0033] A model training unit, configured to train the black smoke detection neural network model using the first black smoke data set and the second black smoke data set;

[0034] The detection unit is used to input the image to be detected into the trained black smoke detection neural network model to obtain the detection result.

[0035] Another embodiment of the present invention provides a terminal, comprising: a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned intelligent black smoke detection method based on deep learning segmentation strategy.

[0036] Yet another embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed, the above-mentioned intelligent black smoke detection method based on deep learning segmentation strategy is implemented.

[0037] An embodiment of the present invention proposes an intelligent black smoke detection method and system based on a deep learning segmentation strategy. After obtaining a black smoke sample image, the black smoke area is marked, and a black smoke detection data set and a polygon-based black smoke segmentation data set are established. The improved neural network is first pre-trained using the black smoke detection data set, and then the black smoke is further trained using the polygon-based black smoke segmentation data set to complete the training process. Finally, the image to be detected is input into the trained neural network, and the output of the neural network is restored to the original image to obtain the final detection result. Compared with the prior art, the technical solution of the present invention has higher detection accuracy in different environmental scenarios, more accurate positioning of black smoke, and can maintain good real-time performance in mobile devices with weaker computing power, which reduces the cost of use and is conducive to large-scale popularization in urban environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0039] Figure 1 A schematic diagram of the process flow of an intelligent black smoke detection method based on a deep learning segmentation strategy according to an embodiment of the present invention is shown;

[0040] Figure 2 A schematic diagram of labeling a first black smoke data set image according to an embodiment of the present invention is shown;

[0041] Figure 3 A schematic diagram of labeling a second black smoke dataset image according to an embodiment of the present invention is shown;

[0042] Figure 4 A neural network structure diagram based on a segmentation strategy according to an embodiment of the present invention is shown;

[0043] Figure 5 An example diagram of a labeled image after reducing the resolution according to an embodiment of the present invention is shown;

[0044] Figure 6 A schematic diagram of a black smoke area detection result according to an embodiment of the present invention is shown;

[0045] Figure 7 A schematic diagram of an intelligent black smoke detection system based on a deep learning segmentation strategy according to an embodiment of the present invention is shown.

[0046] Description of main component symbols:

[0047] 10-sample acquisition unit; 20-labeling unit; 30-model building unit; 40-model training unit; 50-detection unit. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0049] Example 1

[0050] The black smoke intelligent detection method based on deep learning segmentation strategy of the embodiment of the present invention can be used to detect black smoke in different scenes. While ensuring the detection accuracy, the size of the neural network is reduced, the amount of neural network calculation is reduced, and the detection time is reduced. It is more suitable for deployment on mobile devices with insufficient computing power, and the application cost is reduced. Compared with traditional detection methods, this method can detect a more accurate black smoke location.

[0051] Reference Figure 1 , an intelligent black smoke detection method based on deep learning segmentation strategy, comprising:

[0052] Step S101, obtaining a picture sample containing black smoke in an actual surveillance video;

[0053] Specifically, the image samples containing black smoke include, but are not limited to, forest black smoke image samples, ship black smoke image samples, and automobile exhaust black smoke image samples. They may be sample images of various scenes containing black smoke, and image samples for the scene may be obtained from the Internet or other channels according to the actual application scenario.

[0054] Step S102, marking the black smoke part in the image sample to establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set;

[0055] Specifically, the first black smoke dataset is a rectangle-based black smoke detection dataset containing multiple black smoke scenes, and the second black smoke dataset is a polygon-based black smoke segmentation dataset containing multiple black smoke scenes. Compared with the segmentation dataset, the detection dataset is less difficult to label and can be used for large-scale data labeling. However, the labeling of the detection dataset is relatively rough, while the segmentation dataset can provide more accurate black smoke labeling. Therefore, according to the characteristics of different types of datasets, the embodiment of the present invention establishes a black smoke detection dataset and a black smoke segmentation dataset of massive black smoke sample images, and the black smoke sample images can be labeled through relevant labeling tools such as labelme and makesence. Figure 2 and Figure 3 These are example images of annotations for the first black smoke dataset and the second black smoke dataset.

[0056] Step S103, constructing a black smoke detection neural network model based on a deep learning segmentation strategy;

[0057] Specifically, in the deep learning model of the embodiment of the present invention, the neural network model is redesigned based on the segmentation strategy. Figure 4 The figure is a structure diagram of a neural network based on a segmentation strategy. Compared with the prior art, the neural network based on a segmentation strategy in the embodiment of the present invention cancels the upsampling part, greatly reduces the model size, reduces the amount of calculation, and enables the method to maintain good real-time performance on devices with weaker computing power.

[0058] Step S104, training a black smoke detection neural network model using the first black smoke data set and the second black smoke data set;

[0059] Specifically, the model training here includes two steps. First, the black smoke detection neural network model is pre-trained using the first black smoke data set, and then the black smoke detection neural network model is deeply trained using the second black smoke data set.

[0060] Step S105, inputting the image to be detected into the trained black smoke detection neural network model to obtain the detection result.

[0061] Specifically, the black smoke detection neural network model of the embodiment of the present invention cancels the upsampling part and automatically changes the resolution of the annotation result according to the downsampling multiple. After the detection is completed, the low-resolution detection result is restored to the original image size to obtain the black smoke area detection result.

[0062] Since the annotation information is based on the size of the original image, and the neural network model in the embodiment of the present invention cancels the upsampling part. Therefore, before training, the resolution of the annotation should be changed accordingly according to the multiple of the neural network downsampling. In the embodiment of the present invention, the feature map after the neural network downsampling is 1 / 32 of the original image, so the annotation resolution needs to be reduced to 1 / 32 of the original annotated image. In addition, neural networks with different downsampling multiples can be used according to different application scenarios, and the resolution of the annotated image also needs to be changed accordingly.

[0063] Exemplarily, the pre-training in step S104 is because the annotation of the first black smoke data set (i.e., the detection data set) contains a large amount of background information. If only the first black smoke data set is used to train the neural network, the detection accuracy of the neural network will be low; at the same time, since the first black smoke data set has more training samples, it also contains more information of different scenes. Therefore, the first black smoke data set can be used to pre-train the neural network, so that the neural network can learn more scene information, improve the adaptability of the model in different scenes, and improve the robustness of the neural network in different environments. The pre-training step of the embodiment of the present invention mainly includes: first, the first black smoke data set is processed to adapt to the neural network structure of the embodiment of the present invention. The annotation result of the first black smoke data set is reduced to 1 / 32 of the resolution of the original annotation result. The reduction multiple is determined by the neural network structure, which can be 1 / 8, 1 / 16.1 / 32, 1 / 64, etc. The reduction multiple in the embodiment of the present invention is 1 / 32. Then, the processed first black smoke data set can be used to directly train the neural network.

[0064] The deep training in step S104 is to improve the detection accuracy of the neural network model pre-trained by the black smoke detection data set, learn the fine particle information of black smoke, and train the neural network using the second black smoke data set (i.e., segmentation data set). The second black smoke data set can provide relatively accurate black smoke annotation, so that the neural network can better learn the characteristic information of black smoke, thereby improving the black smoke detection accuracy. The second black smoke data set based on polygons is also annotated based on the original image size, so before training, it is also necessary to reduce the resolution of the annotation to 1 / 32 of the original annotated image according to the downsampling multiple of the neural network. The deep training step of the embodiment of the present invention mainly includes: first, the second black smoke data set is processed to adapt to the neural network structure of the embodiment of the present invention. The annotation result of the second black smoke segmentation data set is reduced to 1 / 32 of the resolution of the original annotation result. The reduction multiple is determined by the neural network structure, which can be 1 / 8, 1 / 16.1 / 32, 1 / 64, etc. The reduction multiple in the embodiment of the present invention is 1 / 32. Then, the processed second black smoke data set can be used to directly train the neural network. Figure 5 This is an example diagram of annotated images after reducing the resolution. Specifically, in the embodiment of the present invention, the original image resolution is 448*448, and the resolution after being reduced by 32 times is 14*14. Figure 6 This is a schematic diagram of the black smoke area detection results.

[0065] The embodiment of the present invention provides an intelligent black smoke detection method based on deep learning segmentation strategy, which utilizes the characteristics of different data sets to train neural networks, and can reduce the cost of obtaining data sets while maintaining accuracy and robustness. Compared with the existing technology, it has higher detection accuracy in different environmental scenarios, more accurate positioning of black smoke, and can maintain good real-time performance in mobile devices with weak computing power, which is conducive to large-scale popularization in urban environments.

[0066] Example 2

[0067] Reference Figure 7 , an intelligent black smoke detection system based on deep learning segmentation strategy includes:

[0068] The sample acquisition unit 10 is used to acquire a picture sample containing black smoke in the actual monitoring video;

[0069] A labeling unit 20, configured to label the black smoke part in the image sample and establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set;

[0070] A model building unit 30, for building a black smoke detection neural network model based on a deep learning segmentation strategy;

[0071] A model training unit 40, configured to train the black smoke detection neural network model using the first black smoke data set and the second black smoke data set;

[0072] The detection unit 50 is used to input the image to be detected into the trained black smoke detection neural network model to obtain the detection result.

[0073] The effects that can be achieved by the embodiments of the present invention include:

[0074] 1. A new training strategy is proposed. First, the black smoke detection dataset is used to pre-train the neural network to improve the neural network's ability to learn different real-life scene information and improve its adaptability to different environments. Then, the polygon-based black smoke segmentation dataset is used to train the neural network model to improve the detection accuracy of the neural network. Ultimately, the model has high detection accuracy in different environmental scenarios.

[0075] 2. The output results of the neural network model based on the deep learning segmentation strategy are more accurate in locating black smoke than the output results of target detection, and reduce the proportion of background information in the detection results.

[0076] 3. The above-mentioned black smoke intelligent detection method based on deep learning segmentation strategy greatly reduces the size of the neural network and the amount of calculation by improving the neural network structure without affecting the detection accuracy. This allows the method to maintain good real-time performance even when deployed in mobile devices with weak computing power, reduces the cost of use, and is conducive to large-scale popularization in urban environments.

[0077] It can be understood that the above-mentioned intelligent black smoke detection system based on deep learning segmentation strategy corresponds to the intelligent black smoke detection method based on deep learning segmentation strategy in Example 1. Any optional items in Example 1 are also applicable to this embodiment and will not be described in detail here.

[0078] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An intelligent black smoke detection method based on deep learning segmentation strategy, characterized in that: include: Obtain image samples containing black smoke in actual surveillance videos; Annotating the black smoke part in the image sample to establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set; Construct a black smoke detection neural network model based on deep learning segmentation strategy; Using the first black smoke data set and the second black smoke data set to train the black smoke detection neural network model; Input the image to be detected into the trained black smoke detection neural network model to obtain the detection result; The first black smoke dataset is a rectangle-based black smoke detection dataset containing multiple black smoke scenes, and the second black smoke dataset is a polygon-based black smoke segmentation dataset containing multiple black smoke scenes; The image samples containing black smoke include forest black smoke image samples, ship black smoke image samples and automobile exhaust black smoke image samples; The “using the first black smoke data set and the second black smoke data set to train the black smoke detection neural network model” includes: Pre-training a black smoke detection neural network model using the first black smoke data set; Using the second black smoke data set to perform deep training on a black smoke detection neural network model; The “pre-training the black smoke detection neural network model using the first black smoke data set” includes: Processing the first black smoke data set, and determining a first reduction factor according to the black smoke detection neural network model; Scaling down the labeled result of the first black smoke data set according to the first reduction factor to adapt to the neural network structure; The “using the second black smoke data set to perform deep training on the black smoke detection neural network model” includes: Processing the second black smoke data set, and determining a second reduction factor according to the black smoke detection neural network model; The annotation result of the second black smoke data set is reduced according to the second reduction factor to adapt to the neural network structure.

2. The intelligent black smoke detection method based on deep learning segmentation strategy according to claim 1 is characterized in that: The black smoke detection neural network model cancels the upsampling part and automatically changes the resolution of the annotation result according to the downsampling multiple.

3. The intelligent black smoke detection method based on deep learning segmentation strategy according to claim 1 is characterized in that: Also includes: The low-resolution detection results are restored to the original image size to obtain the black smoke area detection results.

4. The intelligent black smoke detection method based on deep learning segmentation strategy according to claim 3 is characterized in that: The black smoke detection neural network model uses a block-based segmentation method for detection.

5. An intelligent black smoke detection system based on deep learning segmentation strategy, characterized in that: include: A sample acquisition unit, used to acquire a picture sample containing black smoke in the actual surveillance video; a labeling unit, configured to label the black smoke part in the image sample and establish a black smoke detection data set, wherein the black smoke detection data set includes a first black smoke data set and a second black smoke data set; A model building unit, used to build a black smoke detection neural network model based on a deep learning segmentation strategy; A model training unit, used for training the black smoke detection neural network model using the first black smoke data set and the second black smoke data set; the "training the black smoke detection neural network model using the first black smoke data set and the second black smoke data set" includes: pre-training the black smoke detection neural network model using the first black smoke data set; deep training the black smoke detection neural network model using the second black smoke data set; the "pre-training the black smoke detection neural network model using the first black smoke data set" includes: processing the first black smoke data set, determining a first reduction factor according to the black smoke detection neural network model; reducing the annotation results of the first black smoke data set according to the first reduction factor to adapt to the neural network structure; the "deep training the black smoke detection neural network model using the second black smoke data set" includes: processing the second black smoke data set, determining a second reduction factor according to the black smoke detection neural network model; reducing the annotation results of the second black smoke data set according to the second reduction factor to adapt to the neural network structure A detection unit, used to input the image to be detected into the trained black smoke detection neural network model to obtain the detection result; The first black smoke dataset is a rectangle-based black smoke detection dataset containing multiple black smoke scenes, and the second black smoke dataset is a polygon-based black smoke segmentation dataset containing multiple black smoke scenes; The image samples containing black smoke include forest black smoke image samples, ship black smoke image samples and automobile exhaust black smoke image samples.