Open set target detection method and device in industrial scene, equipment and storage medium

By using technologies such as space-to-depth convolution module, bottleneck attention module and dilated convolution module in industrial scenarios, the problem of low open set target detection accuracy in industrial scenarios is solved and more efficient target detection is achieved.

CN118691965APending Publication Date: 2024-09-24SEVNCE ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410723645.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Due to factors such as dense distribution of targets, occlusion, and poor lighting, existing open set target detection in industrial scenes results in low recognition accuracy and reduces the efficiency of target detection.

Method used

The spatial to depth convolution module is used for feature extraction, combined with the bottleneck attention module for feature dimensionality reduction, the dilated convolution module is used to extract local information, and the strip pooling module is used for pooling to integrate channel and spatial attention to improve network performance. .

Benefits of technology

It improves the accuracy and efficiency of open set target detection in industrial scenarios, improves the performance of processing small objects and low-resolution images, reduces information loss, and extracts more detailed information features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691965A
    Figure CN118691965A
Patent Text Reader

Abstract

The invention relates to an image processing technology, and discloses an open-set target detection method in an industrial scene, which comprises the following steps: acquiring industrial image data, and inputting the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features; performing feature dimension reduction operation on the industrial image data features by using a bottleneck attention module to obtain refined industrial image data features; extracting local information in the industrial image data by using an expansion convolution module, and mapping the local information to the refined industrial image data features to obtain target industrial image data features; and pooling the target industrial image data features by using a strip pooling module to obtain final industrial image data features, and performing target detection according to the final industrial image data features to obtain a target detection result. The invention further provides an open set target detection device and equipment in the industrial scene and a storage medium. According to the invention, the accuracy and efficiency of open set target detection in an industrial scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an open set target detection method, device, equipment and storage medium in an industrial scenario. Background Art

[0002] In industrial scenarios, open-set target detection is mainly used in scenarios such as security monitoring, quality management, production scheduling, and equipment maintenance. For example, in security monitoring scenarios, open-set target detection is used in factories, warehouses, and production lines to identify and locate abnormal behaviors, dangerous objects, or unidentified objects. In quality management scenarios, open-set target detection is used to detect product appearance flaws, defects, or defective parts.

[0003] Existing open-set target detection is mainly achieved through region-based convolutional neural networks. However, due to unfavorable factors in industrial scenes such as dense distribution and occlusion of targets, poor lighting conditions, small targets, and complex backgrounds, the recognition accuracy of open-set target detection is low, which in turn reduces the efficiency of target detection. Summary of the invention

[0004] The present invention provides an open set target detection method, device, equipment and storage medium in an industrial scenario, which can improve the accuracy and efficiency of open set target detection in an industrial scenario.

[0005] To achieve the above object, the present invention provides an open set target detection method in an industrial scenario, comprising:

[0006] Acquire industrial image data, and input the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features;

[0007] Performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features;

[0008] Extracting local information from the industrial image data using a dilated convolution module, and mapping the local information to the refined industrial image data features to obtain target industrial image data features;

[0009] The target industrial image data features are pooled using a strip pooling module to obtain final industrial image data features, and target detection is performed based on the final industrial image data features to obtain a target detection result.

[0010] Optionally, the step of inputting the industrial data into a space-to-depth convolution module for feature extraction to obtain industrial image data features includes:

[0011] Selecting an image space block from the industrial image data, and converting the industrial image data into a depth dimension using the image space block to obtain a depth dimension feature map;

[0012] The depth dimension feature map is convolved using a full coverage convolution kernel to obtain the industrial image data feature.

[0013] Optionally, the step of performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features includes:

[0014] Using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features to obtain a channel weighted feature map;

[0015] Using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map;

[0016] The channel weighted feature map and the space weighted feature map are merged to obtain refined industrial image data features.

[0017] Optionally, the using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map includes:

[0018] Performing a pooling operation on the industrial image data features to obtain a feature pooling result;

[0019] Performing convolution processing on the feature pooling result to obtain a spatial attention map;

[0020] Activating the spatial attention map using an activation function to obtain a spatial attention weight;

[0021] The spatial attention weight is mapped to the industrial image data feature to obtain a spatial weighted feature map.

[0022] Optionally, merging the channel weighted feature map and the spatial weighted feature map comprises:

[0023] The channel weighted feature map and the spatial weighted feature map are merged using the following formula:

[0024]

[0025] M(F)=σ(M c (F)+M s (F)

[0026] Among them, F′ is the refined industrial image data feature, F is the industrial image data feature, and F∈v C*H*W , C is the number of channels, H is the height of industrial image data, W is the width of industrial image data, is element-wise multiplication, M c (F) is the channel attention, M s (F) is the spatial attention, and σ(·+·) represents the feature concatenation function.

[0027] Optionally, the using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features includes:

[0028] The following formula is used to perform channel weighting on the industrial image data features:

[0029] M c (F)=BN(W1(W0bilinearPool(F)+b0)+b1)

[0030] Among them, BN(·) is batch normalization processing, W0 is the first weight parameter, W0∈v c / r*C , W1 is the second weight parameter, W1∈R C / r*c , b0 is the first bias parameter, b0∈R r / C , b1 is the second bias parameter, b1∈R C , r is the same attenuation rate of the channel branches.

[0031] Optionally, the step of pooling the target industrial image data features using a strip pooling module to obtain final industrial image data features includes:

[0032] Performing pooling operations of different scales on the target industrial image data features to obtain multi-scale pooling features;

[0033] The multi-scale pooling feature is subjected to a convolution operation to adjust the number of channels, and an upsampling operation is performed after the number of channels is adjusted to obtain a multi-scale pooling feature of the same size as the target industrial image data feature;

[0034] Performing feature splicing on the multi-scale pooling features of the same size to obtain spliced ​​industrial image data features;

[0035] Performing an average pooling operation on the vertical direction features of the spliced ​​industrial image data features on each channel to obtain vertical direction features, and performing an average pooling operation on the horizontal direction features of the spliced ​​industrial image data features on each channel to obtain horizontal direction features;

[0036] The vertical direction features and the horizontal direction features are fused to obtain the final industrial image data features.

[0037] In order to solve the above problems, the present invention also provides an open set target detection device in an industrial scenario, the device comprising:

[0038] A feature extraction module is used to obtain industrial image data, input the industrial image data into the space-to-depth convolution module for feature extraction, and obtain industrial image data features;

[0039] A feature optimization module is used to perform a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features; extract local information from the industrial image data using a dilated convolution module, and map the local information to the refined industrial image data features to obtain target industrial image data features;

[0040] The target detection module is used to pool the target industrial image data features using the strip pooling module to obtain the final industrial image data features, perform target detection according to the final industrial image data features, and obtain the target detection result.

[0041] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0042] at least one processor; and,

[0043] a memory communicatively connected to the at least one processor; wherein,

[0044] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the open set target detection method in the industrial scenario described above.

[0045] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the open set target detection method in the industrial scenario described above.

[0046] The present invention can convert the spatial information of the image into depth information by inputting the industrial image data into the space-to-depth convolution module for feature extraction, improve the performance when processing small object images and low-resolution images, reduce information loss, improve the accuracy of feature extraction, and improve the accuracy and efficiency of target detection. In addition, the industrial image data features are subjected to feature dimension reduction operations using the bottleneck attention module to obtain refined industrial image data features, which can realize the fusion of channel attention and spatial attention to improve the performance of the network, thereby achieving efficiency in target detection. Furthermore, through the dilated convolution module and the strip pooling module, more detailed information features in the industrial image data can be extracted. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a flow chart of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0048] Figure 2 An overall algorithm flow chart of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0049] Figure 3 A bottleneck attention module structure diagram of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0050] Figure 4 A structural diagram of a space-to-depth convolution module of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0051] Figure 5 A structural diagram of a strip pooling module of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0052] Figure 6 A functional module diagram of an open set target detection device in an industrial scenario provided by one embodiment of the present invention;

[0053] Figure 7 A schematic diagram of the structure of an electronic device for implementing the open set target detection method in an industrial scenario provided by an embodiment of the present invention.

[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0056] The embodiment of the present application provides an open set target detection method in an industrial scenario. The execution subject of the open set target detection method in an industrial scenario includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the open set target detection method in an industrial scenario can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0057] Reference Figure 1 FIG. 1 is a flow chart of an open set target detection method in an industrial scenario provided by an embodiment of the present invention. In this embodiment, the open set target detection method in an industrial scenario includes:

[0058] S1. Acquire industrial image data, and input the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features.

[0059] In an embodiment of the present invention, the industrial image data refers to image data in multiple scenarios in an industrial scenario. For example, in a security monitoring scenario, the industrial image data may be image data obtained by identifying a factory, a warehouse, or a production line, as well as image data obtained by locating abnormal behaviors, dangerous objects, or unidentified objects. In a quality management scenario, the industrial image data may be image data obtained by detecting appearance flaws, defects, or defective parts of a product.

[0060] As an embodiment of the present invention, the step of inputting the industrial data into a space-to-depth convolution module for feature extraction to obtain industrial image data features includes:

[0061] Selecting an image space block from the industrial image data, and converting the industrial image data into a depth dimension using the image space block to obtain a depth dimension feature map;

[0062] The depth dimension feature map is convolved using a full coverage convolution kernel to obtain the industrial image data feature.

[0063] In an embodiment of the present invention, the space-to-depth convolution module (SPD-Conv) is a technology that improves traditional neural networks. It mainly converts the spatial information of the image into depth information, which can improve the performance when processing small objects and low-resolution images, reduce information loss, and improve the accuracy of feature extraction.

[0064] In an embodiment of the present invention, the full coverage convolution kernel refers to a convolution kernel that can cover and extract all information in an image. For example, the step size of the full coverage convolution kernel is set to 1, and the convolution kernel size is set to 1*1.

[0065] The embodiment of the present invention converts the text information corresponding to the image in the industrial image data into a text vector through the CLIP model, so that the text vector and the industrial image data feature can be mapped to the same space, and the industrial image data can be directly classified according to the text vector without the need for additional label information, thereby improving the generalization ability of the model.

[0066] In an embodiment of the present invention, the CLIP (Contrastive Language-Image Pre-training) model is a multimodal pre-training model that can jointly encode text and image information, so that the model can understand and process the relationship between images and text.

[0067] S2. Performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features.

[0068] In an embodiment of the present invention, the bottleneck attention module (Bottleneck Attention Module, BAM for short) is an attention module that is integrated in a feedforward convolutional neural network to fuse channel attention and spatial attention to improve the performance of the network.

[0069] As an embodiment of the present invention, the step of performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features includes:

[0070] Using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features to obtain a channel weighted feature map;

[0071] Using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map;

[0072] The channel weighted feature map and the space weighted feature map are merged to obtain refined industrial image data features.

[0073] Furthermore, the spatial attention module in the bottleneck attention module is used to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map, including:

[0074] Performing a pooling operation on the industrial image data features to obtain a feature pooling result;

[0075] Performing convolution processing on the feature pooling result to obtain a spatial attention map;

[0076] Activating the spatial attention map using an activation function to obtain a spatial attention weight;

[0077] The spatial attention weight is mapped to the industrial image data feature to obtain a spatial weighted feature map.

[0078] In the embodiment of the present invention, the activation function adopts the sigmoid activation function, which limits the output between 0 and 1.

[0079] Furthermore, the step of merging the channel weighted feature map and the spatial weighted feature map comprises:

[0080] The channel weighted feature map and the spatial weighted feature map are merged using the following formula:

[0081]

[0082] M(F)=σ(M c (F)+M s (F)

[0083] Among them, F′ is the refined industrial image data feature, F is the industrial image data feature, and F∈R C*H*W , C is the number of channels, H is the height of industrial image data, W is the width of industrial image data, is element-wise multiplication, M c (F) is the channel attention, M s (F) is the spatial attention, and σ(·+·) represents the feature concatenation function.

[0084] Furthermore, the using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features includes:

[0085] The following formula is used to perform channel weighting on the industrial image data features:

[0086] M c (F)=BN(W1(W0bilinearPool(F)+b0)+b1)

[0087] Among them, BN(·) is batch normalization processing, W0 is the first weight parameter, W0∈v c / r*C , W1 is the second weight parameter, W1∈R C / r*c , b0 is the first bias parameter, b0∈R r / C , b1 is the second bias parameter, b1∈R C , r is the same attenuation rate of the channel branches.

[0088] In the embodiment of the present invention, the attenuation rate refers to a factor used to adjust the number of channels of the dilated convolution input feature map, which can effectively control the complexity of the model and computing resources.

[0089] S3. Use a dilated convolution module to extract local information from the industrial image data, and map the local information to the refined industrial image data features to obtain target industrial image data features.

[0090] In the embodiment of the present invention, the dilated convolution module refers to a special type of convolution operation, which expands the receptive field without increasing the number of parameters and the amount of calculation by increasing the size of the input area covered by the convolution operation.

[0091] In the embodiment of the present invention, the local information refers to image information other than the target subject, also called context information of the image.

[0092] The embodiment of the present invention utilizes a dilated convolution module to extract local information from the industrial image data, and maps the local information to the refined industrial image data features to obtain target industrial image data features. The dilated convolution module can be used to extract more detailed information from the industrial image data without increasing the number of parameters.

[0093] S4. Pooling the target industrial image data features using a strip pooling module to obtain final industrial image data features, and performing target detection according to the final industrial image data features to obtain a target detection result.

[0094] In the embodiment of the present invention, the strip pooling module refers to a new pooling strategy for image semantic segmentation.

[0095] As an embodiment of the present invention, the target industrial image data feature is pooled using a strip pooling module to obtain a final industrial image data feature, including:

[0096] Performing pooling operations of different scales on the target industrial image data features to obtain multi-scale pooling features;

[0097] The multi-scale pooling feature is subjected to a convolution operation to adjust the number of channels, and an upsampling operation is performed after the number of channels is adjusted to obtain a multi-scale pooling feature of the same size as the target industrial image data feature;

[0098] Performing feature splicing on the multi-scale pooling features of the same size to obtain spliced ​​industrial image data features;

[0099] Performing an average pooling operation on the vertical direction features of the spliced ​​industrial image data features on each channel to obtain vertical direction features, and performing an average pooling operation on the horizontal direction features of the spliced ​​industrial image data features on each channel to obtain horizontal direction features;

[0100] The vertical direction features and the horizontal direction features are fused to obtain the final industrial image data features.

[0101] The embodiment of the present invention performs target detection according to the final industrial image data features, including: identifying the target object in the final industrial image data features, and classifying the target object through a classifier, and obtaining the target detection result after the classification is completed.

[0102] In the embodiment of the present invention, the classifier refers to a classification algorithm that divides images into categories according to image features, and can predict the category to which a new sample belongs.

[0103] The embodiment of the present invention can convert the spatial information of the image into depth information by inputting the industrial image data into the space-to-depth convolution module for feature extraction, improve the performance when processing small object images and low-resolution images, reduce information loss, improve the accuracy of feature extraction, and improve the accuracy and efficiency of target detection. In addition, the industrial image data features are subjected to feature dimensionality reduction operations using the bottleneck attention module to obtain refined industrial image data features, which can realize the fusion of channel attention and spatial attention to improve the performance of the network, thereby achieving efficiency in target detection. Furthermore, through the dilated convolution module and the strip pooling module, more detailed information features in the industrial image data can be extracted.

[0104] like Figure 2 As shown, it is an overall algorithm flow chart of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0105] like Figure 3 , which is a bottleneck attention module structure diagram of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0106] like Figure 4 As shown, it is a structure diagram of a space-to-depth convolution module of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0107] like Figure 5 As shown, it is a structural diagram of a strip pooling module of an open set target detection method in an industrial scenario provided by an embodiment of the present invention;

[0108] like Figure 6 , is a functional module diagram of an open set target detection device in an industrial scenario provided by an embodiment of the present invention.

[0109] The open set target detection device 100 in an industrial scenario of the present invention may be installed in an electronic device. According to the functions implemented, the open set target detection device 100 in an industrial scenario may include a feature extraction module 101 , a feature optimization module 102 and a target detection module 103 .

[0110] The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and is stored in a memory of the electronic device.

[0111] In this embodiment, the functions of each module / unit are as follows:

[0112] The feature extraction module 101 is used to obtain industrial image data, and input the industrial image data into a space-to-depth convolution module to perform feature extraction to obtain industrial image data features.

[0113] In an embodiment of the present invention, the industrial image data refers to image data in multiple scenarios in an industrial scenario. For example, in a security monitoring scenario, the industrial image data may be image data obtained by identifying a factory, a warehouse, or a production line, as well as image data obtained by locating abnormal behaviors, dangerous objects, or unidentified objects. In a quality management scenario, the industrial image data may be image data obtained by detecting appearance flaws, defects, or defective parts of a product.

[0114] As an embodiment of the present invention, the step of inputting the industrial data into a space-to-depth convolution module for feature extraction to obtain industrial image data features includes:

[0115] Selecting an image space block from the industrial image data, and converting the industrial image data into a depth dimension using the image space block to obtain a depth dimension feature map;

[0116] The depth dimension feature map is convolved using a full coverage convolution kernel to obtain the industrial image data feature.

[0117] In an embodiment of the present invention, the space-to-depth convolution module (SPD-Conv) is a technology that improves traditional neural networks. It mainly converts the spatial information of the image into depth information, which can improve the performance when processing small objects and low-resolution images, reduce information loss, and improve the accuracy of feature extraction.

[0118] In an embodiment of the present invention, the full coverage convolution kernel refers to a convolution kernel that can cover and extract all information in an image. For example, the step size of the full coverage convolution kernel is set to 1, and the convolution kernel size is set to 1*1.

[0119] The embodiment of the present invention converts the text information corresponding to the image in the industrial image data into a text vector through the CLIP model, so that the text vector and the industrial image data feature can be mapped to the same space, and the industrial image data can be directly classified according to the text vector without the need for additional label information, thereby improving the generalization ability of the model.

[0120] In an embodiment of the present invention, the CLIP (Contrastive Language-Image Pre-training) model is a multimodal pre-training model that can jointly encode text and image information, so that the model can understand and process the relationship between images and text.

[0121] The feature optimization module 102 is used to perform feature dimensionality reduction operations on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features; use an expanded convolution module to extract local information in the industrial image data, and map the local information to the refined industrial image data features to obtain target industrial image data features.

[0122] In an embodiment of the present invention, the bottleneck attention module (Bottleneck Attention Module, BAM for short) is an attention module that is integrated in a feedforward convolutional neural network to fuse channel attention and spatial attention to improve the performance of the network.

[0123] As an embodiment of the present invention, the step of performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features includes:

[0124] Using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features to obtain a channel weighted feature map;

[0125] Using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map;

[0126] The channel weighted feature map and the space weighted feature map are merged to obtain refined industrial image data features.

[0127] Furthermore, the spatial attention module in the bottleneck attention module is used to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map, including:

[0128] Performing a pooling operation on the industrial image data features to obtain a feature pooling result;

[0129] Performing convolution processing on the feature pooling result to obtain a spatial attention map;

[0130] Activating the spatial attention map using an activation function to obtain a spatial attention weight;

[0131] The spatial attention weight is mapped to the industrial image data feature to obtain a spatial weighted feature map.

[0132] In the embodiment of the present invention, the activation function adopts the sigmoid activation function, which limits the output between 0 and 1.

[0133] Furthermore, the step of merging the channel weighted feature map and the spatial weighted feature map comprises:

[0134] The channel weighted feature map and the spatial weighted feature map are merged using the following formula:

[0135]

[0136] M(F)=σ(M c (F)+M s (F)

[0137] Among them, F′ is the refined industrial image data feature, F is the industrial image data feature, and F∈R C*H*W , C is the number of channels, H is the height of industrial image data, W is the width of industrial image data, is element-wise multiplication, M c (F) is the channel attention, M s (F) is the spatial attention, and σ(·+·) represents the feature concatenation function.

[0138] Furthermore, the using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features includes:

[0139] The following formula is used to perform channel weighting on the industrial image data features:

[0140] M c(F)=BN(W1(W0bilinearPool(F)+b0)+b1)

[0141] Among them, BN(·) is batch normalization processing, W0 is the first weight parameter, W0∈v c / r*C , W1 is the second weight parameter, W1∈R C / r*c , b0 is the first bias parameter, b0∈R r / C , b1 is the second bias parameter, b1∈R C , r is the same attenuation rate of the channel branches.

[0142] In the embodiment of the present invention, the attenuation rate refers to a factor used to adjust the number of channels of the dilated convolution input feature map, which can effectively control the complexity of the model and computing resources.

[0143] In the embodiment of the present invention, the dilated convolution module refers to a special type of convolution operation, which expands the receptive field without increasing the number of parameters and the amount of calculation by increasing the size of the input area covered by the convolution operation.

[0144] In the embodiment of the present invention, the local information refers to image information other than the target subject, also called context information of the image.

[0145] The embodiment of the present invention utilizes a dilated convolution module to extract local information from the industrial image data, and maps the local information to the refined industrial image data features to obtain target industrial image data features. The dilated convolution module can be used to extract more detailed information from the industrial image data without increasing the number of parameters.

[0146] The target detection module 103 is used to pool the target industrial image data features using a strip pooling module to obtain final industrial image data features, and perform target detection based on the final industrial image data features to obtain a target detection result.

[0147] In the embodiment of the present invention, the strip pooling module refers to a new pooling strategy for image semantic segmentation.

[0148] As an embodiment of the present invention, the target industrial image data feature is pooled using a strip pooling module to obtain a final industrial image data feature, including:

[0149] Performing pooling operations of different scales on the target industrial image data features to obtain multi-scale pooling features;

[0150] The multi-scale pooling feature is subjected to a convolution operation to adjust the number of channels, and an upsampling operation is performed after the number of channels is adjusted to obtain a multi-scale pooling feature of the same size as the target industrial image data feature;

[0151] Performing feature splicing on the multi-scale pooling features of the same size to obtain spliced ​​industrial image data features;

[0152] Performing an average pooling operation on the vertical direction features of the spliced ​​industrial image data features on each channel to obtain vertical direction features, and performing an average pooling operation on the horizontal direction features of the spliced ​​industrial image data features on each channel to obtain horizontal direction features;

[0153] The vertical direction features and the horizontal direction features are fused to obtain the final industrial image data features.

[0154] The embodiment of the present invention performs target detection according to the final industrial image data features, including: identifying the target object in the final industrial image data features, and classifying the target object through a classifier, and obtaining the target detection result after the classification is completed.

[0155] In the embodiment of the present invention, the classifier refers to a classification algorithm that divides images into categories according to image features, and can predict the category to which a new sample belongs.

[0156] Reference Figure 7 , which is a schematic diagram of the structure of an electronic device for implementing the open set target detection method in an industrial scenario provided by an embodiment of the present invention.

[0157] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an open set target detection method program in an industrial scenario.

[0158] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the program or module stored in the memory 11 (for example, executing an open set target detection method program in an industrial scenario, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.

[0159] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of an open set target detection method program in an industrial scenario, but also can be used to temporarily store data that has been output or is to be output.

[0160] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0161] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0162] Figure 7 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 7The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0163] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0164] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0165] The memory 11 in the electronic device stores an open set target detection method program in an industrial scenario, which is a combination of multiple instructions. When running in the processor 10, the following can be achieved:

[0166] Acquire industrial image data, and input the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features;

[0167] Performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features;

[0168] Extracting local information from the industrial image data using a dilated convolution module, and mapping the local information to the refined industrial image data features to obtain target industrial image data features;

[0169] The target industrial image data features are pooled using a strip pooling module to obtain final industrial image data features, and target detection is performed based on the final industrial image data features to obtain a target detection result.

[0170] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0171] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0172] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0173] Acquire industrial image data, and input the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features;

[0174] Performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features;

[0175] Extracting local information from the industrial image data using a dilated convolution module, and mapping the local information to the refined industrial image data features to obtain target industrial image data features;

[0176] The target industrial image data features are pooled using a strip pooling module to obtain final industrial image data features, and target detection is performed based on the final industrial image data features to obtain a target detection result.

[0177] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0178] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0180] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0181] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0182] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0183] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0184] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. The open set target detection method in industrial scenarios is characterized by: The method comprises: Acquire industrial image data, and input the industrial image data into a space-to-depth convolution module for feature extraction to obtain industrial image data features; Performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features; Extracting local information from the industrial image data using a dilated convolution module, and mapping the local information to the refined industrial image data features to obtain target industrial image data features; The target industrial image data features are pooled using a strip pooling module to obtain final industrial image data features, and target detection is performed based on the final industrial image data features to obtain a target detection result.

2. The open set target detection method in an industrial scenario according to claim 1, characterized in that: The step of inputting the industrial data into a space-to-depth convolution module for feature extraction to obtain industrial image data features includes: Selecting an image space block from the industrial image data, and converting the industrial image data into a depth dimension using the image space block to obtain a depth dimension feature map; The depth dimension feature map is convolved using a full coverage convolution kernel to obtain the industrial image data feature.

3. The open set target detection method in an industrial scenario according to claim 1 or 2, characterized in that: The step of performing a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features includes: Using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features to obtain a channel weighted feature map; Using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map; The channel weighted feature map and the space weighted feature map are merged to obtain refined industrial image data features.

4. The open set target detection method in an industrial scenario as claimed in claim 3, characterized in that: The method of using the spatial attention module in the bottleneck attention module to perform spatial dimension weighted processing on the industrial image data features to obtain a spatial weighted feature map includes: Performing a pooling operation on the industrial image data features to obtain a feature pooling result; Performing convolution processing on the feature pooling result to obtain a spatial attention map; Activating the spatial attention map using an activation function to obtain a spatial attention weight; The spatial attention weight is mapped to the industrial image data feature to obtain a spatial weighted feature map.

5. The open set target detection method in an industrial scenario as claimed in claim 3, characterized in that: The step of merging the channel weighted feature map and the spatial weighted feature map comprises: The channel weighted feature map and the spatial weighted feature map are merged using the following formula: M(F)=σ(M c (F)+M s (F)) Among them, F′ is the refined industrial image data feature, F is the industrial image data feature, and F∈R C*H*W , C is the number of channels, H is the height of industrial image data, W is the width of industrial image data, is element-wise multiplication, M c (F) is the channel attention, M s (F) is the spatial attention, and σ(·+·) represents the feature concatenation function.

6. The open set target detection method in an industrial scenario as claimed in claim 3, characterized in that: The using the channel attention module in the bottleneck attention module to perform channel weighting on the industrial image data features includes: The following formula is used to perform channel weighting on the industrial image data features: M c (F)=BN(W1(W0bilinearPool(F)+b0)+b1) Among them, BN(·) is batch normalization processing, W0 is the first weight parameter, W0∈R C / r*C , W1 is the second weight parameter, W1∈R C / r*C , b0 is the first bias parameter, b0∈R r / C , b1 is the second bias parameter, b1∈R C , r is the same attenuation rate of the channel branches.

7. The open set target detection method in an industrial scenario as claimed in claim 1, characterized in that: The step of pooling the target industrial image data features using a strip pooling module to obtain final industrial image data features includes: Performing pooling operations of different scales on the target industrial image data features to obtain multi-scale pooling features; The multi-scale pooling feature is subjected to a convolution operation to adjust the number of channels, and an upsampling operation is performed after the number of channels is adjusted to obtain a multi-scale pooling feature of the same size as the target industrial image data feature; Performing feature splicing on the multi-scale pooling features of the same size to obtain spliced ​​industrial image data features; Performing an average pooling operation on the vertical direction features of the spliced ​​industrial image data features on each channel to obtain vertical direction features, and performing an average pooling operation on the horizontal direction features of the spliced ​​industrial image data features on each channel to obtain horizontal direction features; The vertical direction features and the horizontal direction features are fused to obtain the final industrial image data features.

8. An open set target detection device in an industrial scenario, characterized in that: The device can implement the open set target detection method in an industrial scenario as claimed in any one of claims 1 to 7, and the device includes: A feature extraction module is used to obtain industrial image data, input the industrial image data into the space-to-depth convolution module for feature extraction, and obtain industrial image data features; A feature optimization module is used to perform a feature dimension reduction operation on the industrial image data features using a bottleneck attention module to obtain refined industrial image data features; extract local information from the industrial image data using a dilated convolution module, and map the local information to the refined industrial image data features to obtain target industrial image data features; The target detection module is used to pool the target industrial image data features using the strip pooling module to obtain the final industrial image data features, perform target detection according to the final industrial image data features, and obtain the target detection result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the open set target detection method in an industrial scenario as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the open set target detection method in an industrial scenario as described in any one of claims 1 to 7 is implemented.