Construction method of model with smoke detection function in petrochemical scene and petrochemical scene smoke detection system

By improving the backbone network layer and neck layer processes of the RTMDet model and combining it with GIF technology to generate diversified data sets, it solves the problems of incomplete smoke detection coverage and limited processing speed in petrochemical scenes, and achieves efficient and accurate smoke identification and small Improvement of smoke recognition capabilities.

CN118674940APending Publication Date: 2024-09-20HAINAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963605.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing smoke detection methods have problems such as incomplete coverage, delayed response, and poor detection of specific smoke types in petrochemical scenes. Moreover, the processing speed of complex convolutional neural network models is limited in environments with limited computing resources.

Method used

The improved backbone network layer and neck layer processes based on the RTMDet model are used, large-size feature maps and CARAFE upsampling operators are added to generate multi-layer fusion feature maps, and diversified smoke image data sets are generated through GIF technology to improve the model's performance. Generalization ability and processing speed.

Benefits of technology

It significantly improves the generalization ability and recognition accuracy of the model, achieves real-time and efficient smoke detection, reduces data collection costs, and improves the recognition accuracy of small smoke.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674940A
    Figure CN118674940A
Patent Text Reader

Abstract

The invention provides a construction method of a model with a petrochemical scene smoke detection function and a petrochemical scene smoke detection system. The method is based on an RTMDet model and comprises an input layer, a backbone network layer, a neck layer and a head layer which are sequentially connected according to a signal transmission sequence, and the method comprises a process of improving the backbone network layer and a process of improving the neck layer. The system comprises a petrochemical scene smoke picture data set and a smoke detection module. According to the invention, the smoke detection accuracy in a petrochemical fire scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method for constructing a model with a smoke detection function in a petrochemical scene and a petrochemical scene smoke detection system. Background Art

[0002] The petrochemical industry has a high risk of fire and explosion accidents due to the particularity of its production environment. Early detection of smoke is of great significance for preventing accidents. Traditional smoke detection methods mainly rely on physical sensors, such as smoke detectors and smoke sensors. These methods have problems such as incomplete coverage and delayed response in open or large-scale petrochemical scenes. Therefore, developing a method that can identify smoke in petrochemical scenes in real time, efficiently and accurately is of great significance to improving the safety level of production in the petrochemical industry. The petrochemical scene smoke recognition method integrating a real-time target detection model can accurately detect smoke in petrochemical parks, which can provide firefighters with early warnings or strive for earlier disposal time.

[0003] The patent closest to this application is: A smoke detection method integrating convolutional neural network (publication number CN110956611A), which discloses a smoke detection method integrating convolutional neural network, which monitors the smoke situation in real time through the video captured by the camera and issues a warning in time. It solves the problems of high cost, untimely, insufficient accuracy and low efficiency of smoke monitoring. The method includes a suspected smoke acquisition module, a suspected smoke confirmation module and a smoke alarm module.

[0004] The specific implementation process of the smoke detection method proposed in this patent is as follows: 1. The suspected smoke acquisition module detects the real-time image through the Faster R-CNN model to obtain the image containing suspected smoke; 2. The suspected smoke detection module uses a convolutional neural network to detect candidate areas of suspected smoke images and determine images containing smoke; 3. The smoke alarm module responds to the result processed by the suspected smoke confirmation module.

[0005] The main defects of this patent are as follows: 1. The performance of the Faster R-CNN model and convolutional neural networks depends heavily on the diversity and representativeness of the training data. If the training dataset does not contain enough smoke types, scene changes, and images under different lighting conditions, the generalization ability of the model in practical applications may be limited, resulting in poor detection of specific smoke types.

[0006] 2. Although this method improves recognition efficiency and accuracy, the complex convolutional neural network model may require more computing resources, which may lead to limited processing speed during real-time detection, especially in an environment with limited computing resources, which may not meet the needs of rapid response. Summary of the invention

[0007] In order to overcome the above-mentioned deficiencies of the prior art, the present invention proposes a method for constructing a model with smoke detection function in a petrochemical scene and a petrochemical scene smoke detection system.

[0008] A method for constructing a model with smoke detection function in a petrochemical scene, the method is based on the RTMDet model, which includes an input layer, a backbone network layer, a neck layer, and a head layer connected in sequence according to a signal transmission order, and the method includes improving the process of the backbone network layer and improving the process of the neck layer; In the process of improving the backbone network layer, a large-size feature map is added to the backbone network layer so that the number of extracted feature maps is 4; In the process of improving the neck layer process, an upsampling operator is added to the neck layer to achieve fusion between feature layers and generate a 3-layer fused feature map.

[0009] Preferably, in the process of improving the backbone network layer, the size of the added large-size feature map is 160*160*128.

[0010] A petrochemical scene smoke detection system, including a petrochemical scene smoke image dataset and a smoke detection module; The smoke detection module is used to perform smoke detection on the received petrochemical scene pictures and output the detection results; the smoke detection module adopts the smoke detection model constructed by the aforementioned model construction method, and the smoke detection model includes an input layer, a backbone network layer, a neck layer, and a head layer connected in sequence; the smoke detection model is pre-trained using the data in the petrochemical scene smoke picture data set; The petrochemical scene smoke image dataset stores a combination of smoke vector maps of different colors and shapes and different petrochemical park scene maps.

[0011] Preferably, the working process of the smoke detection module is: Step 2.1: Load the pre-trained smoke detection model; Step 2.2: Input the actually collected petrochemical park scene image frame into the smoke detection model for smoke detection; Step 2.3: The smoke detection model outputs the detection results.

[0012] Preferably, in step 2.2, the specific steps of the smoke detection model for performing smoke detection are: Step 1. The input petrochemical scene smoke picture is passed through the backbone network layer to extract multi-layer features. The image passes through a convolution layer with a large convolution kernel and a pooling layer to reduce the size of the feature map. Through multi-level convolution blocks, 4 layers of feature maps with different resolutions and semantic depths are formed. In descending order of size, they are the first feature map, the second feature map, the third feature map, and the fourth feature map; Step 2. The neck layer receives each feature map; Step 3. The neck layer uses the CARAFE upsampling operator to upsample the fourth feature map of the smallest size to match the third feature map in spatial resolution; the upsampled fourth feature map is fused element by element with the third feature map to form a first fused feature map; Step 4. Upsample the first fused feature map again using the CARAFE upsampling operator, and perform the same element-by-element addition with the second feature map to form a second fused feature map; Step 5. Upsample the second fused feature map again using the CARAFE upsampling operator, and perform the same element-by-element addition with the first feature map to form a third fused feature map; Step 6. The first fused feature map, the second fused feature map, and the third fused feature map are further processed by the convolution layer and then output; Step 7. The head layer receives the multi-scale feature map output by the neck layer, processes it and outputs the detection result.

[0013] Preferably, Step 7 is specifically as follows: Step 7.1: The multi-scale feature map passes through a series of convolutional layers to generate category predictions and bounding box regression values ​​for each feature point; Step 7.2: Output the predicted category probability map and bounding box regression map, and post-process all predicted bounding boxes to remove redundant detection results and retain the target that reaches the predetermined confidence level; Step 7.3: The head layer outputs the detection results, including the target category, confidence score and the corresponding bounding box position.

[0014] Preferably, the image angles of the petrochemical park scene map include overhead, upward, and horizontal angles.

[0015] Preferably, the images in the petrochemical scene smoke picture dataset are annotated using the Labelimg tool, and the annotated content uses the coco dataset annotation format.

[0016] Preferably, the images in the petrochemical scene smoke picture data set are formed by combining the smoke vector map with the petrochemical park scene map and amplifying the images using GIF technology.

[0017] Preferably, the size of the first feature map is 160*160*128, the size of the second feature map is 80*80*256, the size of the third feature map is 40*40*512, and the size of the fourth feature map is 20*20*1024.

[0018] The technical effects of the present invention are: 1. Significantly improve the generalization ability of the model. By introducing the GIF image generation technology based on the generative model, the present invention can generate a large number of petrochemical smoke images with rich smoke types and shapes, thereby significantly enhancing the generalization ability of the model. This enables the model to better adapt to smoke detection tasks in different petrochemical scenes and improves the accuracy and stability of recognition.

[0019] 2. Realize real-time and efficient smoke detection. By selecting the best RTMDet as the basic model, the present invention solves the problem of limited processing speed during real-time detection of the model. This enables the model to achieve fast smoke detection while maintaining high accuracy, meeting the real-time requirements of petrochemical scenarios.

[0020] 3. Reduce data collection costs. Using GIF image generation technology to generate petrochemical smoke images not only overcomes the difficulty of data collection in traditional methods, but also greatly reduces the cost of data collection. At the same time, this method can also generate more diverse and realistic smoke images, which helps to improve the training effect of the model.

[0021] 4. High recognition accuracy of small smoke. By increasing the number of feature layers and introducing the CARAFE upsampling operator to improve the RTMDet model, the method proposed in the present invention effectively increases the recognition accuracy of small smoke in petrochemical scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the smoke detection module.

[0023] Figure 2 Schematic diagram of adding an upsampling operator in the neck layer for feature fusion.

[0024] Figure 3 These are pictures of petrochemical park scenes from different perspectives.

[0025] Figure 4 Vector illustration of smoke in different colors and shapes.

[0026] Figure 5 Combination of smoke vector image and petrified background. DETAILED DESCRIPTION

[0027] The present invention designs a model construction method and a smoke detection system with smoke detection function in petrochemical scenes. The system includes a smoke detection module based on an improved RTMDet model and a petrochemical scene smoke image data set.

[0028] 1. Smoke Detection Module The smoke detection module is actually a smoke detection model. The smoke detection model is based on the RTMDet model and has been improved. The improved RTMDet algorithm can detect smoke in petrochemical scenes faster and more accurately.

[0029] The present invention uses the petrochemical scene smoke picture dataset of the present invention to perform transfer learning tests on the existing mainstream models. The test results are shown in Table 1, showing the AP50 value and model size of each algorithm model on the test set. AP50 refers to the threshold of using 0.5 as the intersection over union (IoU) function when calculating the average precision (AP). The present invention selects the RTMDet algorithm with the best accuracy and improves it as the smoke detection algorithm in the petrochemical scene.

[0030] Table 1 AP50 values ​​and model sizes of each algorithm model on the constructed smoke dataset name AP50 Model size Faster R-CNN 0.758 347.3MB Sparse R-CNN 0.727 1.3GB SSD 300 0.656 199.8MB YOLOV5s 0.753 14.3MB YOLOV5m 0.769 42.1MB YOLOV5l 0.780 92.7MB EfficientDet d0 0.689 15.8MB EfficientDet d1 0.637 26.9MB RTMDet 0.792 91.0MB In order to better adapt to the smoke test in petrochemical scenarios, the present invention improves RTMDe. Figure 1 As shown in Figure 1, the improved RTMDet model specifically includes an input layer, a backbone network layer, a neck layer, and a head layer connected in the order of signal transmission. The function and workflow of each layer are as follows.

[0031] 1. Input layer Used to input the image of smoke to be detected.

[0032] 2. Backbone network layer The backbone network layer is used to extract features from the input image. It gradually converts the high-dimensional pixel information of the image into low-dimensional feature representations through a series of convolutional layers. These feature representations contain important information in the image, such as edges, colors, and shapes. This embodiment modifies the extracted feature layer, adds a large-size feature map with a size of 160*160*128 at the bottom, and the total number of feature map layers is increased from 3 layers of the original model to 4 layers, and retains more detailed feature maps. The input is input into the neck layer for fusion operation. This size is a standardized size, which is helpful for the transplantation and deployment of the model. The 4-layer feature map is the first feature map, the second feature map, the third feature map, and the fourth feature map in descending order of size. In this embodiment, the size of the first feature map is 160*160*128, the size of the second feature map is 80*80*256, the size of the third feature map is 40*40*512, and the size of the fourth feature map is 20*20*1024.

[0033] The workflow of the backbone network layer is as follows: Step 1. The input image passes through the backbone network layer.

[0034] Step 2. The convolution layer extracts local features through convolution operations and introduces nonlinearity through activation functions (such as ReLU).

[0035] Step 3. Pooling layers (such as max pooling) reduce the size of the feature map while retaining the most important information.

[0036] Step 4. Output 4 layers of feature maps, which contain image information at different levels and have the same size as above.

[0037] 3. Neck layer The main function of the neck layer is to further process the feature map output by the backbone network layer so as to better adapt to the subsequent detection tasks. It is usually responsible for feature fusion and multi-scale processing. The present invention introduces the content-aware reassembly of features (CARAFE) upsampling operator unit in the feature fusion stage. Figure 2 As shown, the CARAFE unit performs a dot product operation between the upsampled kernel at each position and the pixels in the corresponding neighborhood of the input feature map, that is, feature recombination. CARAFE upsampling can cover a larger receptive field when performing feature recombination, enlarge a smaller feature map to a larger size, and guide the recombination mechanism based on the input features while maintaining the lightweight of the operator. The workflow of the neck layer is as follows: Step 1. Receive multi-layer feature maps from the backbone network layer.

[0038] Step 2. Through the Path Aggregation Network (PAFPN) structure and the CARAFE upsampling operator, the features at different levels are fused and enhanced to generate a three-layer fused feature map.

[0039] This multi-scale feature fusion process enables the model to simultaneously utilize high-level semantic information and low-level detail information in the image, thereby improving detection accuracy.

[0040] 4. Head layer The main function of the head layer is to perform target detection based on the fused features, including classification and positioning, and output the category probability and bounding box regression value for each position on each feature map.

[0041] The specific workflow is as follows: Step 1. The head layer receives the 3-layer fusion feature map from the neck layer.

[0042] Step 2. Each fused feature map is processed through multiple convolutional layers to generate the output of the classification branch and the regression branch.

[0043] Step 3. The classification branch is responsible for predicting which category each candidate region belongs to, and the regression branch is responsible for predicting the bounding box coordinates of each candidate region.

[0044] Step 4. Output the results, including the detected target category, confidence score, and corresponding bounding box location.

[0045] The target category specifically refers to the type of object that needs to be detected, that is, smoke. In the final detection results, the target category will be clearly identified as "smoke".

[0046] The improved RTMDet model was experimentally tested. Table 2 shows the comparison of AP50 and FPS of the RTMDet algorithm before and after the improvement. Table 3 shows the comparison of large and small smoke detection before and after the improvement of the RTMDet model. The experimental results show that the improvement schemes proposed by the present invention for the model have improved the detection accuracy of smoke by the RTMDet model, and at the same time have no significant impact on the speed. As shown in Table 2, by adding a layer of underlying feature maps, the model's ability to detect smoke is improved, and the overall accuracy rate has increased by 2.7%. After replacing the nearest interpolation method with the CARAFE upsampling operator, the accuracy of the model's feature map fusion effect has increased by 1.1% again.

[0047] As shown in Table 3, the detection of large smoke and small smoke in the original model and after improvement was tested. It was found through statistics that the accuracy of large and small smoke was improved, among which the accuracy of small smoke was improved more significantly.

[0048] Table 2 Comparison of AP50 and FPS before and after RTMDet model improvement Model AP (IoU = 0.5) / % FPS RTMDet original model 79.2 19.9 Adding underlying feature maps 81.9 17.5 Add the underlying feature map and use the CARAFE upsampling operator 83.0 17.0 Table 3 Comparison of large and small smoke detection before and after RTMDet model improvement Smoke Type Total quantity RTMDet original model detection rate Increase the detection rate of underlying feature maps Increase the detection rate of the underlying feature map and the CARAFE upsampling operator Small smoke 691 87.4% 88.4% 89.0% Big Smoke 323 61.6% 67.8% 70.3% The overall detection process of the smoke detection module based on the improved RTMDet model is as follows: Step 1. Input smoke images are passed through the backbone network layer to extract multi-layer features. The image passes through a convolution layer with a large convolution kernel and a pooling layer to quickly reduce the size of the feature map. Through multi-layer convolution blocks, feature maps of different levels with different resolutions and semantic depths are generated (such as C2 (first feature map), C3 (second feature map), C4 (third feature map), C5 (fourth feature map) in the figure).

[0049] Step 2. The neck layer receives each feature map.

[0050] Next, the neck layer will be fused and multi-scale processed to generate a multi-scale feature map with rich information through PAFNP, as shown in step 3-6.

[0051] Step 3. The neck layer uses the CARAFE unit to upsample the fourth feature map of the smallest size to match the third feature map in spatial resolution; the upsampled fourth feature map is fused element by element with the third feature map to form the first fused feature map.

[0052] Step 4. Upsample the first fused feature map again using the CARAFE unit, and perform the same element-by-element addition with the second feature map to form the second fused feature map.

[0053] Step 5. The second fused feature map is upsampled again using the CARAFE unit, and is added element-by-element with the first feature map to form the third fused feature map.

[0054] Step 6. The first fused feature map, the second fused feature map, and the third fused feature map are further processed through convolutional layers to generate new multi-scale feature maps. These multi-scale feature maps contain rich contextual information and target information of different scales.

[0055] Step 7. The head layer receives the fused feature map output by the neck layer, processes it and outputs the detection result. Step 7 specifically includes the following sub-steps Step 7.1~7.3: Step 7.1: The multi-scale feature map passes through a series of convolutional layers to generate category predictions and bounding box regression values ​​for each feature point.

[0056] Step 7.2: Output the predicted category probability map and bounding box regression map, and post-process all predicted bounding boxes to remove redundant detection results and retain the target that reaches the predetermined confidence level.

[0057] Step 7.3: The head layer outputs the detection results, including the target category, confidence score and the corresponding bounding box position.

[0058] 2. Petrochemical scene smoke image dataset The environmental characteristics of petrochemical parks are very different from those of cities and forest areas. Petrochemical parks are mainly composed of large oil tanks, oil pipelines and related facilities. The ground of the park is covered with concrete, with almost no vegetation growing, and the main color is grayish white. Therefore, this module mainly creates smoke images that meet the background characteristics of petrochemical parks to construct a new dataset.

[0059] The specific process of building a dataset is as follows: Step 1. Collect petrochemical park scene images from the Internet, such as Figure 3 As shown, the picture angles include looking down and looking up, which is similar to the camera position in the petrochemical park; and collect smoke vectors of different colors and shapes, such as Figure 4 shown.

[0060] Step 2. Combine the smoke vector image with the petrified background, and adjust the smoke position and size according to the actual situation, such as Figure 5 shown.

[0061] Step 3. Image amplification using GIF technology. This measure will improve the quality and quantity of training data.

[0062] Step 4. Use the LabelImg annotation tool to annotate the amplified dataset. The annotated dataset uses the coco dataset annotation format.

Claims

1. A method for constructing a model with smoke detection function in a petrochemical scene, the method is based on the RTMDet model, which includes an input layer, a backbone network layer, a neck layer, and a head layer connected in sequence according to the signal transmission order, characterized in that: The method includes improving the process of the backbone network layer, improving the process of the neck layer; In the process of improving the backbone network layer, a large-size feature map is added to the backbone network layer so that the number of extracted feature maps is 4; In the process of improving the neck layer process, an upsampling operator is added to the neck layer to achieve fusion between feature layers and generate a 3-layer fused feature map.

2. The method for constructing a model with smoke detection function in a petrochemical scene according to claim 1, characterized in that: In the process of improving the backbone network layer, the size of the added large-size feature map is 160*160*128.

3. A petrochemical scene smoke detection system, characterized in that: Including petrochemical scene smoke image dataset and smoke detection module; The smoke detection module is used to perform smoke detection on the received petrochemical scene pictures and output the detection results; the smoke detection module adopts the smoke detection model constructed by the method for constructing a model with smoke detection function in the petrochemical scene as described in any one of claims 1-2, and the smoke detection model includes an input layer, a backbone network layer, a neck layer, and a head layer connected in sequence; the smoke detection model is pre-trained using data in the petrochemical scene smoke picture data set; The petrochemical scene smoke image dataset stores a combination of smoke vector maps of different colors and shapes and different petrochemical park scene maps.

4. The petrochemical scene smoke detection system as claimed in claim 3, characterized in that the smoke The workflow of the detection module is: Step 2.1: Load the pre-trained smoke detection model; Step 2.2: Input the actually collected petrochemical park scene image frame into the smoke detection model for smoke detection; Step 2.3: The smoke detection model outputs the detection results.

5. The petrochemical scene smoke detection system as claimed in claim 4, characterized in that: In step 2.2, the specific steps of the smoke detection model for smoke detection are: Step 1. The input petrochemical scene smoke picture is passed through the backbone network layer to extract multi-layer features. The image passes through a convolution layer with a large convolution kernel and a pooling layer to reduce the size of the feature map. Through multi-level convolution blocks, 4 layers of feature maps with different resolutions and semantic depths are formed. In descending order of size, they are the first feature map, the second feature map, the third feature map, and the fourth feature map; Step 2. The neck layer receives each feature map; Step 3. The neck layer uses the CARAFE upsampling operator to upsample the fourth feature map of the smallest size to match the third feature map in spatial resolution; the upsampled fourth feature map is fused element by element with the third feature map to form a first fused feature map; Step 4. Upsample the first fused feature map again using the CARAFE upsampling operator, and perform the same element-by-element addition with the second feature map to form a second fused feature map; Step 5. Upsample the second fused feature map again using the CARAFE upsampling operator, and perform the same element-by-element addition with the first feature map to form a third fused feature map; Step 6. The first fused feature map, the second fused feature map, and the third fused feature map are further processed by the convolution layer and then output; Step 7. The head layer receives the multi-scale feature map output by the neck layer, processes it and outputs the detection result.

6. The petrochemical scene smoke detection system as claimed in claim 5, characterized in that: Step 7 is as follows: Step 7.1: The multi-scale feature map passes through a series of convolutional layers to generate category predictions and bounding box regression values ​​for each feature point; Step 7.2: Output the predicted category probability map and bounding box regression map, and post-process all predicted bounding boxes to remove redundant detection results and retain the target that reaches the predetermined confidence level; Step 7.3: The head layer outputs the detection results, including the target category, confidence score and the corresponding bounding box position.

7. The petrochemical scene smoke detection system as claimed in claim 3, characterized in that: The picture angles of the petrochemical park scene map include overhead, upward and horizontal angles.

8. The petrochemical scene smoke detection system according to claim 3 or 7, characterized in that: The images in the petrochemical scene smoke image dataset are annotated using the Labelimg tool, and the annotated content uses the coco dataset annotation format.

9. The petrochemical scene smoke detection system as claimed in claim 3, characterized in that: The images in the petrochemical scene smoke image dataset are formed by combining the smoke vector map with the petrochemical park scene map and amplifying the image using GIF technology.

10. The petrochemical scene smoke detection system as claimed in claim 5, characterized in that: The size of the first feature map is 160*160*128, the size of the second feature map is 80*80*256, the size of the third feature map is 40*40*512, and the size of the fourth feature map is 20*20*1024.