Intelligent Recognition Method of Athlete Wrong Movement Based on Image Vision

Current methods of human body movement recognition neglect the depth denoising and edge restoration of movement image, which leads to great error in athletes’ wrong movement recognition and poor application intelligence. -erefore, an intelligent recognition method based on image vision for sports athletes’ wrong actions is proposed. -e basic principle, structure, and 3D application of computer image vision technology are defined. Capturing the human body image and point cloud data, the threedimensional dynamic model of sports athletes action is constructed.-e color camera including CCD sensor and CMOS sensor is selected to collect the wrong movement image of athlete and provide image data for the recognition of wrong movement. Wavelet transform coefficient and quantization matrix threshold are introduced to denoise the wrong motion images of athletes. Based on this, the feature of sports athlete’s motion contour image is extracted in spatial frequency domain, and the edge of the image is further recovered by Canny operator. Experimental results show that the proposed method can accurately identify the wrong movements of athletes, and there is no redundancy in the recognition results. Image denoising effect is good and less timeconsuming and can provide a reliable basis for related fields.


Introduction
With the increasing importance attached to sports events, athletes need to train according to various standard movements in the training process. Referees cannot recognize the wrong movements because of the fast speed or the large number of people. With the development of computer vision technology, it is widely used in the analysis of human body structure. In order to realize the intelligent recognition of athlete's wrong action, computer vision technology is applied. It can not only improve the athlete's movement level but also quickly and accurately judge whether the athlete has the wrong movement, thus enhancing the competition fairness. Computer vision technology is one of the key researches in the field of graphics and computer vision because there are many sports items and there are some differences in recognizing athletes' wrong actions. ere are a variety of organs and tissues in the human body. Different combinations of these tissues can make the human body complete specific behavior, integrate the information of human motion, and provide a strong basis for the analysis of human behavior. erefore, the action recognition based on image human body has very critical research value [1,2]. At present, the commonly used methods of action recognition are usually disturbed by illumination, occlusion, or shaking, which leads to the difficulty of action feature extraction and the inability to get useful features accurately, so that the subsequent segmentation and recognition effect is not ideal.
Liu [3] proposed a method of human posture recognition based on multifeature fusion. Aiming at the problem that the existing posture recognition algorithms cannot reflect the dynamic characteristics of athletes' posture, this paper proposes a posture recognition algorithm based on multifeature fusion. Firstly, the image is captured by optical image collector, and then the image is transformed to gray level to improve the image quality. en, the body contour and the motion region are obtained based on shadow elimination and interframe difference. Finally, posture region and body contour are extracted based on Radon transform and discrete wavelet transform. Chen [4] proposed a moving image contour feature extraction method based on multithreshold optimization. Aiming at the problems of long extraction time and low extraction accuracy in traditional moving image contour feature extraction methods, a moving image contour feature extraction method based on multithreshold optimization is proposed. rough moving image contour feature analysis, the membership function is obtained by using the maximum interclass variance fuzzy constraint method, and multiple thresholds of target contour in moving image are calculated by using fuzzy membership. e geometric center values of the two contour points adjacent to the center point in the image contour range are calculated by using multiple constrained thresholds. e curvature symbol is obtained by calculating the curvature angle, and the contour features of the moving image are extracted according to the curvature symbol. Shen et al. [5] proposed an action recognition method of sports athletes based on deep learning.
is method processes the image data of sports athletes through dense optical flow method and extracts the characteristics of wrong actions of sports athletes by combining short-term memory neural network and convolution neural network.
is method cannot obtain key frames in the process of data processing, resulting in low feature extraction rate of the method.
Aiming at the above problems, this paper proposes a new intelligent recognition method of sports athletes' wrong actions based on image vision.

Intelligent Recognition Method of Sports
Athletes' Wrong Actions Based on Image Vision

Computer Image Vision Technology.
With the development of computer technology and computer vision technology, people begin to study 3D vision gradually. Computer vision technology is mainly derived from photogrammetry and is mainly used in 2D image recognition and analysis. Today, computer vision technology is powerful enough to be used in a variety of fields [6,7]. e main principle of computer vision system is to obtain the target image first, then extract the feature, and finally analyze, process, and calculate the feature, in order to make a reasonable decision. Figure 1 is the basic structure of computer vision system, in which the computer is the core part, needs to control the normal operation of each module, and also needs to calculate and output the results.

Establishment of a ree-Dimensional Dynamic Model of Sports Action.
High realistic 3D dynamic model requires not only the deformation of skeletal joints, but also the movement of the associated skin driven by the joints, so as to produce reasonable movement. erefore, based on the above captured and processed motion images and point cloud data, a 3D dynamic model of sports motion is built, in which the former builds the skeleton model of the sportsman and the latter adds the display appearance to the skeleton model to make the virtual human model more realistic.

Establishment of Surface Models.
After the establishment of the skeleton model, in order to make the 3D human model more three-dimensional and realistic, we need to build the skin model outside the bone. Based on the point cloud data, the surface model is built by triangle mesh method. e process is as follows: first, select any point as the initial point, connect it with the nearest two points to form a triangle, and then extend along the three vertices to make the mesh grow continuously; finally all points are connected to form a triangle network. In meshing, the meshing of the parts that often produce movement should be more detailed, while the meshing of the parts that do not produce large movement should be larger.
After building the skeleton model and surface model, it is necessary to determine which segments of the skeleton affect a point on the skin mesh and then bind the two together to form a complete 3D human model. e specific expression is (1) In the formula, R 1 , R 2 , and R 3 are expressed as the fuzzy recognition parameters of the three-dimensional dynamic model of athletes' movements under the hybrid architecture.

Establishment of Skeletal Models.
Skeleton is the most basic support for the human body to complete all kinds of movement. Only skeleton movement can make the whole 3D model of human body move correspondingly. e skeleton model was established according to the optical motion images. Since human motion is mainly embodied in 16 main parts, the established skeleton model is a simplified skeleton model. is is shown in Figure 2.
When describing these 16 parts, the corresponding joints connecting the bones are also included, and the rotation operation of the bones is also the operation of the corresponding joints. e bone names corresponding to the numbers are shown in Table 1.
Only when the skeleton of the 3D model is driven to move can the corresponding movement of the surface model be generated; that is, the construction of the 3D dynamic model of sports movement is realized.

Error Action Image Acquisition and Processing.
is research selects the color camera which includes the CCD sensor and the CMOS sensor to collect the sports athlete wrong movement image. e camera can capture color images, depth images, and bone images of the wrong motion simultaneously [8]. e color image resolution is 640 * 480, the frame number is 30 Fps, the format is Bayer format, and the color data can be encoded as RGB-32 bits. e depth image acquisition process is consistent with color image. e effective position information is 13 bits higher and the user ID information is 3 bits lower. Skeletal images are captured from depth image data and contain 3D coordinates of 20 nodes, visually displaying skeletal maps of athletes [9].
In order to facilitate the application of error motion images, the spatial coordinates of color images, depth images, and bone images are analyzed. e color space, depth space, and skeleton space coordinates are shown in Figure 3.
e skeletal space and depth space coordinate system conversion formula is In formula (2), a represents the horizontal angle of view of the camera with a value of 57°and b represents the vertical angle of view of the camera with a value of 43°. e conversion formula between depth space and color space coordinate system is In formula (3), Δl represents the displacement of the camera. e color image, depth image, and skeleton image are transformed into the same coordinate system. In order to facilitate image processing and ignore z direction information, the error motion image is I(x, y), which provides image data for the following error motion feature extraction.

Wavelet Transform of Noisy Motion
Image. An action image wavelet transform with noise can be described by In the expression, the image information can be described as s(x, y), the image noise signal can be described as  Right lower leg (right knee) 4 Right foot (right ankle) 5 Left thigh (left hip) 6 Left lower leg (left knee) 7 Left foot (left ankle) 8 Chest 9 Neck 10 Head 11 Right upper arm (right shoulder) 12 Right forearm (right elbow) 13 Right hand (right wrist) 14 Left upper arm (left shoulder) 15 Left forearm (left elbow) 16 Left hand (left wrist) Color/depth image 0 x y Color space and depth space coordinate system f(x, y), and the variance of Gaussian white noise as ϖ 2 is described as e(x, y), subject to N(0, ϖ 2 ). If there is multiplicative noise signal in the image, it needs to be processed by logarithmic conversion, and the multiplicative noise can be converted to Gaussian white noise in logarithmic dimension. Image wavelet transform with noise has the following characteristics: (1) Wavelet transform coefficients have certain spatial orientation characteristics. LH represents edge data in horizontal direction, HL represents edge data in vertical direction, and HH represents edge data in diagonal direction. ese edge data will provide a strong basis for the denoising of subsequent images [10,11]. (2) e series of white noise can be transformed by wavelet base coefficients so that it can be represented by zero mean white noise. (3) In the wavelet transform domain of the noisy image, the signal energy is mostly near the coefficient with higher absolute value, while the noise is completely the opposite [12]. erefore, a threshold value is set, the coefficient not exceeding the threshold value is set to 0, and the wavelet coefficients beyond the threshold value are stored. Depending on the wavelet coefficients after processing, it can be understood that this part of the coefficient is a normal signal in the image, while the residual coefficient has noise to obtain the specific location of the noise.

Image Denoising under Quantization Matrix
reshold. e multiresolution of image is decomposed by decomposition algorithm, and the wavelet coefficient matrix is constructed, then the threshold of matrix is quantified, and the new wavelet coefficient matrix is obtained. Finally, under the threshold of quantization matrix, the image in the matrix is reconstructed by reconstruction algorithm to obtain the denoised image [13,14]. e specific procedures are as follows: (1) According to the decomposition method, at the quantization matrix threshold, the orthogonal wavelet basis is generated in the wavelet function, and the initial image is decomposed into three layers of wavelet to obtain HH, LH, HL detail component and LL smooth component of the image signal (2) Wavelet thresholds are quantified How to select threshold and quantize threshold is the key step in denoising. In a certain sense, at the quantization matrix threshold, this step is related to the quality of the image signal reconstruction. erefore, this paper uses soft threshold algorithm, quantization threshold c defined as c � sign(c), 0.

Spatial and Frequency Domain Feature Extraction of Sports Athletes' Action Contour
Image. Based on the above notable image, the number of pixels in the recognized sports athletes action image is calculated to get the target pixel number and the number of frames in the period. Suppose a sportsman has a frame n image in his movement, the formula of the energy generated by the sportsman's movement is expressed as follows: In formula (6), G(x, y) represents the gray image and B i (x, y) represents the gesture parameters of the motion image.
After the above basic processing, the high-frequency part and low-frequency part of the athlete's movement are distinguished by the discrete cosine transformation method to effectively extract the frequency domain characteristics of the athlete's movement posture [15]. Five sets of motion images, in which f(x, y), x, y � 0, 1, 2, . . . , N − 1 is represented as N × N, are represented by the DCT formula as follows: In formula (7), f(x, y) represents the gray value of the coordinates of pixels f(x, y) in the sports athletes' action image, u and v, respectively, represent the horizontal and vertical conversion rates of pixels in the image, and N represents the DC part of the image features.
After the above calculation, the same transformation coefficient matrix as that of the original athlete can be obtained; that is, the frequency domain characteristics of the athlete's movement can be reasonably reflected. Based on the above transformation, a human posture model can be established. Its structure diagram is shown in Figure 4. e human contour model is represented as follows: In formula (8), In formula (9), W represents the average width parameter of the contour of the human body, H and W, respectively, represent the height and width values of the athlete's motion image, A r represents the area of the athlete's motion target, and R represents the characteristic value in the athlete's motion model [16]. 4 Scientific Programming

Edge Restoration Based on Canny Operator.
e Canny method uses a suitable Gaussian function to smooth the image by columns and rows and also to convolve the image signals [17]. e Gaussian functions used are In formula (10), σ represents the Gaussian curve, which controls the smoothing intensity.
Canny operator is constructed on the basis of 2D convolution ∇G(x, y) · f(x, y), obtains edge direction and intensity, and identifies edge features through threshold [18,19]. e two-dimensional convolution of ∇G(x, y) is divided into two one-dimensional convolvers and the result is Convolution is then performed with f(x, y) for each convolver to obtain e following conditions are met: where the edge strength is described as A(i, j) and the direction perpendicular to the edge is described as a(i, j).
In the process of extracting edge features by Canny operator [20,21], the selection of threshold is very important. If the threshold is too large, the edge feature recognition will be intermittent, and the low threshold will lead to false contour of the image. In this paper, we use double threshold method to solve the problem of threshold selection. Firstly, we propose two thresholds r1 and r2, and 2 r1 � r2, so that we can obtain two threshold edge images is obtained by using high threshold. erefore, the double threshold algorithm needs to link the edge into the contour within N 2 [i, j], and when the contour is linked with each other, the method can connect the inner edge of the contour by searching for the coordinates in the 8 fields of N 1 [i, j], so that the algorithm can continuously collect the edges within e flow of the algorithm is as follows: (1) Calculate the derivative Gx, Gy of the image gray scale according to the reciprocal operator and simultaneously calculate the gradient direction and size of the derivative. (2) If the gray value of an image pixel in a certain direction is low, it is necessary to set the pixel coordinate to 0, that is, nonedge pixels. (3) e threshold is calculated based on the histogram of the image. If the gray level value exceeds the threshold, the gray level area is the edge of the image, and vice versa. en the continuity between the point above the threshold and the previous point is found. If the gray level value is not continuous, then the neighborhood coordinates of the point are found in the stack of the low threshold, and these coordinates are connected, so that the search is iterated until the overall contour is complete [22].

Intelligent Recognition of Athletes' Wrong Actions.
Bayesian classifier is the key to intelligent recognition of sports athletes' wrong movements. erefore, a classifier is designed according to Bayesian algorithm [23][24][25]. Bayesian classifier is a kind of classification method designed according to Bayesian algorithm on the premise of conditional independence assumption. For the training sample set, the joint probability distribution function of the input and output of the training set is calculated firstly, based on which, the maximum posterior probability output of the input data is calculated by Bayes algorithm [26,27].
Suppose the training dataset is R � (x 1 , y 1 ), (x 2 , y 2 ), · · · , (x N , y N ) , and the j feature of the i training sample is x

Scientific Programming
For input value x, the priori probabilities and conditional probabilities are calculated as follows: In formula (14), Y � c k represents the output space corresponding to the input space; N represents the number of training datasets; and P(X (j) � a jl | Y � c k ) represents the joint probability distribution function [28,29].
For a given input x, the corresponding output space is expressed as Determine the category of input x according to formula (15), and the determined formula is expressed as Using Bayes to estimate the conditional probability, the result is In formula (17), S j represents the total number of characteristic values [30,31].
Based on formula (17), a classifier that maximizes a posteriori probability is obtained, and its expression is e above process completes the design of Bayesian classifier, which provides a solid support for intelligent recognition of sports athletes' wrong movements.
After the above basic processing, the feature vectors and their tags are given to the classifier for action recognition. In general, not all of the data contained in the feature data is useful but also contains data that is not relevant. To avoid this, the feature dimension of the data needs to be subtracted [32] by classifying it as shown in Figure 5.
Based on the above process, SVM is used to classify the input features in advance. When there is an error classification, there is a support vector near the hyperplane of the classification [33,34]. In classification, the test set is represented by T, T su is the support vector set, and k is the number of classifiers. e process is as follows: Step 1: support vector machine algorithm is used to calculate the corresponding support vector and to solve the coefficient and constant b.
Step 2: if T is not an empty set, take x ∈ T, and if T is an empty set, stop [35]. Step Step 4: if g(x) > ε, then f(x) � sgn(g(x)) is directly used as the output of the classifier, and if g(x) > ε, it is subsumed into the classifier for classification [36].
Based on the above process, we classify the support vectors and complete the recognition of the athlete's movement.

Image Acquisition of Experimental Samples.
e main equipment used in the experiment is the image acquisition device, which can make the wrong movement of sports transient and fast. e experiment adopts a short time acquisition and storage system to realize the acquisition and storage of the experimental image, which is composed of the camera, the acquisition card, the cable, the computer, and the acquisition software. e parameters of the camera are shown in Table 2.
e experimental sample selects two sports videos as the experimental objects. e two videos are football match and gymnastics match, respectively. In order to verify the reliability and effectiveness of the model, the following experiments are designed. In view of the experimental object sports video frequency to carry on the athlete wrong movement recognition, the comparison method selects reference [3] proposed based on the multicharacteristic fusion athlete posture recognition method and reference [4] proposed based on the multithreshold optimization movement image outline characteristic extraction method. e recognition results of different methods are given in the e specific recognition results are shown in Figures 6-8.
rough the analysis of the two images, it can be seen that the algorithm studied in this paper can clearly identify the key wrong actions of athletes. ere are some redundant results in the recognition results of athletes' human posture recognition method based on multifeature fusion and moving image contour feature extraction method based on multithreshold optimization, and the recognition results are not unique, and the error is relatively large compared with the actual action.

Image Denoising Experiment.
To verify the performance of the proposed method, within 250 frames, two frames are extracted: as shown in Figures 9 and 10, there is uneven noise distribution in the two frames, the contrast is too high, the image is denoised by the proposed method, and the result is shown in Figures 9 and 10.
It can be seen from Figures 9 and 10 that after the image denoising is completed, the noise elimination effect in the initial image is good, which provides a strong basis for subsequent action image recognition.

Accuracy Test of Athletes' Wrong Movement Recognition.
In addition, in order to further verify the better accuracy of the proposed algorithm, we compare it with the traditional algorithm, establish a 3D visual inspection model, and then test two different methods for many times, so as to get the results shown in Figure 11. As can be seen from Figure 5, the accuracy is above 90%, while the progress of the traditional algorithm is between 70% and 77%. So the algorithm studied in this paper has better accuracy and can control the error in a reasonable range.

Time-Consuming Comparative Test of Different Methods.
Comparing the three methods for the intelligent recognition of erroneous actions of 200 successful samples of erroneous actions takes time, and the comparison results are shown in Figure 12. As shown in Figure 12, the intelligent recognition time of reference [3] method for each wrong action is 0.25 s on average, the intelligent recognition time of reference [4] method for each wrong action is 0.39 s on average, and the intelligent recognition time of each wrong action is 0.08 s on average. erefore, the proposed method has high speed and accuracy of intelligent recognition of athlete's wrong movement, which fully shows that the model has good intelligent recognition performance.
To sum up, the intelligent recognition method of sports athletes' wrong actions based on image vision has good effect and high recognition accuracy. It can complete the recognition of sports athletes' wrong actions in a shorter time, and the recognition effect is ideal.

Conclusion
(1) is paper puts forward an intelligent recognition method of athletes' wrong action based on image vision, which improves the application disadvantages of traditional athletes' wrong action recognition methods (2) e intelligent recognition method of sports athletes' wrong actions based on image vision has ideal recognition accuracy (3) e image noise is low, which can complete the recognition of sports athletes' wrong actions in a shorter time

Data Availability
e raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.