Method, device, equipment and storage medium for correcting student sports posture
By identifying joint bending parameters and postures in student movement video data, and using the movement posture recognition model of the temporal attention layer, personalized movement posture correction information is provided, which solves the problem of low accuracy of movement correction in sports training and improves the accuracy of correction. Effect.
Patent Information
- Application Number
- CN202410776634.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-17
Smart Images

Figure CN118366087B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of teaching equipment, and in particular to a method for correcting a student's sports posture, a device for correcting a student's sports posture, a device for correcting a student's sports posture, and a storage medium. Background Art
[0002] In physical training, personalized adjustments need to be made to each individual's sports technical movements in order to improve the standard of sports movements. On campus, due to the short physical education class hours, the commonly used sports training method is one-to-many movement guidance by physical education teachers. This sports training method can allow a larger number of students to have a preliminary understanding of sports movements. However, since it is difficult for teachers to provide personalized guidance on each student's sports technical movements, some students' sports technical movements are not standard, resulting in low overall accuracy of sports correction.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a student's sports posture correction method, a student's sports posture correction device, a student's sports posture correction equipment and a storage medium, so as to improve the accuracy of sports correction.
[0005] To achieve the above object, the present invention provides a method for correcting a student's sports posture, the method comprising the following steps:
[0006] Acquire motion video data of a target student, wherein the motion video data includes a plurality of motion image data;
[0007] Identify the joint flexion parameters of the target student in the exercise video data:
[0008] Determine a motion posture recognition result according to the motion video data, the joint bending parameters and a motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters;
[0009] The movement posture correction information corresponding to the target student is determined according to the posture recognition result.
[0010] Optionally, the step of identifying the joint bending parameters of the target student in the sports video data further includes:
[0011] Identify multiple joint points in each of the motion image data and determine corresponding position coordinates;
[0012] Calculating the length of the moving limb of the limb in the motion image according to the position coordinates corresponding to the multiple joint points;
[0013] The joint bending parameter is calculated according to the moving limb length and the reference limb length.
[0014] Optionally, before the step of identifying the joint bending parameters of the target student in the sports video data, the step further includes:
[0015] Acquire first image data of the target student in a first posture, where the first posture is a posture of the target student standing with limbs stretched out;
[0016] Extracting reference position information of a plurality of joint points according to the first image data to obtain a plurality of reference position information;
[0017] The reference limb lengths of the multiple limbs of the target student are calculated according to the multiple reference position information.
[0018] Optionally, before the step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model, the step further includes:
[0019] Acquire historical motion video data of teachers and students, identify multiple joint points in each historical motion image data and determine corresponding historical position coordinates, wherein the historical motion video data includes multiple historical motion image data;
[0020] Marking historical motion video data, wherein the marking is a historical gesture recognition result;
[0021] Dividing the historical motion video data into a training set and a test set;
[0022] The training is performed according to the training set and the preset model, and the trained model is tested according to the test set, and the model that passes the test is used as the motion posture recognition model.
[0023] Optionally, before the step of training according to the training set and the preset model, the step further includes:
[0024] Setting the model structure of the preset model;
[0025] The model structure includes: a temporal attention layer, the temporal attention layer determines the feature weight of each image feature of the motion image data;
[0026] The step of determining the feature weight of each image feature of the motion image data by the temporal attention layer comprises:
[0027] All the motion image data are taken as first motion image data in chronological order, and the feature weights corresponding to the first motion image data are determined according to the node bending parameters corresponding to the motion image data adjacent to the first motion image data in image time, so as to obtain the feature weights of the image features of each of the motion image data.
[0028] Optionally, the step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model comprises:
[0029] Identify multiple joint points in each of the motion image data and determine corresponding position coordinates;
[0030] The plurality of position coordinates in each of the motion image data and the joint bending parameters corresponding to the motion image data are input into the motion posture recognition model, and the motion posture recognition result is output.
[0031] Optionally, the step of determining the movement posture correction information corresponding to the target student according to the posture recognition result includes:
[0032] Determining the motion posture correction information according to the posture recognition result and the first corresponding relationship;
[0033] The first corresponding relationship is a corresponding relationship between the posture recognition result and the motion posture correction information.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a student sports posture correction device, the student sports posture correction device comprising:
[0035] An acquisition module, used for acquiring motion video data of a target student, wherein the motion video data includes a plurality of motion image data;
[0036] an identification module, used for identifying joint bending parameters of a target student in the sports video data;
[0037] An analysis module is used to determine a motion posture recognition result according to the motion video data, the joint bending parameters and a motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters;
[0038] A correction module is used to determine the movement posture correction information corresponding to the target student according to the posture recognition result.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a student movement posture correction device, which includes: a memory, a processor, and a student movement posture correction program stored on the memory and executable on the processor, and the student movement posture correction program is configured to implement the steps of the student movement posture correction method described in any one of the above-mentioned items.
[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a student movement posture correction program is stored. When the student movement posture correction program is executed by a processor, the steps of the student movement posture correction method described in any one of the above items are implemented.
[0041] The present invention proposes a method for correcting student movement posture. The method obtains movement video data of a target student and identifies the joint bending parameters of the target student in the movement video data, thereby determining different movement states and movement processes of the target student during movement, and determines a movement posture recognition result according to the video data, the joint bending parameters and a movement posture recognition model. Since the movement posture recognition model has the temporal attention layer, the image weight of the movement video data can be adjusted based on the joint bending parameters, thereby improving the accuracy of the movement posture recognition result, thereby providing the target student with movement posture correction information in a targeted manner, thereby improving the accuracy of the correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural schematic diagram of a student movement posture correction device in a hardware operating environment involved in an embodiment of the present invention;
[0043] Figure 2 It is a flow chart of a first embodiment of the method for correcting student sports posture of the present invention;
[0044] Figure 3 It is a flow chart of a second embodiment of the method for correcting student sports posture of the present invention;
[0045] Figure 4 4 is a flow chart of a third embodiment of the method for correcting student sports posture according to the present invention.
[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0048] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0049] like Figure 1 As shown, the device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, an interactive device 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The interactive device 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and a camera. The optional interactive device 1003 may also be connected to the communication bus through a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0051] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a program.
[0052] exist Figure 1 In the device shown, the network interface 1004 is mainly used for data communication with other devices; the interactive device 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the device of the present invention can be set in the device, and the device calls the program stored in the memory 1005 through the processor 1001 and executes the method provided by the embodiment of the present invention.
[0053] The embodiment of the present invention provides a method for correcting a student's sports posture. Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a method for correcting a student's sports posture according to the present invention.
[0054] In this embodiment, the student's sports posture correction method includes:
[0055] Step S10, obtaining motion video data of a target student, wherein the motion video data includes a plurality of motion image data;
[0056] In this embodiment, a camera device is set to obtain video data of the target student during exercise. Preferably, the student is selected to shoot a single exercise with less displacement direction during the exercise, which may include sit-ups, squats, pull-ups, standing long jumps, and sprints. Of course, other exercises besides the above-mentioned exercises may also be included. For example: shooting practice in basketball.
[0057] Each motion video data is composed of a plurality of motion image data. In some embodiments, since the acquisition frequency of the camera is high, the number of the motion image data can be controlled by adjusting the number of frames captured by the camera. Specifically, it is necessary to capture a complete motion video of the target student's motion. It should be noted that if the target student is being captured for the first time, it is necessary to capture an image of the target student stretching his limbs in a standing posture.
[0058] Step S20, identifying the joint bending parameters of the target student in the sports video data;
[0059] Specifically, the joint bending parameter here is the angle of joint bending, and the joints include knee joints, elbow joints, and hip joints. Through an image recognition algorithm, such as a CNN convolution algorithm, the position coordinates of the joints of the target student in each motion image data in the motion video data are extracted, and the position of the joint of the target student is determined according to the position coordinates. The limb length is determined according to the position of the joint, and the joint bending parameter is determined according to the limb length.
[0060] Step S30, determining a motion posture recognition result according to the motion video data, the joint bending parameters and a motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters;
[0061] The motion posture recognition model here is used to identify the posture of the target student during the motion process. It should be noted that the motion posture recognition model is only used to identify the same type of motion. For example, the motion posture recognition model used to identify pull-ups cannot be used to identify the posture of students sprinting. The temporal attention layer here determines the image weight corresponding to the motion image data by using the joint bending parameters corresponding to the motion image data in the motion video data. Since there will be stretching and bending processes in the process of the action, the corresponding attention degrees of different processes are different, and the information obtained is also different. For redundant or unimportant frames in the video, the weight assigned is small, so as to avoid paying attention to unimportant image data, so that the temporal attention layer can achieve the effect of image data screening.
[0062] Step S40: determining the movement posture correction information corresponding to the target student according to the posture recognition result.
[0063] Specifically, different motion posture correction information can be determined according to different posture recognition results. For example, the motion posture correction information is determined through a corresponding table. The posture recognition result is queried in the corresponding table, and the corresponding motion posture correction information is determined.
[0064] In this embodiment, by acquiring the motion video data of the target student and identifying the joint bending parameters of the target student in the motion video data, the different motion states and motion processes of the target student during the motion can be determined, and the motion posture recognition result is determined according to the video data, the joint bending parameters and the motion posture recognition model. Since the motion posture recognition model has the temporal attention layer, the image weight of the motion video data can be adjusted based on the joint bending parameters, thereby improving the accuracy of the motion posture recognition result, so that the motion posture correction information can be given to the target student in a targeted manner to improve the accuracy of the correction.
[0065] Further, based on the first embodiment, a second embodiment of the student sports posture correction method of the present invention is proposed. In this embodiment, referring to Figure 3 The step of identifying the joint bending parameters of the target student in the sports video data further includes:
[0066] Step S21, identifying a plurality of joint points in each of the motion image data and determining corresponding position coordinates;
[0067] In this embodiment, multiple joints in each motion image data are identified, and the identified joints are connected and labeled in sequence to form the skeleton of the human body limbs. Specifically, convolution image processing can be used to determine the first probability of each pixel in the image being a joint point, and whether it is a joint point is determined based on the first probability corresponding to the pixel point and the first probability corresponding to the adjacent pixel points adjacent to the pixel point.
[0068] Step S22, calculating the length of the moving limb of the limb in the motion image according to the position coordinates corresponding to the multiple joint points;
[0069] The moving limb length of the limb in the motion image is calculated according to the position coordinates corresponding to the multiple joint points. It should be noted that the moving limb length here is not the actual length of the limb, but the length of the limb displayed in the shooting direction, which can be understood as the length of the projection of the limb in the shooting direction. It should be noted that when the limb is perpendicular to the shooting direction of the camera, the moving limb length is equal to the reference limb length, that is, the moving limb length is equal to the actual limb length. When the limb is not perpendicular to the shooting direction of the camera, the moving limb length here will be less than the reference limb length.
[0070] Step S23, calculating the joint bending parameters according to the motion font length and the reference limb length.
[0071] The reference limb length here can be preset as the limb length of the target student, and the limb ratio of the motion font length to the reference limb length is specifically calculated, and the limb angle of the limb is calculated based on the limb ratio and the inverse sine function, and the limb angle is the angle perpendicular to the camera shooting direction. Thus, the limb angle of each limb is obtained, and the first joint angle is determined according to the limb angles corresponding to the two limbs adjacent to the joint. The actual joint angle is calculated based on the first joint angle and the second joint angle, and the second joint angle is the angle of the joint on the plane of the image data. The joint bending parameter is the actual joint angle. The actual joint angle of each joint is calculated. The first joint angle and the second joint angle here are actually the components of the actual joint angle in two directions.
[0072] In this embodiment, by identifying multiple joint points in each of the motion image data and determining the corresponding position coordinates, the joints are recognized, and the moving limb length of the limb in the motion image is calculated based on the position coordinates corresponding to the multiple joint points; the joint bending parameters are calculated based on the moving limb length and the reference limb length, thereby improving the accuracy of calculating the joint bending parameters.
[0073] Furthermore, before the step of identifying the joint bending parameters of the target student in the sports video data, the step further includes:
[0074] Acquire first image data of the target student in a first posture, where the first posture is a posture of the target student standing with limbs stretched out;
[0075] Extracting reference position information of a plurality of joint points according to the first image data to obtain a plurality of reference position information;
[0076] The reference limb lengths of the multiple limbs of the target student are calculated according to the multiple reference position information.
[0077] In this embodiment, when there is no data on the reference limb length of the target student's limbs, a first instruction can be issued through a sound-generating device to adjust the target student to a first posture. The camera is thereby controlled to capture first image data, thereby obtaining first image data of the target student in the first posture. It should be noted that the direction in which the limbs are stretched is perpendicular to the shooting direction of the camera. The reference position information here is determined as the position coordinates of the joint point in the first image data, and the reference limb length is determined based on the reference position information. In other embodiments, the actual limb length of the target student can also be directly measured as the reference limb length.
[0078] In this embodiment, by placing the target student in a first posture, collecting first image data, and extracting reference position information of multiple joint points, the reference limb lengths of multiple limbs of the target student are calculated, thereby improving the convenience of obtaining the reference limb lengths and improving the efficiency of correcting the student's movement posture.
[0079] Further, based on any of the above embodiments, a third embodiment of the student sports posture correction method of the present invention is proposed. In this embodiment, referring to Figure 4 , before the step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model, it also includes:
[0080] Step S301, acquiring historical motion video data of teachers and students, identifying multiple joint points in each historical motion image data and determining corresponding historical position coordinates, wherein the historical motion video data includes multiple historical motion image data;
[0081] In this embodiment, the historical joint bending parameters are determined according to the historical position coordinates. The historical motion video data here is the data of the same type of motion. In this embodiment, multiple joint points can be determined by an image recognition algorithm.
[0082] Step S302, marking the historical motion video data, wherein the marking is the historical gesture recognition result;
[0083] You can manually score according to the standard degree of the action, and set different scoring standards for different actions. You can set scoring standards in different dimensions, for example: score the completion of different muscle groups during the completion of the action. For example: abdominal completion score, forearm completion score, leg completion score, shoulder completion score, and chest completion score, etc. These scores correspond to the posture recognition results. The higher the corresponding score, the lower the probability of the corresponding item in the posture recognition result.
[0084] Step S303, dividing the historical motion video data into a training set and a test set;
[0085] Specifically, the data volume of the training set is 75% and the data volume of the test set is 25%.
[0086] Step S304, training is performed according to the training set and the preset model, and the trained model is tested according to the test set, and the model that passes the test is used as the motion posture recognition model.
[0087] Specifically, the historical position coordinates and historical joint bending parameters are input into the preset model to obtain an output result, and the preset model is adjusted through reverse transmission based on the output result and the historical posture recognition result until the model can pass the test, and the model that passes the test is used as the motion posture recognition model.
[0088] In this embodiment, by acquiring historical motion video data, and testing the trained model based on the historical motion video data and the test set, the model that passes the test is used as the motion posture recognition model, so that an accurate motion posture recognition model can be obtained.
[0089] Furthermore, before the step of training according to the training set and the preset model, the step also includes:
[0090] Setting the model structure of the preset model;
[0091] The model structure includes: a temporal attention layer, the temporal attention layer determines the feature weight of each image feature of the motion image data;
[0092] The step of determining the feature weight of each image feature of the motion image data by the temporal attention layer comprises:
[0093] All the motion image data are taken as first motion image data in chronological order, and the feature weights corresponding to the first motion image data are determined according to the node bending parameters corresponding to the motion image data adjacent to the first motion image data in image time, so as to obtain the feature weights of the image features of each of the motion image data.
[0094] In this embodiment, the preset model and the trained motion posture recognition model are provided with an input layer, an embedding layer, a temporal attention layer, a feature extraction layer, and an output layer.
[0095] It is the input data of the moving image data arranged according to time. The coordinates of the joint points are included. is the joint bending parameter of the joint point, which can be determined based on the average value of multiple joint bendings.
[0096] The embedding layer will and Separate and pass them to the temporal attention layer and feature extraction layer respectively;
[0097] The calculation formula in the temporal attention layer is:
[0098]
[0099] is the image weight, tanh is the activation function, of course, for The calculation formula is:
[0100]
[0101] After the image weight is calculated, the image weight is passed to the feature extraction layer.
[0102] The feature extraction layer includes multiple sub-feature extraction layers.
[0103] The state of the first sub-feature extraction layer is:
[0104]
[0105] The state of the first sequence of the first sub-feature extraction layer is:
[0106]
[0107] The status of the sequences other than the first sequence of the first sub-feature extraction layer is:
[0108]
[0109] The status of the second sub-feature extraction layer is:
[0110]
[0111] The state of the first sequence of the second sub-feature extraction layer is:
[0112]
[0113] The status of the sequences other than the first sequence of the second sub-feature extraction layer is:
[0114]
[0115] For the final output prediction classification result, Y=( )
[0116]
[0117] In this embodiment, U, W, and V are all parameter matrices used to perform matrix transformation on the input and feature extraction layers, and b and c are bias, is an activation function. In addition, the first sub-feature extraction layer also includes a corresponding activation function, which can be a tanh activation function. ) correspond to the abnormal probability of abdomen, forearm, leg, shoulder and chest. The loss function is function.
[0118] In this embodiment, the abdomen completion score, the forearm completion score, the leg completion score, the shoulder completion score and the chest completion score are respectively compared with Y=( ) is used as the value of the loss function. In addition, in this embodiment, the model can also be updated by a gradient descent method, such as Adam, RMSprop, etc. In this embodiment, the joint bending parameters and the position coordinates of the joint points are input into the motion posture recognition model, and the output Y=( )n is 5, according to Y=( ) determines the motion posture recognition result. The abnormal type corresponding to the largest value is taken as the motion posture recognition result.
[0119] In this embodiment, an input layer, an embedding layer, a temporal attention layer, a feature extraction layer, and an output layer are provided, and the weights of different image data are adjusted through the temporal attention layer, so as to improve the accuracy of motion posture recognition.
[0120] Further, based on any of the above embodiments, a fourth embodiment of the student movement posture correction method of the present invention is proposed. In this embodiment, the step of determining the movement posture recognition result according to the movement video data, the joint bending parameters and the movement posture recognition model includes:
[0121] Identify multiple joint points in each of the motion image data and determine corresponding position coordinates;
[0122] The plurality of position coordinates in each of the motion image data and the joint bending parameters corresponding to the motion image data are input into the motion posture recognition model, and the motion posture recognition result is output.
[0123] When a joint point includes multiple pixels, the average coordinates of the pixels belonging to the joint point are calculated as the position coordinates.
[0124] In this embodiment, the motion posture recognition result is obtained by inputting the multiple position coordinates in each of the motion image data and the joint bending parameters corresponding to the motion image data into the motion posture recognition model and outputting the motion posture recognition result.
[0125] Furthermore, the step of determining the movement posture correction information corresponding to the target student according to the posture recognition result includes:
[0126] Determining the motion posture correction information according to the posture recognition result and the first corresponding relationship;
[0127] The first corresponding relationship is a corresponding relationship between the posture recognition result and the motion posture correction information.
[0128] Specifically, by setting a corresponding table, the motion posture correction information is determined in the corresponding table according to the posture recognition result.
[0129] In this embodiment, the motion posture correction information is determined according to the posture recognition result and the first corresponding relationship, so that accurate motion posture correction information can be determined.
[0130] In addition, an embodiment of the present invention further provides a student sports posture correction device, the student sports posture correction device comprising:
[0131] An acquisition module, used for acquiring motion video data of a target student, wherein the motion video data includes a plurality of motion image data;
[0132] an identification module, used for identifying joint bending parameters of a target student in the sports video data;
[0133] An analysis module is used to determine a motion posture recognition result according to the motion video data, the joint bending parameters and a motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters;
[0134] A correction module is used to determine the movement posture correction information corresponding to the target student according to the posture recognition result.
[0135] In addition, an embodiment of the present invention also proposes a student movement posture correction device, which includes: a memory, a processor, and a student movement posture correction program stored on the memory and executable on the processor, wherein the student movement posture correction program is configured to implement the steps of an embodiment of the student movement posture correction method described in any one of the above items.
[0136] In addition, an embodiment of the present invention further proposes a storage medium, on which a student movement posture correction program is stored. When the student movement posture correction program is executed by a processor, the steps of any of the above-mentioned student movement posture correction method embodiments are implemented.
[0137] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0138] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0140] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for correcting a student's sports posture, characterized in that: The student's sports posture correction method comprises the following steps: Acquire motion video data of a target student, wherein the motion video data includes a plurality of motion image data; Identify the joint flexion parameters of the target student in the exercise video data: Determine a motion posture recognition result according to the motion video data, the joint bending parameters and a motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters; Determining the movement posture correction information corresponding to the target student according to the posture recognition result; Before the step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model, the method further includes: Acquire historical motion video data of teachers and students, identify multiple joint points in each historical motion image data and determine corresponding historical position coordinates, wherein the historical motion video data includes multiple historical motion image data; Marking historical motion video data, wherein the marking is a historical gesture recognition result; Dividing the historical motion video data into a training set and a test set; Training is performed according to the training set and the preset model, and the trained model is tested according to the test set, and the model that passes the test is used as the motion posture recognition model; Before the step of training according to the training set and the preset model, the following steps are also included: Setting the model structure of the preset model; The model structure includes: a temporal attention layer, the temporal attention layer determines the feature weight of each image feature of the motion image data; The step of determining the feature weight of each image feature of the motion image data by the temporal attention layer comprises: taking all the motion image data as first motion image data in chronological order, and determining feature weights corresponding to the first motion image data according to joint bending parameters corresponding to motion image data adjacent to the first motion image data in image time, to obtain feature weights of image features of each of the motion image data; The preset model and the motion posture recognition model are provided with an input layer, an embedding layer, a temporal attention layer, a feature extraction layer, and an output layer; It is the input data of the moving image data arranged according to time. The coordinates of the joint points are included. is the joint bending parameter of the joint point, which is determined by the average value of multiple joint bendings; the embedding layer and Separate and pass them to the temporal attention layer and feature extraction layer respectively; the calculation formula in the temporal attention layer is: is the image weight, tanh is the activation function, for The calculation formula is: After calculating the image weight, passing the image weight to the feature extraction layer; The step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model comprises: Identify multiple joint points in each of the motion image data and determine corresponding position coordinates; The plurality of position coordinates in each of the motion image data and the joint bending parameters corresponding to the motion image data are input into the motion posture recognition model, and the motion posture recognition result is output.
2. The method for correcting student sports posture as claimed in claim 1, characterized in that: The step of identifying the joint bending parameters of the target student in the sports video data also includes: Identify multiple joint points in each of the motion image data and determine corresponding position coordinates; Calculating the length of the moving limb of the limb in the motion image according to the position coordinates corresponding to the multiple joint points; The joint bending parameter is calculated according to the moving limb length and the reference limb length.
3. The method for correcting student sports posture as claimed in claim 2, characterized in that: The step of identifying the joint bending parameters of the target student in the sports video data also includes: Acquire first image data of the target student in a first posture, where the first posture is a posture of the target student standing with limbs stretched out; Extracting reference position information of a plurality of joint points according to the first image data to obtain a plurality of reference position information; The reference limb lengths of the multiple limbs of the target student are calculated according to the multiple reference position information.
4. The method for correcting student sports posture as claimed in claim 1, characterized in that: The step of determining the movement posture correction information corresponding to the target student according to the posture recognition result comprises: Determining the motion posture correction information according to the posture recognition result and the first corresponding relationship; The first corresponding relationship is a corresponding relationship between the posture recognition result and the motion posture correction information.
5. A student sports posture correction device, characterized in that: The student sports posture correction device comprises: An acquisition module, used for acquiring motion video data of a target student, wherein the motion video data includes a plurality of motion image data; an identification module, used for identifying joint bending parameters of a target student in the sports video data; An analysis module is used to determine a motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model, wherein the motion posture recognition model is provided with a temporal attention layer, and the image weight corresponding to the motion image data is determined by the temporal attention layer and the joint bending parameters. Before the step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model, it also includes: Acquire historical motion video data of teachers and students, identify multiple joint points in each historical motion image data and determine corresponding historical position coordinates, wherein the historical motion video data includes multiple historical motion image data; Marking historical motion video data, wherein the marking is a historical gesture recognition result; Dividing the historical motion video data into a training set and a test set; Training is performed according to the training set and the preset model, and the trained model is tested according to the test set, and the model that passes the test is used as the motion posture recognition model; Before the step of training according to the training set and the preset model, the following steps are also included: Setting the model structure of the preset model; The model structure includes: a temporal attention layer, the temporal attention layer determines the feature weight of each image feature of the motion image data; The step of determining the feature weight of each image feature of the motion image data by the temporal attention layer comprises: taking all the motion image data as first motion image data in chronological order, and determining feature weights corresponding to the first motion image data according to joint bending parameters corresponding to motion image data adjacent to the first motion image data in image time, to obtain feature weights of image features of each of the motion image data; The preset model and the motion posture recognition model are provided with an input layer, an embedding layer, a temporal attention layer, a feature extraction layer, and an output layer; It is the input data of the moving image data arranged according to time. The coordinates of the joint points are included. is the joint bending parameter of the joint point, which is determined by the average value of multiple joint bendings; the embedding layer and Separate and pass them to the temporal attention layer and feature extraction layer respectively; the calculation formula in the temporal attention layer is: is the image weight, tanh is the activation function, for The calculation formula is: After calculating the image weight, passing the image weight to the feature extraction layer; The step of determining the motion posture recognition result according to the motion video data, the joint bending parameters and the motion posture recognition model comprises: Identify multiple joint points in each of the motion image data and determine corresponding position coordinates; Inputting the plurality of position coordinates in each of the motion image data and the joint bending parameters corresponding to the motion image data into the motion posture recognition model, and outputting the motion posture recognition result; A correction module is used to determine the movement posture correction information corresponding to the target student according to the posture recognition result.
6. A student sports posture correction device, characterized in that: The device includes: a memory, a processor, and a student movement posture correction program stored in the memory and executable on the processor, wherein the student movement posture correction program is configured to implement the steps of the student movement posture correction method as described in any one of claims 1 to 3.
7. A storage medium, characterized in that: The storage medium stores a student movement posture correction program, and when the student movement posture correction program is executed by the processor, the steps of the student movement posture correction method as described in any one of claims 1 to 3 are implemented.
