Human body shuttlecock motion posture evaluation method based on Sheng differential equation
Through neural constant differential equations and multi-scale atrous convolution technology, the 3D skeleton data information in human badminton is extracted, which solves the problems of low evaluation accuracy and narrow applicability in the existing technology, and realizes high-precision and simple process badminton. Postural assessment, suitable for many movement types.
Patent Information
- Application Number
- CN202410538148.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology has the problems of low evaluation accuracy, complicated process and narrow application range in human badminton posture evaluation. In particular, the evaluation accuracy of joints other than shoulders, elbows and wrists is insufficient, and it can only be applied to limited types of movements. .
A human badminton posture assessment method based on the God's constant differential equation is adopted. By obtaining 3D skeleton data, iteratively uses the multi-head attention mechanism and layer normalization for data enhancement, combines multi-scale atrous convolution to extract temporal information, and uses the graph God's regular The differential equation extracts spatial information, and finally realizes the assessment of human badminton posture assessment level.
It improves the evaluation accuracy, simplifies the evaluation process, and expands the applicable scope to more accurately evaluate a variety of badminton movements, including modeling of non-physical connection relationships between joints.
Smart Images

Figure CN118537685A
Abstract
Description
Technical Field
[0001] The invention relates to a method for evaluating a human body's badminton motion posture, in particular to a method for evaluating a human body's badminton motion posture based on a Neural Ordinary Differential Equation. Background Art
[0002] Human motion posture assessment refers to the process of quantitatively assessing the overall posture, limb position, joint angle, etc. of the human body in different movements by measuring and analyzing human motion. This assessment can provide key information about human posture, movement quality, and even sports skills, and can be used in health monitoring, sports training, rehabilitation therapy, and other fields.
[0003] Each type of movement has specific evaluation criteria, and experts can correctly evaluate a single type of action after years of training. However, due to the scarcity of expert resources, many athletes lack professional guidance and training. Therefore, it is of great significance to develop a method for evaluating movement posture. The literature "J.-H. Pan, J. Gao and W.-S. Zheng. Adaptive Action Assessment [J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 12, pp. 8779-8795, 2022." dynamically designs different evaluation frameworks for various action types, and constructs a trainable joint relationship graph for each type of action based on the human skeleton structure. However, it adaptively designs different evaluation frameworks for different sports actions. Although it has generalization, it lacks the pursuit of accuracy for a certain movement and has too high requirements on the number of parameters, and the evaluation process is complicated.
[0004] Badminton is a sport that combines strength, speed, endurance, flexibility, and reaction, and is highly representative and extensive. The literature "Zhao Xiaohu, Wang Kexin, Meng Xianfeng, et al. Research on badminton action evaluation method based on human posture estimation [J / OL]. Journal of Huazhong University of Science and Technology (Natural Science Edition): 1-9 [2024-04-24]. https: / / doi.org / 10.13245 / j.hust.240261." According to the characteristics of badminton swing action, a 14-point sparse representation model of human posture is proposed to evaluate the standard degree of swing action. Although it uses a lighter network MobileNet instead of the Vgg19 model to achieve lightweight model, it is a motion image processing. Compared with the input of human skeleton data, image data processing is more complicated, which makes the evaluation process complicated. In addition, the accuracy of its assessment of joints other than shoulders, elbows and wrists is not high enough. It only assesses the swinging movements of high balls, jump balls, drives, lobs and balls in front of the net, and its applicability is relatively narrow. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method for evaluating the posture of human body in badminton sports, which has high evaluation accuracy, simple process and wide applicability.
[0006] The technical solution adopted by the present invention to solve the above-mentioned technical problems is: a human badminton motion posture evaluation method based on Neural ordinary differential equations, by obtaining 3D skeleton data corresponding to the human badminton motion process, and then iteratively using a multi-head attention mechanism and layer normalization to enhance the 3D skeleton data, and then using multi-scale dilated convolution to extract time information and Neural ordinary differential equations to extract spatial information from the enhanced 3D skeleton data, and finally obtaining the human badminton motion posture evaluation level based on the iterative results.
[0007] The method for evaluating the posture of human body in badminton sports based on the Neural Ordinary Differential Equation comprises the following steps:
[0008] Step 1: Use the Azure Kinect camera to capture badminton action video, and parse the badminton action video through the Azure Kinect development toolkit to obtain 3D skeleton data. The 3D skeleton data is recorded as X = {x1, x2, ..., x T}, x t is the t-th frame action in the 3D skeleton data, t = 1, 2, .., T, T is the total number of action frames in the 3D skeleton data, x tis a tensor of size N×C, where N is the number of joints that the Azure Kinect development kit focuses on when parsing badminton action videos, N=21, and the N joints are: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot, and C is the Azure The coordinate dimension of each joint position obtained by Kinect's development toolkit when parsing the badminton action video is C=3. The N joints are numbered from 1 to 21: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot. The joint numbered i is called joint number i, i=1,2,...,N, and the joint numbered j is called joint number j, j=1,2,...,N, and j≠i;
[0009] Construct a tensor A of size N×N, and assign a value to tensor A according to whether joint i is directly connected to joint j. Specifically, if joint i is directly connected to joint j, assign a value of 1 to the position of the i-th row and j-th column in tensor A, that is, the value of the element of the i-th row and j-th column in tensor A is 1; otherwise, assign a value of 0, that is, the value of the element of the i-th row and j-th column in tensor A is 0, and assign a value of 1 to the position of the i-th row and i-th column in tensor A, that is, the value of the element of the i-th row and i-th column in tensor A is 1;
[0010] R evaluation levels are set for badminton movements according to whether the grip is correct, whether there is an early sideways movement, and whether the force movement is smooth, R=3, where incorrect grip, early sideways movement, and unsmooth force movement correspond to level 1; basically correct grip, some early sideways movement, and basically smooth force movement correspond to level 2; correct grip, no early sideways movement, and smooth force movement correspond to level 3;
[0011] Step 2: Set the integration time P, the time integration step Δt, the aggregation depth p, initialize p to 1, set P = 1, Δt = 0.5, and use x1, x2, ..., x T Construct a tensor of size T×(N×C) and record it as Y p-1 , x t Y p-1 The elements in the tth column of ;
[0012] Step 3: Perform the pth polymerization. The specific process is as follows:
[0013] S3-1. First construct a tensor of size (N×C)×h_d A tensor of size (N×C)×h_d and a tensor of size (N×C)×h_d Then they are randomly initialized by Gaussian distribution and Where h_d = 56;
[0014] Y p-1 and The result of multiplication is recorded as Q p , Y p-1 and The result of multiplication is recorded as K p , Y p-1 and The result of multiplication is recorded as V p , Q p Reshape into a tensor of size h×T×d, denoted as K p Reshape into a tensor of size h×T×d, denoted as V p Reshape into a tensor of size h×T×d, denoted as h=8,d=7, The transpose of The size is h×d×T;
[0015] Will and Multiply and normalize the result to get a tensor of size h×T×T, denoted as G p , G p With V p Multiplying together yields a tensor of size h×T×d, denoted as Will Reshape into a tensor of size T×h_d, denoted by Construct a tensor of size h_d×(N×C) Random initialization via Gaussian distribution Will and The result of multiplication is recorded as Z p ;
[0016] S3-2. Calculate Z p The mean μ p and variance σ p , through formula (1) to Z p Processing to obtain the standardized tensor F p :
[0017]
[0018] S3-3, for F pPerform dilated convolution. The specific process is as follows:
[0019] S3-3-1. Construct a convolution kernel f of size M×L M×L p , and initialize f randomly through Gaussian distribution M×L p , where M = 1, L = 2, 3, 5, 7, set dh = 1, dw = 2;
[0020] S3-3-2. Set two intermediate parameters M' and L', and use formula (2) and formula (3) to calculate M' and L' respectively:
[0021] M'=(M-1)×(dh-1)+M (2)
[0022] L'=(L-1)×(dw-1)+L (3)
[0023] S3-3-3. Construct an expanded convolution kernel f' of size M'×L' M'×L' p , f' M'×L' p The element in the mth row and lth column is denoted as f' M'×L' p (m,l), where m=1,2,...,M', l=1,2,...,L', and f' is calculated using formula (4) M'×L' p (m,l):
[0024]
[0025] In formula (4), mod means remainder operation. express In the mth row, Elements of a column;
[0026] S3-3-4. The number of zero-filling operations is recorded as ε, and ε is obtained using formula (5):
[0027]
[0028] S3-3-5. Construct a tensor of size T×(N×C) Will The element in row a and column b is recorded as a=1,2,...,T,b=1,2,...,(N×C), for F p Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor F of size T×(N×C+2ε) ε ' p ;
[0029] S3-3-6, using formula (6) to obtain
[0030]
[0031] In formula (6), f' M'×(2×ε+1) p (r,s) represents f' M'×(2×ε+1) p The element in the rth row and sth column of F, where r=1,2,...,M', s=1,2,...,(2×ε+1), ε ' p (a+r-1,b+s-1) represents F ε ' p The element in the a+r-1th row and b+s-1th column;
[0032] S3-3-7, We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Through the average pooling layer Process and reshape to obtain a tensor H of size T×(N×C) p ;
[0033] S3-4. Construct a node encoding tensor of size N×N and They are randomly initialized by Gaussian distribution and Will The transpose of p ,Will The transpose of p , via M1 p and Subtract the result of multiplication and The result of multiplication is E p ;
[0034] First obtain E p All the elements in each row of E are sorted in ascending order. When sorting, if two or more elements in a row are equal, these equal elements are sorted randomly, and then E is sorted. p To update, the specific update method is: according to the obtained E p The sorting results of all elements in each row are determined, and the elements from the 1st to the 9th position in the sorting results are determined in E p In the middle position, E p The elements at these positions in are updated to be equal to 0, and the positions of all elements in tensor A that are not equal to 0 are obtained, and Ep All elements in the same position in are updated to be equal to 0, and the updated E p Recorded as Will Add to A to get A p ;
[0035] S3-5. Construct a tensor D of size T×T p and a tensor W of size C×C p , respectively, by Gaussian distribution with
[0036] Machine Initialization D p and W p , for H p Reshape to obtain a tensor of size T×N×C, denoted as H′ p , D p , H′ p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as
[0037] S3-6, Yes Perform dilated convolution. The specific process is as follows:
[0038] S3-6-1, Yes Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor of size T×(N×C+2ε), denoted as
[0039] S3-6-2. Construct a tensor of size T×(N×C) Will The element in the ath row and bth column of Calculated using formula (7)
[0040]
[0041] In formula (7), express The element in the a+r-1th row and b+s-1th column;
[0042] S3-6-3, first We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Then through the average pooling layer Process and reshape to obtain a tensor of size T×(N×C), denoted as
[0043] S3-7, Yes Reshape it to get a tensor of size T×N×C, denoted as D p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as
[0044] Step 4: Determine whether the product of the current value of p and Δt is equal to P. If so, proceed directly to step 5. Otherwise, first construct a tensor Y of size T×(N×C) p ,make Then update p by adding 1 to the current value of p, and return to step 3 for the next aggregation;
[0045] Step 5: Y PΔt Reshape to get a tensor of size 1×(T×N×C), denoted as Y', construct a tensor W' of size (T×N×C)×R and initialize it with Gaussian distribution, multiply Y' and W' to get a tensor of size 1×R, denoted as Y out , through the normalization function Y out Processing is performed and the result is recorded as Y out ', Y out The value of the element in ' is the probability value;
[0046] Step 6. Get Y out ' and sort them from largest to smallest. When sorting, if two or more elements are equal, these elements are sorted randomly;
[0047] Step 7: Get the maximum value in the sorting result of step 6 in Y out ', the column number is recorded as S, and the evaluation level of human badminton posture is level S.
[0048] Compared with the prior art, the advantages of the present invention are that by adopting the attention mechanism and layer normalization to enhance the 3D skeleton data, the dependency relationship between different frames of the 3D skeleton data can be extracted, and the time information and spatial information of the 3D skeleton data can be extracted by multi-scale dilated convolution and graph-Neural ordinary differential equations, so that the information mining of the 3D skeleton data can be more comprehensive, thereby improving the evaluation accuracy, and by iterating based on the idea of Neural ordinary differential equations, multiple structure stacking can be achieved with a small number of parameters, making the evaluation process simple, and in addition, by extracting spatial information by graph-Neural ordinary differential equations, the non-physical connection relationship between human joints of different badminton movements can be modeled, and more badminton movements can be evaluated. Therefore, the present invention has high evaluation accuracy, simple process and wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the method for evaluating the posture of human body in badminton sports based on the Neural Ordinary Differential Equation of the present invention;
[0050] Figure 2 The figure is a comparison chart of the average accuracy rate, average recall rate, average F1-Score and average prediction rate of the human badminton motion posture evaluation method based on the neural ordinary differential equation of the present invention and the evaluation method using the existing feature extraction technology on the badminton action data. DETAILED DESCRIPTION
[0051] The present invention is further described in detail below with reference to the accompanying drawings.
[0052] Embodiment 1: Figure 1 As shown in the figure, a human badminton posture evaluation method based on Neural ODEs is proposed, which obtains the 3D skeleton data corresponding to the human badminton motion process, and then iteratively uses multi-head attention mechanism and layer normalization to enhance the 3D skeleton data. Multi-scale dilated convolution is used to extract time information and Neural ODEs are used to extract spatial information from the enhanced 3D skeleton data. Finally, the human badminton posture evaluation level is obtained based on the iterative results.
[0053] In this embodiment, by adopting the attention mechanism and layer normalization to enhance the 3D skeleton data, the dependency relationship between different frames of the 3D skeleton data can be extracted, and the time information and spatial information of the 3D skeleton data can be extracted by multi-scale void convolution and graph-Neural ordinary differential equations, so that the information mining of the 3D skeleton data can be more comprehensive, thereby improving the evaluation accuracy; by iterating based on the idea of Neural ordinary differential equations, multiple structures can be stacked with a small number of parameters, making the evaluation process simple; by extracting spatial information by graph-Neural ordinary differential equations, the non-physical connection relationship between human joints in different badminton movements can be modeled, so that more badminton movements can be evaluated, and it has a wide range of applications.
[0054] Embodiment 2: A method for evaluating human badminton posture based on Neural Ordinary Differential Equations, comprising the following steps:
[0055] Step 1: Use the Azure Kinect camera to capture badminton action video, and parse the badminton action video through the Azure Kinect development toolkit to obtain 3D skeleton data. The 3D skeleton data is recorded as X = {x1, x2, ..., x T}, x t is the t-th frame action in the 3D skeleton data, t = 1, 2, .., T, T is the total number of action frames in the 3D skeleton data, x t is a tensor of size N×C, where N is the number of joints that the Azure Kinect development kit focuses on when parsing badminton action videos, N=21, and the N joints are: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot, and C is the Azure The coordinate dimension of each joint position obtained by Kinect's development toolkit when parsing the badminton action video is C=3. The N joints are numbered from 1 to 21: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot. The joint numbered i is called joint number i, i=1,2,...,N, and the joint numbered j is called joint number j, j=1,2,...,N, and j≠i;
[0056] Construct a tensor A of size N×N, and assign a value to tensor A according to whether joint i is directly connected to joint j. Specifically, if joint i is directly connected to joint j, assign a value of 1 to the position of the i-th row and j-th column in tensor A, that is, the value of the element of the i-th row and j-th column in tensor A is 1; otherwise, assign a value of 0, that is, the value of the element of the i-th row and j-th column in tensor A is 0, and assign a value of 1 to the position of the i-th row and i-th column in tensor A, that is, the value of the element of the i-th row and i-th column in tensor A is 1;
[0057] R evaluation levels are set for badminton movements according to whether the grip is correct, whether there is an early sideways movement, and whether the force movement is smooth, R=3, where incorrect grip, early sideways movement, and unsmooth force movement correspond to level 1; basically correct grip, some early sideways movement, and basically smooth force movement correspond to level 2; correct grip, no early sideways movement, and smooth force movement correspond to level 3;
[0058] Step 2: Set the integration time P, the time integration step Δt, the aggregation depth p, initialize p to 1, set P = 1, Δt = 0.5, and use x1, x2, ..., x T Construct a tensor of size T×(N×C) and record it as Y p-1 , x t Y p-1 The elements in the tth column of ;
[0059] Step 3: Perform the pth polymerization. The specific process is as follows:
[0060] S3-1. First construct a tensor of size (N×C)×h_d A tensor of size (N×C)×h_d and a tensor of size (N×C)×h_d Then they are randomly initialized by Gaussian distribution and Where h_d = 56;
[0061] Y p-1 and The result of multiplication is recorded as Q p , Y p-1 and The result of multiplication is recorded as K p , Y p-1 and The result of multiplication is recorded as V p , Q p Reshape into a tensor of size h×T×d, denoted as K p Reshape into a tensor of size h×T×d, denoted as V p Reshape into a tensor of size h×T×d, denoted as h=8,d=7, The transpose of The size is h×d×T;
[0062] Will and Multiply and normalize the result to get a tensor of size h×T×T, denoted as G p , G p With V p Multiplying together yields a tensor of size h×T×d, denoted as Will Reshape into a tensor of size T×h_d, denoted by Construct a tensor of size h_d×(N×C) Random initialization via Gaussian distribution Will and The result of multiplication is recorded as Z p ;
[0063] S3-2. Calculate Z p The mean μ p and variance σ p , through formula (1) to Z p Processing to obtain the standardized tensor F p :
[0064]
[0065] S3-3, for F p Perform dilated convolution. The specific process is as follows:
[0066] S3-3-1. Construct a convolution kernel f of size M×L M×L p , and initialize f randomly through Gaussian distribution M×L p , where M = 1, L = 2, 3, 5, 7, set dh = 1, dw = 2;
[0067] S3-3-2. Set two intermediate parameters M' and L', and use formula (2) and formula (3) to calculate M' and L' respectively:
[0068] M'=(M-1)×(dh-1)+M (2)
[0069] L'=(L-1)×(dw-1)+L (3)
[0070] S3-3-3. Construct an expanded convolution kernel f' of size M'×L'M'×L' p , f' M'×L' p The element in the mth row and lth column is denoted as f' M'×L' p (m,l), where m=1,2,...,M', l=1,2,...,L', and f' is calculated using formula (4) M'×L' p (m,l):
[0071]
[0072] In formula (4), mod means remainder operation. express In the mth row, Elements of a column;
[0073] S3-3-4. The number of zero-filling operations is recorded as ε, and ε is obtained using formula (5):
[0074]
[0075] S3-3-5. Construct a tensor of size T×(N×C) Will The element in row a and column b is recorded as a=1,2,...,T,b=1,2,...,(N×C), for F p Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor F of size T×(N×C+2ε) ε ' p ;
[0076] S3-3-6, using formula (6) to obtain
[0077]
[0078] In formula (6), f' M'×(2×ε+1) p (r,s) represents f' M'×(2×ε+1) p The element in the rth row and sth column of F, where r=1,2,...,M', s=1,2,...,(2×ε+1), ε ' p (a+r-1,b+s-1) represents F ε ' p The element in the a+r-1th row and b+s-1th column;
[0079] S3-3-7, We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Through the average pooling layer Process and reshape to obtain a tensor H of size T×(N×C) p ;
[0080] S3-4. Construct a node encoding tensor of size N×N and M2 p , respectively, are randomly initialized by Gaussian distribution and Will The transpose of p ,Will The transpose of pass and Subtract the result of multiplication and The result of multiplication is E p ;
[0081] First obtain E p All the elements in each row of E are sorted in ascending order. When sorting, if two or more elements in a row are equal, these equal elements are sorted randomly, and then E is sorted. p To update, the specific update method is: according to the obtained E p The sorting results of all elements in each row are determined, and the elements from the 1st to the 9th position in the sorting results are determined in E p In the middle position, E p The elements at these positions in are updated to be equal to 0, and the positions of all elements in tensor A that are not equal to 0 are obtained, and E p All elements in the same position in are updated to be equal to 0, and the updated E p Recorded as Will Add to A to get A p ;
[0082] S3-5. Construct a tensor D of size T×T p and a tensor W of size C×C p , respectively, randomly initialize D through Gaussian distribution p and W p , for H p Reshape to obtain a tensor of size T×N×C, denoted as H′ p , D p , H′ p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as
[0083] S3-6, Yes Perform dilated convolution. The specific process is as follows:
[0084] S3-6-1, Yes Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor of size T×(N×C+2ε), denoted as
[0085] S3-6-2. Construct a tensor of size T×(N×C) Will The element in the ath row and bth column of Calculated using formula (7)
[0086]
[0087] In formula (7), express The element in the a+r-1th row and b+s-1th column;
[0088] S3-6-3, first We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Then through the average pooling layer Process and reshape to obtain a tensor of size T×(N×C), denoted as
[0089] S3-7, Yes Reshape it to get a tensor of size T×N×C, denoted as D p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as
[0090] Step 4: Determine whether the product of the current value of p and Δt is equal to P. If so, proceed directly to step 5. Otherwise, first construct a tensor Y of size T×(N×C) p ,make Then update p by adding 1 to the current value of p, and return to step 3 for the next aggregation;
[0091] Step 5: Y P / ΔtReshape to get a tensor of size 1×(T×N×C), denoted as Y', construct a tensor W' of size (T×N×C)×R and initialize it with Gaussian distribution, multiply Y' and W' to get a tensor of size 1×R, denoted as Y out , through the normalization function Y out Processing is performed and the result is recorded as Y out ', Y out The value of the element in ' is the probability value;
[0092] Step 6. Get Y out ' and sort them from largest to smallest. When sorting, if two or more elements are equal, these elements are sorted randomly;
[0093] Step 7: Get the maximum value in the sorting result of step 6 in Y out ', the column number is recorded as S, and the evaluation level of human badminton posture is level S.
[0094] In this embodiment, the extracted 3D skeleton data is aggregated through the idea of Neural Ordinary Differential Equations. In the specific aggregation step, step S3-1 is used to calculate the similarity between each frame in the 3D skeleton data and other frames, and the dependency between different frames is extracted. The multi-scale hole convolution operation in steps S3-3 and S-6 is used to extract time information. Steps S3-5 and S3-7 are used to learn the spatial information between human joints, so that the information mining of 3D skeleton data can be more comprehensive and the evaluation accuracy can be improved. In addition, by setting the integration time P and the time integration step Δt in step 3, multiple structures can be stacked while the number of parameters is small, making the evaluation process simple. By using A in step S3-4 p By modeling the non-physical connection relationship between human joints, the non-physical connection relationship between different human joints can be learned for different badminton movements, so more badminton movements can be evaluated, which has a wide range of applications.
[0095] In order to verify the performance of the human badminton posture evaluation method based on neural ordinary differential equations (NDTGCN for short) of the present invention, the human badminton posture evaluation method based on neural ordinary differential equations of the present invention is compared with ten evaluation methods using existing feature extraction technology in terms of average accuracy of prediction grade on badminton action data, average recall rate, average F1-Score, and average prediction rate. The comparison chart is as follows: Figure 2shown. The existing feature extraction technologies are the feature extraction technology disclosed in the document "Yan S, Xiong Y, Lin D. Spatial temporal graph convolutional networks for skeleton-based action recognition [C]. Proceedings of the AAAI conference on artificial intelligence, 2018, 32 (1)." (the evaluation method using this feature extraction technology is referred to as ST-GCN), the feature extraction technology disclosed in the document "Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need [J]. Advances in neural information processing systems, 2017, 30." (the evaluation method using this feature extraction technology is referred to as Transformer), the feature extraction technology disclosed in the document "Zhou H, Zhang S, Peng J, et al. Beyond efficient transformer for long sequence time-series forecasting. [J]. 2020, 17325: 11106-15." (the evaluation method using this feature extraction technology is referred to as Informer), and the feature extraction technology disclosed in the document "Zhou T, Ma Z, Wen Q, et al. al.Fedformer:Frequency enhanced decomposed transformer for long-term series forecasting[C].International Conference on Machine Learning,2022:27268-86.》(the evaluation method using this feature extraction technology is referred to as FEDformer), the feature extraction technology disclosed in the literature "Wu H,Hu T,Liu Y,etal.Timesnet:Temporal 2d-variation modeling for general time series analysis[J].arXiv preprint arXiv:221002186,2022." (the evaluation method using this feature extraction technology is referred to as Timesnet), the literature "Wu H,Xu J,Wang J,et al.Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting[J]. Advances in Neural Information Processing Systems, 2021, 34: 22419-30. " (the evaluation method using this feature extraction technology is referred to as Autoformer), and the literature "Zeng A, Chen M, Zhang L, et al. Are transformers effective for time series forecasting? [C]. Proceedings of the AAAI conference on artificial intelligence, 2023, 37(9): 11121-8.》 (the evaluation method using this feature extraction technology is referred to as DLinear), the feature extraction technology disclosed in the document "Wen YH, Gao L, Fu H, et al. Motif-GCNs with local and non-local temporal blocks for skeleton-based action recognition[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022, 45(2): 2009-23." (the evaluation method using this feature extraction technology is referred to as SMotif-GCNs), and the document "Lee J, Lee M, Lee D, et al. Hierarchically decomposed graph convolutional networks for skeleton-based action recognition[C]. Proceedings of the IEEE / CVFInternational Conference on Computer Vision, 2023:10444-53.》 (the evaluation method using this feature extraction technology is referred to as HDGCN), and the literature "Zhou Y, Cheng ZQ, Li C, et al. Hypergraph transformer for skeleton-based action recognition[J].arXivpreprint arXiv:221109590,2022.》(the evaluation method using this feature extraction technology is referred to as Hyperformer). .
[0096] Figure 2 In the figure, the horizontal axis represents ten methods using existing feature extraction technologies and the human badminton posture evaluation method based on neural ordinary differential equations of the present invention, and the vertical axis represents the values of four indicators, namely, average accuracy, average recall, average F1-Score and average prediction rate. The larger the four indicators, the better. The average accuracy is represented by Acc_ave; the average recall is represented by Recall_ave; the average F1-Score is represented by F1_ave; the average prediction rate is represented by Pre_ave; the black box represents the experimental results of the present invention, and the indicators represented by the bar graphs in the black box from left to right are Acc_ave, Recall_ave, F1_ave, and Pre_ave.
[0097] from Figure 2 It can be seen that the human body badminton posture assessment method based on the Neural Ordinary Differential Equation of the present invention has achieved the best in all indicators. It can be seen that compared with the existing ten feature extraction technologies, the present invention extracts time information and spatial information from 3D skeleton data through multi-scale dilated convolution and Neural Ordinary Differential Equation, which can mine the information of 3D skeleton data more comprehensively, thereby improving the assessment accuracy.
Claims
1. A method for evaluating human badminton posture based on Neural Ordinary Differential Equations. Features By obtaining the 3D skeleton data corresponding to the human body's badminton motion process, and then iteratively using the multi-head attention mechanism and layer normalization to enhance the 3D skeleton data, multi-scale dilated convolution is used to extract the temporal information of the enhanced 3D skeleton data, and the graph-based ordinary differential equation is used to extract the spatial information. Finally, the human body's badminton motion posture evaluation level is obtained based on the iterative results.
2. A method for evaluating human badminton posture based on Neural Ordinary Differential Equations according to claim 1, Features The following steps are involved: Step 1: Use the Azure Kinect camera to collect badminton action videos, and parse the badminton action videos through the Azure Kinect development toolkit to obtain 3D skeleton data. The 3D skeleton data is recorded as X = {x 1 ,x 2 ,...,x T }, x t is the t-th frame action in the 3D skeleton data, t = 1, 2, .., T, T is the total number of action frames in the 3D skeleton data, x t is a tensor of size N×C, where N is the number of joints that the Azure Kinect development kit focuses on when parsing badminton action videos, N=21, and the N joints are: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot, and C is the Azure The coordinate dimension of each joint position obtained by Kinect's development toolkit when parsing the badminton action video is C=3. The N joints are numbered from 1 to 21: head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hand, right hand, chest, spine, pelvis, left hip, right hip, left knee, right knee, left ankle, right ankle, left foot and right foot. The joint numbered i is called joint number i, i=1,2,...,N, and the joint numbered j is called joint number j, j=1,2,...,N, and j≠i; Construct a tensor A of size N×N, and assign a value to tensor A according to whether joint i is directly connected to joint j. Specifically, if joint i is directly connected to joint j, assign a value of 1 to the position of the i-th row and j-th column in tensor A, that is, the value of the element of the i-th row and j-th column in tensor A is 1; otherwise, assign a value of 0, that is, the value of the element of the i-th row and j-th column in tensor A is 0, and assign a value of 1 to the position of the i-th row and i-th column in tensor A, that is, the value of the element of the i-th row and i-th column in tensor A is 1; R evaluation levels are set for badminton movements according to whether the grip is correct, whether there is an early sideways movement, and whether the force movement is smooth, R=3, where incorrect grip, early sideways movement, and unsmooth force movement correspond to level 1; basically correct grip, some early sideways movement, and basically smooth force movement correspond to level 2; correct grip, no early sideways movement, and smooth force movement correspond to level 3; Step 2: Set the integration time P, time integration step Δt, aggregation depth p, initialize p to 1, set P = 1, Δt = 0.5, and use x 1 ,x 2 ,...,x T Construct a tensor of size T×(N×C) and record it as Y p-1 , x t Y p-1 The elements in the tth column of ; Step 3: Perform the pth polymerization. The specific process is as follows: S3-1. First construct a tensor of size (N×C)×h_d A tensor of size (N×C)×h_d and a tensor of size (N×C)×h_d Then they are randomly initialized by Gaussian distribution and Where h_d = 56; Y p-1 and The result of multiplication is recorded as Q p , Y p-1 and The result of multiplication is recorded as K p , Y p-1 and The result of multiplication is recorded as V p , Q p Reshape into a tensor of size h×T×d, denoted as K p Reshape into a tensor of size h×T×d, denoted as V p Reshape into a tensor of size h×T×d, denoted as h=8,d=7, The transpose of The size is h×d×T; Will and Multiply and normalize the result to get a tensor of size h×T×T, denoted as G p , G p With V p Multiplying together yields a tensor of size h×T×d, denoted as Will Reshape into a tensor of size T×h_d, denoted by Construct a tensor of size h_d×(N×C) Random initialization via Gaussian distribution Will and The result of multiplication is recorded as Z p ; S3-2. Calculate Z p The mean μ p and variance σ p , through formula (1) to Z p Processing to obtain the standardized tensor F p : S3-3, for F p Perform dilated convolution. The specific process is as follows: S3-3-1. Construct a convolution kernel f of size M×L M×L p , and initialize f randomly through Gaussian distribution M×L p , where M = 1, L = 2, 3, 5, 7, set dh = 1, dw = 2; S3-3-2. Set two intermediate parameters M' and L', and use formula (2) and formula (3) to calculate M' and L' respectively: M'=(M-1)×(dh-1)+M (2) L'=(L-1)×(dw-1)+L (3) S3-3-3. Construct an expanded convolution kernel f' of size M'×L' M'×L' p , f' M'×L' p The element in the mth row and lth column is denoted as f' M'×L' p (m,l), where m=1,2,...,M', l=1,2,...,L', and f' is calculated using formula (4) M'×L' p (m,l): In formula (4), mod means remainder operation. express In the mth row, Elements of a column; S3-3-4. The number of zero-filling operations is recorded as ε, and ε is obtained using formula (5): S3-3-5. Construct a tensor of size T×(N×C) Will The element in row a and column b is recorded as a=1,2,...,T,b=1,2,...,(N×C), for F p Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor F of size T×(N×C+2ε) ε ' p ; S3-3-6, using formula (6) to obtain In formula (6), f' M'×(2×ε+1) p (r,s) represents f' M'×(2×ε+1) p The element in the rth row and sth column of F, where r=1,2,...,M', s=1,2,...,(2×ε+1), ε ' p (a+r-1,b+s-1) represents F ε ' p The element in the a+r-1th row and b+s-1th column; S3-3-7, We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Through the average pooling layer Process and reshape to obtain a tensor H of size T×(N×C) p ; S3-4. Construct a node encoding tensor of size N×N and They are randomly initialized by Gaussian distribution and Will The transpose of Will The transpose of pass and Subtract the result of multiplication and The result of multiplication is E p ; First obtain E p All the elements in each row of E are sorted in ascending order. When sorting, if two or more elements in a row are equal, these equal elements are sorted randomly, and then E is sorted. p To update, the specific update method is: according to the obtained E p The sorting results of all elements in each row are determined, and the elements from the 1st to the 9th position in the sorting results are determined in E p In the position, E p The elements at these positions in are updated to be equal to 0, and the positions of all elements in tensor A that are not equal to 0 are obtained, and E p All elements in the same position in are updated to be equal to 0, and the updated E p Recorded as Will Add to A to get A p ; S3-5. Construct a tensor D of size T×T p and a tensor W of size C×C p , respectively, randomly initialize D through Gaussian distribution p and W p , for H p Reshape to obtain a tensor of size T×N×C, denoted as H′ p , D p , H′ p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as S3-6, Yes Perform dilated convolution. The specific process is as follows: S3-6-1, Yes Perform ε times of zero-filling operations on the (N×C) dimension to obtain a tensor of size T×(N×C+2ε), denoted as S3-6-2. Construct a tensor of size T×(N×C) Will The element in the ath row and bth column of Calculated using formula (7) In formula (7), express The element in the a+r-1th row and b+s-1th column; S3-6-3, first We can obtain the following by sequentially splicing in the order of ε=1, 2, 4, and 6: Then through the average pooling layer Process and reshape to obtain a tensor of size T×(N×C), denoted as S3-7, Yes Reshape it to get a tensor of size T×N×C, denoted as D p , A p and W p Multiply them one by one, and the result is recorded as right Reshape it to get a tensor of size T×(N×C), denoted as Step 4: Determine whether the product of the current value of p and Δt is equal to P. If so, proceed directly to step 5. Otherwise, first construct a tensor Y of size T×(N×C) p ,make Then update p by adding 1 to the current value of p, and return to step 3 for the next aggregation; Step 5: Y PΔt Reshape to get a tensor of size 1×(T×N×C), denoted as Y', construct a tensor W' of size (T×N×C)×R and initialize it with Gaussian distribution, multiply Y' and W' to get a tensor of size 1×R, denoted as Y out , through the normalization function Y out Processing is performed and the result is recorded as Y out ', Y out The value of the element in ' is the probability value; Step 6. Get Y out ' and sort them from largest to smallest. When sorting, if two or more elements are equal, these elements are sorted randomly; Step 7: Get the maximum value in the sorting result of step 6 in Y out ', the column number is recorded as S, and the evaluation level of human badminton posture is level S.
