Sports training diagnosis method, system and medium based on causal relationship
By constructing a causal diagram and a structural equation model, the problem of lack of personalization of training plans in the intelligent sports training system is solved, the optimal training plan is generated for users, and the potential for improving sports performance is improved.
Patent Information
- Application Number
- CN202411104350.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Existing intelligent sports training systems cannot simulate the diagnosis of key training issues like elite human coaches, resulting in a lack of personalization of training plans for sports enthusiasts and limiting the efficiency of performance improvement.
Using the sports training diagnosis method based on causality, by constructing the first causal diagram between the search variable and the position variable and the second causal diagram between the value variable and the position variable, fitting the structural equation model and calculating the total causal effect value, Match user cases and perform counterfactual reasoning to generate optimal training solutions.
It realizes the generation of accurate and optimal training programs for users, improves the potential for improving sports performance, and provides personalized training plans.
Smart Images

Figure CN118627630B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent sports training, and more specifically to a sports training diagnosis method, system and medium based on causal relationship. Background Art
[0002] In Intelligent Sports Training (IST), an “AI coach” basically has three tasks: 1) Control, i.e., the coach monitors the athlete’s training; 2) Evaluation, i.e., the coach diagnoses the athlete’s performance, and 3) Planning, i.e., the coach decides the athlete’s plan for the next training cycle. The good news is that in the control task, perceptual intelligence technologies such as computer vision (CV) and multimedia sensors provide more and more data than ever before, which have become standard equipment for athletes and enthusiasts. The bad news is that, so far, most IST systems can only complete evaluation tasks and planning tasks, with the help of remote human coaches or rules preset by experts or a combination of both.
[0003] Although computational intelligence algorithms have played some role in the optimization of training loads in endurance events such as cycling and triathlon, and CBR algorithms have been used to recommend training plans for marathon beginners, existing methods still cannot simulate the diagnosis of key training issues like elite human coaches. As a result, most sports enthusiasts still obtain training knowledge through search engines, and the training plans of low-level athletes are often not personalized enough, limiting the efficiency of improving performance.
[0004] From the perspective of causal reasoning, there are two shortcomings in using the CBR algorithm alone in the problem of personalized sports training: 1) In case selection, CBR processes all features independently. But in practice, for a specific athlete, there is an interaction between height and weight in body shape, mutual constraints between intensity and frequency of training load, and mutual restrictions between acceleration and endurance of speed rhythm. In addition, the impact of different features on performance is not always the same. 2) In the generation of counterfactuals, counterfactuals are individual rather than group. Even with reference to the same "champion model", different athletes have different expectations for technical progress, so it is necessary to calculate counterfactuals based on the individual model of the current user. Summary of the invention
[0005] In view of this, the present invention provides a sports training diagnosis method, system and medium based on causality, which can accurately generate the best training plan for the user.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a sports training diagnosis method based on causality, comprising the following steps:
[0008] Collect elite case databases under relevant sports events, use sports performance as position variables, basic information of athletes as search variables, and sports characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables;
[0009] Based on the causal path between the position variable and the search variable in the first causal graph, a first structural equation model is fitted, the total causal effect value between the search variables in the first structural equation model is calculated, and the distance between the user's basic information and each case in the elite case database is calculated using the calculated total causal effect value as a weight, so as to match at least one case for the user;
[0010] Based on the causal path between the position variables and the value variables in the second causal graph, a second structural equation model is fitted; based on the second structural equation model, counterfactual reasoning is performed on the user's value variables and position variables to obtain the solution that has the greatest improvement in grades as the final diagnostic result.
[0011] Furthermore, the search variables include one or more of age, height, weight and gender.
[0012] Furthermore, the process of constructing the first causal graph includes:
[0013] The causal discovery algorithm is used to perform causal discovery on the search variables and position variables of each case in the elite case database, and a directed acyclic causal graph of the causal relationship between the two is obtained as the first causal graph, which is used for case matching for users.
[0014] Furthermore, the construction process of the second causal graph includes:
[0015] The causal discovery algorithm is used to perform causal discovery on the value variables and position variables of each case in the elite case database, and a directed acyclic causal graph of the causal relationship between the two is obtained as the second causal graph, which is used for users to perform "counterfactual" reasoning.
[0016] Furthermore, the first structural equation model is composed of multiple equations, which are used to characterize the linear relationship between each search variable and the linear relationship between each search variable and the position variable; the total causal effect value between each search variable is calculated according to the coefficients of each equation in the first structural equation model.
[0017] Furthermore, the total causal effect value between each search variable is used as a weight to calculate the distance between the user's basic information and each case in the elite case database, specifically including:
[0018] When a user is matched with any case in the elite case database, for any search variable, the square of the difference between the search variable in the user and the case is multiplied by the total causal effect value of the search variable to obtain the distance between the user and the case under the search variable;
[0019] Sum the distances between the user and the case for each search variable in the user's basic information to obtain the total distance between the user's basic information and the case;
[0020] Select one or n cases with the smallest total distance to the user as the matching cases of the user.
[0021] Furthermore, the second structural equation model is an overall causal model, which is composed of multiple equations, which are used to characterize the linear relationship between each value variable and the relationship between each value variable and the position variable.
[0022] Furthermore, the counterfactual reasoning process includes:
[0023] Substituting the user's value variable and position variable into the second structural equation model, updating the constant term of each equation according to the calculation results, and updating the overall causal model to the individual causal model of the current user;
[0024] In the individual causal model, the influence on the position variable after changing the user's value variable to the value variable of the matched case is calculated one by one as a counterfactual potential result on the improvement of the sports performance;
[0025] The solution that has the greatest potential to improve athletic performance is selected as the final diagnostic result.
[0026] In a second aspect, the present invention further provides a sports training diagnosis system based on causality, which is applicable to the sports training diagnosis method based on causality as described above, comprising:
[0027] A causal graph construction module is used to collect an elite case database under relevant sports events, use sports performance as position variables, use basic information of athletes as search variables, use characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables;
[0028] A case matching module, for fitting a first structural equation model based on the causal path between the position variable and the search variable in the first causal graph, calculating the total causal effect value between the search variables in the first structural equation model, and using the calculated total causal effect value as a weight, calculating the distance between the user's basic information and each case in the elite case database, and matching at least one case for the user;
[0029] The counterfactual inference module is used to fit a second structural equation model based on the causal path between the position variable and the value variable in the second causal graph; based on the second structural equation model, counterfactual reasoning is performed on the user's value variable and position variable to obtain the solution that has the greatest improvement in performance as the final diagnosis result.
[0030] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the sports training diagnosis method based on causality as described above are implemented.
[0031] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:
[0032] The present invention constructs two causal graphs based on elite cases. One causal graph represents the causal path between performance and the athlete's own characteristics, which is used to match the best case in the case library for the user. The other causal graph represents the causal path between performance and the athlete's sports characteristics, which is used to perform counterfactual reasoning for the user. By calculating the counterfactual potential results of the improvement in sports performance after the user's different sports performance variables are changed to elite case values, the plan with the greatest potential improvement in performance is selected as the final diagnostic suggestion, so as to formulate the best training plan for the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 A flow chart of the sports training diagnosis method based on causality provided by the present invention;
[0035] Figure 2 A schematic diagram of the structure of a first cause-effect diagram in the sprint training provided by the present invention;
[0036] Figure 3 A schematic diagram of the structure of a second cause-and-effect diagram in the sprint training provided by the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] like Figure 1 As shown, the embodiment of the present invention discloses a sports training diagnosis method based on causality, comprising the following steps:
[0039] S1. Collect elite case databases under relevant sports events, use sports performance as position variables, basic information of athletes as search variables, and sports characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables;
[0040] S2. Based on the causal path between the position variable and the search variable in the first causal graph, fit the first structural equation model, calculate the total causal effect value between the search variables in the first structural equation model, and use the calculated total causal effect value as the weight to calculate the distance between the user's basic information and each case in the elite case database, and match at least one case for the user;
[0041] S3. Based on the causal path between the position variables and the value variables in the second causal graph, a second structural equation model is fitted; based on the second structural equation model, counterfactual reasoning is performed on the user's value variables and position variables to obtain the solution that has the greatest improvement in grades as the final diagnostic result.
[0042] The above steps are further explained below.
[0043] S1. For a certain sport, collect elite case data for the sport and store it in a database, which contains three types of variables: position variables, search variables, and value variables. Among them, the position variable represents the performance. For example, in sprinting, since we can only learn from athletes who run faster than us, we locate the champion model case according to its performance in memory.
[0044] The search variable is also called the key variable. It is the basic information of the athlete, that is, the characteristics that cannot be changed through training. It is used as the key to select cases. The search variable includes one or more of age, height, weight and gender. For example, in the current sprint system, they are gender, age, height and weight. Specifically, in a male sprinter diagnosis system, the search variable set is {age, height, weight}.
[0045] Value variables are features that are intended to be changed through training and are variables used to generate diagnostic results. Taking the men's 100m speed rhythm diagnosis system as an example, they are the extracted speed rhythm parameters, and the value variable set is {ideal maximum speed v ideal , acceleration time constant τ1 and deceleration time constant τ2}, simplified as {Vi, T1, T2}.
[0046] Afterwards, a causal graph is constructed. The present invention constructs two causal graphs based on the elite case database, wherein the construction process of the first causal graph includes:
[0047] The causal discovery algorithm (such as PC algorithm) is used to perform causal discovery on the search variables and position variables of each case in the elite case database, and a directed acyclic causal graph (DAG) of the causal relationship between the two is obtained as the first causal graph, which is used for case matching for users. For example, in the men's 100m diagnosis system, it is a causal graph between {score, age, height, weight}, such as Figure 2 As shown, the dotted part is not included in the current data.
[0048] The construction process of the second causal graph includes:
[0049] Through the causal discovery algorithm (such as PC algorithm), the value variables and position variables of each case in the elite case database are causally discovered, and the directed acyclic causal graph (DAG) of the causal relationship between the two is obtained as the second causal graph, which is used for users to perform "counterfactual" reasoning. For example, in the men's 100m diagnosis system, it is a causal graph between {score, Vi, T1, T2}, such as Figure 3 shown.
[0050] In the men's 100m diagnostic system, a three-stage continuous sprint process is usually included: first accelerating, then maintaining the maximum speed for a period of time before the final inevitable deceleration. The present invention redesigns the equation to describe all three stages of the 100m sprint.
[0051] The acceleration phase is described by two parameters: the sprinter’s maximum horizontal velocity v max And the acceleration time constant τ1:
[0052] (1)
[0053] The trend of relative speed loss can be expressed by the following formula, where τ2 is the deceleration time constant: the larger τ2 is, the slower the speed decreases and the longer the deceleration process is:
[0054] (2)
[0055] The full-length speed function is shown below:
[0056] (3)
[0057] The unit of time variables and constants is seconds, and the unit of velocity variables and constants is meters per second. max The ideal maximum speed v ideal Therefore, three modality-independent cognitive parameters of speed rhythm were extracted.
[0058] S2. Match cases for users, including:
[0059] S21. Based on the causal path between the position variable and the search variable in the first causal graph, a corresponding first structural equation model is fitted. The first structural equation model consists of a plurality of equations, which are respectively used to characterize the linear relationship between each search variable and the linear relationship between each search variable and the position variable.
[0060] For example, in the men's 100m diagnostic system, the first structural equation model variable is {score, age, height, weight}, and the structural equation is as follows:
[0061] (4)
[0062] Among them, based on the data in the elite case library, after verifying the linear correlation between the equation variables through correlation analysis, the coefficients a, b, c, d, e and the residual U are fitted through multiple linear regression. weight , U mark .
[0063] S22. Calculate the total causal effect value (TCE) between each search variable based on the coefficients of each equation in the first structural equation model.
[0064] For example, in the men's 100m diagnostic system, the TCE for age is a*e+c, the TCE for height is b*e+d, and the TCE for weight is e.
[0065] S23. Using the total causal effect value between each search variable as the weight, calculate the distance between the user's basic information and each case in the elite case database, which can be Euclidean distance or cosine distance, etc. Specifically including:
[0066] When a user is matched with any case in the elite case database, for any search variable, the square of the difference between the search variable in the user and the case is multiplied by the total causal effect value of the search variable to obtain the distance between the user and the case under the search variable;
[0067] The distances between the user and the case for each search variable in the user's basic information are summed to obtain the total distance between the user's basic information and the case.
[0068] Taking Euclidean distance as an example, in the current sprint system, the weighted distance between two cases is: the square of the age difference multiplied by the causal effect value of age, and so on. The calculated results of age, height, and weight are added to obtain the total case distance.
[0069] Select one or n "champion model" cases with the smallest total distance to the user as the user's matching cases for the next step of counterfactual diagnosis.
[0070] S3. Counterfactual reasoning, including:
[0071] S31. Based on the causal path between the position variables and the value variables in the second causal diagram, a second structural equation model is fitted. As an overall causal model, the second structural equation model consists of multiple equations, which are used to characterize the linear relationship between each value variable and the relationship between each value variable and the position variable.
[0072] For example, in the men's 100m speed rhythm diagnosis system, there is a statistically significant linear correlation between the value variables, which ensures the validity of the linear model in the current training set to a certain extent (for T1-T2, T1-Vi, T2-Vi, p < 0.01). Since the causal relationship between sports performance and value variables is regulated by Equation 3, the linear assumption can only be used for Figure 3 In the value variable part, the second structural equation model variable is {score, Vi, T1, T2}, as shown below:
[0073] (5)
[0074] S32. Substitute the user's value variables and position variables into the second structural equation model, update the constant term of each equation according to the calculation results, and update the overall causal model to the individual causal model of the current user.
[0075] S33. In the individual causal model, the impact on the position variable (also called the treatment effect ETT) after changing the user's value variable to the value variable of the matched case is calculated one by one as the counterfactual potential result of improving sports performance. The following is an example of the ETT calculation process of Vi's performance in the men's 100m speed rhythm diagnosis system: remove the equation with Vi as the dependent variable, and in the equation with Vi as the independent variable, update Vi to the "champion model" case value, T1 and T2 still keep the user value, calculate the counterfactual user performance, and subtract the user's current performance, which is to change Vi's ETT.
[0076] S34. Select the variable with the largest value for ETT commission as the key technical feature as the best improved diagnosis, that is, select the solution with the greatest improvement in athletic performance from the counterfactual potential results as the final diagnostic result.
[0077] The method of the present invention is further described below with reference to a specific example.
[0078] The present invention collects the men's 100-meter sprint data of 102 people in 17 major competitions from the 1997 Athens World Championships to the 2019 Doha World Championships, with scores ranging from 9.58 seconds to 10.59 seconds, heights ranging from 172cm to 196cm, weights from 65kg to 91kg, and ages ranging from 19 to 37 years old. These are the champion models for building the case library.
[0079] In order to test the invention on Olympic athletes and ordinary people, 2 types of test data were collected: data from 5 Olympic candidates of the national team were collected from public events in 2021 and manually corrected by the CV algorithm, and data from 50 male college students were collected from the track and field field on campus and timed by sensors placed at 0 m, 30 m, 60 m, 90 m, and 100 m splits.
[0080] Table 1 shows 2 examples of test data in case representation.
[0081] Table 1
[0082]
[0083] Table 2 shows the case-related data matched by the testers in Table 1.
[0084] Table 2
[0085]
[0086] The diagnostic results are shown in Table 3.
[0087] Table 3
[0088]
[0089] For test student 1, if his acceleration time constant is changed to the same as the model case, his score will be extended by 0.21 seconds; if his ideal maximum speed is changed to the same as the model case, his score will be shortened by 2.1 seconds under ideal conditions, and so on. Therefore, the planned diagnosis for him is to first improve the maximum speed ability.
[0090] In one embodiment, the present invention further provides a sports training diagnosis system based on causality, which is applicable to the above-mentioned sports training diagnosis method based on causality, comprising:
[0091] A causal graph construction module is used to collect an elite case database under relevant sports events, use sports performance as position variables, use basic information of athletes as search variables, use characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables;
[0092] A case matching module, for fitting a first structural equation model based on the causal path between the position variable and the search variable in the first causal graph, calculating the total causal effect value between the search variables in the first structural equation model, and using the calculated total causal effect value as a weight, calculating the distance between the user's basic information and each case in the elite case database, and matching at least one case for the user;
[0093] The counterfactual inference module is used to fit the second structural equation model based on the causal path between the position variables and the value variables in the second causal graph; based on the second structural equation model, counterfactual inference is performed on the user's value variables and position variables to obtain the solution that has the greatest improvement in grades as the final diagnostic result.
[0094] In another embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the sports training diagnosis method based on causality as described above are implemented.
[0095] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0096] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A sports training diagnosis method based on causality, It is characterized in that The following steps are involved: Collect elite case databases under relevant sports events, use sports performance as position variables, basic information of athletes as search variables, and sports characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables; Based on the causal path between the position variable and the search variable in the first causal graph, a first structural equation model is fitted, the total causal effect value between the search variables in the first structural equation model is calculated, and the distance between the user's basic information and each case in the elite case database is calculated using the calculated total causal effect value as a weight, so as to match at least one case for the user; Based on the causal path between the position variable and the value variable in the second causal graph, a second structural equation model is fitted; based on the second structural equation model, counterfactual reasoning is performed on the value variable and the position variable of the user to obtain the solution that has the greatest improvement in performance as the final diagnosis result; The first structural equation model is composed of a plurality of equations, which are respectively used to characterize the linear relationship between each search variable and the linear relationship between each search variable and the position variable; the total causal effect value between each search variable is calculated according to the coefficients of each equation in the first structural equation model; When a user is matched with any case in the elite case database, for any search variable, the square of the difference between the search variable in the user and the case is multiplied by the total causal effect value of the search variable to obtain the distance between the user and the case under the search variable; Sum the distances between the user and the case for each search variable in the user's basic information to obtain the total distance between the user's basic information and the case; Select one or n cases with the smallest total distance to the user as the matching cases of the user.
2. The sports training diagnosis method based on causality according to claim 1, It is characterized in that The search variables include one or more of age, height, weight and gender.
3. The sports training diagnosis method based on causality according to claim 1, It is characterized in that The construction process of the first causal graph includes: The causal discovery algorithm is used to perform causal discovery on the search variables and position variables of each case in the elite case database, and a directed acyclic causal graph of the causal relationship between the two is obtained as the first causal graph, which is used for case matching for users.
4. The sports training diagnosis method based on causality according to claim 1, It is characterized in that The construction process of the second causal graph includes: The causal discovery algorithm is used to perform causal discovery on the value variables and position variables of each case in the elite case database, and a directed acyclic causal graph of the causal relationship between the two is obtained as the second causal graph, which is used for users to perform "counterfactual" reasoning.
5. The sports training diagnosis method based on causality according to claim 1, It is characterized in that The second structural equation model is an overall causal model, which is composed of multiple equations, which are used to characterize the linear relationship between each value variable and the relationship between each value variable and the position variable.
6. The sports training diagnosis method based on causality according to claim 5, It is characterized in that The counterfactual reasoning process includes: Substituting the user's value variable and position variable into the second structural equation model, updating the constant term of each equation according to the calculation results, and updating the overall causal model to the individual causal model of the current user; In the individual causal model, the influence on the position variable after changing the user's value variable to the value variable of the matched case is calculated one by one as a counterfactual potential result on the improvement of the sports performance; The solution that has the greatest potential to improve athletic performance is selected as the final diagnostic result.
7. A sports training diagnosis system based on causality, It is characterized in that It is applicable to the sports training diagnosis method based on causality as claimed in any one of claims 1 to 6, comprising: A causal graph construction module is used to collect an elite case database under relevant sports events, use sports performance as position variables, use basic information of athletes as search variables, use characteristics that can be changed by training as value variables, and construct a first causal graph between the search variables and the position variables, as well as a second causal graph between the value variables and the position variables; A case matching module, for fitting a first structural equation model based on the causal path between the position variable and the search variable in the first causal graph, calculating the total causal effect value between the search variables in the first structural equation model, and using the calculated total causal effect value as a weight, calculating the distance between the user's basic information and each case in the elite case database, and matching at least one case for the user; The counterfactual inference module is used to fit a second structural equation model based on the causal path between the position variable and the value variable in the second causal graph; based on the second structural equation model, counterfactual reasoning is performed on the user's value variable and position variable to obtain the solution that has the greatest improvement in performance as the final diagnosis result.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the causal relationship-based sports training diagnosis method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and device for improving sport performance based on cognitive representation
CN113457108A
Anti-fact prediction and effect evaluation method and system
CN116151485A
