A method for industrial smoke emission recognition based on attribute-aware attention aggregation
By adopting the attribute-aware attention pooling method in intelligent smoke emission recognition and using video attribute information and multiple supervision information to generate smoke density image sequences, the problems of low detection rate and high false alarm rate in the existing technology are solved, and a better Efficient and accurate smoke emission identification.
Patent Information
- Application Number
- CN202111169931.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-08
AI Technical Summary
Existing intelligent industrial smoke emission identification methods have low detection rates and high false alarm rates, and fail to effectively utilize video attribute information, resulting in poor environmental adaptability and high false alarm rates.
Using a method based on attribute-aware attention pooling, multiple attribute feature maps are obtained by inputting video attribute information for decoding, attention pooling feature encoding is combined with video features, and multiple supervision information is used for progressive decoding to generate smoke density image sequences and classify them. to improve recognition accuracy.
It effectively reduces the rate of false positives and false negatives, improves the accuracy and environmental adaptability of smoke emission identification, saves manpower and financial resources, and improves identification efficiency.
Smart Images

Figure CN113887443B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of pattern recognition, and in particular relates to an industrial smoke emission recognition method. Background Art
[0002] At present, in practical applications, smoke emission recognition still relies on manual estimation, which is time-consuming and labor-intensive. Since surveillance video has the advantages of fast response speed, remote control, full-time duty, and manpower saving, the smoke emission recognition method based on intelligent monitoring has become an important idea. The methods based on this idea can be roughly divided into two categories:
[0003] Early methods usually first extract artificial features from images or videos, and then classify the extracted features to obtain smoke recognition results. However, artificial features cannot effectively describe semantic information. In recent years, smoke recognition methods based on deep learning have been widely used and have achieved better performance than early methods because deep models extract rich semantic information for smoke recognition.
[0004] Existing deep smoke recognition models can be roughly divided into image-based smoke recognition methods and video-based smoke recognition methods. The former extracts spatial features for classification, and mainly focuses on how to learn the most essential smoke feature representation by designing various network structures and modules. The latter extracts spatiotemporal features for classification, and mainly describes the timing information of smoke by analyzing continuous frames that change over time to obtain the feature representation of smoke. Video-based methods usually have better performance than image-based methods because they characterize the motion information of smoke. In fact, some light / small real smoke and many smoke-like targets can only be correctly identified using spatiotemporal information.
[0005] However, due to the diversity of smoke and the constant interference of smoke-like targets (such as fog, clouds, and water vapor), the existing intelligent industrial smoke emission recognition methods still face the problems of low detection rate and high false alarm rate. The main reason is that the existing smoke recognition deep model only considers binary category information (smoke / non-smoke) or target area bounding box as supervision information for training, ignoring video attribute information (such as camera installation location information, season and weather, etc.), which can provide important supplementary information for improving the generalization ability of the model. The binary classification label has local semantic characteristics, that is, the binary label only corresponds to a small local area in the image, and cannot effectively guide the model training process. At present, there are not many inventions about industrial smoke emissions, and most of them have problems such as high false alarm rate and low environmental adaptability, and have not really solved the core problem of smoke emission recognition from a technical and engineering perspective. Summary of the invention
[0006] In order to overcome the shortcomings of the prior art, the present invention provides an industrial smoke emission recognition method based on attribute-aware attention aggregation. First, the video attribute information is input, and the attribute information decoding module is used to decode to obtain a multiple attribute feature map; then the multiple attribute feature map and the video are input into the attention aggregation feature encoding module to obtain multiple features for characterizing industrial smoke; next, the multiple features are progressively decoded using multiple supervision information to obtain a smoke density image sequence; finally, the smoke density image sequence is classified to obtain a smoke recognition result. The present invention comprehensively utilizes binary category information, smoke density image information, video attribute information, etc. to perform strong supervision on each pixel of the input image, thereby reducing the false alarm rate and missed alarm rate of industrial smoke emission recognition.
[0007] The technical solution adopted by the present invention to solve the technical problem includes the following steps:
[0008] Step 1: Input video attribute information and use the attribute information decoding module to decode and obtain multiple attribute feature maps;
[0009] Step 2: Input the multiple attribute feature maps and the video into the attention pooling feature encoding module to obtain multiple features for characterizing industrial smoke;
[0010] Step 3: Use multiple supervisory information to progressively decode multiple features to obtain a smoke density image sequence;
[0011] Step 4: Classify the smoke density image sequence to obtain the smoke recognition result.
[0012] Furthermore, the video attribute information includes the shooting location number of the video, shooting season information, and shooting weather information, and the weather information includes whether there is fog, whether it is raining, and whether it is windy.
[0013] Furthermore, the specific steps of using the attribute information decoding module to decode and obtain the multiple attribute feature graph in step 1 are as follows:
[0014] Step 1-1: Convert the video attribute information into the attribute information numerical vector a. The specific conversion method is:
[0015]
[0016]
[0017] Among them, N1 represents the number of attribute information, M k (k=1,2,…,N1) represents the number of categories of the k-th attribute information; a ij Indicates whether the i-th attribute of the input video belongs to the j-th category. If so, then a ij =1, otherwise, a ij =0;
[0018] Step 1-2: Input the attribute information numerical vector into the attribute information decoding module, which includes a fully connected layer and three convolutional layers. The fully connected layer is used to perform dimensionality transformation on the attribute information numerical vector. The convolutional layer includes multiple convolution operations, deconvolution operations, batch normalization and ReLU activation functions, which are used to decode the attribute information to obtain an attribute feature map; the attribute feature maps output by the three convolutional layers are aggregated to obtain multiple attribute feature maps.
[0019] Furthermore, in step 2, the multiple attribute feature graphs and the video are input into the attention pooling feature encoding module to obtain multiple features for characterizing industrial smoke. The specific steps are as follows:
[0020] Step 2-1: the attention-aggregating feature encoding module includes four cascaded contextual information attention modules and four cascaded spatiotemporal information attention modules;
[0021] Step 2-2: The input of the context information attention module is For the first context information attention module, f and I2 represent the feature map obtained after the convolution operation of the input video and the output feature map of the first spatiotemporal information attention module respectively; for the second context information attention module, f and I2 represent the feature map output by the first context information attention module and the output of the second spatiotemporal information attention module respectively; the context information attention module includes a global feature extraction part GFE and a cascade pyramid attention part CPA, the former is used to extract global features, and the latter is used to extract multi-scale features;
[0022] Step 2-3: The goal of the global feature extraction part GFE is to encode global information by aggregating the global semantic contextual relationship between pixel pairs. GFE obtains the global feature map F GFE The calculation process is expressed as:
[0023] F GFE =f+δ(f⊙G)
[0024]
[0025]
[0026]
[0027]
[0028] Among them, δ represents the learnable weight, which is used to control the contribution of global context information; G and C are the intermediate feature maps for feature calculation, It is a dimensionality transformation method, the purpose is to transform a The three-dimensional matrix is reorganized into a A two-dimensional matrix, yes The purpose of the inverse transformation operation is to transform a The two-dimensional matrix is reorganized into a The three-dimensional matrix Q encodes the global relationship between pixels, q ij The relative influence of the i-th channel feature map of f on the j-th channel feature map is measured. P0 represents the number of pixels in each channel feature map, and W and H represent the length and width of a channel feature map, respectively. and ⊙ represent matrix product and matrix dot product respectively, c ij Represents the element value of the matrix C at position (i, j), which is used to represent the feature similarity between two embedded vectors based on the cosine distance;
[0029] Step 2-4: The goal of the cascaded pyramid attention part CPA is to enhance the discriminability of features through cascaded pyramids. The feature map F extracted by CPA CPA The calculation process is:
[0030] I=concat(I1,I2)
[0031] I=concat(f,I2)
[0032] D1=DS(DS(I))
[0033] S1=D1+A(D1)⊙D1
[0034] D2=DS(I)
[0035] S2=D2+A(D2+US(S1)⊙D1+US(S1)
[0036] S3=US(conat(S2,US(S1)))
[0037] F CPA =I+D2+A(I)⊙D1⊙S3+S3
[0038] Among them, DS(*) and US(*) represent downsampling and upsampling operations respectively, A(*) represents the spatial attention module, concat(*,*) represents the feature map concatenation operation, D1, S1, D2, S2 and S3 all represent intermediate variables in the calculation process;
[0039] Step 2-5: Concatenate feature maps F GFE and F CPA Get the output feature map F of the context information attention module TIA ,Right now:
[0040] FTIA =concat(F GFE ,F CPA )
[0041] Step 2-6: The input of the spatiotemporal information attention module is For the first spatiotemporal information attention module, J1, J2 and J3 all represent the feature map obtained after the convolution operation of the input video; for the second spatiotemporal information attention module, J1, J2 and J3 respectively represent the output feature map of the first contextual information attention module, the multi-attribute feature map of the input video and the output feature map of the first spatiotemporal information attention module, and so on; the output feature map F of the spatiotemporal information attention module SIA The specific calculation method is:
[0042] J=J1+J2+J3
[0043] {j1,j2,…,j K}=split(J)
[0044] l1=CLSTM(conv(j1))
[0045] l k =CLSTM(conv(j k ),l k-1 ),k=2,…,K
[0046] F SIA =concat(l1,l2,…,l K )
[0047] Among them, CLSTM(*) and conv(*) represent ConvLSTM model and convolution operation respectively, split(*) represents split operation, and K represents the number of splits;
[0048] Step 2-7: The final context information attention module outputs multiple features that characterize industrial smoke.
[0049] Furthermore, the specific steps of using multiple supervisory information to progressively decode multiple features to obtain a smoke density image sequence in step 3 are as follows:
[0050] Step 3-1: The multiple supervision information includes: binary category supervision information of smoke and no smoke, pixel-level smoke density image supervision information and video attribute information;
[0051] Step 3-2: The progressive decoding is performed by a progressive decoding module, which includes a fully connected layer, multiple decoding layers and multiple prediction layers; the feature map size is increased by progressive decoding to achieve the prediction of the final smoke density image sequence;
[0052] Step 3-3: Use a fully connected layer to process the highest-level features in the multiple features output in step 2 to obtain a small-size feature map;
[0053] Step 3-4: The decoding layers all use the generator of the deep generative adversarial network; upsampling, 1×1 convolution and point-by-point summation methods are used in turn to align the spatial resolution and number of channels of the input multiple features, and two convolution operations are used to integrate the multiple features and the feature map output by the previous decoding layer to obtain a feature map with an unchanged number of channels as the input of the next decoding layer, thereby gradually increasing the size of the feature map until the size of the smoke density image sequence is reached;
[0054] Step 3-5: The prediction layer includes a smoke density prediction layer and an attribute information prediction layer; the smoke density prediction layer is implemented by the decoding layer of UNet, and the attribute information prediction layer is implemented by ResNet; the prediction layer decodes the feature map output by the corresponding decoding layer to obtain a smoke density image sequence and video attribute information, and uses a Sigmoid function in the smoke density prediction layer to map the range of the prediction value of each pixel corresponding to the smoke density image to a closed interval [0,1].
[0055] Furthermore, the specific steps of classifying the smoke density image sequence in step 4 to obtain the smoke recognition result are as follows:
[0056] Step 4-1: Input the smoke density image sequence obtained in step 3 into the C3D model, and output the recognition result of whether there is industrial smoke emission;
[0057] Step 4-2: Loss function L of C3D model AANet Calculated using the following formula:
[0058]
[0059]
[0060]
[0061]
[0062] Among them, T represents the number of training mini-batch samples, and They represent the loss terms of smoke density image, attribute information and category information respectively, and w D 、w A and w C Denotes the weight coefficient corresponding to each loss term, s=1, 2, 3, 4 denotes four different stages of progressive decoding, D s,l t and PD s,l tdenote the lth real and predicted smoke density images corresponding to the tth sample sequence in the sth stage, c a,k t and The true value and predicted value of the attribute a of the t-th training sample belonging to the k-th class, c p t and They represent the true category and predicted category of the tth sample in the intermediate stage p=1 and the final stage p=2 respectively.
[0063] The beneficial effects of the present invention are as follows:
[0064] (1) Compared with the traditional manual method, the technical solution of the present invention saves manpower and financial resources, and makes up for the low efficiency of traditional artificial smoke emission identification;
[0065] (2) Compared with the intelligent monitoring method, the present invention integrates the video attribute information into the category information and smoke density image supervision information by designing the attribute information vector and the attribute information decoding module, which effectively guides the model training;
[0066] (3) The present invention designs spatial information attention and contextual information attention modules (including global feature extraction and cascaded pyramid attention) to aggregate spatiotemporal and contextual information and learn more robust and discriminative smoke feature representations, which provide important clues for identifying small / light smoke and distinguishing smoke-like targets, and effectively reduce the underreporting and false alarms of smoke emissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a schematic diagram of the method flow of the present invention.
[0068] Figure 2 Schematic diagram of attribute information vector of the method of the present invention.
[0069] Figure 3 This is a smoke density image extracted by an embodiment of the present invention. DETAILED DESCRIPTION
[0070] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0071] The present invention proposes to comprehensively utilize binary category information, smoke density image information, video attribute information, etc. to strongly supervise each pixel of the input image and guide the model training process. For example, when the input data is a smoke emission video on a foggy day, if not only a binary category label is used to tell the model that the input video is a smoke video, but also a smoke density image label is used to tell the model the smoke density value of each pixel of the input image, and also to tell the model that the input video was shot on a foggy day, this will be very helpful for the model to focus on smoke recognition in a foggy environment.
[0072] This paper uses advanced image processing and analysis technology, takes various problems encountered in industrial smoke emission identification practice as the starting point, combines innovative smoke emission identification process and processing methods, and develops industrial smoke emission detection and identification technology based on video image intelligent analysis. The application of this technology helps to improve the efficiency and accuracy of industrial smoke emission identification, which has important practical significance for improving air quality.
[0073] like Figure 1 As shown, an industrial smoke emission recognition method based on attribute-aware attention aggregation includes the following steps:
[0074] Step 1: Input video attribute information and use the attribute information decoding module to decode and obtain multiple attribute feature maps;
[0075] The video attribute information includes the shooting location number of the video, shooting season information, and shooting weather information. The weather information includes whether there is fog, whether it is raining, and whether it is windy.
[0076] Step 1-1: If Figure 2 As shown, the video attribute information is converted into the attribute information numerical vector a. The specific conversion method is:
[0077]
[0078]
[0079] Among them, N1 represents the number of attribute information, M k (k=1,2,…,N1) represents the number of categories of the k-th attribute information; a ij Indicates whether the i-th attribute of the input video belongs to the j-th category. If so, then a ij =1, otherwise, a ij =0;
[0080] Step 1-2: Input the attribute information numerical vector into the attribute information decoding module, which includes a fully connected layer and three convolutional layers. The fully connected layer is used to perform dimensionality transformation on the attribute information numerical vector. The convolutional layer includes multiple convolution operations, deconvolution operations, batch normalization and ReLU activation functions, which are used to decode the attribute information to obtain an attribute feature map; the attribute feature maps output by the three convolutional layers are aggregated to obtain multiple attribute feature maps.
[0081] Step 2: Input the multiple attribute feature maps and the video into the attention pooling feature encoding module to obtain multiple features for characterizing industrial smoke;
[0082] Step 2-1: the attention-aggregating feature encoding module includes four cascaded contextual information attention modules and four cascaded spatiotemporal information attention modules;
[0083] Step 2-2: The input of the context information attention module is For the first context information attention module, f and I2 represent the feature map obtained after the convolution operation of the input video and the output feature map of the first spatiotemporal information attention module respectively; for the second context information attention module, f and I2 represent the feature map output by the first context information attention module and the output of the second spatiotemporal information attention module respectively; the context information attention module includes a global feature extraction part GFE and a cascade pyramid attention part CPA, the former is used to extract global features, and the latter is used to extract multi-scale features;
[0084] Step 2-3: The goal of the global feature extraction part GFE is to encode global information by aggregating the global semantic context relationship between pixel pairs. GFE obtains the global feature map F GFE The calculation process is expressed as:
[0085] F GFE =f+δ(f⊙G)
[0086]
[0087]
[0088]
[0089]
[0090] Among them, δ represents the learnable weight, which is used to control the contribution of global context information; G and C are the intermediate feature maps for feature calculation, It is a dimensionality transformation method, the purpose is to transform a The three-dimensional matrix is reorganized into a A two-dimensional matrix, yes The purpose of the inverse transformation operation is to transform a The two-dimensional matrix is reorganized into a The three-dimensional matrix Q encodes the global relationship between pixels, q ij The relative influence of the i-th channel feature map of f on the j-th channel feature map is measured. P0 represents the number of pixels in each channel feature map, and W and H represent the length and width of a channel feature map, respectively. and ⊙ represent matrix product and matrix dot product respectively, c ij Represents the element value of the matrix C at position (i, j), which is used to represent the feature similarity between two embedded vectors based on the cosine distance;
[0091] Step 2-4: The goal of the cascaded pyramid attention part CPA is to enhance the discriminability of features through cascaded pyramids. The feature map F extracted by CPA CPA The calculation process is:
[0092] I=concat(I1,I2)
[0093] I=concat(f,I2)
[0094] D1=DS(DS(I))
[0095] S1=D1+A(D1)⊙D1
[0096] D2=DS(I)
[0097] S2=D2+A(D2+US(S1)⊙D1+US(S1)
[0098] S3=US(concat(S2,US(S1)))
[0099] F CPA =I+D2+A(I)⊙D1⊙S3+S3
[0100] Among them, DS(*) and US(*) represent downsampling and upsampling operations respectively, A(*) represents the spatial attention module, concat(*,*) represents the feature map concatenation operation, D1, S1, D2, S2 and S3 all represent intermediate variables in the calculation process;
[0101] Step 2-5: Concatenate feature maps F GFE and F CPA Get the output feature map F of the context information attention module TIA ,Right now:
[0102] F TIA =concat(F GFE ,F CPA )
[0103] Step 2-6: The input of the spatiotemporal information attention module is S = {J1, J2, J3}; for the first spatiotemporal information attention module, J1, J2 and J3 all represent the feature map obtained after the convolution operation of the input video; for the second spatiotemporal information attention module, J1, J2 and J3 respectively represent the output feature map of the first context information attention module, the multi-attribute feature map of the input video and the output feature map of the first spatiotemporal information attention module, and so on; the spatiotemporal information attention module outputs the feature map F SIA The specific calculation method is:
[0104] J=J1+J2+J3
[0105] {j1,j2,…,j K}=split(J)
[0106] l1=CLSTM(conv(j1))
[0107] l k =CLSTM(conv(j k ),l k-1 ),k=2,…,K
[0108] F SIA =concat(l1,l2,…,l K )
[0109] Among them, CLSTM(*) and conv(*) represent ConvLSTM model and convolution operation respectively, split(*) represents split operation, and K represents the number of splits;
[0110] Step 2-7: The final context information attention module outputs multiple features that characterize industrial smoke.
[0111] Step 3: Use multiple supervisory information to progressively decode multiple features to obtain a smoke density image sequence;
[0112] Step 3-1: The multiple supervision information includes: binary category supervision information of smoke and no smoke, pixel-level smoke density image supervision information and video attribute information;
[0113] Step 3-2: The progressive decoding is performed by a progressive decoding module, which includes a fully connected layer, multiple decoding layers and multiple prediction layers; the feature map size is increased by progressive decoding to achieve the prediction of the final smoke density image sequence;
[0114] Step 3-3: Use a fully connected layer to process the highest-level features in the multiple features output in step 2 to obtain a small-size feature map;
[0115] Step 3-4: The decoding layers all use the generator of the deep generative adversarial network; upsampling, 1×1 convolution and point-by-point summation methods are used in turn to align the spatial resolution and number of channels of the input multiple features, and two convolution operations are used to integrate the multiple features and the feature map output by the previous decoding layer to obtain a feature map with an unchanged number of channels as the input of the next decoding layer, thereby gradually increasing the size of the feature map until the size of the smoke density image sequence is reached;
[0116] Step 3-5: The prediction layer includes a smoke density prediction layer and an attribute information prediction layer; the smoke density prediction layer is implemented by the decoding layer of UNet, and the attribute information prediction layer is implemented by ResNet; the prediction layer decodes the feature map output by the corresponding decoding layer to obtain a smoke density image sequence and video attribute information, and uses a Sigmoid function in the smoke density prediction layer to map the range of the prediction value of each pixel corresponding to the smoke density image to a closed interval [0,1].
[0117] Step 4: Classify the smoke density image sequence to obtain the smoke recognition result.
[0118] Step 4-1: Input the smoke density image sequence obtained in step 3 into the C3D model, and output the recognition result of whether there is industrial smoke emission;
[0119] Step 4-2: Loss function L of C3D model AANet Calculated using the following formula:
[0120]
[0121]
[0122]
[0123]
[0124] Among them, T represents the number of training mini-batch samples, and They represent the loss terms of smoke density image, attribute information and category information respectively, and w D 、w A and w C Denotes the weight coefficient corresponding to each loss term, s=1, 2, 3, 4 denotes four different stages of progressive decoding, D s,l t and PD s,l t denote the lth real and predicted smoke density images corresponding to the tth sample sequence in the sth stage, c a,k t and The true value and predicted value of the attribute a of the t-th training sample belonging to the k-th class, c p t and They represent the true category and predicted category of the tth sample in the intermediate stage p=1 and the final stage p=2 respectively.
[0125] Figure 3The first row of the figure shows three smoke emission images captured from factory chimney monitoring videos using the present invention, including smoke emission images containing interfering target water vapor, and the second row shows smoke density images extracted using the method of the present invention.
Claims
1. A method for industrial smoke emission recognition based on attribute-aware attention aggregation, characterized in that: The following steps are involved: Step 1: Input video attribute information and use the attribute information decoding module to decode and obtain multiple attribute feature maps; Step 2: Input the multiple attribute feature maps and the video into the attention pooling feature encoding module to obtain multiple features for characterizing industrial smoke; Step 2-1: the attention-aggregating feature encoding module includes four cascaded contextual information attention modules and four cascaded spatiotemporal information attention modules; Step 2-2: The input of the context information attention module is For the first context information attention module, f and I2 represent the feature map obtained after the convolution operation of the input video and the output feature map of the first spatiotemporal information attention module respectively; for the second context information attention module, f and I2 represent the feature map output by the first context information attention module and the output of the second spatiotemporal information attention module respectively; the context information attention module includes a global feature extraction part GFE and a cascade pyramid attention part CPA, the former is used to extract global features, and the latter is used to extract multi-scale features; Step 2-3: The goal of the global feature extraction part GFE is to encode global information by aggregating the global semantic contextual relationship between pixel pairs. GFE obtains the global feature map F GFE The calculation process is expressed as: F GFE =f+δ(f⊙G) Among them, δ represents the learnable weight, which is used to control the contribution of global context information; G and C are the intermediate feature maps for feature calculation, It is a dimensionality transformation method, the purpose is to transform a The three-dimensional matrix is reorganized into a A two-dimensional matrix, yes The purpose of the inverse transformation operation is to transform a The two-dimensional matrix is reorganized into a The three-dimensional matrix Q encodes the global relationship between pixels, q ij The relative influence of the i-th channel feature map of f on the j-th channel feature map is measured. P0 represents the number of pixels in each channel feature map, and W and H represent the length and width of a channel feature map, respectively. and ⊙ represent matrix product and matrix dot product respectively, c ij Represents the element value of the matrix C at position (i, j), which is used to represent the feature similarity between two embedded vectors based on the cosine distance; Step 2-4: The goal of the cascaded pyramid attention part CPA is to enhance the discriminability of features through cascaded pyramids. The feature map F extracted by CPA CPA The calculation process is: I=concat(I1,I2) I=concat(f,I2) D1=DS(DS(I)) S1=D1+A(D1)⊙D1 D2=DS(I) S2=D2+A(D2+US(S1)⊙D1+US(S1) S3=US(soncat(S2,US(S1))) <h2 style=";text-align:left;direction:ltr">F<h2 style=";text-align:left;direction:ltr"> CPA <h2 style=";text-align:left;direction:ltr"> (I+D2+A(I)⊙D1⊙S3+S3) Among them, DS(*) and US(*) represent downsampling and upsampling operations respectively, A(*) represents the spatial attention module, concat(*,*) represents the feature map concatenation operation, D1, S1, D2, S2 and S3 all represent intermediate variables in the calculation process; Step 2-5: Concatenate feature maps F GFE and F CPA Get the output feature map F of the context information attention module TIA ,Right now: F TIA =concat(F GFE ,F CPA ) Step 2-6: The input of the spatiotemporal information attention module is For the first spatiotemporal information attention module, J1, J2 and J3 all represent the feature map obtained after the convolution operation of the input video; for the second spatiotemporal information attention module, J1, J2 and J3 respectively represent the output feature map of the first contextual information attention module, the multi-attribute feature map of the input video and the output feature map of the first spatiotemporal information attention module, and so on; the output feature map F of the spatiotemporal information attention module SIA The specific calculation method is: J=J1+J2+J3 {j1,j2,…,j K }=split(J) l1=CLSTM(conv(j1)) l k =CLSTM(conv(j k ),l k-1 ),k=2,…,K F SIA =concat(l1,l2,…,l K ) Among them, CLSTM(*) and conv(*) represent ConvLSTM model and convolution operation respectively, split(*) represents split operation, and K represents the number of splits; Step 2-7: The final context information attention module outputs multiple features representing industrial smoke; Step 3: Use multiple supervisory information to progressively decode multiple features to obtain a smoke density image sequence; Step 4: Classify the smoke density image sequence to obtain the smoke recognition result.
2. The industrial smoke emission identification method based on attribute-aware attention aggregation according to claim 1 is characterized in that: The video attribute information includes the shooting location number of the video, shooting season information, and shooting weather information. The weather information includes whether there is fog, whether it is raining, and whether it is windy.
3. The industrial smoke emission identification method based on attribute-aware attention aggregation according to claim 2 is characterized in that: The specific steps of using the attribute information decoding module to decode and obtain the multiple attribute feature graph in step 1 are as follows: Step 1-1: Convert the video attribute information into the attribute information numerical vector a. The specific conversion method is: Among them, N1 represents the number of attribute information, M k (k=1,2,…,N1) represents the number of categories of the k-th attribute information; a ij Indicates whether the i-th attribute of the input video belongs to the j-th category. If so, then a ij =1, otherwise, a ij =0; Step 1-2: Input the attribute information numerical vector into the attribute information decoding module, which includes a fully connected layer and three convolutional layers. The fully connected layer is used to perform dimensionality transformation on the attribute information numerical vector. The convolutional layer includes multiple convolution operations, deconvolution operations, batch normalization and ReLU activation functions, which are used to decode the attribute information to obtain an attribute feature map; the attribute feature maps output by the three convolutional layers are aggregated to obtain multiple attribute feature maps.
4. The industrial smoke emission identification method based on attribute-aware attention aggregation according to claim 3 is characterized in that: The specific steps of using multiple supervisory information to progressively decode multiple features to obtain a smoke density image sequence in step 3 are as follows: Step 3-1: The multiple supervision information includes: binary category supervision information of smoke and no smoke, pixel-level smoke density image supervision information and video attribute information; Step 3-2: The progressive decoding is performed by a progressive decoding module, which includes a fully connected layer, multiple decoding layers and multiple prediction layers; the feature map size is increased by progressive decoding to achieve the prediction of the final smoke density image sequence; Step 3-3: Use a fully connected layer to process the highest-level features in the multiple features output in step 2 to obtain a small-size feature map; Step 3-4: The decoding layers all use the generator of the deep generative adversarial network; upsampling, 1×1 convolution and point-by-point summation methods are used in turn to align the spatial resolution and number of channels of the input multiple features, and two convolution operations are used to integrate the multiple features and the feature map output by the previous decoding layer to obtain a feature map with an unchanged number of channels as the input of the next decoding layer, thereby gradually increasing the size of the feature map until the size of the smoke density image sequence is reached; Step 3-5: The prediction layer includes a smoke density prediction layer and an attribute information prediction layer; the smoke density prediction layer is implemented by the decoding layer of UNet, and the attribute information prediction layer is implemented by ResNet; the prediction layer decodes the feature map output by the corresponding decoding layer to obtain a smoke density image sequence and video attribute information, and uses a Sigmoid function in the smoke density prediction layer to map the range of the prediction value of each pixel corresponding to the smoke density image to a closed interval [0,1].
5. The industrial smoke emission identification method based on attribute-aware attention aggregation according to claim 4 is characterized in that: The specific steps of classifying the smoke density image sequence in step 4 to obtain the smoke recognition result are as follows: Step 4-1: Input the smoke density image sequence obtained in step 3 into the C3D model, and output the recognition result of whether there is industrial smoke emission; Step 4-2: Loss function L of C3D model AANet Calculated using the following formula: Among them, T represents the number of training mini-batch samples, and They represent the loss terms of smoke density image, attribute information and category information respectively, and w D 、w A and w C Denotes the weight coefficient corresponding to each loss term, s=1, 2, 3, 4 denotes four different stages of progressive decoding, D s,l t and PD s,l t denote the lth real and predicted smoke density images corresponding to the tth sample sequence in the sth stage, c a,k t and The true value and predicted value of the attribute a of the t-th training sample belonging to the k-th class, c p t and They represent the true category and predicted category of the tth sample in the intermediate stage p=1 and the final stage p=2 respectively.
