Martial Arts Training Prediction Model Based on Big Data and MEMS Sensors

In martial arts teaching and sports training, the accurate capturing and analysis of martial arts athletes’ posture is conducive to accurately judge sports postures, as well as correcting sports movements in a targeted manner, further improving martial arts athletes’ performance and reducing physical damage.'e manufacturing level of MEMS sensors continues to improve, and status perception of assembly objects is becoming more and more abundant and accurate. 'e shape is small and can be worn, and data can be collected continuously without obstacles.'e price is relatively low, the privacy protection is strong, and the advantages are clear and prominent. A considerable number of technicians choose to use MEMS sensors as the main tool for human behavior detection data collection.'erefore, this article designs multiple MEMS inertial sensors to form a human body lower limb capture device, and its core components are composed of accelerometer, gyroscope, and magnetometer. In order to make the obtained acceleration value, angular velocity value, and magnetometer value accurately reflect the movement state of the lower limb structure, different data fusion algorithms and magnetometer ellipsoid fitting calibration algorithms are studied to realize the calculation of the posture angle of each joint point and obtain martial arts posture big data. In addition, through big data analysis, this article designs a martial arts training performance and injury risk prediction model, which can provide guidance and suggestions for martial arts teaching tasks.


Introduction
In martial arts teaching and sports training, the accurate capturing and analysis of martial arts athletes' posture is conducive to accurately judging sports postures, as well as correcting sports movements in a targeted manner, further improving martial arts athletes' performance and reducing physical damage. At present, human motion posture capture technology is mainly based on three methods: visual images [1][2][3][4], electromyographic signals [5][6][7], and wearable inertial sensors [8][9][10]. Among them, the human body gesture capture technology based on wearable inertial sensors has the advantages of directness, reliability, and strong applicability. e mainstream human motion capture systems are optical and MEMS inertial sensors [11]. e optical motion capture system is currently the most authoritative motion capture method. Its capture range is wide, the response speed is fast, and the data delay is small. It can realize the real-time capture of the action. However, the data processing process of the optical work capture system includes identification, tracking, and coordinate calculation. e calculation workload is relatively large, the related equipment is expensive, the optical conditions are demanding, and the effect of motion capture in the occluded state is poor. e MEMS-type inertial sensor motion capture analysis equipment can overcome the problem of insufficient test accuracy of the optical system in the low-light environment and motion blocking state, and the cost of the equipment is low, the test accuracy is high, and the response speed is fast, which is conducive to real-time motion capture. At the same time, it can support the parallel capture of the motion states of multiple objects.
In recent years, the concept of "big data" has gradually attracted attention. Its definition originated from the explosion of massive data in the information age, and it was defined as the technological development and innovation related to it. Martial arts [12,13] is one of the latest sports projects to apply the concept of big data. In today's highly developed professional events, with the advancement of science and technology and the update of equipment, the data that can be collected is more and more abundant, not only for the audience. It provides the possibility of in-depth understanding of the superb skills of toplevel martial arts athletes and also provides data support for martial arts athletes to improve their competitive skills and formulate training competition programs. erefore, this article designs multiple MEMS inertial sensors to form a human body lower limb capture device, and its core components are composed of accelerometer, gyroscope, and magnetometer. In order to make the obtained acceleration value, angular velocity value, and magnetometer value accurately reflect the movement state of the lower limb structure, different data fusion algorithms and magnetometer ellipsoid fitting calibration algorithms are studied to realize the calculation of the posture angle of each joint point and obtain martial arts posture big data. In addition, through big data analysis, this paper designs a martial arts training performance and injury risk prediction model, which can provide guidance and suggestions for martial arts teaching tasks. e following are the main contribution points of this paper: (i) Aiming at the analysis of martial arts movement posture, this paper designs multiple MEMS inertial sensors to form a human lower limb capture device. Its core components are composed of accelerometer, gyroscope, and magnetometer. In order to make the obtained acceleration value, angular velocity value, and magnetometer value accurately reflect the movement state of the lower limb structure, different data fusion algorithms and magnetometer ellipsoid fitting and calibration algorithms are also studied, and the posture angle of each joint point is calculated. (ii) Aiming at martial arts training performance and injury risk prediction, this paper proposes a big data analysis method and designs a support vector regression model to achieve more accurate prediction. (iii) is paper also conducted a simulation experiment.
Experimental results show that the algorithm can effectively improve the accuracy of martial arts training performance prediction and injury risk prediction.
e remainder of the paper is organized as follows Section 2 briefly describes the background of the study. Section 3 depicts the methodology of the proposed study. e experimental work is done in Section 4, and the paper is concluded in Section 5.

Background
ere is a wearable inertial sensor product in the market as shown in Figure 1, but it has the disadvantages of large size and troublesome wearing. Some scholars fix the acceleration sensor on the human body's motion part and realize the measurement of 5 common motion postures of the human body. However, the sensitivity of the acceleration sensor used is not high enough to recognize subtle movements. e accelerometer is worn by the athlete to measure the athlete's motion posture, thereby identifying high-risk events of sports injury in the game, but the frequency sampling range of the accelerometer needs to be improved, and the capture of more rapidly changing movements is limited. In the process of human body posture capture, the accelerometer is also required to have the characteristics of small size, low power consumption, and being easy to wear. erefore, the study of MEMS accelerometers [14,15] with high sensitivity and high frequency response is of great significance for human body posture capture.

MEMS Inertial Sensor.
e emergence of Microelectromechanical Systems (MEMS) technology has led to a huge revolution in martial arts posture measurement technology, making martial arts posture measurement develop in the direction of low cost, low power consumption, and miniaturization. e combination of MEMS accelerometer and MEMS gyroscope is generally called an inertial measurement unit, which is used for the measurement and analysis of object posture [16]. In this paper, MEMS sensors are used to analyze the gait characteristics of martial arts athletes. In order to improve the measurement accuracy, based on the use of MEMS accelerometers and MEMS gyroscopes, magnetometers are introduced to correct the posture parameters such as acceleration and angular velocity obtained from the test to further improve the accuracy of gait parameters. Obtain and provide powerful experimental data support for gait feature analysis. e working principles, structural features, and uses of MEMS accelerometers, MEMS gyroscopes, and MEMS magnetometers are introduced below. On this basis, a sensor system suitable for motion capture in this research is selected.

MEMS Gyroscope.
According to different components, gyroscopes can be divided into mechanical gyroscopes [16], fiber optic gyroscopes [17], laser gyroscopes [18], MEMS gyroscopes, and so forth. e mechanical gyroscope is a mechanical device that uses the gyro torque generated by the vibration of the carrier to measure the angular movement. It has extremely high requirements on the processing technology, the structure is very complicated, and the accuracy is restricted in many aspects. e fiber optic gyroscope (FOG) uses the Sagnac effect to sense the change of direction, thereby realizing the function of a mechanical gyroscope. Its working principle is based on light interference, with high sensitivity and stable and reliable operation. e principle of the laser gyroscope is to use an optical oscillator as an optical loop, and its distinguishing features are simple structure and long working life. MEMS gyroscope is a microelectromechanical gyroscope, which refers to a technology that uses silicon as a substrate for micron-level processing. It generally uses the principle of the angular velocity of the vibrating object sensor. MEMS gyroscopes have the characteristics of low power consumption, small size, low cost, easy installation, and mass production. erefore, they are widely used in the low-end market. Various gyroscopes are shown in Figure 2. Due to the high cost and large volume of mechanical gyroscopes, fiber optic gyroscopes, and laser gyroscopes, they are not suitable for human wear. erefore, this article chooses MEMS gyroscope as one of the devices in the inertial measurement unit. However, most MEMS gyroscopes have the characteristics of high noise and serious drift. To make up for this shortcoming, this article uses accelerometers and magnetometers to compensate the gyroscope's attitude measurement accuracy, which is one of the research focuses of this article. In this paper, the angular velocity provided by the gyroscope is used for data fusion with acceleration and magnetic value to calculate the attitude angle; on the other hand, the angular velocity is used as a monitoring signal for zero-speed judgment and as a signal for multisensor feature layer fusion.

MEMS Accelerometer.
With the continuous development and maturity of MEMS acceleration sensor technology, MEMS acceleration sensors with high sensitivity, small size, and low price have been applied to electronic consumer products, such as mobile phones, smart watches, and notebook computers. e MEMS accelerometer is mainly used to measure the acceleration of the carrier. e carrier speed can be obtained by integrating the acceleration once, and the carrier displacement can be obtained by integrating again. Compared with the gyroscope, the accelerometer has good static stability, while the gyroscope has very good dynamic stability, which leads to relatively unreliable data at rest. e accelerometer can only accurately measure the attitude when the linear acceleration is negligible when stationary or in motion, while the azimuth update of the gyroscope will be affected by drift, and the data of the magnetometer is easily disturbed by the surrounding magnetic field. erefore, this article chooses accelerometer as one of the inertial measurement unit devices. On the one hand, it is used to measure the acceleration value of the key nodes of the human body and obtain the corresponding static information. On the other hand, it can also be used to correct the drift error of the gyroscope and magnetometer to realize the human body.

Support Vector
Machine. Support vector machine (SVM) [19] was proposed in 1964. Its theoretical basis follows the principle of structural risk minimization. After that, many scholars have studied the solution method of SVM. In 1992, Boser et al. [20] researched and proposed a block algorithm for solving SVM, which decomposed the original solution problem into a series of subproblems to be optimized and reduced the difficulty of solving calculation. In 1997, Osuna [21] proposed the use of a decomposition algorithm to solve the SVM. While ensuring that the subproblem remains unchanged, the variable that needs to be optimized is called the working set, and other nonworking set variables remain unchanged. e shortcomings of the problem size in the algorithm are too large. In 2000, Mangasarian and Musicant [22] introduced the smoothing function into the SVM solution algorithm and transformed the original constraint problem into an unconstrained problem and then used Newton's iteration method to solve it. Mangasarian and Musicant [23] also proposed the Lagrangian SVM algorithm, which converges linearly and uses the implicit Lagrangian formula to get the iterative formula of LSVM, which is more convenient to implement. Although scholars and researchers have done a lot of research on SVM solving algorithms and have achieved good results, designing more efficient SVM solving algorithms is helpful to the application and development of SVM, which is still a direction worth studying.

Martial Arts Motion Capture Device Based on MEMS Inertial Sensor Unit.
e main chip of the sensor unit constructed in this paper adopts TDK IIM-46230, and its output parameters include the acceleration value, angular velocity value, and magnetic force value of the carrier, which satisfy the research of the attitude fitting algorithm in this paper. e sensor package structure is shown in Figure 3, and the parameter index of the inertial sensor is shown in Table 1.
In the inertial sensor unit, the main performance indicators of the gyroscope include measurement range, resolution, zero bias, and zero bias stability. e zero bias is an important parameter of the gyroscope, so only its zero bias output is tested. e accelerometer test mainly measures the modulus value of its XYZ axis, and the modulus value should be equal to the local gravitational acceleration at rest. e measurement of the magnetometer also measures the modulus of its XYZ axis. Place the inertial sensor in an environment without magnetic field interference for 1 hour, and collect its output data of angular velocity, acceleration, and magnetic force.

Composition of Martial Arts Posture Analysis System Based on MEMS Inertial Sensor.
e martial arts athlete's posture analysis system is mainly composed of inertial sensors, data forwarding routers, and computer terminals. e form of its composition is called the human body sensor network (BNS). Specifically, it refers to the human-centered Scientific Programming integration of intelligent sensors, biomedicine, mechatronics, data acquisition preprocessing, multisensor data fusion, artificial intelligence, wireless communication, and other forms of multidisciplinary knowledge to realize the collection and fusion of various human motion data.
Calculation. e 7 inertial sensors of the lower limbs of martial arts athletes are used as the data collection layer of the entire system. ese 7 sensors are, respectively, bound to the left instep, right instep, left calf, right calf, left thigh, right thigh, and crotch of the human body to collect various parts. e acceleration, angular velocity, and magnetic value of the magnetic field are shown in Figure 4(a). e transmission rate of the inertial sensor is 60 Hz, the indoor transmission distance is 40 m, the outdoor transmission distance is 110 m, and the working time is 10 h. e network forwarding layer is a data forwarding router, and the data of the inertial sensor is forwarded to the computer terminal through the router in the form of 2.4 G Wi-Fi forwarding.
e router of the data forwarding layer is shown in Figure 4(b). e data of multiple inertial sensors collected by the data forwarding router is connected to the computer terminal through a USB cable. e inertial sensor data fusion, lower limb posture fitting, calculation of gait parameters, and various algorithm research simulations in this paper are all completed on the computing terminal, as shown in Figure 4(c). e human sensor network of the martial arts athlete's gait analysis system is divided into three levels, namely, the data collection layer, the data transmission layer, and the data fusion calculation layer, as shown in Figure 5.

Support Vector Regression Prediction Model.
As the martial arts training performance and injury risk prediction problem contains a large number of complex features, the data dimensionality is very high, and the support vector regression (SVR) machine model is a commonly used model for processing high-dimensional data, which is used in largescale complex data problems ere will be very good robustness and accuracy. e core of the support vector regression model is the support vector machine (SVM), which maps high-dimensional data to a linear space and classifies it by linear regression. Support vector machine is a two-class classification model that defines the linear classifier with the largest interval in the feature space. When the kernel function is introduced, support vector machines can also solve nonlinear problems. e main idea of the support vector machine is to find an optimal hyperplane in the feature space to completely separate the positive and negative samples, as shown in Figure 6.
For a training data set on a given feature space, where x i ∈ R n , y i ∈ +1, −1 { }, x i represents the i-th feature vector, and y i is the class label of x i . e model can be expressed as the following convex quadratic programming problem: where ζ i is a slack variable, and C > 0 is called a penalty parameter, which is generally determined by the actual situation. A large value of C means a large penalty for misclassification, and a small value of C means a small penalty for misclassification. Minimizing the objective function (equation (2)) contains two meanings: (1) Make 1/2‖w‖ 2 as small as possible; that is, maximize the interval.
(2) Make the number of misclassified points as small as possible, and C is a parameter that reconciles the two. e above equations represent a convex quadratic programming problem, so the solution about WB exists; and it can be proved that the solution of w is unique, but the solution of b is not unique, and the solution of b is in an interval. In order to solve the convex quadratic programming problem, equations (2)-(4) can be transformed into the corresponding dual problem: where a is the Lagrange multiplier and (x i × x j ) is the inner product of x i and x j . e optimal solutions w * and b * of the original problem can be expressed as us, the separating hyperplane can be expressed as e classification decision function can be expressed as In the martial arts training performance and injury risk prediction, the real value is directly output:

Experimental Environment.
e hardware platform and software simulation environment of the experiment in this paper are shown in Table 2.

AUC Evaluation Criteria.
Martial arts athletes training injury risk prediction is a typical two-classification problem. It is difficult to reasonably reflect the effect of classification models that deal with large-scale data using traditional evaluation methods such as accuracy. For a two-category problem, first set a threshold according to the prediction result. When the estimated value is higher than the threshold, it means click; otherwise, it means no click. For a   Table 3. For the entire test set, the training injury risk prediction results of martial arts' athletes are usually described by the ROC curve. FPR is the abscissa of the curve, indicating that the risk-free records are classified into the prediction report, as shown in formula (10); the ordinate is TPR, which means that the risky records are correctly assigned to the forecast report, as shown in formula (11). Under normal circumstances, the TPR value is greater than the FPR value; otherwise, it means that the prediction result is reversed. e AUC value is used to represent the area under the curve, which is an important measurement index for the evaluation of the prediction results of the martial arts athletes' training injury wind. e higher the value, the better the forecasting effect. Moreover, the value of AUC is between 0.5 and 1 under normal circumstances, and the ROC curve is convex, as shown in Figure 7.
4.3. Experimental Results and Analysis. In this paper, the training set randomly sampled from the data set is 10,000, and the test set is 3,000. ree basic models are used to predict martial arts training performance and injury risk, and the AUC value and training time are used as evaluation indicators to explore the advantages and disadvantages of the logistic regression model.
is article compares the three basic models. e features extracted by the model in the experiment are shown in Table 4, where "f_Sparse" is the category sparse feature, "p_CTR" is the historical click rate feature, "Similar" is the similarity feature, "Pos" is the location feature, and "W2V" is      Table 4. Experiments show that the prediction effect of the naive Bayes model is obviously inferior to those of the logistic regression model and the support vector regression model. Not only is the AUC value low, but also the training time is the longest. e reason may be a hypothetical estimation based on training data in prior probability, as well as a certain correlation between features, while naive Bayes trains the model based on the assumption of feature independence. In addition, the AUC value predicted by the logistic regression model is slightly lower than that of the support vector regression model, and the training time is longer. e support vector regression model can capture the key samples in the training set and use them as support vectors, which makes the model very robust.

Conclusion
e accurate capturing and analysis of martial arts athletes' posture in martial arts teaching and sports training is beneficial to accurately judge sports postures, as well as adjusting sports movements in a targeted manner with further refining martial arts athletes' performance and decreasing physical damage. To improve the prediction accuracy of the training injury risk of martial arts athletes and reduce physical damage, this article designs multiple MEMS inertial sensors to form a human body lower limb capture device, and its core components are composed of accelerometers, gyroscopes, and magnetometers. In order to make the obtained acceleration value, angular velocity value, and magnetometer value accurately reflect the movement state of the lower limb structure, different data fusion algorithms and magnetometer ellipsoid fitting calibration algorithms are studied to realize the calculation of the posture angle of each joint point and obtain martial arts posture big data. In addition, through big data analysis, this paper designs a martial arts training performance and injury risk prediction model, which can provide guidance and suggestions for martial arts teaching tasks.

Data Availability
e data used to support the findings of this study are included within the article.

Conflicts of Interest
All the authors declare no conflicts of interest.