# Effect Measurement for Human Motion Rehabilitation Training Using Improved Deep Reinforcement Learning and IoT Networks

Authors: Libin Zhu; Lihui Liu
Journal: Security and Communication Networks
 (2022)

---

## Abstract

Measuring the effect of human motion rehabilitation training is important to help persons develop motion rehabilitation training plans. The current human motion rehabilitation training effect measurement algorithm has the problems of too large gap between the smoothness of the motion speed curve and the reality, high key frame extraction error rate, low measurement accuracy, long measurement time, and low satisfaction. Therefore, this paper proposes a human motion rehabilitation training effect measurement algorithm using improved deep reinforcement learning and Internet of Things (IoT) networks using IoT network technology to collect human motion rehabilitation training videos. The key frames of the human motion rehabilitation video data are extracted according to the interframe distance, and the metalearning method is used to improve the deep reinforcement learning network, and the obtained key frames are input into the improved deep reinforcement learning network to obtain the motion speed curve of human motion rehabilitation training. The smoothness of the motion velocity curve is calculated, and high smoothness indicates a good human motion rehabilitation training effect, while low smoothness indicates a poor human motion rehabilitation training effect, so as to complete the measure of human motion rehabilitation training effect. The results show that the smoothness of the motion speed curve of the proposed algorithm is closer to reality, the average error rate of key frame extraction is 1.45%, the measurement accuracy of rehabilitation training is more than 90%, the measurement time is controlled below 2.1 s, and the maximum user satisfaction is 93.1, which shows that the practical application of the algorithm is good.


---

## Body

## 1. Introduction

With the continuous improvement of people’s living standards, in the process of diagnosis and treatment, people began to pay attention to postoperative rehabilitation reduce patients’ postoperative pain and help patients resume motion [1]. The word “rehabilitation” was first proposed in the medical field. According to the World Health Organization, rehabilitation is defined as the comprehensive use of various effective scientific theories, methods, and technical means to promote people with physical and mental disabilities to recover or rebuild their activity ability, self-care ability, professional labor, and other social participation ability to the greatest extent. With the deepening of the research in the field of rehabilitation in recent years, the concept of rehabilitation has gradually improved and become a special discipline. Different from traditional medicine, modern rehabilitation science is targeted [2]. It has a long-term development prospect of helping patients implement rehabilitation training with an active and positive attitude. It can eliminate and reduce people’s dysfunction, make up for and reconstruct people’s lacking function, in a bid to improve people’s functions in all aspects. In order to obtain better rehabilitation strategies, it is necessary to measure the effect of rehabilitation training, so as to design motion rehabilitation training programs.Aiming at the important application of measuring the effect of human motion rehabilitation training, literature [3] used machine learning and image segmentation to carry out real-time monitoring algorithm, data sampling and digital imaging methods to obtain sample images, establish the database about patients’ facial expression, and segment the image using machine learning algorithm. On the basis of image segmentation, the detailed information of rehabilitation training was obtained, the rehabilitation training database was established, and the training effect was measured by LASCA technology. The detailed information obtained by this method is not accurate, so it is impossible to obtain high-precision smoothness of motion speed curve. Literature [4] developed measures to evaluate the usability and user value of gait rehabilitation ER. In particular, on the basis of Exowalk, it is verified by different user groups, and statistical analysis is carried out, which can be used as a reference for other gait rehabilitation ER usability and user value design. This method combines the experimental data to measure the training effect of human motion rehabilitation, and takes the overall satisfaction and trust of users as the measurement and evaluation index. However, the method takes a long time and has the problem of low measurement efficiency. In the literature [5], multiple subjects participated in the physical or occupational therapy of a cancer clinic provided by a single institution, completed relevant rehabilitation training, and the obtained data were taken as the experimental data. From the relevant rehabilitation records, the patient and treatment characteristics, fast sprint score, and treatment satisfaction score were extracted. Through the sample t-test method to evaluate the effect before and after rehabilitation training, the measurement results obtained by this method are inconsistent with the actual results, and the measurement accuracy is low. In literature [6], the white matter integrity of the corticospinal tract, resting state function, and gray matter volume of the primary motor cortex were taken as indicators by collecting relevant physiological parameter data of experimental subjects. The covariance analysis method was used to measure the effect of human motion rehabilitation training, and the user satisfaction of this method was low. Literature [7] studied and compared the effect of including downhill walking training on patients’ rehabilitation training. The algorithm takes the physical activity level, exercise tolerance, and muscle function as indicators, constructs the measurement system of the human motion rehabilitation training effect by using analytic hierarchy process, and realizes the measurement of the human motion rehabilitation training effect by combining the weight calculation results. However, this method has the problem of low measurement accuracy, and the practical application effect is not good.In order to solve the problems existing in the above algorithms, a human motion rehabilitation training effect measurement algorithm based on improved deep reinforcement learning is proposed. The contributions of this paper are as follows: (1) this paper puts forward an algorithm to measure the effect of human motion rehabilitation training based on improved deep reinforcement learning and judges the effect of human motion rehabilitation training through the motion speed curve of human motion rehabilitation training. (2) The key frames of human motion rehabilitation training video data are input into the improved deep reinforcement learning network, and the motion speed curve is obtained combined with the network, so as to measure the effect of human rehabilitation training. (3) Using IoT network technology to collect human motion rehabilitation training video has high video data acquisition accuracy and efficiency and can provide high-quality data for subsequent analysis. (4) With multiple data sets as the research basis and through multiple indicators, it is verified that the algorithm in this paper can achieve good application results.


## 2. Methodology

### 2.1. Extraction of Key Frames

The IoT network technology is used to collect human motion rehabilitation training video. The video data acquisition architecture is shown in Figure1.Figure 1
Video data acquisition architecture based on IoT networks.The effect measurement algorithm of human motion rehabilitation training based on improved deep reinforcement learning determines the representative gray set of pixels in the dynamic frame [8, 9], calculates the distance between the dynamic frame and each frame in the human motion rehabilitation training video, and obtains the key frame of the video according to the calculation results. The specific steps are as follows:(1)
Obtaining the current frame and assuming thatgni,j represents the grayscale value of pixels in the human motion rehabilitation training video, the calculation equation is as follows:(1)gni,j=0.3Rni,j+0.59Gni,j+0.11Bni,j,wherei,j represents the pixels in the video; Rni,j represents the red component of the pixel; Bni,j represents blue component of the pixel; and Gni,j represents green component of the pixel.Using the following equation (1) to modify the value corresponding to the pixel in the gray histogram Jni,j(2)Jni,j=∑m=0M−1εgni,j−n,whereM is the number of frames, ε⋅ represents the impulse function; 0≤n≤N, and N is the number of color gray levels present in the histogram.(2)
Detect whether the current frame belongs to the last frame of the lens. If not, proceed to the next step. If yes, set the current frame as the next frame of the lens.(3)
The dynamic framegk of the shot is obtained.(4)
SupposeFgi,gk is the interframe distance between the dynamic frame and all frames of the lens. It can be calculated by the following equation:(3)Fgi,gk=∑x=0E−1∑y=0J−1mingix,y−gkx,y,wheregi is the frame i obtained in the screen and J and E are the height and width of the frame.According to the distance between frames obtained from the calculation above, the distance curveFgi,gk is obtained. The key frame of the human motion rehabilitation training video is the frame corresponding to the extreme point in the curve [10, 11], which completes the key frame extraction of the human motion rehabilitation training video.


### 2.2. Improved Deep Reinforcement Learning Algorithm Based on Metalearning

The main process of deep reinforcement learning [12, 13] is that the agent obtains the state dt by interacting with the environment at t time according to the policy ϖ. Select the implementation action st that exists in the action set, based on which obtain the return rt and the next status dt+1. Iterate the above process, stop the iteration at the end of the task, and build the maximization state action value function Wϖd,s to maximize the cumulative return:(4)Wϖd,s=maxϖRrt+ηrt+1+η2rt+2+⋯|dt=d,st=s,where R⋅ refers to the expected function; η refers to the discount factor.The main purpose of real-time updating and estimating the parameters existing in the network is to evaluate the current state action value functionWe=Wdt,st. The parameters existing in the real network are updated by copying the estimated network, and the following real state action value function is constructed:(5)Wt=r+ηxst+1Wdt+1,st+1,where dt+1 refers to the status of the next moment and st+1 refers to the action of the next moment.Using the deep reinforcement learning method of the minimum loss functionZ, the parameters in the estimated network can be updated [14] as follows:(6)Z=RWt−We2.Improve the deep reinforcement learning method through metalearning [15, 16] to optimize the above loss function. The specific process is as follows:(1)
UsingA to refer to the quantity of training tasks, collect samples in the task, and get the test sample Fi and training sample Yi. Aiming at the model parameter ϑ, complete the update by the gradient descent method [17, 18] as follows:(7)ϑi′=ϑ−s∇ϑZYigϑ,wheregϑ is the model and s is the learning rate.(2)
Calculating the lossZFigϑi′ of the test sample based on the model parameter ϑi′ and obtaining the cumulative loss ∑ZFigϑi′ according to the calculation result.(3)
Obtaining the gradient∇ϑ∑ZFigϑi′ based on the model parameter ϑ.(4)
The model parameterϑ was reupdated using the above method to obtain(8)ϑ=ϑ−χ∇ϑ∑YiZFigϑi′,whereχ is the learning rate.The deep reinforcement learning network is improved by the above process, and the key frames obtained in the above process are input into the improved deep reinforcement learning network to obtain the motion speed curve of human rehabilitation training.


### 2.3. Effect Measurement Algorithm for Human Motion Rehabilitation Training

Input: human motion rehabilitation training sample data.Output: human motion rehabilitation training effect measurement result.(1)
Based on the theorem of differential geometry [19], the motion velocity curve S is described by arc length: e=es, expand the motion speed curve S at point ai=es0 by the Taylor equation:(9)es0+Δs−es0=αΔs+Δs3ϕ1−λ26+βλΔs32+Δs3λ+ϕ26,whereα and β are the coordinate system’s basis vectors; Δs is the arc length of the local curve; ϕ1 and ϕ2 are tiny quantities; λ is the curve rate.Approximate equation of adjacent curve ates0:(10)y=λx22y=λx.(2)
Based on the principal component analysis theory [20], the motion speed curve of human rehabilitation is discretized and expressed as S=aii=1m, and m represents the number of discrete points in the speed curve of human rehabilitation. aixi,yi is used to indicate the point in the motion curve. Take the point ai as the center, and use curve discrete points to construct set Si=aii−ji+j in neighborhood j, and suppose V is the covariance matrix of the set Si. The expressions are as follows:(11)V=v11v12v21v22,where the covariance coefficientsv11, v12, v21, and v22 are calculated as follows:(12)v11=∑i=1mxi2−vx2m,v12=v21=∑i=1mxiyim−vxvy,v22=∑i=1myi2m−vy2,wherevx=∑i=1mxi/m, vy=∑i=1myi/m, m=2j+1. The eigenvalue of the covariance matrix μi is obtained on the basis of the following equation (11):(13)μi=v11+v22±v11−v222+4v1222.(3)
According to geometry, the bending degree of the curve can be described by curvature, and the change of curvature can measure the smoothnessP of the speed curve of human rehabilitation motion as follows:(14)P=∑nmln−lmean,wherelmean is the average value corresponding to the estimated curvature and ln represents the estimated curvature of the n discrete point in the speed curve of human rehabilitation motion.(4)
The higher the smoothness of the human rehabilitation speed curve, the better the effect of human motion rehabilitation training. Contrary, the lower the smoothness of the human rehabilitation speed curve, the worse the effect of human motion rehabilitation training.


### 2.4. Data Set

The data used for the experiments were obtained from the Mura data set and the collected data set. Mura data set: this data set contains 40895 musculoskeletal X-rays from 14982 cases. Among more than 10000 cases, there were 9067 cases of normal superior musculoskeletal and 5915 cases of abnormal musculoskeletal X-rays of upper limbs, including the shoulder, humerus, elbow, forearm, wrist, palm, and fingers. Each case contains one or more images, which are manually marked by the radiologist. More than 1.7 billion people worldwide have musculoskeletal diseases. Therefore, this study trains this data set, detects bone diseases based on deep learning, automatically locates abnormalities, determines the health status of the body through X-rays of tissues and organs, and then diagnoses the patient’s condition, which can help alleviate the fatigue of radiologists. Collected data set: using IoT networks technology to collect human sports rehabilitation training videos. The method of motion photography is used to determine the kinematic data of human lower limbs walking, squatting, and standing on the flat ground and climbing stairs and compare and analyze them. By analyzing and processing the collected image sequence, the kinematics data of human lower limb marker points under different motions are obtained. Integrate the data in the two data sets, taking 30% of the data as test samples and 70% of the data as training samples, so as to improve the authenticity and reliability of the simulation results. The two types of rehabilitation training are shown in Figure2.Figure 2
Human motion rehabilitation training. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)The motion velocity curves for the above two rehabilitation exercises are shown in Figure3.Figure 3
Motion speed curve. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)


### 2.5. Experimental Indicators

In order to verify the effectiveness of the effect measurement algorithm of human motion rehabilitation training based on improved deep reinforcement learning, take the algorithm in the literature [3], the algorithm in the literature [4], the algorithm in the literature [5], the algorithm in the literature [6], and the algorithm in the literature [7] as the comparison algorithm and carry out the following tests.(1)
Smoothness of the motion speed curve: the closer the smoothness of the motion speed curve obtained by different methods to the smoothness of the actual motion speed curve, the better the measurement effect of human motion rehabilitation training.(2)
Key frame extraction error rate: this indicator refers to the ratio of the number of key frames extracted by the error to the total number of key frames.(15)E=yc×100%,wherey refers to the number of key frames extracted by the error and c refers to the total number of key frames.(3)
Calculation equation of measurement accuracy is as follows:(16)a=vivj×100%,wherevi refers to the amount of data correctly measured for the effect of human motion rehabilitation training and vj refers to the total experiment data.(4)
Measurement time: this indicator refers to the total amount of time consumed from the beginning of measurement to the result of measurement(17)T=ti−tj,whereti refers to the end time of the measurement algorithm and tj refers to the start time of the measurement algorithm.(5)
Satisfaction: multiple users score the satisfaction of the algorithm in this paper, and the value range of scoring results is [0100].


## 2.1. Extraction of Key Frames

The IoT network technology is used to collect human motion rehabilitation training video. The video data acquisition architecture is shown in Figure1.Figure 1
Video data acquisition architecture based on IoT networks.The effect measurement algorithm of human motion rehabilitation training based on improved deep reinforcement learning determines the representative gray set of pixels in the dynamic frame [8, 9], calculates the distance between the dynamic frame and each frame in the human motion rehabilitation training video, and obtains the key frame of the video according to the calculation results. The specific steps are as follows:(1)
Obtaining the current frame and assuming thatgni,j represents the grayscale value of pixels in the human motion rehabilitation training video, the calculation equation is as follows:(1)gni,j=0.3Rni,j+0.59Gni,j+0.11Bni,j,wherei,j represents the pixels in the video; Rni,j represents the red component of the pixel; Bni,j represents blue component of the pixel; and Gni,j represents green component of the pixel.Using the following equation (1) to modify the value corresponding to the pixel in the gray histogram Jni,j(2)Jni,j=∑m=0M−1εgni,j−n,whereM is the number of frames, ε⋅ represents the impulse function; 0≤n≤N, and N is the number of color gray levels present in the histogram.(2)
Detect whether the current frame belongs to the last frame of the lens. If not, proceed to the next step. If yes, set the current frame as the next frame of the lens.(3)
The dynamic framegk of the shot is obtained.(4)
SupposeFgi,gk is the interframe distance between the dynamic frame and all frames of the lens. It can be calculated by the following equation:(3)Fgi,gk=∑x=0E−1∑y=0J−1mingix,y−gkx,y,wheregi is the frame i obtained in the screen and J and E are the height and width of the frame.According to the distance between frames obtained from the calculation above, the distance curveFgi,gk is obtained. The key frame of the human motion rehabilitation training video is the frame corresponding to the extreme point in the curve [10, 11], which completes the key frame extraction of the human motion rehabilitation training video.


## 2.2. Improved Deep Reinforcement Learning Algorithm Based on Metalearning

The main process of deep reinforcement learning [12, 13] is that the agent obtains the state dt by interacting with the environment at t time according to the policy ϖ. Select the implementation action st that exists in the action set, based on which obtain the return rt and the next status dt+1. Iterate the above process, stop the iteration at the end of the task, and build the maximization state action value function Wϖd,s to maximize the cumulative return:(4)Wϖd,s=maxϖRrt+ηrt+1+η2rt+2+⋯|dt=d,st=s,where R⋅ refers to the expected function; η refers to the discount factor.The main purpose of real-time updating and estimating the parameters existing in the network is to evaluate the current state action value functionWe=Wdt,st. The parameters existing in the real network are updated by copying the estimated network, and the following real state action value function is constructed:(5)Wt=r+ηxst+1Wdt+1,st+1,where dt+1 refers to the status of the next moment and st+1 refers to the action of the next moment.Using the deep reinforcement learning method of the minimum loss functionZ, the parameters in the estimated network can be updated [14] as follows:(6)Z=RWt−We2.Improve the deep reinforcement learning method through metalearning [15, 16] to optimize the above loss function. The specific process is as follows:(1)
UsingA to refer to the quantity of training tasks, collect samples in the task, and get the test sample Fi and training sample Yi. Aiming at the model parameter ϑ, complete the update by the gradient descent method [17, 18] as follows:(7)ϑi′=ϑ−s∇ϑZYigϑ,wheregϑ is the model and s is the learning rate.(2)
Calculating the lossZFigϑi′ of the test sample based on the model parameter ϑi′ and obtaining the cumulative loss ∑ZFigϑi′ according to the calculation result.(3)
Obtaining the gradient∇ϑ∑ZFigϑi′ based on the model parameter ϑ.(4)
The model parameterϑ was reupdated using the above method to obtain(8)ϑ=ϑ−χ∇ϑ∑YiZFigϑi′,whereχ is the learning rate.The deep reinforcement learning network is improved by the above process, and the key frames obtained in the above process are input into the improved deep reinforcement learning network to obtain the motion speed curve of human rehabilitation training.


## 2.3. Effect Measurement Algorithm for Human Motion Rehabilitation Training

Input: human motion rehabilitation training sample data.Output: human motion rehabilitation training effect measurement result.(1)
Based on the theorem of differential geometry [19], the motion velocity curve S is described by arc length: e=es, expand the motion speed curve S at point ai=es0 by the Taylor equation:(9)es0+Δs−es0=αΔs+Δs3ϕ1−λ26+βλΔs32+Δs3λ+ϕ26,whereα and β are the coordinate system’s basis vectors; Δs is the arc length of the local curve; ϕ1 and ϕ2 are tiny quantities; λ is the curve rate.Approximate equation of adjacent curve ates0:(10)y=λx22y=λx.(2)
Based on the principal component analysis theory [20], the motion speed curve of human rehabilitation is discretized and expressed as S=aii=1m, and m represents the number of discrete points in the speed curve of human rehabilitation. aixi,yi is used to indicate the point in the motion curve. Take the point ai as the center, and use curve discrete points to construct set Si=aii−ji+j in neighborhood j, and suppose V is the covariance matrix of the set Si. The expressions are as follows:(11)V=v11v12v21v22,where the covariance coefficientsv11, v12, v21, and v22 are calculated as follows:(12)v11=∑i=1mxi2−vx2m,v12=v21=∑i=1mxiyim−vxvy,v22=∑i=1myi2m−vy2,wherevx=∑i=1mxi/m, vy=∑i=1myi/m, m=2j+1. The eigenvalue of the covariance matrix μi is obtained on the basis of the following equation (11):(13)μi=v11+v22±v11−v222+4v1222.(3)
According to geometry, the bending degree of the curve can be described by curvature, and the change of curvature can measure the smoothnessP of the speed curve of human rehabilitation motion as follows:(14)P=∑nmln−lmean,wherelmean is the average value corresponding to the estimated curvature and ln represents the estimated curvature of the n discrete point in the speed curve of human rehabilitation motion.(4)
The higher the smoothness of the human rehabilitation speed curve, the better the effect of human motion rehabilitation training. Contrary, the lower the smoothness of the human rehabilitation speed curve, the worse the effect of human motion rehabilitation training.


## 2.4. Data Set

The data used for the experiments were obtained from the Mura data set and the collected data set. Mura data set: this data set contains 40895 musculoskeletal X-rays from 14982 cases. Among more than 10000 cases, there were 9067 cases of normal superior musculoskeletal and 5915 cases of abnormal musculoskeletal X-rays of upper limbs, including the shoulder, humerus, elbow, forearm, wrist, palm, and fingers. Each case contains one or more images, which are manually marked by the radiologist. More than 1.7 billion people worldwide have musculoskeletal diseases. Therefore, this study trains this data set, detects bone diseases based on deep learning, automatically locates abnormalities, determines the health status of the body through X-rays of tissues and organs, and then diagnoses the patient’s condition, which can help alleviate the fatigue of radiologists. Collected data set: using IoT networks technology to collect human sports rehabilitation training videos. The method of motion photography is used to determine the kinematic data of human lower limbs walking, squatting, and standing on the flat ground and climbing stairs and compare and analyze them. By analyzing and processing the collected image sequence, the kinematics data of human lower limb marker points under different motions are obtained. Integrate the data in the two data sets, taking 30% of the data as test samples and 70% of the data as training samples, so as to improve the authenticity and reliability of the simulation results. The two types of rehabilitation training are shown in Figure2.Figure 2
Human motion rehabilitation training. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)The motion velocity curves for the above two rehabilitation exercises are shown in Figure3.Figure 3
Motion speed curve. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)


## 2.5. Experimental Indicators

In order to verify the effectiveness of the effect measurement algorithm of human motion rehabilitation training based on improved deep reinforcement learning, take the algorithm in the literature [3], the algorithm in the literature [4], the algorithm in the literature [5], the algorithm in the literature [6], and the algorithm in the literature [7] as the comparison algorithm and carry out the following tests.(1)
Smoothness of the motion speed curve: the closer the smoothness of the motion speed curve obtained by different methods to the smoothness of the actual motion speed curve, the better the measurement effect of human motion rehabilitation training.(2)
Key frame extraction error rate: this indicator refers to the ratio of the number of key frames extracted by the error to the total number of key frames.(15)E=yc×100%,wherey refers to the number of key frames extracted by the error and c refers to the total number of key frames.(3)
Calculation equation of measurement accuracy is as follows:(16)a=vivj×100%,wherevi refers to the amount of data correctly measured for the effect of human motion rehabilitation training and vj refers to the total experiment data.(4)
Measurement time: this indicator refers to the total amount of time consumed from the beginning of measurement to the result of measurement(17)T=ti−tj,whereti refers to the end time of the measurement algorithm and tj refers to the start time of the measurement algorithm.(5)
Satisfaction: multiple users score the satisfaction of the algorithm in this paper, and the value range of scoring results is [0100].


## 3. Results and Discussion

The smoothness of the above two rehabilitation training motion curves is obtained by using the extracted algorithm, the algorithm in the literature [3], the algorithm in the literature [4], the algorithm in the literature [5], the algorithm in the literature [6], and the algorithm in the literature [7] and compared with the actual results as shown in Figure 4.Figure 4
Comparison of motion speed curve smoothness. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)According to the data in Figure4, in human motion rehabilitation training, the smoothness of the motion speed curve obtained by the proposed algorithm is consistent with the smoothness of the actual curve. There is an error between the smoothness of the motion curve obtained by the methods in the literature [3], literature [4], literature [5], literature [6], and literature [7] and the smoothness of the actual curve. Through the above tests, it can be seen that the proposed algorithm can accurately obtain the smoothness of the motion speed curve and accurately measure the training effect.In order to further verify the measurement performance of the above algorithm, the key frame extraction error rate is tested as an index. The specific experimental results are shown in Table1.Table 1
Comparison of the key frame extraction error rate (%).
Number of iterationsProposed algorithmLiterature [3] algorithmLiterature [4] algorithmLiterature [5] algorithmLiterature [6] algorithmLiterature [7] algorithm11.255.6610.2417.6220.3623.6421.665.8915.618.6124.5518.9931.367.9112.8315.1415.6318.4741.548.6215.9716.5517.1815.99Average value1.457.0213.6614.4819.4319.27Analysis of the data in Table1 shows that the average key frame extraction error rate of the proposed algorithm is 1.45%, the average key frame extraction error rate of the algorithm in the literature [3] is 7.02%, the average key frame extraction error rate of the algorithm in the literature [4] is 13.66%, the average key frame extraction error rate of the algorithm in the literature [5] is 14.48%, the average key frame extraction error rate of the algorithm in the literature [6] is 19.43%, and the average key frame extraction error rate of the algorithm in the literature [7] is 19.27%, indicating that the proposed method is compared with other methods; the key frame extraction error rate of the proposed algorithm is lower, and the accuracy is higher.In order to further verify the measurement performance of the above algorithm, the accuracy is tested as an index as shown in Figure5.Figure 5
Comparison of different algorithms’ measurement accuracy. (a) Rehabilitation training 1. (b) Rehabilitation training 1.
(a)(b)According to Figure5, when using the algorithm in the literature [3] to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 47% and 40%, respectively, and when using the algorithm in the literature [4] to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 50% and 35%, respectively; When using the algorithm in the literature [5] to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 44% and 45%, respectively, when using the algorithm in the literature [6] to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 60% and 40%, respectively, and when using the algorithm in the literature [7] to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 58% and 38%, respectively, and when the proposed algorithm is used to measure rehabilitation training 1 and rehabilitation training 2, the accuracy is more than 90% and 93%, respectively, much higher than the measurement accuracy of other algorithms because the proposed algorithm obtains the key frame of human motion rehabilitation training before measurement, so as to obtain the motion speed curve and improve the accuracy of measurement results.Based on the above test results, the measurement time of the above algorithms is compared as shown in Figure6.Figure 6
Comparison of different algorithms’ measurement time. (a) Rehabilitation training 1. (b) Rehabilitation training 2.
(a)(b)It is seen from Figure6 that when using the algorithm in the literature [3], the measurement time is controlled below 8.1 s. When using the algorithm in the literature [4], the measurement time is controlled below 7.2 s. When using the algorithm in the literature [5], the measurement time is controlled below 8.4 s. When using the algorithm in the literature [6], the measurement time is controlled below 8.2 s. When using the algorithm in the literature [7], the measurement time is controlled below 6.9 s, and when using the proposed algorithm, the measurement time is controlled below 2.1 s, indicating that the proposed algorithm has high measurement efficiency.Fifteen users are selected to measure the effect of human rehabilitation training by using the proposed algorithm, the algorithm in the literature [3], the algorithm in the literature [4], the algorithm in the literature [5], the algorithm in the literature [6], and the algorithm in the literature [7], so as to obtain the satisfaction of users with different algorithms. The test results are shown in Table 2.Table 2
Comparison of satisfaction test results.
UserUser satisfaction (%)Proposed algorithmLiterature [3] algorithmLiterature [4] algorithmLiterature [5] algorithmLiterature [6] algorithmLiterature [7] algorithmUser 188.662.359.766.470.271.5User 289.763.558.867.270.372.6User 390.463.757.665.971.470.4User 489.562.256.865.372.269.8User 591.262.154.966.771.871.4User 687.864.057.165.871.371.5User 792.364.857.665.469.969.7User 893.164.458.367.373.472.1User 988.963.959.667.873.571.5User 1089.562.659.468.071.371.1User 1191.763.057.467.172.169.8User 1293.062.657.766.373.269.9User 1388.762.456.164.773.072.0User 1489.663.655.068.872.871.4User 1591.161.757.868.672.471.6Analysis of the data in Table2 shows that the maximum user satisfaction of the algorithm in the literature [3] is 64.8, the maximum user satisfaction of the algorithm in the literature [4] is 59.6, the maximum user satisfaction of the algorithm in the literature [5] is 68.8, the maximum user satisfaction of the algorithm in the literature [6] is 73.5, the maximum user satisfaction of the algorithm in the literature [7] is 72.6, and the maximum user satisfaction of the proposed algorithm is 93.1. The algorithm has high user satisfaction, which verifies the effectiveness of the proposed algorithm.


## 4. Conclusions

When the patient’s central nervous system is damaged, there will be symptoms such as the decline of independent living ability and walking ability, which has a serious impact on the patient's physical and mental health. In order to help the patient recover, relevant rehabilitation training is needed. By measuring the patient’s rehabilitation effect, it can provide a basis for the equation of later rehabilitation plan. At present, there are some problems in the human motion rehabilitation training effect measurement method, such as the large gap between the smoothness of the motion speed curve and the reality, the high error rate of key frame extraction, the low measurement accuracy, the long measurement time, and low satisfaction. Therefore, this paper proposes an effect measurement algorithm of human motion rehabilitation training based on improved deep reinforcement learning and IoT networks. The proposed algorithm uses IoT network technology to collect the human motion rehabilitation training video. The proposed algorithm improves the deep reinforcement learning network through metalearning to obtain the key frame and completes the measurement of the effect of rehabilitation training by calculating the smoothness of the motion speed curve. The smoothness of the motion speed curve of the proposed algorithm is closer to reality. The average error rate of key frame extraction is 1.45%, the measurement accuracy of rehabilitation training is more than 90%, the measurement time is controlled below 2.1s, and the maximum user satisfaction is 93.1. It shows that the proposed algorithm addresses the problems existing in the current algorithm and provides relevant basis for patients’ human motion rehabilitation. Due to the small amount of experimental data used in the experimental process, the authenticity of the experimental results may be reduced. Therefore, in future work, we need to use more data for experimental testing and improve the method according to the problems existing in the experimental process, so as to further improve the quality of human motion rehabilitation training effect measurement.



---

*Source: 3548675-2022-06-22.xml*