A real-time smoke segmentation method integrating multi-resolution representation

By integrating the real-time smoke segmentation method of multi-resolution representation, combined with the lightweight convolution module and the residual attention module, the timeliness and accuracy problems of traditional smoke detection methods are solved, and high accuracy and fast detection are achieved. Effect, suitable for video surveillance systems.

CN113643304BActive Publication Date: 2024-09-06TIANJIN FIRE SCI & TECH RES INST OF MEM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110896564.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-05
Publication Date
2024-09-06
Estimated Expiration
2041-08-05

AI Technical Summary

Technical Problem

Traditional smoke detection methods have shortcomings in timeliness, accuracy and applicability. Especially in open scenes, it is difficult to effectively detect smoke, they are susceptible to interference from environmental factors, and the cost is high.

Method used

A real-time smoke segmentation method that integrates multi-resolution representations is adopted. By extracting frame-by-frame features from the smoke video stream, merging feature maps of different resolutions, performing rough segmentation and normalization, calculating foreground relationship representations and foreground area representations, and fusion Obtain foreground enhanced representation, output segmentation results, and use lightweight multi-resolution convolution module and residual attention module to extract features and suppress background interference.

Benefits of technology

It achieves high-accuracy smoke segmentation, fast detection speed, and lightweight model. It is suitable for video surveillance systems and can effectively detect early smoke under real-time conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113643304B
    Figure CN113643304B
Patent Text Reader

Abstract

The present invention discloses a real-time smoke segmentation method integrating multi-resolution representation, including: extracting features from smoke video streams frame by frame, and integrating feature maps of different resolutions; performing rough segmentation on the integrated feature maps, and normalizing the rough segmentation results to obtain the probability that each pixel belongs to the smoke foreground and background, weightedly integrating the pixel features with the normalized features of the foreground area to obtain the foreground area representation; calculating the relationship between the foreground area representation and the pixel features to obtain the foreground relationship representation; integrating the foreground relationship representation and the foreground area representation to obtain the foreground enhancement representation, integrating the foreground enhancement representation and the pixel features, and outputting the segmentation result. The present invention has high segmentation accuracy, fast detection speed and lightweight model, and can be applied to the detection and analysis of early smoke in actual video surveillance systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing and computer vision, and more particularly to a real-time smoke segmentation method integrating multi-resolution representation. Background Art

[0002] Fire is a serious disaster. Among various disasters, fire is one of the most common disasters that threaten public property and life safety. When a fire occurs, smoke often occurs before flames, so timely detection of smoke plays a very important role in fire warning. Traditional smoke detection methods mainly use smoke sensors for detection. This method requires smoke to accumulate to a certain concentration to trigger an alarm, which is not timely enough and difficult to apply to open scenes. In addition, it is easily affected by factors such as ambient temperature, humidity, and dust. Large-scale installation and laying are also difficult and costly. Traditional fire detection technology has many defects due to the limitations of fire detectors' detection performance and space factors. Therefore, a new image fire detection method has emerged. Compared with traditional detection methods, the use of image processing methods to detect smoke has the advantages of rapid response and wide detection range.

[0003] Target detection generally uses a bounding box to mark the target area, but smoke has an irregular shape. Using a rectangular box to mark it will easily confuse the smoke with the background, which is not conducive to extracting the characteristic information of the smoke, thus affecting the detection results.

[0004] Therefore, how to provide a smoke segmentation algorithm with high accuracy is a problem that those skilled in the art need to solve urgently. Summary of the invention

[0005] In view of this, the present invention provides a real-time smoke segmentation method integrating multi-resolution representation. The algorithm has high segmentation accuracy, fast detection speed and lightweight model, and can be applied to early smoke detection and analysis in actual video surveillance systems.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A real-time smoke segmentation method integrating multi-resolution representations, comprising:

[0008] Extract features from smoke video streams frame by frame and fuse feature maps of different resolutions;

[0009] The fused feature map is roughly segmented, and the rough segmentation result is normalized to obtain the probability of each pixel belonging to the smoke foreground and background. The pixel features are weighted and fused with the normalized features of the foreground area to obtain the foreground area representation;

[0010] Calculate the relationship between the foreground region representation and the pixel point features to obtain the foreground relationship representation;

[0011] The foreground relationship representation and the foreground region representation are fused to obtain the foreground enhancement representation;

[0012] The foreground enhancement representation and pixel features are fused to output the segmentation result.

[0013] Preferably, the foreground region representation s is calculated as:

[0014]

[0015] Among them, x i For each pixel p i Features, is the pixel p i The normalized features of the foreground area, I represents the feature map.

[0016] Preferably, the foreground relationship representation w is calculated as:

[0017]

[0018] Where f is the background region representation, κ(x,s)=φ(·) T ψ(·) is the relationship function, φ(·) and ψ(·) represent the conversion functions.

[0019] Preferably, the calculation formula of foreground enhancement representation y is:

[0020] y=ρ(wδ(s))

[0021] Among them, δ(·) and ρ(·) represent the transformation functions, and w represents the foreground relationship representation.

[0022] Preferably, fusing feature maps of different resolutions specifically includes:

[0023] The fusion process includes upsampling, downsampling and resolution preservation. The low-resolution feature map is fused with the high-resolution feature map by improving the resolution through bilinear interpolation. The high-resolution feature map is fused with the low-resolution feature map by reducing the resolution through pooling operation. The feature map of the same scale keeps the resolution unchanged through convolution operation.

[0024] Through the above technical solutions, it can be seen that compared with the prior art, the present invention discloses a real-time smoke segmentation method that integrates multi-resolution representations, and uses lightweight multi-resolution convolution modules to extract feature maps in parallel, which meets the needs of real-time segmentation while obtaining rich semantic information; a smoke foreground enhancement module is proposed so that smoke pixels can be integrated with foreground enhancement representations to avoid background information interference and improve segmentation accuracy; a residual attention module is proposed to enhance important feature information from two dimensions, channel and space, and suppress invalid information. The algorithm has high segmentation accuracy, fast detection speed and lightweight model, and can be applied to actual video surveillance systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0026] Figure 1 The attached figure is a flow chart of the real-time smoke segmentation method integrating multi-resolution representation.

[0027] Figure 2 The attached figure shows the backbone network architecture of the multi-resolution convolutional module.

[0028] Figure 3 The attached figure is a schematic diagram of the smoke foreground enhancement module.

[0029] Figure 4 The attached figure is a schematic diagram of the residual attention module. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] The embodiment of the present invention discloses a real-time smoke segmentation method integrating multi-resolution representation, such as Figure 1 As shown, including:

[0032] S1: Extract feature maps of different resolutions based on the multi-resolution convolution module, which specifically includes the following steps:

[0033] S101: Use the installed high-definition camera to monitor and shoot the area to be inspected, then ignite the prepared cigarette cake, connect the video stream to the real-time detection system, and read the video frame;

[0034] S102: The video frame image is sent to the backbone network of the multi-resolution convolution module to extract features. The backbone network architecture of the multi-resolution convolution module is as follows: Figure 2 The backbone network has four stages, each of which is composed of several multi-resolution modules cascaded, and each multi-resolution module is composed of several parallel convolution units. The specific network parameters are shown in Table 1.

[0035] Table 1 Backbone network parameter settings

[0036]

[0037] S103: Fusing feature maps of different resolutions. The fusion process includes upsampling, downsampling, and resolution preservation. The low-resolution feature map is fused with the high-resolution feature map by increasing the resolution through bilinear interpolation. The high-resolution feature map is fused with the low-resolution feature map by reducing the resolution through pooling operation. The feature maps of the same scale are kept unchanged in resolution through convolution operation.

[0038] The present invention uses the four stages of the above-mentioned backbone network, each stage is cascaded by several multi-resolution modules, and each multi-resolution module is composed of several parallel convolution units. The module of the first stage has only one high-resolution branch, and the modules of each stage thereafter gradually increase the multi-resolution branches from high to low in a parallel manner. By extracting feature maps of different resolutions, semantic information of different scales can be fully extracted without losing image information. At the same time, a lightweight depth-separable convolution is used as the basic convolution module, which has the advantages of fast detection speed and small model. After each stage, the feature maps of different resolutions are fused to obtain richer semantic information.

[0039] At the same time, in order to calculate channel attention, the feature map is concentrated in the spatial dimension, and the feature map of each channel is concentrated through the maximum pooling operation and the average pooling operation. The two concentrated channel features are sent to the shared fully connected layer FC to learn the weight distribution. After that, the output of the fully connected layer is merged together by element addition, and finally the channel attention weight is obtained through the activation function sigmoid. In order to calculate spatial attention, the maximum pooling operation and the average pooling operation are first applied to the features at the same position in the channel dimension, and the weight distribution is learned through a convolution operation. Finally, the spatial attention weight is obtained through the activation function sigmoid.

[0040] The present invention adopts channel attention module and spatial attention module in the backbone network, which can effectively suppress redundant information, extract important feature information, and highlight the key points of image segmentation. Figure 4 shown.

[0041] S2: The smoke foreground enhancement module enhances the pixel features, including:

[0042] S201: Use the smoke foreground enhancement module to roughly segment the fused feature map, and the result of the rough segmentation is supervised by the cross entropy loss function. Specifically, the target is roughly segmented once, and the image is divided into foreground I s and Background I f Two parts.

[0043] S202: Use the spatial softmax function to identify the foreground I s and Background I f Perform feature normalization to obtain the probability of each pixel belonging to the smoke foreground and background.

[0044] S203: Perform weighted fusion on the pixel features to obtain a foreground region representation. The specific calculation formula of the foreground region representation s is:

[0045]

[0046] Among them, x i For each pixel p i Features, is the pixel p i The normalized features of the foreground area, I represents the feature map.

[0047] S204: Calculate the relationship between the foreground region representation and the pixel point features to obtain the foreground relationship representation. The specific calculation formula of the foreground relationship representation w is:

[0048]

[0049] Where f is the background region representation, which is obtained by multiplying the normalized feature of the background region with the pixel feature, κ(x,s)=φ(·) T ψ(·) is the relationship function, φ(·) and ψ(·) represent the conversion function, which is implemented by 1×1conv→BN→ReLU.

[0050] S205: The foreground relationship representation and the foreground region representation are integrated to obtain a foreground enhancement representation. The specific calculation formula of the foreground enhancement representation is: y = ρ (wδ (s))

[0051] where δ(·) and ρ(·) represent the conversion function, which is implemented by 1×1conv→BN→ReLU.

[0052] S206: Fusing the foreground enhancement representation with the pixel feature to obtain enhanced pixel features.

[0053] Smoke has the characteristic of being semi-transparent. Under the interference of light, it is very easy to blend with the background such as the ground, wall, and sky, which reduces the segmentation accuracy. A pixel and its target area belong to the same category. By analyzing the relationship between the pixel features at a position and the target area features, a corresponding relationship representation can be established. The relationship representation can measure the similarity between the pixel and the target area. The feature information of a single pixel is not sufficient. The foreground enhancement representation can be obtained by using the smoke foreground features and the foreground relationship representation. The foreground enhancement representation contains the foreground feature information associated with the pixel. Concatenating it with the pixel features can enhance the feature expression of a single pixel, so that the corresponding pixel can fuse richer semantic information, thereby improving the classification accuracy of the pixel. For a smoke pixel, using the corresponding smoke foreground enhancement representation can make the smoke pixel feature fuse richer foreground information, while avoiding the interference of background information. The smoke pixel after feature enhancement is easier to distinguish from the background, thereby improving the segmentation accuracy.

[0054] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0055] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A real-time smoke segmentation method integrating multi-resolution representation, characterized in that: include: Extract features from smoke video streams frame by frame and fuse feature maps of different resolutions; The fused feature map is roughly segmented, and the rough segmentation result is normalized to obtain the probability of each pixel belonging to the smoke foreground and background. The pixel features are weighted and fused with the normalized features of the foreground area to obtain the foreground area representation; Calculate the relationship between the foreground region representation and the pixel point features to obtain the foreground relationship representation; The foreground relationship representation and the foreground region representation are fused to obtain the foreground enhancement representation; Fuse the foreground enhancement representation and pixel features and output the segmentation result; The calculation formula of foreground region representation s is: Among them, x i For each pixel p i Features, is the pixel p i Normalized features of the foreground area, I represents the feature map; The calculation formula of foreground relationship representation w is: Among them, f is the background region representation, which is obtained by multiplying the normalized feature of the background region with the pixel feature, κ(x,s)=φ(·) T ψ(·) is the relationship function, φ(·) and ψ(·) represent the conversion functions; The calculation formula of foreground enhancement representation y is: y=ρ(wδ(s)) Among them, δ(·) and ρ(·) represent the transformation function, and w represents the foreground relationship representation; Fusion of feature maps of different resolutions specifically includes: The fusion process includes upsampling, downsampling and resolution preservation. The low-resolution feature map is fused with the high-resolution feature map by improving the resolution through bilinear interpolation. The high-resolution feature map is fused with the low-resolution feature map by reducing the resolution through pooling operation. The feature map of the same scale keeps the resolution unchanged through convolution operation.