A human pose estimation algorithm based on bias prediction in a bus compartment scene

By subdividing the human body into multiple pose objects and representing them with target bounding boxes, and combining the YOLO target detection structure, the offset coefficient of the pose object relative to the template and the offset of the human target are calculated. This solves the problem of high false negative rate in human pose estimation algorithms in occluded scenes, and achieves higher pose recognition accuracy and detection speed.

CN119068511BActive Publication Date: 2026-11-24NORTH CHINA UNIVERSITY OF TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411101856.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2026-11-24
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

In scenarios where human images have high occlusion, existing bottom-up human pose estimation algorithms have a high false negative rate and are difficult to effectively identify complete human poses.

Method used

A human pose estimation algorithm based on bias prediction is adopted. By subdividing the human body into multiple pose objects and representing them with target rectangles, and combining the YOLO target detection structure, the offset coefficient of the pose object relative to the template and the offset of the human target are calculated to achieve end-to-end pose detection.

Benefits of technology

It reduces the false negative rate caused by occlusion and pose changes, improves the accuracy and detection speed of pose recognition, and can more finely adjust the detection results to adapt to changes in different poses and scales.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068511B_ABST
    Figure CN119068511B_ABST
Patent Text Reader

Abstract

This invention relates to the field of posture detection technology, and aims to provide a human posture estimation algorithm based on deviation prediction in a bus scene. The algorithm includes the following steps: establishing a representation of the posture object set; creating a posture template set; constructing a network with a YOLO-like object detection structure to obtain an estimation network; mapping the posture template set to the estimation network; acquiring an input image and inputting it into the estimation network; the estimation network performing the following steps: dividing the input image into several cells to obtain a cell array; obtaining the target bounding box representation of the corresponding posture object from the input image and the posture template set, and determining the offset coefficient of the posture object relative to each posture template; obtaining the target bounding box representation of the human target from the input image and the posture template set, and determining the offset of the human target relative to the human targets in each posture template; and establishing the representation of the posture object set in the output of the estimation network. This reduces the false negative rate of human images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of posture detection technology, specifically to a human posture estimation algorithm based on deviation prediction in a bus car scenario. Background Technology

[0002] Current methods for human pose detection typically employ a bottom-up human pose estimation algorithm. The principle of this algorithm is to first detect all keypoints in the image, and then, in the post-processing stage, use auxiliary information to regress and connect keypoints belonging to the same person to obtain a complete human skeleton. For reliable regression connections to be achieved, a sufficient number of keypoints on the human target must be detected. If fewer than a specified threshold of keypoints belong to a single person, these keypoints are considered false detections and discarded without further regression connections. This approach primarily aims to reduce network sensitivity and overfitting, thereby improving accuracy. However, in scenarios with high occlusion levels in human images, many images are discarded due to insufficient keypoint detection caused by occlusion, significantly increasing the false negative rate. Summary of the Invention

[0003] The purpose of this invention is to provide a human pose estimation algorithm based on deviation prediction in a bus car scene. The technical problem to be solved is to reduce the false negative rate of human images.

[0004] This invention is achieved through the following technical solution:

[0005] A human pose estimation algorithm based on deviation prediction in a bus car scenario includes the following steps:

[0006] S100. Establish a representation of the pose object set, which includes a human body target, a head target, a torso target, a right hand target, a left hand target, a right foot target, a left foot target, a right elbow target, a left elbow target, a right knee target, and a left knee target. All of these targets are represented using a target rectangle; the torso target is represented using a target rectangle with an angled design.

[0007] S200, Create a posture template set;

[0008] S300. Construct a YOLO-like object detection network to obtain the estimation network;

[0009] S400: Map the pose template set to the estimation network;

[0010] S500: Obtain the input image and input the above input image into the estimation network;

[0011] The above-mentioned estimated network performs the following steps:

[0012] S600. Divide the above input image into several cells to obtain a cell array;

[0013] S700. Obtain the target rectangle representation of the corresponding pose object from the above input image and pose template set, and determine the offset coefficient of the pose object relative to each pose template.

[0014] S800. Obtain the target rectangle representation of the human target from the above input images and pose template set, and determine the offset of the above human target relative to the human target in each pose template.

[0015] S900. Establish the representation form of the above pose object set in the estimation network output. The above human target uses the offset as the output result. The above head target, torso target, right hand target, left hand target, right foot target, left foot target, right elbow target, left elbow target, right knee target and left knee target all use the offset coefficient represented by the target rectangle as the output result.

[0016] By subdividing the human body into multiple specific pose objects (such as the head, torso, limbs, and key joints) and representing them with target bounding boxes (especially target bounding boxes with tilted angles for torso targets), this method can more accurately capture the various parts of the human body and their relative positions. This detailed subdivision allows the network to more comprehensively detect various key parts of the human body, reducing missed detections caused by partial occlusion or pose changes. The pose template set provides the network with a reference framework, enabling it to learn the typical positional relationships of various parts of the human body under different poses. This helps the network to more accurately match detected features with templates when recognizing new images, thereby recognizing the complete pose of the human body and reducing missed detections caused by excessive pose changes. YOLO is a fast and accurate object detection algorithm that can simultaneously predict the position and category of multiple targets in a single forward propagation. Applying this algorithm to human pose estimation can significantly improve detection speed, and due to its end-to-end characteristics, it reduces... The accumulation of errors caused by step-by-step processing helps reduce the false negative rate. By calculating the offset coefficient of the pose object relative to the pose template, and the offset of the human target relative to the human target in the template, this method can more finely adjust the detection results to adapt to changes in different poses and scales. This dynamic adjustment capability enables the network to better cope with pose changes in complex scenes, reducing false negatives caused by pose differences. In the output representation, the human target uses the offset as the output result, while other pose objects use the offset coefficient represented by the target rectangle as the output result. This design ensures that the output results include both positional and pose information, providing a rich information foundation for subsequent pose analysis and processing. At the same time, the refinement of the output results also improves the accuracy of pose recognition and reduces the false negative rate.

[0017] Furthermore, the above-mentioned pose object set is represented by the following formula:

[0018]

[0019] Among them, P i Representation of the form of a set of pose objects; Representing human body targets; Indicates the head target; Indicates the torso target; Indicates the right-hand target; Indicates the target on the left; Indicates the target is the right foot; Indicates the target on the left foot; Indicates a target at the right elbow; Indicates a target at the left elbow; Indicates the target is the right knee; Indicates the left knee target; The target rectangle representing the human body target represents the x-coordinate of its center point; The target rectangle representing the human body target represents the ordinate of the center point; The width value represented by the target rectangle indicating the human body target; The height value represented by the target rectangle indicating the human body target; The target rectangle representing the head target indicates the x-coordinate of its center point; The target rectangle representing the head target represents the ordinate of the center point; The width value represented by the target rectangle of the head target; The height value represented by the target rectangle of the head target; The target rectangle representing the torso target indicates the x-coordinate of its center point; The target rectangle representing the torso target indicates the ordinate of the center point; The width value represented by the target rectangle indicating the torso target; The height value represented by the target rectangle indicating the torso target; The tilt angle represented by the target rectangle indicating the torso target; The target rectangle representing a right-handed target indicates the x-coordinate of its center point. The target rectangle representing a right-handed target represents the ordinate of its center point; The width value represented by the target rectangle of the right-hand target; This represents the height value of the target rectangle representing the right-hand target; The target rectangle representing the left-hand target indicates the x-coordinate of its center point; The target rectangle representing the left-hand target indicates the ordinate of its center point; The width value represented by the target rectangle of the left-hand target; The height value represented by the target rectangle of the left-hand target; The target rectangle representing the right foot target indicates the x-coordinate of its center point. The target rectangle representing the right foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the right foot target; The height value represented by the target rectangle indicating the right foot target; The target rectangle representing the left foot target indicates the x-coordinate of its center point; The target rectangle representing the left foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the left foot target; The height value represented by the target rectangle indicating the left foot target; The target rectangle representing the right elbow target indicates the x-coordinate of its center point; The target rectangle representing the right elbow target represents the ordinate of the center point; ε represents a fixed constant. The target rectangle representing the left elbow target indicates the x-coordinate of its center point; The target rectangle representing the left elbow target represents the ordinate of the center point; The target rectangle representing the right knee target indicates the x-coordinate of its center point; The target rectangle representing the right knee target represents the ordinate of its center point. The target rectangle representing the left knee symbolizes the x-coordinate of its center point; The target rectangle representing the left knee represents the ordinate of the center point.

[0020] Furthermore, the specific steps of S200 are as follows:

[0021] S210. Set 8 initial posture templates, namely, standing posture facing forward, standing posture facing backward, standing posture facing right, standing posture facing left, sitting posture facing forward, sitting posture facing right, sitting posture facing left, and incomplete posture.

[0022] S220. Obtain the scene dataset. Extract pose objects and pose data from the scene data in the scene dataset to obtain a pose object set and a pose dataset.

[0023] S230. Normalize the posture data using the human targets in the above posture object set.

[0024] S240. Use the torso target, knee target and foot target in the above pose object set as matching objects;

[0025] Set matching indices for 8 of the above initial pose templates. The matching indices include the two vertex parameters representing the hip, the knee target parameter, and the foot target parameter in the torso target.

[0026] S250. Using the above matching objects and matching degree indicators, the pose dataset is divided into 8 groups to obtain the parameters of 8 pose object sets.

[0027] S260. Calculate the average parameter values ​​of the above 8 sets of posture objects respectively. Use the average parameter values ​​of the 8 sets of posture objects as posture templates to obtain a posture template set.

[0028] Furthermore, the head target, torso target, right hand target, left hand target, right foot target, and left foot target mentioned above are all represented by two-point target rectangles;

[0029] The targets at the right elbow, left elbow, right knee, and left knee are all represented by a centrally located rectangular target box.

[0030] Furthermore, the offset coefficients of the above-mentioned pose objects relative to each pose template are determined using the following formula:

[0031]

[0032]

[0033]

[0034]

[0035] Where (cx, cy) represents the coordinates of the center point of the target bounding box representation of the pose object in the input image; This represents the coordinates of the center point of the target bounding box representation of the pose object in the pose template; t cx t represents the estimated x-coordinate offset coefficient of the target bounding box representation of the pose object in the input image by the estimation network; cy σ represents the estimated value of the ordinate offset coefficient of the target bounding box representing the pose object in the input image by the estimation network; σ represents the Sigmoid activation function; ρ represents the inverse function of the Sigmoid activation function.

[0036] Furthermore, the offset of the human target relative to the human target in each pose template is determined using the following formula:

[0037] cx human =2σ(T) cx )-0.5+x grid

[0038] cy human =2σ(T) cy )-0.5+y grid

[0039]

[0040]

[0041]

[0042]

[0043]

[0044]

[0045] Among them, (x grid ,y grid () represents the coordinates of the top-left vertex of the cell array; (cx human cy human) represents the coordinates of the center point of the bounding box representing the human object in the input image; w human This represents the width of the bounding box representing the human figure in the input image; h human This represents the height value of the target rectangle representing the human figure in the input image; The width value represented by the target rectangle of the human target in the pose template; T represents the height value of the target rectangle representing the human target in the pose template; cx T represents the estimation network's estimate of the horizontal coordinate offset of the target bounding box representing a human object in the input image; cy T represents the estimation network's estimate of the ordinate offset of the target bounding box representing a human object in the input image; w T represents the estimation value of the target rectangle representing the width ratio of the human object in the input image by the estimation network; h This represents the estimation value of the target rectangle representing the height of the human object in the input image by the estimation network.

[0046] Furthermore, the representation of the above pose object set in the estimated network output is as follows:

[0047]

[0048] in, This represents the form in which the pose object set is represented in the output of the estimation network. and These represent the confidence scores for the human body target, head target, trunk target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively. and These represent the estimated values ​​of the horizontal coordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. and These represent the estimated values ​​of the ordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. and These represent the estimated values ​​of the x-coordinate and y-coordinate offsets of the target rectangle representation of the human target by the estimation network, as well as the width and height ratios, respectively. and These represent the estimated values ​​of the x-coordinate offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the horizontal coordinate offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively.

[0049] Furthermore, it is also necessary to establish isolated object representations in the estimation network;

[0050] The isolated object representation above is shown in the following formula:

[0051]

[0052] in, Representation of isolated object forms; The coordinates of the center point of the target rectangle representing the isolated object; The width value represented by the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target; This represents the height value of the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target. When an isolated object is a torso target, the coordinates of the center point represented by the target rectangle; The width value represented by the target rectangle when the isolated object is a torso target; This represents the height value of the target rectangle when the isolated object is a torso target. The tilt angle represented by the target rectangle when the isolated object is the torso target.

[0053] Furthermore, the estimated value of the isolated object is calculated using the following formula:

[0054]

[0055] in, This represents an estimated value for an isolated object; Indicates the target confidence level of an isolated object; and The target rectangle representing the isolated object represents the x-coordinate and y-coordinate of the center point, the width value, and the height value, respectively. The target rectangle representing an isolated object indicates the tilt angle. This value is meaningful when the isolated object is a torso target; otherwise, the value is 0. and These represent the estimated scores for each category when the isolated object is a head target, torso target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively.

[0056] Furthermore, the pose object is corrected using the estimated values ​​of isolated objects through the aforementioned estimation network.

[0057] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0058] By subdividing the human body into multiple specific pose objects (such as the head, torso, limbs, and key joints) and representing them with target bounding boxes (especially target bounding boxes with tilted angles for torso targets), this method can more accurately capture the various parts of the human body and their relative positions. This detailed subdivision allows the network to more comprehensively detect various key parts of the human body, reducing missed detections caused by partial occlusion or pose changes. The pose template set provides the network with a reference framework, enabling it to learn the typical positional relationships of various parts of the human body under different poses. This helps the network to more accurately match detected features with templates when recognizing new images, thereby recognizing the complete pose of the human body and reducing missed detections caused by excessive pose changes. YOLO is a fast and accurate object detection algorithm that can simultaneously predict the position and category of multiple targets in a single forward propagation. Applying this algorithm to human pose estimation can significantly improve detection speed, and due to its end-to-end characteristics, it reduces... The accumulation of errors caused by step-by-step processing helps reduce the false negative rate. By calculating the offset coefficient of the pose object relative to the pose template, and the offset of the human target relative to the human target in the template, this method can more finely adjust the detection results to adapt to changes in different poses and scales. This dynamic adjustment capability enables the network to better cope with pose changes in complex scenes, reducing false negatives caused by pose differences. In the output representation, the human target uses the offset as the output result, while other pose objects use the offset coefficient represented by the target rectangle as the output result. This design ensures that the output results include both positional and pose information, providing a rich information foundation for subsequent pose analysis and processing. At the same time, the refinement of the output results also improves the accuracy of pose recognition and reduces the false negative rate. Attached Figure Description

[0059] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:

[0060] Figure 1 Main flowchart;

[0061] Figure 2 This is a schematic diagram of 8 pose templates;

[0062] Figure 3 A schematic diagram of the mapping of the original coordinates to the offset coefficients provided in Example 3;

[0063] Figure 4 This is a schematic diagram of the mapping of the original coordinates to the offset provided in Example 6;

[0064] Figure 5 This is a schematic diagram for estimating the network structure. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.

[0066] Example 1

[0067] Combination Figure 1 This embodiment 1 provides a human pose estimation algorithm based on deviation prediction in a bus car scenario, including the following steps:

[0068] S100. Establish a representation of the pose object set, which includes a human body target, a head target, a torso target, a right hand target, a left hand target, a right foot target, a left foot target, a right elbow target, a left elbow target, a right knee target, and a left knee target. All of these targets are represented using a target rectangle; the torso target is represented using a target rectangle with an angled design.

[0069] S200, Create a posture template set;

[0070] S300. Construct a YOLO-like object detection network to obtain the estimation network;

[0071] S400: Map the pose template set to the estimation network;

[0072] S500: Obtain the input image and input the above input image into the estimation network;

[0073] The above-mentioned estimated network performs the following steps:

[0074] S600. Divide the above input image into several cells to obtain a cell array;

[0075] S700. Obtain the target rectangle representation of the corresponding pose object from the above input image and pose template set, and determine the offset coefficient of the pose object relative to each pose template.

[0076] S800. Obtain the target rectangle representation of the human target from the above input images and pose template set, and determine the offset of the above human target relative to the human target in each pose template.

[0077] S900. Establish the representation form of the above pose object set in the estimation network output. The above human target uses the offset as the output result. The above head target, torso target, right hand target, left hand target, right foot target, left foot target, right elbow target, left elbow target, right knee target and left knee target all use the offset coefficient represented by the target rectangle as the output result.

[0078] First, the pose features are represented using target-based methods, and the detection method is similar to that of target detection. Compared to estimation networks that use keypoints to represent information, key body parts are stronger and easier to detect than local keypoint information. Since the human body is used as the indivisible basic element, compared to using keypoints as the indivisible basic element, the representation of the pose object using the human body and its associated key body parts and their connections does not need to consider the discarding problem during regression connections. Therefore, it has a stronger ability to obtain complete pose information, higher recall, and lower false negative rate.

[0079] Secondly, the network in this algorithm estimates the offset of the target relative to the template, and its estimation form is similar to direct coordinate estimation. However, by introducing the pose template, it can effectively transmit the spatial constraint information of key parts in the template to the network, thereby compensating for the weak global information understanding ability of direct coordinate estimation. At the same time, the network with the YOLO-like detection structure does not have a large number of parameters like the detection form of heatmap estimation.

[0080] Finally, since the pose features in this algorithm already contain the range information of key parts, when human pose features, human target features, and part target features are needed simultaneously in the future, it is not necessary to add an additional target detection algorithm to obtain accurate, non-regression fitting predicted bounding boxes, thus enabling the detection of more information.

[0081] Example 1: Abnormal behavior detection in bus scenarios is crucial for public safety and hazard warning. However, abnormal behavior recognition relies on extracting human posture features from collected images or videos. Surveys of bus scenarios reveal that human targets are often severely occluded. Traditional human posture estimation algorithms often miss even partially occluded targets, resulting in a high false negative rate. To address this issue, this invention employs the following method: a posture template is created based on the characteristics of the bus scenario. A YOLO-like detection architecture network is used to estimate the target posture offset relative to the template, and then a reverse mapping method is used to regress the estimated posture object. The end-to-end one-step detection using the YOLO-like detection architecture network avoids false negatives caused by manual selection strategies. Furthermore, the template allows for the acquisition of spatial constraints between key components, avoiding the weak global information perception capability of direct coordinate estimation or the excessive computational parameters of heatmap regression. Simultaneously, this algorithm enables the simultaneous detection of posture features, key components, and human target features, enriching the algorithm's detection information.

[0082] Example 2

[0083] Building upon Example 1, a human pose representation based on a key target set (i.e., a pose object set representation) is used to represent pose objects, enabling them to represent more information and facilitating estimation using a YOLO-like architecture. To supplement the tilt information of the human torso, the torso target is represented by a target rectangle with a tilt angle. Since the local information of the right elbow, left elbow, right knee, and left knee targets is weak, their range information has little effect on the expression of pose information. Therefore, the width and height values ​​of their target bounding boxes are taken as a fixed small-scale positive value, i.e., these four targets are represented by fixed small square boxes.

[0084] The above pose object set is represented by the following formula:

[0085]

[0086] Among them, P i Representation of the form of a set of pose objects; Representing human body targets; Indicates the head target; Indicates the torso target; Indicates the right-hand target; Indicates the target on the left; Indicates the target is the right foot; Indicates the target on the left foot; Indicates a target at the right elbow; Indicates a target at the left elbow; Indicates the target is the right knee; Indicates the left knee target; The target rectangle representing the human body target represents the x-coordinate of its center point; The target rectangle representing the human body target represents the ordinate of the center point; The width value represented by the target rectangle indicating the human body target; The height value represented by the target rectangle indicating the human body target; The target rectangle representing the head target indicates the x-coordinate of its center point; The target rectangle representing the head target represents the ordinate of the center point; The width value represented by the target rectangle of the head target; The height value represented by the target rectangle of the head target; The target rectangle representing the torso target indicates the x-coordinate of its center point; The target rectangle representing the torso target indicates the ordinate of the center point; The width value represented by the target rectangle indicating the torso target; The height value represented by the target rectangle indicating the torso target; The tilt angle represented by the target rectangle indicating the torso target; The target rectangle representing a right-handed target indicates the x-coordinate of its center point. The target rectangle representing a right-handed target represents the ordinate of its center point; The width value represented by the target rectangle of the right-hand target; This represents the height value of the target rectangle representing the right-hand target; The target rectangle representing the left-hand target indicates the x-coordinate of its center point; The target rectangle representing the left-hand target indicates the ordinate of its center point; The width value represented by the target rectangle of the left-hand target; The height value represented by the target rectangle of the left-hand target; The target rectangle representing the right foot target indicates the x-coordinate of its center point; The target rectangle representing the right foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the right foot target; The height value represented by the target rectangle indicating the right foot target; The target rectangle representing the left foot target indicates the x-coordinate of its center point; The target rectangle representing the left foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the left foot target; The height value represented by the target rectangle indicating the left foot target; The target rectangle representing the right elbow target indicates the x-coordinate of its center point; The target rectangle representing the right elbow target represents the ordinate of the center point; ε represents a fixed constant. The target rectangle representing the left elbow target indicates the x-coordinate of its center point; The target rectangle representing the left elbow target represents the ordinate of the center point; The target rectangle representing the right knee target indicates the x-coordinate of its center point; The target rectangle representing the right knee target represents the ordinate of its center point. The target rectangle representing the left knee target indicates the x-coordinate of its center point; The target rectangle representing the left knee represents the ordinate of the center point.

[0087] Example 3

[0088] Based on any of the above embodiments, the specific steps of S200 are as follows:

[0089] S210. Set 8 initial posture templates, namely, standing posture facing forward, standing posture facing backward, standing posture facing right, standing posture facing left, sitting posture facing forward, sitting posture facing right, sitting posture facing left, and incomplete posture.

[0090] S220. Obtain the scene dataset. Extract pose objects and pose data from the scene data in the scene dataset to obtain a pose object set and a pose dataset.

[0091] S230. Normalize the posture data using the human targets in the above posture object set.

[0092] S240. Use the torso target, knee target and foot target in the above pose object set as matching objects;

[0093] Set matching indices for 8 of the above initial pose templates. The matching indices include the two vertex parameters representing the hip, the knee target parameter, and the foot target parameter in the torso target.

[0094] S250. Using the above matching objects and matching degree indicators, the pose dataset is divided into 8 groups to obtain the parameters of 8 pose object sets.

[0095] S260. Calculate the average parameter values ​​of the above 8 sets of posture objects respectively. Use the average parameter values ​​of the 8 sets of posture objects as posture templates to obtain a posture template set.

[0096] Example 2: In a bus scenario, passengers often sit or stand while riding the bus. Therefore, we consider using common poses in the scene as pose templates and then using a network to estimate the offset coefficient between the target pose and the pose template to estimate the pose object. A subsequent YOLO-like detection architecture based on template offset mapping can then pass the template information to the estimation network, providing initial spatial constraints for the estimated pose object.

[0097] Based on common human postures in bus scenes, eight initial posture templates were set: standing facing forward, standing with back to the camera, standing to the right, standing to the left, sitting upright, sitting to the right, sitting to the left, and incomplete posture. The incomplete posture is used to represent human postures that are not fully in the frame.

[0098] To ensure the pose templates fully express the constraints between human targets, initial pose templates were statistically analyzed using a bus scene dataset. The pose data in the dataset was normalized relative to the human targets to avoid the influence of inconsistent human image scales. Two vertices representing the hips, the knees, and the feet were selected from the torso targets as matching objects. The OKS (Object Class Score) of these five keypoints was used as the matching degree index, dividing the pose data in the dataset into eight corresponding groups. Finally, the average parameters of the eight groups of pose objects were calculated as the pose template, as shown below. Figure 2 As shown.

[0099] Example 4

[0100] Based on any of the above embodiments, the head target, torso target, right hand target, left hand target, right foot target and left foot target are all represented by a two-point target rectangle. The two-point rectangle uses the upper left vertex and the lower right vertex to express the position and range of the rectangle.

[0101] The targets at the right elbow, left elbow, right knee, and left knee are all represented by a central target rectangle. The central rectangle uses the center point and width and height values ​​to express the position and range of the rectangle.

[0102] Example 5

[0103] Building upon Example 4, to achieve template offset prediction for pose objects, an estimation network is constructed using a YOLO object detection architecture. The estimation network divides the input image into S×S cells, with each cell responsible for predicting the offset coefficient of the pose object centered within that cell relative to eight pose templates. Here, the offset coefficient is estimated instead of the offset amount. Furthermore, a two-point bounding box representation is used instead of the commonly used central bounding box representation. These two modifications allow the network to naturally constrain the estimated human body part target within the human target area, increasing the network's initial perceptual ability and accelerating training convergence.

[0104] The offset coefficients of the above pose objects relative to each pose template are determined by the following formula:

[0105]

[0106]

[0107]

[0108]

[0109] Where (cx, cy) represents the coordinates of the center point of the target bounding box representation of the pose object in the input image; This represents the coordinates of the center point of the target bounding box representation of the pose object in the pose template; t cx t represents the estimated x-coordinate offset coefficient of the target bounding box representation of the pose object in the input image by the estimation network; cy σ represents the estimated ordinate offset coefficient of the target bounding box representing the pose object in the input image, as determined by the estimation network; σ represents the Sigmoid activation function; ρ represents the inverse Sigmoid activation function. cx and t cy It estimates the network output, with values ​​ranging from (-∞, +∞); 2σ(t) cx )-1 and 2σ(t cy )-1 is the offset coefficient after the range of values ​​is mapped to the interval (-1, +1).

[0110] Example 3: Mapping method of original coordinates to offset coefficients: such as Figure 3 As shown, The template target is defined by parameters that are normalized relative to the human target. and They are respectively The top left vertex, bottom right vertex, and center point of O; O is the corresponding target (i.e., the pose object on the input image that corresponds to the template target; the input image can be either a pose template or a scene image), and its parameters are also normalized values ​​relative to the human target; (x1,y1), (x2,y2), and (cx,xy) are the top left vertex, bottom right vertex, and center point of O, respectively.

[0111] Example 6

[0112] Building upon Example 5, for human targets that cannot be represented using offset coefficients, an estimation network is used to estimate the offset of the human target in the pose template. The mapping method is as follows: Figure 4 And as shown in the following formula;

[0113] The offset of the human target relative to the human target in each pose template is determined by the following formula:

[0114] cx human =2σ(T) cx )-0.5+x grid

[0115] cy human =2σ(T) cy )-0.5+y grid

[0116]

[0117]

[0118]

[0119]

[0120]

[0121]

[0122] Among them, (x grid ,y grid () represents the coordinates of the top-left vertex of the cell array; (cx human cy human ) represents the coordinates of the center point of the bounding box representing the human object in the input image; w human This represents the width of the bounding box representing the human figure in the input image; h human This represents the height value of the target rectangle representing the human figure in the input image; The width value represented by the target rectangle of the human target in the pose template; T represents the height value of the target rectangle representing the human target in the pose template; cx T represents the estimation network's estimate of the horizontal coordinate offset of the target bounding box representing a human object in the input image; cy T represents the estimation network's estimate of the ordinate offset of the target bounding box representing a human object in the input image; w T represents the estimation value of the target rectangle representing the width ratio of the human object in the input image by the estimation network; h This represents the estimation value of the target rectangle representing the height of the human object in the input image by the estimation network.

[0123] T cx With T cy It estimates the network output, with values ​​ranging from (-∞, +∞); 2σ(T) cx-0.5 and 2σ(T) cy -0.5 is the offset after mapping the value range to the interval (-0.5, +1.5), meaning the estimated center point range of the target in the cell is within twice the cell range; T w With T h , respectively, are the estimated values ​​of the width and height ratios by the estimation network, and is the output of the estimation network, with a value range of (-∞, +∞); and The value range is mapped to the (0,4) interval as a ratio of the width and height. Considering the limited space of the bus scene and the small difference in target scale, a target rectangle of 4 times the scale of the human target can fully express the target in the scene.

[0124] Example 7

[0125] Based on any of the above embodiments, the representation of the above pose object set in the network output includes information on 11 targets: human body, head, torso, right elbow, right hand, left elbow, left hand, right knee, right foot, left knee, and left foot. Among them, the human body target uses the offset as the output information, while the head, torso, right hand, left hand, right foot, and left foot targets use the offset coefficient represented by a two-point target rectangle as the output information. The right elbow, left elbow, right knee, and left knee targets use the offset coefficient represented by a center-type target rectangle as the output information. The local information of these targets is not obvious, so it is meaningless to estimate the range of their target rectangles. Therefore, this paper uses a square of fixed size to represent them, and the width and height values ​​are not estimated during network estimation.

[0126] The representation of the above pose object set in the estimation network output is shown in the following formula:

[0127]

[0128] in, This represents the form in which the pose object set is represented in the output of the estimation network. and These represent the confidence scores for the human body target, head target, trunk target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively. and These represent the estimated values ​​of the horizontal coordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. and These represent the estimated values ​​of the ordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. and These represent the estimated values ​​of the x-coordinate and y-coordinate offsets of the target rectangle representation of the human target by the estimation network, as well as the width and height ratios, respectively. and These represent the estimated values ​​of the x-coordinate offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the horizontal coordinate offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. and These represent the estimated values ​​of the offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively.

[0129] Example 8

[0130] Based on any of the above embodiments, in order to improve the algorithm's ability to perceive local information, the estimation network is responsible for estimating n isolated objects used to correct the pose object while estimating the pose object. When the isolated object is a head target, right hand target, left hand target, right foot target, or left foot target, the isolated object representation will include the x-coordinate and y-coordinate of the center point of the target rectangle and the width and height values ​​of the target rectangle. When the isolated target object is a torso target, the isolated object representation will additionally include the tilt angle of the target rectangle. When the isolated target object is a right elbow target, left elbow target, right knee target, or left knee target, its target rectangle width and height values ​​will be fixed values ​​ε.

[0131] The isolated object representation above is shown in the following formula:

[0132]

[0133] in, Representation of isolated object forms; The coordinates of the center point of the target rectangle representing the isolated object; The width value represented by the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target; This represents the height value of the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target. When an isolated object is a torso target, the coordinates of the center point represented by the target rectangle; The width value represented by the target rectangle when the isolated object is a torso target; This represents the height value of the target rectangle when the isolated object is a torso target. The tilt angle represented by the target rectangle when the isolated object is the torso target.

[0134] In a specific implementation, in order to supplement the estimation network's ability to perceive local information, the estimation network is also responsible for estimating n isolated target objects that do not participate in the expression of the pose object while estimating the pose object, so as to correct the part targets in the pose object estimated by the network.

[0135] The estimated value of the isolated object is calculated using the following formula:

[0136]

[0137] in, This represents an estimated value for an isolated object; Indicates the target confidence level of an isolated object; and The target rectangle representing the isolated object represents the x-coordinate and y-coordinate of the center point, the width value, and the height value, respectively. The target rectangle representing an isolated object indicates the tilt angle. This value is meaningful when the isolated object is a torso target; otherwise, the value is 0. and These represent the estimated scores for each category when the isolated object is a head target, torso target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively.

[0138] In a specific embodiment, the pose object is corrected using the estimated values ​​of isolated objects through the estimation network described above.

[0139] The estimated network structure described above is divided into three parts (e.g. Figure 5 (As shown): Preprocessing part α, estimation network and post-processing section

[0140] Preprocessing: To reduce the negative impact of inconsistent input image scales and lighting variations on network estimation, the network performs preliminary processing on the input image I through the preprocessing part α(I) to improve subsequent network estimation. This part mainly includes two operations: First, scale normalization processing a1(I), which normalizes the input image I into a 448×448×3 three-channel RGB image I′ to align with the subsequent network input scale. Second, histogram equalization processing a2(I′), which uses an adaptive histogram equalization algorithm to balance image contrast and reduce the negative impact of light and shadow on subsequent network estimation.

[0141] Estimation Network: Human Pose Estimation Network Based on Template Offset Prediction This is a template offset coefficient prediction network based on a YOLOv5-like structure, such as... Figure 5 As shown, the network adopts a three-stage network structure of backbone network-neck network-detector head network. The backbone network uses a Focus module for low-cost downsampling, and performs feature sampling through CBS convolutional modules and CSP residual modules. The input image scale is set to 448×448×3, and after six downsampling iterations, the smallest 7×7 scale feature is obtained. The neck network adopts an FPN+PAN architecture. The FPN structure conveys strong semantic features through a top-down upsampling path, and the PAN structure conveys strong localization features through a bottom-up downsampling path, achieving depth perception of image features. Feature sampling is performed through the CBS convolutional module, upsampling through the Upsample module, and Concat enhances feature depth. The detector head network uses 1×1 convolutions to achieve fully connected mapping, and the network output is shaped into S×S×(48·8+16·n). inde The tensor is S×S, where S×S is the scale of the detection head, i.e., the scale of the segmented cells. The estimation network is responsible for detecting pose objects and isolated objects with little scale variation. These objects do not contain targets with small scales. Therefore, the estimation network contains three detection head networks: 28×28, 14×14, and 7×7. The 7×7 and 14×14 detection head networks are responsible for detecting larger pose objects, human targets, torso targets, etc., while the 28×28 detection head network is responsible for detecting smaller hand targets and foot targets.

[0142] Post-processing section: Responsible for further processing of the network output, including the contention module φ1 and the correction module. Competition Module Eliminate the estimated result S through competitive screening. pose With S obj The redundancy detection results mainly include confidence competition and non-maximum suppression competition, and finally the filtered estimation result S is obtained. pose′ With S obj′ Correction module Isolated object S estimated by network obj′ To correct the estimated pose object S pose′ This is to supplement the algorithm's ability to detect key parts with strong local information.

[0143] The network training is estimated to be as follows:

[0144] The estimation network is trained using a bus car dataset to gain the ability to estimate human targets and human poses. Its loss function... As shown in formula (1), it consists of two parts: pose object loss. Loss of isolated objects

[0145]

[0146]

[0147]

[0148]

[0149]

[0150]

[0151]

[0152] Among them, pose object loss As shown in Equation (2), the loss includes the localization loss of the human target within the pose object. Human target confidence loss Loss of target location in critical areas Loss of confidence in key target areas and CIOU loss is used to train the network's ability to estimate the bounding boxes of targets within the pose object, as shown in Equations (4) and (5), respectively. Since the human target within the pose object is responsible for serving as a normalized reference for mapping the coordinates of other targets into offset coefficients, its bounding box localization is more important. Therefore, it is assigned independent weights to make it converge preferentially. and A binary cross-entropy loss is adopted to balance the influence of positive and negative samples, which is responsible for training the network's ability to estimate the target confidence, as shown in Equation (7) and Equation (8) respectively.

[0153] Loss of isolated objects As shown in Equation (3), it includes the isolated object localization loss. Isolated object confidence loss Compared with isolated object classification score loss As shown in Equation (9), the CIOU loss form is used to train the network's ability to estimate the bounding boxes of isolated objects. and As shown in formulas (10) and (11), the binary cross-entropy loss is used to balance the influence of positive and negative samples and is responsible for training the network's ability to estimate the confidence and classification score of isolated objects.

[0154] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for estimating human pose, characterized in that, Includes the following steps: S100. Establish a representation of the pose object set, which includes a human body target, a head target, a torso target, a right hand target, a left hand target, a right foot target, a left foot target, a right elbow target, a left elbow target, a right knee target, and a left knee target; the human body target, head target, torso target, right hand target, left hand target, right foot target, left foot target, right elbow target, left elbow target, right knee target, and left knee target are all represented by target rectangles; among them, the torso target is represented by a target rectangle with an inclined angle; S200, Create a pose template set, including: S210. Set 8 initial posture templates, namely, standing posture facing forward, standing posture facing backward, standing posture facing right, standing posture facing left, sitting posture facing forward, sitting posture facing right, sitting posture facing left, and incomplete posture. S220. Obtain a scene dataset, extract pose objects and pose data from the scene data in the scene dataset, and obtain a pose object set and a pose dataset. S230. Normalize the posture data using the human targets in the posture object set. S240. Use the torso target, knee target and foot target in the posture object set as matching objects; Set matching indexes in the eight initial pose templates. The matching indexes include the two vertex parameters representing the buttocks, the knee target parameters, and the foot target parameters in the torso target. S250. Using the matching objects and matching degree index, the pose dataset is divided into 8 groups to obtain the parameters of 8 pose object sets. S260. Calculate the average parameter value of each of the 8 sets of posture objects, and use the average parameter value of each of the 8 sets of posture objects as a posture template to obtain a posture template set. S300. Construct a YOLO-like object detection network to obtain the estimation network; S400: Map the pose template set to the estimation network; S500: Obtain the input image and input the input image into the estimation network; The estimation network performs the following steps: S600. Divide the input image into several cells to obtain a cell array; S700. For each cell, determine the offset coefficient of the pose object relative to each pose template, using the following formula: ; Where (cx, cy) represents the coordinates of the center point of the target bounding box representation of the pose object in the input image; This represents the coordinates of the center point of the target rectangle representing the pose object in the pose template; This represents the estimated value of the x-coordinate offset coefficient of the target bounding box representing the pose object in the input image by the estimation network; This represents the estimated value of the ordinate offset coefficient of the target bounding box representing the pose object in the input image by the estimation network; This represents the Sigmoid activation function; This represents the inverse function of the Sigmoid activation function; S800. For each cell, determine the offset of the human target relative to the human target in each pose template, using the following formula: ; in, Represents the coordinates of the top-left vertex of the cell array; This indicates the coordinates of the center point of the target rectangle representing the human object in the input image; This represents the width value of the bounding box representing the human figure in the input image; This represents the height value of the target rectangle representing the human figure in the input image; The width value represented by the target rectangle of the human target in the pose template; The height value represented by the target rectangle of the human target in the pose template; This represents the estimation network's estimate of the horizontal coordinate offset of the target bounding box representing the human object in the input image; This represents the estimation network's estimate of the vertical coordinate offset of the target bounding box representing the human object in the input image; This represents the estimation value of the target rectangle representing the width ratio of the human object in the input image by the estimation network; This represents the estimation value of the target rectangle representing the height of the human object in the input image by the estimation network; S900. Establish the representation form of the pose object set in the output of the estimation network. The human target uses the offset as the output result. The head target, torso target, right hand target, left hand target, right foot target, left foot target, right elbow target, left elbow target, right knee target and left knee target all use the offset coefficient represented by the target rectangle as the output result.

2. The human pose estimation method according to claim 1, characterized in that, The representation of the pose object set is as follows: ; in, Representation of the form of a set of pose objects; Representing human body targets; Indicates the head target; Indicates the torso target; Indicates the right-hand target; Indicates the target on the left; Indicates the target is the right foot; Indicates the target on the left foot; Indicates a target at the right elbow; Indicates a target at the left elbow; Indicates the target is the right knee; Indicates the left knee target; The target rectangle representing the human body target represents the x-coordinate of its center point; The target rectangle representing the human body target represents the ordinate of the center point; The width value represented by the target rectangle indicating the human body target; The height value represented by the target rectangle indicating the human body target; The target rectangle representing the head target indicates the x-coordinate of its center point; The target rectangle representing the head target represents the ordinate of the center point; The width value represented by the target rectangle of the head target; The height value represented by the target rectangle of the head target; The target rectangle representing the torso target indicates the x-coordinate of its center point; The target rectangle representing the torso target indicates the ordinate of the center point; The width value represented by the target rectangle indicating the torso target; The height value represented by the target rectangle indicating the torso target; The tilt angle represented by the target rectangle indicating the torso target; The target rectangle representing a right-handed target indicates the x-coordinate of its center point. The target rectangle representing a right-handed target represents the ordinate of its center point; The width value represented by the target rectangle of the right-hand target; This represents the height value of the target rectangle representing the right-hand target; The target rectangle representing the left-hand target indicates the x-coordinate of its center point; The target rectangle representing the left-hand target indicates the ordinate of its center point; The width value represented by the target rectangle of the left-hand target; The height value represented by the target rectangle of the left-hand target; The target rectangle representing the right foot target indicates the x-coordinate of its center point. The target rectangle representing the right foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the right foot target; The height value represented by the target rectangle indicating the right foot target; The target rectangle representing the left foot target indicates the x-coordinate of its center point; The target rectangle representing the left foot target indicates the ordinate of its center point; The width value represented by the target rectangle of the left foot target; The height value represented by the target rectangle indicating the left foot target; The target rectangle representing the right elbow target indicates the x-coordinate of its center point; The target rectangle representing the right elbow target represents the ordinate of the center point; Indicates a fixed constant; The target rectangle representing the left elbow target indicates the x-coordinate of its center point; The target rectangle representing the left elbow target represents the ordinate of the center point; The target rectangle representing the right knee target indicates the x-coordinate of its center point; The target rectangle representing the right knee target represents the ordinate of its center point. The target rectangle representing the left knee target indicates the x-coordinate of its center point; The target rectangle representing the left knee represents the ordinate of the center point.

3. The human posture estimation method according to claim 1, characterized in that, The head target, torso target, right hand target, left hand target, right foot target, and left foot target are all represented by two-point target rectangles; The right elbow target, left elbow target, right knee target, and left knee target are all represented by a centrally located target rectangle.

4. The human pose estimation method according to claim 1, characterized in that, The representation of the pose object set in the estimated network output is as follows: ; in, This represents the form in which the pose object set is represented in the output of the estimation network. , , , , , , , , , and These represent the confidence scores for the human body target, head target, trunk target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively. , , and These represent the estimated values ​​of the horizontal coordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. , , and These represent the estimated values ​​of the ordinate offset coefficients representing the target bounding boxes of the right elbow target, left elbow target, right knee target, and left knee target, respectively. , , and These represent the estimated values ​​of the x-coordinate and y-coordinate offsets of the target rectangle representation of the human target by the estimation network, as well as the width and height ratios, respectively. , , , , and These represent the estimated values ​​of the horizontal coordinate offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. , , , , and These represent the estimated values ​​of the offset coefficient of the top left vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. , , , , and These represent the estimated values ​​of the horizontal coordinate offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively. , , , , and These represent the estimated values ​​of the offset coefficient of the lower right vertex of the target bounding box representation for the head target, torso target, right hand target, left hand target, right foot target, and left foot target, respectively.

5. The human pose estimation method according to claim 1, characterized in that, It is also necessary to establish isolated object representations in the estimation network; The isolated object is represented by the following formula: in, Representation of isolated object forms; The coordinates of the center point of the target rectangle representing the isolated object; The width value represented by the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target; This represents the height value of the target rectangle when the isolated object is a head target, right-hand target, left-hand target, right-foot target, or left-foot target. When an isolated object is a torso target, the coordinates of the center point represented by the target rectangle; The width value represented by the target rectangle when the isolated object is a torso target; This represents the height value of the target rectangle when the isolated object is a torso target. The tilt angle represented by the target rectangle when the isolated object is the torso target.

6. The human posture estimation method according to claim 5, characterized in that, The estimated value of the isolated object is calculated using the following formula: ; in, This represents an estimated value for an isolated object; Indicates the target confidence level of an isolated object; , , and The target rectangle representing the isolated object represents the x-coordinate and y-coordinate of the center point, the width value, and the height value; The target rectangle representing an isolated object indicates the tilt angle. This value is meaningful when the isolated object is a torso target; otherwise, the value is 0. , , , , , , , , and These represent the estimated scores for each category when the isolated object is a head target, torso target, right elbow target, right hand target, left elbow target, left hand target, right knee target, right foot target, left knee target, and left foot target, respectively.

7. The human posture estimation method according to claim 6, characterized in that, The estimation network is used to correct the pose object using the estimates of isolated objects.

Citation Information

Patent Citations

  • 3D human body posture estimation model training method

    CN111523379A

  • Human body posture estimation method, electronic equipment and storage medium

    CN112861777A