Real-time completion of optical motion capture markers based on time reversal symmetry

By using time reversal symmetry and BiLSTM network in optical motion capture technology, the lost marker point data in the optical motion capture system is completed in real time, which solves the problem of difficulty in processing long-term data loss in the existing technology and achieves high accuracy. and high real-time mark point completion.

CN114299118BActive Publication Date: 2024-09-03BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111659975.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-09-03
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing optical motion capture technology is difficult to complete the long-lost marker point data in real time, especially when the Vicon system can only be processed offline and up to 60 frames are continuously lost, which cannot effectively solve the problem.

Method used

A real-time completion method of optical motion capture marker points based on time inversion symmetry is used to extract sequence features in both directions through time through a bidirectional long short-term memory network (BiLSTM) to complete the lost marker point data in real time and transfer the data from the optical coordinate system Convert to the root node coordinate system and randomly simulate missing data for network training and prediction.

Benefits of technology

It realizes real-time completion of marker points, improves the completion accuracy, and can handle long-term lost data of more than 60 frames, and the processing speed can reach 40 frames/second, with an accuracy within 0.5cm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299118B
    Figure CN114299118B
Patent Text Reader

Abstract

The present invention provides a method for real-time completion of optical motion capture markers based on time reversal symmetry, aiming to use "time reversal symmetry" for marker completion for the first time. According to the symmetric characteristics of motion when flowing forward and backward over time, it is shown that sequence features extracted bidirectionally along time are meaningful for completing lost information. On this basis, the present invention proposes to use a bidirectional long short-term memory network to complete the lost optical motion capture markers in real time. Compared with the offline method of the prior art, the present invention can realize real-time completion of markers, and at the same time can solve the problem that it is difficult to handle long-term lost data in the prior art, and has higher completion accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of optical motion capture, and in particular relates to a real-time completion method for optical motion capture markers based on time reversal symmetry. Background Art

[0002] Optical motion capture based on marker points is a key technology in the process of motion acquisition, analysis and mapping. This technology uses cameras and other devices in space to collect the coordinates of marker point images and reconstruct the spatial position of each marker point, and then calculates the current position and orientation of each bone in the human body based on the three-dimensional position coordinates of the marker point cloud. The spatial environment and the human body's own movements can easily block the marker points, and the resulting loss of marker points may cause the reconstruction of the pose by the marker points to fail. How to complete the marker points when they are lost is an urgent problem to be solved in optical motion capture technology based on marker points.

[0003] Vicon is one of the most commonly used optical motion capture systems in academic research. When the markers are lost, the Vicon system's supporting software Nexus provides a variety of interpolation completion methods, mainly including trajectory-based cubic or quintic spline interpolation (Spline Fill), trajectory interpolation based on one related marker (Pattern Fill) and trajectory interpolation based on three or more related markers (Rigid Body Fill). These methods can reconstruct a smooth motion trajectory.

[0004] The Vicon system can only complete the marker points offline after obtaining a segment of motion capture data. It cannot complete the completion in real time, and can only handle 60 frames of continuous loss at most. Long-term loss cannot be completed.

[0005] This solution uses Kalman filtering, based on constant speed sampling, calculates the speed using historical frames, and then predicts the position of the lost marker in the current frame based on the historical speed. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a real-time completion method for optical motion capture markers based on time reversal symmetry, which can solve the problem of long-term data loss that is difficult to handle in the prior art and has higher completion accuracy.

[0007] A method for real-time completion of optical motion capture markers based on time reversal symmetry, comprising:

[0008] Step 1: Get training data, specifically:

[0009] Obtaining the three-dimensional position coordinates of each existing marker point in multiple consecutive frames in the optical coordinate system as original input data;

[0010] The original input data is converted from the optical coordinate system to the root node coordinate system; the root node coordinate system takes the geometric center of the waist mark point as the origin;

[0011] The coordinates of the marker points in the original input data are randomly set to zero to simulate the loss of marker points and obtain training data;

[0012] Step 2: Input the training data of step 1 into the network structure for network training;

[0013] Step 3: For a real-time acquired action sequence that needs to be supplemented, the coordinates of each marked point are converted to the root node coordinate system, and then input into the network structure trained in step 2 to obtain the action sequence after the position coordinates are supplemented.

[0014] Preferably, the process of establishing the root node coordinate system in step 1 is:

[0015] The normalized vectors of the three coordinate axes x, y, and z of the root node coordinate system are r x ,r y ,r z , use the optimization method to select the line and plane closest to all the marked points on the waist, then the initial values ​​of the direction vector of the line and the normal vector of the plane are defined as r x, and r y, , then the normalized vector of the z-axis is expressed as:

[0016] r z =r x, × y, (1)

[0017] Let r x, The normalized vector r with respect to the coordinate axis z x Consistent, that is, r x =r x, , then: r y =r z × x ;

[0018] The root node coordinate system is thus established.

[0019] Preferably, the method of randomly setting the coordinates of the marking point positions to zero in step 1 is:

[0020] The position matrix of each marker point in the original input data is represented as P raw ∈R f×N , where the number of rows of the position matrix is ​​the number of frames f of the sequence, the number of columns is consistent with the number of markers N, and each element stores the coordinates of the root node coordinate system of each marker point;

[0021] The random zeroing process is as follows: first generate a random number matrix A with the same size as the position matrix, where each element a ij ∈[0,1], set the loss rate to α, if a ij <(1-α), then a ij =1, otherwise a ij = 0, then we get a new matrix A p , then the training data matrix after random zeroing is:

[0022] P miss =A p ·P raw .

[0023] Preferably, the network structure is a BiLSTM, BiRNN or BiGRU network.

[0024] Preferably, the network structure adopts a BiLSTM network, and the loss function Loss adopts a mean square error.

[0025] The present invention has the following beneficial effects:

[0026] The present invention provides a method for real-time completion of optical motion capture markers based on time reversal symmetry, which aims to use "time reversal symmetry" for marker completion for the first time. According to the symmetric characteristics of motion when it flows forward and backward over time, it is shown that the sequence features extracted bidirectionally along time are meaningful for the completion of lost information. On this basis, the present invention proposes to use a bidirectional long short-term memory network to complete the lost optical motion capture markers in real time. Compared with the offline method of the prior art, the present invention can achieve real-time completion of markers, and at the same time can solve the problem of the prior art that it is difficult to handle long-term lost data, and has higher completion accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a flow chart of the method of the present invention;

[0028] Figure 2 A schematic diagram of converting a marking point from an optical coordinate system to a local coordinate system;

[0029] Figure 3 This is the BiLSTM network structure used in the embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0031] Step 1: Data preprocessing

[0032] The main purpose of data preprocessing is to transform the original input data from the optical coordinate system to the root node coordinate system, such as Figure 2As shown, the present invention assumes that the four marking points located at the waist will not be lost, and the position coordinates of the marking points in the optical coordinate system are The origin of the root node coordinate system is the geometric center of the four marking points, that is, the origin is:

[0033] The three coordinate axes of the root node coordinate system are normalized vectors r x ,r y ,r z , use the optimization method to select the line and plane closest to the four marking points on the waist, then the direction vector of the line and the normal vector of the plane are respectively x and r y The initial value r x, and r y, , then the z-axis vector is:

[0034] r z =r x, × y, (1)

[0035] Since the initial r x, and r y, Not necessarily orthogonal, let r x, With coordinate axis r x Consistent, that is, r x =r x, ,but:

[0036] r y =r z × x (2)

[0037] The three-dimensional position coordinates of the marker point with index number i in the root node coordinate system are:

[0038] For training data, after converting the marker points to the local coordinate system, it is also necessary to simulate the loss of marker points by randomly setting the coordinates of the marker points to zero. The position matrix of the complete marker points in an action sequence is denoted as P raw ∈R f×N , where the number of rows of the position matrix is ​​the number of frames f of the sequence, the number of columns is consistent with the number of markers N, and each element stores the coordinates of the root node coordinate system of each marker point;

[0039] The random zeroing process is as follows: first generate a random number matrix A with the same size as the position matrix, where each element a ij ∈[0,1], set the loss rate to α, if a ij <(1-α), then a ij =1, otherwise a ij = 0, then we get a new matrix A p, then the position of the lost mark point is:

[0040] P miss =A p ·P raw (3)

[0041] Step 2: Train the network model

[0042] Input the training data of step 1 into the labeled point completion network, such as Figure 3 As shown in the figure, the network is mainly composed of BiLSTM modules and parameter-sharing fully connected network modules, and BiLSTM is composed of forward and backward propagation LSTM. Among them, the hidden layer size of LSTM is 2048, and the hidden layer size of FC layer depends on the number of marked points. If the number of marked points is m, the hidden layer size of FC layer is 3m, and the loss function Loss is the mean square error. is the position coordinate of the marker point in the tnth frame after data preprocessing, F tn is the feature of the tnth frame, P GLM ∈R n×m×3 is the true value of the position coordinates of the n-frame marker point in the local coordinate system, The coordinates of the marker points completed in the tnth frame.

[0043] Step 3: Network model application

[0044] For a sequence of actions that need to be supplemented in real time, the data is converted into coordinates according to the method in step 1 and input into the trained network model in step 2 to obtain the action sequence after the position coordinates are supplemented.

[0045] The key point of the present invention is to consider the time reversal characteristic constraint of human motion for the first time in the process of marker point completion, that is, if it is reasonable to use the past marker point motion data to predict the current marker point motion state, then it is also reasonable to use the current marker point motion data to predict the past marker point motion state, and the time reversal constraint is realized by using the bidirectional long short-term memory network BiLSTM. All methods that use the time reversal characteristic constraint, that is, extracting sequence bidirectional features to complete marker points are within the protection scope of the present invention, including but not limited to the use of BiLSTM, BiRNN, BiGRU, etc.

[0046] Compared with other methods, the method of the present invention has high real-time performance and a processing speed of 40 frames per second. The present invention can achieve marker point completion with an accuracy within 0.5 cm. When 60 frames are lost continuously, the marker point completion function of the Vicon system supporting software cannot be used, while the present invention can also achieve high-precision marker point completion when more than 60 frames are lost for a long time.

[0047] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for real-time completion of optical motion capture markers based on time reversal symmetry, characterized in that: include: Step 1: Get training data, specifically: Obtaining the three-dimensional position coordinates of each existing marker point in multiple consecutive frames in the optical coordinate system as original input data; The original input data is converted from the optical coordinate system to the root node coordinate system; the root node coordinate system takes the geometric center of the waist mark point as the origin; The coordinates of the marker points in the original input data are randomly set to zero to simulate the loss of marker points and obtain training data; Step 2: Input the training data of step 1 into the network structure for network training; Step 3: For a real-time acquired action sequence that needs to be supplemented, the coordinates of each marked point are converted to the root node coordinate system, and then input into the network structure trained in step 2 to obtain the action sequence after the position coordinates are supplemented.

2. The method for real-time completion of optical motion capture markers based on time reversal symmetry according to claim 1, characterized in that: The process of establishing the root node coordinate system in step 1 is as follows: The normalized vectors of the three coordinate axes x, y, and z of the root node coordinate system are r x ,r y ,r z , use the optimization method to select the line and plane closest to all the marked points on the waist, then the initial values ​​of the direction vector of the line and the normal vector of the plane are defined as r x, and r y, , then the normalized vector of z axis is expressed as: r z =r x, ×r y, (1) Let r x, The normalized vector r with respect to the coordinate axis z x Consistent, that is, r x =r x, , then: r y =r z × x ; The root node coordinate system is thus established.

3. The method for real-time completion of optical motion capture markers based on time reversal symmetry according to claim 1, characterized in that: The method for randomly setting the coordinates of the marking point positions to zero in step 1 is: The position matrix of each marker point in the original input data is represented as P raw ∈R f×N , where the number of rows of the position matrix is ​​the number of frames f of the sequence, the number of columns is consistent with the number of markers N, and each element stores the coordinates of the root node coordinate system of each marker point; The random zeroing process is as follows: first generate a random number matrix A with the same size as the position matrix, where each element a ij ∈[0,1], set the loss rate to α, if a ij <(1-α), then a ij =1, otherwise a ij = 0, then we get a new matrix A p , then the training data matrix after random zeroing is: P miss =A p ·P raw 。 4. The method for real-time completion of optical motion capture markers based on time reversal symmetry according to claim 1, characterized in that: The network structure is a BiLSTM, BiRNN or BiGRU network.

5. The method for real-time completion of optical motion capture markers based on time reversal symmetry according to claim 4, characterized in that: The network structure adopts BiLSTM network, and the loss function Loss adopts mean square error.