원시데이터 수집 시스템
선정목록으로

From Simulation to Reality: Predicting Torque With Fatigue Onset via Transfer Learning

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Kalyn M. Kearney — J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL, USA
  2. Tamara Ordonez Diaz — J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL, USA
  3. Joel B. Harley — Department of Electrical and Computer Engineering, University of Florida, Gainesville, FL, USA
  4. Jennifer A. Nichols — J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL, USA
DOI
10.1109/tnsre.2024.3465016
저널
IEEE Transactions on Neural Systems and Rehabilitation Engineering
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tnsre.2024.3465016
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4402673429

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Muscle fatigue impacts upper extremity function but is often overlooked in biomechanical models. The present work leveraged a transfer learning approach to improve torque predictions during fatiguing upper extremity movements. We developed two artificial neural networks to model sustained elbow flexion: one trained solely on recorded data (i.e., direct learning) and one pre-trained on simulated data and fine-tuned on recorded data (i.e., transfer learning). We simulated muscle activations and joint torques using a musculoskeletal model and a muscle fatigue model (n = 1,701 simulations). We also recorded static subject-specific features (e.g., anthropometric measurements) and dynamic muscle activations and torques during sustained elbow flexion in healthy young adults (n = 25 subjects). Using the simulated dataset, we pre-trained a long short-term memory neural network (LSTM) to regress fatiguing elbow flexion torque from muscle activations. We concatenated this pre-trained LSTM with a feedforward architecture, and fine-tuned the model on recorded muscle activations and static features to predict elbow flexion torques. We trained a similar architecture solely on the recorded data and compared each neural network's predictions on 5 leave-out subjects' data. The transfer learning model outperformed the direct learning model, as indicated by a decrease of 24.9% in their root-mean-square-errors (6.22 Nm and 8.28 Nm, respectively). The transfer learning model and direct learning model outperformed analogous musculoskeletal simulations, which consistently underpredicted elbow flexion torque. Our results suggest that transfer learning from simulated to recorded datasets can decrease reliance on assumptions inherent to biomechanical models and yield predictions robust to real-world conditions.

본문 46,686자

본문 펼치기
## Author manuscript IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Published in final edited form as: IEEE Trans Neural Syst Rehabil Eng. 2024 ; 32: 3669–3676. doi:10.1109/TNSRE.2024.3465016. ## From Simulation to Reality: Predicting Torque With Fatigue Onset via Transfer Learning Kalyn M. Kearney, J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL 32611 Tamara Ordonez Diaz, J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL 32611 Joel B. Harley, Member, IEEE, Department of Electrical and Computer Engineering, University of Florida, Gainesville, FL 32603 USA. Jennifer A. Nichols J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL 32611 Abstract Muscle fatigue impacts upper extremity function but is often overlooked in biomechanical models. The present work leveraged a transfer learning approach to improve torque predictions during fatiguing upper extremity movements. We developed two artificial neural networks to model sustained elbow flexion: one trained solely on recorded data (i.e., direct learning) and one pretrained on simulated data and fine-tuned on recorded data (i.e., transfer learning). We simulated muscle activations and joint torques using a musculoskeletal model and a muscle fatigue model (n = 1,701 simulations). We also recorded static subject-specific features (e.g., anthropometric measurements) and dynamic muscle activations and torques during sustained elbow flexion in healthy young adults (n = 25 subjects). Using the simulated dataset, we pre-trained a long short-term memory neural network (LSTM) to regress fatiguing elbow flexion torque from muscle activations. We concatenated this pre-trained LSTM with a feedforward architecture, and fine-tuned the model on recorded muscle activations and static features to predict elbow flexion torques. We trained a similar architecture solely on the recorded data and compared each neural network’s predictions on 5 leave-out subjects’ data. The transfer learning model outperformed the direct learning model, as indicated by a decrease of 24.9% in their root-mean-square-errors (6.22 Nm and 8.28 Nm, respectively). The transfer learning model and direct learning model outperformed analogous musculoskeletal simulations, which consistently underpredicted elbow [This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/](https://creativecommons.org/licenses/by/4.0/) [licenses/by/4.0/](https://creativecommons.org/licenses/by/4.0/) Corresponding author: Jennifer A. Nichols, J. Crayton Pruitt Family Department of Biomedical Engineering, University of Florida, Gainesville, FL 32611 USA (jnichols@bme.ufl.edu). This work involved human subjects or animals in its research. Approval of all ethical and experimental procedures and protocols was granted by the University of Florida under Application No. 202202263. Kearney et al. Page 2 flexion torque. Our results suggest that transfer learning from simulated to recorded datasets can decrease reliance on assumptions inherent to biomechanical models and yield predictions robust to real-world conditions. Index Terms— Artificial neural networks; electromyography; muscle fatigue; simulations; transfer learning; upper extremity I. INTRODUCTION MUSCLE fatigue, the exercise-induced reduction in a muscle’s force-generating capacity [1], can significantly influence biomechanical outcomes. When unaccounted for, muscle fatigue can limit the effectiveness of medical devices and impede athletic performance. For example, the shifts in muscle activations that result from muscle fatigue induce errors in myoelectric controllers [2], thereby hindering the utility of exoskeletons [3] and prostheses [4]. Furthermore, muscle fatigue causes shifts in postural strategies [5] and increases the likelihood of sports-related injuries [6], [7]. The wide-ranging implications of muscle fatigue have prompted researchers to model its effects on biomechanical systems. A multifaceted phenomenon, muscle fatigue has been modeled on multiple scales, from motor units [8] to the joint level [9], using techniques rooted in physics (e.g., [10]). Many factors can decrease a muscle’s force capacity during exercise [11], [12], [13], challenging the parameterization of complex physics-based models. For example, the model developed by Callahan et al. [10] employed a holistic approach, using the neural, biochemical, morphological, and physiological properties of skeletal muscle to predict neural activations, forces, and intracellular metabolic perturbations during fatiguing contractions. Such models provide important insights into the mechanisms that drive fatigue. However, the assumptions needed to parameterize and design complex physics-based models limit predictive performance. Circumventing physical and subject-specific assumptions, machine learning models have also been employed to capture the effects of muscle fatigue [14]. Machine learning models have been developed to predict fatigue onset using data collected from wearable devices, such as motion (e.g., [15]) or electromyographic (EMG) data (e.g., [16]). Like physics-based models, machine learning models of muscle fatigue range in complexity. For example, Zhang et al. [17] used support vector machines, a traditional machine learning model, to classify muscle fatigue using lower extremity kinematic and kinetic data. Given the complexity of real-world biomechanical systems, more recent works have shifted to predicting the effects of muscle fatigue via deep learning (e.g., [18]). Unlike many traditional machine learning models, deep models can capture complex non-linear relationships in high dimensional datasets, thereby providing enhanced generalizability to unseen data. Despite the prevalence of muscle fatigue models, limitations to predictive performance continue to stymie the progress of assistive and rehabilitative technologies. A notable IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 3 challenge is that muscle fatigue introduces complex non-linear behaviors into biomechanical systems that are often difficult to model accurately. In part, this complexity is difficult to model due to the time and monetary expenses associated with collecting high-fidelity biomechanical data. These challenges are exacerbated in the upper extremity, where EMG crosstalk is difficult to avoid [19] and the high number of degrees of freedom increase model complexity. To leverage the strengths of both physics-based and machine learning models, some works have employed a strategy known as transfer learning, or the process of training a machine learning model on one task and repurposing this knowledge for another task (e.g., [20], [21], [22], [23]). As exemplified by our previous work [24], pre-training artificial neural networks (ANNs) with large, simulated datasets can improve the predictive performance of biomechanical machine learning models. A similar transfer learning approach may enhance predictions involving the effects of muscle fatigue. Our objective was to improve the prediction of torque in fatiguing upper extremity movements. We chose to predict torque as it is correlated to the decline in muscle force caused by fatigue [25]. Furthermore, predicting changes in torque is valuable for the design of interventions to mitigate the impact of muscle fatigue; for example, myoelectric controllers equipped with a fatigue model could compensate for the effects of fatigue, enhancing device performance (e.g., [26]). Towards our objective, we developed a model of elbow flexion via transfer learning. Specifically, we pre-trained an ANN using simulated data and fine-tuned the ANN using recorded data. We also developed a direct learning model by training an ANN solely on recorded data. By comparing the predictions of each ANN on a leave out set, we elucidated the utility of simulated datasets for informing models robust to the onset of muscle fatigue. Lastly, we compared each ANN’s predictions to that of analogous musculoskeletal simulations, elucidating the benefits of our machine learning approaches relative to a standard physics-based approach. II. METHODS To evaluate the utility of transfer learning for modeling sustained elbow flexion, we developed and compared results from both a transfer learning model and direct learning model using PyTorch v. 2.0.1 [27]. Simulated and recorded datasets of sustained elbow flexion were used to train and validate these ANNs. Briefly, we simulated elbow flexion for healthy young adults using a generic elbow model [28] and a muscle fatigue model [29] in OpenSim v. 4.1 [30], [31]. As part of an IRB-approved study (University of Florida IRB #202202263), we also recorded sustained elbow flexion at 80% maximum voluntary contraction (MVC) in 25 healthy young adults. Both ANNs were then developed and evaluated on a leave-out set (Fig. 1). Each ANN used inputs of dynamic muscle activations and static subject-specific features (e.g., anthropometric measurements) to predict elbow flexion torques over time. Lastly, we ran a forward dynamic simulation for each subject in the leave-out set, and compared the errors of the transfer learning model, direct learning model, and forward dynamic simulations. The data required for reproducing our results are [freely available at https://simtk.org/projects/transferlearnue.](https://simtk.org/projects/transferlearnue) IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 4 A. Simulated Dataset To pre-train the transfer learning model, we simulated a dataset that represented elbow flexion with the onset of muscle fatigue (Fig. 2). We scaled a generic elbow model [28] using randomly sampled masses and heights [32] to generate 300 musculoskeletal models that represented young adults ranging from 5 <sup>th</sup> to 95 <sup>th</sup> percentile in size and 20–29 years of age. The musculoskeletal model included 7 muscle-tendon actuators: medial, lateral, and long heads of the triceps (TRI), long and short heads of the biceps (BIC), brachialis (BRA), and brachioradialis (BRD). Excitations for these actuators were generated via computed muscle control (CMC) simulations that varied in torque, targeting a 1.5 second linear ramp, which started at 10 Nm and peaked between 30 Nm and 90 Nm, adjusted in increments of 10 Nm, before plateauing for an additional 1.5 seconds. Each CMC simulation represented isometric elbow flexion, maintaining a target posture of 45° shoulder flexion, 90° elbow flexion, and forearm supination (Fig. 3a). Retrieving only simulations that converged (1,701 of 2,100 simulations), we extrapolated the final state (holding torque constant) to extend each simulation to 30 seconds, or the approximate time to exhaustion for an 80% MVC in healthy young adults [33]. The resulting simulated dataset contained sets of pre-fatigue muscle excitations representing 243 healthy young adults. To simulate the effects of muscle fatigue, we processed the pre-fatigue muscle excitations from CMC using a muscle fatigue model [29]. This 3-compartment model represents a muscle’s motor units in active, rested, and fatigued states. Additionally, this fatigue model does not require any subject-specific parameters and has already been parameterized for the elbow [34]. Based on this prior work, we adopted fatigue rate and recovery rates of 0.00912 and 0.00094 (both unitless), respectively. In a pipeline similar to that employed by Samaan et al. [35], the pre-fatigue muscle excitations were processed through the fatigue model (Fig. 2). The resulting fatigued excitations were then used as inputs to forward dynamic simulations, from which elbow flexion torques were calculated. Lastly, each simulation was interpolated to contain 300 time instances (i.e., a frequency of 10 Hz). The resulting simulated dataset contained 1,701 sets of muscle excitations and elbow torques which capture the effects of fatigue for 30 seconds of sustained, isometric elbow flexion. B. Recorded Dataset To train and test each ANN, we recorded sustained elbow flexion in 25 healthy young adults (mean ± SD, 22.6 ± 2.8 years). All subjects were right-handed, as determined via the Edinburgh Handedness Inventory [36]. The recorded dataset includes 7 static features: sex (9 female, 16 male), height (1.7 ± 0.07 m), mass (75.1 ± 12.2 kg), maximum elbow flexion torque (46.9 ± 14.0 Nm), forearm length (25.9 ± 1.7 cm), elbow width (9.5 ± 0.9 cm), and upper arm length (31.6 ± 2.5 cm). We also collected dynamic data, which included elbow flexion torques and EMG signals. Specifically, a Biodex System Pro 4 dynamometer (Biodex Medical, Shirley, NY) was used to record elbow flexion torques, comfortably constraining subjects to the same posture as targeted by our musculoskeletal simulations (Fig. 3b). We used ultrasound and the recommendations of [37] to guide the insertion of fine-wire electrodes to record EMG of the brachialis. Following SENIAM recommendations [38], we placed surface electrodes to record EMG of the triceps, biceps, and brachioradialis. Although more invasive, we used fine-wire EMG for the brachialis to IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 5 circumvent the challenge of crosstalk with the biceps brachii, which could have presented during the high-intensity contraction. Elbow flexion torques were collected at 100 Hz, and EMG signals were collected at 3000 Hz. All EMG signals were checked for quality before, during, and after data collection. During data collection, each subject performed two tasks using their non-dominant (i.e., left) arm: MVCs of elbow flexion and sustained elbow flexion. To obtain each subject’s elbow flexion strength, we recorded three 5-second MVC trials, each separated by 10 seconds of rest. Following the MVCs, each participant performed sustained elbow flexion with a target torque of 80% of their peak MVC torque. We selected this relatively high intensity to mitigate the influence of sex on time to task failure [33]. Similar to the protocol of Yoon et al. [33], the sustained elbow flexion trial was terminated when the subject’s torque dropped below 70% of their MVC torque for 3 of 5 seconds. During both tasks, subjects received verbal encouragement and real-time visual feedback of their torque plotted versus time. Recorded EMG signals and elbow flexion torques were prepared for ANN training and testing. Each EMG signal was processed following the recommendations of [39]. First, we subtracted the mean of each signal from itself (i.e., centering about 0). Each signal was then processed through a 4 <sup>th</sup> order Butterworth bandpass filter with cutoff frequencies of 10–500 Hz and rectified. We then employed a 4 <sup>th</sup> order Butterworth lowpass filter (cutoff of 5 Hz) to retrieve the EMG envelope. We also employed a median filter (window size of 1499 instances, or 0.5 s) to remove any remaining outliers. The filtered signal was then scaled to a range of [0,1] using the peak muscle activation observed across all trials for the subject. Lastly, the processed muscle activations and elbow flexion torques were interpolated to the same length as the simulated trials (i.e., 300 time instances) across the length of the sustained elbow flexion trial. Sustained elbow flexion data from 5 randomly selected subjects formed the leave out set and the remaining 20 subjects’ data formed the training set. C. Direct Learning Model We trained a custom ANN architecture to predict dynamic elbow flexion torques from recorded static (e.g., anthropometric measurements) and dynamic (i.e., muscle activations) features (Fig. 1, top). The recorded muscle activations were fed into a long short-term memory neural network (LSTM), a type of recurrent neural network capable of capturing long-term temporal dependencies, such as those embedded in muscle activations. We then concatenated this LSTM with a feedforward architecture, which learned to predict elbow flexion torques from the outputs of the LSTM and the 7 static subject-specific features. We regularized the ANN via weight decay, which penalized the weights and biases. A random search evaluated via mean-square-error (MSE) was used to identify the ANN’s hidden dimension and hyperparameters (i.e., learning weight and weight decay) in tandem with 5-fold cross validation. The ANN used a rectified linear unit (ReLU) activation function [40], an Adam optimizer [41], and a mean-square-error (MSE) loss function. The final architecture and hyperparameters of the direct learning model are summarized by Table II. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 6 D. Transfer Learning Model To evaluate the utility of pre-training on simulated data, we developed an ANN via transfer learning (Fig. 1, bottom). The transfer learning model contained the same LSTM architecture as the direct learning model. However, this LSTM was pre-trained from scratch using the simulated dataset, predicting elbow flexion torque from muscle activations. By pre-training the LSTM with musculoskeletal simulations, we inform it of the relationship between muscle activations and elbow flexion torques, as captured by our simulations. During the pre-training phase, a random search informed the selection of learning rate and weight decay. Once trained, we locked the gradients of the LSTM’s hidden layers, and concatenated the model with a feedforward architecture. The resulting transfer learning model was then fine-tuned using the recorded dataset. During this fine-tuning, another random search was then used to identify the hyperparameters and feedforward architecture best suited to predict on recorded data. This random search also identified the number of LSTM backend layers to unfreeze, which was restricted to 0, 1, or 2 layers to prevent the model from re-training too many pre-trained layers. Similar to the protocol employed on the direct learning model, all random searches used in the development of the transfer learning model were evaluated via MSE in conjunction with 5-fold cross validation. Furthermore, the transfer learning model also employed a ReLU activation function [40], Adam optimizer [41], and MSE loss function. The final architecture and hyperparameters of the transfer learning model are summarized by Table II. E. Simulated Leave-Out Set To provide a basis of comparison to a physics-based approach to predicting fatiguing elbow flexion torques, we ran a forward dynamic musculoskeletal simulation for each subject in the leave-out set. First, we scaled the generic elbow model to anthropometrically represent each of the 5 leave-out subjects. We then prepared the processed muscle activations for forward dynamic simulations. To reduce noise, we processed each signal using a moving average filter with a window size of 25 datapoints. This window size was determined by visualizing the sum of absolute differences for each signal (effectively quantifying alterations to the muscle activations), as processed through a moving average filter with window sizes ranging 5 to 50 datapoints, in 5 datapoint increments. Lastly, we input the processed muscle activations into forward dynamic simulations using the corresponding subject’s scaled musculoskeletal model, and evaluated the elbow flexion torques using a joint reaction analysis. F. Validation To assess the impact of transfer learning with simulated and recorded data, we compared the performance of the direct learning model, transfer learning model, and musculoskeletal simulations on the leave out set. To summarize differences in the quality of predictions, we reported the root-mean-square-errors (RMSEs) and mean-absolute errors (MAE) for each ANN and simulation. Moreover, we visualized the raw predictions of each approach against the recorded data and created parity plots to elucidate the quality of predictions. Lastly, we compared the prediction variability from each ANN with the actual data’s standard deviation IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 7 (SD), summarizing the smoothness of the predictions in comparison to their measured counterpart. III. RESULTS The direct learning and transfer learning models predicted sustained elbow flexion torques from the leave out set with relatively little error (Fig. 4). The predictions from the transfer learning model and direct learning model produced RMSEs of 6.22 Nm and 8.28 Nm, respectively. This represents a 24.9% decrease in RMSE for the transfer learning model’s predictions when compared to the direct learning model. For context, as little as a 2.5 Nm change in elbow torque can indicate the effect of elbow laxity in baseball pitching mechanics [42]. Similarly, the MAEs associated with the transfer learning model and direct learning model were 4.09 Nm and 5.43 Nm, respectively. Both models substantially outperformed the musculoskeletal simulations, which consistently underpredicted elbow torques and produced RMSEs and MAEs of 57.9 Nm and 56.1 Nm, respectively. The errors for each approach can be interpreted in context of the recorded torque, which averaged approximately 37 Nm across the length of the task across all subjects. The transfer learning model’s predictions had comparable variability to those of the direct learning model, as reflected in their SDs of 10.0 Nm and 10.3 Nm, respectively (compared to a SD of 13.2 Nm for the recorded torque). Across all leave out subjects and both ANNs, the greatest prediction errors were associated with low elbow flexion torques, as is present during the both the ramp-up phase and the end of the task (Fig. 5). To supplement analyses of our transfer learning results, we characterized and compared the simulated (i.e., pretraining) and recorded (includes fine-tuning and test) datasets. Note, the simulated dataset was generated using synthetic subjects (representing healthy young adults) and forward dynamic simulations that received simulated muscle activations as inputs. The range of elbow flexion torques in the recorded and simulated datasets overlapped substantially with means and SDs of 38.2 Nm ± 13.9 Nm and 37.4 Nm ± 14.7 Nm, respectively. The distributions of muscle activations within each dataset were also alike (Fig. 6), especially for the elbow flexors (i.e., BIC, BRA, and BRD). However, the simulated TRI activations were much lower than those recorded. Additionally, the recorded torques increased in variability as each subject fatigued (i.e., near task failure), as shown at the end of each leave-out subjects’ trial (Fig. 4). For additional reference, the recorded elbow flexion MVCs were 53.0 Nm ± 14.8 Nm and the time to task failure (i.e., when a subject’s torque fell to 70% MVC) were 41.4 s ± 17.7 s, ranging 15.3 s to 89.8 s. IV. DISCUSSION The direct learning and transfer learning models both predicted sustained elbow flexion torque with lower errors than the musculoskeletal simulations. Furthermore, the transfer learning model provided greater predictive performance than the direct learning model. In gist, pre-training the ANN with simulated data improved the model’s generalizability to recorded data. Even with the use of a relatively simple muscle fatigue model, our simulated dataset contains knowledge that is valuable for the prediction of sustained elbow flexion torque in healthy young adults. However, musculoskeletal simulations alone are not robust to IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 8 real-world conditions, as evidenced by the poor predictive performance of these simulations on the leave-out set. Nonetheless, musculoskeletal simulations are a low-cost option for acquiring biomechanical data (in terms of time and money) and are widely available in open-source repositories (e.g., SimTK.org [43]). The direct learning and transfer learning models both struggled to predict at low elbow flexion torques; this outcome is likely the result of data imbalance, as more observations of high elbow-flexion torques were present in the training set. Future works may use simulated datasets and physics-based muscle fatigue models to pre-train other machine learning models, providing biomechanical predictions more robust to real-world conditions. Transfer learning is most effective when the non-target dataset (i.e., data used to pre-train the model) is similar to that of the target dataset (i.e., data that the final model predicts). Prior works have noted this need for dataset similarity when transferring knowledge of nontarget subjects to target subjects [44], [45]. Therefore, it is important that datasets used for training (non-target and target) be characterized when reporting transfer learning outcomes. Furthermore, augmenting the non-target dataset (e.g., using generative adversarial neural networks; [46]) may increase similarity with the target dataset, enhancing the benefits of transfer learning. Characterizations of our datasets revealed that the simulated and recorded data followed similar distributions. This similarity likely contributed to the success of our transfer learning approach, as indicated by the less erroneous predictions of the transfer learning model when compared to direct learning. Notably, the simulated dataset inherently lacked noise resultant from human subject data collection (e.g., movement artifact). The transfer learning model learned from these relatively clean data, potentially teaching it to predict smoother torque profiles. The present work makes publicly available simulated and recorded datasets of elbow flexion. These data may be leveraged in future efforts to develop and validate models of fatiguing upper extremity movements. Our recorded dataset was collected using similar protocols to prior literature [33], [47], [48]. Similar to our recorded dataset, Hunter et al. [47] reported MVC torques of approximately 65 Nm ± 8 Nm for healthy young adults. Also consistent with this study, we observed an increase in torque variability near task failure (i.e., when subject was fatigued). However, the time to task failure previously reported for sustained elbow flexion at an 80% MVC torque target was previously reported at approximately 25 seconds [33], whereas we recorded a mean time to task failure of 41.4 seconds. This discrepancy could be the result of multiple factors, such as differences in the young adult population sampled, real-time feedback during the task, and shoulder posture (i.e., their subjects were positioned with 0° shoulder flexion, as opposed to 45° in the present study). Additionally, our simulated dataset provides muscle activations and torques representing 1,701 trials of elbow flexion across 243 healthy young adults which account for the onset of muscle fatigue. Using our datasets and nuanced machine learning techniques, such as multi-task learning [49] and explainable artificial intelligence [50], upper extremity models with even greater utility may be realized. The simulation pipeline we employed is easily adaptable, making it a potentially fruitful tool for works seeking to model the effects of muscle fatigue. To pre-train our transfer learning model, we used a relatively simple 3-compartment muscle fatigue model. The simplicity IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 9 of this fatigue model enabled its use with no subject-specific parameterization. However, future works may use other fatigue models to produce simulated datasets (e.g., that proposed by Callahan et al. [10]) with which to pre-train a transfer learning model. Using more robust fatigue models may increase the accuracy of musculoskeletal simulations, potentially providing even greater benefits for transfer learning. The transfer learning approach we used is also adaptable, as training datasets and the ANN architecture can be adjusted as needed for developing deep biomechanical models. Our custom architecture enabled us to make predictions using our recorded multimodal data (e.g., time-series and static features). In doing so, our ANNs could capture the profiles of muscle activations while accounting for subject-specific attributes that are needed to predict elbow flexion torque. Similarly, many devices that could benefit from robust muscle fatigue models rely on muscle activations as inputs (e.g., myoelectric controllers). Future works may develop custom ANNs suited to predict the effects of fatigue using additional features (e.g., kinematic data), providing predictions for any of a wide range of biomechanical systems. Furthermore, the present study reports the benefits of transfer learning for predicting isometric elbow flexion torques. Future works may apply our framework to model other tasks, with consideration for any additional features needed to model that task (e.g., kinematic data for non-isometric tasks). V. CONCLUSION By transfer learning from simulated to recorded datasets, we developed an elbow flexion model robust to the effects of muscle fatigue. Specifically, in this proof-of-concept study, we produced a model capable of capturing decreases in torque during a high-intensity sustained contractions in a healthy young adult population. Our results encourage the development of other transfer learning models, spanning beyond isometric elbow flexion. Through these efforts, models capable of capturing muscle fatigue may inform a wide variety of applications. Acknowledgments This work was supported in part by the National Science Foundation Graduate Research Fellowship under Grant DGE-1842473 and in part by the National Institute of Biomedical Imaging and Bioengineering Trailblazer Award under Grant NIH R21 EB030068. REFERENCES [1]. Garland SJ, Enoka RM, Serrano LP, and Robinson GA, “Behavior of motor units in human biceps brachii during a submaximal fatiguing contraction,” J. Appl. Physiol, vol. 76, no. 6, pp. 2411–2419, Jun. 1994, doi: 10.1152/jappl.1994.76.6.2411. [PubMed: 7928865] [2]. Artemiadis PK and Kyriakopoulos KJ, “An EMG-based robot control scheme robust to time varying EMG signal features,” IEEE Trans. Inf. Technol. Biomed, vol. 14, no. 3, pp. 582–588, May 2010, doi: 10.1109/titb.2010.2040832. [PubMed: 20172839] [3]. Fu J, Choudhury R, Hosseini SM, Simpson R, and Park J-H, “Myoelectric control systems for upper limb wearable robotic exoskeletons and exosuits—A systematic review,” Sensors, vol. 22, no. 21, p. 8134, Oct. 2022, doi: 10.3390/s22218134. [PubMed: 36365832] IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 10 [4]. Kyranou I, Vijayakumar S, and Erden MS, “Causes of performance degradation in non-invasive electromyographic pattern recognition in upper limb prostheses,” Frontiers Neurorobot., vol. 12, no. 58, Sep. 2018, doi: 10.3389/fnbot.2018.00058. [5]. Paillard T, “Effects of general and local fatigue on postural control: A review,” Neurosci. Biobehav. Rev, vol. 36, no. 1, pp. 162–176, Jan. 2012, doi: 10.1016/j.neubiorev.2011.05.009. [PubMed: 21645543] [6]. Alentorn-Geli E et al., “Prevention of non-contact anterior cruciate ligament injuries in soccer players. Part 1: Mechanisms of injury and underlying risk factors,” Knee Surg., Sports Traumatol., Arthroscopy, vol. 17, no. 7, pp. 705–729, Jul. 2009, doi: 10.1007/ s00167-009-0813-1. [7]. Verschueren J et al., “Does acute fatigue negatively affect intrinsic risk factors of the lower extremity injury risk profile? A systematic and critical review,” Sports Med, vol. 50, no. 4, pp. 767–784, Apr. 2020, doi: 10.1007/s40279-019-01235-1. [PubMed: 31782066] [8]. Potvin JR and Fuglevand AJ, “A motor unit-based model of muscle fatigue,” PLOS Comput. Biol, vol. 13, no. 6, Jun. 2017, Art. no. e1005581, doi: 10.1371/journal.pcbi.1005581. [PubMed: 28574981] [9]. Ma L, Chablat D, Bennis F, and Zhang W, “A new simple dynamic muscle fatigue model and its validation,” Int. J. Ind. Ergonom, vol. 39, no. 1, pp. 211–220, Jan. 2009, doi: 10.1016/ j.ergon.2008.04.004. [10]. Callahan DM, Umberger BR, and Kent JA, “Mechanisms of in vivo muscle fatigue in humans: Investigating age-related fatigue resistance with a computational model,” J. Physiol, vol. 594, no. 12, pp. 3407–3421, Jun. 2016, doi: 10.1113/jp271400. [PubMed: 26824934] [11]. Kent-Braun JA, Fitts RH, and Christie A, “Skeletal muscle fatigue,” in Comprehensive Physiology. Hoboken, NJ, USA: Wiley, 2012, pp. 997–1044, doi: 10.1002/cphy.c110029. [12]. Constantin-Teodosiu D and Constantin D, “Molecular mechanisms of muscle fatigue,” Int. J. Mol. Sci, vol. 22, no. 21, p. 11587, Oct. 2021, doi: 10.3390/ijms222111587. [PubMed: 34769017] [13]. Sundberg CW and Fitts RH, “Bioenergetic basis of skeletal muscle fatigue,” Current Opinion Physiol, vol. 10, pp. 118–127, Aug. 2019, doi: 10.1016/j.cophys.2019.05.004. [14]. Yousif HA et al., “Assessment of muscles fatigue based on surface EMG signals using machine learning and statistical approaches: A review,” IOP Conf. Ser., Mater. Sci. Eng, vol. 705, Dec. 2019, Art. no. 012010, doi: 10.1088/1757-899X/705/1/012010. [15]. Karvekar S, Abdollahi M, and Rashedi E, “Smartphone-based human fatigue level detection using machine learning approaches,” Ergonomics, vol. 64, no. 5, pp. 600–612, May 2021, doi: 10.1080/00140139.2020.1858185. [PubMed: 33393439] [16]. Moniri A, Terracina D, Rodriguez-Manzano J, Strutton PH, and Georgiou P, “Real-time forecasting of sEMG features for trunk muscle fatigue using machine learning,” IEEE Trans. Biomed. Eng, vol. 68, no. 2, pp. 718–727, Feb. 2021, doi: 10.1109/TBME.2020.3012783. [PubMed: 32746076] [17]. Zhang J, Lockhart TE, and Soangra R, “Classifying lower extremity muscle fatigue during walking using machine learning and inertial sensors,” Ann. Biomed. Eng, vol. 42, no. 3, pp. 600–612, Mar. 2014, doi: 10.1007/s10439-013-0917-0. [PubMed: 24081829] [18]. Wang J, Sun Y, and Sun S, “Recognition of muscle fatigue status based on improved wavelet threshold and CNN-SVM,” IEEE Access, vol. 8, pp. 207914–207922, 2020, doi: 10.1109/ ACCESS.2020.3038422. [19]. Farina D et al., “The extraction of neural information from the surface EMG for the control of upper-limb prostheses: Emerging avenues and challenges,” IEEE Trans. Neural Syst. Rehabil. Eng, vol. 22, no. 4, pp. 797–809, Jul. 2014, doi: 10.1109/TNSRE.2014.2305111. [PubMed: 24760934] [20]. Dao TT, “From deep learning to transfer learning for the prediction of skeletal muscle forces,” Med. Biol. Eng. Comput, vol. 57, no. 5, pp. 1049–1058, May 2019, doi: 10.1007/ s11517-018-1940-y. [PubMed: 30552553] IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 11 [21]. Liew BXW, Rügamer D, Zhai X, Wang Y, Morris S, and Netto K, “Comparing shallow, deep, and transfer learning in predicting joint moments in running,” J. Biomech, vol. 129, Dec. 2021, Art. no. 110820, doi: 10.1016/j.jbiomech.2021.110820. [PubMed: 34717160] [22]. Yhdego H et al., “Towards musculoskeletal simulation-aware fall injury mitigation: Transfer learning with deep CNN for fall detection,” in Proc. Spring Simulation Conf. (SpringSim), Apr. 2019, pp. 1–12, doi: 10.23919/SpringSim.2019.8732857. [23]. Park H, Cho J, Park J, Na Y, and Kim J, “Sim-to-real transfer learning approach for tracking multi-DOF ankle motions using soft strain sensors,” IEEE Robot. Autom. Lett, vol. 5, no. 2, pp. 3525–3532, Apr. 2020, doi: 10.1109/LRA.2020.2979631. [24]. Kearney KM, Ordonez Diaz T, Harley JB, and Nichols JA, “Transfer learning with simulated and recorded data improves predictions of upper extremity biomechanics,” in Proc. 29th Congr. Int. Soc. Biomech, 2023. [25]. Enoka RM and Duchateau J, “Muscle fatigue: What, why and how it influences muscle function,” J. Physiol, vol. 586, no. 1, pp. 11–23, Jan. 2008, doi: 10.1113/jphysiol.2007.139477. [PubMed: 17702815] [26]. Lalitharatne TD, Teramoto K, Hayashi Y, Nanayakkara T, and Kiguchi K, “Evaluation of fuzzy neuro modifiers for compensation of the effects of muscle fatigue on EMG-based control to be used in upper-limb power-assist exoskeletons,” J. Adv. Mech. Des., Syst., Manuf, vol. 7, no. 4, pp. 736–751, 2013, doi: 10.1299/jamdsm.7.736. [27]. Paszke A et al., “PyTorch: An imperative style, high-performance deep learning library,” in Proc. Adv. neural Inf. Process. Syst, no. 721, 2019, pp. 8026–8037. [28]. Saul KR et al., “Benchmarking of dynamic simulation predictions in two software platforms using an upper limb musculoskeletal model,” Comput. Methods Biomech. Biomed. Eng, vol. 18, no. 13, pp. 1445–1458, Oct. 2015, doi: 10.1080/10255842.2014.916698. [29]. Xia T and Frey Law LA, “A theoretical approach for modeling peripheral muscle fatigue and recovery,” J. Biomech, vol. 41, no. 14, pp. 3046–3052, Oct. 2008, doi: 10.1016/ j.jbiomech.2008.07.013. [PubMed: 18789445] [30]. Seth A et al., “OpenSim: Simulating musculoskeletal dynamics and neuromuscular control to study human and animal movement,” PLOS Comput. Biol, vol. 14, no. 7, Jul. 2018, Art. no. e1006223, doi: 10.1371/journal.pcbi.1006223. [PubMed: 30048444] [31]. Delp SL et al., “OpenSim: Open-source software to create and analyze dynamic simulations of movement,” IEEE Trans. Biomed. Eng, vol. 54, no. 11, pp. 1940–1950, Nov. 2007, doi: 10.1109/ TBME.2007.901024. [PubMed: 18018689] [32]. Fryar CD, Gu Q, Ogden CL, and Flegal KM, “Anthropometric reference data for children and adults: United States, 2011–2014,” Vital Health Stat, vol. 3, no. 39, pp. 1–46, 2011. [33]. Yoon T, Schlinder Delap B, Griffith EE, and Hunter SK, “Mechanisms of fatigue differ after low- and high-force fatiguing contractions in men and women,” Muscle Nerve, vol. 36, no. 4, pp. 515–524, Oct. 2007, doi: 10.1002/mus.20844. [PubMed: 17626289] [34]. Frey-Law LA, Looft JM, and Heitsman J, “A three-compartment muscle fatigue model accurately predicts joint-specific maximum endurance times for sustained isometric tasks,” J. Biomech, vol. 45, no. 10, pp. 1803–1808, Jun. 2012, doi: 10.1016/j.jbiomech.2012.04.018. [PubMed: 22579269] [35]. Samaan MA, Weinhandl JT, Hans SA, Bawab SY, and Ringleb SI, “Predictive neuromuscular fatigue of the lower extremity utilizing computer modeling,” J. Biomech. Eng, vol. 138, no. 1, Jan. 2016, Art. no. 011008, doi: 10.1115/1.4032071. [36]. Veale JF, “Edinburgh handedness inventory—Short form: A revised version based on confirmatory factor analysis,” Laterality, Asymmetries Body, Brain Cognition, vol. 19, no. 2, pp. 164–177, Mar. 2014, doi: 10.1080/1357650x.2013.783045. [37]. Perotto AO, Anatomical Guide for the Electromyographer: The Limbs and Trunk, 5th ed. Springfield, IL, USA: Charles C Thomas, 2011. [38]. Hermens HJ, Freriks B, Disselhorst-Klug C, and Rau G, “Development of recommendations for SEMG sensors and sensor placement procedures,” J. Electromyogr. Kinesiol, vol. 10, no. 5, pp. 361–374, 2000, doi: 10.1016/S1050-6411(00)00027-4. [PubMed: 11018445] IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 12 [39]. Konrad P, “The ABC of EMG. A practical introduction to kinesiological electromyography,” Noraxon, Scottsdale, AZ, USA, Tech. Rep, 2005. [40]. Fred Agarap A, “Deep learning using rectified linear units (ReLU),” 2018, arXiv:1803.08375. [41]. Kingma DP and Ba J, “Adam: A method for stochastic optimization,” 2014, arXiv:1412.6980. [42]. Khalil LS et al., “Elbow torque may be predictive of anatomic adaptations to the elbow after a season of collegiate pitching: A dynamic ultrasound study,” Arthroscopy, Sports Med., Rehabil., vol. 3, no. 6, pp. e1843–e1851, Dec. 2021, doi: 10.1016/j.asmr.2021.08.012. [[43]. SimTK: Welcome. Accessed: Jul. 28, 2020. [Online]. Available: https://simtk.org/](https://simtk.org/) [44]. Chavez C, Gangadharan K, and Zhang Q, “Knowledge transferring in deep learning of wearable dynamics,” in Proc. IEEE Int. Conf. Consum. Electron. (ICCE), Jan. 2023, pp. 1–4, doi: 10.1109/ ICCE56470.2023.10043543. [45]. Gangadharan K and Zhang Q, “Deep transferable intelligence for spatial variability characterization and data-efficient learning in biomechanical measurement,” IEEE Trans. Instrum. Meas, vol. 72, pp. 1–12, 2023, doi: 10.1109/TIM.2023.3265753. [PubMed: 37323850] [46]. Bicer M, Phillips ATM, Melis A, McGregor AH, and Modenese L, “Generative deep learning applied to biomechanics: A new augmentation technique for motion capture datasets,” J. Biomech, vol. 144, Nov. 2022, Art. no. 111301, doi: 10.1016/j.jbiomech.2022.111301. [PubMed: 36201910] [47]. Hunter SK, Critchlow A, Shin I-S, and Enoka RM, “Fatigability of the elbow flexor muscles for a sustained submaximal contraction is similar in men and women matched for strength,” J. Appl. Physiol, vol. 96, no. 1, pp. 195–202, Jan. 2004, doi: 10.1152/japplphysiol.008 93.2003. [PubMed: 14514707] [48]. Hunter SK and Enoka RM, “Sex differences in the fatigability of arm muscles depends on absolute force during isometric contractions,” J. Appl. Physiol, vol. 91, no. 6, pp. 2686–2694, [Dec. 2001. [Online]. Available: http://www.jap.org2686 [PubMed: 11717235]](http://www.jap.org2686) [49]. Zhang Y and Yang Q, “A survey on multi-task learning,” IEEE Trans. Knowl. Data Eng, vol. 34, no. 12, pp. 5586–5609, Dec. 2022, doi: 10.1109/TKDE.2021.3070203. [50]. Arrieta AB et al., “Explainable artificial intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI,” Inf. Fusion, vol. 58, pp. 82–115, Jun. 2020, doi: 10.1016/ j.inffus.2019.12.012. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 13 Fig. 1. Overview of transfer learning approach and its validation. Simulated data were used to pre-train an ANN comprised of LSTM and feedforward layers. Muscle activations (denoted a1 through an) were inputs to LSTM layers, and static subject-specific features (denoted s1 through sn) were inputs to the feedforward layers. The output of each ANN was elbow flexion torque, T. The pre-trained ANN was then fine tuned using recorded data, resulting in our transfer learning model (bottom). We trained a similar model solely of recorded data, resulting in our direct learning model (top). Each model was then evaluated using a leave out set, and the quality of their prediction were compared. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 14 Fig. 2. Overview of simulation pipeline. Scaled elbow models were fed into computed muscle control simulations defined with a static target posture and varying target forces. The resulting muscle excitations were then processed through a muscle fatigue model, before being used in forward dynamic simulations. The resulting fatiguing muscle excitations, Xsim, and elbow torques, Ysim, were the inputs and outputs, respectively, used to pre-train transfer learning model. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 15 Fig. 3. Generic musculoskeletal model [28] used to simulate elbow flexion (a) and experimental setup used to record elbow flexion (b). IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 16 Fig. 4. Recorded elbow flexion torques (grey), simulated elbow flexion torques (black), and predictions of the transfer learning model (blue) and direct learning model (red) over time. Each subplot corresponds to a subject in the leave-out set. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 17 Fig. 5. Parity plots of elbow flexion torques as predicted by the direct learning model (left) and transfer learning model (right) on leave-out data. Each color represents a subject. The transfer learning model consistently predicted with lower errors than the direct learning model, as illustrated by the comparably lower distances between each datapoint and the parity line for the transfer learning model. Both ANNs struggled to predict low torques (see aggregation of points where actual torque is 0 Nm). IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 18 Fig. 6. Boxplots of muscle activations and torques (ANN inputs and outputs, respectively) for the simulated (blue) and recorded (orange) datasets. Black circles indicate outliers, which were defined as values that fall below the first quartile or above the third quartile by 1.5 times the interquartile range. Distributions of the muscle activations and elbow flexion torques are similar across the two datasets, except for TRI muscle activations. Most of the simulated TRI muscle activations were at or near zero; only a subset of simulations converged to a solution with non-zero activation of the TRI, resulting in the outliers shown. IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 19 TABLE I SUMMARY OF DATASETS USED TO TRAIN AND VALIDATE DIRECT LEARNING AND TRANSFER LEARNING MODELS <u>Simulated Dataset</u> <u>Recorded Dataset</u> Trials 1701 25 Subjects 243 25 Features Dynamic (muscle activations) Brachialis Brachialis Triceps Triceps Biceps Biceps Brachioradialis Brachioradialis Static N/A Sex Height Mass Max Elbow Flexion Torque Forearm Length Elbow Width Upper Arm Length Outputs Dynamic Elbow Flexion Torques Elbow Flexion Torques IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30. Kearney et al. Page 20 TABLE II ARCHITECTURE AND HYPERPARAMETERS OF THE DIRECT LEARNING AND TRANSFER LEARNING MODELS Direct Learning Transfer Learning Learning Rate 6.4 × 10 <sup>−3</sup> 9.0 × 10 <sup>−3</sup> Weight Decay 4.5 × 10 <sup>−2</sup> 9.4 × 10–2 LSTM Hidden Layers 3 3 LSTM Hidden Layer Width 24 24 Backend LSTM Layers Unfrozen N/A 2 Feedforward Hidden Layers 2 2 Feedforward Hidden Layer Width 23 18 IEEE Trans Neural Syst Rehabil Eng. Author manuscript; available in PMC 2024 October 30.

섹션 본문 32문단 · 30,651자

(제목 없음)

1Muscle fatigue impacts upper extremity function but is often overlooked in biomechanical models.The present work leveraged a transfer learning approach to improve torque predictions during fatiguing upper extremity movements.We developed two artificial neural networks to model sustained elbow flexion: one trained solely on recorded data (i.e., direct learning) and one pre-trained on simulated data and fine-tuned on recorded data (i.e., transfer learning).We simulated muscle activations and joint torques using a musculoskeletal model and a muscle fatigue model (n = 1,701 simulations).We also recorded static subject-specific features (e.g., anthropometric measurements) and dynamic muscle activations and torques during sustained elbow flexion in healthy young adults (n = 25 subjects).Using the simulated dataset, we pre-trained a long short-term memory neural network (LSTM) to regress fatiguing elbow flexion torque from muscle activations.We concatenated this pre-trained LSTM with a feedforward architecture, and fine-tuned the model on recorded muscle activations and static features to predict elbow flexion torques.We trained a similar architecture solely on the recorded data and compared each neural network's predictions on 5 leave-out subjects' data.The transfer learning model outperformed the direct learning model, as indicated by a decrease of 24.9% in their root-mean-square-errors (6.22 Nm and 8.28 Nm, respectively).The transfer learning model and direct learning model outperformed analogous musculoskeletal simulations, which consistently underpredicted elbow flexion torque.Our results suggest that transfer learning from simulated to recorded datasets can decrease reliance on assumptions inherent to biomechanical models and yield predictions robust to real-world conditions.

I. INTRODUCTION

2M USCLE fatigue, the exercise-induced reduction in a muscle's force-generating capacity [1], can significantly influence biomechanical outcomes.When unaccounted for, muscle fatigue can limit the effectiveness of medical devices and impede athletic performance.For example, the shifts in muscle activations that result from muscle fatigue induce errors in myoelectric controllers [2], thereby hindering the utility of exoskeletons [3] and prostheses [4].Furthermore, muscle fatigue causes shifts in postural strategies [5] and increases the likelihood of sports-related injuries [6], [7].

3The wide-ranging implications of muscle fatigue have prompted researchers to model its effects on biomechanical systems.A multifaceted phenomenon, muscle fatigue has been modeled on multiple scales, from motor units [8] to the joint level [9], using techniques rooted in physics (e.g., [10]).Many factors can decrease a muscle's force capacity during exercise [11], [12], [13], challenging the parameterization of complex physics-based models.For example, the model developed by Callahan et al. [10] employed a holistic approach, using the neural, biochemical, morphological, and physiological properties of skeletal muscle to predict neural activations, forces, and intracellular metabolic perturbations during fatiguing contractions.Such models provide important insights into the mechanisms that drive fatigue.However, the assumptions needed to parameterize and design complex physics-based models limit predictive performance.

4Circumventing physical and subject-specific assumptions, machine learning models have also been employed to capture the effects of muscle fatigue [14].Machine learning models have been developed to predict fatigue onset using data collected from wearable devices, such as motion (e.g., [15]) or electromyographic (EMG) data (e.g., [16]).Like physics-based models, machine learning models of muscle fatigue range in complexity.For example, Zhang et al. [17] used support vector machines, a traditional machine learning model, to classify muscle fatigue using lower extremity kinematic and kinetic data.Given the complexity of real-world biomechanical systems, more recent works have shifted to predicting the effects of muscle fatigue via deep learning (e.g., [18]).Unlike many traditional machine learning models, deep models can capture complex non-linear relationships in high dimensional datasets, thereby providing enhanced generalizability to unseen data.

5Despite the prevalence of muscle fatigue models, limitations to predictive performance continue to stymie the progress of assistive and rehabilitative technologies.A notable challenge is that muscle fatigue introduces complex non-linear behaviors into biomechanical systems that are often difficult to model accurately.In part, this complexity is difficult to model due to the time and monetary expenses associated with collecting high-fidelity biomechanical data.These challenges are exacerbated in the upper extremity, where EMG crosstalk is difficult to avoid [19] and the high number of degrees of freedom increase model complexity.To leverage the strengths of both physics-based and machine learning models, some works have employed a strategy known as transfer learning, or the process of training a machine learning model on one task and repurposing this knowledge for another task (e.g., [20], [21], [22], [23]).As exemplified by our previous work [24], pre-training artificial neural networks (ANNs) with large, simulated datasets can improve the predictive performance of biomechanical machine learning models.A similar transfer learning approach may enhance predictions involving the effects of muscle fatigue.

6Our objective was to improve the prediction of torque in fatiguing upper extremity movements.We chose to predict torque as it is correlated to the decline in muscle force caused by fatigue [25].Furthermore, predicting changes in torque is valuable for the design of interventions to mitigate the impact of muscle fatigue; for example, myoelectric controllers equipped with a fatigue model could compensate for the effects of fatigue, enhancing device performance (e.g., [26]).Towards our objective, we developed a model of elbow flexion via transfer learning.Specifically, we pre-trained an ANN using simulated data and fine-tuned the ANN using recorded data.We also developed a direct learning model by training an ANN solely on recorded data.By comparing the predictions of each ANN on a leave out set, we elucidated the utility of simulated datasets for informing models robust to the onset of muscle fatigue.Lastly, we compared each ANN's predictions to that of analogous musculoskeletal simulations, elucidating the benefits of our machine learning approaches relative to a standard physics-based approach.

II. METHODS

7To evaluate the utility of transfer learning for modeling sustained elbow flexion, we developed and compared results from both a transfer learning model and direct learning model using PyTorch v. 2.0.1 [27].Simulated and recorded datasets of sustained elbow flexion were used to train and validate these ANNs.Briefly, we simulated elbow flexion for healthy young adults using a generic elbow model [28] and a muscle fatigue model [29] in OpenSim v. 4.1 [30], [31].As part of an IRB-approved study (University of Florida IRB #202202263), we also recorded sustained elbow flexion at 80% maximum voluntary contraction (MVC) in 25 healthy young adults.Both ANNs were then developed and evaluated on a leave-out set (Fig. 1).Each ANN used inputs of dynamic muscle activations and static subject-specific features (e.g., anthropometric measurements) to predict elbow flexion torques over time.Lastly, we ran a forward dynamic simulation for each subject in the leave-out set, and compared the errors of the transfer learning model, direct learning model, and forward dynamic Overview of transfer learning approach and its validation.Simulated data were used to pre-train an ANN comprised of LSTM and feedforward layers.Muscle activations (denoted a 1 through a n ) were inputs to LSTM layers, and static subject-specific features (denoted s 1 through s n ) were inputs to the feedforward layers.The output of each ANN was elbow flexion torque, T. The pre-trained ANN was then fine tuned using recorded data, resulting in our transfer learning model (bottom).We trained a similar model solely of recorded data, resulting in our direct learning model (top).Each model was then evaluated using a leave out set, and the quality of their prediction were compared.

8simulations.The data required for reproducing our results are freely available at https://simtk.org/projects/transferlearnue.

A. Simulated Dataset

9To pre-train the transfer learning model, we simulated a dataset that represented elbow flexion with the onset of muscle fatigue (Fig. 2).We scaled a generic elbow model [28] using randomly sampled masses and heights [32] to generate 300 musculoskeletal models that represented young adults ranging from 5 th to 95 th percentile in size and 20-29 years of age.The musculoskeletal model included 7 muscle-tendon actuators: medial, lateral, and long heads of the triceps (TRI), long and short heads of the biceps (BIC), brachialis (BRA), and brachioradialis (BRD).Excitations for these actuators were generated via computed muscle control (CMC) simulations that varied in torque, targeting a 1.5 second linear ramp, which started at 10 Nm and peaked between 30 Nm and 90 Nm, adjusted in increments of 10 Nm, before plateauing for an additional 1.5 seconds.Each CMC simulation represented isometric elbow flexion, maintaining a target posture of 45 • shoulder flexion, 90 • elbow flexion, and forearm supination (Fig. 3a).Retrieving only simulations that converged (1,701 of 2,100 simulations), we extrapolated the final state (holding torque constant) to extend each simulation to 30 seconds, or the approximate time to exhaustion for an 80% MVC in healthy young adults [33].The resulting simulated dataset contained sets of pre-fatigue muscle excitations representing 243 healthy young adults.

10To simulate the effects of muscle fatigue, we processed the pre-fatigue muscle excitations from CMC using a muscle fatigue model [29].This 3-compartment model represents a muscle's motor units in active, rested, and fatigued states.Additionally, this fatigue model does not require any subject-specific parameters and has already been parameterized for the elbow [34].Based on this prior work, we adopted fatigue rate and recovery rates of 0.00912 and 0.00094 (both unitless), respectively.In a pipeline similar to that employed by Samaan et al. [35], the pre-fatigue muscle excitations were processed through the fatigue model (Fig. 2).The resulting fatigued excitations were then used as inputs to forward dynamic simulations, from which elbow flexion torques were calculated.Lastly, each simulation was interpolated to contain 300 time instances (i.e., a frequency of 10 Hz).The resulting simulated dataset contained 1,701 sets of muscle excitations and elbow torques which capture the effects of fatigue for 30 seconds of sustained, isometric elbow flexion.

B. Recorded Dataset

11To train and test each ANN, we recorded sustained elbow flexion in 25 healthy young adults (mean ± SD, 22.6 ± 2.8 years).All subjects were right-handed, as determined via the Edinburgh Handedness Inventory [36].The recorded dataset includes 7 static features: sex (9 female, 16 male), height (1.7 ± 0.07 m), mass (75.1 ± 12.2 kg), maximum elbow flexion torque (46.9 ± 14.0 Nm), forearm length (25.9 ± 1.7 cm), elbow width (9.5 ± 0.9 cm), and upper arm length (31.6 ± 2.5 cm).We also collected dynamic data, which included elbow flexion torques and EMG signals.Specifically, a Biodex System Pro 4 dynamometer (Biodex Medical, Shirley, NY) was used to record elbow flexion torques, comfortably constraining subjects to the same posture as targeted by our musculoskeletal simulations (Fig. 3b).We used ultrasound and the recommendations of [37] to guide the insertion of fine-wire electrodes to record EMG of the brachialis.Following SENIAM recommendations [38], we placed surface electrodes to record EMG of the triceps, biceps, and brachioradialis.Although more invasive, we used fine-wire EMG for the brachialis to circumvent the challenge of crosstalk with the biceps brachii, which could have presented during the high-intensity contraction.Elbow flexion torques were collected at 100 Hz, and EMG signals were collected at 3000 Hz.All EMG signals were checked for quality before, during, and after data collection.

12During data collection, each subject performed two tasks using their non-dominant (i.e., left) arm: MVCs of elbow flexion and sustained elbow flexion.To obtain each subject's elbow flexion strength, we recorded three 5-second MVC trials, each separated by 10 seconds of rest.Following the MVCs, each participant performed sustained elbow flexion with a target torque of 80% of their peak MVC torque.We selected this relatively high intensity to mitigate the influence of sex on time to task failure [33].Similar to the protocol of Yoon et al. [33], the sustained elbow flexion trial was terminated when the subject's torque dropped below 70% of their MVC torque for 3 of 5 seconds.During both tasks, subjects received verbal encouragement and real-time visual feedback of their torque plotted versus time.

13Recorded EMG signals and elbow flexion torques were prepared for ANN training and testing.Each EMG signal was processed following the recommendations of [39].First, we subtracted the mean of each signal from itself (i.e., centering about 0).Each signal was then processed through a 4 th order Butterworth bandpass filter with cutoff frequencies of 10-500 Hz and rectified.We then employed a 4 th order Butterworth lowpass filter (cutoff of 5 Hz) to retrieve the EMG envelope.We also employed a median filter (window size of 1499 instances, or 0.5 s) to remove any remaining outliers.The filtered signal was then scaled to a range of [0,1] using the peak muscle activation observed across all trials for the subject.Lastly, the processed muscle activations and elbow flexion torques were interpolated to the same length as the simulated trials (i.e., 300 time instances) across the length of the sustained elbow flexion trial.Sustained elbow flexion data from 5 randomly selected subjects formed the leave out set and the remaining 20 subjects' data formed the training set.

C. Direct Learning Model

14We trained a custom ANN architecture to predict dynamic elbow flexion torques from recorded static (e.g., anthropometric measurements) and dynamic (i.e., muscle activations) features (Fig. 1, top).The recorded muscle activations were fed into a long short-term memory neural network (LSTM), a type of recurrent neural network capable of capturing long-term temporal dependencies, such as those embedded in muscle activations.We then concatenated this LSTM with a feedforward architecture, which learned to predict elbow flexion torques from the outputs of the LSTM and the 7 static subject-specific features.We regularized the ANN via weight decay, which penalized the weights and biases.A random search evaluated via mean-square-error (MSE) was used to identify the ANN's hidden dimension and hyperparameters (i.e., learning weight and weight decay) in tandem with 5-fold cross validation.The ANN used a rectified linear unit (ReLU) activation function [40], an Adam optimizer [41], and a meansquare-error (MSE) loss function.The final architecture and hyperparameters of the direct learning model are summarized by Table II.

D. Transfer Learning Model

15To evaluate the utility of pre-training on simulated data, we developed an ANN via transfer learning (Fig. 1, bottom).The transfer learning model contained the same LSTM architecture as the direct learning model.However, this LSTM was pre-trained from scratch using the simulated dataset, predicting elbow flexion torque from muscle activations.By pre-training the LSTM with musculoskeletal simulations, we inform it of the relationship between muscle activations and elbow flexion torques, as captured by our simulations.During the pre-training phase, a random search informed the selection of learning rate and weight decay.Once trained, we locked the gradients of the LSTM's hidden layers, and concatenated the model with a feedforward architecture.The resulting transfer learning model was then fine-tuned using the recorded dataset.During this fine-tuning, another random search was then used to identify the hyperparameters and feedforward architecture best suited to predict on recorded data.This random search also identified the number of LSTM backend layers to unfreeze, which was restricted to 0, 1, or 2 layers to prevent the model from re-training too many pre-trained layers.Similar to the protocol employed on the direct learning model, all random searches used in the development of the transfer learning model were evaluated via MSE in conjunction with 5-fold cross validation.Furthermore, the transfer learning model also employed a ReLU activation function [40], Adam optimizer [41], and MSE loss function.The final architecture and hyperparameters of the transfer learning model are summarized by Table II.

E. Simulated Leave-Out Set

16To provide a basis of comparison to a physics-based approach to predicting fatiguing elbow flexion torques, we ran a forward dynamic musculoskeletal simulation for each subject in the leave-out set.First, we scaled the generic elbow model to anthropometrically represent each of the 5 leave-out subjects.We then prepared the processed muscle activations for forward dynamic simulations.To reduce noise, we processed each signal using a moving average filter with a window size of 25 datapoints.This window size was determined by visualizing the sum of absolute differences for each signal (effectively quantifying alterations to the muscle activations), as processed through a moving average filter with window sizes ranging 5 to 50 datapoints, in 5 datapoint increments.Lastly, we input the processed muscle activations into forward dynamic simulations using the corresponding subject's scaled musculoskeletal model, and evaluated the elbow flexion torques using a joint reaction analysis.

F. Validation

17To assess the impact of transfer learning with simulated and recorded data, we compared the performance of the direct learning model, transfer learning model, and musculoskeletal simulations on the leave out set.To summarize differences in the quality of predictions, we reported the root-meansquare-errors (RMSEs) and mean-absolute errors (MAE) for each ANN and simulation.Moreover, we visualized the raw predictions of each approach against the recorded data and created parity plots to elucidate the quality of predictions.Lastly, we compared the prediction variability from each ANN with the actual data's standard deviation (SD), summarizing the smoothness of the predictions in comparison to their measured counterpart.

III. RESULTS

18The direct learning and transfer learning models predicted sustained elbow flexion torques from the leave out set with relatively little error (Fig. 4).The predictions from the transfer learning model and direct learning model produced RMSEs of 6.22 Nm and 8.28 Nm, respectively.This represents a 24.9% decrease in RMSE for the transfer learning model's predictions when compared to the direct learning model.For context, as little as a 2.5 Nm change in elbow torque can indicate the effect of elbow laxity in baseball pitching mechanics [42].Similarly, the MAEs associated with the transfer learning model and direct learning model were 4.09 Nm and 5.43 Nm, Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

TABLE I SUMMARY OF DATASETS USED TO TRAIN AND VALIDATE DIRECT LEARNING AND TRANSFER LEARNING MODELS TABLE II ARCHITECTURE AND HYPERPARAMETERS OF THE DIRECT LEARNING

19AND TRANSFER LEARNING MODELS respectively.Both models substantially outperformed the musculoskeletal simulations, which consistently underpredicted elbow torques and produced RMSEs and MAEs of 57.9 Nm and 56.1 Nm, respectively.The errors for each approach can be interpreted in context of the recorded torque, which averaged approximately 37 Nm across the length of the task across all subjects.The transfer learning model's predictions had comparable variability to those of the direct learning model, as reflected in their SDs of 10.0 Nm and 10.3 Nm, respectively (compared to a SD of 13.2 Nm for the recorded torque).Across all leave out subjects and both ANNs, the greatest prediction errors were associated with low elbow flexion torques, as is present during the both the ramp-up phase and the end of the task (Fig. 5).

20To supplement analyses of our transfer learning results, we characterized and compared the simulated (i.e., pretraining) and recorded (includes fine-tuning and test) datasets.Note, the simulated dataset was generated using synthetic subjects (representing healthy young adults) and forward dynamic simulations that received simulated muscle activations as inputs.The range of elbow flexion torques in the recorded and simulated datasets overlapped substantially with means and SDs of 38.2 Nm ± 13.9 Nm and 37.4 Nm ± 14.7 Nm, respectively.The distributions of muscle activations within each dataset were also alike (Fig. 6), especially for the elbow flexors (i.e., BIC, BRA, and BRD).However, the simulated TRI activations were much lower than those recorded.Additionally, the recorded torques increased in variability as each subject fatigued (i.e., near task failure), as shown at the end of each leave-out subjects' trial (Fig. 4).For additional reference, the recorded elbow flexion MVCs were 53.0 Nm ± 14.8 Nm and the time to task failure (i.e., when a subject's torque fell to 70% MVC) were 41.4 s ± 17.7 s, ranging 15.3 s to 89.8 s.

IV. DISCUSSION

21The direct learning and transfer learning models both predicted sustained elbow flexion torque with lower errors than the musculoskeletal simulations.Furthermore, the transfer Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.learning model provided greater predictive performance than the direct learning model.In gist, pre-training the ANN with simulated data improved the model's generalizability to recorded data.Even with the use of a relatively simple muscle fatigue model, our simulated dataset contains knowledge that is valuable for the prediction of sustained elbow flexion torque in healthy young adults.However, musculoskeletal simulations alone are not robust to real-world conditions, as evidenced by the poor predictive performance of these simulations on the leave-out set.Nonetheless, musculoskeletal simulations are a low-cost option for acquiring biomechanical data (in terms of time and money) and are widely available in open-source repositories (e.g., SimTK.org[43]).The direct learning and transfer learning models both struggled to predict at low elbow flexion torques; this outcome is likely the result of data imbalance, as more observations of high elbow-flexion torques were present in the training set.Future works may use simulated datasets and physics-based muscle fatigue models to pre-train other machine learning models, providing biomechanical predictions more robust to real-world conditions.

22Transfer learning is most effective when the non-target dataset (i.e., data used to pre-train the model) is similar to that of the target dataset (i.e., data that the final model predicts).Prior works have noted this need for dataset similarity when transferring knowledge of non-target subjects to target subjects [44], [45].Therefore, it is important that datasets used for training (non-target and target) be characterized when reporting transfer learning outcomes.Furthermore, augmenting the non-target dataset (e.g., using generative adversarial neural networks; [46]) may increase similarity with the target dataset, enhancing the benefits of transfer learning.Characterizations of our datasets revealed that the simulated and recorded data followed similar distributions.This similarity likely contributed to the success of our transfer learning approach, as indicated by the less erroneous predictions of the transfer learning model when compared to direct learning.Notably, the simulated dataset inherently lacked noise resultant from human subject data collection (e.g., movement artifact).The transfer learning model learned from these relatively clean data, potentially teaching it to predict smoother torque profiles.

23The present work makes publicly available simulated and recorded datasets of elbow flexion.These data may be leveraged in future efforts to develop and validate models of fatiguing upper extremity movements.Our recorded dataset was collected using similar protocols to prior literature [33], [47], [48].Similar to our recorded dataset, Hunter et al. [47] reported MVC torques of approximately 65 Nm ± 8 Nm for healthy young adults.Also consistent with this study, we observed an increase in torque variability near task failure (i.e., when subject was fatigued).However, the time to task failure previously reported for sustained elbow flexion at an 80% MVC torque target was previously reported at approximately 25 seconds [33], whereas we recorded a mean time to task failure of 41.4 seconds.This discrepancy could be the result of multiple factors, such as differences in the young adult population sampled, real-time feedback during the task, and shoulder posture (i.e., their subjects were positioned with 0 • shoulder flexion, as opposed to 45 • in the present study).Additionally, our simulated dataset provides muscle activations and torques representing 1,701 trials of elbow flexion across 243 healthy young adults which account for the onset of muscle fatigue.Using our datasets and nuanced machine learning techniques, such as multi-task learning [49] and explainable artificial intelligence [50], upper extremity models with even greater utility may be realized.

24The simulation pipeline we employed is easily adaptable, making it a potentially fruitful tool for works seeking to model the effects of muscle fatigue.To pre-train our transfer learning model, we used a relatively simple 3-compartment muscle fatigue model.The simplicity of this fatigue model enabled its use with no subject-specific parameterization.However, future works may use other fatigue models to produce simulated datasets (e.g., that proposed by Callahan et al. [10]) with which to pre-train a transfer learning model.Using more robust fatigue models may increase the accuracy of musculoskeletal simulations, potentially providing even greater benefits for transfer learning.

25The transfer learning approach we used is also adaptable, as training datasets and the ANN architecture can be adjusted as needed for developing deep biomechanical models.Our custom architecture enabled us to make predictions using our recorded multimodal data (e.g., time-series and static features).In doing so, our ANNs could capture the profiles of muscle activations while accounting for subject-specific attributes that are needed to predict elbow flexion torque.Similarly, many devices that could benefit from robust muscle fatigue models rely on muscle activations as inputs (e.g., myoelectric controllers).Future works may develop custom ANNs suited to predict the effects of fatigue using additional features (e.g., kinematic data), providing predictions for any of a wide range of biomechanical systems.Furthermore, the present study reports the benefits of transfer learning for predicting isometric elbow flexion torques.Future works may apply our framework to model other tasks, with consideration for any additional features needed to model that task (e.g., kinematic data for non-isometric tasks).

V. CONCLUSION

26By transfer learning from simulated to recorded datasets, we developed an elbow flexion model robust to the effects of muscle fatigue.Specifically, in this proof-of-concept study, we produced a model capable of capturing decreases in torque during a high-intensity sustained contractions in a healthy young adult population.Our results encourage the development of other transfer learning models, spanning beyond isometric elbow flexion.Through these efforts, models capable of capturing muscle fatigue may inform a wide variety of applications.

Fig. 1 .

27Fig. 1.Overview of transfer learning approach and its validation.Simulated data were used to pre-train an ANN comprised of LSTM and feedforward layers.Muscle activations (denoted a 1 through a n ) were inputs to LSTM layers, and static subject-specific features (denoted s 1 through s n ) were inputs to the feedforward layers.The output of each ANN was elbow flexion torque, T. The pre-trained ANN was then fine tuned using recorded data, resulting in our transfer learning model (bottom).We trained a similar model solely of recorded data, resulting in our direct learning model (top).Each model was then evaluated using a leave out set, and the quality of their prediction were compared.

Fig. 2 .

28Fig. 2. Overview of simulation pipeline.Scaled elbow models were fed into computed muscle control simulations defined with a static target posture and varying target forces.The resulting muscle excitations were then processed through a muscle fatigue model, before being used in forward dynamic simulations.The resulting fatiguing muscle excitations, X sim , and elbow torques, Y sim , were the inputs and outputs, respectively, used to pre-train transfer learning model.

Fig. 3 .

29Fig. 3. Generic musculoskeletal model [28] used to simulate elbow flexion (a) and experimental setup used to record elbow flexion (b).

Fig. 4 .

30Fig. 4. Recorded elbow flexion torques (grey), simulated elbow flexion torques (black), and predictions of the transfer learning model (blue) and direct learning model (red) over time.Each subplot corresponds to a subject in the leave-out set.

Fig. 5 .

31Fig. 5. Parity plots of elbow flexion torques as predicted by the direct learning model (left) and transfer learning model (right) on leave-out data.Each color represents a subject.The transfer learning model consistently predicted with lower errors than the direct learning model, as illustrated by the comparably lower distances between each datapoint and the parity line for the transfer learning model.Both ANNs struggled to predict low torques (see aggregation of points where actual torque is 0 Nm).

Fig. 6 .

32Fig. 6.Boxplots of muscle activations and torques (ANN inputs and outputs, respectively) for the simulated (blue) and recorded (orange) datasets.Black circles indicate outliers, which were defined as values that fall below the first quartile or above the third quartile by 1.5 times the interquartile range.Distributions of the muscle activations and elbow flexion torques are similar across the two datasets, except for TRI muscle activations.Most of the simulated TRI muscle activations were at or near zero; only a subset of simulations converged to a solution with non-zero activation of the TRI, resulting in the outliers shown.

참고문헌 1건

  1. Anthropometric Reference Data for Children and Adults: United States, 2011-2014. PubMed · National Institutes of Health · 2016