IMU (Inertial Measurement Unit) data synthesis method and device for inertial human motion capture
By generating virtual IMU motion trajectories and simulated noise, combined with the Kalman filter algorithm and energy optimization algorithm, the problem of difficulty in simulating the noise distribution of IMU measurement values is solved, and the accuracy and quality of motion capture are improved.
Patent Information
- Application Number
- CN202410531645.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-30
Smart Images

Figure CN118570250A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer graphics, and in particular to an IMU data synthesis method and device for inertial human motion capture. Background Art
[0002] In the field of human motion capture based on inertial sensors, deep learning-based solution design, algorithm verification, system testing and other links all require a large number of paired inertial sensor (IMU) measurements and real human posture data. To collect this data, the human body needs to wear IMU sensors and optical reflective markers, collect a large number of movements in a multi-camera motion capture room, and perform data cleaning, synchronization and posture solution. The operation is very cumbersome, so this data is difficult to obtain.
[0003] Currently, most previous research works first train their models on a large motion capture dataset with synthetic sensor measurements, and then fine-tune the models on a smaller real dataset. These studies synthesize the corresponding IMU measurements, including IMU rotation and acceleration, by directly using a large amount of motion capture data (human posture and motion), and simply assume that the IMU measurement noise conforms to a Gaussian distribution. However, it is not easy to simulate IMU measurements in practice because modeling the real-world noise of IMUs is very difficult. First, different IMU manufacturers may use different firmware algorithms, which will result in different IMU hardware noise models. Second, the rotation output of the IMU is a solution obtained by filtering multiple sensor fusions, so the rotation noise of the IMU is affected by multiple sensors, and its model is very complex and does not conform to a simple Gaussian distribution. Finally, affected by the way the human body wears the IMU, calibration errors will occur when performing sensor-bone calibration, and there may be dynamic errors caused by relative sliding of sensors during movement. Therefore, there is a large difference between the noise distribution of the synthesized IMU measurements in previous works and the noise distribution of the real IMU measurements, which leads to a decrease in the quality of motion capture in the real world. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first objective of the present application is to propose an IMU data synthesis method for inertial human motion capture.
[0006] The second objective of the present application is to propose an IMU data synthesis device for inertial human motion capture.
[0007] The third objective of the present application is to provide an electronic device.
[0008] To achieve the above-mentioned purpose, the first embodiment of the present application proposes an IMU data synthesis method for inertial human motion capture, comprising:
[0009] Generate the six-degree-of-freedom motion trajectory of the virtual inertial sensor IMU based on the human motion capture data;
[0010] Based on the virtual hardware simulation of the IMU, the six-degree-of-freedom motion trajectory is used as input to simulate the measurement data of the IMU, wherein the measurement data includes acceleration, angular velocity and magnetic field measurement values;
[0011] Perform attitude calculation based on the simulated measurement data of the IMU to obtain the orientation of the IMU;
[0012] Simulating the error generated during the inertial sensor-bone calibration process, integrating the error into the orientation of the IMU, and obtaining synthetic IMU data;
[0013] The synthesized IMU data is post-processed to obtain target IMU data, wherein the post-processing step includes coordinate system transformation and unit transformation.
[0014] Optionally, generating a six-degree-of-freedom motion trajectory of a virtual inertial sensor IMU according to human motion capture data includes:
[0015]
[0016] R WS =R WB R BS δR BS
[0017] in, The six-degree-of-freedom motion trajectory represents the position and direction of the inertial sensor. R and p represent the rotation direction and position of the inertial sensor, respectively. The subscript W represents the world coordinate system of the motion capture data, the subscript S represents the coordinate system of the inertial sensor, the subscript B represents the coordinate system of the human skeleton, and δp BS is the sliding error caused by the small translation of the inertial sensor, which is modeled as a random walk noise, δR BS The rotation error caused by a small rotation of the inertial sensor is modeled as a random walk error.
[0018] Optionally, the virtual hardware simulation of the IMU includes virtual accelerometer simulation, virtual gyroscope simulation and virtual magnetometer simulation, and the virtual hardware simulation based on the IMU takes the six-degree-of-freedom motion trajectory as input to simulate the measurement data of the IMU, including:
[0019] Based on the virtual accelerometer simulation, the acceleration of the IMU is simulated with the six-degree-of-freedom motion trajectory as input;
[0020] Based on the virtual gyroscope simulation, the angular velocity of the IMU is simulated with the six-degree-of-freedom motion trajectory as input;
[0021] Based on the virtual magnetometer simulation, the magnetic field of the IMU is simulated with the six-degree-of-freedom motion trajectory as input.
[0022] Optionally, the simulating based on the virtual accelerometer, taking the six-degree-of-freedom motion trajectory as input, simulating the acceleration of the IMU includes:
[0023] A new acceleration synthesis algorithm based on energy optimization is constructed to simulate the acceleration of the IMU, and the expression is:
[0024]
[0025]
[0026] where i∈{1,2,···,m-1} is the original frame label in the m-frame sequence, j∈{1,2,3} represents the upsampled local timestamp between two original frames, v ij and a ij are the global position, velocity and acceleration of the IMU at frame i or frame ij, Δt is the timestamp interval after upsampling, and λ p , v and λ a is the energy term coefficient, prev To retrieve the value of the previous timestamp.
[0027] Optionally, the simulating the angular velocity of the IMU based on the virtual gyroscope simulation and taking the six-degree-of-freedom motion trajectory as input includes:
[0028] A new angular velocity synthesis algorithm based on energy optimization is constructed to simulate the angular velocity of the IMU, and the expression is:
[0029]
[0030] in, and ω ij are the direction and local angular velocity of the IMU at frame i and frame ij, respectively, Log:SO(3)→R 3 Represents the mapping of rotation from Lie group to vector space, Exp:R 3 →SO(3) represents the mapping of rotation from vector space to Lie group, λ R and λ ω are two weight terms.
[0031] Optionally, simulating the magnetic field of the IMU based on the virtual magnetometer simulation and taking the six-degree-of-freedom motion trajectory as input includes:
[0032] Assuming the x-axis is the north direction, transform it to the inertial sensor coordinate system to obtain the magnetic field for each frame.
[0033] Optionally, performing attitude calculation according to the simulated measurement data of the IMU to obtain the orientation of the IMU includes:
[0034] The measurement noise of the sampled accelerometer, gyroscope and magnetometer is added to the measurement data of the IMU to obtain the measurement data after adding the measurement noise. The expression is:
[0035]
[0036]
[0037]
[0038] in, They represent the acceleration, angular velocity and magnetic field of the IMU with added measurement noise, respectively, and b a ,b ω ,b m are the bias noise of the accelerometer, gyroscope and magnetometer, respectively, and n a ,n ω ,n m are the additive white noise of the accelerometer, gyroscope, and magnetometer, respectively;
[0039] Based on the measurement data after adding measurement noise, the error state Kalman filter sensor fusion algorithm is used to solve the rotation of the inertial sensor. In the solution process, the optimal static hypothesis test (technique) is used to detect the static state of the IMU, and the zero-speed correction algorithm is run when static is detected.
[0040] Optionally, the error generated during the simulation of the inertial sensor-bone calibration is integrated into the orientation of the IMU to obtain synthetic IMU data, including:
[0041]
[0042] Among them, R IS Indicates the direction of the IMU in the IMU world coordinate system, R BS represents the placement direction of each inertial sensor relative to the body, R IW Indicates the rotation direction of the IMU global coordinate system relative to the world coordinate system of motion capture, T represents the transpose of the matrix, R WBRepresents the actual bone orientation, that is, the orientation of the bone in the world coordinate system of motion capture.
[0043] To achieve the above-mentioned purpose, the second embodiment of the present application proposes an IMU data synthesis device for inertial human motion capture, comprising:
[0044] The freedom trajectory generation module is used to generate the six-degree-of-freedom motion trajectory of the virtual inertial sensor IMU based on the human motion capture data;
[0045] An IMU virtual hardware simulation module, used for virtual hardware simulation based on the IMU, taking the six-degree-of-freedom motion trajectory as input, simulating the measurement data of the IMU, wherein the measurement data includes acceleration, angular velocity and magnetic field measurement values;
[0046] An IMU attitude calculation module is used to perform attitude calculation based on the simulated measurement data of the IMU to obtain the orientation of the IMU;
[0047] An IMU-skeleton calibration error modeling module is used to simulate the error generated during the inertial sensor-skeleton calibration process, and integrate the error into the orientation of the IMU to obtain synthetic IMU data;
[0048] The IMU data post-processing module is used to post-process the synthesized IMU data to obtain target IMU data, wherein the post-processing steps include coordinate system transformation and unit transformation.
[0049] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0050] The memory stores computer-executable instructions;
[0051] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects above.
[0052] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0053] By directly synthesizing the original IMU signal from the existing large amount of motion capture data, and obtaining the final motion measurement through the sensor fusion algorithm; by utilizing the hardware-level noise model and using a set of specific IMU noise parameters to generate a signal that is more similar to the actual use case of the IMU, users can synthesize measurement values that conform to the hardware noise distribution of their own IMU, thereby effectively improving the motion capture accuracy for this specific IMU; by simulating the calibration error introduced by the inertial sensor-bone calibration step in inertial motion capture, the motion capture error can be significantly reduced in real-world use.
[0054] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0056] Figure 1 It is a text flow chart of an IMU data synthesis method for inertial human motion capture according to an embodiment of the present application;
[0057] Figure 2 is an image flow chart of an IMU data synthesis method for inertial human motion capture according to an embodiment of the present application;
[0058] Figure 3 It is a block diagram of an IMU data synthesis device for inertial human motion capture according to an embodiment of the present application;
[0059] Figure 4 It is a block diagram of an electronic device. DETAILED DESCRIPTION
[0060] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0061] The following describes an IMU data synthesis method and device for inertial human motion capture according to an embodiment of the present application with reference to the accompanying drawings.
[0062] First, we define the coordinate system symbols used in this article. The world coordinate system of the motion capture data is represented by W; in other words, all poses and translations in the motion capture data are represented by the W coordinate system. The coordinate system of the IMU sensor is represented by S, which is the coordinate system fixed to the IMU device. The world coordinate system of the IMU is represented by I, which is a coordinate system specified by the sensor manufacturer to represent the orientation of the sensor in the global coordinate system; in other words, the output direction of the IMU is the direction relative to the coordinate system I, represented by R IS Finally, the coordinate system of the human skeleton is defined as B, which is a coordinate system fixed on the human skeleton segment.
[0063] Figure 1 and Figure 2They are respectively a text flow chart and an image flow chart of an IMU data synthesis method for inertial human motion capture according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0064] Step 101: Generate a six-degree-of-freedom motion trajectory of a virtual inertial sensor IMU according to human motion capture data.
[0065] The human motion capture data used in this application can be obtained from open source data sets or websites, and this application will not explain it in detail here.
[0066] When the human body posture and motion in the existing large amount of motion capture data are used as input to obtain the six-degree-of-freedom motion trajectory of the virtual inertial sensor IMU, the motion capture data sequence can be used to drive the SMPL human body model to obtain the vertex coordinates of the human body mesh model. For each IMU sensor, an approximate vertex is selected on the human body mesh as its installation position, and its position and direction are as follows:
[0067] p WS =p WB +R WB p BS
[0068] R WS =R WB R BS
[0069] Among them, {p WS ,R WS} represents the six-degree-of-freedom motion trajectory of the inertial sensor position and orientation under ideal conditions.
[0070] However, this formula is an ideal case. In actual capture, the sensor cannot be accurately installed on the specified vertex, but will move slightly around the installation point to produce installation errors, including small translations and small rotations. These installation errors are modeled as separate random walk noises.
[0071] In one embodiment of the present application, taking these factors into consideration, the actual calculation method of the six-degree-of-freedom motion trajectory of the position and direction of the inertial sensor IMU is:
[0072]
[0073] R WS =R WB R BS δR BS
[0074] in, The six-degree-of-freedom motion trajectory represents the position and direction of the inertial sensor in the actual scene. R and p represent the rotation direction and position of the inertial sensor respectively. The subscript W represents the world coordinate system of the motion capture data, the subscript S represents the coordinate system of the inertial sensor, the subscript B represents the coordinate system of the human skeleton, and δp BS is the sliding error caused by the small translation of the inertial sensor, which is modeled as a random walk noise, δR BS The rotation error caused by a small rotation of the inertial sensor is modeled as a random walk error.
[0075] In a possible embodiment, the sliding error δp BS It is modeled as a random walk noise with an initial error expectation of 10 -2 m, and 10 -3 The speed of walking is m / s; the rotation error δR BS It is modeled as a random walk error with an initial error of 0 and a -2 The movement speed is r radians / second.
[0076] It is understandable that the specific value of the installation error is set based on actual observations.
[0077] Step 102, based on the virtual hardware simulation of the IMU, the six-degree-of-freedom motion trajectory is used as input to simulate the measurement data of the IMU, where the measurement data includes acceleration, angular velocity and magnetic field measurement values.
[0078] It should be noted that the IMU's orientation readings are not directly measured by the hardware, but are calculated from other underlying signals using the manufacturer's algorithm. Although previous research works directly synthesized orientation measurements, doing so failed to model IMU-specific rotational noise. The present invention proposes to simulate the IMU raw signals, including acceleration, angular velocity, and magnetic field measurements, and run the IMU fusion filtering algorithm to obtain orientation measurements. This simulation method allows the present application to simulate and integrate real-world noise with a mathematical basis. In the following content, the method of generating the above-mentioned underlying signals is described in detail. These signals are based on the six-degree-of-freedom trajectory synthesized in the previous step.
[0079] Specifically, the virtual hardware simulation of the IMU includes virtual accelerometer simulation, virtual gyroscope simulation and virtual magnetometer simulation. The virtual hardware simulation based on the IMU takes the six-degree-of-freedom motion trajectory as input and simulates the steps of measuring the IMU data, including: based on the virtual accelerometer simulation, taking the six-degree-of-freedom motion trajectory as input, simulating the acceleration of the IMU; based on the virtual gyroscope simulation, taking the six-degree-of-freedom motion trajectory as input, simulating the angular velocity of the IMU; based on the virtual magnetometer simulation, taking the six-degree-of-freedom motion trajectory as input, simulating the magnetic field of the IMU.
[0080] (1) Based on the virtual accelerometer simulation, the acceleration of the IMU is simulated with the six-degree-of-freedom motion trajectory as input.
[0081] It should be noted that since the operating frequency of the accelerometer in the IMU sensor is higher than most motion capture data (such as 60 frames / second), this application synthesizes acceleration at three times the frame rate (180 frames / second) to simulate the behavior of the real sensor. In this case, the finite difference method is not applicable because it cannot maintain global smoothness. This application further designs a new acceleration synthesis algorithm based on energy optimization to simulate the acceleration of the IMU, and the expression is:
[0082]
[0083]
[0084] where i∈{1,2,···,m-1} is the original frame label in the m-frame sequence, j∈{1,2,3} represents the upsampled local timestamp between two original frames, v ij and a ij are the global position, velocity, and acceleration of the IMU at frame i or frame ij, respectively, and the reference frame subscript is omitted (v WS ) ij and (a WS ) ij , the purpose is to simplify the formula, Δt is the timestamp interval after upsampling, λ p , v and λ a is the energy term coefficient, prev To retrieve the value of the previous timestamp.
[0085] It is understandable that this energy optimization aims to find a high frame rate acceleration sequence that can best replicate the original low frame rate IMU trajectory (corresponding to the first and second terms in the new acceleration synthesis algorithm formula) and has the smallest rate of change (corresponding to the last term in the new acceleration synthesis algorithm formula). This is because past studies have shown that human motion generally has a small rate of change in acceleration.
[0086] In a possible embodiment, take λ p =1,λ v =0.5,λ a =1.3.
[0087] (2) Based on the virtual gyroscope simulation, the angular velocity of the IMU is simulated with the six-degree-of-freedom motion trajectory as input.
[0088] Similar to the virtual accelerometer simulation, this application constructs a new angular velocity synthesis algorithm based on energy optimization to simulate the local angular velocity of the synthetic gyroscope. The algorithm expression is:
[0089]
[0090] in, and ω ij are the direction and local angular velocity of the IMU at frame i and frame ij, respectively, Log:SO(3)→R 3 Represents the mapping of rotation from Lie group to vector space, Exp:R 3 →SO(3) represents the mapping of rotation from vector space to Lie group, λ R and λ ω are two weight terms.
[0091] It can be understood that this energy optimization aims to find a high frame rate local angular velocity sequence that can best replicate the low frame rate IMU direction (corresponding to the first item in the new angular velocity synthesis algorithm formula) and has the smallest rate of change (corresponding to the last item in the new angular velocity synthesis algorithm formula).
[0092] In one possible embodiment, the weight term λ R =1,λ ω =1.
[0093] (3) Based on the virtual magnetometer simulation, the magnetic field of the IMU is simulated with the six-degree-of-freedom motion trajectory as input.
[0094] It should be noted that a real magnetometer usually runs at the same frame rate (60 frames per second) as the motion capture data of this application, so no upsampling is required.
[0095] As a possible implementation, assume that the x-axis is the north direction and transform it to the sensor coordinate system to obtain the magnetic field for each frame.
[0096] Step 103, performing attitude calculation based on the measurement data of the simulated IMU to obtain the orientation of the IMU.
[0097] In an embodiment of the present application, the orientation of the inertial sensor is estimated by fusing synthetic accelerometer, gyroscope and magnetometer measurements.
[0098] As a possible implementation method, the measurement noise of the accelerometer, gyroscope and magnetometer is regarded as a sensor bias term and additive white noise, which are modeled by random walk noise and Gaussian white noise respectively. This application obtains the measurement data after adding the measurement noise by sampling these noises and adding them to the measurement data of the IMU. The expression is:
[0099]
[0100]
[0101]
[0102] in, They represent the acceleration, angular velocity and magnetic field of the IMU with added measurement noise, respectively, and b a ,b ω ,b m are the bias noise of the accelerometer, gyroscope and magnetometer, i.e., random walk noise, n a ,n ω ,n m They are the additive white noise of the accelerometer, gyroscope and magnetometer, namely Gaussian white noise. In the implementation, the sensor noise parameters are determined according to the hardware parameters given by the sensor manufacturer.
[0103] Then, the Error-State Kalman Filter (ESKF) sensor fusion algorithm is used to solve the rotation of the inertial sensor. In addition, the Stance Hypothesis Optimal Detection (SHOE) technology is used to detect the IMU's stationary state during the solution process. When stationary state is detected, the Zero-Velocity Update (ZUPT) algorithm is run to improve the accuracy of the IMU attitude solution.
[0104] Finally, after inertial sensor fusion, the direction R of the IMU in the world coordinate system is obtained. IS , expressed as:
[0105]
[0106] Among them, ESKF() represents Kalman filter.
[0107] Step 104, simulating the error generated during the inertial sensor-skeleton calibration process, integrating the error into the orientation of the IMU, and obtaining synthetic IMU data.
[0108] In the embodiment of the present application, it is necessary to set the simulated IMU direction R IS Convert to actual bone direction R WB , the algorithm is:
[0109]
[0110] For synthetic data, the two matrices R BS With R IW is unknown, R IS Indicates the direction of the IMU in the IMU world coordinate system, RBS represents the placement direction of each inertial sensor relative to the body, R IW Indicates the rotation direction of the IMU global coordinate system relative to the world coordinate system of motion capture, T represents the transpose of the matrix, R WB Represents the actual bone orientation, that is, the orientation of the bone in the world coordinate system of motion capture.
[0111] For real data, in practice, these two matrices are usually determined by fixed-action calibration, such as T-pose calibration, where the subject stands in a known T-pose and then estimates the two matrices. However, since the subject cannot perfectly present a T-pose, there will be errors in the calibration step. Therefore, during data synthesis in the embodiment of the present application, by adding the two matrices R before calculation IW and R BS Random noise is applied to model this calibration error.
[0112] In one possible embodiment, the disturbance R IW and R BS The average values are 0.01 and 0.1 radians respectively.
[0113] Step 105, post-processing the synthesized IMU data to obtain target IMU data, wherein the post-processing step includes coordinate system transformation and unit transformation.
[0114] In this embodiment, the synthesized IMU data is further processed to ensure that the data meets actual needs, and the processing process involves coordinate system transformation and unit transformation.
[0115] In one embodiment of the present application, according to the R set in the aforementioned calibration error modeling step IW and R BS The perturbation parameters may require converting the sensor orientation in the synthesized IMU data from the IMU world coordinate system to the orientation of the skeleton in the world coordinate system, which involves rotating and transforming the orientation vector.
[0116] In another embodiment of the present application, the units of the measured values such as acceleration, angular velocity and magnetic field strength are ensured to meet the actual requirements. It may be necessary to convert some measured values from specific units to standard units so that they can be more easily compared and analyzed with other data.
[0117] It can be understood that through these post-processing steps, it can be ensured that the final data quality meets the needs of actual use, while taking into account the influence of calibration errors and other factors, making the synthesized IMU data more real and reliable.
[0118] Figure 3 1 is a block diagram of an IMU data synthesis device 10 for inertial human motion capture according to an embodiment of the present application, comprising:
[0119] The freedom trajectory generation module 100 is used to generate a six-degree-of-freedom motion trajectory of a virtual inertial sensor IMU according to human motion capture data;
[0120] An IMU virtual hardware simulation module 200 is used for virtual hardware simulation based on the IMU, taking the six-degree-of-freedom motion trajectory as input to simulate the measurement data of the IMU, where the measurement data includes acceleration, angular velocity and magnetic field measurement values;
[0121] The IMU attitude calculation module 300 is used to calculate the attitude according to the measurement data of the simulated IMU to obtain the orientation of the IMU;
[0122] An IMU-skeleton calibration error modeling module 400 is used to simulate the error generated during the inertial sensor-skeleton calibration process, integrate the error into the orientation of the IMU, and obtain synthetic IMU data;
[0123] The IMU data post-processing module 500 is used to post-process the synthesized IMU data to obtain target IMU data, wherein the post-processing step includes coordinate system transformation and unit transformation.
[0124] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0125] Figure 4 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0126] like Figure 4 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0127] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0128] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the voice instruction response method. For example, in some embodiments, the voice instruction response method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the voice instruction response method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the voice instruction response method in any other appropriate manner (e.g., by means of firmware).
[0129] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0130] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0131] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0133] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0136] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An IMU data synthesis method for inertial human motion capture, characterized in that: include: Generate the six-degree-of-freedom motion trajectory of the virtual inertial sensor IMU based on the human motion capture data; Based on the virtual hardware simulation of the IMU, the six-degree-of-freedom motion trajectory is used as input to simulate the measurement data of the IMU, wherein the measurement data includes acceleration, angular velocity and magnetic field measurement values; Perform attitude calculation based on the simulated measurement data of the IMU to obtain the orientation of the IMU; Simulating the error generated during the inertial sensor-bone calibration process, integrating the error into the orientation of the IMU, and obtaining synthetic IMU data; The synthesized IMU data is post-processed to obtain target IMU data, wherein the post-processing step includes coordinate system transformation and unit transformation.
2. The method according to claim 1, characterized in that The method of generating a six-degree-of-freedom motion trajectory of a virtual inertial sensor IMU according to human motion capture data includes: R WS =R WB R BS δR BS in, The six-degree-of-freedom motion trajectory represents the position and direction of the inertial sensor. R and p represent the rotation direction and position of the inertial sensor, respectively. The subscript W represents the world coordinate system of the motion capture data, the subscript S represents the coordinate system of the inertial sensor, the subscript B represents the coordinate system of the human skeleton, and δp BS is the sliding error caused by the small translation of the inertial sensor, which is modeled as a random walk noise, δR BS The rotation error caused by a small rotation of the inertial sensor is modeled as a random walk error.
3. The method according to claim 2, characterized in that The virtual hardware simulation of the IMU includes virtual accelerometer simulation, virtual gyroscope simulation and virtual magnetometer simulation. The virtual hardware simulation based on the IMU takes the six-degree-of-freedom motion trajectory as input to simulate the measurement data of the IMU, including: Based on the virtual accelerometer simulation, the acceleration of the IMU is simulated with the six-degree-of-freedom motion trajectory as input; Based on the virtual gyroscope simulation, the angular velocity of the IMU is simulated with the six-degree-of-freedom motion trajectory as input; Based on the virtual magnetometer simulation, the magnetic field of the IMU is simulated with the six-degree-of-freedom motion trajectory as input.
4. The method according to claim 3, characterized in that The simulation based on the virtual accelerometer, taking the six-degree-of-freedom motion trajectory as input, simulating the acceleration of the IMU, includes: A new acceleration synthesis algorithm based on energy optimization is constructed to simulate the acceleration of the IMU, and the expression is: where i∈{1,2,···,m-1} is the original frame label in the m-frame sequence, j∈{1,2,3} represents the upsampled local timestamp between two original frames, v ij and a ij are the global position, velocity and acceleration of the IMU at frame i or frame ij, Δt is the timestamp interval after upsampling, and λ p , v and λ a is the energy term coefficient, prev To retrieve the value of the previous timestamp.
5. The method according to claim 4, characterized in that The method of simulating the angular velocity of the IMU based on the virtual gyroscope simulation and taking the six-degree-of-freedom motion trajectory as input includes: A new angular velocity synthesis algorithm based on energy optimization is constructed to simulate the angular velocity of the IMU, and the expression is: in, and ω ij are the direction and local angular velocity of the IMU at frame i and frame ij, respectively, Log:SO(3)→R 3 Represents the mapping of rotation from Lie group to vector space, Exp:R 3 →SO(3) represents the mapping of rotation from vector space to Lie group, λ R and λ ω are two weight terms.
6. The method according to claim 5, characterized in that The method of simulating the magnetic field of the IMU based on the virtual magnetometer simulation and taking the six-degree-of-freedom motion trajectory as input includes: Assuming the x-axis is the north direction, transform it to the inertial sensor coordinate system to obtain the magnetic field for each frame.
7. The method according to claim 6, characterized in that The performing attitude calculation according to the simulated measurement data of the IMU to obtain the orientation of the IMU includes: The measurement noise of the sampled accelerometer, gyroscope and magnetometer is added to the measurement data of the IMU to obtain the measurement data after adding the measurement noise. The expression is: in, They represent the acceleration, angular velocity and magnetic field of the IMU with added measurement noise, respectively, and b a ,b ω ,b m are the bias noise of the accelerometer, gyroscope and magnetometer, respectively, and n a ,n ω ,n m are the additive white noise of the accelerometer, gyroscope, and magnetometer, respectively; Based on the measurement data after adding measurement noise, the error state Kalman filter sensor fusion algorithm is used to solve the rotation of the inertial sensor. In the solution process, the optimal stationary hypothesis test technology is used to detect the stationary state of the IMU, and the zero-speed correction algorithm is run when stationary state is detected.
8. The method according to claim 7, characterized in that The error generated in the simulated inertial sensor-bone calibration process is integrated into the orientation of the IMU to obtain synthetic IMU data, including: Among them, R IS Indicates the direction of the IMU in the IMU world coordinate system, R BS represents the placement direction of each inertial sensor relative to the body, R IW Indicates the rotation direction of the IMU global coordinate system relative to the world coordinate system of motion capture, T represents the transpose of the matrix, R WB Represents the actual bone orientation, that is, the orientation of the bone in the world coordinate system of motion capture.
9. An IMU data synthesis device for inertial human motion capture, characterized in that: include: The freedom trajectory generation module is used to generate the six-degree-of-freedom motion trajectory of the virtual inertial sensor IMU based on the human motion capture data; An IMU virtual hardware simulation module, used for virtual hardware simulation based on the IMU, taking the six-degree-of-freedom motion trajectory as input, simulating the measurement data of the IMU, wherein the measurement data includes acceleration, angular velocity and magnetic field measurement values; An IMU attitude calculation module is used to perform attitude calculation based on the simulated measurement data of the IMU to obtain the orientation of the IMU; An IMU-skeleton calibration error modeling module is used to simulate the error generated during the inertial sensor-skeleton calibration process, and integrate the error into the orientation of the IMU to obtain synthetic IMU data; The IMU data post-processing module is used to post-process the synthesized IMU data to obtain target IMU data, wherein the post-processing steps include coordinate system transformation and unit transformation.
10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
