Abstract

Sports injuries of high-level athletes restrict the improvement of sports performance. Under this premise, an efficient and accurate sports injury assessment method is needed to detect potential sports injuries and conduct injury prevention training. Therefore, this paper proposes a novel sports injury prediction algorithm based on visual analysis technology. The proposed algorithm first takes the time-frequency of sensed data as the convolutional neural network (CNN) input. The one-dimensional time series collected by the sensor is converted into two-dimensional images using the Gram angle domain algorithm. The one-dimensional sensed data provides a new perspective and provides a basis for better use of convolutional neural networks and computer vision technology. Second, combining the residual network’s structure and advantages and hole convolution and multihole convolution kernel residual module is proposed. It improves the model’s ability to extract features at different scales while effectively controlling the parameter scale. Based on these modules, a single-sensor-based athlete action recognition algorithm is proposed. Several comparative experiments have been conducted on a public data set containing only acceleration sensors to verify the proposed algorithm’s effectiveness.

1. Introduction

High-level athletes need to participate in various forms of competitions. After the competitions, systematic physical fitness and special skill training are also required, and daily training is often at a higher intensity level [13]. This kind of long-term, high-intensity training will cause the physiological load of athletes. Always in a state of high load, it is easy to cause sports injuries to athletes. Conversely, athletes will not be able to effectively complete high-intensity training due to sports injuries. They will not be able to achieve good results in the competition, which will affect the improvement of athletes’ performance. From a physical fitness point of view, high-level athletes’ physical fitness level determines their motor skill level [4]. Therefore, sports skills must be based on physical fitness, and sprint sports have very high requirements for athletes’ physical fitness. The sprint is one of the highest-intensity sports, and ATP-CP mainly completes its energy supply form. Sprint athletes often carry out high-intensity sports training, which inevitably brings about a high risk of sports injuries [5]. Studies have shown that the main sports injuries that sprinters often experience are iliac crest bundle friction syndrome, ligament injury, knee injury, ankle injury, hip injury, waist injury, tenosynovitis, abrasions, contusions, and so forth. Suppose that these sports injuries cannot be effectively avoided. In that case, they will continue to affect the systematic high-intensity training of sprinters and shorten the sports life of outstanding athletes. Therefore, athletes’ sports injury has become the main factor that continuously limits the performance improvement of high-level athletes. It requires the use of necessary sports injury detection methods to detect high-level athletes [68].

The key to sports injury rehabilitation intervention is injury prediction, and the key to prediction lies in accurate recognition of human movements [9]. The action recognition method based on human posture is the most intuitive method, which uses the law of the change of human posture between consecutive frames to realize human action recognition. This method first recognizes the human body in the video image to obtain the human skeleton information and then uses the human skeleton information for action recognition. Among them, the accuracy of human body gesture recognition directly affects human body action recognition accuracy. Therefore, human body gesture recognition has become an important task of computer vision. Human body gesture recognition aims to identify the human body’s joint points in the image and generate the human skeleton. At present, there are two main types of human body recognition methods:(i)The top-down method that first recognizes the number of human bodies in the image and then recognizes the human body joint points(ii)The bottom-up method that first recognizes the human body joint points in the image and then distinguishes the node attribution

With the development of the Internet of Things and 5G networks, in the case of the Internet of Everything, multisensor data fusion is bound to be an important direction for sports injury recognition and prediction in complex environments [10]. Although there have been much researches on sensor-based athlete action recognition, there are still many challenges. To optimize the structure of the recognition model, under the condition of limited parameter scale, the model’s feature extraction ability is further improved, thereby improving the recognition of the system’s accuracy and practicality. Therefore, this paper constructs a sports injury recognition algorithm based on visual analysis and neural network technology [1115], which provides auxiliary conditions for rehabilitation intervention.

The main contributions of this paper are as follows:(1)This paper proposes a novel sports injury prediction algorithm based on visual analysis technology, which uses multisource sensors to obtain athlete’s action data in a complex environment. It uses deep neural networks to predict injury.(2)We combine the structure and advantages of CNN networks, such as residual network and hole convolution, and propose a new multihole convolution kernel residual module, which improves the model’s ability to extract features at different scales while effectively controlling the parameter scale.(3)We performed automatic fusion of multisource sensor data and proposed an automatic multisource sensor data fusion network based on a single-sensor-based behavior recognition algorithm. It automatically performs a feature-level fusion of each sensor’s data. Simulation experiments were conducted on the set to evaluate the performance of the proposed method.(4)We extensively performed the experiments and the results show that the proposed data fusion network is effective.

The remainder of the paper is organized as follows. In Section 2, related work is studied, followed by the proposed methodology in Section 3. The experimental setup is given in Section 4, and Section 5 concludes the paper.

Competitive sports are characterized by high antagonism and high intensity. The main causes of sports injuries for competitive athletes are overtraining, unreasonable competition training arrangements, physical fatigue, and other factors. According to relevant studies, the injury rate caused by training peaked at 53.4%, chronic injury caused by excessive special training accounted for 23.5%, and sports injury caused by violations of training science accounted for 16.7%.

From the research on the types of sports injuries, chronic injuries, acute injuries, and closed injuries are more common in sports. Acute injuries are manifested as contusions, strains, sprains, fractures, dislocations, and other types of injuries, especially muscle strains. Joint sprains are the most common. From the point of view of sports injuries’ characteristics in sprints, the main manifestations are thigh muscle strain, rotator cuff injury, knee sprain, ankle sprain, wrist injury, calf gastrocnemius strain, and ankle tenosynovitis. The most common injuries are back thighs muscle strains and wrist injuries. High-intensity resistance training and sprint events require accelerated movement in the shortest time. This explosive force is the main reason for these two types of injuries [16].

The recognition models used in sports injury recognition systems can be roughly divided into two categories. One is based on classic machine learning algorithms, and the other uses deep learning algorithms such as convolutional neural networks [1721]. Commonly used classic machine learning algorithms include decision trees, K-nearest neighbors, hidden Markov models, and support vector machines. Scholars at home and abroad have used these algorithms to do a lot of research on sensor-based motion damage recognition. For example, Lee et al. [22] collected angular velocity data through a gyroscope attached to the foot. They used a decision tree model to classify behaviors such as walking, running, going upstairs, and going downstairs. Ignatov et al. [23] proposed an online time-series segmentation method and realized the classification of six behaviors using principal component analysis and the KNN algorithm. Based on the KNN algorithm, Preece et al. [24] compared the performances of 14 feature extraction methods. These features are mainly obtained from the time domain, frequency domain, and wavelet transform. Fleury et al. [25] used accelerometers, magnetometers, and infrared sensors to collect data, performed principal component analysis on the extracted features to obtain ten main features, and realized 35 behaviors’ recognition training called the multi-SVM model. The accuracy rate reaches 86%. However, these classic algorithms all require complex and time-consuming feature engineering, manually designing the extracted features, and performing feature selection or dimensionality reduction to filter out representative features. Computer vision methods based on deep learning avoid this step of feature engineering.

3. Methodology

In this section, the details about the methodology are given.

3.1. Sensor-Based Motion Recognition

This section provides detailed discussion about the sensor-based motion recognition and its impact on the proposed algorithm.

3.1.1. Mathematical Description

Sensor-based behavior recognition can be regarded as a typical pattern recognition problem. Through calculation methods, samples are classified into certain categories according to their characteristics. It is described in mathematical language as follows: Suppose that the user performs certain behaviors belonging to a set , and the time-series matrix collected by multiple sensors is ; thenwhere represents the number of action types, represents the column vector composed of the data collected by the sensor at a time , and represents the length of the sequence. The time series is input into model , and, after calculation, the predicted action category sequence is obtained, and the real action category sequence is .

The action recognition system aims to reduce the difference between the predicted category and the real category by training the model. The purpose is to characterize the difference between the two categories by establishing a loss function L, and the problem is converted to minimizing the loss function through training.

Usually, the original time series is not directly input into the training model but goes through data preprocessing feature extraction and feature selection. The function represents these processes : the mapping transformation from the original data to the feature vector . The final goal of model training is to minimize the loss function . The symbol denotes that when using sensor-based athlete action recognition, many important objects must be considered, as shown in Table 1.

3.1.2. Time-Series Imaging Algorithm

Most of the raw data collected by the sensor is a one-dimensional time series. Applying a two-dimensional convolutional neural network usually needs to be converted into a data format similar to a two-dimensional image. The Gramian Angular Field algorithm is introduced below. The Gramian Angular Field algorithm can convert a one-dimensional time series into a two-dimensional image. The specific implementation steps are as follows. Suppose that the time series collected by a certain sensor is , which contains observations. First, we use normalization operations to make all the values between [-1,1] and [0,1]. The calculation equation is as follows:

Then, transform the time series X from the Cartesian coordinate system to the polar coordinate system.

The arc cosine of the normalized observation value is taken as the angle in the polar coordinate system. The time label is taken as the radius in the polar coordinate system. After the two normalization operations, the data have different angle ranges after being converted to the polar coordinate system. The angle of the cosine function corresponding to the data in the range of [0,1] is [0,], and the angle corresponding to the data in the range of [-1,1] is [0,].

As time increases, the sequence value changes from the original amplitude change to the angle change in the polar coordinate system. By calculating the sum/difference of the trigonometric functions between the points, the time correlation between the points can be identified from the angle of view. Define Gramian Angular Summation Field (GASF) and Gramian Angular Difference Field (GADF) as follows:

3.2. Multidilated Convolution Kernel Residual Module
3.2.1. ResNet

The core idea of ResNet is to alleviate the difficulty of training caused by the deep network by adding shortcut connections to the network. Before the emergence of ResNet, networks trained too deeply usually had degradation problem and gradients vanishing/exploding. The structure of the residual module is shown in Figure 1.

Suppose that, before adding the shortcut connection, the mapping of the residual module’s parameter layer to input is , and the output is . After adding the shortcut connection, the mapping of the parameter layer of the residual module to input is , and the output is ; then the outputs are

When the neural network has reached the best performance, the added residual module should learn identity mapping to not reduce the performance of the deep network. It is equivalent to making and making much simpler because the former needs to realize , while the latter only needs to realize . The former requires a lot of adjustment and learning of parameters, and a little change in the parameters may cause huge changes to the entire network. The latter only needs to set the parameters to 0 to achieve the performance of the original network. A little parameter change on this basis may improve the performance of the network. In general, the added residual module is easy to learn the identity mapping, so at least it will not worsen the performance of the deep network. At the same time, more parameters make the model’s fitting potential greater.

3.2.2. Dilated Convolution

The traditional convolutional neural network comprises convolutional layers and pooling layers continuously stacked to deepen the number of network layers and improve performance. However, with the continuous deepening of the network, the pooling layer’s existence makes the picture size smaller and smaller. When the picture needs to be further processed subsequently, such as semantic segmentation, it is necessary to restore the picture to the original size through upsampling. In this process, some information will inevitably be lost. Since image segmentation is a pixel-level operation, the result will be affected, and the accuracy will be reduced. By inserting holes in the original convolution kernel, it is possible to increase the receptive field without increasing parameters without pooling and improving network performance.

The principle of hole convolution is shown in Figure 2(a) which is a standard convolution kernel; Figures 2(b) and 2(c) are, respectively, convolution kernel inserting a certain number of holes. Judging from the input image’s direction, the so-called hole is to use the sampling frequency as the parameter rate on the image. For sampling, there is no change when rate = 0; that is, no information is lost, as shown in Figure 2(a). When rate >1, sample every (rate-1) point on the original image. Figure 2(b) is the case where rate = 2. The red points can be regarded as sampling points on the original image after sampling and convolution. From the convolution kernel’s perspective, the hole convolution is to insert (rate-1) zeros in the adjacent points of the traditional convolution kernel and then convolve with the original image. It can be seen that after the 3∗3 convolution kernel is inserted into the hole of rate = 1, its receptive field is equivalent to a 7∗7 convolution kernel, and the number of parameters has not increased at the same time.

3.2.3. Our Mdc-Res

In view of the structure and advantages of the several above-mentioned networks, based on the research of residual module and hole convolution, this paper proposes a new Mdc-Res module, the structure of which is shown in Figure 3. The Mdc-Res module mainly includes 4 parts, namely, 1 × 1 convolution, stacked 2 normal 3 × 3 convolutions (i.e., 3 × 3 convolution with an expansion rate of 1), stacked 2 3 × 3 convolutions with an expansion rate of 2, and stacked 2 3 × 3 convolutions with an expansion rate of 4. The network’s upper layer feature map is input to the Mdc-Res module, and the calculations of the above parts are, respectively, processed. Then the 4 calculation results and the input feature map are added to form a quick connection, and, finally, the output of the Mdc-Res module is obtained. In the calculation process, the convolution hyperparameters of the 4 parts are all set to “padding = same, strides = 1” to ensure that the dimensions of the output and input are consistent.

In the Mdc-Res module, by using multiple normal convolution kernels and hollow convolution kernels at the same time, the width of the network is increased, and the ability of the network to extract features of different scales is improved. Simultaneously, since the 5 × 5 convolution kernel is not included, it effectively regulates the model's parameters cut down on computation time. In addition, the shortcut connection in residual learning is introduced into the Mdc-Res module, which suppresses the common degradation problems and gradient disappearance phenomenon in deep neural networks, increases the depth of the network, and improves the fitting ability of the model.

3.3. Multisensor Motion Recognition

Multisource sensor fusion can be divided into competition and cooperation. Competitive fusion means that multiple equivalent sensors will be used to obtain redundant information and self-calibration. Competitive fusion is relatively rare even if multiple sensors of the same type are used; they are usually placed in different locations on the athlete, so each sensor can provide supplementary information. Cooperative fusion means that each sensor can collect different aspects of the observed object and complement each other to obtain more comprehensive information, thereby improving the system’s accuracy and reliability.

The structure of multi-Mdc-Res is shown in Figure 4, which is mainly composed of 1 × 1 convolutional layer, Mdk-Res module, maximum pooling layer, global average pooling layer, and SoftMax layer. The main difference between it and Mdc-ResNet is that it has multiple data sources, while Mdc-ResNet only processes data from one sensor. The data of multiple data sources is input to multi-Mdc-Res. It is processed by multiple stacked 1 × 1 convolutional layers, Mdc-Res modules, and maximum pooling layer (optional) to automatically extract each data source’s data. The feature fusion layer then processes the feature to form a new feature map. The new feature map is again processed by multiple 1 × 1 convolutional layers, Mdc-Res module, and maximum pooling layer (optional) to extract effective and robust features from the fused features. Finally, the recognition result is obtained through the calculation of the GAP layer and the SoftMax layer. Except for the activation function of the SoftMax layer that uses the SoftMax function, the other convolutional layers all use the ReLU activation function.

4. Experiments

4.1. Experimental Environment

The system’s hardware environment in the experiment is CPU Intel Core i7-4700MQ, 2.4GHZ, 16 GB of memory, and the development platform is Python3.6 with Windows 7 operating system. Additionally, Table 2 shows the specific parameters of the experimental environment.

4.2. Data Set

The Nonlinear Complex Systems Laboratory of the University of Genoa, Italy, released the UCI HAR data set. The experiment consisted of 30 volunteers between the ages of 19 and 48. They fixed their smartphones to their waists and used the embedded accelerometers and gyroscopes in the phones to collect 6 types of behavioral data (walking, upstairs, downstairs, sitting, standing, and lying). The sampling rate is . This data set has undergone sliding window processing, with a window length of 128, 50% overlap, a total of 10299 samples, and random division, of which 70% is used as the training set and 30% is the test set.

4.3. Evaluation Methods

Sensor-based athlete action recognition can be regarded as a multiclassification problem. To evaluate such algorithms’ performances, commonly used indicators include Accuracy, Precision, Recall, and F-Measure. Take the binary classification problem as an example to define each indicator. According to the true category of the sample and the model prediction result, the sample is divided into four categories: TP, FP, FN, and TN. The calculation equation is as follows:where represents the sample itself as the foreground class, and the prediction is correct. represents the sample itself as the foreground class, but the prediction is wrong. represents the sample itself as the background class, but the prediction is the foreground class. represents the sample itself as the background class, and, at the same time, the prediction is correct.

4.4. Experimental Results

We have conducted experiments on 7 types of networks, MLP, LSTM, 1D CNN, 2D CNN, ResNet, GoogLeNet, and Fusion-Mdk-ResNet, on the UCI HAR data set. Figures 5 and 6 are the change curves of the model trained for 100 iterations under each evaluation index. It can be seen from the figures above that multi-Mdc-Res has the highest accuracy on the training set, the lowest loss function, and the best model effect. GoogLeNet, ResNet, and 2D CNN are the next best ones. The difference between the three is small, 1D. The effects of CNN, LSTM, and MLP are ranked last. However, in the verification set, the difference between GoogLeNet, ResNet, and Fusion-Mdk-ResNet is not big, which may be due to the small number of verification sets or the deviation of the data distribution of the verification set and the training set, and Figure 7 shows the confusion matrix.

5. Conclusion

In this paper, we propose a sports injury prediction algorithm based on visual analysis technology. First, the time-frequency graph of sensor data is used as the CNN model’s input to study the two-dimensional imaging of one-dimensional time series and convert the one-dimensional time series collected by the sensor into two-dimensional images. Use Gram angle domain algorithm. Observing sensor data provides a new perspective and provides a basis for better use of convolutional neural networks and computer vision technology. Second, combining the structure and advantages of CNN networks such as residual network and hole convolution, a new residual module of porous convolution kernel is proposed, which improves the model’s ability to extract features at different scales while effectively controlling parameters scale. At the same time, based on this module, a sensor-based motion recognition algorithm for athletes is proposed. Many comparative experiments were carried out on the public data set containing only the acceleration sensor to verify the proposed algorithm’s effectiveness.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.