Robot action prediction method based on MAMBA and selective memory three-dimensional space

By converting multi-view RGB-D image data into a three-dimensional voxel grid and combining it with a selective memory structure, the problem of low robot control efficiency in the existing technology is solved, and efficient task execution and multi-task adaptation in complex environments are achieved. sex.

CN118769250APending Publication Date: 2024-10-15NORTHEASTERN UNIV FOSHAN GRADUATE SCHOOL OF INNOVATION
View PDF 0 Cites 16 Cited by

Patent Information

Application Number
CN202410969316.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing robot control methods are inefficient when dealing with deformed objects and granular objects, especially in high-degree-of-freedom operation tasks that require a large amount of sample data, and existing methods based on 3D convolutional neural networks and multi-task models are inefficient in complex scenes and data. Poor performance under limited conditions.

Method used

A three-dimensional space robot action prediction method based on MAMBA and selective memory is adopted, by converting multi-view RGB-D image data into a three-dimensional voxel grid, combined with a pre-trained language model and Perceiver transformer, using the selective memory CA-SSM structure Make action predictions, reduce data volume and improve multi-task adaptability.

Benefits of technology

It achieves efficient robot control under limited data conditions, improves the ability to process deformed objects and granular objects, and enhances multi-task learning capabilities and language condition task processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769250A_ABST
    Figure CN118769250A_ABST
Patent Text Reader

Abstract

The invention discloses a robot action prediction method based on MAMBA and selective memory three-dimensional space. The robot action prediction method comprises the following steps: converting multi-view RGB-D image data acquired by a robot into a three-dimensional voxel grid; coding the task target and the three-dimensional voxel grid by using a pre-trained language model, and converting the task target and the three-dimensional voxel grid into a language feature vector and a three-dimensional voxel grid feature vector; performing compression through a 3D-Mama model to obtain a two-dimensional voxel grid feature vector; combining the two-dimensional voxel grid feature vector with the language feature vector to form an input sequence; the input sequence is processed through a Perciver transformer, and an input vector with position information is generated; historical information of an input vector with position information is stored through a selective memory CA-SSM structure, and action prediction is carried out based on the historical information; and training the whole model by using a supervised learning method, and selecting each action through a maximized Q function until the task is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of robot control, and relates to a robot motion prediction method based on MAMBA and selective memory of three-dimensional space. Background Art

[0002] In the field of robotic manipulation, traditional manipulation methods often rely on hand-crafted object representations and geometric models. These methods show significant deficiencies in handling deformable objects and granular objects (such as cloth and beans). Many existing methods use 2D image inputs and simple pick and place primitives, which are often inefficient in high-degree-of-freedom (6DoF) manipulation tasks and require a large amount of example data to learn basic skills.

[0003] Existing solutions, the literature JJames, Stephen, et al. "Coarse-to-fine qattention: Efficient learning for visual robotic manipulation via discretisation." Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition. 2022. proposes an action detection model based on a 3D convolutional neural network, which uses a coarse-to-fine voxel grid scheme to detect actions. However, this method has a limited receptive field when dealing with complex scenes, especially at the finest level of voxel grids. This leads to performance limitations of this method when dealing with multi-task and language-conditional tasks.

[0004] Other transformer-based multi-task models, such as Gato, have demonstrated superior performance in multi-domain tasks, but they rely on extremely large datasets, such as the 15K stacking block task and the 94K MetaWorld task. The data collection cost of these methods is high and they are difficult to apply to robotic manipulation tasks with limited data. Summary of the invention

[0005] To solve the above technical problems, the purpose of the present invention is to provide a robot motion prediction method based on MAMBA and selective memory three-dimensional space, which integrates language goals and three-dimensional voxel observation data by introducing a selective memory mechanism, and combines the advantages of cross-attention and SSM structure to improve the robot's task execution ability in complex environments.

[0006] The present invention provides a robot motion prediction method based on MAMBA and selective memory three-dimensional space, comprising:

[0007] Step 1: Convert the multi-view RGB-D image data collected by the robot into a three-dimensional voxel grid;

[0008] Step 2: Use the pre-trained language model CLIP to encode the task objectives and the 3D voxel grid, and convert them into language feature vectors and 3D voxel grid feature vectors;

[0009] Step 3: compress the 3D voxel grid feature vector into a 3D state and input it into the Mamba model for spatial information screening, and compress it into a 2D voxel grid feature vector;

[0010] Step 4: Combine the preliminarily encoded two-dimensional voxel grid feature vector with the language feature vector to form an input sequence;

[0011] Step 5: The input sequence is processed by the Perceiver transformer to generate an input vector with position information;

[0012] Step 6: The input vector with position information is stored in the selective memory CA-SSM structure to perform action prediction based on the historical information;

[0013] Step 7: Use supervised learning methods to train the overall model. The training data consists of discretized translation, rotation, and gripping actions. Each action is selected by maximizing the Q function until the task is completed.

[0014] The robot motion prediction method based on MAMBA and selective memory three-dimensional space of the present invention has the following beneficial effects:

[0015] (1) The three-dimensional space to two-dimensional space compression method is adopted, and the three-dimensional space information is compressed into two-dimensional space for processing through the Mamba model. This greatly reduces the amount of data required for model training and reasoning, improves data utilization efficiency, and enables efficient robot control even under limited data conditions.

[0016] (2) Introducing voxelized observation and action space, using three-dimensional voxel grids to represent observation and action data. Voxel grids can better represent the shape and position of complex objects, improving the robot's ability to handle deformable objects and granular objects.

[0017] (3) Combining the selective memory structure (CA-SSM) and the Perceiver Transformer for multi-task learning. By storing historical information through the selective memory structure, the model's adaptability and learning ability for multiple tasks are improved, enabling it to operate efficiently in a multi-task environment.

[0018] (4) The language target is encoded through a pre-trained language model and combined with the voxel grid data to form an input sequence for processing. This enhances the robot's processing ability in language-conditioned tasks, enabling it to understand and execute complex tasks based on language instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a data flow diagram of the robot motion prediction method based on MAMBA and selective memory three-dimensional space of the present invention. DETAILED DESCRIPTION

[0020] like Figure 1 As shown, a robot motion prediction method based on MAMBA and selective memory three-dimensional space of the present invention comprises:

[0021] Step 1: Convert the multi-view RGB-D image data collected by the robot into a 3D voxel grid, specifically:

[0022] Using the known camera extrinsic and intrinsic parameters, voxel data is generated by triangulation fusion; the resolution is 100 3 A voxel grid is created, with each voxel representing a 1 cubic centimeter spatial unit.

[0023] Step 2: Use the pre-trained language model CLIP to encode the task objectives and the 3D voxel grid, and convert them into language feature vectors and 3D voxel grid feature vectors, specifically:

[0024] Step 2.1: Use the pre-trained language model CLIP to encode the task goal and convert it into a language feature vector that can capture the semantic information of the task goal. The task goal is an action instruction given in natural language.

[0025] Specifically, the task objectives are usually given in natural language, such as "open the middle drawer" or "put the red block on the green platform". CLIP's language encoder converts these natural language objectives into feature vectors l, which can capture the semantic information of the task objectives.

[0026] Step 2.2: Divide the 3D voxel grid into 5 3 The features of these patches are extracted through the 3D convolutional layer of the language model CLIP, and they are flattened into a voxel encoding sequence to form a 3D voxel grid feature vector.

[0027] Step 3: After compressing the 3D voxel grid feature vector to a 3D state, it is input into the Mamba model for spatial information screening and compressed into a 2D voxel grid feature vector, specifically:

[0028] Step 3.1: Input the three-dimensional voxel grid feature vector into the convolution block to expand the second dimension of the three-dimensional voxel grid feature vector.

[0029] In the specific implementation, the input data shape is (B, 10, 100, 100, 100). The input data is processed by a convolution block Conv3DBlock, and the output shape is (B, 64, 100, 100, 100).

[0030] Step 3.2: The second dimension feature of the three-dimensional voxel grid feature vector is enlarged and the fourth dimension feature is reduced to reshape.

[0031] In the specific implementation, the shape of the input data (B, 64, 100, 100, 100) is resized to (B, 640, 100, 10, 100).

[0032] Step 3.3: The reshaped data is averaged on the third and fourth dimension features, thereby compressing the three-dimensional voxel grid feature vector into a three-dimensional state.

[0033] In the specific implementation, data with a shape of (B, 640, 100) is obtained through step 3.3.

[0034] Step 3.4: The voxel grid feature vector in the three-dimensional state is input into the Mamba module for spatial information screening, and then the shape is adjusted and the average is calculated on the second dimension feature.

[0035] In the specific implementation, the data after averaging in step 3.3 is input into the Mamba module for processing, and the output shape is (B, 256, 250). The data processed by Mamba is averaged in the second dimension to obtain data with a shape of (B, 256).

[0036] Step 3.5: Input the output of the Mamba module into the linear transformation layer for linear transformation and compress it into a two-dimensional voxel grid feature vector.

[0037] In the specific implementation, the dimension is converted from 256 to 64 through step 3.5.

[0038] Step 4: Combine the preliminarily encoded 2D voxel grid feature vector with the language feature vector to form an input sequence, specifically:

[0039] The two-dimensional voxel grid feature vector and the language feature vector are concatenated to form a long vector as the input sequence; the purpose of this step is to combine spatial information and language information so that the features of each voxel grid contain not only its spatial position and content, but also the semantic information of the task goal.

[0040] Step 5: The input sequence is processed by the Perceiver transformer to generate an input vector with position information, specifically:

[0041] Step 5.1: In order to preserve the position information of each voxel grid in the three-dimensional space, a position embedding is added to each position of the input sequence. The position embedding constitutes a vector representing the position of each voxel grid in the original three-dimensional voxel grid.

[0042] Step 5.2: Add the position embedding vector to the input sequence to generate an input vector with position information.

[0043] Step 6: The input vector with position information is stored in the selective memory CA-SSM structure to perform action prediction based on the historical information, specifically:

[0044] Step 6.1: Cross-attention processing, the input vector with position information is processed through the cross-attention block, combining context information and masks to capture important features, and the processed result is added to the original input data to form a new feature representation.

[0045] Step 6.2: By continuously stacking the Mamba module, the attention module and the feedforward module, the SSM Layers layer is obtained. The stacking is performed twice, that is, the SSM Layers layer has a total of six sub-layers.

[0046] Step 6.3: Process the new feature representation formed after the cross-attention processing layer by layer, specify the number of cycles, and in each cycle, perform the following steps:

[0047] Normalize new features to stabilize and speed up the training process;

[0048] (1) The normalized data is input into the Mamba layer for state-space model processing. The Mamba layer has multiple parameters, such as model dimension, state expansion factor, and local convolution width, which are used to capture global and local information.

[0049] (2) The data is processed through pre-normalization and attention mechanism to capture the relationship between different features.

[0050] (3) The data is further processed through pre-normalization and feed-forward neural network to enhance feature representation.

[0051] (4) In each cycle, these processing steps are executed in sequence, and the results of each sub-layer processing are added to the original data to gradually accumulate feature information.

[0052] Step 6.4: Predict the action based on the feature information, and obtain the translation, rotation and clamping actions of each joint in the next frame and the probability of collision with the outside world through linear layer transformation.

[0053] Step 7: Use supervised learning methods to train the overall model. The training data consists of discretized translation, rotation, and clamping actions. Each action is selected by maximizing the Q function until the task is completed. The training process is as follows:

[0054] Step 7.1: Obtain and annotate a set of expert demonstration data sets D = {ζ1,ζ2,...,ζ n Each demonstration consists of a sequence of discretized translation, rotation, and gripping actions, which are generated by manual manipulation or a motion planner to ensure that various situations and scenario variations of the task are covered.

[0055] Step 7.2: Each demonstration n Including action sequence A = {a1, a2, ..., a t} and the corresponding observation Each action a consists of a 6-DOF posture, the gripper open / closed state, and whether collision avoidance is used.

[0056] Step 7.3: Discretize each continuous action a, discretize the translation action into the closest position in the voxel grid, discretize the rotation action into the Euler angle representation with an interval of 5 degrees, the clamping action into the open / closed binary state, and the collision avoidance state into a binary representation.

[0057] Step 7.4: For each time step t, observe Convert to a 3D voxel grid v t , and then the 3D voxel grid is encoded into a feature vector through the pre-trained language model, and then compressed into a 2D voxel grid feature vector through the 3D-Mamba model.

[0058] Step 7.5: Encode the task objective l into a language feature vector using the pre-trained language model CLIP and fuse it with the two-dimensional voxel grid feature vector to form an input sequence.

[0059] Step 7.6: Feed the input sequence into the transformer and selective memory structure to generate action predictions for each time step. For each predicted action, calculate its discretized Q value. The Q value function Q(a|v,l) represents the quality of selecting action a under a given voxel grid and language target.

[0060] Step 7.7: Use the cross entropy loss function to supervise the action prediction of the learning model. The training goal is to maximize the Q value of the correct action at each time step, that is, to minimize the gap between the predicted action and the expert demonstration action; the specific loss function form is:

[0061]

[0062] Among them, Y trans , Y rot , Y open and Y collide represent the true labels of translation, rotation, clamping and collision avoidance respectively. trans , Q rot , Q open , Q collide Represent the Q values ​​of translation, rotation, clamping and collision avoidance respectively.

[0063] Step 7.8: During the training process, randomly extract samples from the demonstration dataset and input them into the model for forward propagation to calculate the Q value of the predicted action.

[0064] Step 7.9: Use the back-propagation algorithm to adjust the model parameters to minimize the above loss function.

[0065] Step 7.10: To enhance the generalization ability of the model, data augmentation is performed on the voxel grid and motion data during training, including random rotation, translation, and noise addition.

[0066] Step 7.11: Model training uses an iterative optimization method and continues for multiple epochs until the loss function converges or reaches the preset training rounds.

[0067] Step 7.12: During the training process, perform validation evaluation on the model regularly to ensure that it performs well on unseen data and avoid overfitting.

[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the concept of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A robot motion prediction method based on MAMBA and selective memory three-dimensional space, characterized in that: include: Step 1: Convert the multi-view RGB-D image data collected by the robot into a three-dimensional voxel grid; Step 2: Use the pre-trained language model CLIP to encode the task objectives and the 3D voxel grid, and convert them into language feature vectors and 3D voxel grid feature vectors; Step 3: compress the 3D voxel grid feature vector into a 3D state and input it into the Mamba model for spatial information screening, and compress it into a 2D voxel grid feature vector; Step 4: Combine the preliminarily encoded two-dimensional voxel grid feature vector with the language feature vector to form an input sequence; Step 5: The input sequence is processed by the Perceiver transformer to generate an input vector with position information; Step 6: The input vector with position information is stored in the selective memory CA-SSM structure to perform action prediction based on the historical information; Step 7: Use supervised learning methods to train the overall model. The training data consists of discretized translation, rotation, and gripping actions. Each action is selected by maximizing the Q function until the task is completed.

2. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 1 is specifically as follows: Using the known camera extrinsic and intrinsic parameters, voxel data is generated by triangulation fusion; the resolution is 100 3 A voxel grid is created, with each voxel representing a 1 cubic centimeter spatial unit.

3. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 2 is specifically as follows: Step 2.1: Use the pre-trained language model CLIP to encode the task goal and convert it into a language feature vector that can capture the semantic information of the task goal. The task goal is an action instruction given in natural language; Step 2.2: Divide the 3D voxel grid into 5 3 The features of these patches are extracted through the 3D convolutional layer of the language model CLIP, and they are flattened into a voxel encoding sequence to form a 3D voxel grid feature vector.

4. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 3 is specifically as follows: Step 3.1: Input the 3D voxel grid feature vector into the convolution block to expand the second dimension of the 3D voxel grid feature vector; Step 3.2: Enlarge the second dimension of the three-dimensional voxel grid feature vector and reduce the fourth dimension to reshape it; Step 3.3: Calculate the average of the third and fourth dimension features of the data after the shape adjustment, and then compress the three-dimensional voxel grid feature vector into a three-dimensional state; Step 3.4: The voxel grid feature vector of the three-dimensional state is input into the Mamba module for spatial information screening, and then the shape is adjusted and the average is calculated on the second dimension feature; Step 3.5: Input the output of the Mamba module into the linear transformation layer for linear transformation and compress it into a two-dimensional voxel grid feature vector.

5. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 4 is specifically as follows: The two-dimensional voxel grid feature vector and the language feature vector are concatenated to form a long vector as the input sequence; the purpose of this step is to combine spatial information and language information so that the features of each voxel grid contain not only its spatial position and content, but also the semantic information of the task goal.

6. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 5 is specifically as follows: Step 5.1: In order to preserve the position information of each voxel grid in the three-dimensional space, add a position embedding to each position of the input sequence. The position embedding forms a vector that represents the position of each voxel grid in the original three-dimensional voxel grid. Step 5.2: Add the position embedding vector to the input sequence to generate an input vector with position information.

7. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The step 6 is specifically as follows: Step 6.1: Cross-attention processing: the input vector with position information is processed through the cross-attention block, combining context information and mask to capture important features. The processed result is added to the original input data to form a new feature representation; Step 6.2: The SSM Layers layer is obtained by stacking the Mamba module, the attention module and the feedforward module continuously. The stacking is performed twice, that is, the SSM Layers layer has a total of six sub-layers; Step 6.3: Process the new feature representation formed after the cross-attention processing layer by layer, specify the number of cycles, and in each cycle, perform the following steps: Normalize new features to stabilize and speed up the training process; The normalized data is fed into the Mamba module for processing in the state-space model to capture global and local information; The data is processed through pre-normalization and attention mechanism to capture the relationship between different features; The data is further processed through pre-normalization and feed-forward neural network to enhance feature representation; In each cycle, these processing steps are executed sequentially, and the results of each sub-layer processing are added to the original data to gradually accumulate feature information; Step 6.4: Predict the action based on the feature information, and obtain the translation, rotation and clamping actions of each joint in the next frame and the probability of collision with the outside world through linear layer transformation.

8. The robot motion prediction method based on MAMBA and selective memory three-dimensional space as claimed in claim 1, characterized in that: The supervised learning method in step 7 trains the model specifically as follows: Step 7.1: Obtain and annotate a set of expert demonstration data sets D = {ζ1,ζ2,...,ζ n Each demonstration consists of a series of discretized translation, rotation, and gripping actions, which are generated by manual operation or motion planner to ensure that various situations and scene variations of the task are covered; Step 7.2: Each demonstration n Including action sequence A = {a1, a2, ..., a t } and the corresponding observation Each action a consists of a 6-DOF posture, the gripper open / closed state, and whether collision avoidance is used; Step 7.3: Discretize each continuous action a, discretize the translation action into the closest position in the voxel grid, discretize the rotation action into the Euler angle representation with an interval of 5 degrees, the clamping action into the open / closed binary state, and the collision avoidance state into the binary representation; Step 7.4: For each time step t, observe Convert to a 3D voxel grid v t , then the 3D voxel grid is encoded into a feature vector through the pre-trained language model, and then compressed into a 2D voxel grid feature vector through the 3D-Mamba model; Step 7.5: Encode the task target l into a language feature vector using the pre-trained language model CLIP, and fuse it with the two-dimensional voxel grid feature vector to form an input sequence; Step 7.6: Feed the input sequence into the transformer and selective memory structure to generate action predictions for each time step. For each predicted action, calculate its discretized Q value. The Q value function Q(a|v,l) represents the quality of selecting action a under a given voxel grid and language target. Step 7.7: Use the cross entropy loss function to supervise the action prediction of the learning model. The training goal is to maximize the Q value of the correct action at each time step, that is, to minimize the gap between the predicted action and the expert demonstration action; the specific loss function form is: L total =-E Ytrans [logQ trans ]-AND Yrot [logQ rot ]-AND Yopen [logQ open ]-AND Ycollide [logQ collide ] Among them, Y trans , Y rot , Y open and Y collide represent the true labels of translation, rotation, clamping and collision avoidance respectively; Q trans , Q rot , Q open , Q collide They represent the Q values ​​of translation, rotation, clamping, and collision avoidance, respectively; Step 7.8: During the training process, randomly select samples from the demonstration dataset and input them into the model for forward propagation to calculate the Q value of the predicted action; Step 7.9: Use the back-propagation algorithm to adjust the model parameters to minimize the above loss function; Step 7.10: To enhance the generalization ability of the model, perform data augmentation on the voxel grid and motion data during training, including random rotation, translation, and noise addition. Step 7.11: The model training adopts an iterative optimization method and continues for multiple epochs until the loss function converges or reaches the preset training rounds; Step 7.12: During the training process, perform validation evaluation on the model regularly to ensure that it performs well on unseen data and avoid overfitting.

Citation Information

Cited By

  • Three-dimensional grid occupation prediction method, device and equipment

    CN119445024A

  • Three-dimensional target detection model training method, and three-dimensional target detection method and device

    CN119672698A

  • Lightweight three-dimensional human body posture estimation method for uncalibrated multi-view camera

    CN119832644A

  • A lightweight three-dimensional human pose estimation method for uncalibrated multi-view cameras

    CN119832644B

  • Intelligent robot safe operation method based on three-dimensional Gaussian and touch image fusion

    CN119897874A