Sports test-oriented three-dimensional attitude estimation method and application thereof
Through the three-dimensional posture estimation method and Gaussian mixture model, combined with video and physiological information, it solves the problem of monitoring safety hazards of testers in college sports tests, achieves timely early warning of syncope, shock, etc., and improves safety.
Patent Information
- Application Number
- CN202410620645.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
AI Technical Summary
In college sports tests, teachers are unable to supervise each student one-on-one. As a result, in challenging tests such as long-distance running, test subjects may suffer from serious safety problems such as syncope and shock due to their body being unable to bear it. Existing campus surveillance The system cannot estimate safety hazards and provide early warning in real time.
Using a three-dimensional posture estimation method for sports testing, by acquiring video data and physiological information, a Gaussian mixture model is established for forward diffusion and reverse diffusion, and three-dimensional posture features are extracted, and combined with physiological information to determine abnormal status and provide real-time warning.
It achieves precise monitoring of the tester's posture and physiological information, improves the accuracy and efficiency of safety warnings, avoids dangerous situations that no one knows about, and significantly improves the accuracy of monocular three-dimensional posture estimation.
Smart Images

Figure CN118587761A
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional posture estimation for sports testing, and in particular to a three-dimensional posture estimation method for sports testing, a three-dimensional posture estimation system for sports testing, an electronic device, and a computer-readable storage medium. Background Art
[0002] At present, artificial intelligence technology has been widely used in many fields, such as sports tests in college activities, dance learning and other scenes of training, guidance, supervision, artificial intelligence plays a vital role due to its convenient technology. Smart campus refers to the use of advanced information technology and intelligent equipment to digitize, network and intelligentize all aspects of the school's comprehensive management system, aiming to improve the school's education and teaching quality, management efficiency and safety issues, and provide a better learning, teaching and working environment for testers, teachers and administrators. In college sports testing projects, teachers are usually unable to conduct one-to-one targeted supervision of each student, and for teachers, paying attention to the status of all testers during physical tests for a long time will not only greatly increase the workload of teachers, but also affect the status of teachers due to this boring method, so that some testers may not be able to be warned in time that serious safety problems may occur, such as fainting and shock during long-distance running.
[0003] In the long-distance running event of the physical test, college testers usually have a decline in physical health due to lack of exercise. In a challenging physical test such as long-distance running, it is very likely that some testers will have serious safety problems, such as fainting and shock, because their bodies cannot bear it. Testers in this situation are in danger of life without anyone knowing. The existing campus monitoring system can often only monitor the real-time images of various scenes. It is impossible to estimate whether there are safety hazards for testers after the physical test, nor can it warn relevant medical personnel based on the real-time images of the playground, and it is impossible to send notifications to school security personnel, class teachers, and testers' parents. Summary of the invention
[0004] In order to overcome the defects of the above-mentioned prior art, an embodiment of the present invention provides a three-dimensional posture estimation method and its application for sports testing, which can identify the posture and physiological information of the tester in the sports testing scenario, and predict whether there are serious safety problems such as syncope, shock, etc.
[0005] Specifically, the present invention provides a three-dimensional posture estimation method for sports testing, comprising: obtaining video data of a tester during exercise, extracting a true three-dimensional posture distribution P0 according to the video data; establishing a Gaussian mixture model to describe noise, and adding the noise to the true three-dimensional posture distribution P0 in a forward diffusion process, gradually diffusing the true three-dimensional posture distribution P0 with relatively low uncertainty to an initial three-dimensional posture distribution P0 with relatively high uncertainty. K ; Establish a reverse diffusion model according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and distribute the initial three-dimensional posture P according to the reverse diffusion model K Perform step-by-step denoising to obtain the target three-dimensional posture features; obtain the tester's physiological information during movement in real time, fuse the target three-dimensional posture features with the physiological information, and set a preset threshold based on the fusion result to judge the abnormal state of the tester.
[0006] In one embodiment of the present invention, by using the intermediate noise samples To bridge the true 3D pose distribution p0 and the initial 3D pose distribution p K , p0 to p K The posterior distribution b(p 1:K |p0) is expressed as: Among them, M r (p k |.) means sampling p under given parameter conditions k The possibility of 1:K ∈(0,1) K is a fixed decreasing sequence used to control the noise scaling of each diffusion step; the posterior representation of the diffusion process with step size k is: p k It is expressed as a linear combination of the true 3D posture distribution p0 and the noise variable ∈: Sample p0 and noise sample generated by forward diffusion The diffusion model is optimized to approximate the reverse diffusion process. Each reverse diffusion step can be expressed as a function f, expressed as p k and the reverse diffusion model w generates output p for input k-1 =f(p k , w).
[0007] In one embodiment of the present invention, M represents the number of Gaussian components in the Gaussian mixture model GMM, and the Gaussian parameters are optimized using the expectation maximization (EM) algorithm. So fitting P K , expressed as: in For P K NGMM posture, is the GMM parameter; μ m ∈R 3J ,∑ m ∈R 3J ×3J is the mean and covariance matrix of the mth Gaussian component; π m ∈[0,1] is an arbitrary sample From the mth mixed component The probability of extraction.
[0008] In one embodiment of the present invention, the true posture distribution P0 is forward diffused so that the noise distribution generated after k steps is With the fitted GMM distribution Equivalent, expressed as: in, is from the generating distribution P K The generated samples of 1 m ∈{0,1} is the binary value of the mth component, such that Prob(1 m =1) =π m .
[0009] In one embodiment of the present invention, the Gaussian mixture model GMM is used to represent P in the reverse diffusion process. K , generating an intermediate distribution Use the distribution-optimized back-diffusion model w to learn the back-diffusion process Gradually get rid of The uncertainty is reconstructed to determine the true 3D posture distribution P0.
[0010] In one embodiment of the present invention, the three-dimensional posture estimation method for sports testing further includes: extracting the 2D posture by a 2D posture detector, and The predicted results calculate the posture distribution; P K Initialize and use the EM algorithm to find P K Optimal GMM parameters based on Generated using the real 3D pose distribution P0 According to probability Take a component for the i-th set use The Gaussian component of the i-th set is increased Using context encoder Extracting spatiotemporal context f ST Optimize the model parameters θ, given by Gradual Reconstruction The loss Los is expressed as:
[0011] In one embodiment of the present invention, the physiological information includes blood oxygen saturation information, and the feature extraction formula is: Among them, ε α is the total absorption coefficient of arterial blood; α is the concentration of arterial blood; V α is the volume of arterial blood; when the volume of arterial blood vessels in the transparent area changes by ΔV α When , its light intensity changes by Δ.
[0012] In addition, the embodiment of the present invention further proposes a three-dimensional posture estimation device for sports testing, including: a three-dimensional posture extraction module, used to obtain video data of the tester during the movement process, and extract the real three-dimensional posture distribution P0 according to the video data; a forward diffusion module, used to establish a Gaussian mixture model to describe noise, and add the noise to the real three-dimensional posture distribution P0 during the forward diffusion process, so as to gradually diffuse the real three-dimensional posture distribution P0 with relatively low uncertainty to the initial three-dimensional posture distribution P0 with relatively high uncertainty. K ; A reverse diffusion module, for establishing a reverse diffusion model according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and for distributing the initial three-dimensional posture P according to the reverse diffusion model; K Perform step-by-step denoising to obtain the target's three-dimensional posture features; a state judgment module is used to obtain the tester's physiological information during movement in real time, fuse the target's three-dimensional posture features with the physiological information, and set a preset threshold based on the fusion result to judge the tester's abnormal state.
[0013] Furthermore, an embodiment of the present invention also proposes an electronic device, comprising: a memory and one or more processors connected to the memory, the memory storing a computer program, and the processor being used to execute the computer program to implement the three-dimensional posture estimation method for sports testing as described in any one of the above embodiments.
[0014] Furthermore, an embodiment of the present invention further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the three-dimensional posture estimation method for sports testing as described in any one of the above embodiments.
[0015] It can be seen from the above that the above embodiments of the present invention can have the following beneficial effects:
[0016] (1) By obtaining the three-dimensional posture information of the tester during the movement process, and extracting the tester's standard physiological information through data modeling for training and testing, more accurate three-dimensional posture features can be obtained to more comprehensively judge the tester's limb movement amplitude. When the output three-dimensional posture feature prediction is greater than the threshold compared with the general behavior posture, it can be processed in time, and relevant personnel can be warned in time when the tester has a safety hazard, effectively avoiding the tester from being in danger without anyone knowing;
[0017] (2) The method using the diffusion model can obtain the best mean per joint position error (MPJPE) result when detecting 2D posture, which is significantly more accurate than existing methods and can be effectively applied to monocular 3D posture estimation.
[0018] (3) By using the internal features of the video information of the sports test and taking the heat map and the depth score predicted by the context encoder as the input of the model, the fixed and tedious steps of manual feature extraction are further simplified, and the automatic extraction of its multiple essential features is achieved end-to-end, thereby effectively improving the accuracy and efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 A flowchart of a three-dimensional posture estimation method for sports testing provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of obtaining data of a tester during exercise in a sports test scenario provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of the principle of a method for estimating a three-dimensional human body posture provided by an embodiment of the present invention;
[0023] Figure 4 A flow chart of pulse and blood oxygen saturation physiological signal feature extraction provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable ordinary technicians in the field to better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments, and all should belong to the protection scope of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are applicable to distinguishing similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or are proprietary to these processes, methods, products or devices.
[0029] It should also be noted that the division of multiple embodiments in the present invention is only for the convenience of description and should not constitute a special limitation. The features in various embodiments can be combined and referenced to each other without contradiction.
[0030] like Figure 1 As shown, the first embodiment of the present invention proposes a 3D posture estimation method for sports testing, for example, comprising: step S1, obtaining video data of the tester during the movement, and extracting the real 3D posture distribution P0 according to the video data; step S2, establishing a Gaussian mixture model to describe noise, and adding the noise to the real 3D posture distribution P0 in the forward diffusion process, gradually diffusing the real 3D posture distribution P0 with relatively low uncertainty to the initial 3D posture distribution P0 with relatively high uncertainty K Step S3, establishing a reverse diffusion model according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and distributing the initial three-dimensional posture P according to the reverse diffusion model K Perform step-by-step denoising to obtain the target three-dimensional posture features; step S4, obtain the physiological information of the tester during the movement in real time, fuse the target three-dimensional posture features with the physiological information, and set a preset threshold according to the fusion result to judge the abnormal state of the tester.
[0031] like Figure 2As shown in the figure, the Spre diffusion process transforms p K Converted to p0, through a set of intermediate noise samples To bridge the true 3D pose distribution p0 as the source sample and the initial 3D pose distribution p with Gaussian noise added K .
[0032] Specifically, p0 to p K The posterior distribution b(p 1:K |p0) is expressed as:
[0033]
[0034]
[0035] Among them, M r (p k |.) means sampling p under given parameter conditions k The possibility of 1:K ∈(0,1) K is a fixed decreasing sequence that controls the noise scaling at each diffusion step.
[0036] The posterior representation of the diffusion process with step size k is:
[0037]
[0038] Furthermore, p k It can be expressed as a linear combination of the source sample p0 and the noise variable ∈, where each element of ∈ is sampled from N(0, 1), as follows:
[0039]
[0040] Sample p0 and noise sample generated by forward diffusion Optimize the diffusion model w (usually a deep network parameterized by θ) to approximate the back-diffusion process.
[0041] Each back-diffusion step can be represented as a function f, expressed in terms of p k and diffusion model w as input, generating output p k-1 , as shown below:
[0042] p k-1 =f(p k , w);
[0043] During testing, it is easy to sample Gaussian noise p k , and the reverse diffusion step introduced in the above formula can be repeatedly performed to generate high-quality samples p0 using the trained diffusion model w.
[0044] like Figure 3 As shown in the forward diffusion process of step S2, a Gaussian mixture model (GMM) is proposed to estimate the uncertainty distribution P of the 3D pose estimation. K Modeling was carried out, and on the basis of the fitted GMM model, the corresponding GMM-based forward diffusion process was performed.
[0045] Specifically, M represents the number of Gaussian components in the Gaussian mixture model GMM, and the expectation maximization (EM) algorithm is used to optimize the Gaussian parameters. So as to fit the target distribution P K , the expression is as follows:
[0046]
[0047] in is the posture distribution P K N GMM posture, is the GMM parameter; μ m ∈R 3J ,∑ m ∈R 3J×3J is the mean and covariance matrix of the mth Gaussian component; π m ∈[0,1] is an arbitrary sample From the mth mixed component The probability of extraction.
[0048] Next, the true posture distribution P0 is forward diffused so that after k steps, the generated noise distribution With the fitted GMM distribution is equivalent, so it is written as Because it is based on GMM p K To this end, It can be expressed as:
[0049]
[0050] in, is from the generating distribution P K The generated samples of 1 m ∈{0,1} is the binary value of the mth component, such that
[0051] Prob(1 m =1) =π m .
[0052] That is to say, first according to their respective probabilities π m Sampling a component Only is 1, and then use and for this component It is worth noting that when α k ≈0, It is obtained by fitting the Gaussian mixture model GMM, that is, Therefore, it is allowed to as a regulatory signal.
[0053] In step S3, the physiological signal is feature extracted to obtain the tester's pulse and blood oxygen saturation feature information. The Spre reverse diffusion process aims to extract the characteristic information from the uncertain posture distribution P K Recover the determined target 3D posture distribution P0. In the previous step, the GMM model is used to represent P K , generating an intermediate distribution Use these distributions to optimize the diffusion model w (with parameters θ) to learn the reverse diffusion process Gradually get rid of The uncertainty of is reconstructed and the source distribution P0 is determined.
[0054] Specifically, using context encoder Extract f from a 2D pose sequence ST In addition, in order for the diffusion model to learn to properly denoise samples at each diffusion step, a unique step embedding is generated through a sine function to denote the kth diffusion step. Then, for A noisy pose sampled from Use the diffusion model w, diffusion step k and spatiotemporal background features f ST As a condition, from Gradually rebuild The expression is as follows:
[0055]
[0056] The 2D heatmap and estimated 2D pose are extracted through the 2D pose detector, which includes:
[0057] Based on the training set or context encoder The predicted results calculate the posture distribution;
[0058] According to the three-dimensional distribution of joints, P K Initialize and use the EM algorithm to find P K Optimal GMM parameters
[0059] based on Generated using the real 3D pose P0 According to probability Take a component for the i-th set use The Gaussian component of the i-th set is increased
[0060]
[0061] Using context encoder Extracting spatiotemporal context f ST Optimize the model parameters θ, given by Gradual Reconstruction The loss Los is expressed as:
[0062] In the reverse diffusion process, And repeatedly input it into the diffusion model w K times to obtain N high-quality 3D poses
[0063] Mapping from one distribution to another requires N noisy poses. In order to obtain the final high-quality and reliable pose p s , calculate the average value of N denoised samples
[0064] Calculate the HF distance of each part of the tester during physical testing and normal running. The HF distance is the maximum distance from one set to the nearest point in another set. More formally, the HF distance from set A to set B is a maximin function, defined as:
[0065] HF(A,B)=max a∈A {min b∈B {ds(a,b)}};
[0066] where a and b are points of sets A and B respectively, and ds(a,b) is any metric between these points; it should be noted that the HF distance is directional (or asymmetric), and this asymmetry is a property of the maximin function, while the minimin function is symmetric.
[0067] Combination Figure 4 As shown, in step S4, the blood oxygen saturation feature extraction method process is as follows:
[0068] During the data collection stage, a smart bracelet is used to collect the pulse and blood oxygen saturation of the tester during the physical test, and the collected data is preprocessed.
[0069] In the feature extraction stage, after obtaining physiological data, feature extraction is performed on physiological signals. When the physiological signal is blood oxygen saturation, the blood oxygen saturation information is calculated based on the method of detecting blood volume changes by photoelectric means, and then feature extraction is performed. The formula is:
[0070]
[0071] Among them, ε α is the total absorption coefficient of arterial blood; α is the concentration of arterial blood; V α is the volume of arterial blood; when the volume of arterial blood vessels in the transparent area changes by ΔV α When , its light intensity changes by Δ.
[0072]
[0073] The above formula is processed by taking:
[0074]
[0075] The light intensity signal is converted into an electrical signal, and the change in blood volume can be detected from the rate of change of light intensity. It should be noted that after the physiological data is collected, preprocessing is performed to prepare the data for subsequent analysis and feature extraction. These data usually include the intensity, time delay and phase information of the reflected signal. The goal of preprocessing is to ensure that the collected data is clean, accurate and suitable for subsequent analysis to obtain the final physiological parameters. The preprocessed data is input into the feature extractor to perform a convolution operation through the convolution layer of the feature extractor to extract the feature map, and then the spatial dimension of the feature map is reduced through the pooling layer to retain important physiological characteristic information, and the reduced feature map is mapped to the output layer to obtain a feature vector.
[0076] This step is to convert the preprocessed data into abstract characteristic features for subsequent accurate physiological parameter extraction, which involves the use of convolutional neural networks (CNNs), which are effective tools for image and signal processing in the field of deep learning. The input data is preprocessed data, a multidimensional matrix that contains signal information from microwave radar sensors. These data can contain multiple channels, each corresponding to different sensor characteristics or reflection characteristics.
[0077] In the convolution layer, the convolutional neural network uses a set of convolution kernels to slide and perform convolution operations to extract features. Each convolution kernel is a small window that slides over the input data to perform a convolution operation. The convolution operation generates a feature map by weighted summing of the local area of the input data. This feature map captures feature information at different locations, such as edges, textures, etc. The weights of the convolution kernels are parameters that need to be learned, and they are used to extract useful features from the data. After each convolution operation, a nonlinear activation function, such as a rectified linear unit, is usually applied to introduce nonlinear properties to improve the representation ability of the network. The activation function sets negative numbers to zero and keeps positive numbers unchanged.
[0078] The pooling layer is used to reduce the spatial dimension of the feature map, thereby reducing computational complexity and preventing overfitting. The most common pooling operation is maximum pooling, which selects the maximum value in each pooling window, or average pooling, which calculates the average of the values within the window. The pooling operation helps to retain the main feature information (information related to physiological characteristics) and reduce the dimension of the data.
[0079] After the convolution and pooling operations, there are one or more fully connected layers, which are used to map the reduced feature maps to the output layer to obtain the final feature representation. In the fully connected layer, the dimension of the feature vector is gradually reduced, and finally a feature vector representing the physiological characteristics is produced.
[0080] The results obtained by the formula are divided into shorter time segments, and relevant features are extracted from them to help the model better understand and identify the temporal changes in the tester's state.
[0081] According to the three-dimensional posture estimation and pulse and blood oxygen saturation physiological signal recognition results of the examinee in the physical test at different times, the feature fusion is comprehensively judged whether it is greater than the threshold f. If it is greater than the threshold f, the examinee has abnormal behavior. If it is less than the threshold f, the examinee is in a normal state. The feature fusion rules are as follows:
[0082]
[0083]
[0084]
[0085] Based on the abnormal behavior judgment results, the medical staff will be warned of the examinee's abnormal behavior, and the medical staff can take corresponding intervention measures to prevent the occurrence of abnormal behaviors such as coma and shock.
[0086] In addition, the second embodiment of the present invention further proposes a three-dimensional posture estimation device for sports testing, including: a three-dimensional posture extraction module, a forward diffusion module, a reverse diffusion module and a state judgment module.
[0087] The three-dimensional posture extraction module is used to obtain the video data of the tester during the movement, and extract the real three-dimensional posture distribution P0 according to the video data; the forward diffusion module is used to establish a Gaussian mixture model to describe the noise, and add the noise to the real three-dimensional posture distribution P0 during the forward diffusion process, so as to gradually diffuse the real three-dimensional posture distribution P0 with relatively low uncertainty to the initial three-dimensional posture distribution P0 with relatively high uncertainty. K; A reverse diffusion module, for establishing a reverse diffusion model according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and for distributing the initial three-dimensional posture P according to the reverse diffusion model; K Perform step-by-step denoising to obtain the target's three-dimensional posture features; a state judgment module is used to obtain the tester's physiological information during movement in real time, fuse the target's three-dimensional posture features with the physiological information, and set a preset threshold based on the fusion result to judge the tester's abnormal state.
[0088] It is worth mentioning that the method implemented by the three-dimensional posture estimation device for sports testing disclosed in the second embodiment of the present invention is as described in the first embodiment, so it will not be described in detail here. Optionally, the various modules and the above-mentioned other operations or functions in the second embodiment are respectively for implementing the method described in the first embodiment, and the beneficial effects of the three-dimensional posture estimation device for sports testing provided by this embodiment are the same as the beneficial effects of the three-dimensional posture estimation method for sports testing provided by the first embodiment, and for the sake of brevity, they are not repeated here.
[0089] The third embodiment of the present invention further proposes an electronic device 30, for example, comprising: at least one processing unit 31, and at least one storage unit 32, wherein the storage unit 32 stores a computer program, and when the computer program is executed by the processing unit, the processing unit 31 executes the method described in the first embodiment, and the beneficial effects of the electronic device 30 provided by this embodiment are the same as the beneficial effects of the three-dimensional posture estimation method for sports testing provided by the first embodiment.
[0090] The fourth embodiment of the present invention also provides a computer-readable storage medium 40 on which a computer program is stored. When the program is executed by a processor, the steps of the above method are implemented. The beneficial effects of the computer-readable storage medium 40 provided by this embodiment are the same as the beneficial effects of the three-dimensional posture estimation method for sports testing provided by the first embodiment.
[0091] Among them, computer-readable storage media may include, but are not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0092] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0093] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0094] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0097] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.
[0098] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0099] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
[0100] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0101] It will be easily understood by those skilled in the art that 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 three-dimensional pose estimation method for sports testing, It is characterized in that include: Obtain video data of the tester during movement, and extract the true three-dimensional posture distribution P according to the video data 0 ; A Gaussian mixture model is established to describe the noise, and the noise is added to the true 3D posture distribution P in the forward diffusion process. 0 In the above example, the true 3D posture distribution P with relatively low uncertainty is 0 Gradually diffuse to the initial 3D posture distribution P with relatively high uncertainty K ; A reverse diffusion model is established according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and the initial three-dimensional posture distribution P is calculated according to the reverse diffusion model. K Perform denoising step by step to obtain the target's three-dimensional posture features; The physiological information of the tester during the movement is acquired in real time, the target three-dimensional posture feature is fused with the physiological information, and a preset threshold is set according to the fusion result to judge the abnormal state of the tester.
2. The three-dimensional posture estimation method for sports testing according to claim 1, It is characterized in that Through the intermediate noise sample To bridge the true 3D pose distribution p 0 and the initial 3D posture distribution p K , p 0 to p K The posterior distribution b(p 1:K |p 0 ) is expressed as: Among them, M r (p k |.) means sampling p under given parameter conditions k The possibility of 1:K ∈(0,1) K is a fixed decreasing sequence used to control the noise scaling of each diffusion step; The posterior representation of the diffusion process with step size k is: p k Represented as the true 3D posture distribution p 0 A linear combination of with the noise variable ∈: The sample p generated by forward diffusion 0 and noise samples The diffusion model is optimized to approximate the reverse diffusion process. Each reverse diffusion step can be expressed as a function f, expressed as p k and the reverse diffusion model w generates output p for input k-1 =f(p k , w).
3. The three-dimensional posture estimation method for sports testing according to claim 1, It is characterized in that M represents the number of Gaussian components in the Gaussian mixture model GMM, and the expectation maximization (EM) algorithm is used to optimize the Gaussian parameters. So fitting P K , expressed as: in For P K N GMM posture, is the GMM parameter; μ m ∈R 3J ,∑ m ∈R 3J×3J is the mean and covariance matrix of the mth Gaussian component; π m ∈[0,1] is an arbitrary sample From the mth mixed component The probability of extraction.
4. The three-dimensional posture estimation method for sports testing according to claim 3, It is characterized in that True pose distribution P 0 Perform a forward diffusion process so that the noise distribution generated after k steps is With the fitted GMM distribution Equivalent, expressed as: in, is from the generating distribution P K The generated samples of 1 m ∈{0,1} is the binary value of the mth component, such that Prob(1 m =1)=π m 。 5. The three-dimensional posture estimation method for sports testing according to claim 3, It is characterized in that In the reverse diffusion process, Gaussian mixture model GMM is used to represent P K , generating an intermediate distribution Use the distribution-optimized back-diffusion model w to learn the back-diffusion process Gradually get rid of The uncertainty of the real 3D posture distribution P is reconstructed 0 .
6. The three-dimensional posture estimation method for sports testing according to claim 5, It is characterized in that Also includes: The 2D pose is extracted by the 2D pose detector and the context encoder is used The predicted results calculate the posture distribution; According to the three-dimensional distribution of joints, P K Initialize and use the EM algorithm to find P K Optimal GMM parameters based on Using the true 3D posture distribution P 0 generate According to probability Take a component for the i-th set use The Gaussian component of the i-th set is increased Using context encoder Extracting spatiotemporal context f ST Optimize the model parameters θ, given by Gradual Reconstruction The loss Los is expressed as:
7. The three-dimensional posture estimation method for sports testing according to claim 1, It is characterized in that The physiological information includes blood oxygen saturation information, and the feature extraction formula is: Among them, ε α is the total absorption coefficient of arterial blood; n α is the concentration of arterial blood; V α is the volume of arterial blood; when the volume of arterial blood vessels in the transparent area changes by ΔV α When , the light intensity changes by ΔL.
8. A three-dimensional posture estimation device for sports testing, It is characterized in that include: The 3D posture extraction module is used to obtain the video data of the tester during the movement and extract the real 3D posture distribution P according to the video data. 0 ; The forward diffusion module is used to establish a Gaussian mixture model to describe the noise and add the noise to the real 3D posture distribution P in the forward diffusion process. 0 In the above example, the true 3D posture distribution P with relatively low uncertainty is 0 Gradually diffuse to the initial 3D posture distribution P with relatively high uncertainty K ; A reverse diffusion module is used to establish a reverse diffusion model according to the spatiotemporal text information of the video data and the diffusion step length of the forward diffusion, and to calculate the initial three-dimensional posture distribution P according to the reverse diffusion model. K Perform denoising step by step to obtain the target's three-dimensional posture features; The state judgment module is used to obtain the physiological information of the tester during the movement in real time, fuse the target three-dimensional posture features with the physiological information, and set a preset threshold according to the fusion result to judge the abnormal state of the tester.
9. An electronic device, It is characterized in that include: A memory and one or more processors connected to the memory, the memory storing a computer program, and the processor being used to execute the computer program to implement the three-dimensional posture estimation method for sports testing as described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable commands, and the computer-executable commands are used to execute the three-dimensional posture estimation method for sports testing as described in any one of claims 1-7.
Citation Information
Cited By
Safety assessment alarm system and method for physical education sports
CN119252426A
