Joint body 6D attitude estimation method based on reinforcement learning
By modeling joint object 6D pose estimation as reinforcement learning problems, learning point cloud registration trajectory and optimizing kinematic energy functions, the high computational consumption and self-occlusion problems in the existing technology are solved, and efficient and accurate joint object pose estimation is achieved. .
Patent Information
- Application Number
- CN202411014753.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing joint object 6D pose estimation method requires excessive calculation consumption and is limited in performance due to self-occlusion problems when estimating small components.
Model the 6D pose estimation problem as a reinforcement learning problem. By learning some point cloud registration trajectories, iteratively estimate the 6D position of each component, use the PointNet++ structure to extract point cloud features, build a policy network and reward function, and optimize joint object kinematics The energy function is used to calculate the subcomponent posture.
It significantly improves the pose estimation performance of joint objects, reduces inference time, improves estimation accuracy, and can effectively solve the self-occlusion problem, achieving excellent results on PartNet-Mobility and ArtImage datasets.
Smart Images

Figure CN118967808A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a technology in the field of artificial intelligence, and in particular to a method for estimating 6D posture of an articulated body based on reinforcement learning. Background Art
[0002] Accurate perception of the 6D pose of articulated objects is very important for many downstream tasks, such as robotic manipulation, VR, AR, etc. Existing 6D pose estimation methods for articulated objects usually build a deep neural network to densely predict the corresponding points of the observed point cloud in the standard space, but these dense prediction methods require too much computational consumption. In addition, the observed articulated objects may encounter self-occlusion problems, which limits the performance when estimating small parts. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the present invention proposes a 6D posture estimation method for an articulated body based on reinforcement learning. After modeling this task as a reinforcement learning problem, the reinforcement learning method is used to learn the partial point cloud registration trajectory and iteratively estimate the 6D position of each component.
[0004] The present invention is achieved through the following technical solutions:
[0005] The present invention relates to a 6D posture estimation method for an articulated object based on reinforcement learning. The 6D posture estimation problem is converted into a partial point cloud registration task. The point cloud registration trajectory is used as a sample to train a policy network for aligning a source point cloud, i.e., a complete object in a standard space, to a target point cloud, i.e., a partial object observed in a camera space. The trained policy network is then used to generate a state for training an intelligent agent, an action space and a reward function for reinforcement learning are constructed to train the intelligent agent, and finally, the postures of subcomponents are calculated by constructing and optimizing a kinematic energy function of the articulated object.
[0006] The strategy initialization is to construct a PointNet++ structure as a strategy network for imitation learning, process and output a serialized posture fitting trajectory Tr = {(r1, t1), (r2, t2), …, (r k ,t k )}, where: R i and t i Represent the 3D rotation and translation of the i-th step respectively.
[0007] The strategy network uniformly samples the real serialized fitting trajectory Tr'={(r'1,t'1),(r'2,t'2),…,(r' k ,t' k)}, the cross entropy loss function is used to construct the training loss function L to train the policy network, specifically: Where: L r Metric rotation error, L t Metric translation error, λ r and λ t are scaling factors and are set to 0.3 and 0.7, respectively, because the translation fitting strategy is more difficult to converge.
[0008] The reinforcement learning algorithm described contains three major elements: state S, action space A, and reward function R, where: state S is represented by the feature vector output by the last layer of the PointNet++ structure. Given the state S, 12 actions are designed to construct the action space A, where: 6 actions represent rotation operations, namely positive rotation about the X axis, negative rotation about the X axis, positive rotation about the Y axis, negative rotation about the Y axis, positive rotation about the Z axis, and negative rotation about the Z axis; the other 6 actions represent translation operations, namely positive translation about the X axis, negative translation about the X axis, positive translation about the Y axis, negative translation about the Y axis, positive translation about the Z axis, and negative translation about the Z axis. The reward function R is based on the point cloud P to which the source object point cloud is currently transformed at the i-th step. i The Chamfer distance between the target point cloud P' is designed as follows: Among them: η is set to 0.5, S i , S i-1 and S' respectively represent the state of the source point cloud at the i-th step and the i-1-th step and the corresponding state of the target point cloud. Using this method, a reinforcement learning agent can be trained to estimate the pose of the root part of the joint object.
[0009] The kinematic energy function means that when estimating the posture of the sub-components of the joint object, the posture of each sub-component is first initialized with the posture {r0, t0} of the root component, and according to the information of each joint defined in the point cloud of the source object and based on the kinematic structure of the input joint object, an energy function about the state of the joint is constructed for each joint, and the energy function is optimized to find the optimal state of the joint. The posture of each sub-component can be obtained by integrating the states of each joint.
[0010] The present invention relates to a system for implementing the above method, comprising: a point cloud feature extraction unit, a reinforcement learning strategy initialization unit, a reinforcement intelligent agent training unit, and a sub-component posture optimization unit, wherein: the point cloud feature extraction unit uses the PointNet++ structure to process the point cloud data of each training stage to obtain a feature vector that is convenient for subsequent processing; the reinforcement learning strategy initialization unit uses imitation learning to initialize the policy network parameters according to the real serialized fitting trajectory; the reinforcement intelligent agent training unit uses the set state, action space and reward function to deeply optimize the policy network, and trains an intelligent agent that can be used to generate a point cloud registration trajectory; the sub-component posture optimization unit optimizes the set energy function, thereby calculating the most likely posture of each sub-component of the object. Technical Effects
[0011] The present invention transforms the 6D posture estimation problem into a partial point cloud registration task, uses a reinforcement learning algorithm to learn a point cloud registration trajectory to describe the process of how to align the source point cloud to the target point cloud; uses the PointNet++ structure to process the point cloud data and extract feature vectors; uses imitation learning to initialize the policy network, and uses the trajectory obtained by sampling real data as an expert demonstration for supervised learning; in the reinforcement training stage, the rotation and translation operations in various directions of the point cloud are used as the action space, and the reward function is set according to the change of the Chamfer distance between the point cloud and the target point cloud at each step; based on the kinematic structure of the joint object, an energy function about the joint state is constructed to optimize the posture of the subcomponent. Compared with the prior art, the present invention significantly improves the performance of joint object posture estimation. The method achieved state-of-the-art performance on the PartNet-Mobility dataset. For some categories (such as ovens and washing machines), it only takes 0.9 seconds of inference time to achieve a rotation estimation error of 1.6°, 2.2°, 0.9°, and 1.1°. It also achieved good results on the ArtImage dataset, where the method only had a rotation error of 2.8° and 3.1° in the laptop category, which was 2.6° and 1.2° higher than the baseline method OMAD. In terms of sub-component pose estimation, the method can achieve 3.6° and 3.5° on two sub-components in the glasses category, which is much better than the OMAD method. This shows that the method can solve the self-occlusion problem in the joint pose estimation task to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flow chart of the present invention;
[0013] Figure 2 It is a schematic diagram of the system of the present invention;
[0014] Figure 3 Schematic diagram for initializing a strategy based on imitation learning;
[0015] Figure 4 Schematic diagram of the action space in the reinforcement learning stage. DETAILED DESCRIPTION
[0016] like Figure 1 As shown, a method for estimating 6D posture of an articulated body based on reinforcement learning involved in this embodiment includes:
[0017] Step 1: Use the PointNet++ structure as a feature extractor to process the point cloud structure input during training and reasoning, that is, convert the point cloud into a 2048-dimensional feature vector for subsequent processing.
[0018] Step 2: Use imitation learning to initialize the policy network, including:
[0019] Step 2.1: Given the source object point cloud P and the target part point cloud P', use the feature extractor in step 1 to convert them into feature vectors, and use a multi-layer fully connected network (MLP) to further convert the two feature vectors into a serialized pose fitting trajectory Tr = {(r1, t1), (r2, t2), ..., (r k ,t k )}, where: R i and t i Represent the 3D rotation and translation of the i-th step respectively. The structure formed by PointNet++ and MLP can be regarded as a shared strategy network in the process of imitation learning and reinforcement learning.
[0020] Step 2.2, using the real 6D posture of the object in the training data, the posture of the object in the standard space, that is, the resting state and the actual posture in the real space as the starting point and end point respectively, and using uniform sampling to generate the real serialized fitting trajectory Tr' = {(r'1, t'1), (r'2, t'2), ..., (r' k ,t' k )}.
[0021] Step 2.3: Use the cross entropy loss function to construct a training loss function L to train the policy network: Where: L r Metric rotation error, L t Measuring translation error, CE represents the cross entropy loss function, λ r and λ t are scaling factors and are set to 0.3 and 0.7, respectively, because the translation fitting strategy is more difficult to converge.
[0022] Step 3: Train a reinforcement learning agent for pose estimation, including:
[0023] Step 3.1: The feature vector converted from the input point cloud by the feature extractor described in step 1 is used as the state S in the reinforcement learning process.
[0024] Step 3.2: Construct the action space A for reinforcement learning, which contains 12 actions, representing positive rotation about the X-axis, negative rotation about the X-axis, positive rotation about the Y-axis, negative rotation about the Y-axis, positive rotation about the Z-axis, negative rotation about the Z-axis, positive translation about the X-axis, negative translation about the X-axis, positive translation about the Y-axis, negative translation about the Y-axis, positive translation about the Z-axis, and negative translation about the Z-axis.
[0025] Step 3.3: Based on the point cloud P currently transformed into the source object point cloud at step i i The Chamfer distance between the target point cloud P' is used to construct the reward function. Among them: η is set to 0.5, S i , S i-1 and S' respectively represent the form of the source point cloud at step i and step i-1 and the corresponding state of the target point cloud. Using the above action space and reward function, a reinforcement learning agent can be trained to generate point cloud registration fitting trajectories, thereby completing the estimation of the object's 6D posture.
[0026] Step 4: Construct and optimize the kinematic energy function of the joint object and calculate the posture of the sub-components, including:
[0027] Step 4.1: For the kth sub-component of the joint object, first initialize the posture of the sub-component with the posture {r0, t0} of the root component.
[0028] Step 4.2: Given the predefined information of the sub-component corresponding to the joint in the source object point cloud {u k ,q k}, construct the energy function of the joint based on the kinematic structure of the input joint object: Where: P k is the source point cloud corresponding to the subcomponent, P' k is the target point cloud corresponding to the subcomponent, N and N' represent P k and P' k The number of points, T is the transformation function defined based on the joint object kinematic chain, T(P k ,u k ,q k ,θ k ) represents the point cloud P k At the joint {u k ,q k The state of} is θ k The point cloud is transformed by time. By optimizing the above energy function, we can get the joint {u k ,q kThe best state of
[0029] Step 4.3: Set the joint status The posture of each subcomponent can be obtained by integrating and converting it into a 6D posture form. k ,t k}.
[0030] After specific practical experiments, for the input point cloud data, PointNet++ is used as the encoder to extract features, and the final layer dimension is set to 2048. The batch size is set to 32, and the model is trained using the Adam stochastic gradient descent optimizer. The state-of-the-art performance is achieved on the PartNet-Mobility dataset, where: for the washing machine category laundry, this method only takes 0.9 seconds of inference time to achieve a rotation estimation error of 0.9° and 1.1°.
[0031] In summary, compared with the prior art, the present invention achieves a lower estimation error in the joint object pose estimation task with an extremely short inference time, and can solve the self-occlusion problem in the joint pose estimation task to a certain extent.
[0032] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.
Claims
1. A 6D pose estimation method for articulated objects based on reinforcement learning, It is characterized in that The 6D pose estimation problem is transformed into a partial point cloud registration task. The point cloud registration trajectory is used as a sample to train the policy network, which is used to align the source point cloud, that is, the complete object in the standard space, to the target point cloud, that is, the partial object observed in the camera space. The trained policy network is then used to generate the state for training the intelligent agent, and the action space and reward function of reinforcement learning are constructed to train the intelligent agent. Finally, the kinematic energy function of the joint object is constructed and optimized to calculate the pose of the sub-component.
2. The method for 6D pose estimation of joint objects based on reinforcement learning according to claim 1, Its characteristics are: The strategy initialization is to construct a PointNet++ structure as a strategy network for imitation learning, process and output a serialized posture fitting trajectory Tr={(r 1 , t 1 ), (r 2 , t 2 ),...,(r k , t k )}, where: R i and t i Represent the 3D rotation and translation of the i-th step respectively.
3. The method for 6D pose estimation of joint objects based on reinforcement learning according to claim 1, Its characteristics are: The strategy network uniformly samples the real serialized fitting trajectory Tr′={(r′ 1 , t′ 1 ), (r′ 2 , t′ 2 ),...,(r′ k , t′ k )}, the cross entropy loss function is used to construct the training loss function L to train the policy network, specifically: Where: L r Metric rotation error, L t Metric translation error, λ r and λ t are scaling factors and are set to 0.3 and 0.7, respectively, because the translation fitting strategy is more difficult to converge.
4. The method for 6D pose estimation of joint objects based on reinforcement learning according to claim 1, Its characteristics are: The reinforcement learning algorithm described contains three major elements: state S, action space A, and reward function R, where: state S is represented by the feature vector output by the last layer of the PointNet++ structure. Given the state S, 12 actions are designed to construct the action space A, where: 6 actions represent rotation operations, namely positive rotation about the X axis, negative rotation about the X axis, positive rotation about the Y axis, negative rotation about the Y axis, positive rotation about the Z axis, and negative rotation about the Z axis. The other 6 actions represent translation operations, namely positive translation about the X axis, negative translation about the X axis, positive translation about the Y axis, negative translation about the Y axis, positive translation about the Z axis, and negative translation about the Z axis. The reward function R is based on the point cloud P to which the source object point cloud is currently transformed at the i-th step. i The Chamfer distance between the target point cloud P′ is designed as follows: Among them: η is set to 0.5, S i , S i-1 and S′ represent the shape of the source point cloud at the i-th step and the i-1-th step and the corresponding state of the target point cloud respectively. Using this method, a reinforcement learning agent can be trained to estimate the posture of the root part of the joint object.
5. The method for 6D pose estimation of joint objects based on reinforcement learning according to claim 1, Its characteristics are: The kinematic energy function is: when estimating the posture of the joint object sub-component, first use the posture of the root component {r 0 ,t 0 Initialize the posture of each sub-component. According to the information of each joint defined in the point cloud of the source object and based on the kinematic structure of the input joint object, construct an energy function about the state of each joint. Optimize the energy function to find the optimal state of the joint. Integrate the states of each joint to get the posture of each sub-component.
6. A system for 6D pose estimation of an articulated object based on reinforcement learning, implementing any of the methods described in claims 1-5, It is characterized in that include: Point cloud feature extraction unit, reinforcement learning strategy initialization unit, reinforcement agent training unit and sub-component posture optimization unit, among which: the point cloud feature extraction unit uses the PointNet++ structure to process the point cloud data of each stage of training to obtain feature vectors that are convenient for subsequent processing; the reinforcement learning strategy initialization unit uses imitation learning to initialize the policy network parameters according to the real serialized fitting trajectory; the reinforcement agent training unit uses the set state, action space and reward function to deeply optimize the policy network, and trains an agent that can be used to generate point cloud registration trajectories; the sub-component posture optimization unit optimizes the set energy function to calculate the most likely posture of each sub-component of the object.
Citation Information
Patent Citations
Video sequence two-dimensional attitude estimation method based on reinforcement learning
CN113205043A
Single-view point cloud three-dimensional human body posture and shape estimation method based on automatic augmentation
CN116740820A
Method for guiding mechanical arm to grab hard disk frame based on depth vision
CN117325170A
Real-time category-level joint body attitude tracking method based on unsupervised key point generation
CN117746499A
