A self-constrained optimization method and system for human posture estimation
Through the self-constrained optimization human posture estimation method, combined with the self-supervised loss of the main network and the dual network, the problem of low accuracy and poor robustness of joint point coordinates in the existing technology is solved, and the accuracy and adaptability of posture recognition are improved.
Patent Information
- Application Number
- CN202210587013.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-27
AI Technical Summary
The accuracy of joint point coordinates or heat maps of existing human posture estimation methods is not high enough, especially at the end positions, which are easily affected by occlusion and noise, and have poor robustness.
The self-constrained optimization human pose estimation method is used to obtain the heat map of human joint points, group them into basic joint points and end joint points, jointly train the main network and dual network, and use self-supervised loss to perform posture prediction and local refinement to improve posture. Recognition accuracy and robustness.
It improves the accuracy of human joint point prediction and its adaptability to different scenarios, enhances the accuracy and robustness of posture recognition, and especially optimizes the low-confidence areas of end joint points.
Smart Images

Figure CN115116128B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of posture estimation, and in particular to a method and system for self-constrained optimization of human body posture estimation. Background Art
[0002] Human posture estimation technology is crucial for describing human motion trajectories and predicting human behavior. This technology is used to locate the motion trajectories of joint points that describe the positions of human joints and record their motion data, realize 3D animation simulation of human motion to produce movies and television, and analyze human motion through the recorded human motion trajectories and data, which is applied to human motion classification, detection of abnormal human behavior, and the field of autonomous driving.
[0003] At present, multi-person human pose estimation methods are divided into two categories according to the different detection processes, namely, top-down methods and bottom-up methods. The top-down method first detects the human target and then crops the image according to the target bounding box, inputs the cropped image into the single-person pose estimation system to obtain the final result; the bottom-up method directly detects all the human joints in the image, clusters the human joints according to the target person, and finally connects the human joints. The top-down method relies on the performance of the human detector and is more suitable for situations where human targets are sparse and has a higher recognition rate. The bottom-up method has better robustness, but the method is more complicated and is mainly suitable for situations where human targets are dense.
[0004] However, the accuracy of the joint point coordinates or heat maps directly fitted by the existing model is still not high enough, especially the joint points at the end position are very easy to be missing or blurred due to occlusion between people or between people and background. In addition, the model of the existing method has poor robustness and is very susceptible to noise.
[0005] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a self-constrained optimization method and system for human posture estimation in response to the above-mentioned defects of the prior art, aiming to solve the problem that the accuracy of the joint point coordinates or heat map directly fitted by the model of the existing method is still not high enough, and the model robustness of the existing method is poor.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0008] In a first aspect, the present invention provides a method for self-constrained optimization of human body posture estimation, wherein the method comprises:
[0009] Acquire a human joint point heat map, and determine the human joint points corresponding to a single human body based on the human joint point heat map;
[0010] The human joints are grouped, and basic joints and terminal joints are determined among the human joints, wherein the basic joints are human joints around the body trunk, and the terminal joints are human joints at the end or tip of a body part;
[0011] Jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtaining posture prediction results corresponding to the basic joint points and the terminal joint points respectively;
[0012] The trained dual network is used to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results.
[0013] In one implementation, obtaining a human joint point heat map and determining a human joint point corresponding to a single human body based on the human joint point heat map includes:
[0014] Acquire an image data set, and detect the image data set based on a preset human posture estimation model to obtain a human joint point heat map of a single human body;
[0015] According to the human joint point heat map, the human joint points of a single human body are determined, wherein the human joint points are 17.
[0016] In one implementation, grouping the human body joints and determining basic joints and terminal joints among the human body joints includes:
[0017] Based on the human skeleton structure, the human joints are grouped to obtain a plurality of structure groups, each of which includes a plurality of human joints;
[0018] Based on the plurality of structure groups, basic joint points and terminal joint points among the human body joint points are determined.
[0019] In one implementation, the human body joints are grouped based on the human body skeleton structure to obtain a plurality of structure groups, including:
[0020] Based on the human skeleton structure, determine the lower limbs, upper limbs and head among the body parts;
[0021] The human joints are divided into lower limbs, upper limbs and head to obtain structural groups corresponding to the lower limbs, upper limbs and head, wherein the lower limbs, upper limbs and head are each provided with two structural groups, and each structural group includes four human joints.
[0022] In one implementation, the jointly training a main network and a dual network symmetrical to the main network includes:
[0023] Input several human joint point heat maps and the feature maps corresponding to the human joint points into the main network to obtain the predicted heat map of the terminal joint points;
[0024] Inputting the predicted heat map of the terminal joint point, the heat maps of several human joint points and the feature map into the dual network to obtain the predicted heat map of the basic joint point, wherein the terminal joint point and the basic joint point belong to the same structural group;
[0025] Compare the predicted heat map of the base joint point with the true heat map and define the self-supervised loss of the main network;
[0026] The main network is trained based on the prediction loss and the self-supervision loss.
[0027] In one implementation, the jointly training a main network and a dual network symmetrical to the main network includes:
[0028] For the dual network, several human joint heat maps and feature maps are input to obtain the predicted heat map of the basic joints;
[0029] An overall loss function of the dual network is defined, and the main network and the dual network are jointly trained based on the overall loss function.
[0030] In one implementation, the using the trained dual network to locally refine the posture prediction result corresponding to the terminal joint point to obtain the final prediction result includes:
[0031] Adding perturbation data to the posture prediction result corresponding to the terminal joint point, and performing local search to minimize the self-supervision loss;
[0032] The posture prediction result corresponding to the terminal joint point with the smallest self-supervision loss is selected as the final prediction result of the terminal joint point.
[0033] In a second aspect, an embodiment of the present invention further provides a human body posture estimation system for self-constrained optimization, wherein the system comprises:
[0034] A human joint point determination module, used to obtain a human joint point heat map, and determine the human joint points corresponding to a single human body based on the human joint point heat map;
[0035] A human body key grouping module, used for grouping the human body joints and determining basic joints and terminal joints among the human body joints, wherein the basic joints are human body joints around the body trunk, and the terminal joints are human body joints located at the end or tip of a body part;
[0036] A network joint training module, used for jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtaining posture prediction results corresponding to the basic joint points and the terminal joint points respectively;
[0037] The posture estimation optimization module uses the trained dual network to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results.
[0038] In the third aspect, an embodiment of the present invention also provides a terminal device, which includes a memory, a processor, and a self-constrained optimized human body posture estimation program stored in the memory and executable on the processor. When the processor executes the self-constrained optimized human body posture estimation program, it implements the steps of the self-constrained optimized human body posture estimation method as described in any one of the above-mentioned schemes.
[0039] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a self-constrained optimized human body posture estimation program is stored. When the self-constrained optimized human body posture estimation program is executed by a processor, the steps of the self-constrained optimized human body posture estimation method as in any one of the above-mentioned schemes are implemented.
[0040] Beneficial effects: Compared with the prior art, the present invention provides a self-constrained optimization method for estimating human posture, which obtains a heat map of human joints and determines the human joints corresponding to a single human body based on the heat map of human joints. Then, the human joints are grouped, and the basic joints and terminal joints among the human joints are determined, wherein the basic joints are the human joints around the body trunk, and the terminal joints are the human joints located at the end or tip of a body part. Next, the main network and the dual network symmetrical to the main network are jointly trained, and the posture prediction of the basic joints and the terminal joints is performed based on the trained main network, and the posture prediction results corresponding to the basic joints and the terminal joints are obtained respectively, and the trained dual network is used to locally refine the posture prediction results corresponding to the terminal joints to obtain the final prediction results. The present invention uses a main network and a dual network to describe the correlation of the human skeleton structure based on self-supervised constraints, and can also optimize the terminal joints with low confidence, thereby improving the accuracy and robustness of posture recognition, and greatly improving the accuracy of human joint prediction and the adaptability to different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flowchart of a specific implementation of the method for self-constrained optimization of human posture estimation provided by an embodiment of the present invention.
[0042] Figure 2 A schematic diagram of a heat map of human joint points in a human posture estimation method with self-constrained optimization provided in an embodiment of the present invention.
[0043] Figure 3 A schematic diagram of grouping human joint points in the self-constrained optimization human posture estimation method provided in an embodiment of the present invention.
[0044] Figure 4 A schematic diagram of the principle between the main network and the dual network in the self-constrained optimization human posture estimation method provided in an embodiment of the present invention.
[0045] Figure 5 An algorithm framework of a human body posture estimation method with self-constrained optimization provided in an embodiment of the present invention.
[0046] Figure 6 A principle block diagram of a human body posture estimation system with self-constrained optimization provided by an embodiment of the present invention.
[0047] Figure 7 A functional block diagram of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] In the multi-person human pose estimation task, pose estimation remains very challenging for complex situations with mutual occlusion between people, large appearance variations, and cluttered backgrounds. In complex scenes, the pose estimation performance of different joints shows great variation, and the results are quite accurate and reliable for those visible joints that are hardly disturbed by other people or background. However, for joints at the end positions of some body parts, i.e., end joints, it is very challenging to achieve accurate pose estimation. The low precision of these challenging end joints will degrade the overall pose estimation performance.
[0050] Although there are some human posture estimation methods in the prior art, the accuracy of the joint point coordinates or heat maps directly fitted by the model of the prior method is still not high enough, especially the joint points at the end position are very easy to be blocked by people and people and the background, resulting in missing and blurring. In addition, the model robustness of the existing method is poor and is very susceptible to noise. For example, in the human posture estimation method in the prior art, a single depth image containing a human body is used as input data, and the depth image is combined with superpixel segmentation to extract human posture features, and the features are used to segment the human body parts, and the segmented parts are clustered, and sparse regression is used to estimate the position of the human skeleton points. However, this method is based on the depth image and requires a special depth camera as an image acquisition device, which is costly and has low accuracy. At the same time, this method can only complete the human posture estimation of a single person, so this method has certain difficulties in actual promotion. Alternatively, the prior art can also use a deep learning model to extract features, and at the same time, the human body is divided into multiple combined components in combination with a graph structure model to complete the human posture estimation. However, this method has the problem that when the human body area in the image data is incomplete or partially occluded, it is impossible to define the components according to the predetermined graph structure model, and the method will fail. In addition, the experiment of this method on the LSP dataset only contains 2,000 images, which is far behind the currently disclosed large-scale human posture recognition dataset in terms of sample size, and the test results are not convincing. Furthermore, in some existing technologies, the human skeleton structure can be used as a guide to combine the structure-guided convolutional neural network and the fused convolutional neural network to complete the detection of human joints and give the human posture recognition results. However, this method has the defect that the human joints in the image do not conform to the skeleton structure distribution, and the method will fail when the human body is occluded in the image.
[0051] Based on the problems existing in the above-mentioned prior art, this embodiment provides a human posture estimation method with self-constraint optimization. In specific implementation, this embodiment first obtains a human joint point heat map, and determines the human joint points corresponding to a single human body based on the human joint point heat map. Then, the human joint points are grouped, and the basic joint points and the terminal joint points in the human joint points are determined, wherein the basic joint points are the human joint points around the body trunk, and the terminal joint points are the human joint points located at the end or tip of the body part. Next, the main network and the dual network symmetrical to the main network are jointly trained, and the posture prediction of the basic joint points and the terminal joint points is performed based on the trained main network, and the posture prediction results corresponding to the basic joint points and the terminal joint points are obtained respectively. Finally, the trained dual network is used to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results. It can be seen that the present invention uses the main network and the dual network to describe the correlation of the human skeleton structure based on self-supervised constraints, and can also optimize the terminal joint points with low confidence, thereby improving the accuracy and robustness of posture recognition.
[0052] Exemplary Methods
[0053] The human body posture estimation method of the self-constrained optimization in this embodiment can be applied to a terminal device, which can be a computer, a mobile phone or a specific human body posture estimation device. Figure 1 As shown in , the human body posture estimation method of self-constrained optimization in this embodiment includes the following steps:
[0054] Step S100: obtaining a human joint point heat map, and determining the human joint points corresponding to a single human body based on the human joint point heat map.
[0055] In this embodiment, a heat map of human joints is first obtained. The heat map of human joints is as follows: Figure 2 As shown in Figures A and B in , the human joint point heat map reflects the thermal images of different parts of the human body. Based on the human joint point heat map, the human joint points corresponding to a single human body can be determined. The human joint points reflect the implicit information contained in the human skeleton. Therefore, when realizing human posture estimation, the analysis is based on the human joint points and the posture estimation is realized.
[0056] In one implementation, when determining the joint points of a human body, this embodiment includes the following steps:
[0057] Step S101, obtaining an image data set, and detecting the image data set based on a preset human posture estimation model to obtain a human joint point heat map of a single human body;
[0058] Step S102: determining the human joints of a single human body according to the human joint heat map, wherein the human joints are 17 in number.
[0059] Specifically, this embodiment first collects an image data set, which includes multiple images. These images can be collected based on different moments of the same scene or based on different scenes. After obtaining the image data set, this embodiment detects the images in the image data set based on a preset human posture estimation model to obtain a heat map of human joints of a single human body in each image, such as Figure 2 As shown in . Since there may be multiple human bodies in an image in the image dataset, when analyzing the heat map of human joints corresponding to a single human body, the image can be cropped first. The cropping method is based on the number of human bodies to obtain an image of a single human body. Of course, in practical applications, there may be multiple human bodies in an image, and there may be overlapping areas among the multiple human bodies, or when the human body area is incomplete or partially blocked, the overlapping human bodies can also be cropped first to facilitate the subsequent analysis of the human joints of a single human body.
[0060] After obtaining a heat map of human joints of a single human body based on the image data set, this embodiment determines the human joints of a single human body based on the heat map of human joints. There are 17 joints of a single human body in this embodiment. Since the accuracy of basic joints is generally high in human posture estimation (i.e., human joint detection), but the detection error of terminal joints is large, this is the core difficulty of human joint prediction. To this end, after obtaining the human joints of a single human body, this embodiment groups the human joints and determines the basic joints and terminal joints among the human joints. Specifically, this embodiment can group the human joints based on the human skeleton structure to obtain several structural groups, each of which includes several human joints. In specific applications, the lower limbs, upper limbs and head of the body parts can be determined based on the human skeleton structure, and then the human joints are divided according to the lower limbs, upper limbs and head to obtain the structural groups corresponding to the lower limbs, upper limbs and head, wherein the lower limbs, upper limbs and head are each provided with two structural groups, and each structural group includes four human joints, such as Figure 3 as shown in .
[0061] Step S200, grouping the human joints, and determining basic joints and terminal joints among the human joints, wherein the basic joints are human joints around the body trunk, and the terminal joints are human joints at the end or tip of a body part.
[0062] After the human joints are grouped, the present embodiment can determine the basic joints and the terminal joints from the human joints. Since the human joints are grouped based on the human skeleton structure, the human joints around the body trunk and the human joints at the terminal or tip of the body parts can be found from the human joints. The human joints around the body trunk are the basic joints, and the human joints at the terminal or tip of the body parts are the terminal joints.
[0063] Step S300, jointly train a main network and a dual network symmetrical to the main network, perform posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtain posture prediction results corresponding to the basic joint points and the terminal joint points respectively.
[0064] Since the simple forward main network prediction cannot fully learn the correlation of the human skeleton structure and cannot evaluate whether the prediction result of the main network is accurate during the prediction process, this embodiment innovatively introduces the main network-dual network. Use the information A of the basic joint points to predict the position of the end joint points ; The dual network uses the information of the terminal joints In turn, predict the location of the basic joint points ,like Figure 4 As shown. Predict the position of the end joint The fundamental difficulty in the process is that we cannot know the predicted results. Is it accurate, because the true value of the end joint point is unknown However, if the end joint The prediction result is accurate, using the dual network When this prediction result is used to reversely predict the basic joint point, the predicted result It will match the original basic joint point information A. On the contrary, if the end joint point The prediction results are inaccurate. The matching error with the original basic joint point information A will be relatively large. Therefore, in this embodiment, the matching error is used to form the self-supervised constraint distance The above self-supervisory constraints are used to train the main network prediction model. At the same time, in the actual prediction process, the self-constraints are used to dynamically adjust and optimize the prediction results of the terminal joints. Specifically, search for better results in the surrounding area of the predicted structure Minimize the self-supervised constraint distance: .
[0065] In specific applications, this embodiment reversely trains a dual network that is symmetrical to the main network. Through joint training, the main network can be constrained to learn more detailed skeleton structure relationships between human joints. Specifically, Figure 5 As shown, in this embodiment, several human joint point heat maps (such as heat maps ) and the feature maps corresponding to the human joints Input into the main network to obtain the predicted heat map of the end joint points, that is, the human body joint points The prediction heat map of In the training phase, the predicted heat map of the terminal joint point is compared with the labeled data Compare and define the prediction loss of the main network , is given by: .
[0066] In this embodiment, the prediction heat map With heatmap and And feature map Combined, it can be passed as input to the dual network . The output will be the human joint points The prediction heat map of express.
[0067] Next, this embodiment converts the predicted heat map of the terminal joint point ( ) is compared with the true heatmap and the following self-supervised loss is defined for the main network:
[0068] .
[0069] The prediction loss is combined with the self-supervision loss as Used to train the main network .
[0070] Similarly, for the dual network, input several human joint point heat maps (such as heat map ) and feature maps , get the predicted heat map of the basic joint points (i.e. the human joint points Heatmap ), then combine and feature map Forming a prediction heatmap The main network Input.
[0071] Therefore, the overall loss function of the dual network is given by
[0072] .
[0073] Based on the overall loss function, the primary network and the dual network are jointly trained in an iterative manner.
[0074] Specifically, in this embodiment, during the training period of the main network, the dual network is fixed and used to calculate the self-supervised loss of the main network. Similarly, during the training period of the dual network, the main network is fixed and used to calculate the self-supervised loss of the dual network. The training processes of the main network and the dual network are both self-supervised and guided, and the joint training using forward and backward losses provides extremely strong constraints, allowing the main network and the dual network to better learn the skeletal structure information between the joints of the human body. In this way, by performing posture prediction on the basic joints and the terminal joints based on the trained main network, the posture prediction results corresponding to the basic joints and the terminal joints can be obtained respectively.
[0075] Step S400: Use the trained dual network to locally refine the posture prediction result corresponding to the terminal joint point to obtain a final prediction result.
[0076] One of the main challenges of human pose estimation is to reduce the loss of low-confidence joints. In existing prediction methods, the reasoning process is purely forward. That is, the knowledge learned from the training set is directly applied to the test set. Since it is impossible to obtain the true heat map of the joints of the test samples, there is no effective mechanism to verify whether the prediction results are accurate. This forward reasoning process often encounters generalization problems because there is no feedback process to adjust the prediction results according to the actual test samples. The dual network Once successfully learned, it can be used as a validation module to evaluate the accuracy of the prediction results. This is done by replacing the prediction results of low-confidence joints (end joints) with Mapping back to high confidence joints (basic joints) Using self-supervised loss as the objective function, the prediction results Perform a local search to minimize the objective function. The basic idea here is: if the prediction result becomes accurate during the local search process, then, given it as input, the dual network should be able to accurately predict high-confidence joint points , which means that the high confidence joint point Self-supervised loss on should be small. Therefore, this embodiment performs local search and refinement on low-confidence joint points (i.e., end joint points). Specifically, this embodiment predicts the results Add a small perturbation data And search its small neighborhood to minimize the self-supervision loss, and select the one with the smallest self-supervision loss through multiple iterations (i.e. the posture prediction result corresponding to the terminal joint point) is used as the final prediction result of the terminal joint point, that is, the posture coordinates are obtained.
[0077] The components of this embodiment use the implicit information contained in the human skeleton to classify and combine human joints, and design a main network to use high-confidence point heat maps (basic joint heat maps) to further optimize low-confidence joint heat maps. Since the simple forward main network prediction cannot completely learn the correlation of the human skeleton structure and cannot evaluate whether the prediction results of the main network are accurate during the prediction process, this embodiment reversely trains a dual network that is symmetrical to the main network. Through joint training, not only can the main network be constrained to learn more detailed skeleton structure relationships between human joints, but the evaluation method established by the dual network can also be used to further locally refine the posture prediction results in the reasoning stage, and the low-confidence joints at the end of the human body are greatly optimized, thereby improving the accuracy and robustness of posture recognition, and greatly improving the accuracy of human joint prediction and the adaptability to different scenarios.
[0078] Exemplary Systems
[0079] Based on the above embodiments, the present invention also provides a human body posture estimation system with self-constrained optimization, such as Figure 6 As shown, the system includes: a human joint determination module 10, a human key grouping module 20, a network joint training module 30 and a posture estimation optimization module 40. Specifically, the human joint determination module 10 is used to obtain a human joint heat map, and determine the human joints corresponding to a single human body based on the human joint heat map. The human key grouping module 20 is used to group the human joints and determine the basic joints and terminal joints among the human joints, wherein the basic joints are the human joints around the body trunk, and the terminal joints are the human joints located at the end or tip of the body part. The network joint training module 30 is used to jointly train the main network and the dual network symmetrical to the main network, perform posture prediction on the basic joints and the terminal joints based on the trained main network, and obtain the posture prediction results corresponding to the basic joints and the terminal joints respectively. The posture estimation optimization module 30 is used to use the trained dual network to locally refine the posture prediction results corresponding to the terminal joints to obtain the final prediction results.
[0080] In one implementation, the human body joint point determination module 10 includes:
[0081] A heat map acquisition unit, used to acquire an image data set, and detect the image data set based on a preset human posture estimation model to obtain a heat map of human joints of a single human body;
[0082] The joint point determination unit is used to determine the human joint points of a single human body according to the human joint point heat map, wherein the human joint points are 17.
[0083] In one implementation, the human body key grouping module 20 includes:
[0084] A grouping unit, used for grouping the human joints based on the human skeleton structure to obtain a plurality of structure groups, each of which includes a plurality of the human joints;
[0085] The classification unit is used to determine the basic joint points and the terminal joint points among the human body joint points based on the plurality of structure groups.
[0086] In one implementation, the grouping unit includes:
[0087] A body part determination subunit, used to determine the lower limbs, upper limbs and head among the body parts based on the human skeleton structure;
[0088] The joint point division subunit is used to divide the human body joint points into lower limbs, upper limbs and head to obtain structural groups corresponding to the lower limbs, upper limbs and head, wherein the lower limbs, upper limbs and head are each provided with two structural groups, and each structural group includes four human body joint points.
[0089] In one implementation, the network joint training module 30 includes:
[0090] The heat map input main network unit is used to input several heat maps of human joints and feature maps corresponding to human joints into the main network to obtain the predicted heat map of the terminal joints;
[0091] A prediction loss definition unit, used to compare the prediction heat map of the terminal joint point with the labeled data and define the prediction loss of the main network;
[0092] A dual network input unit, used for inputting the predicted heat map of the terminal joint point, the heat maps of several human joint points and the feature map into the dual network to obtain the predicted heat map of the basic joint point, wherein the terminal joint point and the basic joint point belong to the same structural group;
[0093] A self-supervised loss definition unit, used to compare the predicted heat map of the basic joint point with the true heat map and define the self-supervised loss of the main network;
[0094] A main network training unit is used to train the main network based on the prediction loss and the self-supervision loss.
[0095] In one implementation, the network joint training module 30 includes:
[0096] The heat map input dual network unit is used to input heat maps and feature maps of several human joints into the dual network to obtain the predicted heat maps of basic joints;
[0097] The overall loss function definition unit is used to define the overall loss function of the dual network and jointly train the main network and the dual network based on the overall loss function.
[0098] In one implementation, the posture estimation optimization module 40 includes:
[0099] A local refinement unit, used for adding perturbation data to the posture prediction result corresponding to the terminal joint point, and performing a local search to minimize the self-supervision loss;
[0100] The final prediction result determination unit is used to select the posture prediction result corresponding to the terminal joint point with the smallest self-supervision loss as the final prediction result of the terminal joint point.
[0101] The working principles of each module in the self-constrained optimization human posture estimation system of this embodiment are the same as the principles of each step in the above method embodiment, and will not be repeated here.
[0102] Based on the above embodiments, the present invention further provides a terminal device, the principle block diagram of which can be shown as follows: Figure 7 As shown. The terminal device includes a processor and a memory connected via a system bus, and the processor and the memory are arranged in a host. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal via a network communication connection. When the computer program is executed by the processor, a self-constrained optimization method for estimating human posture is implemented.
[0103] Those skilled in the art will understand that Figure 7 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal device to which the scheme of the present invention is applied. The specific terminal device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] In one embodiment, a terminal device is provided, the terminal device comprising a memory, a processor, and a self-constrained optimized human posture estimation method program stored in the memory and executable on the processor, and when the processor executes the self-constrained optimized human posture estimation method program, the following operation instructions are implemented:
[0105] Acquire a human joint point heat map, and determine the human joint points corresponding to a single human body based on the human joint point heat map;
[0106] The human joints are grouped, and basic joints and terminal joints are determined among the human joints, wherein the basic joints are human joints around the body trunk, and the terminal joints are human joints at the end or tip of a body part;
[0107] Jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtaining posture prediction results corresponding to the basic joint points and the terminal joint points respectively;
[0108] The trained dual network is used to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results.
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, operating database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double operational data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0110] In summary, the present invention discloses a self-constrained optimized human posture estimation method and system, the method comprising: obtaining a human joint point heat map, and determining the human joint points corresponding to a single human body based on the human joint point heat map; grouping the human joint points, and determining the basic joint points and terminal joint points among the human joint points; jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, respectively obtaining posture prediction results corresponding to the basic joint points and the terminal joint points, and using the trained dual network to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results. The present invention uses the main network and the dual network to describe the correlation of the human skeleton structure based on self-supervised constraints, and can also optimize the terminal joint points with low confidence, thereby improving the accuracy and robustness of posture recognition.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A self-constrained optimization method for human posture estimation, It is characterized in that The method comprises: Acquire a human joint point heat map, and determine the human joint points corresponding to a single human body based on the human joint point heat map; The human joints are grouped, and basic joints and terminal joints are determined among the human joints, wherein the basic joints are human joints around the body trunk, and the terminal joints are human joints at the end or tip of a body part; Jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtaining posture prediction results corresponding to the basic joint points and the terminal joint points respectively; The trained dual network is used to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results.
2. The method for self-constrained optimization of human body posture estimation according to claim 1, It is characterized in that The step of obtaining a human joint point heat map and determining a human joint point corresponding to a single human body based on the human joint point heat map includes: Acquire an image data set, and detect the image data set based on a preset human posture estimation model to obtain a human joint point heat map of a single human body; According to the human joint point heat map, the human joint points of a single human body are determined, wherein the human joint points are 17.
3. The method for self-constrained optimization of human body posture estimation according to claim 1, It is characterized in that The step of grouping the human joint points and determining the basic joint points and the terminal joint points among the human joint points includes: Based on the human skeleton structure, the human joints are grouped to obtain a plurality of structure groups, each of which includes a plurality of human joints; Based on the plurality of structure groups, basic joint points and terminal joint points among the human body joint points are determined.
4. The method for self-constrained optimization of human body posture estimation according to claim 3, It is characterized in that The human body joints are grouped based on the human body skeleton structure to obtain a number of structure groups, including: Based on the human skeleton structure, determine the lower limbs, upper limbs and head among the body parts; The human joints are divided into lower limbs, upper limbs and head to obtain structural groups corresponding to the lower limbs, upper limbs and head, wherein the lower limbs, upper limbs and head are each provided with two structural groups, and each structural group includes four human joints.
5. The method for self-constrained optimization of human body posture estimation according to claim 3, It is characterized in that The jointly trained main network and the dual network symmetrical to the main network include: Input several human joint point heat maps and the feature maps corresponding to the human joint points into the main network to obtain the predicted heat map of the terminal joint points; Comparing the predicted heat map of the end joint point with the labeled data and defining the prediction loss of the main network; Inputting the predicted heat map of the terminal joint point, the heat maps of several human joint points and the feature map into the dual network to obtain the predicted heat map of the basic joint point, wherein the terminal joint point and the basic joint point belong to the same structural group; Comparing the predicted heat map of the base joint point with the true heat map and defining the self-supervised loss of the main network; The main network is trained based on the prediction loss and the self-supervision loss.
6. The method for self-constrained optimization of human body posture estimation according to claim 5, It is characterized in that The jointly trained main network and the dual network symmetrical to the main network include: For the dual network, several human joint heat maps and feature maps are input to obtain the predicted heat map of the basic joints; An overall loss function of the dual network is defined, and the main network and the dual network are jointly trained based on the overall loss function.
7. The method for self-constrained optimization of human body posture estimation according to claim 6, It is characterized in that The method of using the trained dual network to locally refine the posture prediction result corresponding to the terminal joint point to obtain the final prediction result includes: Adding perturbation data to the posture prediction result corresponding to the terminal joint point, and performing local search to minimize the self-supervision loss; The posture prediction result corresponding to the terminal joint point with the smallest self-supervision loss is selected as the final prediction result of the terminal joint point.
8. A self-constrained optimization human posture estimation system, It is characterized in that The system comprises: A human joint point determination module, used to obtain a human joint point heat map, and determine the human joint points corresponding to a single human body based on the human joint point heat map; A human body key grouping module, used for grouping the human body joints and determining basic joints and terminal joints among the human body joints, wherein the basic joints are human body joints around the body trunk, and the terminal joints are human body joints located at the end or tip of a body part; A network joint training module, used for jointly training a main network and a dual network symmetrical to the main network, performing posture prediction on the basic joint points and the terminal joint points based on the trained main network, and obtaining posture prediction results corresponding to the basic joint points and the terminal joint points respectively; The posture estimation optimization module is used to use the trained dual network to locally refine the posture prediction results corresponding to the terminal joint points to obtain the final prediction results.
9. A terminal device, It is characterized in that The terminal device includes a memory, a processor, and a self-constrained optimized human body posture estimation program stored in the memory and executable on the processor. When the processor executes the self-constrained optimized human body posture estimation program, the steps of the self-constrained optimized human body posture estimation method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a self-constrained optimized human body posture estimation program. When the self-constrained optimized human body posture estimation program is executed by the processor, the steps of the self-constrained optimized human body posture estimation method as described in any one of claims 1-7 are implemented.
