Full text
April 2024 Ana Rita Oliveira Vilas Boas Muscle fatigue and task quality management control strategies for HRC Ana Rita Oliveira Vilas Boas April 2024 Muscle fatigue and task quality management control strategies for HRC
i Muscle fatigue and task quality management control strategies for HRC Ana Rita Oliveira Vilas Boas Master’s Dissertation Master Degree in Biomedical Engineering Medical Electronics Dissertation supervised by Professor Doctor Cristina P. Santos Professor Doctor Joana C. Figueiredo April 2024
Direitos de Autor e Condições de Utilização do Trabalho por Terceiros Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho https://creativecommons.org/licenses/by-nc-nd/4.0/ ii
Acknowledgments And so ends, a 5 years journey full of learning and challenges. I want to express my gratitude to those who made this journey possible and memorable. First, I would like to express my gratitude to my supervisor, Professor Cristina Santos, for all the guidance, dedication and for the opportunity you gave me to work on such an interesting project and which allow me to acquire so many new skills. Thank you for encouraging me to always look for more and better solutions to a problem, and for believing more than I do, in my work and abilities. I also would like to make a special thank to Sara Cerqueira, for following me throughout the development of this project. Thank you for all the knowledge shared, for your patience and total availability. It was a great pleasure working with you and, without your help none of this would be possible. I am grateful to Professor Vítor Alves for making his cluster available so i could run the deep learning models. Thanks also to my BIRDLab colleagues for the great working environment created, and for the delicious Friday’ snacks. To the friends who accompanied me along these years, especially, to Diogo, António and Cristiana, thanks for all the good moments and for making group projects much more enjoyable. To my ”madrinha”, Mariana, thanks for all the advices and for putting up with all my dramas. This journey would have been much more difficult without your support. Finally, and most importantly, I would like to thank my parents for all their support during my academic education, for never letting me give up and for always being there for me. iii
Statement of Integrity I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. iv
Abstract Muscle fatigue is one of the main causes of musculoskeletal diseases in industry, which arise from performing tasks that require physical effort and that are performed for long periods of time. The economic impact of WRMSDs in Europe is huge, estimated at EUR 240 billion. Therefore, it is crucial to introduce collaborative robots in industry, that have control strategies integrated into their framework, to prevent muscle fatigue during repetitive tasks. Also, it is important to explore control strategies for task quality management and leverage Human-Robot Collaborations to reduce the learning curve of unskilled workers and enhance productivity. This dissertation proposal aims to develop a control strategy to be integrated in a HRC framework already implemented, in order to manage muscle fatigue and decrease the risk of occurrence of WRMSDs with this cause. Furthermore, this dissertation presents the first steps towards implementing a quality management strategy in a collaborative task. The assessment of DMPs demonstrated their ability to learn and generate a trajectory executed with a collaborative robot. Also, revealed the advantages of using DMPs to teach the robot a task so that, it will be able to correct the operator in case the task is performed incorrectly, thus improving productivity. To estimate in real time, the level of muscular fatigue of a subject and allow the collaborative robot to assist when the human partner is starting to become fatigued, several neural network architectures were explored. The deep learning models were fed with sEMG data acquired during exercises that activated the upper body muscles. The best results were achieved with the bidirectional LSTM model, which reached an F1-score of 89.66% in the test. As a pilot strategy to prevent or delay the onset of muscle fatigue, an agonist/antagonistic control was implement in the HRC framework, the efficiency of the developed control was validated with a UR10e collaborative robot, performing the same collaborative task with and without the control strategy activated. Keywords: Human-Robot Collaboration, WRMSDs, muscle fatigue, collaborative robots, task quality, Deep learning, sEMG v
Resumo A fadiga muscular é uma das principais causas de lesões musculoesqueléticas na indústria, que surgem a partir da execução de tarefas que exigem esforço físico e que são executadas por longos períodos de tempo. O impacto económico das LMERT na Europa é estimado em 240 mil milhões de euros. Desta forma, é crucial introduzir robôs colaborativos, com estratégias de controlo integradas na sua estrutura, para prevenir a fadiga muscular durante tarefas repetitivas. Além disso, é importante explorar o controlo para gestão da qualidade de tarefas, aproveitando as colaborações entre humanos e robôs para reduzir a curva de aprendizagem de trabalhadores não qualificados e consequentemente aumentar a produtividade. A presente proposta de dissertação visa desenvolver uma estratégia de controlo a ser integrada numa framework já implementada, de forma a gerir a fadiga muscular e diminuir o risco de ocorrência de LMERT com esta causa. Além disso, esta dissertação apresenta os primeiros passos para a implementação de uma estratégia de gestão da qualidade numa tarefa colaborativa. A avaliação das DMPs demonstrou a capacidade das mesmas para aprenderem e gerarem uma trajetória executada com um robô colaborativo. Além disso, revelou as vantagens de utilizar DMPs para ensinar uma tarefa ao robô para que este possa, posteriormente, corrigir o operador caso a tarefa colaborativa esteja a ser executada incorretamente, melhorando assim a produtividade. Para estimar em tempo real o nível de fadiga muscular de um sujeito e permitir que o robô colaborativo assista quando o parceiro humano atinge fadiga muscular, foram exploradas diversas arquiteturas. Os modelos de Deep Learning foram alimentados com dados sEMG adquiridos durante exercícios que ativaram os músculos da parte superior do corpo. Os melhores resultados foram alcançados com o modelo LSTM bidirecional, que atingiu F1-score de 89,66% no teste. Como estratégia para prevenir ou retardar o aparecimento da fadiga muscular, foi implementado na framework um controlo agonista/antagonista, a eficiência do controlo desenvolvido foi validada com o robô colaborativo UR10e, realizando a mesma tarefa colaborativa com e sem a estratégia de controlo. Palavras-Chave: Colaborações Homem-Robô, LMERT, fadiga muscular, robôs colaborativos, qualidade da tarefa, Deep learning, sEMG vi
Contents Acknowledgments iii Abstract v Resumo vi Contents ix List of Figures xiii List of Tables xv Acronyms xvi 1 Introduction 1 1.1 Motivation and Problem Statement .......................... 1 1.2 Goals and Research Questions ............................ 3 1.3 Contribution to Knowledge .............................. 5 1.4 Manuscript Outline .................................. 5 2 Literature Review 7 2.1 Search methodology ................................. 7 2.1.1 Results ................................... 8 2.2 Fatigue estimation models based on sEMG signals ................... 8 2.2.1 Traditional sEMG-based indicators ...................... 15 2.2.2 Model-based techniques for fatigue detection ................. 18 2.2.3 Muscle fatigue detection based on machine/deep learning models ....... 21 2.2.3.1 Muscle fatigue detection based on features forecasting ....... 25 vii
List of Tables 2.1 Summary of the studies addressed, regarding model-based methods for muscle fatigue detection. Reference, sensor, sampling frequency, filters, muscle, task and protocol are depicted. ....................................... 10 2.2 Summary of the studies addressed, regarding machine and deep learning for muscle fatigue detection. Reference, sensor, sampling frequency, filters, muscle, task and protocol are depicted. .................................. 11 2.3 Detailed information about neural network models under study. Reference, Architecture, Input data, Output, Ground Truth, Dataset, Dataset Split and metrics are addressed. . . 13 2.4 Summary of the studies addressed, regarding HRC control strategies. Reference, lowlevel controller, modeled variable, measured variable, high-level controller, interaction scenario, type of control, task and protocol are depicted. ................ 30 2.5 Main limitation identified in the literature review, regarding muscle fatigue estimation models and HRC control strategies. .......................... 39 4.1 Total costs and optimization duration obtained for a spiral trajectory with 10, 25 and 50 gaussian basis functions. ............................... 50 4.2 Total costs and optimization duration obtained for a bell curve trajectory with 10, 25 and 50 gaussian basis functions. ............................. 50 5.1 Participants’ personal information relative to gender, age, height and weight. ...... 59 5.2 Hyperparameters explored. .............................. 74 5.3 Best 10 unidirectional LSTM models considering F1-score. The model with the best test results is represented in bold. ............................. 76 5.4 Best 10 bidirectional LSTM models considering F1-score. The model with the best test results is represented in bold. ............................. 77 xiv
List of Tables 5.5 Best 10 LSTM with Time-attention models considering F1-score. The model with the best test results is represented in bold. ........................ 78 5.6 Best 10 MLP models considering F1-score. The model with the best test results is represented in bold. .................................. 79 5.7 Best 10 CNN models considering F1-score. The model with the best test results is represented in bold. .................................. 79 5.8 Hyperparameters, test time and test metrics of the best model of each architecture implemented. ..................................... 80 5.9 Test metrics per class for the model with the highest F1-score (BiLSTM). ........ 82 6.1 Description of each topic present in ROS graph. .................... 88 A.1 Hyperparameters and validation metrics of the best 10 unidirectional LSTM models, in the epoch with the lowest loss. ............................115 A.2 Hyperparameters and validation metrics of the best 10 BiLSTM models, in the epoch with the lowest loss. .................................116 A.3 Hyperparameters and validation metrics of the best 10 LSTM with Time-attention models, in the epoch with the lowest loss. ...........................116 A.4 Hyperparameters and validation metrics of the best 10 MLP models, in the epoch with the lowest loss. ....................................116 A.5 Hyperparameters and validation metrics of the best 10 CNN models, in the epoch with the lowest loss. ....................................117 xv
Acronyms AFNet Attention Frequency domain Network. 24 ATNet Attention Time domain Network. 24,70 BiLSTM Bidirectional LSTM. xv,69,74,77,80–82,84,89,104,105,115,116 CMA-ES Covariance Matrix Adaptation. 47,48 CNN Convolutional Neural Network. xii,xv,14,22,24,41,69,73,74,76,79–81,104,115,117 cobot collaborative robot. x–xiii,2,3,7,20,30–39,42,43,48–51,54,55,57,84,85,88,89, 92–100,104–107 CWT Continuous Wavelet Transform. x,17,18 DL Deep Learning. 6,22,24,41–43,58,60,65,69,83–85,88,89,91–94,100,104–106,115 DMPs Dynamical Movement Primitives. v,vi,x,xi,4–6,30–32,37–40,42,43,45–57,104–106 DoFs Degrees of freedom. 31,46–48,56 ELM Extreme Learning Machine. 13,23 GAP Global Average Pooling. 70 GPR Gaussian Process Regression. 20 GRU Gated Recurrent Unit. 13,23 HRC Human-Robot Collaboration. v,x,xii,xiv,2–7,20,30,32,34,36,38–40,42,44,84–86,92, 103,104 xvi
Acronyms iEMG integrated EMG. 25 IMU Inertial Measurement unit. 11,26,27 KNN K-Nearest Neighbor. 24 LfD Learning from Demonstration. 36,39,47 LR Learning Rate. 74,78,84 LSTM Long short-term memory. v,vi,xi,xiv,xv,14,22–24,26,41,69–71,74,76–78,80–82,104, 115,116 LWR Locally Weighted Regression. 30,32 MDF Median Frequency. x,15–18,23,25,30,65 MFFNet Multidimensional Feature Fusion Network. x,13,24,25 ML Machine Learning. 45–47 MLP Multilayer Perceptron. xv,13,23,41,69,72,74,76,79–81,104,115,116 MPF Mean Power Frequencies. 15,23,25 MU Motor Unit. 9,15 MVC Maximal Voluntary Contraction. 11,17,19,88,92 PID Proportional-Integral-Derivative. 37 PRISMA Preferred Reporting Items for Systematic Reviews and Meta-Analyses. x,7,8 PSD Power Spectral Density. 15,17 RMS Root Mean Square. 15,16,23,25,47,65,93 RMSE Root Mean Square Error. x,xi,50–52,104 ROS Robot Operating System. xii,xv,48,57,85,87,88,90,91,104,105 RPE Borg Rating of Perceived Exertion. 11,13 xvii
Acronyms sEMG Surface Electromyography. v,vi,xi,xii,2–4,7,9–19,21–24,27,30,41,42,58–61,64–66, 69,72,84,85,88,89,91,93,103,105 STFT Short-Time Fourier Transform. x,15,17,18,25 SVM Support Vector Machine. 13,14,21,22,24,25 WRMSDs Work-Related Musculoskeletal Disorders. v,1,2,7,27,38,40,41,91,100,102–104 xviii
Chapter 1 Introduction This manuscript presents the work developed in the scope of the fifth year of the Integrated Master’s in Biomedical Engineering, at University of Minho. The research proposal is entitled “Muscle fatigue and task quality management control strategies for HRC” and was developed in the Biomedical & Bioinspired Robotic Devices Laboratory (BiRD LAB) at the Center for MicroElectroMechanical Systems (CMEMS) established in University of Minho. 1.1 Motivation and Problem Statement The prevalence of Work-Related Musculoskeletal Disorders (WRMSDs) are increasing over time and are a huge problem in modern societies as they affect workers’ quality of life and lead to productivity loss and early retirement. This problem has a special incidence in manufacturing industries where production processes have high physical demands on their workers.[1] Musculoskeletal disorders represent 68% of all occupational diseases and, with a noticeable increase of approximately 20%/per year from 1994 to 2007 [2]. In European industries, work absenteeism is reported in more than 50% of employees affected by WRMSDs, which is significantly higher than, for instance, workers infected by the influenza virus (10–12%). Compared to other health problems, WRMSDs implied that employees were absent from work for a longer period of time. Furthermore, this problem was responsible for permanent incapacity in 60% of all reported cases [3]. Only in Portugal, the percentage of reported work-related upper limb pain was around 30% [4]. According to [5], in the United Kingdom, during 2021, half a million workers suffered from WRMSDs, 45% of them with upper limb or neck injuries, 16% in lower limbs and 39% on the back. 1
Chapter 1. Introduction The economic impact of work-related musculoskeletal disorders in Europe is estimated at EUR 240 billion, equivalent to 2% of gross domestic product [3], [4]. Musculoskeletal disorders are responsible for 40-50% of the costs of all work-related health issues [4]. These costs are due to health insurance, lost working days and lost productivity. In fact, in 2021 in the UK, 30.7 million working days were lost due to work-related illness and injuries in the workplace [5]. Furthermore, according to the latest European Working Conditions Survey, in 2010, 35.6% of European workers missed between 1 and 15 days of work due to WRMSDs, 7.5% stayed away from work for more than 15 days and 39.2% went to work despite not being at full capacity to perform their tasks [4]. In the Netherlands, it is estimated that WRMSDs caused by muscle fatigue, due to repetitive effort, have a cost of €2.1 billion each year, of which EUR 808 million are attributed to productivity losses [4]. Thus, it becomes emergent to reduce WRMSDs and its causes, since, as European Commission’s Health Strategy states, ”Health is important for the well-being of individuals and society, but a healthy population is also a prerequisite for economic productivity and prosperity” [4]. To minimize WRMSDs, improve workers’ well-being and achieve safer manufacturing workstations with less risk of injuries related to the task performed, more developed, modern and efficient tools are required. For this, collaborative robots (cobot) can be leveraged. At the moment cobots only co-exist with humans. However, it is important to start thinking about hybrid collaborative workstations that join human workers with robots’ co-workers, i.e. a Human-Robot Collaboration (HRC), offering a personalized workspace for each worker, improving their health, and allowing healthy ageing [6]. Collaborative robots can also be useful to improve the performance of a task, ensuring the product quality [7], by learning the correct manner to execute a task and assisting the worker when he is performing the task incorrectly. In fact, evidence shows that fewer defects were detected in production when the operator performed the tasks with a cobot able to assist if the task was not being performed correctly [7]. One of the main causes of musculoskeletal disorders in industry is muscle fatigue [8], which affects 35% of European workers [9], 22.8% concerning the upper body [4]. Taking this into account, collaborative robots should include a control strategy to manage muscle fatigue, prevent or minimize it, during HRC tasks. For the cobot to be able to manage the operator’s fatigue it is necessary to monitor the muscle activity, in real-time, and estimate the muscle fatigue. Surface electromyography (sEMG) stands out as the most used sensor to measure muscle activity, which changes with muscle fatigue. Further, sEMG reflects the functional status of the nerves and muscles and allows a non-invasive and real-time measurement [10]–[12]. Researchers have already started to address Human-Robot Collaboration. However, few focus on 2
Chapter 1. Introduction muscle fatigue mitigation [13]–[16], and most control strategies only focus on the monitorization of one muscle, which, although they allow it to rest for a period of time, it is activated again, leading to a cyclic pattern where the same muscle is fatigued and subsequently rested [13], [15]. Furthermore, almost all existing control strategies that address fatigue management are based on models that use global threshold values, assuming that above a determined value the muscle is fatigued and the cobot needs to assist, which makes the method subject-dependent [13]–[16]. Currently, researchers have been proposing several methods to assess muscle fatigue, however, there is a huge limitation of models that can provide reliable information in real-time about muscular fatigue [1]. Another limitation of existing models is the fact that they detect that a subject is fatigued when he is already in that state, which does not allow the development of preventive interventions for muscle fatigue. The upcoming Industry 5.0 focus on mass product customization. Therefore, it demands flexible, agile, and quickly changeable workstations that can adapt to the production changes [17]. However, if a process is continuously changing, different expertise is required from the human workers. As a consequence, this can impact production quality and productivity, since inexperienced workers need time to learn and adapt to different processes, specially if they are complex. Human-robot collaboration is an enabling technology that joins humans and robots, leveraging robotics’ precision and strength to make human capabilities more efficient. HRC has shown a direct and significant impact in manufacturing applications as collaborative robots can increase the productivity and be useful to improve the performance of a task, ensuring the product quality [18]. In this manner, there is a need to focus on the development of a cobot’s control strategy capable to manage muscle fatigue and product quality and, in a fatigue estimation model that is independent of the subject and able to recognize fatigue before the muscle is fatigued so that preventive measures can be taken. This proposal aims to pursue these limitations and contribute to the state-of-art with methods to estimate and prevent/minimize muscle fatigue, in a human-robot collaboration framework with a control strategy to manage the task quality and the fatigue of the human partner. 1.2 Goals and Research Questions This proposal’s main goal is to develop a HRC control strategy for fatigue management, to prevent or delay the onset of muscle fatigue of the human partner. Muscle activity measurements obtained from sEMG acquisition will feed a muscle fatigue detection model to grant the cobot awareness 3
Chapter 1. Introduction of the human partner’s fatigue state and allow it to assist accordingly. Furthermore, this work also intends to implement a task quality management strategy to improve productivity and product quality in a collaborative task. In order to reach the aforementioned goals, the following objectives must be accomplished. Objective 1: A literature review of i) muscle fatigue estimation models, ii) HRC control strategies for muscle fatigue and task quality management. This research will consider the muscles analysed, the task performed and the protocol used during the collection of sEMG data, the ground truth used in the neural network models, the performance achieved and the limitations associated with each proposed study. Chapter 2will reveal the obtained results. Objective 2: Design a learning-based control strategy to improve productivity and product quality, while at the same time, decreasing the learning curves of inexperienced workers. This is present in Chapter 3and 4. Objective 3: Delineate a protocol for acquiring and labeling electromyography data that will feed the muscle fatigue estimation model; Identify the processing to be applied on raw data. This is outlined in Chapter 5. Objective 4: Develop a real-time fatigue estimation model based on sEMG data; Explore the influence of the neural network’s hyperparameters. This is depicted in Chapter 5. Objective 5: Develop a Neural Network based fatigue management control strategy to provide realtime personalized assistance to the worker, with the aim to manage and prevent or delay the onset of muscle fatigue during the execution of a human-robot collaborative task. This is addressed in Chapter 6. Objective 6: Validate the implemented control strategy to prevent muscle fatigue by benchmarking the HRC task execution with and without the fatigue management control. Aims to provide a proof-of- concept of the prototype. This is described in Chapter 6. The outlined objectives will allow answering the following research questions: •Research Question 1 (objective 2): Can DMPs learn and generalize trajectories effectively, thus presenting a potential solution for the development of a quality management control strategy? •Research Question 2 (objective 4 ): How well can a Deep Learning model estimate fatigue and can the fatigue estimation model be subject-independent? •Research Question 3 (objective 5 ): Can a collaborative control strategy effectively manage muscle fatigue and increase task endurance during repetitive tasks? 4
Chapter 1. Introduction 1.3 Contribution to Knowledge The main contributions of this dissertation to knowledge are: •Contribution 1: A literature review on muscle fatigue estimation models and control strategies for HRC, focusing on muscle fatigue management and task quality enhancement. •Contribution 2: Study of DMPs ability to learn from demonstration and generate a trajectory. Validation of DMPs performance with UR10e collaborative robot. •Contribution 3: A electromyography dataset, collected with 13 participants, performing exercises that activate upper body muscles. Ground truth of muscle fatigue level, with 3 classes. •Contribution 4: Neural network architecture able to estimate two fatigue levels, non-fatigue and fatigue. Performance evaluation of different hyperparameters. •Contribution 5: A control strategy to prevent muscle fatigue during a collaborative task. Validation with UR10e collaborative robot. The developed work allow the publication of the following conference paper: •A. V. Boas, J. André, S. M. Cerqueira and C. P. Santos, ”A DMPs-based Approach for Human- Robot Collaboration Task Quality Management,” 2023 IEEE International Conference on Autonomous Robot Systems and Competitions (ICARSC), Tomar, Portugal, 2023, pp. 226-231, doi: 10.1109/ICARSC58346.2023.10129609. 1.4 Manuscript Outline This manuscript is organised into seven chapters: Chapter 2addresses the state-of-the-art of muscle fatigue detection models and control strategies to prevent muscle fatigue and ensure quality task performance in human-robot collaboration. The limitations of the existing studies are also addressed and critically discussed. This chapter aims to achieve Objective 1 and represents the Contribution 1. Chapter 3delineates the strategy to solve the stated problem. Outlines the required systems, and describes the proposed approach. 5
Chapter 2. Literature Review Wang et al. (2020) [27] sEMG 2000 Hz Wavelet packed threshod denoising algorithm lower body muscle pedaling on a cycle ergometer - pedaling rate within range of 60-70 r/min; -test terminated when participant was unable to maintain a pedaling rate above 60 r/min; -pulmonar ventilation, oxygen uptake, carbon dioxide were measured during test, using a portable gas analyzer Wang et al. (2021) [28] sEMG 2000 Hz Wavelet packed threshod denoising algorithm lower body muscle pedaling on a cycle ergometer - pedaling rate within range of 70-75 r/min; -test terminated when participant was unable to maintain a pedaling rate above 70 r/min; - ventilation volume, oxygen uptake, carbon dioxide were collected during the test. Chen et al. (2021) [29] sEMG 1000 Hz -signal slices that contain fewer sEMG and more noises are considered useless data. -signal slices that contain sEMG in the majority and fewer noises are considered useful data Biceps (target muscle of fatigue detection); Brachioradialis (auxiliary muscle) hold and pick a dumbbell up and down - execute the task with the right arm repeatedly until feel it hard to accomplish fluently; -collected sEMG signal from target muscle and the auxiliary before and after they get fatigued. N/M - Not Mentioned 12
Chapter 2. Literature Review Table 2.3: Detailed information about neural network models under study. Reference, Architecture, Input data, Output, Ground Truth, Dataset, Dataset Split and metrics are addressed. Reference Architecture Input data Output Ground Truth Dataset Dataset Split Metrics Accuracy (%) F1-Score(%) Papakostas et al. (2019) [21] Linear SVM;SVMRBF; Gradient-Boosting (GB); Extra-Trees (ET); Random Forest(RF) Time and spectral domain features 2 classes: 0- Non-fatigue; 1 - Fatigue User-reported binary indicator of fatigue, 0 to non-fatigue and 1 to fatigue 10 male and female subjects Leave-1-out E1: 1 subject test, rest for train E2: 1 exercise from all subjects for test, rest for train E3: 1 subject for test and train E4: 1 exercise from all users for train and test N/M E1 best model: GB= 70.4% E2 best model: SVM= 71.7% E3 best model: ET= 77.8% E4 best model: GB=76.6% Feng et al. (2022) [22] GRU 5 Time and 4 frequency domain features 3 classes: 0- Non-fatigue, 1- Transition-to-fatigue; 2- Fatigue - Samples whose tail point before the critical point- Non-fatigue; - Starting point after the critical point: Fatigue; - Rest of the samples: Transition-to-fatigue 8 healthy male subjects Ratio of [6:2:2] for train, validation and test. 98.42% (test set) 99.04% (test set) Zhang et al. (2021) [23] MFFNet Filtered Raw data Dataset 1: 4 classes 0- Non-fatigue; 1- Low-fatigue; 2- Med-fatigue; 3- High-fatigue Dataset2: 2 classes 0- Non-fatigue; 1- Fatigue Dataset1: N/M Dataset2: user-reported binary indicator of fatigue (0: non-fatigue; 1: fatigue) Dataset1: 2 healthy subjects Dataset2 [21]: 10 healthy subjects Mixed Experiment: Train set and Test set contain part of the data of all subjects; Cross-user Experiment: 1 user for test and the rest for train. Mixed Experiment: Dataset1: 96.45% Dataset2: 78.25% Mixed Experiment: Dataset1: 96.49% Dataset2: 77.03% Krishnamani et al. (2021) [11] MLP and ELM Geometric features 2 classes: 0- Non-fatigue; 1- Fatigue sEMG of first curl: Non-fatigue; last curl: Fatigue 58 subjects (3 female, 55 male) 10-fold cross-validation ELM classifier: 94.09% MLP classifier: 91.44% ELM: 93.75% MLP: 91.05% Terracina et al. (2019) [24] SVM Time-frequency domain features 3 classes: 0- Non-fatigue; 1- Transition-to-fatigue; 2- Fatigue 6-20 RPE: 6-11 (Non-fatigue); 12-16 (Transition-to-fatigue); 17-20 (Fatigue) 13 healthy male subjects 10-fold cross-validation single-subject: 98.50% across all subjects: 99,1% N/M Jiang et al. (2022) [25] Spatial-temporal attention-based Transformer True motion signals and forecasted motion signals 10 classes (fatigue levels) After each exercise, each participant was requested to rate how tired they were on scale 1-10, with 10 being ”you can’t stand up anymore” Real dataset [25]: 12 healthy adults Simulated dataset [26]: 43 male and 7 female virtual human body (OpenSim) simulated and experimental data for train; held-out experimental data for validation 83.50% (test) 82% (test) 13
Chapter 2. Literature Review Wang et al. (2020) [27] CNN-SVM Raw sEMG signal denoised by Wavelet threshold 2 classes: 0- Normal; 1- Fatigued - Anaerobic thresold - V-slope method to calculate Ventilation threshold (VT) based on slopes of oxygen uptake and carbon dioxide volume curves. -sEMG signal divided into non-fatigue and fatigue at the time corresponding to the VT. 20 healthy subjects (14 men and 6 women) 16 participants for train; 4 participantes for test 83.51% N/M Wang et al. (2021) [28] LSTM Time-frequency domain features 2 classes: 0- Non-fatigue; 1- Fatigue - V-slope method to calculate Anaerobic threshold (AT) based on slopes of oxygen uptake and carbon dioxide volume curves. -sEMG signal divided into non-fatigue and fatigue at the time corresponding to the AT. 20 healthy males subjects (training,validation,testing) (70%, 10%, 20%) (60%, 10%, 30%) (50%, 10%, 40%) (70%,10%,20%)- 95.18% (60%,10%,30%)-92.24% (50%,10%,40%)-89.36% N/M Chen et al. (2021) [29] LSTM-Attention useful Raw data (10000 slices of 300 data points) 2 classes: 0- Non-fatigue; 1- Fatigue - labels manually set, when collecting data; - slices collected when muscles are in fatigue labeled with array [1,0]; -slices collected when they are not in fatigue label with [0,1]. 10 subjects age from 23 to 55 training set: 3500 slices test set: 1500 slices 90.4% (test set) N/M N/M - Not Mentioned; E1- Cross-User Evaluation ; E2-Cross-Exercise Evaluation; E3- Single-User Evaluation; E4- Single-Exercise Evaluation 14
Chapter 2. Literature Review 2.2.1 Traditional sEMG-based indicators During contractions, metabolic changes in the muscle affect the propagation of action potential. These changes result in a progressive reduction of muscle fiber conduction velocity, which is defined as the propagation velocity of depolarization along the muscle fiber [30]. This reduction is one of the main causes of the changes occurring in the sEMG’s amplitude and spectral variables during fatigue [30]. Therefore, muscle fatigue evaluation is typically conducted by comparing sEMG indices such as, root mean square (RMS), median frequency (MDF), and mean power frequencies (MPF). To overcome fatigue, the central nervous system tries to increase the impulse that causes already recruited motor units to fire more quickly and recruit new ones [31]. As fatigue increases, the muscle fiber conduction velocity decreases, the firing rate of MU is slower and this causes a decrease in MDF or MPF and an increase in RMS [31]. In an attempt to analyse changes caused by fatigue in muscle activity and sEMG signals, Ebied et al. [10] investigated the RMS and MDF methods by performing an amplitude and spectral analysis, respectively. The participants were requested to stand with their elbow flexed to a 90 angle, handling a load on their right hand. sEMG was recorded continuously for 120 seconds to reach fatigue. The sEMG envelope for each channel ( the Myo-armband sampled 8 sensors) was computed and the signal was segmented into one second epochs. The RMS was extracted for each epoch, using the following equation, RMS =v u u t 1 N N X i=1 x2 i, where xiis the ith sample of the signal and Nis the number of samples. To calculate the MDF the signal was segmented into one second epochs and the spectrum for each one was computed using Short-Time Fourier Transform (STFT), as follows: ZMDF 0 P(f)df =Zfs/2 MDF P(f)df, where P(f)is the power spectral analysis density (PSD) of the epoch and fsis the sampling frequency. The signal acquired during the static task presented a positive RMS slope, since sEMG amplitude usually increases gradually with time as fatigue level increases, as the recruited MU usually increases to compensate for the inactive one. The MDF slope was negative, indicating a shift of the PSD towards lower frequencies as the fatigue builds up. This behaviour is attributed to the decrease in muscle fiber conduction velocity. The authors also verified that two participants presented the least frequency shift compared to the others, which suggested that these two subjects would be less susceptible to fatigue. However, they 15
Chapter 2. Literature Review had a significant change in RMS values. This results showed that MDF results are unreliable as a final fatigue indicator and that RMS should be included in the analysis to ensure a better precision. Muscle fatigue has mostly been studied offline, where sEMG signals are first recorded and then analysed on a computer. However, to serve as a preventive measure and manage it, signal processing and muscle fatigue analysis must be performed in real-time by a device capable of providing immediate feedback to the user [1]. Kanal et al. [20] proposed a real-time fatigue detection algorithm that extracts median frequency from the raw sEMG and calculates it with a window of 0.125 seconds. The fatigue was detected by the median frequency slope (a decrease in the slope value indicates a drop in the MDF) and to avoid noise it was calculated over a window of 5 samples. To identify fatigue the authors considered a window of 40 samples (5 seconds). If within these 40 samples no slope value exceeded the first point in the window, that point was considered the onset of fatigue. On the other hand, if within that window there was a greater slope, the window restarts with the new higher point (Figure 2.2). There is some research on how to quantify fatigue, but validating fatigue accuracy is difficult. To validate the accuracy of the proposed fatigue detection algorithm, Kanal et al. [20] analysed the temporal error with respect to subjective fatigue, i.e., the time when the subjects started to feel fatigued was marked (time of subjective fatigue), and compared to the time when the system detected fatigue. For the system to be valid, the two time-points should be similar. To verified this an Equivalence Test, Paired Two One- Sided Tests was implemented. One part of the test checked if the difference between the means of the two time-points was lower than the higher time threshold (set to +10s in this study), while the other part checked whether the difference was higher than the lower time threshold (set to -10s in this study). The results obtained showed that for the shoulder flexion exercise the difference between the time of subjective fatigue and the time detected by the system lies within the defined range, with a mean absolute error of 9.444 seconds. However, for the shoulder abduction and elbow extension exercises, the test results were not statistically significant and it was not possible to verify whether the difference in the mean value was within the range. The mean absolute error obtained for these two exercises was 12.646 and 15.311 seconds, respectively. 16
Chapter 2. Literature Review Figure 2.2: Representation of fatigue detection steps. Step 1- Collection of raw data; Step 2- Extraction of the median frequency; Step 3- Extraction of the slope of the MDF and fatigue detection. Adapted from [20] In a different perspective, Boyer et al. [1] proposed a real-time algorithm to estimate muscle fatigue, using a median frequency of sEMG power spectrum density obtained with Continuous Wavelet Transform (CWT). The time-frequency analysis for fatigue detection has been performed mainly with STFT. However, this method brings some difficulties once STFT requires a quasi-stationary signal, and although in isometric contraction sEMG signals are considered stationary, in daily life activities and work tasks the muscle presents dynamic contractions, which means that sEMG signals are not always stationary. On the other hand, CWT is capable to represent the signal in the time-scale space and non-stationary signals are usually analysed using time-scale representation or time-frequency distribution techniques. To find out if CWT was a better method, the results obtained with it were compared to those acquired with the traditional method. The authors divided the algorithm into 3 phases. The first phase is relevant in the dynamic task, where the muscles are not always contracted. The algorithm used a 10% of the envelope’s maximal magnitude, obtained in the calibration (where the participants performed three MVC), as a threshold and verified if the raw data was valid (above that threshold), that is, if the muscle was contracted. Invalid samples were removed from the signal since the muscle was not contracting and in this case, the MDF was insignificant. Secondly, the CWT and STFT were computed on the signal and the median frequency was extracted. To observe its decrease, the STFT had to be applied over small consecutive time windows. The CWT gives an estimate of the PSD for each point within the window rather than, getting a power spectrum for the entire window like STFT. In the final phase, the authors performed a moving average in order to smooth the resulting MDF and reduce the odds of getting false fatigue alerts. The participants did static/isometric (lift their dominant arm to 90°of abduction) and dynamic (0°to 90°abudctions) tasks with different loads. The results obtained indicated that MDF slopes were steeper for heavy tasks than for light ones, which was in line with expectations and allowed validating the algorithm. Slopes were also significantly steeper for static tasks than for dynamic. The authors justified this result 17
Chapter 2. Literature Review with the fact that the duty cycle is lower for dynamic tasks, as the muscle is not in constant contraction. The CWT proved to have higher resolution time-frequency representation than the traditional method. Also, the evolution of the fatigue indicator of the CWT method was smoother than with the STFT, as can be verified by Figure 2.3 (a). The results also suggested that, the integration of the muscle contraction detection model allowed to overcome issues associated with periods when the muscle was not contracting during dynamic tasks, as can be seen in Figure 2.3 (b), the fatigue indicator was smoother with muscle contraction detection module than without it. (a) (b) Figure 2.3: (a) Evolution of fatigue indicator obtained with CWT (yellow) and STFT (red). (b) Evolution of fatigue indicator with muscle contraction detection module (yellow) and without (red), for a dynamic task. Adapted from [1] From a different perspective, some researchers explored the Galvanic Skin Response as a fatigue indicator and verified that skin conductivity increases with human fatigue [32], [33], [34], [35]. This is due to when fatigue is reached, the secretion of the sweat glands increases and consequently increases the flow of electric current. 2.2.2 Model-based techniques for fatigue detection As seen so far, analysing the changes of the sEMG signal in the frequency-domain is a efficient tool to evaluate muscle fatigue. It has been shown that the mean amplitude of sEMG increases with muscular fatigue and the mean frequency of the spectrum decreases [16]. The use of frequency-domain is an approach that works well for constant muscle effort, but it may be unreliable for dynamic tasks where muscle effort is changing, as the changes are likely to affect the observed median frequency dynamics. Although Boyer et al. has proposed an algorithm to overcome this problem, it is difficult in these cases to find a suitable sampling window to track changes in MDF throughout the execution of the task. To resolve this issue, sEMG model-based techniques have been proposed instead [16]. Peternel et al. [13] proposed a human fatigue model based on the resistor-capacitor circuit dynamics, 18
Chapter 2. Literature Review where the capacitor voltage is equivalent to fatigue, the resistor conductance is equal to the current effort of the muscle and the capacitance is identical to the capacity of the muscle endurance. The sEMG signals were processed (filtered and rectified) and normalized by maximal voluntary contraction (MVC). The relation between the processed sEMG and muscle activation level was defined, as follows: 0≤Ai(t) = EMGi(t) MV Ci ≤1, where Aiis muscle activation level for each muscle i. The authors defined the muscle fatigue assessment model as: Vi(t) = 1 −e−fGi(t) Cidt, Gi(t) = Ai(t), where Vi[0 1] represents the fatigue index. Girepresents the current effort dynamics and Ciis the fatigue-related capacity of the muscle i. The higher the Cis, the more effort Gis required for the muscle to reach fatigue. To obtain the fatigue capacity, the participants were instructed to produce a reference muscle activity by exerting muscle force until they could not endure it any longer. The time, Tend, that the participant could endure each reference effort, Gref , was measured. The fatigue capacity is given by the following equation: C=−Gref ·Tend log(1 −0.993), This work used two dimensionless reference efforts, 0.2 and 0.5, as well as the assumption that full capacity is reached at V= 0.993. The final parameter Cfor a muscle iwas obtained by an average value of Cfor each reference. This study only addresses the charging of C, where the muscle is considered fatigued when Vireaches 70%. In [15], the authors expanded the model to include discharging of Cto model muscle recuperation when the effort is reduced. The fatigue estimation model was defined, as: dVi(t) dt = (1 −Vi(t)) Gi(t) Ciif Ai(t)≥Ath −Vi(t)R Ciif Ai(t)< Ath , Ris the recovery rate, which defines how quickly the muscle can recover the force after the fatigue, defined as 0.5 by the authors. Muscle activity threshold Ath determines the use of either fatigue or recovery mode. Contrary to [13], this work sets the estimated fatigue threshold to Viequal to 30%, and the Ath to 0.1, 19
Chapter 2. Literature Review responsible for triggering the recovery mode. The previous model was modified in [14] and [16] to include muscle forces instead of muscle activities. It should be noted that muscle activity and muscle force in a certain operation range are linearly approximated. The authors implemented the model in two stages, an offline stage, where they used an OpenSim’s dynamic upper limb musculoskeletal model to estimate the corresponding muscle forces, with a Static Optimisation method, and create a training dataset. The muscle forces were calculated as follows: fm=J−T m(qh)(JT h(qh)f+gh(qh)), and fmderives from the following equations: τh=JT h(qh)f+gh(qh), τh=JT m(qh)fm where τhis the arm joint torque and fis the endpoint force vector. The Static Optimization to obtain the estimated muscle forces was formulated as: argmin aT mam, JT m(F0 mam) = τh, where F0 mam=fm. Then, a Gaussian Process Regression (GPR) was implemented to learn the relationship between the arm join configuration (qh) and endpoint force (f). The input was the training dataset X and the output was the training dataset Fm, which includes the viable solution of muscle forces (fm). In the online stage, the encoded GPR receives the interaction force and human arm configuration, measured by the cobot sensory system (force sensors and Optitrack™ which is a motion capture system) to estimate the muscles forces at each time sample, during the HRC task. From this model came out the best muscle force prediction, fm∗as follows: fm∗=K(x∗,X)[K(X,X) + σ2 nI]−1Fm, 20
Chapter 2. Literature Review The predicted muscle forces, fm∗, were then used in the muscle fatigue model, defined as follows: dVi(t) dt = (1 −Vi(t)) fmi(t) Ciif fmi(t)≥fth −Vi(t)R Ciif fmi(t)< fth , fmi is the estimated muscle force and is used to estimate muscle fatigue. The higher the Ciis, the more effort, fmi, over time takes for fatigue to occur. The main difference between this model and the previous one is that, while this one estimates fatigue based on muscle force, the others detect fatigue based on the muscle activity obtained from the sEMG. The advantage of the muscle activity-based model is that it can provide information on the effort resulting from muscle co-contraction, which can not be obtained through the measured force at the endpoint or measured torque in the joint. [13] Nevertheless, these methods are subject-dependent and require calibration for each worker. The threshold values used for the model, in addition to being dependent on the subject, are ambiguous and there is no reasonable justification for choosing them. 2.2.3 Muscle fatigue detection based on machine/deep learning models Based on the literature review, it can be seen that the traditional methods to estimate fatigue require complex and time-consuming operations and, sometimes, estimating muscle fatigue is confused with monitoring muscle activity. These methods also fail in real-time performance and have low accuracy in detecting muscle fatigue [22]. Besides, the evolution of muscle fatigue varies between subjects and even in the same subject for different trials, which complicates the definition of a global muscle fatigue threshold [24]. To abstract these differences in sEMG feature values, traditional machine learning algorithms and neural networks have started to be used by researchers. Papakostas et al. [21] evaluated the performance of five traditional machine learning models, linear SVM,SVM with an RBF kernel, Gradient-Boosting, Extra-Trees and Random Forest. The authors initially verified that original fatigue predictions reached an average F1 lower than 70%. To overcome this, they applied a post-processing algorithm to the original prediction. A median filter of size K1 was applied to the original predictions made by the classifier. The labels were gathered into groups of M and, if in the N past groups the total number of samples that have been identified as fatigue exceeds a specific threshold, then the subject was classified as fatigued. The hyperparameters implemented were: K1=3, K2=11 (size of the median filter applied on the original signal in the fatigue detection framework), M=3, N=2 and threshold=0.6. In this work, four experiments were performed, a cross-user evaluation (E1), 21
Chapter 2. Literature Review els, thereby enhancing the effectiveness of fatigue estimation algorithms. Nonetheless, the data split employed, in general, consider the complete dataset. This resulted in both the test and training sets containing segments of data from the same subject. This might explain why the performance metrics are consistently high, frequently exceeding 90%. 28
Chapter 2. Literature Review 2.3 Control strategies for Human-Robot Collaboration This section presents the main aspects of the analysed studies. Two type of control strategies were analysed, namely, fatigue management controllers and learning-based controllers. Table 2.4 presents the studies included in this literature analysis, some of them have already been presented in the literature review of fatigue estimation models. They consider: (i) low-level controller, (ii) modeled variable, (iii) measured variable by sensors, (iv) high-level controller, (v) interaction scenario,(vi) muscle fatigue or task quality management control,(vii) task and (viii) protocol. 29
Chapter 2. Literature Review Table 2.4: Summary of the studies addressed, regarding HRC control strategies. Reference, low-level controller, modeled variable, measured variable, high-level controller, interaction scenario, type of control, task and protocol are depicted. Reference Low-Level Controller Modelled Variable Measured Variable High Level Controller Interaction Scenario Muscle Fatigue or Task quality control ? Task Protocol Peternel et al. (2016) [13] Hybrid force/ impedance Stiffness Muscle activity LWR, encoded by DMPs Co-manipulation Muscle fatigue Sawing cobot takes over the production of the task when Vi reaches the threshold (Vth=70%). Peternel et al. (2018) [15] Hybrid force/ impedance Stiffness Muscle activity DMPs Co-manipulation Muscle fatigue Sawing, Polishing cobot takes over the production of the task when Vi reaches the threshold (Vth=30%); Ath was set to 0.1. Peternel et al. (2018) [14] Cartesian Impedance Orientation Force N/A Co-manipulation Muscle fatigue Polishing When Vi reached the Vth=70%, the robot find a new configuration for the object that activates other muscles so that the tired could relax. Peternel et al. (2019) [16] Cartesian Impedance Position / orientation Force N/A Co-manipulation Muscle fatigue Polishing , Drilling Protocol 1: cobot finds the optimal endpoint position where fatigue-related endurance time is maximised. Protocol 2: cobot changes the task execution configuration, when Vi=70% to offload the human muscles which are under fatigue by delegating the task load to the relaxed muscles. Kim et al. (2017) [37] Cartesian Impedance Position Torque angles N/A Co-manipulation Muscle fatigue Manual load handling 1 male subject conducted the object transportation, the object was grasped from two sides by the human. Kanal et al. (2019) [20] Force Force MDF N/A Assistive holding Muscle fatigue Shoulder flexion/abduction; elbow extension 15 male and 5 female participants; sEMG data was recorded from their deltoids; Subjects performed 3 exercises using 2 systems: system 1: without adaptative element; system 2: with adaptative element, triggered when fatigue was detected. Figueredo et al. (2021) [38] N/M Position Torque angles N/A Assistive holding Muscle fatigue Simulated peg-in-hole assembly 5 participants push a tool as hard as possible against a board simulating a peg-in-hole assembly. Grafakos et al. (2016) [39] Variable admittance damping Force/ muscle contraction N/A N/M Task quality Steady-hand cooperation Operator tries to guide a ring through a wire path without touching it. Repeat the task for a number of times; Subjects were separated into 2 control groups of 10. One group is aware of the basic operational principles of each method, the other group is not. Deng et al. (2018) [40] Admittance Position Force Gaussian Mixture Model Assistive holding Task quality Drawing a straight line/ curve Participant guide the robot end-effector to draw a line/curve successfully in the x-y plane. 25 trials, each lasting for around 10s. Data recording rate was 25Hz, which results in 250 sample points for each trial. 30
Chapter 2. Literature Review Kang et al. (2019) [41] Variable admittance damping Force N/A Co-manipulation Task quality Three free motions and two tracking motions Operator starts the cobot from the home position, passes through two reference paths (circular and rectangular) and then moves the cobot to the home position. Operator repeated the task 5 times, with each admittance control method two constant admittance control, with maximum and minimum damping, and one variable admittance control. Kana et al. (2021) [7] Impedance Stiffness Force N/A Assistive holding Task quality Chamfering/ Polishing Two different trials: robot acting as a gravity compensator; as an assistant, using the impedance controller framework Abu-Dakka et al. (2021) [42] Cartesian Impedance Position Torque angles DMPs N/A Task quality Surface Polishing/ wiping and liquid mixing by shacking In the polishing/wiping task, the robot adapts the end-effector orientation and position in order to keep the contact with the surface of the object. In the case of mixing liquids, the robot change the orientation of the endpoint while holding the container with liquids, in a way to produce rapid changes in acceleration. Tasks were executed by a 7-DoFs Franka robot. Lanotte et al. (2021) [43] Impedance Position Joint angle DMPs Assistive holding Task quality Lifting tasks 10 lifting tasks were tested, using a active pelvis orthosis to test the DMPs controller. Yu et al. (2022) [44] Variable impedance Stiffness Force DMPs Co-manipulation Task quality Water pump During the demonstration phase, the human tutor grasps the cobot arm and, drives it to press the water pump device. Operator teaches the cobot how to regulate the stiffness, adopting a high stiffness gain when pressing the pump device and be compliant when not contacting with the water pump. In the reproduction phase cobot conducted three tasks independently. N/M - Not Mentioned; N/A - Not Applicable; V th - Fatigue threshold ; V i- Fatigue index; A th - Muscle activity threshold 31
Chapter 2. Literature Review 2.3.1 Control strategies to manage fatigue To improve fatigue management in HRC tasks some researchers have explored control strategies where the cobot adapts its behaviour based on human fatigue feedback [13]–[16]. Peternel et al. [13] implemented a learning-based algorithm, a hybrid force/impedance controller, and a shared control between cobot and human. Initially, while the muscle fatigue index was below the threshold value (addressed in the previous section) the cobot was compliant and imitates the human partner in the execution of the sawing task, maintaining a low stiffness value. At the same time, the cobot was acquiring the skill of the task execution, observing and learning the human trajectory in order to be able to reproduce it, by itself, when the human’s muscles reached fatigue. The desired trajectory was learnt online by Locally Weighted Regression (LWR) and encoded using Dynamical Movement Primitives (DMPs) as can be verified in Figure 2.6. When the fatigue index reached the predefined threshold, the cobot used the learnt behaviour and took over the control of the task execution. To estimate the task speed, frequency and phase, the cobot used Adaptive Frequency Oscillators. The results suggested that the human effort is much lower with the cobot assistance since the human muscle activity decreased. It was also possible to verify that cobot took over the task realization once its stiffness increased. Figure 2.6: Block diagram summarizing the cobot’s control strategy presented in [13], [45] In another perspective, the authors in [14] implemented a cartesian impedance control and introduced 32
Chapter 2. Literature Review an agonist/antagonistic-based control, based on the hypothesis that when a muscle is fatigued, we can deactivate that muscle and activate the antagonist one. The cobot reconfigured the end-effector orientation in a way that fatigued muscles could relax while muscles with lower levels of fatigue are activated to continue performing the task. The results corroborate with the expected. Initially, biceps brachii had a higher muscle activity and when the fatigue index reached the threshold the muscle activity of the biceps brachii started to decrease, while its antagonist, triceps brachii, started to increase. A better division of muscles into antagonistic groups was explored in [16]. The muscles were divided into two antagonistic groups, and the most suitable combination of muscles, where the overlap between the groups is not considerable, was found by the following equation: γ=min(X + c1,X + c2)·X + (c1⊕c2), cj=X ∧ aji(φ), The vector a(φ) contains the muscle activation levels in different endpoint force directions, c1is the vector with overlapping activity states of the first group and, c2of the second. The algorithm selects the two groups combination with the highest γ, in which the agonistic muscles (which are actived at the same time) have a high overlap, whereas the antagonistic muscles have a low overlap. In order to be possible to change the cobot’s end-effector orientation and switch the active muscle, the feasible ranges of endpoint force directions for each group were defined as follows: G1(φ) = o1∧(¬o2), G2(φ) = o2∧(¬o1), oj=X ∨ aji (φ). G1(φ) contains the range of endpoint force directions that only activates muscles from the first group. The opposite happens in G2(φ) range. Figure 2.7 shows the combination of muscles from the two antagonistic groups obtained by the authors. The results obtained during the collaborative task execution showed that when the first group of muscles (G1) became fatigued, the cobot’s end-effector changed the orientation, activating the second group of muscles (G2) and relaxing G1. 33
Chapter 2. Literature Review Figure 2.7: Suitable combination of muscle for the two antagonist groups. Taken from [16] Kanal et al. [20] explored a cobot’s control in order to reduce the muscular fatigue of patients in rehabilitation exercises. The cobot (Barret WAM) adapts its behaviour as either assistive or resistive, based on real-time estimation of muscle fatigue. Initially, to improve the rehabilitation exercises and while the subjects moved the end-effector from the start position to the final position, the cobot was in the resistive mode and applied a force in the opposite direction. When fatigue was reached, the cobot’s control system was instructed to provide assistive force, to help the subject in performing the exercise with low effort. The results showed that subjects experienced lower fatigue with the robotic rehabilitation system control. To avoid potential injuries due to overloading joint torque, Kim et al. [37] investigated anticipatory cobot assistance in HRC. The best configuration to minimize the overloading torque of the joints was estimated and sent to the cobot, which controls the end-effector position with cartesian impedance control, in a way that the human partner performs the collaborative task in the posture that minimizes human joint overloading. With a similar goal, Figueredo et al. [38] implemented a control strategy to optimize human comfort. The authors combined two metrics to predict human comfortability, one metric based on muscle activation and the other based on ergonomics. A comfortability map of the human workspace was computed, allowing the cobot to select the end-effector position that maximizes human comfort. 2.3.2 Collaborative Robot’s controllers to manage task quality Assisting the human worker to ensure product quality during the execution of his work has already started to be addressed by researchers. Grafakos et al. [39] proposed a variable admittance controller to 34
Chapter 2. Literature Review improve accuracy of collaborative tasks, namely in a steady-hand cooperation task. The cobot’s damping parameter was adjusted, in real-time, based on the co-contraction of the human partner’s arm muscles. The cartesian admittance controller received as input the force applied by the operator and outputs the desired motion for the cobot’s end-effector. When the operator activates his muscles above a predefined threshold, cobot’s damping is increased to a predefined value in order to achieve a more accurate task performance. On the other hand, if the muscles are relaxed and the co-contraction level is below the threshold, the cobot’s damping is reduced. Allowing the human partner to execute the task with higher velocities and with less effort but with worse accuracy. In this case, the cobot was compliant and follows the operator’s motion. Kang et al. [41] also implemented a variable admittance control with the aim of improve the execution time and accuracy of a collaborative task, while enhance the operator’s comfort. Admittance controls are actively used for human-robot interactions, mainly for direct teaching, where the robot moves in consideration of the human partner’s intentions through the utilization of force and torque. The dynamics equation is expressed as: m(¨x−¨x0) + c( ˙x−˙x0) + k(x−x0) = Fext, where m, c, and k represent virtual mass, damping and stiffness respectively. The position, velocity and acceleration are depicted as x,˙x,¨xand Fext indicates the external force. Assumed that: k= 0, x0= ˙x0= ¨x0= 0. the control equation is represented as follows, where Fscorresponds to the value of force/torque sensor: m(¨x) + c( ˙x) = Fs From control equation, we can derive the following relationship: ˙xmax =Fs c As evidenced by the preceding equation, the maximum velocity is proportional to the force and inversely proportional to the virtual damping. Therefore, as observed in figure 2.8, to easily move the robot with the expected force and execute the correct trajectory in the desired direction the admittance parameters are 35
Chapter 2. Literature Review set to a low value, hence leading to low damping. Whereas in the vertical directions (i.e., in the undesired directions for proper trajectory execution), the damping is high, causing, for the same applied force, a lower velocity and consequently a slower response time, resulting in smaller movements in the vertical directions. With the aim of testing the advantage of using variable admittance control, the authors implemented a experimental task using a collaborative robot UR10 from Universal Robot. The task consisted of three free motions and two tracking motions, where the operator starts the robot from the first position, passes through two reference paths and returns to the first position. The trials were executed with two constant admittance controls with maximum and minimum damping and one variable admittance control. The results showed improvements in task completion time and accuracy when performing with a variable control compared to the case in which it was used a constant admittance control. Kana et al. [7] developed an impedance control to enhance the path tracking accuracy in the process of machining. The authors performed a collaborative chamfering task. Initially, the edge to be chamfered was identified. Then, the cobot stiffness was modulated to ensure a low stiffness along the edge, allowing the operator to push the cobot’s end-effector to successfully accomplish the task. In the perpendicular direction to the edge, a high stiffness was implemented to avoid the operator from moving the tool away from the task trajectory. The unskilled operators performed the task with and without the impedance control. The results suggested that the chamfered surface presented fewer defects with the impedance control. Figure 2.8: Scheme of a variable admittance control. Adapted from [41] For the robot to guarantee a correct performance of task, it needs to be aware of the desired trajectory. Learning from demonstration (LfD) is a research field inside HRC where robots learn how to master a skill from human demonstrations [46]. Deng et al. [40] explored a control of a robot in which it can learn human skills from demonstration to provide appropriate assistance. The authors implemented a two layers control, a high-level learning model, and a low-level motion control to allow an exoskeleton robot to achieve a compliant manipulation with the human partner. The Figure 2.9 presents the diagram of 36
Chapter 2. Literature Review the two levels of control developed by the authors. In the learning phase, the robot observes and learns the impedance-based behaviour of the human partner. The trained Gaussian Mixture Model and the estimated parameters were used in the reproduction phase to predict the interaction force. The predicted interaction force was compared to the subject’s actual interaction force, to allow the robot to assist the movement execution by compensating for the difference between them. In the reproduction phase, a lowlevel robot motion control was also implemented. The admittance control receives as input the interaction force and outputs the position of the exoskeleton’s end-effector. If the current interaction force is equal to the expected one, the robot will be compliant with the user. In turn, if the current interaction force is different from the expect one, the robot will assist the movement by exerting an assistive force, equal to the difference between the predicted interaction force and the force exerted by the human partner. The assistive force was calculated by a PID force controller. Figure 2.9: Block diagram of the robot’s control strategy. Adapted from [40] In a different approach, Yu et al. [44] used DMPs to teach the cobot how to perform human-like manipulation skills with respect to trajectory and stiffness based on operator demonstrations. During the demonstration phase, in order to show the desired trajectory of the task to the collaborative robot, the human operator guides the cobot to press a water pump device and teaches how to adjust the stiffness, in order to increase stiffness when it is necessary to press the water pump and to remain compliant when it is not in contact with the device. The DMPs model was used to encode the motion trajectory and the 37
Chapter 3. Strategy Proposal Figure 3.2: Flowchart of the control strategy for muscle fatigue and task quality management in HRC. 3.5 Validation As presented in block 5 of figure 3.1, the proposed control strategies will be validated in laboratory, simulating a industrial task performed in two situations, namely, with and without the controls for managing muscle fatigue and task quality implemented in the HRC framework. To evaluate the impact of the developed work and compare the results in terms of usefulness, ease of use, productivity, a questionnaire (e.g.SUS [49]) will be applied. 44
Chapter 4 Dynamical Movement Primitives for Task Quality Management In order to assess whether the DMPs were a suitable solution to learn and generate a trajectory executed with the collaborative robot, with the final purpose of developing a task quality control strategy capable to decrease production errors and reduce the learning curve of unskilled operators, as outlined in Section 3.3, preliminary studies were conducted. These studies led to the publication of a conference paper [50], and their preliminary results are presented in this chapter. 4.1 Methodology In this section the methodology adopted to test the ability of DMPs is described. 4.1.1 Dynamic Movement Primitives Built upon the bio-inspired concept of Motor Primitives - wherein complex movements can be decomposed into simpler elemental components or building blocks - DMPs propose a form of motor policy representation that borrows contributions from non-linear dynamical systems theory and optimal control to achieve a low-dimensional/parametrizable, stable and versatile framework for robotic control [51], [52]. DMPs have gained popularity in robotic control due to their appealing properties and mathematical tractability, making them prime candidates for ML implementations [53]. Generating control commands through second-order spring damper attractor systems, an additional open-loop forcing term f, defined as a normalized weighted average of multiple basis functions, that codifies a custom parametrizable shape 45
Chapter 4. Dynamical Movement Primitives for Task Quality Management of the motion: τ2¨y=αy(βy(g−y)−˙y) + f(s)(4.1) f(s) = PN n=1 wnΨn(s) PN n=1 Ψn(s)s(4.2) where yis the control variable converging towards the target goal state g,[αy, βy]are damping constants of the system, and τis the temporal scaling parameter. In the case of a discrete motion as studied in this work, basis functions Ψncan be represented by Gaussian curves, centered at cnand with width hn: Ψn(s) = exp −(s−cn)2 2hn(4.3) The phase variable sresponsible for anchoring the Nbasis functions described in eq. (4.2) is provided by a secondary canonical dynamical system: τ˙s= 1 (4.4) which in practice removes any explicit time dependency of the control variable y, and provides flexibility through direct manipulation of shalting, slowing down or speeding up execution. Equation (4.4) represents the simplest implementation of the canonical system as a linear fixed-rate increment; alternatives have been formulated/proposed in the literature exponential and sigmoid curves [53], that fit different application requirements. On the other hand, the temporal scaling constant τallows global time scaling while maintaining the general shape of the movement. Besides their stable and well understood dynamics, DMPs main advantages are as follows: 1) flexibility in representing both discrete and rhythmic trajectories with minimal adjustments; 2) no explicit time dependency (by indexing output on phase instead of time); 3) allowing coupling between different DoFs through a shared canonical system; are 4) time and scale invariant; 5) parameter linearity in wnand a 6) parametrizable nature, both resulting in improved tractability and consequent greater affinity with ML techniques. On top of all these attractive features, several extensions have been proposed in the literature that specialize their use to different control problems encoding torque profiles and stochastic trajectories [53]. Nevertheless, as discussed in the original formulation [51], the most notable aspect of this approach is not in the specific dynamical systems employed, but rather on how the control framework is structured in order to achieve the generality and versatility described. 46
Chapter 4. Dynamical Movement Primitives for Task Quality Management DMPs were used to prescribe a kinematic trajectory to a 6-DoFs UR10 manipulator in a collaborative setting/context, which are then tracked by the robot low-level hardware, in a conventional open-loop trajectory control strategy. One transformation system is used for each DoFs while sharing a single canonical system linearly evolving from 0to 1. 4.1.2 DMPs Learning As described previously, the open parameters wn(i.e. the primitive basis weights) parametrize the DMPs systems generating the joint trajectories, and therefore specify the movement shape. In a multi-DoFs system, W= [w1..K,1..N ]aggregates the individual weights wn,k applied to each of the Nbasis in each of the Kjoints. In order to find Win an automated fashion, ML is often used to match the output of the DMPs controller to pre-recorded reference trajectories, in an offline process often called LfD, which has seen extensive use in similar problems [52]. These reference trajectories are commonly obtained from kinesthetic demonstrations wherein a supervisor guides the robot in a compliant manner. A straightforward approach to implement such a learning strategy is to minimize the cumulative RMS distance C(W, yREF)between the output of the DMPs system yparametrized by Wand the demonstration yREF for the whole duration of the movement: C(W, yREF) = K X k=0 Ck(W, yREF) = K X k=0 T X t=0 q(yW k,t −yREF k,t )2(4.5) where yREF k,0..T and yW k,0..T represent, respectively, the reference sample and the associated output DMPs controller for joint k, as a sequence of commands for each of the Ttime steps that entail the whole duration of the movement. For each of the reference samples, a phase value s0..T is assigned in order to estimate ˙sassuming the input demonstrations represent the full movement. The goal of any LfD strategy thus becomes to find Wbest so that: Wbest =WC(W, yREF)(4.6) In practice, this can be achieved with a large number of optimization techniques, whose benchmark goes beyond the scope of this work. In this particular case, was implemented a Black-Box Optimization (BBO) technique, Covariance Matrix Adaptation - Evolutionary Strategy (CMA-ES) [54], which has been shown to be successful in different complex nonlinear optimization problems as well as, notably, in fitting DMPs systems to demonstrations [55]. Moreover, while not pursued herein, its black-box nature allows the optimization of other extrinsic parameters such the goal states gkand the system damping [αk, βk], 47
Chapter 4. Dynamical Movement Primitives for Task Quality Management or even potentially the number, center and width of each basis Ψn. 4.1.3 Implementation Details The basis functions parameters can be adjusted in order to optimize the learning process. Parameters such as basis amplitude, weights, basis width (hn), basis function number (N) and basis centers (cn) affect the shape of the trajectory generated by DMPs. The damping parameters, that controls the smoothness of the trajectory can also be adjusted, since high damping values result in softer trajectories and low values in more rigid trajectories. Alpha affects the speed at which the system converges to the goal, and high values of alpha tend to generate faster solutions. While beta controls the stability of the response, lower values of it result in more stable solutions. For simplicity and generality, all transformation systems (for each joint) were parametrized with the same number of gaussian basis functions, N= 25, centered at equidistant positions in the [0,1] range with the same width hn, and critically damped with αy= 25 and βy= 6.25. In order to validate the invariant behavior of the DMPs trajectories, the time scaling τ, and the amplitude scaling were varied to study their influence on resulting movement. Initially, the value of τwas set at 1, and then decreased and increased to assess its influence on the convergence to the goal speed. All these presented parameters can be learned resorting to the CMA-ES-based optimizing scheme, however in this work only the weights were learned. 4.2 Experimental Setup The experimental setup consisted of a 6-DoFs collaborative robot UR10e, running a ROS-based control framework. The workflow of the implemented strategy is presented in Figure 4.1. During the experiments the UR10e was set on the manufacturer free-drive mode, allowing it to be easily manipulated. A participant was asked to drive the compliant UR10e following two predefined trajectories, hand-drawn by the research team on a cardboard. These two trajectories consisted on a shape similar to a spiral and a bell curve and are depicted in Figure 4.2. The cobot’s joint states and cartesian end-effector position were published using ROS topics, and saved locally at the cobot’s computer, at a 500Hz rate by the Universal Robots ROS driver. 48
Chapter 4. Dynamical Movement Primitives for Task Quality Management Figure 4.1: Workflow of the implemented strategy. (a) (b) Figure 4.2: Reference trajectories in the cartesian space executed by the participant. (a) Spiral trajectory, (b) Bell curve trajectory. 4.3 Results In this section the results obtained with the proposal strategy for trajectory learning are presented. In addition, the effect of the variation of some parameters in the learning curve are exhibited and, the behavior of the trajectory generated by the DMPs is evaluated when disturbances and signal interruptions are introduced. 4.3.1 Learnt trajectories In order to evaluate the influence of the gaussian basis functions number in the spiral trajectory learning, the basis number was varied (N=10, N=25, N=50) and the total cost from the 6 cobot’s joints 49
Chapter 4. Dynamical Movement Primitives for Task Quality Management calculated as shown in Table 4.1. Similar evaluation was implemented for the bell curve, and presented in Table 4.2. For both trajectories, the optimization costs decrease as the number of bases increases, while the duration of the optimization process raise with the number of bases. From 25 to 50 bases, the optimization cost decreases very slightly, while the duration increases considerably. Table 4.1: Total costs and optimization duration obtained for a spiral trajectory with 10, 25 and 50 gaussian basis functions. Spiral trajectory Basis Number Optimization total cost (rad) Best optimization duration (s) 10 1793 22.597 25 271.8 73.475 50 139 207.94 Table 4.2: Total costs and optimization duration obtained for a bell curve trajectory with 10, 25 and 50 gaussian basis functions. Bell curve trajectory Basis Number Optimization total cost (rad) Best optimization duration (s) 10 325.5 11.131 25 80.9 37.833 50 42.02 111.954 The learnt spiral trajectories in the joint space along with their corresponding RMSE are presented in Figure 4.3. It can be verified that trajectories generated by the DMPs coincide with the reference trajectories, and the RMSE is nearly zero for all 6 cobot’ joints. The learning curves have also been represented for the cartesian space and for the bell curve trajectory as illustrated in Figure 4.4. 50
Chapter 4. Dynamical Movement Primitives for Task Quality Management Figure 4.3: Spiral trajectory learning curves and respective RMSE regression for the 6 cobot’ joints, using 25 gaussian basis functions. The dashed gray line represents the reference trajectory, and the orange line denotes the trajectory generated by DMPs. 51
Chapter 4. Dynamical Movement Primitives for Task Quality Management Figure 4.4: Bell curve trajectory learning curves and respective RMSE regression in the cartesian space, using 25 gaussian basis functions. The dashed gray line represents the reference trajectory, and the orange line denotes the trajectory generated by DMPs. 4.3.2 Temporal and Scale Invariance In order to verify that DMPs remain invariant to temporal and amplitude scaling, τand amplitude scale were manipulated by reducing it to 0.5 and increasing to 2, relative to its original value of 1. Figure 4.5 (a) demonstrates that increasing τresulted in the trajectory converging faster towards the goal and remaining at that value. On the other hand, when decreasing the time scaling, the trajectory converged more slowly than the original. In fact, the original DMPs with τ=1 takes 50 seconds to execute the trajectory, while scaling to τ=2 takes the half time, 25 seconds. When the time scaling parameter is set to τ=0.5, the execution time is twice as long as the original DMPs, i.e., 100 seconds. Analogously, Figure 4.5 (b) shows that increasing the amplitude scaling increases the DMPs amplitude and decreasing the scale decreases 52
Chapter 4. Dynamical Movement Primitives for Task Quality Management the DMPs amplitude. However, for both cases, the DMPs behavior and properties remained unchanged, the same trajectory was executed despite the variations. This confirms that DMPs are indeed time and scale invariant. (a) (b) Figure 4.5: Output of the DMPs controller in the, cartesian space, under: a) different temporal scaling conditions, b) different amplitude scaling conditions. 4.3.3 Disturbances To evaluate the behavior of DMPs when a perturbation is introduced, the signal of the DMPs was displaced from the expected trajectory, to Y= -0.5 m and Z= 1.2 m at 20 and 45 seconds, respectively. As shown in Figure 4.6, the DMPs signal has converged to the correct trajectory position. Furthermore, the DMPs signal was intentionally interrupted for 5 seconds and continued the trajectory until reaching the goal position, as demonstrated in Figure 4.7. 53
Chapter 5. Muscle Fatigue Estimation Model (a) Trigno Avanti™ Wireless sensor. (b) Trigno Avanti™ Base Station. (c) Arduino board with two buttons used to labelling the data. Figure 5.1: Overview of hardware setup used to implement the experimental protocol. 5.1.3 Sensors Placement The muscles selected for this data collection were upper body muscles, namely, the anterior, posterior and medius deltoid and, bicep brachii. These were the muscles chosen for monitoring, as they are widely documented in literature, allowing comparison of results. Furthermore, these are the muscles that are most active when a task is performed with the upper body and for which there are more guidelines for the correct placement of the sensors. Since a fatigue protocol does not allow the repetition of the same movement after fatigue is reached (sEMG data will be altered), or demands long rest periods that highly increase the overall duration of the experiment, to increase the number of available data to train the DL models, both arms were instrumented. Therefore, a total of 8 sEMG electrodes, on the aforementioned four muscles of right and left arm. The placement of the electrodes was carried out taking into account the Seniam guidelines1as presented 1http://seniam.org/sensor_location.htm 60
Chapter 5. Muscle Fatigue Estimation Model in Figure 5.2. The electrodes were placed over the muscle belly with the arrow parallel to the fiber orientation. Also, the skin was shaved and cleaned with alcohol, before placing the sensors, to decrease contact impedance. Figure 5.2: sEMG electrodes placement on the addressed muscles, according to Seniam guidelines. The recommended location for placing the sensor is marked with a red circle. 5.1.4 Experimental Protocol Labelling The ground truth of the model was created during the data collection, based on the user’s self-reported fatigue index. Thus, before data collection, participants were informed about the scale depicted in Figure 5.3. This allowed them to provide fatigue feedback during the trial in accordance with the scale. During each trial, the participant provided feedback of the fatigue level (0, 1, or 2) they were experiencing, for the targeted muscle in that trial. The researcher, based on the participant’s response, pressed the button programmed on the Arduino corresponding to the fatigue class given as feedback. 61
Chapter 5. Muscle Fatigue Estimation Model Figure 5.3: Scale of perceived muscle fatigue index. Protocol Before starting the experimental proposed tasks, the participants were informed of the protocol to be carried out, which consisted of two types of movements, to be executed until they couldn’t endure it anymore: 1) isolated exercises addressed to each of the four muscles under study; 2) complex task that simulates welding. The latter was included in the protocol to provide data of movements that involve more than one muscle. Further, this scenario was envisioned to consider the proposal presented in chapter 3, which integrated both the fatigue and task quality management control strategies. Thus, it corresponding to a task where trajectory adjustment was considered relevant. Also, the data collection time per subject was approximately 2h30min. The protocol begins with isolated exercises. The exercises were chosen to activate each of the muscles under study. Figure 5.4 presents the isolated movements, each one associated with a muscle. Eight trials were recorded and the sequence of movements performed by the participants is illustrated in Figure 5.5. Signals were collected from both arms alternately in order to rest the arm that had previously been under strain. In order to replicate the fatigue experienced during a repetitive industrial task performed over an extended period, participants performed the exercises while holding a 2 kg dumbbell, to accelerate the onset of fatigue. Also, during the study, a metronome programmed to 30 bpm was used to control the participant’s movement. Between trials, a 5-minute rest was implemented. 62
Chapter 5. Muscle Fatigue Estimation Model (a) Frontal elevation (b) Shoulder extension (c) Side elevation (d) Bicep curl Figure 5.4: Overview of the isolated exercises addressed to (a) Anterior Deltoid; (b) Posterior Deltoid; (c) Medius Deltoid; and (d) Bicep Brachii muscles. Figure 5.5: Conceptual flowchart illustrating the sequence of isolated exercises performed by the participants. During the complex task, that simulates an industrial operation, only signals from the two antagonist muscle, Anterior and Posterior Deltoids were acquired. The set up consists of two cards with the trajectory drawn as can be seen in figure 5.6(a). The participants had to follow the path drawn on the cards, simulating the welding task. To collect the muscular activity of the Anterior Deltoid, the trajectory was performed on the top card (Figure 5.6(b)) since in this position this muscle is more activated. To collect data from the Posterior Deltoid, the participant followed the trajectory drawn on the bottom card, Figure 5.6(c). Four trials were recorded, the sequence of movements performed by the participants is illustrated in Figure 5.7. Following a similar approach as used for the isolated exercises, the participants executed the task with a 2 kg load placed on the arm. A metronome programmed to 30 bpm was also used and participants rested 5 minutes between trials. 63
Chapter 5. Muscle Fatigue Estimation Model (a) (b) (c) Figure 5.6: (a) Experimental setup of the task that simulates an industrial operation, addressed to Anterior and Posterior Deltoids muscles. (b) Participant follows the path drawn on the top card, acquiring signals from the Anterior Deltoid. (c) Participant follows the path drawn on the bottom card, acquiring signals from the Posterior Deltoid. Figure 5.7: Conceptual flowchart illustrating the sequence of movements performed by the participants in the complex task. 5.2 Dataset 5.2.1 Data Preprocessing After exporting the raw sEMG data using EMGAnalyze software from Delsys, several processing steps were performed on the raw data. First, the dataset was downsampled from 1259Hz to 300 Hz. This frequency was selected to respect the Nyquist theorem, since considering that usable energy of sEMG is dominant within the range of 50- 150 Hz [56]. The downsampling was performed using an average filter, which smoothed the signal and 64
Chapter 5. Muscle Fatigue Estimation Model reduced noise, thereby minimizing the likelihood of false fatigue alerts. Then, the sEMG raw data was filtered, taking into account the filters applied in literature [1], [11], [24], [25] and following the team’s pipeline, developed together with musculoskeletal specialist Leonardo Gizzi. A 4th order Butterworth band-pass filter between 20 and 450 Hz, was applied to the raw data input, to remove external disturbances (low-frequency sensor offset/bias as well as high-frequency interference) not associated with myoelectric activity. Additionally, was applied a full-wave rectification followed by a 4th order low-pass filter with 1 Hz cutoff frequency. Subsequently, normalization was applied to scale the data to the same range and, consequently, accelerate the learning process of the network. MinMax normalization between 0 and 1 was applied to the raw data. 5.2.2 Input data Preliminary tests were conducted using traditional time and frequency features to feed the models, such as RMS and MDF. The obtained results were not satisfactory. Therefore, it was decided to feed the DL models with two features, timestamp (s), as already employed in the literature for same data, [23], [57], [58] and preprocessed raw data. This two were concatenated along the same dimension. The acquired data was segmented into fixed-size segments, using a sliding window technique to minimize the network computational time. Each window was assigned a single label, determined by the most frequent label present in that window. The overlap increases the number of windows to develop the models and in this way, different overlaps percentages were tested, namely, 0% (no overlap), 10%, 60%, 75%. Furthermore, in this work, different window sizes were explored to find the optimal solution, window size was varied between 0.15 s, 0.25 s, 0.3 s, 0.5 s, 1 s. Since the neural network was designed to classify the fatigue level of one muscle, the input data was given as one trial at a time, where each trial comprises the timestamp and the preprocessed raw data. This methodology was adopted aiming the development of a generalized DL model, able to predict the fatigue level of any muscle, upper or lower body. 5.2.3 Input data: Preliminary tests Complex task trials Preliminary tests were conducted using all available data to train the neural network. The results demonstrated that by removing the complex trials data the performance improved. This might be attributed 65
Chapter 5. Muscle Fatigue Estimation Model to the fact that sEMG data collection during the complex task, was performed after a series of isolated exercises. Despite the efforts to allow sufficient rest before the complex task ( the protocol started by the movements that primarily activated the anterior and posterior deltoid and a 5-min rest period was given between each trial), there may have been lingering fatigue in these muscles. Therefore, at the beginning of the trial, it is possible that some samples were mislabeled as non-fatigue. Another possible reason is poor posture adopted by the participants or low mind-body connection that, in a more dynamic and less controlled movement, since it is a multi-direction motion. Fatigue classes Regarding fatigue classes, preliminary tests indicated that using the 3 classes, the deep learning models under study presented suboptimal performance metrics, with F1-score and accuracy percentages below 70%. Since the labeling was conducted manually, based on the participant feeling and subjective perception of fatigue, a comprehensive dataset analysis was conducted. It aimed to verify if there where truly 3 data clusters, under the hypothesis that these would correspond to the fatigue classes. In this way, it was implemented in Python using the sklearn.cluster module from Scikit-learn library, the K-Means clustering method. This machine learning algorithm was used to divide the samples from each trial into 3 clusters, taking into account the similarity between them. The algorithm took as input the sEMG raw data of each trial and used the k-means++ initialization method. It was noticed that the samples labeled as transition-to-fatigue class does not entirely group into a single cluster but rather disperses across both the non-fatigue and fatigue clusters, as depicted in Figure 5.8. This suggests that certain samples labeled by the participant as transition-to-fatigue during data acquisition share similarities with the non-fatigue data, while others resemble the fatigue data, meaning that the participant could have lacked certainty in his fatigue level leading to mislabeled data. Therefore, data was relabeled from 3 to 2 classes, namely, non-fatigue and fatigue. The K-Means clustering method was implemented again, this time in order to divide the samples into 2 clusters, corresponding to non-fatigue and fatigue classes. Thus, for each trial of each subject, the percentage of data labeled by the participant as transition-to-fatigue but which were placed in the cluster belonging to the data labeled as non-fatigue. These samples were reassigned to the non-fatigue class. On the other hand, the percentage of samples originally labeled as transition-to-fatigue, but with similarities, identified by the K-means algorithm, with the fatigue class were grouped into that cluster, and labelled as fatigue. 66
Chapter 5. Muscle Fatigue Estimation Model Figure 5.8: Distribution of the 3 classes across the clusters returned by the K-means algorithm. sEMG variability between subjects Muscle activity depends on certain intrinsic factors of individuals, such as age, gender, physical activity, and diet [59]. Thus, it was also hypothesized whether there was too much variability between subjects for the size of the dataset. This problem was discussed in the literature [24], and can affect the performance of the models. Therefore, to try to understand how the dataset splits in terms of subject variability, a test was conducted using K-Means clustering method, considering the variability of time and raw data between subjects. To define the optimal number of clusters (K), it was employed the elbow method, a graphical method where the optimal value of K corresponds to the point at which the graph forms an elbow. Figure 5.9(a) shows the result of the elbow method, where it is possible to identify the presence of three distinct clusters. In figure 5.9(b), illustrates the allocation of each subject within these clusters and identify the subjects that present greater variability. Since subject 1 and 13 were farther than the remaining subjects, it was decided to exclude the cluster, with subjects 1 and 13, and merge the other two clusters since they were closer to each other. After resampling, removing subject 1 and 13 and the trials corresponding to the complex task, the dataset ended up with eleven subjects and eight trials per subject, resulting in 5306128 samples. The number of samples and percentage of each fatigue class are depicted in Figure 5.10. Although the fatigue class exhibits the highest number of samples, the difference between the two classes is only 4%. 67
Chapter 5. Muscle Fatigue Estimation Model (a) Elbow method to find optimal K value. (b) Subjects distribution across clusters. Figure 5.9: KMeans clustering to evaluate the variability between subjects. Figure 5.10: Number of samples and percentage of each fatigue class in the dataset. 68
Chapter 5. Muscle Fatigue Estimation Model 5.3 Deep Learning Models This section describes the division of the dataset for training, validation and test, and the experimented DL architectures for fatigue classification. 5.3.1 Dataset Split The dataset was split into training, validation and test sets, with different samples in each set, to ensure that the validation and test data had never been seen during training. The dataset was randomly divided by subjects, guaranteeing that all trials from each subject remained within the same set. From the 11 subjects, 81% (9 subjects) of them were used for training, 1 subjects was used for validation, in a leave-one-subject-out strategy, and the remaining subject was used for test. 5.3.2 Deep Learning Architectures Following the literature review conducted in Section 2.2, deep learning models were implemented for fatigue classification. The architectures consist of a unidirectional LSTM,BiLSTM,LSTM with a timeattention mechanism, a MLP, and a CNN. LSTM During the literature review, it became evident that LSTM architecture was the main choice for classification problems with electromyography data, particularly with the goal of muscular fatigue classification. Due to the dataset’s temporal dependencies and the inherent capability of LSTM models to extract temporal patterns, this architecture was deemed the most suitable for our problem. The current architecture was also studied with both unidirectional and bidirectional layers to assess which would achieve the best performance. Unlike unidirectional LSTM, with a bidirectional layer, the input flows in both directions, and it is capable of utilizing information from both sides. The bidirectional LSTM can produce a more meaningful output by combining LSTM layers from both directions, as every component of an input sequence contains information from both the past and the present. This characteristic is particularly important for this work since sEMG data were recorded during a dynamic task, composed of successive muscle contractions and relaxations. This means that even when the muscle was fatigued, there were instants of minimal muscle activity, which could lead to a false classification of non-fatigue. The bidirectional LSTM can address this problem by combining present and past information, enabling the identification of pat- 69
Chapter 5. Muscle Fatigue Estimation Model 5.4.1 Hyperparameters Optimisation Results The results of unidirectional LSTM, bidirectional LSTM,LSTM with time-attention, MLP and CNN models as well as their discussion, are presented in this subsection. The analysis focused on the top models of each architecture and the best model was selected taking into account the metrics resulting from the test set. Unidirectional LSTM The results show the 10 models from the hyperparameters combination explored for unidirectional LSTM, with the highest test F1-scores. The hyperparameters and their test metrics are presented in Table 5.3. This evaluation metrics were obtained in the epoch with the lowest validation loss. Furthermore, to analyze the performance of the architecture, when varying the learning rate and the number of layers, in the Table, after the double line, the results of 2 models were included, in which the hyperparameters of the model with the highest F1-score were maintained, while the number of layers and the learning rate were varied, respectively. The validation metrics for the top 10 models are available in Table A.1 of Appendix A. Table 5.3: Best 10 unidirectional LSTM models considering F1-score. The model with the best test results is represented in bold. Hyperparameters explored Epoch Test Time (ms)* Test Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 32 10−50.3 0 2 32 50 0.185 0.3513 89.44 89.44 89.45 89.53 89.53 32 10−50.3 0 2 64 50 0.20 0.3462 89.41 89.40 89.43 89.50 89.50 64 10−50.25 10 2 32 80 0.073 0.3702 89.36 89.35 89.35 89.43 89.43 32 10−50.25 10 2 32 50 0.116 0.3405 89.34 89.33 89.33 89.41 89.41 32 10−50.25 0 2 32 50 0.113 0.3423 89.34 89.33 89.34 89.42 89.42 64 10−50.3 60 2 32 50 0.102 0.3370 89.30 89.29 89.29 89.37 89.37 32 10−50.15 75 2 32 20 0.368 0.3180 89.17 89.16 89.32 89.34 89.34 64 10−50.15 10 2 32 50 0.045 0.3479 89.19 89.13 89.35 89.36 89.36 64 10−50.25 60 2 32 40 0.10 0.3334 89.14 89.13 89.12 89.20 89.20 64 10−50.3 0 2 32 87 0.070 0.3896 89.14 89.12 89.10 89.15 89.15 32 10−50.3 0 3 32 50 0.289 0.3566 88.98 88.97 88.95 88.99 88.99 32 10−40.3 0 2 32 10 0.218 0.3332 85.99 85.84 86.61 85.70 85.70 *Time to classify a window of data. Bidirectional LSTM The 10 bidirectional LSTM models with the best test F1-score are exhibited in Table 5.4. Similar to unidirectional LSTM results, to analyze the performance of the architecture, when varying the learning rate, one additional model was included in the Table. The hyperparameters of the model with the highest 76
Chapter 5. Muscle Fatigue Estimation Model F1-score were maintained, while the learning rate was varied. The validation metrics for the top 10 models are detailed in Table A.2 of Appendix A. Table 5.4: Best 10 bidirectional LSTM models considering F1-score. The model with the best test results is represented in bold. Hyperparameters explored Epoch Test Time (ms)* Test Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 16 10−50.3 0 2 4 81 0.8061 0.5885 89.66 89.66 89.77 89.81 89.81 32 10−50.15 0 2 4 87 0.138 0.6099 89.39 89.39 89.43 89.50 89.50 16 10−50.3 0 3 16 20 1.190 0.3308 89.37 89.37 89.38 89.46 89.46 16 10−50.3 0 3 4 80 1.169 0.5477 89.37 89.37 89.40 89.47 89.47 64 10−50.3 75 2 4 80 0.205 0.6065 89.34 89.33 89.36 89.44 89.44 16 10−51 60 2 4 82 1.261 0.6534 89.32 89.32 89.36 89.44 89.44 32 10−50.15 10 2 4 80 0.225 0.5872 89.25 89.24 89.24 89.31 89.31 16 10−50.3 10 2 4 79 0.540 0.5848 89.23 89.22 89.22 89.30 89.30 16 10−50.3 0 3 4 80 1.169 0.5477 89.37 89.37 89.40 89.47 89.47 64 10−50.25 75 2 4 79 0.107 0.5622 89.15 89.14 89.12 89.20 89.20 16 10−40.3 0 2 4 20 0.466 0.3330 86.28 86.14 86.80 86 86 *Time to classify a window of data. The results demonstrate that for both unidirectional and bidirectional LSTM, the accuracies and F1- score achieved are above 89.1% and with a maximum of 89.66% for the BiLSTM. The best unidirectional LSTM model was trained with a batch size of 32, learning rate of 10−5, a window size equal to 0.3 s and no overlap, with 2 layer and 32 filters. Regarding bidirectional LSTM, the best model was trained with a batch size of 16, learning rate of 10−5, window size of 0.3 s, no overlap, 2 layer and 4 filters. The results reveal that for both architectures, the best model present a window size of 0.3 s and no overlap. This can be explained by the fact that a smaller overlap contributes to a better generalization of the network, since the information repeated between windows is reduced and the network is forced to learn with a greater variety of data. Thus, allowing the network to focus on more relevant features. Also, for both architectures better metrics are obtained with 2 layers rather than with 3. This may indicate that 2 layers are sufficient to classify fatigue and that increasing the complexity of the model with the addition of a new layer can degrade the generalization performance. Furthermore, better results were obtained with a learning rate of 10−5when compared to 10−4. A higher learning rate is less stable and indeed, it is possible to identify that for the unidirectional LSTM, with a LR of 10−4the model converged faster (epoch 10) and the metrics decreased significantly. The bidirectional LSTM presented the best results, in line with expectations, as the model leverages information from both directions, combining information from past and present. 77
Chapter 5. Muscle Fatigue Estimation Model LSTM with Time-attention mechanism Regarding the F1-score in test, the top 10 LSTM with Time-attention mechanism models are depicted in Table 5.5. The validation metrics for the introduced models are presented in Table A.3 of Appendix A. Table 5.5: Best 10 LSTM with Time-attention models considering F1-score. The model with the best test results is represented in bold. Hyperparameters explored Epoch Test Time (ms)* Test Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 16 10−41 10 2** 128 10 1.350 0.4164 81.90 81.77 82.13 81.69 81.69 16 10−41 10 2** 64 20 1.245 0.4097 81.83 81.68 82.12 81.59 81.59 16 10−41 60 3** 64 10 3.710 0.4147 81.73 81.56 82.09 81.46 81.46 16 10−41 10 3** 128 10 2.052 0.4210 81.69 81.56 81.89 81.48 81.48 16 10−41 60 3** 128 13 3.813 0.4059 81.67 81.52 81.93 81.43 81.43 16 10−41 10 3** 64 19 2.056 0.4122 81.40 81.25 81.65 81.17 81.17 16 10−41 60 3 128 20 1.773 0.4170 81.06 80.92 81.27 80.84 80.84 16 10−41 10 3 128 60 0.948 0.4360 80.47 80.39 80.51 80.34 80.34 16 10−41 60 2 64 19 0.780 0.4294 80.30 80.23 80.30 80.20 80.20 16 10−41 10 2 128 60 0.6 0.4306 80.04 79.91 80.2 79.84 79.84 *Time to classify a window of data. **Bidirectional LSTM layer. This architecture presented lower metrics than LSTM without attention mechanism. This might be due to the attention mechanism adding a more complex layer, which may have prejudice the network’s performance or increased overfitting. Additionally, the chosen hyperparameters may not have been suitable for this type of model. Once again, models with 2 layers outperformed those with 3 layers, and bidirectional layers performed better than unidirectional layers. Furthermore, majority of the top 10 models, including the best one, presented low overlap values (10%). Regarding learning rate, the best models presented a LR of 10−4. MLP Concerning Multilayer Perceptron architecture, the hyperparameters and test evaluation metrics of the 10 models with the best F1-score results are available in Table 5.6. The validation metrics for the best models presented are exposed in Table A.4 of Appendix A. 78
Chapter 5. Muscle Fatigue Estimation Model Table 5.6: Best 10 MLP models considering F1-score. The model with the best test results is represented in bold. Hyperparameters explored Epoch Test Time (ms)* Test Metrics Batch size LR Window size (s) Overlap (%) Hidden layers Neurons Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 64 10−40.3 0 3 64 20 0.05 0.4263 89.49 89.49 89.54 89.60 89.60 16 10−50.15 0 3 64 20 0.296 0.4237 89.49 89.48 89.58 89.63 89.63 16 10−40.15 10 2 64 20 0.697 0.3075 89.45 89.45 89.60 89.61 89.61 64 10−40.3 10 3 64 20 0.053 0.4225 89.45 89.45 89.56 89.59 89.59 64 10−40.3 0 3 32 55 0.036 0.4318 89.42 89.41 89.41 89.49 89.49 16 10−40.5 75 2 64 20 0.473 0.3117 89.41 89.41 89.55 89.58 89.58 64 10−40.15 60 2 64 20 0.014 0.3130 89.38 89.38 89.39 89.47 89.47 16 10−40.3 60 2 64 20 0.585 0.3137 89.36 89.36 89.50 89.53 89.53 32 10−40.3 60 3 64 20 0.223 0.3236 89.36 89.36 89.50 89.53 89.53 32 10−40.15 60 2 64 20 0.02 0.3098 89.35 89.35 89.38 89.46 89.46 *Time to classify a window of data. It is noticeable that once again, the best model presented a window size of 0.3 s and no overlap. Regarding the number of hidden layers, 3 layers revealed better results. The MLP network is frequently used due to its ease of implementation, however, with inadequate or excess neurons in the hidden layer can lead to overfitting problems. In this case, this problem was not observed, taking into account that good results were obtained in the test, which allows us to infer that the model was able to generalize to unseen data. This problem may have also been avoided by using an early stopping criterion, stopping training when the validation ceases to improve. This ensures that the model does not overfit to the training data, preserving its ability to generalize. CNN Table 5.7 presents the 10 models from the research conducted, with the highest test F1-score. The validation metrics for the best models are depicted in Table A.5 of Appendix A. Table 5.7: Best 10 CNN models considering F1-score. The model with the best test results is represented in bold. Hyperparameters explored Epoch Test Time (ms)* Test Metrics Batch size LR Window size (s) Overlap (%) Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 64 10−51 60 10 0.028 0.5785 89.45 89.44 89.53 89.59 89.59 64 10−50.3 0 10 0.039 0.5489 89.35 89.35 89.47 89.50 89.50 32 10−50.25 0 10 0.022 0.5749 89.28 89.28 89.44 89.48 89.48 32 10−51 0 10 0.073 0.5846 88.85 88.83 88.86 88.81 88.81 64 10−50.5 10 10 0.041 0.5706 88.49 88.45 88.54 88.40 88.40 64 10−50.3 10 10 0.033 0.5461 87.93 87.92 88.58 88.24 88.24 64 10−50.5 0 10 0.021 0.5747 87.40 87.32 87.65 87.21 87.21 32 10−50.5 0 10 0.040 0.5466 86.33 86.29 87.59 86.75 86.75 32 10−50.5 10 10 0.038 0.5796 84.45 84.32 86.78 85.03 85.03 64 10−50.25 0 10 0.035 0.5549 84.36 84.22 86.69 84.93 84.93 *Time to classify a window of data. The top models demonstrated once more a learning rate of 10−5. The majority of the models had either no overlap or low overlap (10%). The exception was the best performing model, which presented 79
Chapter 5. Muscle Fatigue Estimation Model an overlap of 60%. It is possible to verify that all models converged early, despite the learning rate being low. This could mean that the architecture implemented was suitable and complex enough for the fatigue estimation, but not too complex to cause overfitting. 5.4.2 Final Results The information of the best model of each architecture is condensed in Table 5.8 and, as expected the bidirectional LSTM neural network achieved the highest F1-score, confirming the literature results regarding the effectiveness of LSTM models for time-series data [29], [36]. Overall, it was possible to verify that best performances were obtained with window size of 0.3 s, learning rate of 10−5and no overlap. Furthermore, it can be noted that performance of the models varies from validation to test, with a improve in test set. This may be due to subject variability, with the test subject potentially having more similarities with the training data than the validation subject. Also, the best model presented a fatigue state prediction time of 0.8 ms. This combined with the fact that the fatigue frequency is low, allows real-time estimation. The recall and specificity metrics presented similar values in both validation and testing. This may indicate that the implemented models did not excessively prioritize one class over the other. Also, the F1-score and accuracy presented similar values, which may be due to the fact that the dataset wasn’t unbalanced, and that the model presents a good performance for both classes. Additionally, the different neural networks demonstrate similar test metrics, overall f1-score above 89% with a maximum of 89.66% for the BiLSTM architecture. This performance limitation may have been related to the nature and quality of the data, and the significant challenges associated with electromyography signal. Moreover, the difference in fatigue tolerance and variability between individuals increases the difficulty of estimating the state of fatigue, and makes difficult to create a subject-independent model with good generalization capacity. Table 5.8: Hyperparameters, test time and test metrics of the best model of each architecture implemented. Architecture Batch size LR Window size (s) Overlap (%) Architecture Hyperparameters Test Time (ms)* Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) unidirectional LSTM 32 10−50.3 0 layers:2; filter:32 0.185 0.3513 89.44 89.44 89.45 89.53 89.53 bidirectional LSTM 16 10−50.3 0 layers: 2; filters: 4 0.8061 0.5885 89.66 89.66 89.77 89.81 89.81 LSTM-Time attention 16 10−41 10 bidirectional layer: 2; filter: 128 1.350 0.4164 81.90 81.77 82.13 81.69 81.69 MLP 64 10−40.3 0 hidden layers: 3: neurons: 64 0.05 0.4263 89.49 89.49 89.54 89.60 89.60 CNN 64 10−51 60 conv. layer no: 4; kernel: 3 filters: 16 for 2D conv block 1; 32 for 2D conv block 2; 32 for 2D conv block 3; 64 for 2D conv block 3 0.028 0.5785 89.45 89.44 89.53 89.59 89.59 *Time to classify a window of data. The confusion matrices obtained from the test with the models identified in Table 5.8 are depicted 80
Chapter 5. Muscle Fatigue Estimation Model in Figure 5.16. The BiLSTM model was the most effective in classifying true positives for the non-fatigue class. In this way, it is the model that least incorrectly classifies not fatigue as fatigue, avoiding false alerts of fatigue. The mislabelled of non-fatigue samples, may be due to the fact that perhaps, the label provided by the subject during the data collection was incorrect, and the subject was actually experiencing fatigue but only recognized it later. The mislabelled of fatigue samples may be attributed to the difficulty in classifying samples that are in the transition between non-fatigue and fatigue. (a) Unidirectional LSTM (b) BiLSTM (c) LSTM with Time-attention (d) MLP (e) CNN Figure 5.16: Confusion matrices (in percentage) of the best model of each architecture. 81
Chapter 5. Muscle Fatigue Estimation Model In addition, the test metrics per class obtained for the model with the highest F1-score (bidirectional LSTM) are detailed in Table 5.9. As observed, an F1-Score of 89.59% and 89.73% were obtained for the non-fatigue and fatigue classes, respectively. In this way, the model was more efficient in correctly classifying samples that, according to the ground truth, were labeled as fatigue. Once, the main goal of this work is to prevent fatigue, it is important that this class is classified correctly and that we avoid classifying as non-fatigue a sample that actually corresponds to fatigue. Table 5.9: Test metrics per class for the model with the highest F1-score (BiLSTM). Class Non-Fatigue Fatigue Accuracy (%) 93.12 86.50 F1-Score (%) 89.59 89.73 Precision (%) 86.32 93.22 Recall (%) 93.12 86.50 5.5 Main Conclusions In this chapter, the experimental protocol for obtaining electromyography data to feed the deep learning models was introduced and the preprocessing applied to dataset was exhibited. Additionaly, the employed deep learning architectures for muscular fatigue estimation were illustrated and the results were displayed and explained. As expected the model that demonstrated the best performance was BiLSTM. In this work, the subjects used for training the deep learning models were not used in validation or test, unlike what is commonly observed in the literature, where the data split is applied taking into account the entire dataset, leading to the inclusion of subjects in validation and test who have already been seen during training. It is worth noting that, despite the classification model being binary, non-fatigue or fatigue, the initial dataset consisted of 3 levels of fatigue, with the transition-to-fatigue class being distributed between the non-fatigue and fatigue classes. Therefore, in the initial samples classified within the fatigue class, the subject did not experience extreme tiredness, but rather was transitioning into a state of fatigue. Hence, since the implemented control strategy (which will be discussed in the next chapter) will act when the model classifies the input data as fatigue, it can effectively prevents the participant’s muscles from entering into a fatigue state since it acts during the transition phase rather than waiting until the fatigue reaches a level that could potentially lead to musculoskeletal disorders. Furthermore, during data collection, some participants were unsure about the fatigue level they were experiencing, especially during the transition-to-fatigue. This difficulty in assigning a label to the perceived 82
Chapter 5. Muscle Fatigue Estimation Model level of fatigue lead to different participants attributing different labels for the same muscle activation. And this variability among subjects and for the same subjects between different trials may explain the limitations in the performances obtained for the DL models. Increasing the dataset, and thereby the number of subjects for training, could help mitigate this limitation. In this work, it was not feasible to pursue this solution due to the difficulty in recruiting participants and due to time-constrains and the fact that the implemented protocol was time-consuming. 83
Chapter 6 Control strategy for muscle fatigue management The final goal of this dissertation was to implement a control strategy and demonstrate the effects of cobot’s adaptative response in preventing or delaying the onset of muscular fatigue. The best DL model (BiLSTM with batch size of 16; LR of 10−5; window size of 0.3 s; overlap of 0%; 2 bidirectional layers and 4 filters) presented in the previously chapter was integrated in the HRC framework and the output of the trained model that classifies the input data as non-fatigue or fatigue worked as a trigger for the cobot to act in order to prevent fatigue during a collaborative task. In this chapter, all the steps for developing the control strategy implemented in the current framework will be outlined. The validation in real time of the integrated control will be presented along with the results and their discussion. 6.1 Control Strategy Implementation 6.1.1 Control Strategy Contextualization The control developed to prevent or delay muscle fatigue during a collaborative task, as explained previously in chapter 3follows an agonistic/antagonistic strategy. The implemented control takes as input the fatigue level returned by the trained DL model, which is fed by sEMG data acquired in real time. Therefore, when fatigue is reached, the collaborative robot activates the position controller and changes the position where the task is being performed, in order to activate the antagonist muscle and relax the one that was previously active. Considering the proposed control strategy, the monitored muscles were the anterior and posterior deltoid, as they are antagonistic muscles, i.e., they aren’t active at the same 84
Chapter 6. Control strategy for muscle fatigue management time. 6.1.2 HRC Framework The developed control modules were integrated into the team’s HRC framework, schematized in Figure 6.1 (a). The framework development is based on ROS Noetic Ninjemys and integrates the UR10e, the collaborative robot used in this work. The communications between UR robot and the controllers occurs via TCP/IP and are managed by ROS. The controller developed in this dissertation and integrated into the current framework is presented in Figure 6.1 (b) and is organized in a three-layer architecture. The high-level addresses fatigue assessment using sEMG sensors Trigno Avanti™ system from Delsys® that feed the trained DL model to output fatigue level estimation. The data acquired from the system is sent to HRC framework via TCP/IP. Middle-level involves a position controller, which receives the predicted fatigue level and determines the adequate assistance the cobot should provide to the worker. This controller was implemented using the MoveIT ROS library. The low-level control also consists in the UR10e ROS driver. 85
Chapter 6. Control strategy for muscle fatigue management the MVC was initially performed with the participants. In order to move the cobot between two positions that activate the antagonistic muscles, for each subject the poses that activate their anterior and posterior deltoid were stored before initiating the trial. This procedure was necessary for each subject since their heights varied, resulting in variations in the position at which they performed the task. It is noteworthy that, by definition, the trial/task began in the configuration that activates the anterior deltoid. Thus, the anterior deltoid was the first muscle for which the DL model began to classify the level of fatigue in real time. The participants began to perform the collaborative task with the control strategy activated. The muscular activity of each muscle was acquired by Trigno Avanti™ system and sent in real time to HRC framework, via TCP/IP communication. When the trained DL model detected fatigue, the cobot changed its pose, and the participant continued to perform the task activating the antagonist muscle. Figure 6.6 presents the two configurations where the cobot moved, in order to change the active muscles during the execution of the task, and thus prevent muscle fatigue. The task was executed during a cycle, that is, it ended when the cobot returned to its initial configuration. (a) (b) Figure 6.6: Visualization of the two positions where the cobot can move to prevent muscle fatigue. (a) Workstation configuration that activates anterior deltoid muscle during human-robot collaboration task. (b) Workstation configuration that activates posterior deltoid muscle during human-robot collaboration task. 92
Chapter 6. Control strategy for muscle fatigue management Afterwards, to validate the implemented work the subjects performed the task without the fatigue management controller and with the cobot in the initial configuration ( that activates the anterior deltoid muscle). This configuration was chosen since it is the most natural position to perform the task. The task was performed for the same amount of time as they executed the task when the control strategy was active, or until the subjects could not endure it anymore. Also, between the two situations (task executed with and without the control strategy), the participants rested 5 minutes. To further evaluate the impact of the developed work in terms of usefulness, effectiveness and conduct a benchmark between the case when the control strategy was active and the case in which it was not, after the experiments each subject answered a questionnaire, that can be found in the Appendix B. 6.3 Results and Discussion The implemented control strategy was validated from a quantitative and qualitative perspective. In this section the results obtained from the evaluation conducted, are outlined and discussed. Quantitative Results During the experiments, the sEMG data from Trigno Avanti™ system was recorded so that we could analyze its behavior, as well as the predictions made by the DL model. For a better analysis of the results, the RMS was applied to the sEMG signal. The results obtained from the validation with the 5 participants are depicted in Figures 6.7,6.8,6.9,6.10,6.11. The muscle activity, A, in percentage, from the two antagonist muscles, measured by sEMG sensor and recorded while control strategy was active, is presented in Figures 6.7 (a), 6.8 (a), 6.9 (a), 6.10 (a), 6.11 (a). The results without the control strategy were used as benchmark for evaluating the impact of the implemented work. These results, namely the muscle activity, A, in percentage, of the anterior deltoid during the execution of the task without the fatigue prevention control are depicted in Figures 6.7 (b), 6.8 (b), 6.9 (b), 6.10 (b), 6.11 (b). Moreover, the fatigue level for each of the two antagonist muscles, which was estimated by the trained DL model, is represented in Figures 6.7 (c), 6.8 (c), 6.9 (c), 6.10 (c), 6.11 (c). It is possible to verify that, when the DL model predicted fatigue, meaning the output shifted from 0 to 1, the collaborative robot reacted and changed the working configuration. In the new configuration, the anterior deltoid (previously activated) could relax and the antagonist muscle, posterior deltoid, became active. In fact, we can observe that, when cobot changed the working configuration, the percentage 93
Chapter 6. Control strategy for muscle fatigue management of muscle activity, A, of the anterior deltoid was reduced, and, on the other hand the activity of the posterior deltoid increased. Furthermore, it is possible to notice, in some participants, a gradual increase in anterior deltoid’s muscular activity, until the moment cobot changed the pose. Additionally, it is possible to observe that, in the configuration that activated the posterior deltoid, overall, the participants were able to sustain task execution for a longer period without experiencing fatigue. In this case, the muscle activation percentage was not as high as the percentage obtained for the anterior deltoid. However, when the model detected fatigue, some participants already reported that they began to feel fatigued. As can be confirmed, in general, muscular activation was higher when the control to prevent muscle fatigue was not active. Also, taking into account the case when the control strategy was active, we can observe that from the instant the DL model predicted fatigue and the cobot changed the configuration of the workstation in order to relax the anterior deltoid and activate the posterior deltoid. From that instant on, in the case where the control was not active, it is possible to verify, overall, a slight increase in muscle activation of the anterior deltoid. This means that, in a scenario where the control strategy was active, the cobot should have changed its pose in order to rest the anterior deltoid and prevent injury. Furthermore, it is possible to verify that the majority of participants were unable to perform the task for the same amount of time that they performed when the control strategy was present. Therefore, it can be asserted that, the introduction of the proposed and implemented control strategy allows operators to perform repetitive tasks, such as the one used as a proof of concept, for longer periods, without the need for constant breaks and with less risk of injuries. Since that, when the muscle begins to fatigue, the workstation configuration is changed and this muscle rests while its antagonist continues to execute the task, thus, the muscles relax without the need for the task to be stopped. 94
Chapter 6. Control strategy for muscle fatigue management Figure 6.7: Results from the validation of the control to prevent muscle fatigue with Participant 1. (a) shows the muscle activity of anterior/posterior deltoids, recorded during task execution with the implemented control activated; (b) presents the muscle activity of anterior deltoid acquired during task execution without the control strategy; (c) estimated fatigue level for each muscle. The level of muscle fatigue in the posterior deltoid begins to be estimated from the moment the model detects fatigue in the anterior deltoid and the cobot changes its configuration. 95
Chapter 6. Control strategy for muscle fatigue management Figure 6.8: Results from the validation of the control to prevent muscle fatigue with Participant 2. (a) shows the muscle activity of anterior/posterior deltoids, recorded during task execution with the implemented control activated; (b) presents the muscle activity of anterior deltoid acquired during task execution without the control strategy; (c) estimated fatigue level for each muscle. The level of muscle fatigue in the posterior deltoid begins to be estimated from the moment the model detects fatigue in the anterior deltoid and the cobot changes its configuration. 96
Chapter 6. Control strategy for muscle fatigue management Figure 6.9: Results from the validation of the control to prevent muscle fatigue with Participant 3. (a) shows the muscle activity of anterior/posterior deltoids, recorded during task execution with the implemented control activated; (b) presents the muscle activity of anterior deltoid acquired during task execution without the control strategy; (c) estimated fatigue level for each muscle. The level of muscle fatigue in the posterior deltoid begins to be estimated from the moment the model detects fatigue in the anterior deltoid and the cobot changes its configuration. 97
Chapter 6. Control strategy for muscle fatigue management Figure 6.10: Results from the validation of the control to prevent muscle fatigue with Participant 4. (a) shows the muscle activity of anterior/posterior deltoids, recorded during task execution with the implemented control activated; (b) presents the muscle activity of anterior deltoid acquired during task execution without the control strategy; (c) estimated fatigue level for each muscle. The level of muscle fatigue in the posterior deltoid begins to be estimated from the moment the model detects fatigue in the anterior deltoid and the cobot changes its configuration. 98
Chapter 6. Control strategy for muscle fatigue management Figure 6.11: Results from the validation of the control to prevent muscle fatigue with Participant 5. (a) shows the muscle activity of anterior/posterior deltoids, recorded during task execution with the implemented control activated; (b) presents the muscle activity of anterior deltoid acquired during task execution without the control strategy; (c) estimated fatigue level for each muscle. The level of muscle fatigue in the posterior deltoid begins to be estimated from the moment the model detects fatigue in the anterior deltoid and the cobot changes its configuration. Questionnaire Results The results of the questionnaire applied to each subject after the experiments are depicted in Figure 6.12. All subjects strongly agreed or agreed that less muscle fatigue was experienced while performing the task in the case where the fatigue management control was active. Likewise, they responded that already felt some muscle fatigue when the cobot changed its configuration, only 1 subject remained neutral in his opinion. Furthermore, all subjects strongly agreed or agreed that they would recommend the implemented control strategy to prevent muscle fatigue, in case they were employed in a work that required repetitive movements of the same muscle. Also, all participants preferred to execute the task while the control strategy was active, validating the implemented work. 99
Chapter 6. Control strategy for muscle fatigue management Figure 6.12: Results of the questionnaire applied to evaluate the implemented work. The bars indicate mean subjective scores given by the subjects for each question. The black lines indicate the standard deviation of mean. The results of the efficiency and usability of the implemented control are outlined in Figure 6.13. It is possible to verify that 40% (2 participants) strongly agreed and 60% (3 participants) agreed that the cobot changed its workstation configuration at the right time to prevent fatigue. These results demonstrate that the DL model was able to detect fatigue in time, allowing the active muscle to relax, activating its antagonist to continue the task. Moreover, 80% (4 participants) strongly agreed that the developed control strategy would be useful in repetitive industrial processes. The 20% who responded neutral corresponds to one participant, that justified his answer with the fact that he could not imagine the task chosen fitting into an industrial context. Considering that the main problem highlighted in this work was the WRMSDs, which had a significant incidence in the industry, it is possible to confirm from these results that this work successfully accomplished the first steps towards addressing this problem. 100
Chapter 6. Control strategy for muscle fatigue management (a) (b) Figure 6.13: Results of the subjective evaluation related to (a) performance of the implemented control strategy; (b) usability in industrial tasks. 6.4 Conclusions In this chapter, the control strategy implemented to prevent muscle fatigue in human-robot collaborations was introduced. In order to validate the work developed, a benchmark was conducted between the execution of a task with and without the control strategy. Considering that the main goal of the present dissertation was to address a problem with significant incidence in the industry, the task chosen as proof of concept was to paint a surface held by the robot, in order to simulate a collaborative industrial task. 101
References [1] M. Boyer, L. J. Bouyer, J. S. Roy, and A. Campeau-Lecours, “A real-time algorithm to estimate shoulder muscle fatigue based on surface emg signal for static and dynamic upper limb tasks,” 2021 43rd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) , pp. 100–106, 2021. [2] O. ISK, “Osh in figures: Work-related musculoskeletal disorders in the eu—facts and figures,” 2010. [3] R. Govaerts, B. Tassignon, J. Ghillebert, et al. , “Prevalence and incidence of work-related musculoskeletal disorders in secondary industries of 21st century europe: A systematic review and meta-analysis,” BMC musculoskeletal disorders , vol. 22, no. 1, pp. 1–30, 2021. [4] S. Bevan, “Economic impact of musculoskeletal disorders (msds) on work in europe,” Best Practice & Research Clinical Rheumatology , vol. 29, no. 3, pp. 356–373, 2015. [5] HSE, “health and safety at work: Summary statistics for great britain 2021” , 2021. [6] S. El Zaatari, M. Marei, W. Li, and Z. Usman, “Cobot programming for collaborative industrial tasks: An overview,” Robotics and Autonomous Systems , vol. 116, pp. 162–180, 2019. [7] S. Kana, S. Lakshminarayanan, D. M. Mohan, and D. Campolo, “Impedance controlled human– robot collaborative tooling for edge chamfering and polishing applications,” Robotics and Computer- Integrated Manufacturing , vol. 72, p. 102 199, 2021. [8] L. Ma, D. Chablat, F. Bennis, and W. Zhang, “A new simple dynamic muscle fatigue model and its validation,” International journal of industrial ergonomics , vol. 39, no. 1, pp. 211–220, 2009. [9] E. A. for Safety and H. at Work, “work-related musculoskeletal disorders: Prevalence, costs and demographics in the eu” , 2019. [10] A. Ebied, A. M. Awadallah, M. A. Abbass, and Y. El-Sharkawy, “Upper limb muscle fatigue analysis using multi-channel surface emg,” in 2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES) , IEEE, 2020, pp. 423–427. 108
References [11] P. Karthick, S. Ramakrishnan, et al. , “Automated detection of muscle fatigue conditions from cyclostationary based geometric features of surface electromyography signals,” Computer Methods in Biomechanics and Biomedical Engineering , 2021. [12] Y. Rong, D. Hao, X. Han, Y. Zhang, J. Zhang, and Y. Zeng, “Classification of surface emg using wavelet packet energy analysis and a genetic algorithm-based support vector machine,” 2013. [13] L. Peternel, N. Tsagarakis, D. Caldwell, and A. Ajoudani, “Adaptation of robot physical behaviour to human fatigue in human-robot co-manipulation,” in 2016 IEEE-RAS 16th International Conference on Humanoid Robots (Humanoids) , IEEE, 2016, pp. 489–494. [14] L. Peternel, C. Fang, N. Tsagarakis, and A. Ajoudani, “Online human muscle force estimation for fatigue management in human-robot co-manipulation,” in 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) , IEEE, 2018, pp. 1340–1346. [15] L. Peternel, N. Tsagarakis, D. Caldwell, and A. Ajoudani, “Robot adaptation to human physical fatigue in human–robot co-manipulation,” Autonomous Robots , vol. 42, no. 5, pp. 1011–1021, 2018. [16] L. Peternel, C. Fang, N. Tsagarakis, and A. Ajoudani, “A selective muscle fatigue management approach to ergonomic human-robot co-manipulation,” Robotics and Computer-Integrated Manufacturing , vol. 58, pp. 69–79, 2019. [17] P. K. R. Maddikunta, Q.-V. Pham, B. Prabadevi, et al. , “Industry 5.0: A survey on enabling technologies and potential applications,” Journal of Industrial Information Integration , vol. 26, p. 100 257, 2022. [18] W. Wang, R. Li, Y. Chen, Z. M. Diekel, and Y. Jia, “Facilitating human–robot collaborative tasks by teaching-learning-collaboration from human demonstrations,” IEEE Transactions on Automation Science and Engineering , vol. 16, no. 2, pp. 640–653, 2018. [19] N. Makaram, P. A. Karthick, and R. Swaminathan, “Analysis of dynamics of emg signal variations in fatiguing contractions of muscles using transition network approach,” IEEE Transactions on Instrumentation and Measurement , vol. 70, pp. 1–8, 2021. [20] V. Kanal, M. Abujelala, J. Brady, G. Wylie, and F. Makedon, “Adaptive robotic rehabilitation using muscle fatigue as a trigger,” in Proceedings of the 16th EAI International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services , 2019, pp. 135–142. 109
References [21] M. Papakostas, V. Kanal, M. Abujelala, K. Tsiakas, and F. Makedon, “Physical fatigue detection through emg wearables and subjective user reports: A machine learning approach towards adaptive rehabilitation,” in Proceedings of the 12th ACM International Conference on PErvasive Technologies Related to Assistive Environments , 2019, pp. 475–481. [22] Z. Feng, Y. Wang, and L. Liu, “Muscle fatigue detection method based on feature extraction and deep learning,” in 2022 7th International Conference on Intelligent Computing and Signal Processing (ICSP) , IEEE, 2022, pp. 97–100. [23] Y. Zhang, S. Chen, W. Cao, et al. , “Mffnet: Multi-dimensional feature fusion network based on attention mechanism for semg analysis to detect muscle fatigue,” Expert Systems with Applications , vol. 185, p. 115 639, 2021. [24] D. Terracina, A. Moniri, J. Rodriguez-Manzano, P. H. Strutton, and P. Georgiou, “Real-time forecasting and classification of trunk muscle fatigue using surface electromyography,” in 2019 IEEE Biomedical Circuits and Systems Conference (BioCAS) , IEEE, 2019, pp. 1–4. [25] Y. Jiang, P. Malliaras, B. Chen, and D. Kulić, “Real-time forecasting of exercise-induced fatigue from wearable sensors,” Computers in Biology and Medicine , vol. 148, p. 105 905, 2022. [26] Y. Jiang, P. Malliaras, B. Chen, and D. Kulić, “Model-based data augmentation for user-independent fatigue estimation,” Computers in Biology and Medicine , vol. 137, p. 104 839, 2021. [27] J. Wang, Y. Sun, and S. Sun, “Recognition of muscle fatigue status based on improved wavelet threshold and cnn-svm,” IEEE Access , vol. 8, pp. 207 914–207 922, 2020. [28] J. Wang, S. Sun, and Y. Sun, “A muscle fatigue classification model based on lstm and improved wavelet packet threshold,” Sensors , vol. 21, no. 19, p. 6369, 2021. [29] X. Chen, M. Liu, and S. Zhang, “An lstm-attention-based method to muscle fatigue detection by integrating multi-source semg signals,” in 2021 40th Chinese Control Conference (CCC) , IEEE, 2021, pp. 8475–8480. [30] G. Marco, B. Alberto, and V. Taian, “Surface emg and muscle fatigue: Multi-channel approaches to the study of myoelectric manifestations of muscle fatigue,” Physiological measurement , vol. 38, no. 5, R27, 2017. [31] J. Hussain, K. Sundaraj, Y. F. Low, L. C. Kiang, S. Sundaraj, and M. A. Ali, “A systematic review on fatigue analysis in triceps brachii using surface electromyography,” Biomedical Signal Processing and Control , vol. 40, pp. 396–414, 2018. 110
References [32] K. Mohanavelu, R. Lamshe, S. Poonguzhali, K. Adalarasu, and M. Jagannath, “Assessment of human fatigue during physical performance using physiological signals: A review,” Biomedical and Pharmacology Journal , vol. 10, no. 4, pp. 1887–1896, 2017. [33] H. Al-Libawy, A. Al-Ataby, W. Al-Nuaimy, and M. A. Al-Taee, “Hrv-based operator fatigue analysis and classification using wearable sensors,” in 2016 13th International Multi-Conference on Systems, Signals & Devices (SSD) , IEEE, 2016, pp. 268–273. [34] R. Gao, H. Yan, and Z. Yang, “Evaluation of tractor driving vibration fatigue based on multiple physiological parameters,” PloS one , vol. 16, no. 7, e0254636, 2021. [35] A. Greco, A. Guidi, F. Felici, et al. , “Muscle fatigue assessment through electrodermal activity analysis during isometric contraction,” in 2017 39th annual international conference of the Ieee engineering in medicine and biology society (Embc) , IEEE, 2017, pp. 398–401. [36] S. Bala and D. Joshi, “An attention-based deep cnn-bilstm model for forecasting of fatigue-induced surface electromyography signals during isotonic contractions,” 2022. [37] W. Kim, J. Lee, L. Peternel, N. Tsagarakis, and A. Ajoudani, “Anticipatory robot assistance for the prevention of human static joint overloading in human–robot collaboration,” IEEE robotics and automation letters , vol. 3, no. 1, pp. 68–75, 2017. [38] L. F. Figueredo, R. C. Aguiar, L. Chen, S. Chakrabarty, M. R. Dogar, and A. G. Cohn, “Human comfortability: Integrating ergonomics and muscular-informed metrics for manipulability analysis during human-robot collaboration,” IEEE Robotics and Automation Letters , vol. 6, no. 2, pp. 351– 358, 2020. [39] S. Grafakos, F. Dimeas, and N. Aspragathos, “Variable admittance control in phri using emg-based arm muscles co-activation,” in 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC) , IEEE, 2016, pp. 001 900–001 905. [40] M. Deng, Z. Li, Y. Kang, C. P. Chen, and X. Chu, “A learning-based hierarchical control scheme for an exoskeleton robot in human–robot cooperative manipulation,” IEEE transactions on cybernetics , vol. 50, no. 1, pp. 112–125, 2018. [41] G. Kang, H. S. Oh, J. K. Seo, U. Kim, and H. R. Choi, “Variable admittance control of robot manipulators based on human intention,” IEEE/ASME Transactions on Mechatronics , vol. 24, no. 3, pp. 1023–1032, 2019. 111
References [42] F. J. Abu-Dakka, M. Saveriano, and L. Peternel, “Periodic dmp formulation for quaternion trajectories,” in 2021 20th International Conference on Advanced Robotics (ICAR) , IEEE, 2021, pp. 658– 663. [43] F. Lanotte, Z. McKinney, L. Grazi, B. Chen, S. Crea, and N. Vitiello, “Adaptive control method for dynamic synchronization of wearable robotic assistance to discrete movements: Validation for use case of lifting tasks,” IEEE Transactions on Robotics , vol. 37, no. 6, pp. 2193–2209, 2021. [44] X. Yu, P. Liu, W. He, Y. Liu, Q. Chen, and L. Ding, “Human-robot variable impedance skills transfer learning based on dynamic movement primitives,” IEEE Robotics and Automation Letters , vol. 7, no. 3, pp. 6463–6470, 2022. [45] L. Peternel, T. Noda, T. Petrič, A. Ude, J. Morimoto, and J. Babič, “Adaptive control of exoskeleton robots for periodic assistive behaviours based on emg feedback minimisation,” PloS one , vol. 11, no. 2, e0148942, 2016. [46] J. Hong, Z. Zhang, A. M. S. Enayati, and H. Najjaran, “Human-robot skill transfer with enhanced compliance via dynamic movement primitives,” arXiv preprint arXiv:2304.05703 , 2023. [47] H. Ravichandar, A. S. Polydoros, S. Chernova, and A. Billard, “Recent advances in robot learning from demonstration,” Annual review of control, robotics, and autonomous systems , vol. 3, pp. 297– 330, 2020. [48] F. Kulwa, O. W. Samuel, M. G. Asogbon, O. O. Obe, and G. Li, “Analyzing the impact of varied window hyper-parameters on deep cnn for semg based motion intent classification,” in 2022 IEEE International Workshop on Metrology for Industry 4.0 IoT (MetroInd4.0IoT) , 2022, pp. 81–86. DOI: 10.1109/MetroInd4.0IoT54413.2022.9831573. [49] A. Bangor, P. Kortum, and J. Miller, “Determining what individual sus scores mean: Adding an adjective rating scale,” Journal of usability studies , vol. 4, no. 3, pp. 114–123, 2009. [50] A. V. Boas, J. André, S. M. Cerqueira, and C. P. Santos, “A dmps-based approach for human-robot collaboration task quality management,” in 2023 IEEE International Conference on Autonomous Robot Systems and Competitions (ICARSC) , IEEE, 2023, pp. 226–231. [51] A. Ijspeert, J. Nakanishi, and S. Schaal, “Learning attractor landscapes for learning motor primitives,” Advances in neural information processing systems , vol. 15, 2002. 112
References [52] A. J. Ijspeert, J. Nakanishi, H. Hoffmann, P. Pastor, and S. Schaal, “Dynamical movement primitives: Learning attractor models for motor behaviors,” Neural computation , vol. 25, no. 2, pp. 328– 373, 2013. [53] M. Saveriano, F. J. Abu-Dakka, A. Kramberger, and L. Peternel, “Dynamic Movement Primitives in Robotics: A Tutorial Survey,” 2021, Publisher: arXiv Version Number: 1. DOI: 10 . 48550 / ARXIV.2102.03861. [Online]. Available: https://arxiv.org/abs/2102.03861 (visited on 07/02/2022). [54] N. Hansen and A. Ostermeier, “Completely Derandomized Self-Adaptation in Evolution Strategies,” en, Evolutionary Computation , vol. 9, no. 2, pp. 159–195, Jun. 2001, ISSN: 1063-6560, 1530- 9304. DOI: 10.1162/106365601750190398. [Online]. Available: https://direct.mit. edu/evco/article/9/2/159-195/892 (visited on 02/20/2022). [55] E. Rückert and A. d’Avella, “Learned parametrized dynamic movement primitives with shared synergies for controlling robotic and musculoskeletal systems,” Frontiers in computational neuroscience , vol. 7, p. 138, 2013. [56] L. Shaw and S. Bagha, “Online emg signal analysis for diagnosis of neuromuscular diseases by using pca and pnn,” International Journal of Engineering Science and Technology (IJEST) , vol. 4, no. 10, pp. 4453–4459, 2012. [57] J. Zhang, Y. Zhao, F. Shone, et al. , “Physics-informed deep learning for musculoskeletal modeling: Predicting muscle forces and joint kinematics from surface emg,” IEEE Transactions on Neural Systems and Rehabilitation Engineering , vol. 31, pp. 484–493, 2022. [58] J. Zhang, Y. Zhao, T. Bao, et al. , “Boosting personalized musculoskeletal modeling with physicsinformed knowledge transfer,” IEEE Transactions on Instrumentation and Measurement , vol. 72, pp. 1–11, 2022. [59] H. R. Suba Rao, N. A. Hamzaid, M. Y. Ahmad, and N. Hamzah, “Physiological factors affecting the mechanical performance of peripheral muscles: A perspective for long covid patients through a systematic literature review,” Frontiers in Physiology , vol. 13, p. 958 333, 2022. [60] M. G. Asogbon, O. W. Samuel, Y. Jiang, et al. , “Appropriate feature set and window parameters selection for efficient motion intent characterization towards intelligently smart emg-pr system,” Symmetry , vol. 12, no. 10, p. 1710, 2020. 113
References [61] D. Chen, Y. Li, K. Liu, and Y. Li, “A physics-informed neural network approach to fatigue life prediction using small quantity of samples,” International Journal of Fatigue , vol. 166, p. 107 270, 2023. 114
Appendix A Fatigue Estimation Models Results This appendix shows the validation metrics for the top 10 models of each DL architecture implemented. The results are presented separately for each architecture, unidirectional LSTM,BiLSTM,LSTM with Timeattention, MLP and CNN, in Tables A.1;A.2;A.3;A.4;A.5 respectively. Table A.1: Hyperparameters and validation metrics of the best 10 unidirectional LSTM models, in the epoch with the lowest loss. Hyperparameters explored Epoch Validation Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 32 10−50.3 0 2 32 50 0.3806 80.44 80.32 81.24 80.44 80.44 32 10−50.3 0 2 64 50 0.3788 80.44 80.30 81.29 80.43 80.43 64 10−50.25 10 2 32 80 0.4139 80.48 80.36 81.20 80.47 80.47 32 10−50.25 10 2 32 50 0.3597 80.48 80.36 81.19 80.47 80.47 32 10−50.25 0 2 32 50 0.3666 80.46 80.33 81.23 80.44 80.44 64 10−50.3 60 2 32 50 0.3655 80.58 80.47 81.27 80.57 80.57 32 10−50.15 75 2 32 20 0.3063 80.35 80.14 81.64 80.35 80.35 64 10−50.15 10 2 32 50 0.3693 80.38 80.18 81.63 80.37 80.37 64 10−50.25 60 2 32 40 0.3539 80.72 80.62 81.35 80.71 80.71 64 10−50.3 0 2 32 87 0.4358 80.92 80.86 81.31 80.91 80.91 115
Appendix A. Fatigue Estimation Models Results Table A.2: Hyperparameters and validation metrics of the best 10 BiLSTM models, in the epoch with the lowest loss. Hyperparameters explored Epoch Validation Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 16 10−50.3 0 2 4 81 0.6188 80.42 80.27 81.35 80.41 80.41 32 10−50.15 0 2 4 87 0.6181 80.39 80.25 81.29 80.39 80.39 16 10−50.3 0 3 16 20 0.3468 80.44 80.32 81.23 80.44 80.44 16 10−50.3 0 3 4 80 0.5737 80.27 80.13 81.12 80.26 80.26 64 10−50.3 75 2 4 80 0.6148 80.31 80.17 81.16 80.31 80.31 16 10−51 60 2 4 82 0.6558 80.41 80.28 81.22 80.40 80.40 32 10−50.15 10 2 4 80 0.5966 80.74 80.64 81.38 80.74 80.74 16 10−50.3 10 2 4 79 0.5947 80.69 80.59 81.32 80.69 80.69 16 10−50.3 0 3 4 80 0.5737 80.27 80.13 81.12 80.26 80.26 64 10−50.25 75 2 4 79 0.5746 80.31 80.17 81.27 80.73 80.73 Table A.3: Hyperparameters and validation metrics of the best 10 LSTM with Time-attention models, in the epoch with the lowest loss. Hyperparameters explored Epoch Validation Metrics Batch size LR Window size (s) Overlap (%) Layers Filters Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 16 10−41 10 2* 128 10 0.4889 77.01 76.89 77.52 76.98 76.98 16 10−41 10 2* 64 20 0.4879 78.30 78.23 78.65 78.28 78.28 16 10−41 60 3* 64 10 0.4923 75.85 75.78 76.19 75.85 75.85 16 10−41 10 3* 128 10 0.4889 76.88 76.77 77.35 76.85 76.85 16 10−41 60 3* 128 13 0.4897 76.20 76.11 76.60 76.19 76.19 16 10−41 10 3* 64 19 0.4915 77.46 77.38 77.79 77.44 77.44 16 10−41 60 3 128 20 0.4875 77.79 77.70 78.20 77.78 77.78 16 10−41 10 3 128 60 0.4949 77.79 77.65 78.40 77.76 77.76 16 10−41 60 2 64 19 0.4934 77.10 76.93 77.85 77.08 77.08 16 10−41 10 2 128 60 0.4941 76.68 76.60 77.02 76.66 76.66 *Bidirectional LSTM layer. Table A.4: Hyperparameters and validation metrics of the best 10 MLP models, in the epoch with the lowest loss. Hyperparameters explored Epoch Validation Metrics Batch size LR Window size (s) Overlap (%) Hidden layers Neurons Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 64 10−40.3 0 3 64 20 0.4601 80.36 80.20 81.34 80.35 80.35 16 10−50.15 0 3 64 20 0.4612 80.36 80.18 81.49 80.35 80.35 16 10−40.15 10 2 64 20 0.3274 80.40 80.22 81.54 80.39 80.39 64 10−40.3 10 3 64 20 0.4599 80.31 80.12 81.48 80.30 80.30 64 10−40.3 0 3 32 55 0.4644 80.57 80.46 81.25 80.56 80.56 16 10−40.5 75 2 64 20 0.3269 80.30 80.12 81.44 80.30 80.30 64 10−40.15 60 2 64 20 0.3420 80.61 80.51 81.31 80.61 80.61 16 10−40.3 60 2 64 20 0.3224 80.24 80.05 81.46 80.24 80.24 32 10−40.3 60 3 64 20 0.3566 80.27 80.08 81.47 80.27 80.27 32 10−40.15 60 2 64 20 0.3230 80.33 80.19 81.17 80.32 80.32 116
Appendix A. Fatigue Estimation Models Results Table A.5: Hyperparameters and validation metrics of the best 10 CNN models, in the epoch with the lowest loss. Hyperparameters explored Epoch Validation Metrics Batch size LR Window size (s) Overlap (%) Loss Accuracy (%) F1-Score (%) Precision (%) Recall (%) Specificity (%) 64 10−51 60 10 0.5947 80.32 80.15 81.41 80.31 80.31 64 10−50.3 0 10 0.5709 80.31 80.12 81.51 80.30 80.30 32 10−50.25 0 10 0.5924 80.33 80.11 81.69 80.32 80.32 32 10−51 0 10 0.6006 81.50 81.46 81.69 81.48 81.48 64 10−50.5 10 10 0.5905 81.86 81.85 81.93 81.86 81.86 64 10−50.3 10 10 0.5692 80.38 80.02 82.76 80.37 80.37 64 10−50.5 0 10 0.5924 81.78 81.78 81.78 81.78 81.78 32 10−50.5 0 10 0.5684 80.66 80.13 84.26 80.64 80.64 32 10−50.5 10 10 0.5965 81.02 80.31 86.22 80.99 80.99 64 10−50.25 0 10 0.5772 81.01 80.30 86.18 80.99 80.99 117