Multi-modal semantic segmentation method, system and device in industrial scene and storage medium

By adopting a multi-modal semantic segmentation method in semantic segmentation technology and using a cross-modal cross-attention mechanism to align and fuse image and text features, the problem of difficult target object recognition in complex backgrounds in the petrochemical industry is solved and the recognition accuracy is improved. and model robustness.

CN118657942APending Publication Date: 2024-09-17SEVNCE ROBOTICS CO LTD

Patent Information

Application Number
CN202410811465.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing semantic segmentation technology is difficult to accurately identify target objects in complex backgrounds in the petrochemical industry, especially due to dense targets, easy to be occluded, poor lighting conditions and complex backgrounds, resulting in poor segmentation results.

Method used

A multi-modal semantic segmentation method is adopted to extract the features of RGB detection images and text data, and use a cross-modal cross-attention mechanism for feature alignment and fusion to enhance the robustness of the semantic segmentation model and improve accuracy in complex industrial scenarios. Target object recognition accuracy.

Benefits of technology

It improves the target object segmentation effect and recognition accuracy in complex backgrounds, enhances the robustness of the semantic segmentation model, and can better process image data in industrial scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657942A
    Figure CN118657942A
Patent Text Reader

Abstract

The invention relates to the field of semantic segmentation technologies, in particular to a multi-modal semantic segmentation method, system and device in an industrial scene and a storage medium. The multi-modal semantic segmentation method in the industrial scene comprises the steps of obtaining an RGB detection image containing a to-be-recognized object and text data of the to-be-recognized object; inputting the RGB detection image and the text data into a semantic segmentation model, respectively extracting image features of the RGB detection image and text features of the text data through the semantic segmentation model, and aligning and fusing the image features and the text features to obtain processed semantic features, and judging the probability that the RGB detection image is a target object based on the semantic features as output to obtain a recognition result of the RGB detection image, so that the semantic segmentation effect of the target object to be recognized in a complex industrial scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of semantic segmentation technology, and in particular to a multimodal semantic segmentation method, system, device and storage medium in an industrial scenario. Background Art

[0002] With the rapid development of artificial intelligence technology, intelligent video surveillance systems are playing an increasingly important role in safety supervision and providing strong support for the safety production management of enterprises. In the existing technology, semantic segmentation technology is usually used to distinguish objects of different categories in the image and add corresponding text labels; when the user wants to view an object in the image, the location of the target object can be quickly located according to the text label, so that the user can monitor the status of the target object.

[0003] In the prior art, the Mask2former model, SCTNet model, openseed model (open vocabulary image segmentation model) or APE model (a fully open source multimodal segmentation model) are usually used to process image information and text information; however, when identifying and processing target objects in images in the petrochemical field, due to unfavorable factors such as dense distribution of segmentation target objects in the petrochemical field, easy occlusion, poor lighting conditions, small targets, complex background, etc., it is easy to cause poor target segmentation effect, resulting in the possibility of incomplete segmentation mask results of the target, which affects the accuracy of semantic segmentation. Summary of the invention

[0004] In order to solve the problem that existing semantic segmentation methods have poor segmentation effect on target objects when identifying target objects in images with complex backgrounds, the present application provides a multimodal semantic segmentation method, system, device and storage medium in industrial scenarios.

[0005] In the first aspect, the present application provides a multimodal semantic segmentation method in an industrial scenario, which adopts the following technical solution:

[0006] A multimodal semantic segmentation method in an industrial scenario includes:

[0007] Acquire an RGB detection image containing a target object to be identified and text data of the target object to be identified;

[0008] The RGB detection image and the text data are input into a semantic segmentation model, which extracts image features of a region of interest in the RGB detection image and text features of the text data, respectively, aligns and fuses the image features with the text features to obtain processed semantic features, and determines a semantic segmentation result of a target object in the RGB detection image based on the semantic features.

[0009] By adopting the above technical solution, when semantic segmentation is performed on images with relatively complex backgrounds, the semantic segmentation model is used to extract the image features of the RGB detection image and the text features of the text data respectively. The separate extraction of image features and text features can more accurately understand the semantics of the RGB detection image and text data; in addition, after the extracted image features and text features are aligned, the image features and text features are fused, which can align the fine granularity of text data and visual pixels, so that the semantic segmentation model can better semantically fuse the image features and text features, thereby making the semantic segmentation model more robust in industrial scenarios, and can improve the segmentation effect of the semantic segmentation model on the target object to be identified in complex industrial scenarios, thereby improving the accuracy of the target object recognition results.

[0010] Optionally, the semantic segmentation model includes a feature extraction module, a text-image alignment and fusion module, and an object recognition module;

[0011] The feature extraction module (401) is used to extract the image features of the RGB detection image and the text features of the text data;

[0012] The text-image alignment fusion module (402) is used to cross-align the image features and the text features according to a cross-modal cross-attention mechanism, and to fuse the image features and the text features to obtain processed semantic features;

[0013] The object recognition module (403) recognizes the target object in the RGB detection image according to the processed semantic features, and obtains a semantic segmentation result of the target object in the RGB detection image.

[0014] By adopting the above technical solution, the feature extraction module is used to extract image features and text features respectively, and the image features and text features are cross-aligned according to the cross-modal cross-attention mechanism, so that the semantics of the target object and the fine-grainedness of the visual pixels are aligned; then the image features and text features are fused to obtain the processed semantic features, which can improve the semantic segmentation effect of the target objects to be identified in complex industrial scenarios.

[0015] Optionally, the cross-modal attention mechanism is:

[0016] Calculate the attention mechanism using the key vector K of the image feature, the numerical vector V of the image feature, and the query vector Q of the text feature;

[0017] The attention mechanism is calculated using the key vector K of the text feature, the numerical vector V of the text feature and the query vector Q of the image feature.

[0018] By adopting the above technical solution, the specific implementation method of cross-modal cross-alignment of image features and text features is clarified.

[0019] Optionally, the method further includes:

[0020] Global information and context information are injected into the image features.

[0021] By adopting the above technical solutions, global information and contextual information can help the semantic segmentation model better understand and segment complex scenes in the image, so as to facilitate the cross-alignment of image features and text features.

[0022] Optionally, the method further includes:

[0023] Obtaining a mask image corresponding to the RGB detection image;

[0024] A region of interest of the RGB detection image is determined according to the mask image.

[0025] By adopting the above technical solution, the area corresponding to the text data in the RGB detection image can be extracted using the mask image, thereby determining the region of interest of the RGB detection image, so that the feature extraction module and the text image cross-fusion module only need to extract and process the image features of the region of interest of the RGB detection image in the subsequent process, thereby improving the semantic segmentation efficiency of the semantic segmentation model for the RGB detection image.

[0026] Optionally, the method further comprises a step of training the semantic segmentation model;

[0027] The training steps include:

[0028] Obtain a training data set, wherein the training data set includes a plurality of RGB sample images and a plurality of groups of text sample data;

[0029] Construct the network structure of the semantic segmentation model;

[0030] The network of the semantic segmentation model is trained using the training data set, and in each training, a cross-modal cross loss function of the text feature and the image feature is determined according to an output result of the semantic segmentation model;

[0031] The network parameters of the semantic segmentation model are optimized according to the cross-modal cross loss function to obtain the final semantic segmentation model.

[0032] Optionally, the cross-modal cross loss function is L TIA =L P2P +L P2T ;

[0033] The loss function of the corresponding parts of the RGB detection image and the mask image is:

[0034]

[0035] The loss function of the corresponding part of the RGB detection image and text sample data is:

[0036]

[0037] i is the positive sample index, j is the negative sample index; T is the feature of the text encoder, |P| is the size of the positive sample set, |N| is the size of the negative sample set, I is the feature of the image encoder, is the pixel feature of the i-th positive sample, is the pixel feature of the jth negative sample;

[0038] is the positive pixel feature after average pooling, is the negative pixel feature after average pooling;

[0039] T avg is the linear mapping after the average pooling of text features, τ1 and τ2 are hyperparameters, and the text

[0040] This feature and the image feature are both L2 regularized.

[0041] By adopting the above technical solution, the relevant parameters of the model parameters of the preset neural network model are optimized according to the cross-modal cross loss function to complete the iterative update of the model parameters of the preset neural network model, which can make the semantic segmentation model's recognition results for images more accurate.

[0042] In the second aspect, the present application provides a multimodal semantic segmentation system in an industrial scenario, which adopts the following technical solutions:

[0043] A multimodal semantic segmentation system for industrial scenarios, comprising:

[0044] An acquisition module (1) is used to acquire an RGB detection image containing a target object to be identified and text data corresponding to the target object to be identified;

[0045] A processing module (2) is used to input the RGB detection image and the text data into a semantic segmentation model, the semantic segmentation model extracts the image features of the region of interest in the RGB detection image and the text features of the text data respectively, aligns and fuses the image features with the text features to obtain processed semantic features, and determines the semantic segmentation result of the target object in the RGB detection image based on the semantic features.

[0046] In a third aspect, the computer device provided by the present application adopts the following technical solution:

[0047] A computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the multimodal semantic segmentation method in the above industrial scenario is implemented.

[0048] By adopting the above technical solution, a computer device is provided that can execute and implement the above-mentioned multimodal semantic segmentation method in an industrial scenario.

[0049] In a fourth aspect, the computer-readable storage medium provided in the present application adopts the following technical solution:

[0050] A computer-readable storage medium stores a computer program; when the computer program is executed by a processor, the above-mentioned product detection method based on photoelectric sensors is implemented.

[0051] By adopting the above technical solution, a computer program carrier of a multimodal semantic segmentation method in an industrial scenario is provided.

[0052] In summary, this application includes the following beneficial technical effects:

[0053] 1. When performing semantic segmentation on images with complex backgrounds, the semantic segmentation model is used to extract the image features of the RGB detection image and the text features of the text data respectively. Separately extracting the image features and text features can more accurately understand the semantics of the RGB detection image and text data. In addition, after aligning the extracted image features and text features, the image features and text features are fused, which can align the fine granularity of the text data and visual pixels, so that the semantic segmentation model can better semantically fuse the image features and text features, thereby making the semantic segmentation model more robust in industrial scenarios, and improving the segmentation effect of the semantic segmentation model on the target object to be identified in complex industrial scenarios, thereby improving the accuracy of the target object recognition results;

[0054] 2. The visual encoder, text encoder and mask encoder are used to encode the RGB detection image, text data and mask image respectively, which can more accurately understand the semantics of the RGB detection image and text data. According to the cross-modal cross-attention mechanism, the image features and text features are aligned and fused, making it easier for the multimodal encoder to perform cross-modal learning and improve the processing efficiency of RGB detection images and text data. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flowchart of the multimodal semantic segmentation method in the industrial scenario in Example 1 of the present application;

[0056] Figure 2 is a schematic diagram of the system structure of the semantic segmentation model in Example 1 of the present application;

[0057] Figure 3 It is a module diagram of the semantic segmentation model in Example 1 of the present application;

[0058] Figure 4 is a schematic diagram of the system structure of the text encoder and the visual encoder in Example 1 of the present application;

[0059] Figure 5 is a schematic diagram of the system structure of the text image alignment and fusion module in Example 1 of the present application;

[0060] Figure 6 This is a processing flow chart of the cross-exchange part of the image feature and the text feature in Example 1 of the present application;

[0061] Figure 7 This is a flow chart of the method for training the semantic segmentation model in Example 1 of the present application;

[0062] Figure 8 It is a comparison chart of the semantic segmentation model in Example 1 of the present application and multiple semantic segmentation models in the prior art on RGB detection image recognition effects;

[0063] Fig. 9 This is a module diagram of a multimodal semantic segmentation system in an industrial scenario in Example 2 of the present application;

[0064] Fig.10 is a module schematic diagram of the training module in Example 2 of the present application;

[0065] Fig.11 It is a module schematic diagram of the computer device of the present application.

[0066] Figure numerals: 1. acquisition module; 2. processing module; 3. training module; 31. training data acquisition unit; 32. feature extraction unit; 33. feature processing unit; 34. model generation unit; 401. feature extraction module; 402. text image alignment and fusion module; 403. object recognition module; 51. processor; 52. memory. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0068] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in its context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items. The term "exemplary" means "used as an example, embodiment or illustrative", and any embodiment described as "exemplary" here does not need to be interpreted as being superior to or better than other embodiments. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of these features, and in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more.

[0069] The present application provides a multimodal semantic segmentation method, system, device and storage medium for industrial scenarios.

[0070] Example 1

[0071] refer to Figure 1 , a multimodal semantic segmentation method in an industrial scenario, comprising the following steps:

[0072] S101: Acquire an RGB detection image containing a target object to be identified and text data of the target object to be identified.

[0073] In this embodiment, there is no restriction on the method of acquiring RGB detection images and text data; the text data can be manually input by the staff, or imported into the system through an external device; the RGB detection image can be acquired in the form of a picture by an acquisition device installed in the factory, or extracted from the image frame by a video shot by the acquisition device; the RGB detection image can be directly acquired by the acquisition device and uploaded to the cloud platform, or manually imported through an external device, which is not restricted in this embodiment.

[0074] S102: The RGB detection image and the text data are input into a semantic segmentation model. The semantic segmentation model extracts image features of the region of interest in the RGB detection image and text features of the text data respectively, aligns and fuses the image features with the text features to obtain processed semantic features, and determines a semantic segmentation result of the target object in the RGB detection image based on the semantic features.

[0075] In this embodiment, the semantic segmentation results can be expressed in a variety of forms. For example, it can be the probability distribution of all categories of recognized object types obtained by the semantic segmentation model analysis, or it can be a label map with text data labels corresponding to the RGB detection image. As long as the semantic segmentation situation can be represented, this embodiment does not impose any restrictions.

[0076] In this embodiment, a region of interest of an RGB detection image is selected through a mask image. The specific processing method includes:

[0077] Get the mask image corresponding to the RGB detection image;

[0078] Determine the region of interest of the RGB detection image according to the mask image;

[0079] After extracting the region of interest of the RGB detection image, the semantic segmentation model only needs to process the region of interest in the RGB detection image in the subsequent feature alignment and feature fusion process, which can improve the efficiency of semantic segmentation.

[0080] Reference Figure 2 and Figure 3 The semantic segmentation model includes a feature extraction module 401, a text image alignment fusion

[0081] Combination module 402 and object recognition module 403;

[0082] Among them, the feature extraction module 401 is used to extract image features of the RGB detection image and extract text features of the text data; the text image alignment fusion module 402 can cross-align the image features and the text features according to the cross-modal cross-attention mechanism, and fuse the image features and the text features to obtain processed semantic features; the object recognition module 403 recognizes the target object in the RGB detection image according to the processed semantic features, and obtains the semantic segmentation result of the target object in the RGB detection image.

[0083] In a preferred implementation of this embodiment, a multimodal encoder is used to process RGB detection images, text data and mask images so that the semantic segmentation model can better understand the semantics of RGB detection images and text data; the multimodal encoder is more likely to perform cross-modal learning and improve the processing efficiency of RGB detection images and text data.

[0084] Reference Figure 2 , a visual encoder is used to encode the RGB detection image;

[0085] Using a text encoder to encode text data;

[0086] A mask encoder is used to extract the mask image for encoding;

[0087] In this embodiment, the text encoder uses the CLIP-textencoder model; the visual encoder uses the lightweight EfficientViT model; the mask encoder uses the maskencoder model; the input / output expressions of the CLIP-textencoder model, the input / output expressions of the EfficientViT model, and the input / output expressions of the maskencoder model are as follows:

[0088] F text =CLIPtextencoder(text)

[0089] F vision =EfficientVit(Image)

[0090] F mask =maskencoder(mask)

[0091] Among them, text is text data, Image is RGB detection image, and mask is mask image;

[0092] F text is the text feature after being encoded by the CLIP-textencoder text encoder, F vision is the image feature after encoding by the EfficientVit visual encoder, F mask It is the encoded feature after being encoded by the maskencoder in the network structure;

[0093] Feature extraction module 401 loss function after feature extraction Loss text,mask,mask for:

[0094] Loss text,mask,mask =L CE (y lable ,predictor(torch.concat[F text , F vision , F mask ]))

[0095] Among them, L CE is the crossover loss. The crossover loss L in this embodiment is CE Set up directly by staff;

[0096] y lable is the true label vector, which refers to the correct answer or target value corresponding to each sample in the data set used to train and evaluate the model in supervised learning tasks;

[0097] The predictor is the clip-textencoder encoder.

[0098] Reference Figure 4 After the feature extraction module 401 extracts the image features and the text features, it injects global information and context information into the image features, and then processes the image features and the text features through the text image alignment fusion module 402 to improve the alignment.

[0099] The specific implementation is as follows:

[0100] The text encoder and visual encoder are divided into multiple stages with equal number of layers. Each stage performs a transformation operation on the input image or text to extract semantic information at different levels. Figure 4 Schematic diagram of the system structure of the text encoder and the visual encoder. In this embodiment, the text encoder and the visual encoder are divided into four stages with equal number of layers.

[0101] The text image alignment fusion module 402 is added at the end of each stage of the text encoder and the visual encoder, and the output end of each stage of the text encoder (visual encoder) is connected to the input end of the text image alignment fusion module 402; before the output features of each stage of the text encoder (or visual encoder) are passed to the next stage of the text encoder (or visual encoder), the output features of the previous layer are added to the input of the next layer to inject contextual information into the image features; global information is injected into the image features through MLP (multilayer perceptron).

[0102] The network structure of the text-image alignment module is as follows: Figure 5 As shown, Figure 5 In the above figure, Ii and Ii+1 are image input and output features, Ti and Ti+1 are text input and output features, respectively. In the image processing part, C in CxHxW is the dimension of the image, H is the height of the image, W is the width of the image, and upsample is upsampling. In the processing of this article, C in CxL is the dimension of the text data, and L is the length of the text data.

[0103] In order to facilitate the understanding of those skilled in the art, Figure 5 , describes the process of semantic segmentation model processing image features and text features:

[0104] The image alignment and fusion module includes the Max-pool processing unit (maximum pooling operation unit), the MLP processing unit (multilayer perceptron) and the n-MHA processing unit (Multi-head Attention, cross-modal multi-head attention mechanism);

[0105] First, the Max-pool processing unit is used to pre-process the image features and adjust the image size so that the pooled image features are consistent with the text feature dimensions; the staff can automatically adjust the number of pooling times according to the actual situation and the desired effect;

[0106] Subsequently, the processed image features and text features are processed using an MLP processing unit. In this embodiment, a three-layer MLP processing unit is used to obtain better global information features;

[0107] The image features and text features processed by the MLP processing unit are input into the n-MHA processing unit, and the n-MHA processing unit cross-aligns the image features and text features according to the cross-modal cross attention mechanism;

[0108] Finally, all output features are upsampled to the original feature map through bilinear interpolation and concatenated along the channel dimension, and a two-layer MLP is used to reduce the channel dimension of the concatenated feature to the original channel dimension; in order to prevent the multimodal signal from overwhelms the original signal, the Tanh activation function is used to modulate the final output to obtain the processed semantic features.

[0109] Reference Figure 6 In this embodiment, the image features and text features are cross-aligned by cross-exchanging the query vector Q of the image features with the query vector of the text features; the cross-modal cross-attention mechanism is:

[0110] The attention mechanism is calculated using the key vector K of the image features, the numerical vector V of the image features, and the query vector Q of the text features;

[0111] The key vector K of text features, the numerical vector V of text features and the query vector Q of image features are used to calculate the attention mechanism to achieve cross-alignment of image features and text features, making multimodal semantic segmentation in industrial scenarios more robust.

[0112] The calculation formula of the attention mechanism used in this embodiment is:

[0113] Among them, Q is the query vector, K is the key vector, and V is the numerical vector;

[0114] QK T It is the dot product calculation of the query vector Q and the key vector K, which is used to measure the similarity between the query and each key; is the scaling factor;

[0115] The important features that the attention module needs to pay attention to are obtained through the query vector Q. The Softmax function can apply the weight coefficient matrix of the strength of the important features to V to obtain the final feature map with the attention weight distribution. On the feature map, the features belonging to the query vector Q will be strengthened, and the features that do not belong to Q will be weakened;

[0116] After being processed by the root cross-modal cross-attention mechanism, the query vector Q of the text features is used in the image feature part to determine the important features that the attention module needs to pay attention to, which can strengthen the part of the image features related to the text features; in the text feature part, the query vector Q of the image features is used to determine the important features that the attention module needs to pay attention to, so as to strengthen the part of the text features related to the image features, making the multimodal semantic segmentation in industrial scenarios more robust.

[0117] The multimodal semantic segmentation method in the industrial scenario also includes a training step of training a preset neural network model to obtain a semantic segmentation model.

[0118] Reference Figure 7 , the training steps include:

[0119] S202: Obtain a training data set, where the training data set includes a plurality of RGB sample images and a plurality of groups of text sample data.

[0120] Annotate the content structure information of multiple RGB detection images in multiple dimensions, and calibrate corresponding object category labels for the RGB detection images according to the annotated content structure information in multiple dimensions;

[0121] S204: Construct a network structure of a semantic segmentation model.

[0122] S206: Train the network of the semantic segmentation model using the training data set. In each training, determine the cross-modal cross loss function of the text features and the image features according to the output result of the semantic segmentation model.

[0123] S208: Optimize the network parameters of the semantic segmentation model according to the cross-modal cross loss function to obtain the final semantic segmentation model.

[0124] Specifically, according to the output results of the semantic segmentation model, the cross-modal cross loss function of text features and image features is determined, and the model parameters of the semantic segmentation model are optimized according to the cross-modal cross loss function to complete the iterative update of the semantic segmentation model parameters until the accuracy of the output results of the semantic segmentation model reaches a preset value to obtain the final semantic segmentation model.

[0125] In this embodiment, the function L of the cross-modal cross loss is TIA =L P2P +LP2T ;

[0126] The loss function of the corresponding part of the RGB detection image and the mask image is:

[0127]

[0128] The loss function of the corresponding part of the RGB detection image and text sample data is:

[0129]

[0130] i is the positive sample index, j is the negative sample index; T is the feature of the text encoder, |P| is the size of the positive sample set, |N| is the size of the negative sample set, I is the feature of the image encoder, is the pixel feature of the i-th positive sample, is the pixel feature of the jth negative sample;

[0131] is the positive pixel feature after average pooling, is the negative pixel feature after average pooling;

[0132] T avg is the linear mapping after the average pooling of text features, τ1 and τ2 are hyperparameters. In this embodiment, both image features and text features are regularized by L2.

[0133] The recognition results of the semantic segmentation model disclosed in Example 1 for RGB detection images are compared with the recognition effects of the current mainstream semantic segmentation models, such as the Mask2former model, the SCTNet model, the openseed model (open vocabulary image segmentation model) and the APE model (fully open source multimodal segmentation model) on RGB detection images. Figure 8 As shown; when the input RGB detection image and text data are exactly the same, the first column is the recognition result of the Mask2former model after semantic segmentation based on the RGB detection image and text data, the second column is the recognition result of the SCTNet model after semantic segmentation based on the RGB detection image and text data, the third column is the recognition result of the openseed model after semantic segmentation based on the RGB detection image and text data, the fourth column is the recognition result of the APE model after semantic segmentation based on the RGB detection image and text data, and the fifth column is the recognition result of the semantic segmentation model of Example 1 after semantic segmentation based on the RGB detection image and text data; Figure 8 It can be clearly seen that when the semantic segmentation model of Example 1 recognizes the target object, the segmentation effect of the target object is better than that of the Mask2former model, the SCTNet model, the openseed model and the APE model.

[0134] Example 2

[0135] Based on the same design concept, this embodiment also discloses a multimodal semantic segmentation system for an industrial scenario.

[0136] refer to Fig. 9 A multimodal semantic segmentation system in an industrial scenario includes an acquisition module 1 and a processing module 2; the acquisition module 1 can acquire an RGB detection image containing an object to be identified and text data of the object to be identified; the processing module 2 can input the RGB detection image and text data into a semantic segmentation model, extract image features of the RGB detection image and text features of the text data through the semantic segmentation model, align and fuse the image features with the text features to obtain processed semantic features, and judge based on the semantic features.

[0137] The probability that the RGB detection image is the target object is taken as output, and the recognition result of the RGB detection image is obtained.

[0138] In a preferred embodiment of the present application, the multimodal semantic segmentation system in an industrial scenario further includes a training module 3, which can train a preset neural network model to obtain a semantic segmentation model;

[0139] Specifically, the preset neural network model includes a feature extraction module 401, a text image alignment fusion module 402 and an object recognition module 403;

[0140] In this embodiment, refer to Fig.10 , the training module 3 includes a training data acquisition unit 31, a feature extraction unit 32, a feature processing unit 33 and a model generation unit 34;

[0141] The training data acquisition unit 31 can acquire a training data set, which includes multiple RGB detection images and multiple sets of text data; annotate the content structure information of the multiple RGB detection images in multiple dimensions, and calibrate corresponding object category labels for the RGB detection images according to the annotated content structure information of the multiple dimensions;

[0142] The feature extraction unit 32 can extract the image features of the RGB detection image and the text features of the text data through the feature extraction module 401; the feature processing unit 33 can input the image features and the text data into the text image alignment fusion module 402, and the image features and the text features are cross-aligned and fused according to the cross-modal cross-attention mechanism by the text image alignment fusion module 402, and the image features and the text features are fused to obtain the fused attention features of each RGB detection image and the text data;

[0143] The model generation unit 34 enables the object recognition module 403 to predict the object category of each RGB detection image according to the fused attention feature, and iteratively update the model parameters of the preset neural network model according to the object category label and the recognition object prediction result to obtain a semantic segmentation model.

[0144] The various variations and specific examples of the multimodal semantic segmentation method for industrial scenarios provided in Example 1 are also applicable to the multimodal semantic segmentation system for industrial scenarios in this embodiment. Through the above detailed description of the multimodal semantic segmentation method for industrial scenarios, technical personnel in this field can clearly know the implementation method of the multimodal semantic segmentation system for industrial scenarios in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0145] In order to better execute the program of the above method, the embodiment of the present application also provides a computer device, such as Fig.11 As shown, the computer device includes a processor 51 and a memory 52 .

[0146] A computer device may be implemented in a variety of forms, including devices such as mobile phones, tablet computers, PDAs, laptop computers, and desktop computers.

[0147] The memory 52 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 52 may include a program storage area and a data storage area. The program storage area may store data for implementing

[0148] Instructions of the operating system, instructions for at least one function, and instructions for implementing the multimodal semantic segmentation method for industrial scenarios provided by the above embodiments, etc.; the storage data area can store data involved in the multimodal semantic segmentation method for industrial scenarios provided by the above embodiments, etc.

[0149] The processor 51 may include one or more processing cores. The processor 51 executes various functions and processes data of the present application by running or executing instructions, programs, code sets or instruction sets stored in the memory 52, calling the data stored in the memory 52. ​​The processor 51 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiments of the present application are not specifically limited.

[0150] The present application also provides a computer-readable storage medium, for example, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes. The computer-readable storage medium stores a computer program that can be loaded by a processor and execute the multimodal semantic segmentation method in the industrial scenario of the above embodiment.

[0151] As described above, the above embodiments are only used to introduce the technical solution of the present application in detail, but the description of the above embodiments is only used to help understand the method and core idea of ​​the present application and should not be understood as limiting the present application. Any changes or substitutions that can be easily thought of by technicians in this technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A multimodal semantic segmentation method in an industrial scenario, characterized by: The multimodal semantic segmentation method in the industrial scenario includes: Acquire an RGB detection image containing a target object to be identified and text data of the target object to be identified; The RGB detection image and the text data are input into a semantic segmentation model, which extracts image features of a region of interest in the RGB detection image and text features of the text data, respectively, aligns and fuses the image features with the text features to obtain processed semantic features, and determines a semantic segmentation result of a target object in the RGB detection image based on the semantic features.

2. The multimodal semantic segmentation method in an industrial scenario as claimed in claim 1, characterized in that: The semantic segmentation model includes a feature extraction module (401), a text image alignment fusion module (402) and an object recognition module (403); The feature extraction module (401) is used to extract the image features of the RGB detection image and the text features of the text data; The text-image alignment fusion module (402) is used to cross-align the image features and the text features according to a cross-modal cross-attention mechanism, and to fuse the image features and the text features to obtain processed semantic features; The object recognition module (403) recognizes the target object in the RGB detection image according to the processed semantic features, and obtains a semantic segmentation result of the target object in the RGB detection image.

3. The multimodal semantic segmentation method in an industrial scenario as claimed in claim 2, characterized in that: The cross-modal attention mechanism is: Calculate the attention mechanism using the key vector K of the image feature, the numerical vector V of the image feature, and the query vector Q of the text feature; The attention mechanism is calculated using the key vector K of the text feature, the numerical vector V of the text feature, and the query vector Q of the image feature.

4. The multimodal semantic segmentation method in an industrial scenario as claimed in claim 2, characterized in that: The method further comprises: Global information and context information are injected into the image features.

5. The multimodal semantic segmentation method in an industrial scenario according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtaining a mask image corresponding to the RGB detection image; A region of interest of the RGB detection image is determined according to the mask image.

6. The multimodal semantic segmentation method in an industrial scenario according to any one of claim 5, characterized in that: The method also includes a step of training the semantic segmentation model semantic segmentation model; The training steps include: Obtain a training data set, wherein the training data set includes a plurality of RGB sample images and a plurality of groups of text sample data; Construct the network structure of the semantic segmentation model; The network of the semantic segmentation model is trained using the training data set, and in each training, a cross-modal cross loss function of the text feature and the image feature is determined according to an output result of the semantic segmentation model; The network parameters of the semantic segmentation model are optimized according to the cross-modal cross loss function to obtain the final semantic segmentation model.

7. The multimodal semantic segmentation method in an industrial scenario as claimed in claim 6, characterized in that: The cross-modal cross loss function L TIA =L P2P +L P2T ; The loss function of the corresponding parts of the RGB detection image and the mask image is: The loss function of the corresponding part of the RGB detection image and text sample data is: i is the positive sample index, j is the negative sample index; T is the feature of the text encoder, |P| is the size of the positive sample set, |N| is the size of the negative sample set, I is the feature of the image encoder, is the pixel feature of the i-th positive sample, is the pixel feature of the jth negative sample; is the positive pixel feature after average pooling, is the negative pixel feature after average pooling; T avg It is a linear mapping after average pooling of text features, τ1 and τ2 are hyperparameters, and both the text features and the image features are regularized by L2.

8. A multimodal semantic segmentation system in an industrial scenario, used to implement the above method, characterized in that: include: An acquisition module (1) is used to acquire an RGB detection image containing a target object to be identified and text data corresponding to the target object to be identified; A processing module (2) is used to input the RGB detection image and the text data into a semantic segmentation model, the semantic segmentation model extracts the image features of the region of interest in the RGB detection image and the text features of the text data respectively, aligns and fuses the image features with the text features to obtain processed semantic features, and determines the semantic segmentation result of the target object in the RGB detection image based on the semantic features.

9. A computer device, characterized in that: The invention comprises a processor (51), a memory (52), and a computer program stored in the memory (52) and executable on the processor (51); when the processor (51) executes the computer program, the multimodal semantic segmentation method in an industrial scenario as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer storage medium stores a computer program; when the computer program is executed by a processor, the multimodal semantic segmentation method in an industrial scenario as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Multi-modal image semantic segmentation method based on shape and semantic enhancement

    CN115661455A

  • Remote sensing scene recognition method and system based on multiple modes and medium

    CN116665114A

  • Semantic segmentation model training method and device, electronic equipment and storage medium

    CN117437516A

  • Multimodal medical image segmentation method and system based on knowledge depolarization

    CN118072014A

Cited By

  • Open scene multi-modal image-text zero sample semantic segmentation method and system

    CN119399458A

  • Medical image semantic segmentation method and device, electronic equipment and storage medium

    CN119625325A

  • Object identification method and device, storage medium and electronic equipment

    CN119693632A

  • Target identification method, device, non-volatile storage medium and computer equipment

    CN119763056A

  • Cross-view feature extraction model training method, geographic positioning method and device

    CN119992117A