Attitude estimation method based on axial compression integral regression

Through the axial compression integral regression method, the problem of feature information loss and quantization error in the heat map supervision method is solved, efficient human posture estimation is achieved, key point coordinates are directly output, and the accuracy of posture estimation and training efficiency are improved.

CN118587773AInactive Publication Date: 2024-09-03ANHUI UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410765757.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing human pose estimation methods based on heat map supervision suffer from loss of feature information and quantization errors, resulting in low accuracy, require additional heat map decoding processes, and lack efficiency.

Method used

The axial compression integral regression method is used to directly output key point coordinates by constructing an axial compression module and an integral offset compensation module to achieve end-to-end training and efficient human posture estimation.

Benefits of technology

It improves the accuracy of human posture estimation, simplifies the training process, reduces quantization errors, enables direct output of key point coordinates without additional heat map decoding, and improves the accuracy and efficiency of estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587773A
    Figure CN118587773A
Patent Text Reader

Abstract

The invention discloses an attitude estimation method based on axial compression integral regression, and the method comprises the following steps: S1, constructing an axial compression integral regression module which comprises an axial compression module and an integral offset compensation module; s2, constructing an attitude estimation network based on axial compression integral regression by using a high-resolution network and an axial compression integral regression module; s3, training an attitude estimation network based on axial compression integral regression by using the public human body attitude data set; and S4, predicting by utilizing the trained human body posture estimation network based on the axial compression integral regression. Compared with the prior art, information loss and quantization errors caused by a method based on heat map supervision are effectively overcome, and the human body posture estimation accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human posture estimation, and in particular to a posture estimation method based on axial compression integral regression, which can be applied to fields such as security detection, health care and motion analysis. Background Art

[0002] Human pose estimation has a wide range of applications in human-computer interaction, motion analysis, medical health monitoring and other fields. Currently, human pose estimation mainly uses two methods: heat map supervision and key point coordinate supervision. The heat map supervision method converts key points into Gaussian kernel feature maps, uses probability distribution to represent the key point positions, and calculates the loss through mean square error. Due to the dense characteristics of the Gaussian kernel, this method provides a good supervision effect, can intuitively display the key point positions and their global connections, and shows good robustness to noise and abnormal situations. However, the heat map supervision method has some defects, such as the key point information may be partially lost during the conversion process, especially for key points at the edge of the image. In addition, due to the downsampling operation, quantization errors are inevitably introduced, affecting the accuracy. Moreover, this method cannot be trained end-to-end because the network outputs heat maps instead of key point coordinates.

[0003] The key point coordinate supervision method directly predicts the coordinate value and calculates the loss with the real coordinate value, avoiding information loss and quantization error. However, due to the discreteness of the coordinates in the image and the influence of complex scenes, noise and abnormal situations during training, it becomes more difficult to accurately predict the coordinates.

[0004] In order to overcome the limitations of the prior art, the present invention proposes a joint training method that combines the advantages of heat map supervision and key point coordinate supervision. The present invention adopts an axial compression integral regression method, which does not require an additional heat map decoding step and can directly output key point coordinates. This method not only improves the accuracy of human posture estimation, but also simplifies the training process and realizes end-to-end training. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] The technical problems to be solved by the present invention are:

[0007] In the pose estimation method based on heat map supervision, due to the feature loss and quantization error caused by heat map conversion, it is impossible to achieve more accurate human pose estimation. In addition, the pose estimation method based on heat map supervision requires an additional heat map decoding process, which makes such methods inefficient.

[0008] (II) Technical solution

[0009] To solve the above problems, the present invention provides a posture estimation method based on axial compression integral regression; the method adopts a joint training method, does not require additional heat map decoding, and directly outputs key point coordinates; it is characterized by comprising the following steps:

[0010] Step S1: constructing an axial compression integral regression module, wherein the axial compression integral regression module includes an axial compression module and an integral offset compensation module;

[0011] Step S2: constructing a posture estimation model based on axial compression integral regression;

[0012] Step S3: using a public human posture dataset to train a posture estimation model based on axial compression integral regression;

[0013] Step S4: Use the trained human posture estimation network based on axial compression integral regression to make predictions.

[0014] Preferably, the step S1 specifically includes:

[0015] Step S11: construct an axial compression module to compress the output feature map of the backbone network and reduce the deviation caused by softmax normalization;

[0016] Preferably, in constructing the axial compression module, due to the phenomenon that the probability difference is weakened due to too many global elements in the feature map, the axial compression module performs compression operations along the x-axis and y-axis of the feature map to obtain compressed vectors sum_x and sum_y, and then normalizes the compressed vectors:

[0017] p x =softmax(sum_x)

[0018] p y =softmax(sum_y)

[0019] Where softmax(·) is the softmax normalization operation, p x and p y is the normalized vector; then for p x Find the expected E x :

[0020]

[0021] Where · is the dot product operator, W is the width of the feature map, and H is the height of the feature map; then x Expectation:

[0022]

[0023] (E x ,Ey ) is the coordinate before offset compensation;

[0024] Step S12: construct an integral offset compensation module to further reduce the key point offset caused by integral regression decoding.

[0025] Preferably, in the integral offset compensation module, the characteristic map is compressed and normalized by the axial compression module to obtain a vector p, and the expectation is solved for the vector to obtain the expectation E; the index of the vector p is divided into two left and right regions Ω1 and Ω2 with the expectation E as the boundary; the formula for solving the expectation can be defined as:

[0026]

[0027] Therefore, after normalization, the value of this area is equal to or close to 1 / C, where C is:

[0028]

[0029] Where γ is the softmax normalized scaling factor, so the expected E0 after offset compensation for E can be derived:

[0030]

[0031] Where h is the length of vector p; E in step S11 x 、E y Perform the above operations separately to obtain the results after offset compensation are the final predicted coordinates.

[0032] Preferably, the step S2 specifically includes:

[0033] Step S21: Use a high-resolution network to construct a backbone network, wherein the backbone network input is an RGB image and the output is a human body key point heat map;

[0034] Step S22: Use the axial compression integral regression module to construct a head network, wherein the head network input is a human body key point heat map, and the output is a key point coordinate vector.

[0035] Preferably, the step S3 specifically includes:

[0036] Step S31: setting network hyperparameters;

[0037] Step S32: performing data enhancement on the public human posture data set, and sending the data to the network for training according to the hyperparameter setting;

[0038] Step S33: Obtain the final network weight.

[0039] Preferably, the step S4 specifically includes:

[0040] Step S41: the network weights obtained in step S3 are imported into the network;

[0041] Step S42: sending the image to be estimated into a posture estimation network based on axial compression integral regression;

[0042] Step S43: Obtain the human body posture estimation result output by the network.

[0043] (III) Beneficial effects

[0044] By using the axial compression integral regression module to reduce the adverse effects of the heat map detection method itself, such as quantization error, the expected calculation with lower deviation can be achieved, and the deviation generated during the expected calculation can be further compensated. A human posture estimation network that can directly output key points without additional heat map decoding is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of a posture estimation method based on axial compression integral regression in the present invention;

[0046] Figure 2 It is a schematic diagram of the principle of the axial compression integral regression module. DETAILED DESCRIPTION

[0047] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention. Note that the description of the following implementation is only an illustration in nature, and the present invention is not limited to the following implementation.

[0048] Example

[0049] like Figure 1 As shown, the posture estimation method based on axial compression integral regression provided by the present invention mainly includes the following four steps:

[0050] Step S1: constructing an axial compression integral regression module, including an axial compression module and an integral offset compensation module;

[0051] Step S2: constructing a posture estimation network based on axial compression integral regression using a high-resolution network and an axial compression integral regression module;

[0052] Step S3: using a public human posture dataset to train a posture estimation network based on axial compression integral regression;

[0053] Step S4: Use the trained human posture estimation network based on axial compression integral regression to make predictions.

[0054] The specific steps are as follows.

[0055] The specific method of step S1 is as follows:

[0056] Step S11: Construct an axial compression module to reduce the bias caused by softmax normalization. Since the size of the feature map output by the network backbone is large, when directly using softmax to normalize the global elements in the feature map, due to the excessive number of feature map elements, the probability distribution in the normalized feature map becomes smoother and the distribution of each element value becomes denser. When calculating the expectation, it highly depends on the global probability, so a bias will be generated, resulting in performance degradation. To alleviate the above problems, as Figure 2 shown, the axial compression module first compresses along the x-axis and y-axis of the feature map respectively:

[0057]

[0058] where \(0\leq i < W\), \(0\leq j < H\), \(W\) is the width of the feature map, and \(H\) is the height of the feature map. Combine \(sum\_x\) i , \(sum\_y\) j into \(sum\_x\) and \(sum\_y\) according to the index values. \(sum\_x\) i \(\in sum\_x\), \(sum\_y\) i \(\in sum\_y\); \(sum\) x , \(sum\) y are the compressed feature vectors. As Figure 2 shown, then perform softmax normalization on the compressed vectors:

[0059] \(p\) x = softmax(sum_x)

[0060] \(p\) y = softmax(sum_y)

[0061] where softmax(·) is the softmax normalization operation, and \(p\) x and \(p\) y are the normalized vectors; then solve the expectations along two different directions. Calculate the expectation \(E\) x for \(p\) x :

[0062]

[0063] Calculate the expectation \(E\) x for \(p\) y :

[0064]

[0065] Step S12: construct an integral offset compensation module to further compensate for the key point offset caused by integral regression; in the construction of the integral offset compensation module, the feature map is compressed and normalized by the axial compression module to obtain the vector p,, and the expectation is solved for the vector to obtain the expectation E; the index of the vector p is divided into two left and right regions Ω1 and Ω2 with the expectation E as the boundary; the formula for the expectation solution can be defined as:

[0066]

[0067] Therefore, after normalization, the value of this area is equal to or close to 1 / C, where C is:

[0068]

[0069] Where γ is the softmax normalized scaling factor, so the expected E0 after offset compensation for E can be derived:

[0070]

[0071] Where h is the length of vector p; E x 、E y Perform the above operations separately to obtain the results after offset compensation are the final predicted coordinates.

[0072] The specific method of step S2: is:

[0073] Step S21: construct a high-resolution backbone network for feature extraction, generate a high-resolution feature map, and effectively fuse context information while maintaining detail information. The backbone network input is the RGB image to be estimated, and the output is a human key point heat map;

[0074] Step S22: Use the axial compression integral regression module to construct a head network, wherein the head network input is a human body key point heat map, and the output is a key point coordinate vector.

[0075] The specific method of step S3:

[0076] Step S31: Set network input size, number of channels, optimizer, weight decay, number of training rounds, number of batches, learning rate and other hyperparameters;

[0077] Step S32: Perform random rotation, random scaling, random horizontal flipping, cropping and other data enhancements on the public human posture dataset, calculate the difference between the forward propagation result and the true annotation through the mean square error loss function, use the optimizer to update the network weights according to the gradient, and send the data to the network for training according to the hyperparameters;

[0078] Step S33: After training, the model will converge to a set of weights that enables the model to achieve optimal performance on a given task, obtain the final weights of the network, and save them.

[0079] The specific method of step S4 is:

[0080] Step S41: the network weights obtained in step S3 are imported into the network;

[0081] Step S42: sending the RGB image to be estimated into a posture estimation network based on axial compression integral regression;

[0082] Step S43: Obtain the human body posture estimation result output by the network.

[0083] The effect of the present invention is further verified by the following experiments:

[0084] The present invention performs model training and testing on the COCO human key point data set. The COCO data set contains more than 200,000 images, covering a variety of scenes, postures and human body parts, making it one of the largest mainstream data sets in the field of human posture estimation. Each image in the data set is annotated with human key points, including head, limbs, torso, etc., a total of 17 key points. COCO provides detailed performance indicators to evaluate the results of the posture estimation model, including key point similarity and average accuracy. The COCO data set is divided into a training set, a validation set and a test set for model training, validation and testing. The training set contains 57,000 pictures, with a total of 17 key points marked. The present invention extracts a single person posture from each picture, generating a total of more than 150,000 single person posture instances. The present invention is evaluated on a validation set, which contains approximately 5,000 pictures. The average accuracy of the method of the present invention in the COCO data set reaches 74.2%, which reveals that the method of the present invention is an effective method for human posture estimation.

Claims

1. The posture estimation method based on axial compression integral regression is characterized in that: The following steps are involved: Step S1: constructing an axial compression integral regression module, wherein the axial compression integral regression module includes an axial compression module and an integral offset compensation module; Step S2: constructing a posture estimation network based on axial compression integral regression; Step S3: using a public human posture dataset to train a posture estimation network based on axial compression integral regression; Step S4: Use the trained human posture estimation network based on axial compression integral regression to make predictions.

2. The posture estimation method based on axial compression integral regression according to claim 1 is characterized in that: The step S2 specifically includes: Step S11: construct an axial compression module to compress the output feature map of the backbone network and reduce the deviation caused by softmax global normalization; Step S12: construct an integral offset compensation module to further compensate for the key point offset caused by integral regression.

3. The posture estimation method based on axial compression integral regression according to claim 2 is characterized in that: In the construction of the axial compression module, the axial compression module is used to compress the feature map output by the backbone network to reduce the deviation caused by softmax normalization; in the construction of the axial compression module, the axial compression module performs compression operations along the x-axis and y-axis of the feature map to obtain compressed vectors sum_x and sum_y, and then normalizes the vector dimension of the compressed vector: p x =softmax(sum_x) <h2 style=";text-align:left;direction:ltr">p<h2 style=";text-align:left;direction:ltr"> y <h2 style=";text-align:left;direction:ltr"> =softmax(sum_y) Where softmax(·) is the softmax normalization operation, p x and p y is a normalized vector; for p x Find the expected E x : Where · is the dot product operator, W is the width of the feature map, and H is the height of the feature map; x Find the expected E y : (E x ,E y ) is the coordinate before offset compensation.

4. The posture estimation method based on axial compression integral regression according to claim 2 is characterized in that: In the construction of the integral offset compensation module, the integral offset compensation module is used to further compensate for the key point offset caused by integral regression; in the construction of the integral offset compensation module, the feature map is compressed and normalized by the axial compression module to obtain the vector p,, and the expectation of the vector is solved to obtain the expectation E; the index of the vector p is divided into two left and right areas Ω1 and Ω2 with the expectation E as the boundary; the formula for the expectation solution can be defined as: Therefore, after normalization, the value of this area is equal to or close to 1 / C, where C is: Where γ is the softmax normalized scaling factor, so the expected value E0 after offset compensation of E can be derived: Where h is the length of vector p; E x 、E y Perform the above operations separately to obtain the results after offset compensation are the final predicted coordinates.

Citation Information

Patent Citations

  • Human body posture estimation method based on heat map gradient constraint

    CN115713784A

  • Quantization error compensation method and system based on key point front-end real-time detection

    CN115880503A

  • Three-dimensional human body posture estimation method for virtual clothing show

    CN116030498A

  • Knowledge distillation-based human body posture estimation method and system

    CN117636403A