# Convolutional Neural Network and Computer Vision-Based Action Correction Method for Long-Distance Running Technology

Authors: Wang Juan
Journal: Security and Communication Networks
 (2022)

---

## Abstract

For long-distance running tactics, a computer vision-based motion correction solution is presented. The depth information is merged into the KCF algorithm to enhance it, which overcomes the classic KCF method’s incapacity to tackle the tracking drift issue caused by occlusion and extracts the technical features of long-distance running motions. Based on computer vision, the posture area of long-distance runners is detected, and the technical movements of long-distance runners are recognized. Calculate the centroid coordinates of the wrong technical movement correction area in long-distance running, and generate a tracking image of the wrong technical movement in long-distance running. The foreground and background information of the image is separated by the optical flow feature of machine vision, and the motion trajectory of the long-distance running error technique is extracted, and the motion correction of the long-distance running technique based on computer vision is realized. The experimental results show that the method in this paper has better accuracy in extracting long-distance running motion features and can accurately identify and correct the technical movements of the long-distance running, the technical movements of the head, and the technical movements of the body balance, and the correction efficiency is high.


---

## Body

## 1. Introduction

Among aerobic exercises, running is a popular physical activity. Running has the ability to improve not just cardiopulmonary function but also muscular strength, resulting in a body-strengthening impact. According to scientific study, 70% of runners have irregular or even incorrect running posture, and incorrect running actions inflict varying degrees of injury to the athlete’s body. People’s living standards are rising all the time nowadays. Running, as an aerobic workout, is beneficial to all areas of the human body, including the cervical spine, spine, and heart. Observing the runners’ running stance, it is concluded that the wrong technical movements of long-distance running mainly include the soles of the feet on the ground, the toes on the ground, the stride is too large, the inside and outside “sigma feet,” and bowing or raising the head. These wrong long-distance running postures will affect the coordination of the human body and increase the consumption of physical strength. At the same time, due to the lack of straight running characteristics, the running effect and speed are very poor. The left and right shaking will reduce the stability of the body. Sprains can occur [1–3].At present, scholars in related fields have made research on the correction methods of long-distance running technical movements. Jia [4] proposed a new method of motion error model based on 3D contour feature decomposition for wrong behaviour in sports competitions. The sports error behaviour image acquisition model is established, the sports error behaviour is classified using multidimensional wavelet scale decomposition technology, the gray-scale contour model of the sports error behaviour is established, and the 3D contour feature decomposition technology is used to classify the sports error behaviour modelling. According to the motion capture technology of the micromotion sensor, Liu [5] fused the data of the three-axis acceleration sensor to obtain the position and posture of the human body and transmitted the collected data to the computer in real time and used OpenGL to display the movements of the human body in real time. The above methods have certain validity, but there is still a certain room for improvement in the correction effect of different technical errors in long-distance running when applied to long-distance running.In order to allow more fitness athletes to run with the correct posture, this paper proposes a computer vision-based action correction method for long-distance running techniques. It can detect target occlusion, minimise negative sample noise, and increase the tracking accuracy of long-distance running technology thanks to an upgraded KCF algorithm that incorporates depth information. Long-distance runners’ motion characteristics are extracted, the rationality judgement threshold of posture characteristics is determined, and it is applied to the recognition of long-distance running technical movements, and optical flow characteristics are introduced into machine vision technology to determine long-distance runners’ errors. The technical action range and azimuth angle are extracted, and the characteristics of the technical actions of long-distance running mistakes are extracted, followed, and corrected to achieve the purpose of correcting the technical actions of long-distance running mistakes.


## 2. Long-Distance Running Target Tracking and Technical Feature Extraction

### 2.1. Long-Distance Running Moving Target Tracking Based on KCF Algorithm

KCF is a filter-based tracking algorithm based on kernel correlation. In practice, the tracked long run is used as the main sample, and then the visual area around the target is set to a negative value. In the case where the response value of the main sample is the largest, the target tracking is completed by using the discriminative classifier [6]. On this basis, using the matrix iterative update algorithm, the inverse solution of the matrix is eliminated, and the solution is transformed into the discrete Fourier transform domain, which improves the computational efficiency [7]. The destination point provides the resources for the main acquisition, and the background image is the acquisition for negative values. The identification is done in the form of an unbroken numerical value based on the distance between the centre of the sample point and the destination location. When the value is near to 1, the distance from the target is smaller, and when the value is close to 0, the distance from the target is higher [8].


#### 2.1.1. Solving Process

The KCF operation is done by solving a ridge regression process (also known as least squares), which can be expressed as(1)min∑xgxi−yi2+αq2.In the formula,α is the ridge coefficient, and q is the weight of the actual application (technical characteristics of long-distance running).(2)q=XTX+αI−1.Conjugate weightsq∗ [9] are computed in the Fourier region:(3)q∗=XHX+αI−1.The long-distance running exercise sample matrixX is replaced by a cyclic matrix, and the discrete Fourier transform matrix F is introduced, which has the following properties:(4)X=FdiagxFH.Calculate the conjugate weights by referencing the discrete Fourier transform matrix:(5)q∗=F−1diagαx.Through the kernel function [10], the kernel function is set to ϕx, then the weight is(6)q=∑iβiϕx.In the formula,βi is the kernel function parameter.


#### 2.1.2. Operation Process

According to the ridge regression solution process of the kernel function, the Fourier domain is obtained:(7)β=T+αI−1.A kernel-based cyclic matrixT is introduced to solve the discrete Fourier domain:(8)β^=xtyy+α.In the formula,tyy is the first row element of T.


#### 2.1.3. Process of Detection

Because the location of the human body area changes constantly throughout the movement process in a long-distance running picture, it is important to normalise the image to a uniform size and define the human body movement area at the same central position to meet all of the goals. The human body’s location in the picture is aligned, making it easier to extract related image components in the long-distance running motion image. First, detect the human body edge in the video sequence image, denoted asxmin,xmax,ymin,ymax, and use formula (9) to determine the center position of the moving human body area.(9)x=xmin+xmax2,y=ymin+ymax2.Crop the image to a fixed size and ensure that the completed human motion area can be preserved in the cropped image.The kernel function matrix of long-distance running technical exercise samples is constructed by the periodic update method:(10)Ta=Htxa.The vector generated by the elements of the first row is denoted bytxa, and H is the loop coefficient.At the same time, the response of the long-distance running movement cyclic movement can be calculated according to the long-distance running technical action samplea, so as to realize the tracking of the long-distance running technical movement trajectory.(11)ga=Taβ.


### 2.2. Improved KCF Algorithm Fusion Depth Information

When dealing with long-term occlusion, the KCF moving target identification algorithm fails to tackle the occlusion issue in long-distance running. The samples in the training combine with the occlusion noise due to tracking drift induced by occlusion, causing the tracking system to drift, affecting tracking accuracy. This research provides two solutions to this problem, detecting target occlusion and decreasing negative sample noise. This paper proposes a method based on occlusion MASK to identify the occluded areas of long-distance running objects and utilize the complete target image to fill in the occluded areas and keep the unoccluded areas. Under shaded conditions, the following training was performed on the target of long-distance running.(12)tx=dx,MASKx=1,ox,MASKx=0,where dx is for the target sample for immediate detection and ox is for all target samples saved before masking. When there are no obstacles in the long-distance running, the samples are corrected to keep the complete target samples for training. When there are obstacles, MASK is used to obtain new training samples. The new training sample includes the unoccluded part of the real-time target and the part before it is occluded, and the complete target pixel is saved through the training sample, which reduces the negative impact on occlusion and ensures that there will be no drift during the target tracking process [11–13].The flow of the improved KCF algorithm is shown in Figure1.Figure 1
The improved KCF algorithm flow for fusion depth information.


### 2.3. Technical Feature Extraction of Long-Distance Running

In the video, the camera’s movement and the overall background movement are due to the movement of the foreground objects. Due to the dense sampling technique, a large number of motion trajectories are generated, which not only increases the computational complexity of image expression but also brings about the influence of noise interference. Compensated optical flow is used to track the long-distance running trajectory, and convolutional neural network is used to extract the technical features of long-distance running.The affine optical flow vector for each pixel in the frame is as follows:(13)Dx+i,y+j,x,y=fkx+i,y+i,fk−1x,y,where fkx+i,y+j,fk−1x,y are the horizontal and vertical components of the affine optical flow, respectively.The quality of the motion feature information extracted from the convolutional neural network determines that the method is very important for accurate extraction and motion identification in the spatially weighted motion feature classifier [14–16]. The method consists of three layers: convolutional, pooling, and fully connected, each containing several two-dimensional planes. The convolutional neural network structure is shown in Figure 2.Figure 2
CNN structure diagram.The CNN algorithm is operated in the convolutional neural network environment shown in Figure2. First, the collected and processed long-distance running motion features are input into the convolutional neural network environment through the input layer, and the output results obtained are(14)ax,y=f∑n=02em,nrx+m,y+n.In the formula,em,n is the value and bias term of the m-th row and n-th column of the convolution layer, f is the activation function, and ax,y is the element of the x-th row and the y-th column of the spatio-temporal weight pose motion image.Through multiple levels in the CNN algorithm,L∗L D-dimensional image vectors can be directly spliced to form vector features, and the CNN algorithm is used to perform feature vectorization, and its expression is(15)Nd=∑xL∑yLMx,y,dL2.In the formula,d represents the initial dimension of the image, and the value range of this parameter is [1, D]. The final vectorized result is shown in Figure 3.Figure 3
CNN feature vectorization results.


## 2.1. Long-Distance Running Moving Target Tracking Based on KCF Algorithm

KCF is a filter-based tracking algorithm based on kernel correlation. In practice, the tracked long run is used as the main sample, and then the visual area around the target is set to a negative value. In the case where the response value of the main sample is the largest, the target tracking is completed by using the discriminative classifier [6]. On this basis, using the matrix iterative update algorithm, the inverse solution of the matrix is eliminated, and the solution is transformed into the discrete Fourier transform domain, which improves the computational efficiency [7]. The destination point provides the resources for the main acquisition, and the background image is the acquisition for negative values. The identification is done in the form of an unbroken numerical value based on the distance between the centre of the sample point and the destination location. When the value is near to 1, the distance from the target is smaller, and when the value is close to 0, the distance from the target is higher [8].


### 2.1.1. Solving Process

The KCF operation is done by solving a ridge regression process (also known as least squares), which can be expressed as(1)min∑xgxi−yi2+αq2.In the formula,α is the ridge coefficient, and q is the weight of the actual application (technical characteristics of long-distance running).(2)q=XTX+αI−1.Conjugate weightsq∗ [9] are computed in the Fourier region:(3)q∗=XHX+αI−1.The long-distance running exercise sample matrixX is replaced by a cyclic matrix, and the discrete Fourier transform matrix F is introduced, which has the following properties:(4)X=FdiagxFH.Calculate the conjugate weights by referencing the discrete Fourier transform matrix:(5)q∗=F−1diagαx.Through the kernel function [10], the kernel function is set to ϕx, then the weight is(6)q=∑iβiϕx.In the formula,βi is the kernel function parameter.


### 2.1.2. Operation Process

According to the ridge regression solution process of the kernel function, the Fourier domain is obtained:(7)β=T+αI−1.A kernel-based cyclic matrixT is introduced to solve the discrete Fourier domain:(8)β^=xtyy+α.In the formula,tyy is the first row element of T.


### 2.1.3. Process of Detection

Because the location of the human body area changes constantly throughout the movement process in a long-distance running picture, it is important to normalise the image to a uniform size and define the human body movement area at the same central position to meet all of the goals. The human body’s location in the picture is aligned, making it easier to extract related image components in the long-distance running motion image. First, detect the human body edge in the video sequence image, denoted asxmin,xmax,ymin,ymax, and use formula (9) to determine the center position of the moving human body area.(9)x=xmin+xmax2,y=ymin+ymax2.Crop the image to a fixed size and ensure that the completed human motion area can be preserved in the cropped image.The kernel function matrix of long-distance running technical exercise samples is constructed by the periodic update method:(10)Ta=Htxa.The vector generated by the elements of the first row is denoted bytxa, and H is the loop coefficient.At the same time, the response of the long-distance running movement cyclic movement can be calculated according to the long-distance running technical action samplea, so as to realize the tracking of the long-distance running technical movement trajectory.(11)ga=Taβ.


## 2.1.1. Solving Process

The KCF operation is done by solving a ridge regression process (also known as least squares), which can be expressed as(1)min∑xgxi−yi2+αq2.In the formula,α is the ridge coefficient, and q is the weight of the actual application (technical characteristics of long-distance running).(2)q=XTX+αI−1.Conjugate weightsq∗ [9] are computed in the Fourier region:(3)q∗=XHX+αI−1.The long-distance running exercise sample matrixX is replaced by a cyclic matrix, and the discrete Fourier transform matrix F is introduced, which has the following properties:(4)X=FdiagxFH.Calculate the conjugate weights by referencing the discrete Fourier transform matrix:(5)q∗=F−1diagαx.Through the kernel function [10], the kernel function is set to ϕx, then the weight is(6)q=∑iβiϕx.In the formula,βi is the kernel function parameter.


## 2.1.2. Operation Process

According to the ridge regression solution process of the kernel function, the Fourier domain is obtained:(7)β=T+αI−1.A kernel-based cyclic matrixT is introduced to solve the discrete Fourier domain:(8)β^=xtyy+α.In the formula,tyy is the first row element of T.


## 2.1.3. Process of Detection

Because the location of the human body area changes constantly throughout the movement process in a long-distance running picture, it is important to normalise the image to a uniform size and define the human body movement area at the same central position to meet all of the goals. The human body’s location in the picture is aligned, making it easier to extract related image components in the long-distance running motion image. First, detect the human body edge in the video sequence image, denoted asxmin,xmax,ymin,ymax, and use formula (9) to determine the center position of the moving human body area.(9)x=xmin+xmax2,y=ymin+ymax2.Crop the image to a fixed size and ensure that the completed human motion area can be preserved in the cropped image.The kernel function matrix of long-distance running technical exercise samples is constructed by the periodic update method:(10)Ta=Htxa.The vector generated by the elements of the first row is denoted bytxa, and H is the loop coefficient.At the same time, the response of the long-distance running movement cyclic movement can be calculated according to the long-distance running technical action samplea, so as to realize the tracking of the long-distance running technical movement trajectory.(11)ga=Taβ.


## 2.2. Improved KCF Algorithm Fusion Depth Information

When dealing with long-term occlusion, the KCF moving target identification algorithm fails to tackle the occlusion issue in long-distance running. The samples in the training combine with the occlusion noise due to tracking drift induced by occlusion, causing the tracking system to drift, affecting tracking accuracy. This research provides two solutions to this problem, detecting target occlusion and decreasing negative sample noise. This paper proposes a method based on occlusion MASK to identify the occluded areas of long-distance running objects and utilize the complete target image to fill in the occluded areas and keep the unoccluded areas. Under shaded conditions, the following training was performed on the target of long-distance running.(12)tx=dx,MASKx=1,ox,MASKx=0,where dx is for the target sample for immediate detection and ox is for all target samples saved before masking. When there are no obstacles in the long-distance running, the samples are corrected to keep the complete target samples for training. When there are obstacles, MASK is used to obtain new training samples. The new training sample includes the unoccluded part of the real-time target and the part before it is occluded, and the complete target pixel is saved through the training sample, which reduces the negative impact on occlusion and ensures that there will be no drift during the target tracking process [11–13].The flow of the improved KCF algorithm is shown in Figure1.Figure 1
The improved KCF algorithm flow for fusion depth information.


## 2.3. Technical Feature Extraction of Long-Distance Running

In the video, the camera’s movement and the overall background movement are due to the movement of the foreground objects. Due to the dense sampling technique, a large number of motion trajectories are generated, which not only increases the computational complexity of image expression but also brings about the influence of noise interference. Compensated optical flow is used to track the long-distance running trajectory, and convolutional neural network is used to extract the technical features of long-distance running.The affine optical flow vector for each pixel in the frame is as follows:(13)Dx+i,y+j,x,y=fkx+i,y+i,fk−1x,y,where fkx+i,y+j,fk−1x,y are the horizontal and vertical components of the affine optical flow, respectively.The quality of the motion feature information extracted from the convolutional neural network determines that the method is very important for accurate extraction and motion identification in the spatially weighted motion feature classifier [14–16]. The method consists of three layers: convolutional, pooling, and fully connected, each containing several two-dimensional planes. The convolutional neural network structure is shown in Figure 2.Figure 2
CNN structure diagram.The CNN algorithm is operated in the convolutional neural network environment shown in Figure2. First, the collected and processed long-distance running motion features are input into the convolutional neural network environment through the input layer, and the output results obtained are(14)ax,y=f∑n=02em,nrx+m,y+n.In the formula,em,n is the value and bias term of the m-th row and n-th column of the convolution layer, f is the activation function, and ax,y is the element of the x-th row and the y-th column of the spatio-temporal weight pose motion image.Through multiple levels in the CNN algorithm,L∗L D-dimensional image vectors can be directly spliced to form vector features, and the CNN algorithm is used to perform feature vectorization, and its expression is(15)Nd=∑xL∑yLMx,y,dL2.In the formula,d represents the initial dimension of the image, and the value range of this parameter is [1, D]. The final vectorized result is shown in Figure 3.Figure 3
CNN feature vectorization results.


## 3. Figure3, CNN Feature Vectorization Results

### 3.1. Action Recognition of Long-Distance Running Sports Technology Based on Computer Vision

Aiming at the running technical movements of long-distance runners, the mean value of each pixel in the posture image of long-distance runners is given first, and then the posture analysis is carried out to establish the judgement threshold of its posture features, and the distance function between the posture features of long-distance runners is calculated to identify technical action of long-distance running [17]. The specific operation process is described in detail as follows:Assuming that the training data set isR=x1,y1,x2,y2,⋯,xN,yN, the j feature of the i training sample is denoted as xij, which consists of multiple values, denoted as ajl.For input valuex, calculate the filtered average of pixels in the long-distance running pose image:(16)PY=ck=∑i=1NIyi=ckN,k=1,2,…k.Use formula (17) to detect the running posture area of long-distance runners:(17)Px=∏j=1nPXj=xj|Y=ck.Set the threshold for judging the rationality of running posture features of long-distance runners [18]:(18)v=∏j=1nPXj=xj|Y=ck.Calculate the distance function between the running posture features of the long-distance runner [19] and realize the running image posture recognition of the long-distance runner:(19)fx=Pxv×Px.


### 3.2. Action Correction of Long-Distance Running Sports Technology Based on Computer Vision

The camera location in the long-distance race footage has been altered. As a result, there are numerous unfixed images in the long-distance running game video since the camera is continually moving and cannot precisely portray the athlete’s status. During the shooting process, the player’s movement may be determined based on the object’s movement trajectory, and the player’s picture can be adjusted in this region, removing the camera’s movement. [20]. In the expanded tracking object, through symmetrical, vertical, and horizontal tracking, the image of the moving object is obtained, and the corresponding correction is made. The “centre of mass” coordinate mx,my of the target volume is calculated by the following equation:(20)mx=∑xeR∑yeRx⋅fx,y∑xeR∑yeRfx,y,my=∑xek∑yeRy⋅fx,y∑xeR∑yeRfx,y.After the above processing, the target tracking image of the long-distance runner is generated [21]. Target tracking adjusts the image sequence well to achieve the camera changing with the movement of the distance runner [22].Using the machine vision optical flow feature to separate the image foreground and background information, at the time series position of each pixel, a high-precision requirement is put forward for the accuracy of the optical flow. In this paper, the optical flow field is theoretically studied and transformed into a vector field, thus realizing the movable spatial distribution of dynamic images. Since optical flow can only reflect the movement of the athlete during the tracking process, if a scene appears in the tracking image, it will be analyzed. It is required to guarantee the uniformity of the backdrop color and postprocess the expansion of the region in order to produce the long-distance runner movement trajectory picture with global foreground in order to differentiate the athlete’s movement trajectory and movement scene. [23]. The background color removal process around the players is shown in Figure 4.Figure 4
Athlete-centric background color removal.On the basis of the difference image, the Horn–Schunck algorithm is used to estimate the optical flow field image tracking of long-distance runners:(21)Di=Ci−HCi−1,Oi=HSDi,i=2,⋯,N.Among them,Di represents the difference image of tracking long-distance running error technique action images Ci and Ci−1, HS represents the Horn–Schunck algorithm estimation expression, Oi represents the optical flow field, and N represents the number of alignments of the long-distance running error technique action image sequence.The position of the athlete in the long-distance running technical action picture is generated by the relative displacement of the body. Under different postures, the optical flow field of long-distance runners presents different spatial distributions [24]. The kernel density estimation and grid histogram are carried out using the moving images in the long-distance running error technique, and the optical flow histogram is used to represent the motion characteristics of long-distance running and sprinting [25]. For a given optical vector of the optical flow field coordinate U, the components in the horizontal and vertical directions are Ux and Uy, respectively, the amplitude MU and the direction angle θU of the wrong technical action of the long-distance runner can be defined by the following formulas, and the long-distance running error is extracted. Technical action characteristics are expressed as(22)MU=U2x+U2y,θU=arctanUxUy.Based on machine vision technology, the wrong technical movements of long-distance running are tracked and corrected, and they are calculated, so as to achieve the purpose of correcting wrong technical movements.


## 3.1. Action Recognition of Long-Distance Running Sports Technology Based on Computer Vision

Aiming at the running technical movements of long-distance runners, the mean value of each pixel in the posture image of long-distance runners is given first, and then the posture analysis is carried out to establish the judgement threshold of its posture features, and the distance function between the posture features of long-distance runners is calculated to identify technical action of long-distance running [17]. The specific operation process is described in detail as follows:Assuming that the training data set isR=x1,y1,x2,y2,⋯,xN,yN, the j feature of the i training sample is denoted as xij, which consists of multiple values, denoted as ajl.For input valuex, calculate the filtered average of pixels in the long-distance running pose image:(16)PY=ck=∑i=1NIyi=ckN,k=1,2,…k.Use formula (17) to detect the running posture area of long-distance runners:(17)Px=∏j=1nPXj=xj|Y=ck.Set the threshold for judging the rationality of running posture features of long-distance runners [18]:(18)v=∏j=1nPXj=xj|Y=ck.Calculate the distance function between the running posture features of the long-distance runner [19] and realize the running image posture recognition of the long-distance runner:(19)fx=Pxv×Px.


## 3.2. Action Correction of Long-Distance Running Sports Technology Based on Computer Vision

The camera location in the long-distance race footage has been altered. As a result, there are numerous unfixed images in the long-distance running game video since the camera is continually moving and cannot precisely portray the athlete’s status. During the shooting process, the player’s movement may be determined based on the object’s movement trajectory, and the player’s picture can be adjusted in this region, removing the camera’s movement. [20]. In the expanded tracking object, through symmetrical, vertical, and horizontal tracking, the image of the moving object is obtained, and the corresponding correction is made. The “centre of mass” coordinate mx,my of the target volume is calculated by the following equation:(20)mx=∑xeR∑yeRx⋅fx,y∑xeR∑yeRfx,y,my=∑xek∑yeRy⋅fx,y∑xeR∑yeRfx,y.After the above processing, the target tracking image of the long-distance runner is generated [21]. Target tracking adjusts the image sequence well to achieve the camera changing with the movement of the distance runner [22].Using the machine vision optical flow feature to separate the image foreground and background information, at the time series position of each pixel, a high-precision requirement is put forward for the accuracy of the optical flow. In this paper, the optical flow field is theoretically studied and transformed into a vector field, thus realizing the movable spatial distribution of dynamic images. Since optical flow can only reflect the movement of the athlete during the tracking process, if a scene appears in the tracking image, it will be analyzed. It is required to guarantee the uniformity of the backdrop color and postprocess the expansion of the region in order to produce the long-distance runner movement trajectory picture with global foreground in order to differentiate the athlete’s movement trajectory and movement scene. [23]. The background color removal process around the players is shown in Figure 4.Figure 4
Athlete-centric background color removal.On the basis of the difference image, the Horn–Schunck algorithm is used to estimate the optical flow field image tracking of long-distance runners:(21)Di=Ci−HCi−1,Oi=HSDi,i=2,⋯,N.Among them,Di represents the difference image of tracking long-distance running error technique action images Ci and Ci−1, HS represents the Horn–Schunck algorithm estimation expression, Oi represents the optical flow field, and N represents the number of alignments of the long-distance running error technique action image sequence.The position of the athlete in the long-distance running technical action picture is generated by the relative displacement of the body. Under different postures, the optical flow field of long-distance runners presents different spatial distributions [24]. The kernel density estimation and grid histogram are carried out using the moving images in the long-distance running error technique, and the optical flow histogram is used to represent the motion characteristics of long-distance running and sprinting [25]. For a given optical vector of the optical flow field coordinate U, the components in the horizontal and vertical directions are Ux and Uy, respectively, the amplitude MU and the direction angle θU of the wrong technical action of the long-distance runner can be defined by the following formulas, and the long-distance running error is extracted. Technical action characteristics are expressed as(22)MU=U2x+U2y,θU=arctanUxUy.Based on machine vision technology, the wrong technical movements of long-distance running are tracked and corrected, and they are calculated, so as to achieve the purpose of correcting wrong technical movements.


## 4. Experimental Analysis

### 4.1. Experimental Objects and Steps

To verify the application performance of the computer vision-based motion correction method for long-distance running technology in actual motion recognition work, the corresponding long-distance running motion image database was selected as the basis, and the long-distance running motion database (https://www.lcsd.gov.hk/tc/cg/2016/photo/distancerun.html), an example of a randomly selected long-distance running exercise is shown in Figure 5.Figure 5
Example of a long-distance running database image.The experimental sample is selected in the form of real-time shooting, and the information data preparation results of the experimental sample are shown in Table1.Table 1
Experimental sample data table.
Form of exerciseLong-distance runningNumber of people50Sample sequence300Shooting environmentOutdoorSample state change3 perspectives, road, speedTake the experimental data in Table1 as the experiment’s research objects, and split them into six groups, each having 50 research objects. The motion feature extraction algorithm of the approach in References [4, 5] is set as the experiment’s comparison algorithm in order to construct an experimental comparison.


### 4.2. Analysis of Experimental Results

The three feature extraction algorithms process the same experimental research data to ensure the comparability of the experimental results. The three algorithms obtain the corresponding extraction results according to their respective algorithm operation steps, as shown in Table2.Table 2
Comparison results of feature extraction for long-distance running.
Experimental groupFeature extraction criteriaReference [4] methodReference [5] methodThe method of this paperExtract quantity/pieceNumber of matches/pieceUnmatched quantity/pieceExtract quantity/pieceNumber of matches/pieceUnmatched quantity/pieceExtract quantity/pieceNumber of matches/pieceUnmatched quantity/piece1500045004000500460041005004920490020260005480505043057005120580591058506037000652060005206720622050069706900704800074107000410763071005307940790040590008320790042085008050450895089604061000092808800480960091005009980997010It is found that when the total number of features is 5,000 and 10,000, the long-distance running motion features extracted by the method in Reference [4] account for 90.0% and 92.8% of the total number of features, respectively, of which the number of valid features accounts for 90.0% and 92.8%, respectively. The long-distance running motion features extracted by the method in Reference [5] accounted for 92.0% and 96.0% of the total features, respectively, of which the number of effective features accounted for 89.1% and 94.8%. The long-distance running motion features extracted by the method in this paper account for 98.4% and 99.8% of the total features, respectively, of which the number of effective features accounts for 99.6% and 99.9%. The above experimental results show that the number of long-distance running features extracted by the method in this paper is relatively high, and the number of effective features is large, which provides effective data support for the correction of long-distance running technical movements.On this basis, the correction accuracy of the three methods for long-distance running technical movements is analyzed, and the experimental comparison results are shown in Figures6–8.Figure 6
Correction accuracy rate of technical movements in long-distance running.Figure 7
Correction accuracy rate of long-distance running head technical movements.Figure 8
Correction accuracy rate of body balance techniques in long-distance running.Analysis of Figure6 shows that with the increase of the number of errors in the long-distance running starting technique, the action correction accuracy rates of the three methods all show a downward trend, among which the method in this paper has the smallest downward trend. When the number of wrong movements of the long-distance running starting technique is 50 times, the method in Reference [4] corrects 91.0% of the wrong movements of the long-distance running technique. The accuracy rate of correcting the wrong movements of the long-distance starting technique is 97.5%; when the number of incorrect movements of the long-distance starting technique is 500, the reference [4] method has an accuracy rate of 80.0% for correcting the wrong movements of the long-distance starting technique. Correcting incorrect movements in beginning technique is 84.0 percent accurate, while correcting incorrect movements in long-distance running technique is 90.0 percent accurate using the techniques described in this study.Analysis of Figure7 shows that when the number of technical errors of the long-distance running head is 50 times, the accuracy rate of the correction of the technical errors of the long-distance running head by the method in reference [4] is 84.5%. For correcting technical errors of the long-distance running head, the accuracy rate is 86.5 percent, and the accuracy rate of the method in this paper is 97.0 percent; for correcting technical wrong movements of the long-distance running head, it is 74.5 percent, the reference [5] method has a correct accuracy rate of 72.5 percent, and the method in this paper has a correct accuracy rate of 92.0 percent.Analysis of Figure8 shows that when the number of wrong movements of the body balance technique in long-distance running is 50 times, the accuracy rate of the method in reference [4] for correcting the wrong movements of the body balance technique in long-distance running is 93.5%. The accuracy rate is 85.0%, and the accuracy rate of the method in this paper is 98.5% in correcting the wrong movements of the long-distance running body balance technology; when the number of wrong movements of the long-distance running body balance technology is 500 times, the method in document [4] corrects the wrong movements of the long-distance running body balance technology. The accuracy of the method in the reference [5] is 75.0% in correcting the wrong movements of the body balance technique in long-distance running.In summary, the method in this paper has high correction accuracy for the technical movements of the long-distance running, the technical movements of the head, and the technical movements of the body and has good applicability.The three methods were tested to correct the time-consuming situation of long-distance running technical actions, and the comparison results were obtained, as shown in Figure9.Figure 9
Long-distance running technical actions to correct the time-consuming situation.Analysis of Figure9 shows that with the increase of the number of errors in the long-distance running technique, the action correction time of the three methods is also getting longer and longer. The correction takes 16 seconds, whereas the approach in reference [26, 27] takes 22 seconds to correct the improper actions of the long-distance running technique, and the method in this work takes 7 seconds to repair the wrong actions of the long-distance running technique. It can be seen that the long-distance running technical action correction of the method in this paper takes 7 s. Shorter time can achieve the most long-distance running technical action correction in the shortest time, and the correction efficiency is better.


## 4.1. Experimental Objects and Steps

To verify the application performance of the computer vision-based motion correction method for long-distance running technology in actual motion recognition work, the corresponding long-distance running motion image database was selected as the basis, and the long-distance running motion database (https://www.lcsd.gov.hk/tc/cg/2016/photo/distancerun.html), an example of a randomly selected long-distance running exercise is shown in Figure 5.Figure 5
Example of a long-distance running database image.The experimental sample is selected in the form of real-time shooting, and the information data preparation results of the experimental sample are shown in Table1.Table 1
Experimental sample data table.
Form of exerciseLong-distance runningNumber of people50Sample sequence300Shooting environmentOutdoorSample state change3 perspectives, road, speedTake the experimental data in Table1 as the experiment’s research objects, and split them into six groups, each having 50 research objects. The motion feature extraction algorithm of the approach in References [4, 5] is set as the experiment’s comparison algorithm in order to construct an experimental comparison.


## 4.2. Analysis of Experimental Results

The three feature extraction algorithms process the same experimental research data to ensure the comparability of the experimental results. The three algorithms obtain the corresponding extraction results according to their respective algorithm operation steps, as shown in Table2.Table 2
Comparison results of feature extraction for long-distance running.
Experimental groupFeature extraction criteriaReference [4] methodReference [5] methodThe method of this paperExtract quantity/pieceNumber of matches/pieceUnmatched quantity/pieceExtract quantity/pieceNumber of matches/pieceUnmatched quantity/pieceExtract quantity/pieceNumber of matches/pieceUnmatched quantity/piece1500045004000500460041005004920490020260005480505043057005120580591058506037000652060005206720622050069706900704800074107000410763071005307940790040590008320790042085008050450895089604061000092808800480960091005009980997010It is found that when the total number of features is 5,000 and 10,000, the long-distance running motion features extracted by the method in Reference [4] account for 90.0% and 92.8% of the total number of features, respectively, of which the number of valid features accounts for 90.0% and 92.8%, respectively. The long-distance running motion features extracted by the method in Reference [5] accounted for 92.0% and 96.0% of the total features, respectively, of which the number of effective features accounted for 89.1% and 94.8%. The long-distance running motion features extracted by the method in this paper account for 98.4% and 99.8% of the total features, respectively, of which the number of effective features accounts for 99.6% and 99.9%. The above experimental results show that the number of long-distance running features extracted by the method in this paper is relatively high, and the number of effective features is large, which provides effective data support for the correction of long-distance running technical movements.On this basis, the correction accuracy of the three methods for long-distance running technical movements is analyzed, and the experimental comparison results are shown in Figures6–8.Figure 6
Correction accuracy rate of technical movements in long-distance running.Figure 7
Correction accuracy rate of long-distance running head technical movements.Figure 8
Correction accuracy rate of body balance techniques in long-distance running.Analysis of Figure6 shows that with the increase of the number of errors in the long-distance running starting technique, the action correction accuracy rates of the three methods all show a downward trend, among which the method in this paper has the smallest downward trend. When the number of wrong movements of the long-distance running starting technique is 50 times, the method in Reference [4] corrects 91.0% of the wrong movements of the long-distance running technique. The accuracy rate of correcting the wrong movements of the long-distance starting technique is 97.5%; when the number of incorrect movements of the long-distance starting technique is 500, the reference [4] method has an accuracy rate of 80.0% for correcting the wrong movements of the long-distance starting technique. Correcting incorrect movements in beginning technique is 84.0 percent accurate, while correcting incorrect movements in long-distance running technique is 90.0 percent accurate using the techniques described in this study.Analysis of Figure7 shows that when the number of technical errors of the long-distance running head is 50 times, the accuracy rate of the correction of the technical errors of the long-distance running head by the method in reference [4] is 84.5%. For correcting technical errors of the long-distance running head, the accuracy rate is 86.5 percent, and the accuracy rate of the method in this paper is 97.0 percent; for correcting technical wrong movements of the long-distance running head, it is 74.5 percent, the reference [5] method has a correct accuracy rate of 72.5 percent, and the method in this paper has a correct accuracy rate of 92.0 percent.Analysis of Figure8 shows that when the number of wrong movements of the body balance technique in long-distance running is 50 times, the accuracy rate of the method in reference [4] for correcting the wrong movements of the body balance technique in long-distance running is 93.5%. The accuracy rate is 85.0%, and the accuracy rate of the method in this paper is 98.5% in correcting the wrong movements of the long-distance running body balance technology; when the number of wrong movements of the long-distance running body balance technology is 500 times, the method in document [4] corrects the wrong movements of the long-distance running body balance technology. The accuracy of the method in the reference [5] is 75.0% in correcting the wrong movements of the body balance technique in long-distance running.In summary, the method in this paper has high correction accuracy for the technical movements of the long-distance running, the technical movements of the head, and the technical movements of the body and has good applicability.The three methods were tested to correct the time-consuming situation of long-distance running technical actions, and the comparison results were obtained, as shown in Figure9.Figure 9
Long-distance running technical actions to correct the time-consuming situation.Analysis of Figure9 shows that with the increase of the number of errors in the long-distance running technique, the action correction time of the three methods is also getting longer and longer. The correction takes 16 seconds, whereas the approach in reference [26, 27] takes 22 seconds to correct the improper actions of the long-distance running technique, and the method in this work takes 7 seconds to repair the wrong actions of the long-distance running technique. It can be seen that the long-distance running technical action correction of the method in this paper takes 7 s. Shorter time can achieve the most long-distance running technical action correction in the shortest time, and the correction efficiency is better.


## 5. Conclusion

Using machine vision technology, the error technology in long-distance running technology is analyzed, and the recognition of wrong technical movements in long-distance running is realized by tracking and adjusting the wrong technical movements of long-distance running. Experiments show that the method proposed in this paper can better identify the wrong technical movements in long-distance running and can accurately correct the technical movements of starting, head and body balance technical movements, and it takes less time and has certain applicability.



---

*Source: 1467451-2022-03-11.xml*