Underwater three-dimensional human body posture estimation method and device based on video
Through the video-based underwater three-dimensional human posture estimation method, the video frame sequence and WM-VAE network eliminate the influence of water surface refraction, combined with SMPL parameters and attitude encoder, high-accurate underwater posture estimation is achieved, solving the existing solutions The error problem of underwater human posture estimation in the technology provides realistic motion reconstruction results.
Patent Information
- Application Number
- CN202411069820.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing underwater human posture estimation method based on monocular pictures has a large gap between the parameter results and the real human posture due to water surface refraction and reflection problems, and it is impossible to realize high-fidelity human movement reconstruction.
Using video-based underwater three-dimensional human posture estimation method, by obtaining video frame sequences, extracting high-dimensional feature information and performing feature fusion, using WM-VAE network to eliminate the refractive influence, combining SMPL parameters and attitude encoder for attitude decoding, and multiple calculations The final result of the loss function optimization.
A three-dimensional human posture estimation with high accuracy in underwater motion scenarios is achieved, overcoming the challenges of water occlusion and low image quality, providing realistic underwater human motion reconstruction results, suitable for the problem of scarcity of underwater motion data sets.
Smart Images

Figure CN118968623A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology and proposes a method and device for estimating underwater three-dimensional human posture based on video. Background Art
[0002] Early human motion pose estimation methods used stereo vision to reconstruct human geometric motion. They relied on dense pair-view data, consumed a lot of computational load, and generally faced low robustness. After the SMPL statistical human model was proposed, many single-view estimation methods emerged. Among them, the representative SMPLify network uses a 2D pose convolutional network to estimate human key points and perform gradient-based optimization, so that the model better fits the observed image data. In order to solve the occlusion problem of the human body in the image, the PARE network supervises 49 masks of body parts through partial segmentation, and uses an attention mechanism to utilize useful information from the body and surrounding pixels to obtain more accurate results.
[0003] Although the monocular human pose estimation algorithm has made considerable progress, the images obtained in underwater environments currently face refraction and reflection problems caused by the water surface. These problems will significantly cause the parameter results obtained by the existing SMPL parameter regressor based on monocular images to be significantly different from the actual human pose, resulting in an unbelievable effect and failing to achieve the goal of high-fidelity human motion reconstruction. Summary of the invention
[0004] The present invention aims to address the deficiencies in the prior art and to propose a method and device for underwater three-dimensional human posture estimation based on video.
[0005] The objective of the present invention is achieved through the following technical solutions: In a first aspect, the present invention provides a method for estimating underwater three-dimensional human posture based on video, the method comprising the following steps:
[0006] (1) Obtain a video frame sequence of underwater human motion and perform SMPL parameter estimation on the underwater human posture;
[0007] (2) obtaining prior information of human underwater motion, processing underwater human motion images in both air and water through an image encoder, extracting high-dimensional feature information, performing feature fusion with the SMPL parameters of the underwater human posture obtained in step (1), inputting the information into the posture encoder, and relearning and adjusting the posture features in the latent space;
[0008] (3) The posture decoder decodes the new human posture parameters from the latent space to obtain the estimated underwater 3D human posture.
[0009] Furthermore, in step (1), the body part attention corresponding to the 2D heat map is calculated and used as the weight of the 3D feature map to regress the final SMPL model and estimate the SMPL pose parameters.
[0010] Furthermore, in step (2), the underwater human motion image includes the part of the human body in the air and the part in the water. The image encoder extracts high-dimensional feature information, distinguishes the water part affected by refraction and the air part not affected by refraction at the feature level, and generates a more useful feature representation for eliminating the refraction effect in the subsequent decoding stage.
[0011] Furthermore, in step (2), an inner product operation is performed on the image feature vector from which the high-dimensional feature information is extracted and the estimated SMPL attitude parameter to obtain a new vector after feature fusion, which is input into the attitude encoder.
[0012] Furthermore, in step (3), the high-level feature representation learned by the posture encoder is used to distinguish the water part affected by refraction and the air part not affected by refraction in the human posture. The posture decoder corrects the estimation error caused by refraction and reflection on the water surface and decodes new human posture parameters from the latent space.
[0013] Furthermore, in step (1), the reprojection supervision error of the SMPL parameters is calculated based on the 2D key points used as supervision; the change in the length of the human skeleton is calculated based on the SMPL parameters, the change rate between the 2D key points is measured to calculate the human posture speed, and the smoothness error in the video frame sequence is calculated based on the skeleton length and the posture speed; in step (3), the mean square error between the human posture parameters obtained by the posture decoder and the estimated SMPL posture parameters is calculated to obtain the prior loss of the SMPL parameters; the final loss function is obtained by combining the reprojection supervision error, smoothness error and prior loss.
[0014] In a second aspect, the present invention also provides a video-based underwater three-dimensional human posture estimation device, comprising a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, the video-based underwater three-dimensional human posture estimation method is implemented.
[0015] In a third aspect, the present invention further provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the video-based underwater three-dimensional human posture estimation method.
[0016] In a fourth aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the video-based underwater three-dimensional human posture estimation method.
[0017] Beneficial effects of the present invention:
[0018] 1. For underwater human motion scenes, realistic underwater human motion reconstruction is achieved through monocular RGB sequences. To a certain extent, the challenges brought by water occlusion and low image quality are overcome, thereby greatly improving the accuracy of underwater 3D human posture estimation.
[0019] 2. In order to solve the estimation error problem caused by refraction and reflection on the water surface, the WM-VAE network is designed to constrain the estimated motion parameters. In addition, the network can quickly and massively generate underwater human motion parameters, and can be used to produce simulation data sets, solving the problem of scarcity of underwater human motion data sets.
[0020] 3. Through high-precision underwater human motion reconstruction as the observation result, it provides visual motion trajectories for underwater professional athletes or coaches, helping them to better standardize or learn underwater sports movements. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A flowchart of a video-based underwater three-dimensional human posture estimation method provided by the present invention;
[0023] Figure 2 A schematic diagram of an underwater human motion generation module provided by the present invention;
[0024] Figure 3 Schematic diagram of underwater human body posture estimation results in an embodiment of the present invention;
[0025] Figure 4 This is a schematic diagram of the visualization results obtained by the present invention;
[0026] Figure 5 A schematic structural diagram of a video-based underwater three-dimensional human posture estimation device provided by the present invention. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0029] like Figure 1 As shown in the figure, the present invention proposes a video-based underwater 3D human posture estimation method. For underwater human motion scenes, realistic underwater human motion reconstruction is achieved through a monocular RGB sequence. To a certain extent, the challenges brought by water occlusion and poor image quality are overcome. At the same time, in underwater motion scenes, the actual position of the human body will be inconsistent with the observed position in the image due to the refraction of water. This problem affects the results obtained by the ordinary SMPL regressor based on the image, resulting in inaccurate results.
[0030] The overall execution process of the method of the present invention includes two main stages: preprocessing stage and optimization stage. The preprocessing stage calculates the initial human SMPL parameters and 2D key point coordinates. The details are as follows:
[0031] Initial SMPL parameter estimation: PARE is selected as the single-frame SMPL model regressor. The regressor regresses the final SMPL model by computing the body part attention corresponding to the 2D heat map and using it as the weight of the 3D feature map. When some body parts are occluded, the network can implicitly eliminate their contribution to the final result. The advantage of PARE is particularly significant due to the prevalence of partial occlusions in underwater scenes. When using a weak perspective camera model, the regressed SMPL model can be expressed as Θ = {θ, β, R, t}, where θ represents the pose, β represents the shape, and R and t are the rotation and translation matrices, respectively.
[0032] 2D key point detection: Use the pre-trained YOLO detector to extract the bounding box of the human body in each frame. Then select HRNet as the backbone network for human key point detection. HRNet can maintain the high-resolution features of the image during inference, thereby providing more accurate and complete location information. This feature is crucial to solving the problem of low-quality images caused by dynamic blur and water splash occlusion in underwater motion scenes. The predicted 2D key points are represented as a set of x i ∈R 2×K , where i represents the i-th 2D keypoint.
[0033] In the optimization phase, the SMPL action parameters are optimized to solve problems in underwater scenes such as occlusion and reflection, and obtain more accurate results. The details are as follows:
[0034] Human underwater motion data is usually accompanied by problems such as water wave occlusion, water surface reflection and refraction. The human motion in each frame of video is distorted by refraction to a certain extent, and the influence of occlusion can easily lead to unreasonable results in SMPL parameter estimation. At this stage, an underwater human motion generation module WM-VAE is proposed. By learning a low-dimensional latent space suitable for underwater motion scenes, different latent vectors correspond to different human postures. This module aims to understand and represent the latent space of human postures, thereby generating realistic posture samples, while providing continuous posture operation and control; it can quickly generate a large amount of high-quality underwater human motion data to provide data support for related tasks. The solution of incorporating the prior information of underwater motion into the final reconstruction result in the underwater human motion generation module can effectively avoid unreasonable output results caused by problems such as water wave occlusion, water surface reflection and refraction. Three losses are used in each step of optimization to further enhance the robustness of inferred human motion.
[0035] Prior supervision of underwater motion: In underwater human motion scenes, part of the human body is usually in the air, while the lower half is underwater. The actual position of the captured image, especially the lower half, will be inconsistent with the observed position in the image due to the refraction of water. This problem makes the results of the ordinary SMPL regressor based on the image inaccurate due to the influence of refraction.
[0036] like Figure 2 As shown in the figure, the underwater human motion generation module network utilizes a variational autoencoder (VAE) framework including an encoder and a decoder. The image encoder first processes the input underwater human motion image and extracts its high-dimensional feature information. Since the human body in the picture is in two media, air and water, the encoder can learn to distinguish the part affected by refraction (lower body) and the unaffected part (upper body) at the feature level, thereby generating a more useful feature representation. The feature vector passed by the encoder contains the distinguishing information between the air part and the underwater part. It is used to eliminate the refraction effect in the subsequent decoding stage. In addition, the noise introduced by the underwater environment can also be reduced.
[0037] The SMPL motion parameters obtained by the pre-trained regressor do not correct the refraction error. The feature vector of the image is inner-producted with the posture parameters obtained by the SMPL regressor to obtain a new vector after feature fusion, which is then input into the posture encoder.
[0038] The pose encoder further encodes the preliminary SMPL parameters into a compact latent representation. The purpose of this step is to relearn and adjust the pose features in the latent space. Through the high-level feature representation learned by the pose encoder, the network can better distinguish the parts of the human body pose that are affected by refraction and those that are not affected.
[0039] The posture decoder decodes new human posture parameters from the latent space. This process uses the high-level feature representation learned by the posture encoder to correct the estimation error caused by water surface refraction and reflection, making the final result more accurate.
[0040] When training the WM-VAE network, only human underwater motion datasets (such as SwimXYZ, CMU-MocapSub125, 126) are used for training. The image encoder part uses ResNet as the network skeleton, and the data size of the output result is consistent with the SMPL regressor.
[0041] The initial posture parameter θ of the SMPL model and the human underwater motion feature vector after the image encoder are used as the input of WM-VAE to obtain a more reasonable posture Then, by calculating θ and The mean square error (MSE) between is used to obtain the prior loss of the initial SMPL parameters. The formula is as follows, where i represents the number of video frames:
[0042]
[0043] Calculate the reprojection supervision error. The 2D key points predicted in the preprocessing stage will be used as supervision to calculate the reprojection loss error of the SMPL parameters, which is calculated as follows:
[0044]
[0045] Among them, x i ∈R 2×K represents the pixel coordinates of the i-th predicted 2D key point, represents the pixel coordinates of the i-th 2D keypoint reprojected from the SMPL model Θ. For a given Θ, the pixel coordinates of the reprojected 2D keypoint can be calculated as follows, where represents the video frame space rotation matrix, t represents the video frame space translation vector, represents the joint regression matrix of the three-dimensional key points of the human SMPL model, and Π represents the orthogonal projection calculation:
[0046]
[0047] Computing the predicted smoothness supervision error: The smoothness error in a sequence of video frames consists of two components: skeleton length and pose velocity. Skeleton length is calculated by evaluating the change in skeleton length between the current frame and the previous frame, using SMPL parameters. Skeleton length should remain constant during human motion. Pose velocity is calculated by measuring the rate of change between key points as an indicator of the degree of pose change. Smaller velocity values indicate smoother pose transitions.
[0048] By optimizing the motion smoothness loss, more accurate and stable results can be obtained. The calculation formula of the smoothness error is as follows, where L represents the skeleton length, V represents the speed of the key points of the human body, and θ t Represents the action parameter part of the human SMPL in the tth video frame.
[0049]
[0050] Optimization of human SMPL parameters: The shape parameter β is calculated by taking the average value of the corresponding parameters of each frame in the entire underwater motion sequence. The posture parameter θ in all frames is reasonably optimized by optimizing the above three loss functions. These three loss functions are assigned reasonable weights to obtain the final loss function, as shown below, where λ1, λ2, and λ3 represent the weights of their terms:
[0051] L tota; =λ1L prior +λ2L reproj +λ3L smooth
[0052] Ultimately, the pose estimation problem is to minimize the loss function and gradually approach the optimal solution through an iterative optimization process. In SwimXYZ, the visualization results obtained by the invented algorithm are as follows Figure 4 As shown in Figure 2, the gradient descent method is used in the optimization process. When the change of θ before and after the iteration is less than the preset threshold, the optimization iteration stops and this is taken as the final result.
[0053] After the underwater human motion generation module is trained, the new human SMPL obtained after randomizing the latent space vector is as follows: Figure 3 As shown, it can be seen that most of them are human swimming movements.
[0054] Corresponding to the aforementioned embodiment of a video-based underwater three-dimensional human posture estimation method, the present invention also provides an embodiment of a video-based underwater three-dimensional human posture estimation device.
[0055] See also Figure 5 An embodiment of the present invention provides a video-based underwater three-dimensional human posture estimation device, which includes a memory and one or more processors. The memory stores executable code. When the processor executes the executable code, it is used to implement a video-based underwater three-dimensional human posture estimation method in the above embodiment.
[0056] An embodiment of a video-based underwater three-dimensional human posture estimation device provided by the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located reading the corresponding computer program instructions in the non-volatile memory into the internal memory for execution. From a hardware perspective, if Figure 5 As shown in FIG. 1 , a hardware structure diagram of a video-based underwater three-dimensional human posture estimation device provided by the present invention is provided in any device with data processing capability, except Figure 5 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the apparatus in the embodiments is located may also include other hardware, generally based on the actual functions of the device with data processing capabilities, which will not be described in detail.
[0057] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0058] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.
[0059] An embodiment of the present invention further provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a video-based underwater three-dimensional human posture estimation method in the above embodiment is implemented.
[0060] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.
[0061] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the video-based underwater three-dimensional human posture estimation method is implemented.
[0062] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0063] The above is only a preferred embodiment of the present invention. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A video-based underwater three-dimensional human posture estimation method, characterized in that: The method comprises the following steps: (1) Obtain a video frame sequence of underwater human motion and perform SMPL parameter estimation on the underwater human posture; (2) obtaining prior information of human underwater motion, processing underwater human motion images in both air and water through an image encoder, extracting high-dimensional feature information, performing feature fusion with the SMPL parameters of the underwater human posture obtained in step (1), inputting the information into the posture encoder, and relearning and adjusting the posture features in the latent space; (3) The posture decoder decodes the new human posture parameters from the latent space to obtain the estimated underwater 3D human posture.
2. The video-based underwater 3D human posture estimation method according to claim 1, characterized in that: In step (1), the body part attention corresponding to the 2D heat map is calculated and used as the weight of the 3D feature map to regress the final SMPL model and estimate the SMPL pose parameters.
3. The video-based underwater 3D human posture estimation method according to claim 1, characterized in that: In step (2), the underwater human motion image contains the part of the human body in the air and the part in the water. The image encoder extracts high-dimensional feature information, distinguishes the water part affected by refraction and the air part that is not affected at the feature level, and generates a more useful feature representation for eliminating the refraction effect in the subsequent decoding stage.
4. The video-based underwater 3D human posture estimation method according to claim 1, characterized in that: In step (2), the inner product operation is performed on the image feature vector with the extracted high-dimensional feature information and the estimated SMPL posture parameter to obtain a new vector after feature fusion, which is input into the posture encoder.
5. The video-based underwater 3D human posture estimation method according to claim 1, characterized in that: In step (3), the high-level feature representation learned by the posture encoder is used to distinguish the water part affected by refraction and the air part that is not affected in the human posture. The posture decoder corrects the estimation error caused by water surface refraction and reflection, and decodes new human posture parameters from the latent space.
6. The video-based underwater 3D human posture estimation method according to claim 1, characterized in that: In step (1), the reprojection supervision error of the SMPL parameters is calculated based on the 2D key points used as supervision; the change in the length of the human skeleton is calculated based on the SMPL parameters, the change rate between the 2D key points is measured to calculate the human posture speed, and the smoothness error in the video frame sequence is calculated based on the skeleton length and the posture speed; in step (3), the mean square error between the human posture parameters obtained by the posture decoder and the estimated SMPL posture parameters is calculated to obtain the prior loss of the SMPL parameters; the final loss function is obtained by combining the reprojection supervision error, smoothness error and prior loss.
7. A video-based underwater three-dimensional human posture estimation device, comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the processor executes the executable code, a video-based underwater three-dimensional human posture estimation method as described in any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, a video-based underwater three-dimensional human posture estimation method as described in any one of claims 1 to 6 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements a video-based underwater three-dimensional human posture estimation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Motion capture method based on asynchronous video
CN112183184A
Real-time robust two-stage attitude estimation method
CN114842389A
Video human body posture estimation method and device
CN115909483A
Monocular video human motion generation method based on cross-modal alignment
CN118334735A
Three-dimensional human pose estimation method and related apparatus
US20220415076A1
