A human pose estimation method based on MRF superpixel labeling
Through the MRF superpixel marking method, the problem of low part search efficiency and susceptibility to interference in the posture estimation method is solved, more efficient and accurate human posture recognition is achieved, background interference is reduced, and the recognition speed is improved.
Patent Information
- Application Number
- CN202111326022.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-11-10
AI Technical Summary
The detection rate of the posture estimation method is low and the speed is slow. It is easily interfered by the background and other human body parts, and the part search efficiency is low.
A human pose estimation method based on MRF superpixel labeling is adopted. By dividing the image into superpixel image blocks, the superpixel MRF model is used for part labeling, and a rectangular area set is constructed based on the superpixel center point to calculate the part matching score and distance. Score, select the posture with the highest total score as the recognition result.
It improves the efficiency and accuracy of pose estimation, reduces background interference, reduces the part search space, and enhances recognition speed and accuracy.
Smart Images

Figure CN114170675B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image recognition, and specifically relates to a human body posture estimation method based on MRF superpixel labeling. Background Art
[0002] Due to the influence of multiple factors such as occlusion, skin color and clothing, background, posture, shooting angle, other people, noise, and lighting, the detection rate of posture estimation has always been low, and the detection speed is slow. The part search method based on the sliding window is one of the current posture estimation methods with better recognition effect. It mainly uses the underlying features in the image, such as color, gradient (such as HOG), etc. to describe the appearance of various parts of the human body. However, the search method based on the sliding window needs to detect a large area of background area in the entire image. For example, the background area in the LSP and IP data sets is about 60% of the image. These objects in the background are easy to interfere with the human body part recognition process, resulting in false detection of parts. In addition, the method based on the sliding window needs to traverse the entire image one by one (Cell or pixel) to complete the search for human body parts. The traversal search of a large number of foreground and background areas in the image will increase the part search space and reduce the efficiency of the overall algorithm.
[0003] The same part of a person usually has similar features, and superpixels can extract a set of pixels with similar features in an image. Therefore, superpixels can be introduced in the posture estimation process for part search, minimizing background interference information while retaining the original important features in the image as much as possible, thereby improving the efficiency of part detection. In the prior art, superpixels are first used to complete image segmentation, and then human body parts are spliced out through several superpixels, matched with trained part templates, and the best match is selected as the recognition result. This method reduces the part search space and improves the recognition speed. However, since it is necessary to combine several superpixel blocks to construct the part, and it is easily affected by interference such as clothing and background, it increases the difficulty of establishing the part model. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a human body posture estimation method based on MRF superpixel labeling, which solves the problems of low efficiency of part search in posture estimation algorithm and susceptibility to interference from background and other human body parts.
[0005] The present invention is achieved in this way.
[0006] A method for estimating human posture based on MRF superpixel labeling, the method comprising:
[0007] The target image is divided into several super-pixel image blocks with similar features.
[0008] The superpixel MRF model is used to mark the parts of superpixel image blocks;
[0009] The whole image is traversed with a superpixel as the step length, and the superpixel center is used as the matching center of the rectangular part detector in the pose estimation algorithm. A set of rectangular areas centered on the superpixel center point is constructed to obtain the part search space of the target image.
[0010] Calculate the part matching scores of K part detectors and all rectangles in the part search space, where K is the number of superpixels.
[0011] Calculate the distance scores of adjacent parts according to the part deformation model;
[0012] The part matching scores and distance scores of all parts are added together to obtain the overall posture estimation score, and the posture with the highest total score is selected as the recognition result of each part.
[0013] Furthermore, the superpixel MRF model is used to mark the parts of the superpixel image blocks, including:
[0014] Assume image I = {V, E}, V(I) = {S1, S2, ..., SN}, Si is a superpixel image block, E(I) = {(Si, Sj) | Si and Sj are adjacent areas}, each superpixel image block is adjacent to several superpixel image blocks, and a neighborhood system is constructed;
[0015] Divide an image into a set of N super-pixel image blocks, and give the i-th super-pixel image block S in the set i A tag value c in the tag space of i , if any S i The tag value c i Only its adjacent image block S i The tag value c i If it is related to the image blocks, but not to the label values of other non-adjacent image blocks, the set of label values of the image blocks is regarded as a Markov random field;
[0016] The problem of maximizing the MRF posterior probability is converted into the problem of maximizing the energy function, which is expressed as follows:
[0017]
[0018] Translates to:
[0019] The conditional probability P(S|C) and the prior probability P(C) are expressed using the superpixel feature function and the relationship function respectively, and we get:
[0020]
[0021] Among them, α(S i ,c i) represents the superpixel feature function, w i Indicates S i The feature weight parameter of the image block is obtained through training, β(S i ,S j ,c i ,c j ) indicates S i With S j The superpixel relationship function of the relationship, w ij Indicates S i With S j The relationship weight parameters are obtained through training.
[0022] The score function Score(I,S,C) is maximized to obtain the optimal superpixel part label C.
[0023] Furthermore, the superpixel 82-dimensional feature is used to describe the superpixel feature function α(S i ,c i ), including color, texture, and shape characteristics.
[0024] Furthermore, the superpixel relationship function β(S i ,S j ,c i ,c j )include:
[0025] The expression of color similarity is:
[0026]
[0027] Among them, S i , S j Color histogram Y of two superpixels i k , Y j k The intersection of the two measures the color similarity s c (S i ,S j );
[0028] The gradient similarity is represented by the HOG histogram intersection of two superpixel patches:
[0029]
[0030] Among them, the gradient similarity s t (S i ,S j ) through HOG histogram t i k , t j k The intersection of ;
[0031] The scale is represented by the ratio of the two superpixels in the image:
[0032]
[0033] Among them, s s (S i ,S j ) is the scale information of the superpixel, size(S i )、size(S j ), size(I) represent super pixel blocks S i , S j and the number of pixels in the entire image;
[0034] The shape similarity of superpixels is represented by the bounding rectangle of two superpixels and their difference:
[0035]
[0036] Among them, s f (S i ,S j ) is shape compatibility, size(BB ij ) is the super pixel S i and S j The number of pixels in the common bounding rectangle of ;
[0037] The distance between two superpixels is represented by the sum of the similarities of color, gradient, scale, and shape features:
[0038] d(S i ,S j )=α·s c (S i ,S j )+β·s t (S i ,S j )+γ·s s (S i ,S j )+δ·s f (S i ,S j )
[0039] Among them, α, β, γ and δ represent the adjustment parameters of the similarity of the four types of features respectively;
[0040] In order to obtain the maximum optimization result, the superpixel relationship calculation is expressed as:
[0041]
[0042] Furthermore, the mean x and y coordinates of all pixels in the superpixel area are selected as the center point. The center point calculation method is:
[0043]
[0044] Furthermore, the overall posture estimation score calculation formula is
[0045] S(I,p,t)=P(I,p)+D(I,p)+C(t)
[0046] Among them, P(I,p) is the part matching score, which is represented by the part model; D(I,p) is the correlation score between parts, which is represented by the deformable model; C(t) is the score of each part direction, which is represented by the consistent model.
[0047] Furthermore, the part matching score is:
[0048]
[0049] in is the i-th part at position p in image I i The characteristic function of The i-th part belongs to t i The parameter obtained when the type is
[0050] Furthermore, the correlation score between parts is:
[0051]
[0052] in, To indicate that adjacent parts i and j belong to t i and t j The parameter taken when the type is i -p j ) represents the deformation function of adjacent parts i and j.
[0053] Furthermore, the scores of each part direction are:
[0054]
[0055] in, Indicates that the i-th part belongs to t i The parameters obtained under type, Indicates that adjacent parts i and j are at t i and t j The parameter obtained when the type is
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] In view of the problems that the posture estimation algorithm has low efficiency in searching for parts and is easily interfered by the background and other parts of the human body, the present invention introduces a superpixel MRF model and a square part detector to traverse superpixels to complete part matching. The superpixel extraction and labeling of the entire image are completed, and subsequent operations are performed in units of superpixels, which improves the overall posture estimation efficiency; the part search is performed in units of superpixels, and the superpixel center is used as the matching center of the square part detector for part identification. It can not only complete part matching quickly and accurately, but also reduce the interference of irregular image blocks that appear when constructing human body parts by splicing several superpixels. The experimental results on the data sets IP and LSP show that the posture estimation algorithm based on superpixels can effectively segment human body parts from the background, thereby improving the accuracy of posture estimation. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a flow chart of the method of the present invention;
[0059] Figure 2 It is a part labeling method of the superpixel MRF model of the method of the present invention;
[0060] Figure 3 is the super pixel S of the method of the present invention i Neighborhood system
[0061] Figure 4 To compare the pose estimation result images of the FMP algorithm with those of the present invention on the dataset IP DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. 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.
[0063] See also Figure 1 , which is a flow chart of a method for human posture estimation based on MRF superpixel labeling, the method includes:
[0064] The target image is divided into several super-pixel image blocks with similar features.
[0065] The superpixel MRF model is used to mark the parts of superpixel image blocks;
[0066] The whole image is traversed with a superpixel as the step length, and the superpixel center is used as the matching center of the rectangular part detector in the pose estimation algorithm. A set of rectangular areas centered on the superpixel center point is constructed to obtain the part search space of the target image.
[0067] Calculate the part matching scores of K part detectors and all rectangles in the part search space, where K is the number of superpixels.
[0068] Calculate the distance scores of adjacent parts according to the part deformation model;
[0069] The part matching scores and distance scores of all parts are added together to obtain the overall posture estimation score, and the posture with the highest total score is selected as the recognition result of each part.
[0070] If a pixel-based Markov random field is directly established, all pixels need to be traversed in each iteration, the operation time is long, and it is easily disturbed by the background. The present invention completes the establishment of the MRF model of the image based on superpixel segmentation.
[0071] See also Figure 2 , the superpixel MRF model is used to mark the parts of the superpixel image blocks, including:
[0072] Assume image I = {V, E}, V(I) = {S1, S2, ..., SN}, Si is a super-pixel image block, E(I) = {(Si, Sj) | Si and Sj are adjacent areas}, each super-pixel image block is adjacent to several super-pixel image blocks, and a neighborhood system is constructed; Figure 3 shown.
[0073] Divide an image into a set of N super-pixel image blocks, and give the i-th super-pixel image block S in the set i A tag value c in the tag space of i , if any S i The tag value c i Only its adjacent image block S i The tag value c i If it is related to the image blocks, but not to the label values of other non-adjacent image blocks, the set of label values of the image blocks is regarded as a Markov random field;
[0074] The problem of maximizing the MRF posterior probability is converted into the problem of maximizing the energy function, which is expressed as follows:
[0075]
[0076] Translates to:
[0077] The conditional probability P(S|C) and the prior probability P(C) are expressed using the superpixel feature function and the relationship function respectively, and we get:
[0078]
[0079] Among them, α(S i ,c i ) represents the superpixel feature function, w i Indicates Si The feature weight parameter of the image block is obtained through training, β(S i ,S j ,c i ,c j ) indicates S i With S j The superpixel relationship function of the relationship, w ij Indicates S i With S j The relationship weight parameters are obtained through training.
[0080] The score function Score(I,S,C) is maximized to obtain the optimal superpixel part label C.
[0081] Furthermore, the superpixel 82-dimensional feature is used to describe the superpixel feature function α(S i ,c i ), including color, texture, and shape characteristics.
[0082] ① Color
[0083] The color features used include the mean, mean square error, slope, and kurtosis of RGB and HSV (8×3 features).
[0084] ②Texture
[0085] The calculation of texture features mainly uses Gaussian convolution operator, Laplace operator, as well as the mean, mean square error, slope, and kurtosis (4×13 features) of features such as corners and edges.
[0086] The Gaussian convolution calculation formula is:
[0087] g=f*h
[0088] That is
[0089] The Laplace operator is the sum of two-dimensional differences, and the formula is
[0090]
[0091] Different Laplace kernels can be given according to different situations.
[0092] ③Shape
[0093] Including superpixel size (length, width, area), aspect ratio, area perimeter ratio, area circumscribed rectangle area ratio and other features (6 features).
[0094] In order to fully consider the overall information of the human body image and improve the robustness of superpixel segmentation, the relationship function β(S i ,S j ,ci ,c j ). Existing methods usually use Euclidean distance directly to complete the calculation of the distance between each part. The present invention uniformly describes the overall information of superpixels, gives the contributions of different adjacent superpixels, and integrates features such as color histogram, gradient histogram, scale and shape to complete the calculation of the relationship function. Compared with adjacent superpixels of different categories, adjacent superpixels of the same category have more similar color features and closer geometric distances.
[0095] Superpixel relationship function β(S i ,S j ,c i ,c j )include:
[0096] The expression of color similarity is:
[0097]
[0098] Among them, S i , S j Color histogram Y of two superpixels i k , The intersection of the two measures the color similarity s c (S i ,S j );
[0099] The gradient similarity is represented by the HOG histogram intersection of two superpixel patches:
[0100]
[0101] Among them, the gradient similarity s t (S i ,S j )Through the HOG histogram The intersection of ;
[0102] The scale is represented by the ratio of the two superpixels in the image:
[0103]
[0104] Among them, s s (S i ,S j ) is the scale information of the superpixel, size(S i )、size(S j ), size(I) represent super pixel blocks S i , S j and the number of pixels in the entire image;
[0105] The shape similarity of superpixels is represented by the bounding rectangle of two superpixels and their difference:
[0106]
[0107] Among them, s f (S i ,S j ) is shape compatibility, size(BB ij ) is the super pixel S i and S j The number of pixels in the common bounding rectangle of ;
[0108] The distance between two superpixels is represented by the sum of the similarities of color, gradient, scale, and shape features:
[0109] d(S i ,S j )=α·s c (S i ,S j )+β·s t (S i ,S j )+γ·s s (S i ,S j )+δ·s f (S i ,S j )
[0110] Among them, α, β, γ and δ represent the adjustment parameters of the similarity of the four types of features respectively;
[0111] In order to obtain the maximum optimization result, the superpixel relationship calculation is expressed as:
[0112]
[0113] Furthermore, the mean x and y coordinates of all pixels in the superpixel area are selected as the center point. The center point calculation method is:
[0114]
[0115] Furthermore, the overall posture estimation score calculation formula is
[0116] S(I,p,t)=P(I,p)+D(I,p)+C(t)
[0117] Among them, P(I,p) is the part matching score, which is represented by the part model; D(I,p) is the correlation score between parts, which is represented by the deformable model; C(t) is the score of each part direction, which is represented by the consistent model.
[0118] Furthermore, the part matching score is:
[0119]
[0120] in is the i-th part at position p in image I i The characteristic function of The i-th part belongs to t i The parameter obtained when the type is
[0121] Furthermore, the correlation score between parts is:
[0122]
[0123] in, To indicate that adjacent parts i and j belong to t i and t j The parameter taken when the type is i -p j ) represents the deformation function of adjacent parts i and j.
[0124] Furthermore, the scores of each part direction are:
[0125]
[0126] in, Indicates that the i-th part belongs to t i The parameters obtained under type, Indicates that adjacent parts i and j are at t i and t j The parameter obtained when the type is
[0127] In practical applications, a threshold needs to be set for multiple posture scores, and the postures with the highest scores are selected as candidate postures. For the same part of the same person, many overlapping windows may be obtained through reasoning, which need to be merged, so the non-maximum suppression method is used to obtain the optimal result. The specific solution is to first sort the scores of each part in a non-increasing manner; if the overlap rate exceeds 50%, the window is discarded. After obtaining the optimal posture, the backtracking method needs to be used to find the corresponding node p i and t i .
[0128] In order to simplify the search space and avoid missing parts, a square part detector is used to traverse all superpixels to complete the part search at various positions and scales. The square part detector can include human body parts into the detection window through transformations at different positions and scales, and does not require the tedious step of integrating superpixels into parts.
[0129] When determining the search position, the present invention selects the center point in the superpixel as the center point of the part search rectangle to complete the part search and identification. Since each superpixel is an irregular image block, the mean of the x, y coordinates of all pixels in the superpixel area is selected as the center point. Center point calculation method:
[0130]
[0131] The whole image is traversed with a superpixel as the step length, and a set of rectangular regions centered on the superpixel center is constructed to obtain the part search space of the test image. In order to detect human body parts of different scales, the rectangular regions in the image need to be scaled by a certain proportion. The matching scores of K part detectors and all rectangles in the part search space are calculated.
[0132] For an image of V×W(cel), the time complexity of searching a part using the FMP algorithm is O(V×W×L), while the time complexity of the superpixel-based search method of the present invention is O(K×L), where K is the number of superpixels. Assuming the cell size is 4×4 (pixels), for an image of 150×200 (pixels) in the test set, the value of V×W is approximately 1850. After superpixel extraction, the value of K is usually 100-300. Therefore, the method of the present invention can reduce the size of the part search space, and experimental results show that the method also improves the accuracy of posture estimation.
[0133] The present invention gives the running results of each algorithm on the dataset IP. The number of superpixels is set to 100, 150, and 200 respectively according to the size of the test image. The results of the present invention and other methods are compared as shown in Table 1.
[0134] Table 1
[0135]
[0136] The results of the data set IP show that the present invention obtains the highest average PCP when 150 superpixels are set, and the PCPs of the torso, legs and head are higher than those of other methods. The present invention obtains different results when the number of superpixels is set to 100, 150 and 200 respectively. When the number of superpixels is small, the algorithm executes faster and is less interfered with, but the true posture may be missed. For example, a superpixel contains multiple parts, resulting in only one part being detected. When the number of superpixels is large, the time efficiency decreases, the interference information increases, and it may degenerate into a cell-based part search method. Therefore, the corresponding number of superpixels needs to be set for images of different resolutions.
[0137] The experiment compares the pose estimation result images of the FMP algorithm and the present invention on the dataset IP, such as Figure 4 The left picture is the FMP result, the middle picture is the superpixel result, and the right picture is the result of the present invention.
[0138] The head is green, the arms are red and blue, the legs are cyan and pink, and the torso is yellow. The FMP algorithm makes a false detection in the arm part recognition process, detecting the clothes and background as arms. After the present invention performs part search based on superpixels, the arm part is correctly marked, and a better recognition effect is obtained.
[0139] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A human body posture estimation method based on MRF superpixel labeling, characterized in that: The method includes: Segment the target image into several super-pixel image blocks with similar features; The superpixel MRF model is used to mark the parts of superpixel image blocks; The whole image is traversed with a superpixel as the step length, and the superpixel center is used as the matching center of the rectangular part detector in the pose estimation algorithm. A set of rectangular areas centered on the superpixel center point is constructed to obtain the part search space of the target image. Calculate the part matching scores of K part detectors and all rectangles in the part search space, where K is the number of superpixels; Calculate the distance scores of adjacent parts according to the part deformation model; The part matching scores and distance scores of all parts are added together to obtain the overall posture estimation score, and the posture with the highest total score is selected as the recognition result of each part; The superpixel MRF model is used to mark the parts of superpixel image blocks, including: Assume image I = {V, E}, V(I) = {S1, S2, ..., SN}, Si is a superpixel image block, E(I) = {(Si, Sj) | Si and Sj are adjacent areas}, each superpixel image block is adjacent to several superpixel image blocks, and a neighborhood system is constructed; Divide an image into a set of N super-pixel image blocks, and give the i-th super-pixel image block S in the set i A tag value c in the tag space of i , if any S i The tag value c i Only its adjacent image block S i The tag value c i If it is related to the image blocks, but not to the label values of other non-adjacent image blocks, the set of label values of the image blocks is regarded as a Markov random field; The problem of maximizing the MRF posterior probability is converted into the problem of maximizing the energy function, which is expressed as follows: Translates to: The conditional probability P(S|C) and the prior probability P(C) are expressed using the superpixel feature function and the relationship function respectively, and we get: Among them, α(S i ,c i ) represents the superpixel feature function, w i Indicates S i The feature weight parameter of the image block is obtained through training, β(S i ,S j ,c i ,c j ) indicates S i With S j The superpixel relationship function of the relationship, w ij Indicates S i With S j The relationship weight parameters are obtained through training; Maximize the score function Score(I,S,C) and obtain the optimal superpixel part label C; Superpixel relationship function β(S i ,S j ,c i ,c j )include: The expression of color similarity is: Among them, S i , S j Color histogram Y of two superpixels i k , The intersection of the two measures the color similarity s c (S i ,S j ); The gradient similarity is represented by the HOG histogram intersection of two superpixel patches: Among them, the gradient similarity s t (S i ,S j )Through the HOG histogram The intersection of ; The scale is represented by the ratio of the two superpixels in the image: Among them, s s (S i ,S j ) is the scale information of the superpixel, size(S i )、size(S j ), size(I) represent super pixel blocks S i , S j and the number of pixels in the entire image; The shape similarity of superpixels is represented by the bounding rectangle of two superpixels and their difference: Among them, s f (S i ,S j ) is shape compatibility, size(BB ij ) is the super pixel S i and S j The number of pixels in the common bounding rectangle of ; The distance between two superpixels is represented by the sum of the similarities of color, gradient, scale, and shape features: d(S i ,S j )=α·s c (S i ,S j )+β·s t (S i ,S j )+γ·s s (S i ,S j )+δ·s f (S i ,S j ) Among them, α, β, γ and δ represent the adjustment parameters of the similarity of the four types of features respectively; In order to obtain the maximum optimization result, the superpixel relationship function is expressed as:
2. The method according to claim 1, characterized in that The superpixel feature function α(S i ,c i ), including color, texture, and shape characteristics.
3. The method according to claim 1, characterized in that Select the mean x,y coordinates of all pixels in the superpixel area as the center point, and the center point calculation method is:
4. The method according to claim 1, characterized in that The overall pose estimation score calculation formula S(I,p,t)=P(I,p)+D(I,p)+C(t) Among them, P(I,p) is the part matching score, which is represented by the part model; D(I,p) is the correlation score between parts, which is represented by the deformable model; C(t) is the score of each part direction, which is represented by the consistent model.
5. The method according to claim 1, characterized in that The site matching score is: in is the i-th part at position p in image I i The characteristic function of The i-th part belongs to t i The parameter obtained when the type is 6. The method according to claim 1, characterized in that The correlation scores between the sites are: in, To indicate that adjacent parts i and j belong to t i and t j The parameter taken when the type is i -p j ) represents the deformation function of adjacent parts i and j.
7. The method according to claim 1, characterized in that The scores for each part direction are: in, Indicates that the i-th part belongs to t i The parameters obtained under type, Indicates that adjacent parts i and j are at t i and t j The parameter obtained when the type is
