A robot classification detection method and system based on multimodal multi-task learning

Through the multi-modal multi-task learning method, the robot image and semantic information are integrated, and the core semantic attention mechanism is used to optimize the model training, which solves the problems of declining detection accuracy and insufficient robustness in the existing technology, and realizes the detection in complex scenes. High accuracy and stable detection.

CN118506107BActive Publication Date: 2024-09-27YANTAI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410954465.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

Smart Images

  • Figure CN118506107B
    Figure CN118506107B
Patent Text Reader

Abstract

The present invention relates to the field of robotics, and in particular to a robot classification detection method and system based on multimodal multi-task learning, including S1. constructing a multimodal data set and performing data preprocessing; S2. aligning a semantic information data set and an image data set; S3. constructing a multimodal target detection model, inputting the multimodal data set into the model for multi-task learning, extracting features of the multimodal data set, and fusing the extracted visual image features and semantic information features, calculating the weighted sum of the robot's visual image features using a core semantic attention mechanism, and completing the training of the model by optimizing the weighted sum. The present invention proposes a robot classification detection method based on multimodal multi-task learning, which fuses the robot's image and semantic information, improves the feature interactivity of text and image during detection, and enables the detection model to have higher accuracy and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robotics technology, and in particular to a robot classification detection method and system based on multi-modal multi-task learning. Background Art

[0002] With the rapid development of robotics technology, robots are increasingly used in the industrial field. Various robots, such as industrial robots, service robots, etc., have begun to work together, which has undoubtedly greatly improved production efficiency and service quality. However, with the increasing types and numbers of robots, some potential problems have gradually emerged. Although robots are designed to be efficient and precise tools, they are not perfect and may be affected by a variety of uncontrollable factors, such as sensor failures, software vulnerabilities, environmental interference, etc., which may lead to abnormal working. These abnormal situations may cause production delays, product quality decline and other problems, which in turn will cause certain economic losses to the company.

[0003] Therefore, in order to ensure the normal operation of robots, it is essential to detect them in real time. The object detection method in computer vision provides an effective means for real-time detection of robots. By using cameras and other devices to obtain image information of robots, and using relevant algorithms and models to analyze and process this information, abnormal situations of robots can be discovered in time.

[0004] However, current target detection methods still have some shortcomings when applied to robot detection. For example, when a large number of robots or multiple different types of robots appear in the detection screen, the detector may suffer a significant decrease in detection accuracy due to information overload. In addition, during the detection process, since the state of the robot may change in real time, the detector may not be able to accurately judge the real-time state of the robot, resulting in large classification errors. In addition, if it is necessary to simultaneously detect the robot's operating status, category, and the entire state of the surrounding environment, and add corresponding labels to them, the detector may face the problem of overlapping classification labels and target selections, which may lead to missed detections or abnormal label classification. Summary of the invention

[0005] At present, there are defects in the target detection model for robot classification, selection and state detection, such as limited detection accuracy due to a single data set, limited model detection capabilities due to failure to consider multimodal semantic information, and limited performance due to insufficient model robustness in complex scenarios. In order to solve the above-mentioned problems, the present invention provides a robot classification detection method and system based on multimodal multi-task learning.

[0006] In a first aspect, the present invention provides a robot classification detection method based on multimodal multi-task learning, which adopts the following technical solution:

[0007] A robot classification detection method based on multimodal multi-task learning includes the following steps:

[0008] S1. Constructing a multimodal data set and performing data preprocessing, wherein constructing a multimodal data set includes obtaining text description semantic information of the robot to construct a semantic information data set, and obtaining visual image information of the robot in different environments and different states to construct an image data set;

[0009] S2. Align the semantic information dataset and the image dataset by obtaining the similarity between the semantics of the text description and the visual image;

[0010] S3. Use the neural network model architecture with Vision Transformers as the backbone network to build a multimodal target detection model, input the multimodal dataset into the model for multi-task learning, extract features from the multimodal dataset, and fuse the extracted visual image features and semantic information features. Use the core semantic attention mechanism to calculate the weighted sum of the robot's visual image features, and complete the model training by optimizing the weighted sum.

[0011] S4. Use the trained multimodal object detection model to detect and select different operating states of different robots in the same scene.

[0012] Furthermore, the constructing of the semantic information dataset includes obtaining semantic context descriptions of a customized robot in different states, wherein the semantic context descriptions include core-related keywords of the robot; the constructing of the image dataset includes obtaining category label data of different robots in different operating states and position coordinate data of the robot when it is framed in the image; and the data preprocessing includes random flipping, cropping, denoising and image enhancement of the dataset.

[0013] Furthermore, the similarity between the semantics of the text description and the visual image is obtained by using the formula:

[0014] ,in, It is A visual representation of the region, It is A textual representation of a description, is the similarity function, using cosine similarity Calculation, the alignment of the semantic information dataset and the image dataset includes narrowing the distance between the text description semantics and the extracted features of the visual image in the joint embedding space.

[0015] Furthermore, the step of inputting the multimodal dataset into the model for multi-task learning comprises the following steps:

[0016] A1. Input the dataset into the multimodal object detection model for input training;

[0017] A2. Provide a corresponding data set for each region to mark the region description. The formula D for the data set marking region description is as follows:

[0018] ,in, represents the i-th image, Indicates In the image Regions, Indicates The text description corresponding to each region, represents the total number of images, Indicates The number of regions in the image.

[0019] Furthermore, the extracted visual image features and semantic information features are subjected to feature fusion, comprising the following steps: using an encoder to extract classification features from a data set to obtain visual image features and semantic information features of the robot, and performing feature fusion on the visual image features and the semantic information features. The formula for performing feature fusion is:

[0020] ,in, is the input image, is a visual image encoder, For visual image feature representation, the image encoder is a pre-trained Res Net or Efficient Net convolutional neural network;

[0021] ,in, is the semantic context information, is the semantic information encoder, It is a semantic information feature.

[0022] Furthermore, the method of calculating the weighted sum of the robot's visual image features using the core semantic attention mechanism includes the following steps:

[0023] B1. Use weight decay to improve the stability of training. The formula of weight decay is:

[0024] ,in, are model parameters, is a regularization parameter used to control the strength of regularization. The weight decay includes applying L2 regularization to the model parameters to prevent overfitting.

[0025] B2. Use dropout to randomly discard some neurons to enhance the generalization ability of the model;

[0026] B3. Calculate attention weights ,in, is the query vector extracted from the text input, It is The key vector of the image region, sim is the similarity function used for the query vector and key vector The similarity is calculated using cosine similarity. is the query vector The number of relevant image regions, Is used to traverse all The index of the relevant image region, is the index of the query vector, used to distinguish different queries. The index of the image region is used to distinguish different key vectors;

[0027] B4. Calculating Core Semantic Attention ,in, It is A vector of values ​​for image regions, is the attention weight, K is the key matrix, V is the value matrix, is the query vector extracted from the text input, is the number of image regions associated with the query vector;

[0028] B5. Use the core semantic attention, visual image features and semantic information features to calculate the attention weight and perform weighted summation. The formula is:

[0029] in, is the visual image feature, is the semantic information feature, It is the feature after weighted summation and fusion.

[0030] Furthermore, the training of the model by optimizing the weighted sum includes the following steps:

[0031] C1. The fused features The input is sent to the subsequent detection head for target detection and finally generates the feature representation for target detection. The formula is: ,in It is a detection head based on convolutional neural network;

[0032] C2. Represent the generated features With the true label Compare and calculate the loss value , the formula for calculating the loss value is:

[0033] in is the number of samples, and the gradient of the loss value to the model parameters is calculated by back propagation ;

[0034] C3. Update model parameters using stochastic gradient descent algorithm and gradient of loss value to model parameters , the update formula is: ,in is the learning rate, which is used to control the step size of parameter update and optimize the loss value to complete model training.

[0035] In the second aspect, a robot classification detection system based on multimodal multi-task learning includes:

[0036] A data set construction module is configured to construct a multimodal data set and perform data preprocessing, wherein the multimodal data set construction includes acquiring text description semantic information of the robot to construct a semantic information data set, and acquiring visual image information of the robot in different environments and different states to construct an image data set;

[0037] The data set alignment module is configured to align the semantic information data set and the image data set by utilizing the similarity between the semantics of the acquired text description and the visual image;

[0038] The model building and training module is configured to build a multimodal target detection model using the neural network model architecture with Vision Transformers as the backbone network, input the multimodal data set into the model for multi-task learning, extract features from the multimodal data set, and fuse the extracted visual image features and semantic information features, calculate the weighted sum of the robot's visual image features using the core semantic attention mechanism, and complete the model training by optimizing the weighted sum;

[0039] The target detection module is configured to detect and select different operating states of different robots in the same scene using a trained multimodal target detection model.

[0040] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a robot classification and detection method based on multimodal multi-task learning.

[0041] In a fourth aspect, the present invention provides a terminal device comprising a processor and a computer-readable storage medium, the processor being used to implement various instructions; the computer-readable storage medium being used to store multiple instructions, the instructions being suitable for being loaded by the processor and executing the robot classification and detection method based on multimodal multi-task learning.

[0042] In summary, the present invention has the following beneficial technical effects:

[0043] 1. The present invention designs a solution for feature extraction of robot multimodal datasets, integrates the image and semantic information of the robot, improves the feature interactivity of text and image during detection, and makes the detection model more accurate and robust. It solves the problem of small and single robot datasets. By obtaining multimodal datasets, including semantic context information and visual image information, and performing preprocessing operations, the dataset is made more diversified, and the accuracy of robot detection is improved.

[0044] 2. The present invention takes into account the importance of multimodal semantic information to the feature extraction of the target detection model, and enhances the detection capability of the model through multi-task learning and core semantic attention mechanism. In complex scenarios, by fusing image and semantic information, the model has stronger robustness in complex environments, thereby improving the model performance.

[0045] 3. It can accurately detect and select the different operating states of different robots in the same scene. It can obtain the real-time operating state information and related scene information of the robot through semantic input or automatic visual detection, and realize stable real-time detection of multiple robots of different types, providing reliable technical support for practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of a robot classification detection method based on multimodal multi-task learning according to Example 1 of the present invention. DETAILED DESCRIPTION

[0047] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0048] Example 1

[0049] Reference Figure 1 , a robot classification detection method based on multi-modal multi-task learning in this embodiment,

[0050] Specifically, the following steps are included:

[0051] S1. Constructing a multimodal data set and performing data preprocessing, wherein constructing a multimodal data set includes obtaining text description semantic information of the robot to construct a semantic information data set, and obtaining visual image information of the robot in different environments and different states to construct an image data set;

[0052] The constructing of the semantic information dataset includes obtaining semantic context descriptions of a customized robot in different states, wherein the semantic context descriptions include core-related keywords of the robot; the constructing of the image dataset includes obtaining category label data of different robots in different operating states and position coordinate data of the robot when it is framed in the image; and the data preprocessing includes random flipping, cropping, denoising and image enhancement of the dataset.

[0053] When constructing a semantic information dataset, you can collect text materials such as the robot's operating manual and instruction manual to extract semantic information related to the robot's status. For image datasets, you can use a camera to capture images of the robot in different scenes, use annotation tools to select the robot in the image, and record its category label and position coordinates. During data preprocessing, you can randomly flip the image to increase data diversity; crop it to remove irrelevant parts; use a denoising algorithm to reduce noise in the image; and use image enhancement technology to improve image clarity and contrast.

[0054] S2. Align the semantic information dataset and the image dataset by obtaining the similarity between the semantics of the text description and the visual image;

[0055] The similarity between the semantics of the text description and the visual image is obtained by formula:

[0056] ,in, It is A visual representation of the region, It is A textual representation of a description, is the similarity function, using cosine similarity Calculation, aligning the semantic information dataset and the image dataset, including bringing the text description semantics and the extracted features of the visual image closer in the joint embedding space, ensuring that the distance between the robot's visual features and text features in the joint embedding space is as close as possible, thereby achieving alignment. This alignment mechanism can significantly improve the performance of the model in multimodal tasks.

[0057] S3. Use the neural network model architecture with Vision Transformers as the backbone network to build a multimodal target detection model, input the multimodal dataset into the model for multi-task learning, extract features from the multimodal dataset, and fuse the extracted visual image features and semantic information features. Use the core semantic attention mechanism to calculate the weighted sum of the robot's visual image features, and complete the model training by optimizing the weighted sum.

[0058] A multimodal object detection model is built with a neural network model architecture with Vision Transformers (ViT) as the backbone network. ViT is a visual model based on the Transformer architecture, which divides the image into multiple patches and regards each patch as a token. These tokens are then processed through the Transformer encoder to learn the feature representation of the image.

[0059] In the multimodal object detection model, in addition to image information, text description and semantic information can also be integrated. With ViT as the backbone, its powerful feature extraction capability can be used to process image information and integrate and interact with information from other modalities.

[0060] The multi-modal dataset is input into the model for multi-task learning, comprising the following steps:

[0061] A1. Input the dataset into the multimodal object detection model for input training;

[0062] A2. Provide a corresponding data set for each region to mark the region description. The formula D for the data set marking region description is as follows:

[0063] ,in, represents the i-th image, Indicates In the image Regions, Indicates The text description corresponding to each region, represents the total number of images, Indicates The construction of this dataset enables the model to be trained on diverse visual and language data, thereby improving the robustness and generalization ability of the model in practical applications.

[0064] Taking Faster R-CNN as an example, a multimodal target detection model is constructed. The preprocessed multimodal dataset is input into the Faster R-CNN model, which performs feature extraction and multi-task learning. During the training process, the model learns how to detect the category and location of the robot based on the image and semantic information.

[0065] The extracted visual image features and semantic information features are subjected to feature fusion, comprising the following steps: using an encoder to extract classification features from a data set to obtain visual image features and semantic information features of a robot, and performing feature fusion on the visual image features and the semantic information features. The formula for performing feature fusion is:

[0066] ,in, is the input image, is a visual image encoder, For visual image feature representation, the image encoder is a pre-trained Res Net or Efficient Net convolutional neural network;

[0067] ,in, is the semantic context information, is the semantic information encoder, It is a semantic information feature.

[0068] In the feature fusion process, the pre-trained ResNet convolutional neural network is used as the visual image encoder to extract features from the input image and obtain the visual image features. At the same time, a bidirectional LSTM-based encoder is used as the semantic information encoder to encode the semantic context information T and obtain the semantic information feature Then, and Perform fusion and use the attention mechanism to dynamically adjust the fusion weights.

[0069] The method of calculating the weighted sum of the robot's visual image features using the core semantic attention mechanism includes the following steps:

[0070] B1. Use weight decay to improve the stability of training. The formula of weight decay is:

[0071] ,in, are model parameters, is a regularization parameter used to control the strength of regularization. The weight decay includes applying L2 regularization to the model parameters to prevent overfitting.

[0072] B2. Use dropout to randomly discard some neurons to enhance the generalization ability of the model;

[0073] B3. Calculate attention weights ,in, is the query vector extracted from the text input, It is The key vector of the image region, sim is the similarity function used for the query vector and key vector The similarity is calculated using cosine similarity. is the query vector The number of relevant image regions, Is used to traverse all The index of the relevant image region, is the index of the query vector, used to distinguish different queries. The index of the image region is used to distinguish different key vectors;

[0074] B4. Calculating Core Semantic Attention ,in, It is A vector of values ​​for image regions, is the attention weight, K is the key matrix, V is the value matrix, is the query vector extracted from the text input, is the number of image regions associated with the query vector. By calculating the core semantic attention, the focus on image regions can be dynamically adjusted according to the text input, improving the performance of the model in multimodal tasks.

[0075] B5. Use the core semantic attention, visual image features and semantic information features to calculate the attention weight and perform weighted summation. The formula is:

[0076] ,in, is the visual image feature, is the semantic information feature, It is the feature after weighted summation and fusion.

[0077] When calculating the attention weights, we first convert the text input into a query vector , and then divide the image into multiple regions, each region corresponds to a key vector Sum value vector By calculating Get the similarity between the query vector and the key vector, and then calculate the attention weight In computing the core semantic attention , the value vector is weighted summed according to the attention weight. Finally, the visual image features and semantic information features Input to In the function, the fused features are obtained .

[0078] The training of the model by optimizing the weighted sum includes the following steps:

[0079] C1. The fused features The input is sent to the subsequent detection head for target detection and finally generates the feature representation for target detection. The formula is: ,in It is a detection head based on convolutional neural network;

[0080] C2. Represent the generated features With the true label Compare and calculate the loss value , the formula for calculating the loss value is:

[0081] ,in is the number of samples, and the gradient of the loss value to the model parameters is calculated by back propagation ;

[0082] C3. Update model parameters using stochastic gradient descent algorithm and gradient of loss value to model parameters , the update formula is: ,in is the learning rate, which is used to control the step size of parameter updates and optimize the loss value to complete model training. When updating model parameters, if the learning rate is too large, the model training may be unstable and unable to converge; if the learning rate is too small, the training process will be very slow. By experimenting with different learning rate values, find the learning rate that best suits the current model and data set. In this embodiment, the learning rate is initially set to 0.01, and then adjusted according to the training situation.

[0083] During the training process, the fused features The input is sent to the convolutional neural network-based detection head, which outputs the predicted target category and location information. These predictions are compared with the true label Compare and calculate the loss value L. Then, use the back propagation algorithm to calculate the gradient of the loss value to the model parameters .

[0084] S4. Use the trained multimodal object detection model to detect and select different operating states of different robots in the same scene.

[0085] The real-time operating status information and related scene information of different robots are obtained through semantic input or automatic visual detection. The weight parameter file trained by the model is integrated with the multimodal information of the robot to detect robots of different types and different operating states in real time. The model can perform real-time box selection and label category assignment for the robot. It can also provide a certain semantic context term information. The model can find the robot that matches the semantic information through the semantic information and obtain the real-time status of the robot, thereby realizing stable real-time detection of multiple robots of different types.

[0086] This embodiment proposes a robot classification detection method based on multimodal multi-task learning, and designs a solution for feature extraction of the robot's multimodal data set. While extracting features from the robot's image information, the robot's semantic information is extracted and matched with core semantic features. Through the multi-task learning method, the robot's image and semantic information are fused to improve the feature interactivity of text and image during detection. The final detection result is obtained by calculating the score of the fused features, so that the detection model has higher accuracy and robustness.

[0087] Example 2

[0088] This embodiment provides a robot classification detection system based on multi-modal multi-task learning, including:

[0089] A data set construction module is configured to construct a multimodal data set and perform data preprocessing, wherein the multimodal data set construction includes acquiring text description semantic information of the robot to construct a semantic information data set, and acquiring visual image information of the robot in different environments and different states to construct an image data set;

[0090] The data set alignment module is configured to align the semantic information data set and the image data set by utilizing the similarity between the semantics of the acquired text description and the visual image;

[0091] The model building and training module is configured to build a multimodal target detection model using the neural network model architecture with Vision Transformers as the backbone network, input the multimodal data set into the model for multi-task learning, extract features from the multimodal data set, and fuse the extracted visual image features and semantic information features, calculate the weighted sum of the robot's visual image features using the core semantic attention mechanism, and complete the model training by optimizing the weighted sum;

[0092] The target detection module is configured to detect and select different operating states of different robots in the same scene using a trained multimodal target detection model.

[0093] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a robot classification and detection method based on multimodal multi-task learning.

[0094] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded and executed by the processor to implement a robot classification detection method based on multimodal multi-task learning.

[0095] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A robot classification detection method based on multimodal multi-task learning, characterized in that: The following steps are involved: S1. Constructing a multimodal data set and performing data preprocessing, wherein constructing a multimodal data set includes obtaining text description semantic information of the robot to construct a semantic information data set, and obtaining visual image information of the robot in different environments and different states to construct an image data set; S2. Align the semantic information dataset and the image dataset by obtaining the similarity between the semantics of the text description and the visual image; S3. Use the neural network model architecture with Vision Transformers as the backbone network to build a multimodal target detection model, input the multimodal dataset into the model for multi-task learning, extract features from the multimodal dataset, and fuse the extracted visual image features and semantic information features. Use the core semantic attention mechanism to calculate the weighted sum of the robot's visual image features, and complete the model training by optimizing the weighted sum. The method of calculating the weighted sum of the robot's visual image features using the core semantic attention mechanism includes the following steps: B1. Use weight decay to improve the stability of training. The formula of weight decay is: in, are model parameters, is a regularization parameter used to control the strength of regularization. The weight decay includes applying L2 regularization to the model parameters to prevent overfitting. B2. Use dropout to randomly discard some neurons to enhance the generalization ability of the model; B3. Calculate attention weights ,in, is the query vector extracted from the text input, It is The key vector of the image region, sim is the similarity function used for the query vector and key vector The similarity is calculated using cosine similarity. is the query vector The number of relevant image regions, Is used to traverse all The index of the relevant image region, is the index of the query vector, used to distinguish different queries. The index of the image region is used to distinguish different key vectors; B4. Calculating Core Semantic Attention ,in, It is A vector of values ​​for image regions, is the attention weight, K is the key matrix, V is the value matrix, is the query vector extracted from the text input, is the number of image regions associated with the query vector; B5. Use the core semantic attention, visual image features and semantic information features to calculate the attention weight and perform weighted summation. The formula is: ,in, is the visual image feature, is the semantic information feature, It is the feature after weighted summation and fusion; S4. Use the trained multimodal object detection model to detect and select different operating states of different robots in the same scene.

2. According to claim 1, a robot classification detection method based on multimodal multi-task learning is characterized in that: The constructing of the semantic information dataset includes obtaining semantic context descriptions of a customized robot in different states, wherein the semantic context descriptions include core-related keywords of the robot; the constructing of the image dataset includes obtaining category label data of different robots in different operating states and position coordinate data of the robot when it is framed in the image; and the data preprocessing includes random flipping, cropping, denoising and image enhancement of the dataset.

3. The robot classification detection method based on multimodal multi-task learning according to claim 1 is characterized in that: The similarity between the semantics of the text description and the visual image is obtained by formula: ,in, It is A visual representation of the region, It is A textual representation of a description, is the similarity function, using cosine similarity Calculation, the alignment of the semantic information dataset and the image dataset includes narrowing the distance between the text description semantics and the extracted features of the visual image in the joint embedding space.

4. The robot classification detection method based on multimodal multi-task learning according to claim 1 is characterized in that: The multi-modal dataset is input into the model for multi-task learning, comprising the following steps: A1. Input the dataset into the multimodal object detection model for input training; A2. Provide a corresponding data set for each region to mark the region description. The formula D for the data set marking region description is as follows: ,in, represents the i-th image, Indicates In the image Regions, Indicates The text description corresponding to each region, represents the total number of images, Indicates The number of regions in the image.

5. The robot classification detection method based on multimodal multi-task learning according to claim 1 is characterized in that: The extracted visual image features and semantic information features are subjected to feature fusion, comprising the following steps: using an encoder to extract classification features from a data set to obtain visual image features and semantic information features of a robot, and performing feature fusion on the visual image features and the semantic information features. The formula for performing feature fusion is: ,in, is the input image, is a visual image encoder, For visual image feature representation, the image encoder is a pre-trained Res Net or Efficient Net convolutional neural network; ,in, is the semantic context information, is the semantic information encoder, It is a semantic information feature.

6. The robot classification detection method based on multimodal multi-task learning according to claim 1 is characterized in that: The training of the model by optimizing the weighted sum includes the following steps: C1. The fused features The input is sent to the subsequent detection head for target detection and finally generates the feature representation for target detection. The formula is: ,in It is a detection head based on convolutional neural network; C2. Represent the generated features With the true label Compare and calculate the loss value , the formula for calculating the loss value is: ,in is the number of samples, and the gradient of the loss value to the model parameters is calculated by back propagation ; C3. Update model parameters using stochastic gradient descent algorithm and gradient of loss value to model parameters , the update formula is: ,in is the learning rate, which is used to control the step size of parameter update and optimize the loss value to complete model training.

7. A robot classification detection system based on multimodal multi-task learning, characterized in that: include: A data set construction module is configured to construct a multimodal data set and perform data preprocessing, wherein the multimodal data set construction includes acquiring text description semantic information of the robot to construct a semantic information data set, and acquiring visual image information of the robot in different environments and different states to construct an image data set; The data set alignment module is configured to align the semantic information data set and the image data set by utilizing the similarity between the semantics of the acquired text description and the visual image; The model building and training module is configured to build a multimodal target detection model using a neural network model architecture with Vision Transformers as the backbone network, input a multimodal data set into the model for multi-task learning, extract features from the multimodal data set, and perform feature fusion on the extracted visual image features and semantic information features, calculate the weighted sum of the robot's visual image features using a core semantic attention mechanism, and complete the model training by optimizing the weighted sum; the calculation of the weighted sum of the robot's visual image features using the core semantic attention mechanism includes the following steps: B1. Use weight decay to improve the stability of training. The formula of weight decay is: ,in, are model parameters, is a regularization parameter used to control the strength of regularization. The weight decay includes applying L2 regularization to the model parameters to prevent overfitting. B2. Use dropout to randomly discard some neurons to enhance the generalization ability of the model; B3. Calculate attention weights ,in, is the query vector extracted from the text input, It is The key vector of the image region, sim is the similarity function used for the query vector and key vector The similarity is calculated using cosine similarity. is the query vector The number of relevant image regions, Is used to traverse all The index of the relevant image region, is the index of the query vector, used to distinguish different queries. The index of the image region is used to distinguish different key vectors; B4. Calculating Core Semantic Attention ,in, It is A vector of values ​​for image regions, is the attention weight, K is the key matrix, V is the value matrix, is the query vector extracted from the text input, is the number of image regions associated with the query vector; B5. Use the core semantic attention, visual image features and semantic information features to calculate the attention weight and perform weighted summation. The formula is: ,in, is the visual image feature, is the semantic information feature, It is the feature after weighted summation and fusion; The target detection module is configured to detect and select different operating states of different robots in the same scene using a trained multimodal target detection model.

8. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing a robot classification and detection method based on multimodal multi-task learning as described in claim 1.

9. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing the robot classification and detection method based on multimodal multi-task learning as described in claim 1.

Citation Information

Cited By

  • Multi-modal cultural heritage data set classification optimization method

    CN121167621A