Next Article in Journal
Small and Micro-Water Quality Monitoring Based on the Integration of a Full-Space Real 3D Model and IoT
Previous Article in Journal
Adaptive Segmentation Algorithm for Subtle Defect Images on the Surface of Magnetic Ring Using 2D-Gabor Filter Bank
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimation of Muscle Forces of Lower Limbs Based on CNN–LSTM Neural Network and Wearable Sensor System

School of Mechanical and Aerospace Engineering, Jilin University, Changchun 130000, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(3), 1032; https://doi.org/10.3390/s24031032
Submission received: 26 December 2023 / Revised: 26 January 2024 / Accepted: 26 January 2024 / Published: 5 February 2024
(This article belongs to the Section Wearables)

Abstract

:
Estimation of vivo muscle forces during human motion is important for understanding human motion control mechanisms and joint mechanics. This paper combined the advantages of the convolutional neural network (CNN) and long-short-term memory (LSTM) and proposed a novel muscle force estimation method based on CNN–LSTM. A wearable sensor system was also developed to collect the angles and angular velocities of the hip, knee, and ankle joints in the sagittal plane during walking, and the collected kinematic data were used as the input for the neural network model. In this paper, the muscle forces calculated using OpenSim based on the Static Optimization (SO) method were used as the standard value to train the neural network model. Four lower limb muscles of the left leg, including gluteus maximus (GM), rectus femoris (RF), gastrocnemius (GAST), and soleus (SOL), were selected as the studying objects in this paper. The experiment results showed that compared to the standard CNN and the standard LSTM, the CNN–LSTM performed better in muscle forces estimation under slow (1.2 m/s), medium (1.5 m/s), and fast walking speeds (1.8 m/s). The average correlation coefficients between true and estimated values of four muscle forces under slow, medium, and fast walking speeds were 0.9801, 0.9829, and 0.9809, respectively. The average correlation coefficients had smaller fluctuations under different walking speeds, which indicated that the model had good robustness. The external testing experiment showed that the CNN–LSTM also had good generalization. The model performed well when the estimated object was not included in the training sample. This article proposed a convenient method for estimating muscle forces, which could provide theoretical assistance for the quantitative analysis of human motion and muscle injury. The method has established the relationship between joint kinematic signals and muscle forces during walking based on a neural network model; compared to the SO method to calculate muscle forces in OpenSim, it is more convenient and efficient in clinical analysis or engineering applications.

1. Introduction

Human movement is an external manifestation of the neuromuscular skeletal system [1]. Estimating muscle forces is an important research direction in studying human motion control mechanisms and understanding joint mechanics. Furthermore, estimating muscle forces is essential in many research fields, including quantitative assessment of the contribution of different muscles in human motion [2], quantitative evaluation of muscle injury and evaluation of rehabilitation training effectiveness [3,4], and providing theoretical support for the design of rehabilitation equipment, such as prostheses, orthotics, and exoskeletons [5,6,7,8].
Although estimating muscle forces has important theoretical and practical significance, there are still significant challenges in estimating muscle forces during dynamic movements [9]. A commonly used method for estimating muscle forces is to use a rigid musculoskeletal model despite its limitations [10,11]. It is obvious that for each joint in the human body, its own degree of freedom is always smaller than the number of muscles participating in the joint movement, which makes it difficult to estimate muscle forces using a rigid musculoskeletal model. To solve the redundancy problem, static optimization (SO) is usually adopted to estimate the muscle forces by optimizing several objective functions, such as minimization of the muscle activation squared [12,13]. However, the optimization process itself requires high computational power, and as the number of muscles involved in the optimization process increases, the complexity of the optimization process also increases. Recently, biomechanical analysis software has been established to analyze human motion, such as OpenSim [14,15]. The software provides a model-based estimation method for establishing musculoskeletal models and analyzing human motion and muscle function. When calculating muscle forces using OpenSim, the static optimization calculation process can be simulated in the software, which greatly simplifies the complexity of muscle force calculations. However, the OpenSim-based muscle force calculation relies on professional experimental equipment, including the optical motion capture system (OMCS) and force platform; therefore, the application of the method is greatly limited to scenarios outside the laboratory environment.
Given the limitations of using a rigid musculoskeletal model to estimate muscle forces, more and more researchers are focusing their research on the relationship between surface electromyography (sEMG) signals and muscle forces. The sEMG signals are electrical signals accompanying muscle contraction and are considered a reliable method for detecting muscle activity. Many computational algorithms were established to reveal the sEMG–force relationship during the last several decades, including the Hill model [16], polynomial fitting model [17], fast orthogonal search (FOS) [18], and parallel cascade identification (PCI) [19]. In recent years, with the rapid development of computer technology, artificial intelligence has been applied in a wide range of fields, and many studies have applied neural networks to muscle force estimation based on the sEMG. Hua et al. combined linear regression (LR) and LSTM to estimate muscle forces from sEMG signals [20], and the experiment results showed that the LR–LSTM performed well in muscle force estimation. Xu et al. compared the performance of CNN, LSTM, and CNN–LSTM in estimating muscle forces from sEMG signals [21], and the experiment results showed that CNN–LSTM performed best. Choi et al. built a fully connected neural network, and the performance of the model was satisfactory when it was trained to estimate the palmar pinch force [22]. Peng et al. proposed a time-delayed neural network (TDNN) for estimating muscle forces during shoulder isometric contraction, and the model was less prone to overfitting and had better robustness compared to commonly used feedforward networks [23]. Jie et al. estimated the muscle forces of the biceps femoris short head (BFS) and the rectus femoris (RF) using a CNN network based on the sEMG [24]. Hu et al. estimated the grasping forces using an LSTM network from high-density surface EMGs [25]. Although many achievements have been made in estimating muscle forces using neural network models and sEMG, the collection and processing of sEMG have always been a hindrance to its widespread application. The sEMG itself is a weak electrical signal that is highly susceptible to external interference, so frequent calibration is required before each task of collecting the signals. In addition, only the sEMG of superficial muscles can be measured, and it is difficult to measure the sEMG of muscles covered by superficial muscles.
Compared to sEMG signals, wearable inertial sensors have the advantages of small size, low cost, and ease of wear, making it very convenient to collect human gait motion information. Tobias analyzed gait symmetry based on a wearable inertial sensor [26]. Debin proposed an attention-based freezing of gait prediction method based on wearable inertial signals and a deep neural network model; the method provides a new potential for PD patients’ fall prevention in daily life [27]. Brognara investigated the fall risk among patients with diabetic foot neuropathy using wearable inertial sensors [28]. Yun achieved new dynamic muscle force estimation by utilizing a wearable ultrasound transducer and an IMU sensor [29]. However, few studies have combined neural network models with wearable inertial sensors to estimate muscle forces. Tien estimated the muscle forces of rectus femoris (RF), soleus (SOL), and tibialis anterior (TA) based on the LSTM network, but the kinematic data required to train the neural network model was retrieved from a public repertory [30]. Suin et al. developed a wearable sensor system and estimated the lower limb muscle forces; however, the estimation method was an inverse dynamics-based static optimization method [31]. We also discussed gait phase recognition using DPF–LSTM–CNN [32] and muscle force estimation in the STS process using sensors [33].
In this study, we have combined the neural network and the wearable sensor system to achieve an estimation of lower limb muscle forces during walking. Firstly, we have developed a wearable sensor system, including six inertial sensors, which were used to collect the ankle, knee, and hip joint angles and joint angular velocities in the sagittal plane, and the accuracy of the sensor system was verified. Secondly, we have proposed the CNN–LSTM model by combining CNN and LSTM, which was expected to have both the advantages of CNN for feature extraction and the advantages of LSTM for temporal sequence data processing. Finally, we conducted experimental verification on the performance of CNN–LSTM in muscle force estimation.

2. Materials and Methods

2.1. Calculation of Muscle Force

OpenSim was used to calculate the lower limb muscle forces in this paper, where the data collected by the OMCS and force platform were used to scale a generic musculoskeletal model for each subject. Then, the joint kinematics parameters of each subject could be obtained by the inverse kinematic (IK) tool for static optimization (SO) to calculate the muscle forces. The calculated results were considered as the reference values compared with the muscle forces estimated by the neural network model. The generic musculoskeletal model used in this paper was the Gait2392 model provided by OpenSim, which included 23 bones, 92 muscles, and 39 external markers. In this paper, the gluteus maximus (GM), rectus femoris (RF), gastrocnemius (GAST), and soleus (SOL) of the left leg were selected as the research target muscles. At different walking speeds, the above four muscles play an important role in the human body’s walking process [34].

2.2. Neural Network for Muscle Forces Estimation

In this paper, the advantages of CNN and LSTM were combined to propose a CNN–LSTM neural network model for estimating lower limb muscle forces during human walking. To evaluate the performance of CNN–LSTM, the standard CNN and LSTM were also used to estimate muscle forces, and their estimation results were compared with those of CNN–LSTM.

2.2.1. Structure of Standard CNN

CNN has extensive applications in fields such as computer vision, speech recognition, and natural language processing [35,36,37]. The convolution layer and pooling layer are the two most important parts of CNN. Convolutional layers are used for extracting data features while pooling layers are used to reduce the number of parameters in the model and prevent overfitting. Equation (1) is the mathematical expression for the output of the convolutional layer, where xjl, and xil−1 are the output data feature and input data feature of the l-layer, respectively; Wjl, and bjl represent the convolution kernel weight and the corresponding offset, respectively; f represents the activation function; and ReLU was selected in this paper.
x j l = f i = 1 M x i l 1 × W j l + b j l
Following each convolution, pooling is usually carried out to reduce overfitting and increase the network’s receptive field size. Max-pooling is a commonly used pooling operation that reduces the amount of data by maximizing it [38]. The usual operation is to divide the input image into several rectangular regions and output the maximum value for each subdomain. In this paper, the input sequence data were reshaped to a rectangle image when applying CNN to the muscle forces estimation. Then, a series of convolutions were carried out, followed by max-pooling. The outcome was encoded and flattened by a fully connected layer to output the estimated muscle forces. There are two convolution layers with 64 and 128 convolutional kernels in CNN. The size of the convolution kernels was 3 × 1, and the convolution step was 1. The size of the pool group in the two layers of pooling layer was 2 × 1, the step size of the first layer of pooling layer was 1, and the step size of the second layer of pooling layer was 1.

2.2.2. Structure of Standard LSTM

LSTM, as an improved version of recurrent neural network (RNN), mainly solves the problems of gradient disappearance and gradient explosion when RNN is used to process the long time series. In short, LSTM can perform better in longer time series than ordinary RNN. Compared with traditional RNN, LSTM units have added forgetting gate, update gate, and output gate, which is why LSTM can solve the long-term dependency problem of RNN. The functions of the three gates mentioned above can be summarized as: the forgetting gate determines the retention and discarding of information in old storage units, update gate determines whether the information needs to be stored in the current storage unit, and output gate controls the output based on the input and storage units. The detailed calculation of the LSTM unit can be easily found in related works, so the specific calculation process will not be shown in this paper. LSTM is employed in this work with double layers. The two hidden layers contain 128 units, and the activation function used by the hidden layer is the tanh function.

2.2.3. Structure of CNN–LSTM

Based on the above-introduced neural network structure for estimating lower limb muscle forces during gait using CNN and LSTM separately, a CNN–LSTM could be easily attained by simply stacking convolution layers and LSTM layers. In the process of using CNN–LSTM, the input sequence data were fed into a convolution layer firstly, in which the convolution calculation with stride was performed. Then, the extracted higher-level feature map went through an LSTM layer to produce prediction output. Finally, the estimated forces were exported through a fully connected layer. The specific structure of CNN–LSTM is shown in Figure 1. In this paper, the mean absolute error (MAE) loss function was used. The optimization process was based on the efficient Adam stochastic gradient descent method [39].

2.2.4. Evaluation Method

To quantify the estimation performance of the CNN, LSTM, and CNN–LSTM, percentage root mean square error (RMSE%) was selected as the comparison metric [19]. It was calculated as follows:
R M S E % = i = 1 n ( x i y i ) 2 i = 1 n ( x i ) 2 × 100 %
where xi is the actual value, yi is the predicted value, and n is the number of data points.
In addition, Pearson’s correlation coefficient (r) was also employed as another comparison metric, which could be calculated as follows:
r = i = 1 n ( x i x ¯ i ) ( y i y ¯ i ) i = 1 n ( x i x ¯ i ) 2 i = 1 n ( y i y ¯ i ) 2
where x ¯ i is the mean of the actual value, y ¯ i is the mean of the predicted value.

3. Experiment

3.1. Data Collection and Preprocessing

When using OpenSim to calculate the lower limb muscle forces during gait, it was necessary to establish a personalized musculoskeletal model based on human gait kinematics, dynamics data, and the ground reaction force. In this paper, the gait kinematics and dynamics data were collected by an 11-camera motion capture system (Vicon, Oxford, UK) at a frequency of 1000 Hz, and the ground reaction force was collected by three force plates (AMTI Inc., Watertown, MA, USA) at a frequency of 200 Hz, as shown in Figure 2.
A self-developed wearable inertial sensor system was worn on the subject to collect the lower limb joint angles and joint angular velocities in the sagittal plane during human walking, as shown in Figure 2, and the collected data were used as input for the neural network model. The system mainly included a micro processing unit (Arduino nano), six IMUs (JY901), a wireless transmission module (nrf24l01). When the sensor system was working, the Arduino nano collected the joint angles and joint angular velocities measured by JY901 at a frequency of 100 Hz, then sent the data to the host computer in real-time by nrf24l01. When different individuals performed the same kinematic characteristics, there would still be differences in the strength of lower limb muscles due to the differences in height and weight of the subjects. Therefore, except for the joint angle and angular velocity, the height, weight, thigh length, and shark length were also selected as inputs for the neural network model. Finally, the input feature size of the neural network model was sixteen.
In order to reduce the training complexity of the neural network, the data should be normalized before input to the neural network. The mathematical expression of data normalization was as follows:
x ˜ i = 2 × x i x min x max x min 1
where xi represents the i-th element before normalization, xmax represents the maximum values of xi, and xmin represents the minimum values of xi. Through the above normalization processing, the maximum and minimum values of the original data are limited to 1 and −1, respectively.

3.2. Participants

3.2.1. Training Validation Experiment

Twenty healthy young adults (age = 25 ± 4 years, mass = 61.4 ± 11.3 kg, height = 167.2 ± 12.5 cm) and twenty healthy elderly adults (age = 64 ± 5 years, mass = 58.7 ± 10.7 kg, height = 165.8 ± 9.5 cm) without known lower limb musculoskeletal or neurological dysfunction participated in the training validation experiment. Written and verbal instructions of testing procedures were provided, and written consent was obtained from each subject prior to all of the experiments related to this paper. The experimental protocol was approved by the Human Ethical Review Committee of Jilin University (No. 2023-234).
A total of forty healthy adults with complete lower limb motor function participated in the training validation experiment, including twenty young adults (age = 25 ± 4 years, mass = 61.4 ± 11.3 kg, height = 167.2 ± 12.5 cm) and twenty elderly adults (age = 64 ± 5 years, mass = 58.7 ± 10.7 kg, height = 165.8 ± 9.5 cm). Prior to the experiment, each participant provided written consent, and the experimental protocol was approved by the Human Ethical Review Committee of Jilin University (No. 2023-234). After familiarizing the subjects with the experimental process, they wore the self-developed sensor system and reflective markers whose number and location were consistent with those in Gait2392 model. The trajectories of all the markers and the ground reaction forces were collected by the OMCS and force platform system, respectively. Additionally, the joint angles and angular velocities of the hip, knee, and ankle joints in the sagittal plane during human walking were collected by the wearable sensor system. For each of the 40 subjects, the data of 10 gait cycles were collected at slow speed (1.2 m/s), medium speed (1.5 m/s), and fast (1.8 m/s) speed. Finally, the data of 400 gait cycles were obtained at each of the three different speeds (10 gait cycles for each subject × 40 subjects).
Under each speed, 8 cycles of gait data were randomly selected for each subject, 320 cycles of gait data from forty subjects were selected as the training dataset, and the remaining 80 cycles of gait data were used as the validation dataset. The software used for training the neural network model in this paper was Matlab2021a, with a computer CPU model of i9-11900k and a GPU model of GTX2070ti.

3.2.2. External Testing Experiment

To obtain testing experimental sample data, another three healthy young adults (age = 27 ± 6 years, mass = 66.4 ± 5.3 kg, height = 173.2 ± 5.5 cm) and three healthy elderly adults (age = 66 ± 6 years, mass = 57.4 ± 9.6 kg, height = 160.8 ± 11.5 cm) also participated in this study. For each subject, the data of two gait cycles at three different speeds were collected, and ultimately, the data of 36 gait cycles (6 gait cycles for each subject × 6 subjects) were obtained as testing dataset 1. In addition, in order to test the neural network model performance for muscle force estimation when the walking speed of the human body was outside the training dataset, the data of two gait cycles for each subject at two additional walking speeds (1.1 m/s and 1.6 m/s) were collected. Finally, another 24 gait cycles of walking data (4 gait cycles for each subject × 6 subjects) were obtained as testing dataset 2.

4. Results and Discussion

4.1. Accuracy Verification of Sensor System

It was necessary to verify the accuracy of the self-developed sensor system before initial use. In the training validation experiment, the data of 400 gait cycles were obtained at each of the three different speeds (10 gait cycles for each subject × 40 subjects). Ten gait cycles of data of each speed were randomly selected from the collected data, in which thirty gait cycles of data were used to verify the accuracy of the sensor system. A typical group of the kinematic parameters, including joint angles and joint angular velocities, were shown in Figure 3a,b, where the signals acquired by the self-developed sensor system were represented by the dotted lines and those acquired by the OMCS were represented by the solid lines. It can be seen from Figure 3 that the same kinematic parameters measured by the self-developed sensor system (dotted lines) and the OMCS (solid lines) showed high consistency.
The accuracy of the self-developed sensor system was evaluated by comparing it with the OMCS. As shown in Table 1, the joint angles and angular velocities measured by the sensor system were highly correlated with those measured by the OMCS (all r > 0.92 and all RMSE% < 20%), which suggested that the self-developed wearable sensor system was available for the kinematic analysis of lower limbs in gait. Of course, there were still some errors in the sensor system compared with the OMCS. Because the shape of the human body surface is irregular, it was difficult to ensure that the X-axis and Y-axis of the sensors were absolutely in the sagittal plane throughout the experiment process, although a sensor-to-segment calibration to ensure the direction of the sensor axis consistent with the direction of the limb segment was performed before the experiment. Therefore, the joint angles and angular velocities derived from the IMUs could not be absolutely accurate but with certain systematic errors and noise.

4.2. Overall Comparisons

The overall comparisons among CNN, LSTM, and CNN–LSTM are first performed in this part. Figure 4, Figure 5 and Figure 6 show the results of the estimated muscle forces of GM, RF, GAST, and SOL using CNN, LSTM, and CNN–LSTM at slow, medium, and fast speeds, respectively. Among them, the solid green line represented the muscle forces calculated by OpenSim as the reference value, the red solid line represented the muscle force estimated by CNN, the blue solid line represented the muscle forces estimated by LSTM, and the purple–red solid line represented the muscle forces estimated by CNN–LSTM. Compared with the reference muscle forces, it could be seen that the estimation results of CNN were the worst among the three methods at any of the three walking speeds, while the estimation results of LSTM and CNN–LSTM were significantly better than CNN.
Table 2 shows the correlation coefficient between the muscle forces estimated using CNN, LSTM, and CNN–LSTM and the reference muscle forces obtained using OpenSim. It can be seen that CNN performed the worst in estimating muscle forces during slow walking, with correlation coefficients between the estimated and referenced values of the four muscles being 0.9135, 0.8943, 0.9077, and 0.8986, respectively, with an average correlation coefficient of 0.9035. However, the performances of LSTM and CNN–LSTM were significantly better than CNN, with average correlation coefficients of 0.9599 and 0.9801, respectively. The performance of CNN–LSTM was the best. When walking at medium speed, CNN also performed the worst, with an average correlation coefficient of 0.9352. Unlike at slow walking speed, LSTM performed better in estimating GAS muscle forces than CNN–LSTM at medium walking speed, with correlation coefficients of 0.9813 and 0.9809, respectively. However, CNN–LSTM still had the highest average correlation coefficient of 0.9829 when estimating muscle forces. When walking rapidly, the performance of each method was consistent with the above situation; that is, CNN performed the worst with an average correlation coefficient of 0.9098, while CNN LSTM performed the best with an average correlation coefficient of 0.9809.
In addition, it could be seen that CNN’s performance in estimating muscle forces was most affected by walking speed, with the best-performing average correlation coefficient of 0.9352 at medium speed. Compared to the worst-performing slow-speed situation, its correlation coefficient increased by 0.0317. Furthermore, the performance of LSTM and CNN–LSTM in estimating muscle forces was less affected by the walking speed, and the predicted results had smaller fluctuations. The data showed that CNN–LSTM was least affected by the walking speed, and the average change in its correlation coefficient was only 0.0028.
Figure 7, Figure 8 and Figure 9 show the RMSE% of the estimated muscle forces of GM, RF, GAST, and SOL using CNN, LSTM, and CNN–LSTM at slow, medium, and fast speeds, respectively. It was obvious that for the four muscles, CNN had the highest RMSE% at any walking speed, with the average RMSE% being 25.83%, 28.96%, and 33.56% at slow, medium, and fast speeds, respectively. The RMSE% using LSTM or CNN–LSTM was significantly lower than the RMSE% using CNN. In most conditions, the RMSE% of CNN–LSTM was smaller than that of LSTM, indicating that CNN–LSTM performed best in estimating muscle forces, with the average RMSE% being 16.86%, 13.29%, and 15.43% at slow, medium, and fast speeds, respectively.
Based on the above analysis of the correlation coefficients and RMSE%, it could be concluded that CNN performed the worst in estimating muscle forces at any speed among CNN, LSTM, and CNN–LSTM. It suggested that simply transforming a force estimation into an image-to-image translation task without modifying the standard CNN structure was not enough. LSTM and CNN–LSTM showed significant improvement compared with CNN, whose relatively better performances had justified the use of sequential structures in force estimation tasks. CNN–LSTM performed best in predicting muscle forces and was least affected by walking speed, with the highest robustness. The results also implied that, to some extent, a higher-level representation of input data can indeed improve the prediction accuracy.

4.3. Evaluation of Intrasession Scenario

Furthermore, in order to verify the comprehensive performance of CNN–LSTM in estimating muscle forces, all the obtained data were fused into a whole dataset, which included the data of 1200 gait cycles (10 gait cycles at each walking speed for each subject performed by 40 subjects at 3 different speeds). We took the data of 960 gait cycles for neural network training, and the remaining data were used for subsequent validation.
Table 3 shows the correlation coefficients and RMSE% for estimating muscle forces using CNN, LSTM, and CNN–LSTM. It can be seen that CNN–LSTM performed the best with an average correlation coefficient and RMSE% of 0.9807 and 15.14% between the estimated and referenced values.

4.4. Evaluation of Intersession Scenario

Table 4 shows the correlation coefficients between the estimated and referenced values of the muscle forces of the GM, RF, GAST, and SOL using CNN–LSTM for validation datasets 1 and 2. Figure 10 and Figure 11 represent the RMSE% of muscle forces estimated by CNN–LSTM using validation dataset 1 and validation dataset 2, respectively. It can be seen that when the gait data of the three walking speeds in validation dataset 1 were used as inputs to CNN–LSTM, the correlation coefficients between the estimated and referenced muscle forces of the four muscles were not less than 0.9720, and the RMSE% was not greater than 16.92%. Meanwhile, the gait data of the three walking speeds in validation dataset 1 were randomly combined as inputs to CNN–LSTM, and the correlation coefficients of the four muscles were 0.9793, 0.9846, 0.9719, and 0.9802, with an average correlation coefficient of 0.9790. The RMSE% of the four muscles was 13.29%, 14.64%, 14.36%, and 16.01%, respectively, with the average RMSE% being 14.58%. The performance of CNN–LSTM in estimating muscle forces using validation dataset 1 showed only a slight decrease compared to that using the training dataset, but it did not affect the usability of the model. The above results indicated that the performance of the CNN–LSTM model proposed in this paper in muscle forces estimation was minimally affected by individual differences and had strong universality.
It also could be seen that when the gait data at two walking speeds in validation dataset 2 were used as inputs to CNN–LSTM, the correlation coefficients between the estimated and referenced muscle forces of the four muscles were not less than 0.9680, and the RMSE% was not greater than 18.73%. Meanwhile, the gait data of the two walking speeds in validation dataset 2 were randomly combined as inputs to CNN–LSTM, and the correlation coefficients of the four muscles were 0.9728, 0.9669, 0.9738, and 0.9733 with an average correlation coefficient of 0.9717. The RMSE% of the four muscles was 16.39%, 16.87%, 15.28%, and 16.39%, respectively, with the average RMSE% being 16.23%. The above results indicated that there was no significant difference in the average correlation coefficient of CNN–LSTM in estimating muscle forces when using validation dataset 2 or validation dataset 1, respectively. The same conclusion was reached for the analysis of RMSE%. Although the training dataset in this paper did not include gait data at 1.1 m/s and 1.6 m/s, CNN–LSTM still performed well in muscle force estimation at these two speeds. This fully indicated that the CNN–LSTM proposed in this article had good robustness and generalization in estimating muscle forces.

4.5. Advantages and Limitations of the CNN–LSTM

This article has proposed a muscle forces estimation method based on CNN–LSTM and evaluated its performance. The results showed that the model performed well in estimating muscle forces. Compared to existing methods, the proposed method has significant advantages. The traditional muscle force calculation methods mainly include static optimization algorithms and algorithms based on sEMG signals. When using static optimization to calculate muscle forces, it is necessary to first calculate joint moments and then select appropriate optimization objectives and functions. The optimization process itself requires high computational power, and as the number of muscles involved in the optimization process increases, the complexity of the optimization process also increases. When using muscle force calculation methods based on sEMG signals, it is often necessary to determine some physiological parameters. For example, when using the Hill model to calculate muscle forces, it is necessary to determine physiological parameters, such as the pennation angle, muscle length, and muscle activation of the muscle; however, these parameters are difficult to directly measure, which limits the application of muscle force calculation methods. Compared to the above two methods, the muscle forces estimation method based on CNN–LSTM proposed in this article is more convenient and faster. The method only requires collecting gait data during walking to obtain muscle forces and has potential application prospects in gait evaluation and the development of rehabilitation equipment. Of course, the method proposed in this article also has limitations. This article only studied the performance of CNN–LSTM in estimating muscle forces during straight-line walking and did not investigate the applicability of the model to other activities, such as running and jumping. In future work, this will become our research focus.

5. Conclusions

This paper proposed a novel muscle forces estimation method based on the CNN–LSTM neural network and the self-developed wearable sensor system. The CNN–LSTM model encompassed the advantages of both CNN and LSTM—CNN is good at extracting features, and LSTM is good at processing time sequence data. The experiment results showed that CNN–LSTM had good robustness and generalization compared to the standard CNN and LSTM. Compared to the method for calculating muscle forces using OpenSim, the method proposed in this paper can not only ensure a satisfactory accuracy in estimating muscle forces but also achieve an effective algorithm for estimating muscle forces through wearable and convenient experimental devices. There were still some limitations to this article, which only verified the performance of the CNN–LSTM in estimating muscle forces during forward straight walking without considering the performance of the model during turns, stairs, and running. In future work, we will evaluate the performance of the CNN–LSTM in muscle force estimation under different human motions.

Author Contributions

K.L.: writing—methodology, review, and editing; conceptualization. Y.L.: writing—original draft, software, methodology, formal analysis, and data curation. S.J.: visualization, validation, and investigation. C.G.: investigation and supervision. J.F.: software and methodology. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and the experimental protocol was approved by the Human Ethical Review Committee of Jilin University (Approval No. 2023-234).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Data is unavailable due to privacy or ethical restrictions.

Acknowledgments

The authors wish to acknowledge the support of the volunteer subjects of the Robotics and Dynamics Research Lab in Jilin University.

Conflicts of Interest

The authors declare no conflicts of interest.

Correction Statement

This article has been republished with a minor correction to the reference 28. This change does not affect the scientific content of the article.

References

  1. Harrington, M.S.; Burkhart, T.A. Validation of a musculoskeletal model to investigate hip joint mechanics in response to dynamic multiplanar tasks. J. Biomech. 2023, 158, 111767. [Google Scholar] [CrossRef]
  2. An, Q.; Yamakawa, H.; Yamashita, A.H. Temporal Structure of Muscle Synergy of Human Stepping Leg During Sit-to-Walk Motion. Intell. Auton. Syst. 2017, 531, 91–102. [Google Scholar]
  3. Teasell, R. Stroke recovery and rehabilitation. Stroke 2003, 34, 365–366. [Google Scholar] [CrossRef]
  4. Sicherer, S.T.; Venkatarama, R.S.; Grasman, J.M. Recent Trends in Injury Models to Study Skeletal Muscle Regeneration and Repair. Bioengineering 2020, 7, 76. [Google Scholar] [CrossRef]
  5. Laschowski, B.; McPhee, J. Energy-Efficient Actuator Design Principles for Robotic Leg Prostheses and Exoskeletons: A Review of Series Elasticity and Backdrivability. J. Comput. Nonlinear Dyn. 2023, 18, 6. [Google Scholar] [CrossRef]
  6. Chen, Q.; Guo, S.J.; Wang, J.; Wang, J.X.; Zhang, D.; Jin, S.H. Biomechanical and Physiological Evaluation of Biologically-inspired Hip Assistance with Belt-type Soft Exosuits. IEEE Trans. Neural. Syst. Rehabil. Eng. 2022, 30, 2802–2814. [Google Scholar] [CrossRef]
  7. Wang, D.J.; Gu, X.P.; Li, W.Z.; Jin, Y.X.; Yang, M.S.; Yu, H.L. Evaluation of safety-related performance of wearable lower limb exoskeleton robot (WLLER): A systematic review. Rob. Auton. Syst. 2023, 160, 104308. [Google Scholar] [CrossRef]
  8. Sung, Y.S.; Kristen, H.; Matt, G.; Louis, N.; Conor, J.; Arun, J. Soft robotic exosuit augmented high intensity gait training on stroke survivors: A pilot study. J. Neuroeng. Rehabil. 2022, 19, 1–12. [Google Scholar]
  9. Dao, T.T.; Pouletaut, P.; Charleux, F.; Lazáry, Á.; Eltes, P.; Varga, P.P.; Ho, B.; Tho, M.C. Multimodal medical imaging (CT and dynamic MRI) data and computer-graphics multi-physical model for the estimation of patient specific lumbar spine muscle forces. Data Knowl. Eng. 2015, 96, 3–18. [Google Scholar] [CrossRef]
  10. Yang, K.W.; Tang, W.T.; Liu, S.H. Muscle Contributions to Take-Off Velocity in the Long Jump. Med. Sci. Sports Exerc. 2023, 55, 1434–1444. [Google Scholar] [CrossRef]
  11. Eskinazi, I.; Fregly, B.J. A computational framework for simultaneous estimation of muscle and joint contact forces and body motion using optimization and surrogate modeling. Med. Eng. Phys. 2018, 54, 56–64. [Google Scholar] [CrossRef]
  12. Son, J.; Hwang, S.; Kim, Y. A hybrid static optimisation method to estimate muscle forces during muscle co-activation. Comput. Methods Biomech. Biomed. Eng. 2012, 15, 249–254. [Google Scholar] [CrossRef] [PubMed]
  13. Chambers, V.; Artemiadis, P. A model-based analysis of supraspinal mechanisms of inter-leg coordination in human gait: Toward modelinformed robot-assisted rehabilitation. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 740–749. [Google Scholar] [CrossRef] [PubMed]
  14. Liu, M.Q.; Anderson, F.C.; Schwartz, M.H.; Delp, S.L. Muscle contributions to support and progression over a range of walking speeds. J. Biomech. 2008, 41, 3243–3252. [Google Scholar] [CrossRef] [PubMed]
  15. Delp, S.L.; Anderson, F.C.; Arnold, A.S. OpenSim: Opensource software to create and analyze dynamic simulations of movement. IEEE. Trans. Biomed. Eng. 2007, 54, 1940–1950. [Google Scholar] [CrossRef] [PubMed]
  16. Turner, B.D.; Henley, B.J.; Sleap, S.B.; Sloan, S.W. Kinetic model selection and the Hill model in geochemistry. Int. J. Environ. Sci. Technol. 2015, 12, 2545–2558. [Google Scholar] [CrossRef]
  17. Clancy, E.A.; Hogan, N. Relating agonist-antagonist electromyograms to joint torque during isometric, quasi-isotonic, nonfatiguing contractions. IEEE Trans. Biomed. Eng. 1997, 44, 1024–1028. [Google Scholar] [CrossRef] [PubMed]
  18. Johns, G.; Morin, E.; Hashtrudi-Zaad, K. Force Modelling of Upper Limb Biomechanics Using Ensemble Fast Orthogonal Search on High-Density Electromyography. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 24, 1041–1050. [Google Scholar] [CrossRef]
  19. Hashemi, J.; Morin, E.; Mousavi, P.; Hashtrudi-Zaad, K. Enhanced Dynamic EMG-Force Estimation Through Calibration and PCI Modeling. IEEE Trans. Neural Syst. Rehabil. Eng. 2015, 23, 41–50. [Google Scholar] [CrossRef]
  20. Hua, S.Y.; Wang, C.Q.; Wu, X.V. A novel sEMG-based force estimation method using deep-learning algorithm. Complex Intell. Syst. 2021, 8, 1949–1961. [Google Scholar] [CrossRef]
  21. Xu, L.F.; Chen, X.; Cao, S.; Zhang, X.; Chen, X. Feasibility Study of Advanced Neural Networks Applied to sEMG-Based Force Estimation. Sensors 2018, 18, 3226. [Google Scholar] [CrossRef]
  22. Choi, C.; Kwon, S.; Park, W.; Lee, H.D.; Kim, J. Real-time pinch force estimation by surface electromyography using an artificial neural network. Med. Eng. Phys. 2010, 32, 429–436. [Google Scholar] [CrossRef] [PubMed]
  23. Peng, L.; Hou, Z.-G.; Peng, L.; Hu, J.; Wang, W. An sEMG-driven musculoskeletal model of shoulder and elbow based on neural networks. In Proceedings of the 7th International Conference on Advanced Computational Intelligence, Wuyi, China, 27–29 March 2015. [Google Scholar]
  24. Zhang, J.; Zhao, Y.H.; Shone, F.; Li, Z.H.; Frang, A.F. Physics-Informed Deep Learning for Musculoskeletal Modeling: Predicting Muscle Forces and Joint Kinematics From Surface EMG. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 484–493. [Google Scholar] [CrossRef] [PubMed]
  25. Hu, R.; Chen, X.; Zhang, H.; Zhang, X.; Chen, X. A novel myoelectric control scheme supporting synchronous gesture recognition and muscle force estimation. IEEE Trans. Neural Syst. Rehabil. Eng. 2022, 30, 1127–1137. [Google Scholar] [CrossRef] [PubMed]
  26. Tobias, S.; Sandro, W.; Ingrid, B.; Travieso, C.M. Analyzing gait symmetry with automatically synchronized wearable sensors in daily life. Microprocess. Microsyst. 2020, 77, 103118. [Google Scholar]
  27. Huang, D.B.; Wu, C.; Wang, Y.W.; Zhang, Z.Y. Episode-level prediction of freezing of gait based on wearable inertial signals using a deep neural network model. Biomed. Signal Process. Control. 2024, 88, 105613. [Google Scholar] [CrossRef]
  28. Brognara, L.; Sempere-Bigorra, M.; Mazzotti, A.; Artioli, E.; Julián-Rochina, I.; Cauli, O. Wearable sensors-based postural analysis and fall risk assessment among patients with diabetic foot neuropathy. J. Tissue Viability 2023, 32, 516–526. [Google Scholar]
  29. Lu, Y.; Cao, Y.D.; Chen, Y.; Li, H.; Li, W.H.; Du, H.P. Investigation of a wearable piezoelectric-IMU multi-modal sensing system for real-time muscle force estimation. Smart Mater. Struct. 2023, 32, 065013. [Google Scholar] [CrossRef]
  30. Dao, T.T. From deep learning to transfer learning for the prediction of skeletal muscle forces. Med. Biol. Eng. Comput. 2019, 57, 1049–1058. [Google Scholar] [CrossRef]
  31. Suin, K.; Ro, K.K.; Bae, J. Estimation of Individual Muscular Forces of the Lower Limb during Walking Using a Wearable Sensor System. J. Sens. 2017, 2017, 6747921. [Google Scholar]
  32. Liu, K.; Liu, Y.; Ji, S.; Gao, C.; Zhang, S.Z. A Novel Gait Phase Recognition Method Based on DPF-LSTM-CNN using Wearable inertial sensors. Sensors 2023, 23, 5905. [Google Scholar] [CrossRef]
  33. Liu, K.; Ji, S.; Liu, Y.; Gao, C.; Zhang, S.Z.; Fu, J.; Dai, L. Analysis of Ankle Muscle Dynamics during the STS Process Based on Wearable Sensors. Sensors 2023, 23, 6607. [Google Scholar] [CrossRef] [PubMed]
  34. Thelen, D.G.; Anderson, F.C.; Delp, S.L. Generating dynamic simulations of movement using computed muscle control. J. Biomech. 2003, 36, 321–328. [Google Scholar] [CrossRef] [PubMed]
  35. Iqbal, S.; Qureshi, A.N.; Li, J.Q.; Mahmood, T. On the Analyses of Medical Images Using Traditional Machine Learning Techniques and Convolutional Neural Networks. Arch. Comput. Methods Eng. 2023, 30, 3173–3233. [Google Scholar] [CrossRef] [PubMed]
  36. Aysa, Z.; Ablimit, M.; Hamdulla, A. Multi-Scale Feature Learning for Language Identification of Overlapped Speech. Appl. Sci. 2023, 13, 4235. [Google Scholar] [CrossRef]
  37. Alzahrani, N.; Al-Baity, H.H. Object Recognition System for the Visually Impaired: A Deep Learning Approach using Arabic Annotation. Electronics 2023, 12, 541. [Google Scholar] [CrossRef]
  38. Han, Z.Y.; Li, Z.Y.; Yamanashi, Y.; Yoshikawa, N. Design of Max Pooling Operation Circuit for Binarized Neural Networks Using Single-Flux-Quantum Circuit. IEEE Trans. Appl. Supercond. 2023, 33, 1–5. [Google Scholar] [CrossRef]
  39. Su, S.S.W.; Kek, S.L. An Improvement of Stochastic Gradient Descent Approach for Mean-Variance Portfolio Optimization Problem. J. Math. 2021, 2021, 8892636. [Google Scholar] [CrossRef]
Figure 1. Structure of convolutional neural network–long-short-term memory CNN–LSTM.
Figure 1. Structure of convolutional neural network–long-short-term memory CNN–LSTM.
Sensors 24 01032 g001
Figure 2. Experiment with the optical motion capture system (OMCS) and the self-developed wearable inertial sensor system.
Figure 2. Experiment with the optical motion capture system (OMCS) and the self-developed wearable inertial sensor system.
Sensors 24 01032 g002
Figure 3. A typical group of kinematic parameters, where (a) represented the joint angles and (b) represented the joint angular velocities. The signals acquired by the self-developed sensor system are represented by the dotted lines, and those acquired by the optical motion capture system (OMCS) are represented by the solid lines.
Figure 3. A typical group of kinematic parameters, where (a) represented the joint angles and (b) represented the joint angular velocities. The signals acquired by the self-developed sensor system are represented by the dotted lines, and those acquired by the optical motion capture system (OMCS) are represented by the solid lines.
Sensors 24 01032 g003
Figure 4. Predicted muscle forces at the slow walking speed of one gait cycle.
Figure 4. Predicted muscle forces at the slow walking speed of one gait cycle.
Sensors 24 01032 g004aSensors 24 01032 g004b
Figure 5. Predicted muscle forces at the medium walking speed of one gait cycle.
Figure 5. Predicted muscle forces at the medium walking speed of one gait cycle.
Sensors 24 01032 g005
Figure 6. Predicted muscle forces at the fast walking speed of one gait cycle.
Figure 6. Predicted muscle forces at the fast walking speed of one gait cycle.
Sensors 24 01032 g006aSensors 24 01032 g006b
Figure 7. Root mean square percent (RMSE%) of the predicted muscle strength at slow speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Figure 7. Root mean square percent (RMSE%) of the predicted muscle strength at slow speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Sensors 24 01032 g007
Figure 8. Root mean square percent (RMSE%) of the predicted muscle strength at medium speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Figure 8. Root mean square percent (RMSE%) of the predicted muscle strength at medium speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Sensors 24 01032 g008
Figure 9. Root mean square percent (RMSE%) of the predicted muscle strength at the fast speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Figure 9. Root mean square percent (RMSE%) of the predicted muscle strength at the fast speed using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Sensors 24 01032 g009
Figure 10. RMSE% of muscle forces estimated by convolutional neural network–long-short-term memory (CNN–LSTM) when using dataset 1.
Figure 10. RMSE% of muscle forces estimated by convolutional neural network–long-short-term memory (CNN–LSTM) when using dataset 1.
Sensors 24 01032 g010
Figure 11. RMSE% of muscle forces estimated by convolutional neural network–long-short-term memory (CNN–LSTM) when using dataset 2.
Figure 11. RMSE% of muscle forces estimated by convolutional neural network–long-short-term memory (CNN–LSTM) when using dataset 2.
Sensors 24 01032 g011
Table 1. Analysis and comparison of joint angles and joint angular velocities derived from inertial measurement units (IMUs) and optical motion capture system (OMCS) in gait.
Table 1. Analysis and comparison of joint angles and joint angular velocities derived from inertial measurement units (IMUs) and optical motion capture system (OMCS) in gait.
Kinematics ParametersRMSE%r
Left ankle joint angle (rad)13.030.969
Left knee joint angle (rad)10.360.981
Left hip joint angle (rad)9.510.979
Right hip joint angle (rad)10.840.982
Right knee joint angle (rad)11.060.969
Right ankle joint angle (rad)14.310.971
Left ankle joint angular velocity (rad/s)18.720.932
Left knee joint angular velocity (rad/s)13.870.924
Left hip joint angular velocity (rad/s)19.310.926
Right hip joint angular velocity (rad/s)16.420.947
Right knee joint angular velocity (rad/s)17.140.953
Right ankle joint angular velocity (rad/s)16.770.921
Table 2. The correlation coefficients among the muscle forces estimated using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM and the reference muscle forces obtained using OpenSim.
Table 2. The correlation coefficients among the muscle forces estimated using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM and the reference muscle forces obtained using OpenSim.
Gait SpeedMuscleCNNLSTMCNN–LSTM
Slow speedGM0.91350.96080.9798
RF0.89430.95140.9749
GAS0.90770.96810.9841
SOL0.89860.95910.9816
Average0.90350.95990.9801
Normal speedGM0.93880.97680.9838
RF0.91860.93360.9814
GAS0.93990.98130.9809
SOL0.94340.97040.9776
Average0.93520.96550.9829
Fast speedGM0.92820.96650.9765
RF0.88550.94880.9762
GAS0.90550.97200.9877
SOL0.91990.95550.9832
Average0.90980.96070.9809
Table 3. Correlation coefficients and root mean square percent (RMSE%) for predicting muscle forces using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
Table 3. Correlation coefficients and root mean square percent (RMSE%) for predicting muscle forces using convolutional neural network (CNN), long-short-term memory (LSTM), and CNN–LSTM.
MuscleCNNLSTMCNN–LSTM
Pearson’s correlation coefficient (r)GM0.91740.93640.9776
RF0.90170.94880.9798
GAS0.92170.96740.9848
SOL0.93290.96040.9808
Average0.91840.95320.9807
Percentage root mean square error (RMSE%)GM27.3720.1912.54
RF32.6414.8315.01
GAS29.8722.3114.23
SOL30.6921.2218.78
Average30.1519.6415.14
Table 4. Correlation coefficients of convolutional neural network–long-short-term memory (CNN–LSTM) estimation of muscle forces using validation dataset 1 and validation dataset 2, respectively.
Table 4. Correlation coefficients of convolutional neural network–long-short-term memory (CNN–LSTM) estimation of muscle forces using validation dataset 1 and validation dataset 2, respectively.
Gait SpeedGMRFGASSOL
Dataset 11.2 m/s0.97650.98230.96890.9758
1.5 m/s0.98280.98740.98080.9783
1.8 m/s0.98040.97680.97280.9806
Overall0.97930.98460.97190.9802
Dataset 21.1 m/s0.97370.97210.97630.9803
1.6 m/s0.96980.96870.97420.9763
Overall0.97280.96690.97380.9733
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, K.; Liu, Y.; Ji, S.; Gao, C.; Fu, J. Estimation of Muscle Forces of Lower Limbs Based on CNN–LSTM Neural Network and Wearable Sensor System. Sensors 2024, 24, 1032. https://doi.org/10.3390/s24031032

AMA Style

Liu K, Liu Y, Ji S, Gao C, Fu J. Estimation of Muscle Forces of Lower Limbs Based on CNN–LSTM Neural Network and Wearable Sensor System. Sensors. 2024; 24(3):1032. https://doi.org/10.3390/s24031032

Chicago/Turabian Style

Liu, Kun, Yong Liu, Shuo Ji, Chi Gao, and Jun Fu. 2024. "Estimation of Muscle Forces of Lower Limbs Based on CNN–LSTM Neural Network and Wearable Sensor System" Sensors 24, no. 3: 1032. https://doi.org/10.3390/s24031032

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop