Abstract

The constant reform of the competition rules has promoted the innovation of volleyball techniques and tactics. In order to improve the training efficiency and competitive level of volleyball players, this study designed a volleyball player shooting angle automatic recognition and correction method based on the process of feature statistics. Firstly, the basic structure of the information acquisition system is analyzed, and the acquisition process is determined. Then, grayscale and binarization operations are carried out for color-moving images to separate their foreground and background, and a median filtering algorithm is used to remove the image noise. Then, the image pyramid of different sizes is generated by the filter. Based on setting the datum direction, the feature of volleyball shooting is extracted by using the line formula. On this basis, we construct a support vector machine (SVM) classifier to statistically classify the features, use the histogram additive kernel support vector machine method to obtain the lens angle recognition results, and correct the lens angle through feature point matching. Simulation experiments show that this method can effectively remove image noise and make the image signal-to-noise ratio higher, and it can effectively identify whether volleyball players’ release Angle is correct, to achieve the purpose of timely correction.

1. Introduction

Volleyball is a sport that makes the Chinese people proud, especially the Chinese women’s national volleyball team, which has achieved impressive results in the past and has become a spirit of the times, inspiring the Chinese people to strive for self-improvement [1]. As the rules of the volleyball game system continue to change, it imposes higher demands on the physical quality and skill level of the players. Most of the traditional training methods rely on the coaches’ observation and analysis of the angles of the players’ shots through their own experience to find out the deficiencies and give training suggestions and instructions. The training in this way relies more on the coaches’ own quality and is somewhat subjective.

In recent years, for various reasons, the development of volleyball in China has slowed down, which has caused widespread concern among enthusiasts. Modern sports involve high technology from players’ equipment to training methods [2]. Therefore, the development of technology in volleyball training has become the goal of future development. Moreover, having information related to the angle of the athlete’s shot is the first step to improve the technique [3].

In this study, the image acquisition system is used to collect the information of the shot angle of players, and the feature statistics are input into the Support Vector Machine (SVM) classifier to complete the shot angle recognition, and then the feature matching is performed on the collected information combined with the sample inventory in the information acquisition system. If it matches with the sample information, the shot angle meets the requirements; if not, it is corrected.

The reason for the use of feature statistics is that, in the use of mathematical statistics to study overall features, the focus is not on individuals in a population, but on the distribution of related features among different individuals in a population. This paper adopts this method to realize angle recognition, which reduces the complexity of recognition process and improves the accuracy of recognition.

2. Information Acquisition and Processing of Shot Angle

2.1. Information Acquisition System Structure and Acquisition Process

The motion information acquisition system, also known as the motion capture system, can realize the measurement, tracking, and recording of the target, which mainly includes the results of master controller, RF transceiver unit, network communication unit, and serial communication unit. The structure of shooting angle information collection system is shown in Figure 1.

2.1.1. Master Controller

The core part of the master controller is the master chip, and the selected microprocessor varies for different application scenarios. The microprocessor required in this study needs not to be portable and handheld. Therefore, in order to save resources, this study selects the embedded microcontroller as the system processor. In addition, the reader and the RFID both need to feature low-power consumption, so this study uses the ultra-low-power sixteen-bit industrial-grade microcontroller introduced by TI as the master chip.

2.1.2. RF Transceiver Unit

Generally, the acquisition system utilizes the acquisition method based on the signal reception strength, so the signal acquisition capability of the RF transceiver chip should be strong [4, 5]. Based on a comprehensive analysis of the system requirements and functions, the 2.4 GHz CC2500 is selected as the RF transceiver chip in this study because of its advantages of small size, low power consumption, and user-friendly design.

2.1.3. Network Communication Unit

This unit mainly refers to the Ethernet communication part, and the ENC28J60 from Microchip is selected in this study because it has only twenty-eight pins and has the advantages of low computational complexity and low cost [6].

2.1.4. Serial Communication Unit

The serial communication unit in this system uses MAX232, a level logic conversion chip to interconnect the UART port of the master controller with the PC to achieve communication.

Combining the structure of the above-mentioned information collection system, the construction of a volleyball information collection program is shown in Figure 2.

2.2. Image Information Preprocessing

The acquired volleyball motion images are preprocessed. Usually, the information contained in the image is complex, and the useful information generally accounts for only a small portion. In addition, there is also a certain amount of noisy information in the image due to the effect of illumination. The purpose of preprocessing is to improve the image quality and thus fundamentally improve the recognition effect. Image preprocessing in this study mainly includes grayscale, binarization, and filtering and denoising.

2.2.1. Image Grayscale

Since the images acquired by the system are color images, the essence of image grayscale is to take the same values for the red component , green component , and blue component . The processed color image realizes less postprocessing calculation and occupies less memory space. Grayscale image is an image with only one sampling color on any pixel. It is usually displayed as grayscale from the brightest black to white.

The component value interval of , , and is generally , the grayscale is 256, and grayscale images can represent 256 colors. The grayscale values are represented by . In this paper, the weighted average method is used to realize the grayscale of color images.

Combining the three values , , and , their respective weights are defined and a weighted average of them is calculated as follows:

In equation (1), , , and represent the weights of , , and , respectively. Since green produces the strongest stimulus effect on human eyes, followed by red and blue, grayscale images are obtained with higher quality when . Combined with experience, it is known that the best grayscale images are obtained when , , and [7, 8]. The expression for grayscale of color images is as follows:

In equation (2), represents the point within the image, represents the grayscale value after grayscale transformation, and the three values of this point in the initial color graphics , , and are described as , , and , respectively.

2.2.2. Image Binarization

The essence of grayscale image binarization is to separate the foreground and background of the image [9]. Firstly, a threshold is set to divide the image into two parts, and the part above is called the foreground image and the part less than the background image. Assuming that the input and output images are represented as and , respectively, the following equation is applied:

If the target grayscale values are distributed in several nonadjacent regions, the following equation is applied:

In equation (4), represents the set of different grayscale value intervals of the foreground target.

2.2.3. Filtering and Denoising Processing

In the process, the median filter algorithm is used to remove image noise. The median filter algorithm mainly applies the sorting statistics theory. The core of this algorithm is the sorting statistical theory, which belongs to a nonlinear smooth filtering image processing technique [10]. The filtering expression in the two-dimensional filtering window is as follows:

In equation (5), represents the grayscale value of the pixel in the neighborhood.

Through the above-mentioned implementation of image graying, binarization, filtering, and denoising processing operations on volleyball moving images, not only can the foreground information and background information in the picture be effectively separated but also the noise information in the image can be effectively removed, thereby improving the image information. Furthermore, the noise ratio lays the foundation for the subsequent volleyball shot feature extraction process.

3. Automatic Recognition and Correction of Shot Angle Based on Feature Statistics

3.1. Feature Extraction

Upon completion of image preprocessing, direct detection of feature points enables to avoid image segmentation, which is easier to implement. For this reason, this study implements feature point detection using approximate Hessian matrix based on Speeded-Up Robust Features (SURF). Assume that the Hessian matrix of the point in the scale space that is is represented as

In equation (6), , , and are the results obtained from the second-order partial derivatives of the Gaussian function at [11] and the convolution of the image .

On this basis, the image pyramid is constructed. In this process, the image needs to be resampled and then convoluted with Gaussian functions of different scales. A surf operator approximates the second-order Gaussian function through a box filter to improve the calculation speed. The image pyramids of different sizes can be generated in the image depending only on the filter size, and the convolution acceleration of the image is achieved using integral images [12, 13], and thus, the determinant of Hessian matrix is obtained as follows:

In equation (7), indicates the response value of the box filter in the region near the point [14], and , , and represents the prefiltering image line, the filter convolution line, and the postfiltering image line, respectively. The value of the matrix determinant is used to judge the feature point, and if the value is positive and the two feature values are different, the point is defined as an extreme point.

Based on this, some among the extreme points are selected as candidate feature points. The selection method is to do the nonmaximum suppression in the regions centered on the extreme points and compare the adjacent scales with the 26 neighborhood values near the scale, and only the points that are larger or smaller than the neighborhood values can be identified as feature points.

To ensure the rotational invariance of the descriptors and give the reference direction for feature point assignment, a neighborhood with the feature point as the center of the circle and ( refers to the scale value where the feature point is located) as the radius is established firstly, and the Harr wavelet responses in different directions are computed in this region, while weights are attached to these response values to ensure that the weights of the adjacent feature points are larger; its rotation is performed in a circle by a sector template with a circular angle of sixty degrees to obtain the vector consisting of the cumulative sums of the Harr responses in all sliding windows, and the direction corresponding to the highest cumulative sum is set to be the reference direction of this feature point [15].

After determining the reference direction, construct a square with a side length of 20 cm along the direction centered on the feature point, and divide the window neighborhood into subareas. In any subregion, the Harr wavelet response values of the sampling points are calculated for the reference direction and , which are recorded as and and weighted, and the statistical results of different subregion response values are expressed as ; then, a four-dimensional vector is obtained, which is the feature descriptor of this subregion.

3.2. Feature Statistical Classification Based on Support Vector Machine Classifier

The feature extraction of volleyball players’ shot angle has been completed above, and the next step is to classify and recognize the extracted features.

The greatest advantage of SVM is its excellent learning and generalization ability [16]. The main idea of SVM is to construct the plane by mapping the initial nonlinear data into a high-dimensional space and to maximize the distance from all sample sets to this plane [17]. For this purpose, this study uses the linear support vector machine in a linearly separable case to obtain the optimal classification hyperplane.

Assume that the training set is represented as

In equation (8), the sample type , and represents the number of samples. Then, linear separability means that a certain classification plane is capable of correctly classifying all the data in the set, and the hyperplane is expressed as

In equation (9), represents the Euclidean space dimension, represents the data set, and represents the flat subset. The classification decision function relative to the hyperplane is as follows [18]:

The distance between two planes is referred to as the classification interval between two sets of classified samples [19], and a larger value indicates a higher classification accuracy. Its expression is as follows:

In the case that all the two types of classified samples are correct, the classification interval is maximized when has the minimum value. Then, the optimal classification of linear separability can be expressed by the following equation:

Using the Lagrangian function to calculate equation (12), assume that the function is expressed as

In equation (13), represents the Lagrangian operator.

Then, the first-order partial differentiation is performed on and so that it is equal to 0:

Equation (14) is substituted into equation (13) to obtain the dual optimization problem as follows:

Then, the optimal classification function can be expressed as follows:

In summary, the statistical classification of players’ shot angle features can be achieved by using the optimal classification function.

3.3. Feature Recognition and Correction

In the process of lens angle recognition, this research realizes the final recognition combined with data features. For each acquired image, a -dimensional statistical histogram is obtained after the description of the key frame feature library, and the shot angle recognition is performed by using the histogram intersection kernel support vector machine. The expression of the histogram intersection kernel is as follows:

In equation (17), and represent the statistical histograms of species, respectively.

The image features are then described to obtain a statistical histogram, and with intersection kernel SVM, a linear combination is made between the probabilities of occurrence of different angles, and the highest probability value after the combination is taken as the recognition result [20], and the algorithmic procedure is shown in

In the above equations, represents the number of different shot angles, represents the extracted species features, represents the probability combination of occurrence of tested images, and represents the decision coefficient.

Feature point matching is performed for the recognition results and the feature library images in the acquisition system to derive the difference between the players’ shot angle and the standard angle, so that the wrong shot angle can be corrected more accurately. For this purpose, this paper uses the paradigm of the ratio of nearest neighbor and second nearest neighbor for bidirectional matching. The equation is as follows:

In equation (20), and represent the eigenvectors of the two feature points.

In summary, the design of the automatic recognition and correction method of volleyball players’ shooting angle based on feature statistics is completed, and the realization process is shown in Figure 3.

4. Simulation Experimental Data Analysis and Research

In order to verify the feasibility of the automatic recognition and correction method of volleyball players’ shot angle based on feature statistics designed above, the following simulation experiment is set up. The simulation environment is shown in Table 1.

In the experiment, volleyball spike is taken as an example. Assume that the ball speed is 80 km/h and the height of the hitting point is about 3.2 m. Firstly, 10 images of players’ spike shot angles are acquired using Gabor filter and feature extraction is performed using an grid. Before feature extraction, image denoising is performed using the method in this paper, 3D shear domain image denoising in the literature [19], and convolutional neural network-based denoising method in the literature [20]. The final image signal-to-noise ratio obtained is shown in Figure 4.

It can be seen from Figure 4 that with the increase of image size, the image signal-to-noise ratio decreases after denoising by the three methods. The decreasing trend of the image signal-to-noise ratio is not obvious after applying the method in this paper, and it always remains high. This indicates that the median filtering algorithm in this study can effectively denoise images, which lays a good foundation for the subsequent feature statistics.

After the image processing mentioned above, the shot angle is recognized using the recognition algorithm in this paper. A variety of features such as players’ legs, elbows, and hands are counted in the experiment to more accurately recognize whether the shot angle is correct. The recognition results are shown in Figures 5 and 6.

As shown in Figures 5 and 6, through the statistics of multiple image frame features, this study recognizes that the angle between the arm and the right angle of the volleyball is greater than 90 degrees and the knee bending is closer to 90 degrees during the spike action in Figure 5. This kind of shot angle is conducive to release force, thus improving the spike effect, while in Figure 6, the player’s arm and knee bending degree is smaller and the body weight falls on the feet, which affects the jump, thus reducing the spike strength.

5. Conclusion

In this study, a volleyball sports information acquisition system is designed to acquire images of the players’ shot angles, and after a series of processing, the images are obtained with high signal-to-noise ratio, while feature extraction is completed based on the key features of each frame, and the feature statistics are accomplished through a support vector machine classifier to achieve the recognition of the shot angles, which helps coaches to correct nonstandard movements. The method features strong image processing capability and can accurately complete image recognition, which will play an important supporting role in sports training.

In the future research, a variety of positioning measurement technologies such as computer vision, machine vision, and ultrasonic positioning can be introduced, and the advantages of different methods can be used to obtain a more ideal image acquisition effect and make volleyball training more scientific.

Data Availability

The labeled dataset used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The author declares no competing interests.