scieee AI-readable full text Open interactive document viewer

Neuromuscular function assessment through EMG in using hybrid learning in real-time

Shirzadi, Mehdi

Abstract

(English) Understanding and accurately analyzing electromyography (EMG) signals is paramount for a multitude of applications ranging from muscular function assessment to neural decoding and interfacing. The general objective of this thesis is to obtain novel, detailed and precise information from EMG signals and solving the problem in real time for its future usefulness and application in mobility assistive devices or in motor rehabilitation technologies. This comprehensive study delves into the intricate task of resolving superimposed motor unit action potentials (MUAPs) within EMG signals, evaluating existing algorithms and proposing novel methodologies to enhance accuracy and efficiency. The investigation begins with a comparative analysis of various algorithms proposed in the literature for decomposing intra-muscular EMG signals to extract MUAP waveforms and firing times. Peel-Off (PO), branch and bound (BB), genetic algorithm (GA), and particle swarm optimization (PSO) algorithms are scrutinized for their efficacy in handling superimposed MUAPs. Two sets of MUAP templates are utilized, each designed to challenge the algorithms differently in terms of energy range and similarity, thereby providing a comprehensive evaluation framework. Simulations of 1000 superpositions for each template are conducted, with subsequent resolution using the aforementioned algorithms. The comparison employs the generalized estimating equation and overall rank product to discern significant performance differences and establish an overall ranking, revealing BB as the top performer in the entire dataset, albeit with limitations in real-time applications. Building upon this foundation, a novel algorithm is introduced for resolving superimposed action potentials in both intramuscular EMG (iEMG) and intracortical recordings. The proposed algorithm, termed Discrete Brute force Correlation (DBC) coupled with High-Resolution BC (HRBC) and Fusion HRBC (FHRBC), demonstrates promising results in terms of accuracy and efficiency. Performance assessments on extensive simulated datasets and experimental iEMG signals highlight the superiority of the DBC algorithm, paving the way for real-time neural decoding applications crucial in neural and muscular interfacing domains. Expanding the scope further, the study addresses surface electromyography (sEMG) and its application in muscle force estimation. A novel real-time convex model is proposed, offering interpretability and efficiency in estimating force from sEMG signals. Validation on upper and lower limb datasets showcases remarkable performance, with the proposed method outperforming state-of-the-art techniques across various metrics. The model's applicability extends to load sharing, robotics, rehabilitation, and prosthesis control for both upper and lower limbs, underscoring its potential impact in diverse fields. In summation, this study presents a comprehensive exploration of EMG signal analysis, from resolving superimposed MUAPs to real-time force estimation, offering novel methodologies and insights that advance the frontiers of neural and muscular decoding and their practical applications.

Full text

1 UNIVERSITAT POLITÈCNICA DE CATALUNYA Doctoral School: Biomedical Engineering PhD Thesis Neuromuscular function assessment through EMG in using hybrid learning in real-time Author: Mehdi Shirzadi Thesis Supervisors: Dr. Miguel Ángel Mañanas Villanueva, Dr. Hamid Reza Marateb Thesis for compendium of publications Barcelona, September 2024 2 Acknowledgements I would like to express my deepest gratitude to everyone who has supported me throughout this journey. First and foremost, I want to thank my family for their unwavering love, encouragement, and patience from day one. Without their constant support, this achievement would not have been possible. I also want to extend my heartfelt thanks to my supervisors for their invaluable guidance, insight, and dedication. Their expertise and mentorship have been instrumental in shaping this work, and I am truly grateful for their contributions to my academic and personal growth. In addition, I wish to acknowledge the contributions of my collaborators and colleagues who played a crucial role in the success of various studies. Their knowledge, ideas, and support have enriched this thesis, and I am deeply thankful for the opportunity to work alongside such talented individuals. 3 Abstract Understanding and accurately analyzing electromyography (EMG) signals is paramount for a multitude of applications ranging from muscular function assessment to neural decoding and interfacing. The general objective of this thesis is to obtain novel, detailed and precise information from EMG signals and solving the problem in real time for its future usefulness and application in mobility assistive devices or in motor rehabilitation technologies. This comprehensive study delves into the intricate task of resolving superimposed motor unit action potentials (MUAPs) within EMG signals, evaluating existing algorithms and proposing novel methodologies to enhance accuracy and efficiency. The investigation begins with a comparative analysis of various algorithms proposed in the literature for decomposing intra-muscular EMG signals to extract MUAP waveforms and firing times. Peel-Off (PO), branch and bound (BB), genetic algorithm (GA), and particle swarm optimization (PSO) algorithms are scrutinized for their efficacy in handling superimposed MUAPs. Two sets of MUAP templates are utilized, each designed to challenge the algorithms differently in terms of energy range and similarity, thereby providing a comprehensive evaluation framework. Simulations of 1000 superpositions for each template are conducted, with subsequent resolution using the aforementioned algorithms. The comparison employs the generalized estimating equation and overall rank product to discern significant performance differences and establish an overall ranking, revealing BB as the top performer in the entire dataset, albeit with limitations in real-time applications. Building upon this foundation, a novel algorithm is introduced for resolving superimposed action potentials in both intramuscular EMG (iEMG) and intracortical recordings. The proposed algorithm, termed Discrete Brute force Correlation (DBC) coupled with High-Resolution BC (HRBC) and Fusion HRBC (FHRBC), demonstrates promising results in terms of accuracy and efficiency. Performance assessments on extensive simulated datasets and experimental iEMG signals highlight the superiority of the DBC algorithm, paving the way for real-time neural decoding applications crucial in neural and muscular interfacing domains. Expanding the scope further, the study addresses surface electromyography (sEMG) and its application in muscle force estimation. A novel real-time convex model is proposed, offering interpretability and efficiency in estimating force from sEMG signals. Validation on upper and lower limb datasets showcases remarkable performance, with the proposed method outperforming state-of-the-art techniques across various metrics. The model's applicability extends to load sharing, robotics, rehabilitation, and prosthesis control for both upper and lower limbs, underscoring its potential impact in diverse fields. In summation, this study presents a comprehensive exploration of EMG signal analysis, from resolving superimposed MUAPs to real-time force estimation, offering novel methodologies and insights that advance the frontiers of neural and muscular decoding and their practical applications. 4 Resumen Entender y analizar con precisión las señales de electromiografía (EMG) es fundamental para una multitud de aplicaciones, que van desde la evaluación de la función muscular hasta la decodificación neural y la interfaz. El objetivo general de esta tesis es obtener información nueva, detallada y precisa a partir de las señales EMG y resolver el problema en tiempo real para su futura utilidad y aplicación en dispositivos de asistencia para la movilidad o en tecnologías de rehabilitación motora. Este estudio exhaustivo profundiza en la compleja tarea de resolver los potenciales de acción de las unidades motoras (MUAPs) superpuestos dentro de las señales EMG, evaluando los algoritmos existentes y proponiendo metodologías novedosas para mejorar la precisión y la eficiencia. La investigación comienza con un análisis comparativo de varios algoritmos propuestos en la literatura para descomponer señales EMG intramusculares y extraer las formas de onda de los MUAPs y los tiempos de disparo. Se examinan los algoritmos Peel-Off (PO), branch and bound (BB), algoritmo genético (GA) y optimización por enjambre de partículas (PSO) en cuanto a su eficacia para manejar los MUAPs superpuestos. Se utilizan dos conjuntos de plantillas de MUAP, cada una diseñada para desafiar a los algoritmos de manera diferente en términos de rango de energía y similitud, proporcionando así un marco de evaluación integral. Se realizan simulaciones de 1000 superposiciones para cada plantilla, con posterior resolución utilizando los algoritmos mencionados. La comparación emplea la ecuación de estimación generalizada y el producto de rango general para discernir diferencias significativas en el rendimiento y establecer un ranking general, revelando que BB es el mejor en todo el conjunto de datos, aunque con limitaciones en aplicaciones en tiempo real. Sobre esta base, se introduce un algoritmo novedoso para resolver los potenciales de acción superpuestos tanto en EMG intramuscular (iEMG) como en registros intracorticales. El algoritmo propuesto, denominado Correlación Bruta Discreta (DBC) combinado con BC de Alta Resolución (HRBC) y Fusión HRBC (FHRBC), demuestra resultados prometedores en términos de precisión y eficiencia. Las evaluaciones de rendimiento en conjuntos de datos simulados extensos y señales experimentales de iEMG destacan la superioridad del algoritmo DBC, allanando el camino para aplicaciones de decodificación neural en tiempo real, cruciales en los dominios de interfaz neural y muscular. Ampliando aún más el alcance, el estudio aborda la electromiografía de superficie (sEMG) y su aplicación en la estimación de la fuerza muscular. Se propone un modelo convexo en tiempo real novedoso, que ofrece interpretabilidad y eficiencia en la estimación de la fuerza a partir de las señales sEMG. La validación en conjuntos de datos de miembros superiores e inferiores muestra un rendimiento notable, con el método propuesto superando las técnicas más avanzadas en varias métricas. La aplicabilidad del modelo se extiende a la distribución de cargas, robótica, rehabilitación y control de prótesis para miembros superiores e inferiores, destacando su potencial impacto en diversos campos. 5 En resumen, este estudio presenta una exploración exhaustiva del análisis de señales EMG, desde la resolución de MUAPs superpuestos hasta la estimación de la fuerza en tiempo real, ofreciendo metodologías y perspectivas novedosas que avanzan en las fronteras de la decodificación neural y muscular y sus aplicaciones prácticas. 6 Resum Entendre i analitzar amb precisió les senyals d'electromiografia (EMG) és fonamental per a una multitud d'aplicacions, que van des de l'avaluació de la funció muscular fins a la decodificació neural i la interfície. L'objectiu general d'aquesta tesi és obtenir informació nova, detallada i precisa a partir de les senyals EMG i resoldre el problema en temps real per a la seva futura utilitat i aplicació en dispositius d'assistència per a la mobilitat o en tecnologies de rehabilitació motora. Aquest estudi exhaustiu aprofundeix en la complexa tasca de resoldre els potencials d'acció de les unitats motores (MUAPs) superposats dins de les senyals EMG, avaluant els algoritmes existents i proposant metodologies noves per millorar la precisió i l'eficiència. La investigació comença amb una anàlisi comparativa de diversos algoritmes proposats en la literatura per descompondre senyals EMG intramusculars i extreure les formes d'ona dels MUAPs i els temps de dispar. Es revisen els algoritmes Peel-Off (PO), branch and bound (BB), algorisme genètic (GA) i optimització per enfrontament de partícules (PSO) en termes de la seva eficiència per gestionar els MUAPs superposats. Es fan servir dos conjunts de plantilles de MUAP, cadascuna dissenyada per desafiar els algoritmes de manera diferent en termes de rang d'energia i similitud, proporcionant així un marc d'avaluació integral. Es realitzen simulacions de 1000 superposicions per a cada plantilla, amb la resolució posterior utilitzant els algoritmes esmentats. La comparació empra l'equació d'estimació generalitzada i el producte de rang global per discernir diferències significatives en el rendiment i establir un rànquing general, revelant que BB és el millor en tot el conjunt de dades, tot i que amb limitacions en aplicacions en temps real. Sobre aquesta base, es presenta un nou algorisme per resoldre els potencials d'acció superposats tant en EMG intramuscular (iEMG) com en registres intracorticals. L'algorisme proposat, anomenat Correlació Bruta Discreta (DBC) combinat amb BC d'Alta Resolució (HRBC) i Fusió HRBC (FHRBC), demostra resultats prometedors en termes de precisió i eficiència. Les avaluacions de rendiment en conjunts de dades simulats extensos i senyals experimentals d'iEMG destaquen la superioritat de l'algorisme DBC, obrint el camí per a aplicacions de decodificació neural en temps real, crucials en els dominis d'interfície neural i muscular. Ampliant encara més l'abast, l'estudi aborda l'electromiografia de superfície (sEMG) i la seva aplicació en l'estimació de la força muscular. Es proposa un model convexe en temps real novedós, que ofereix interpretabilitat i eficiència en l'estimació de la força a partir de les senyals sEMG. La validació en conjunts de dades de membres superiors i inferiors mostra un rendiment remarcable, amb el mètode proposat superant les tècniques més avançades en diverses mètriques. L'aplicabilitat del model s'estén a la distribució de càrregues, robòtica, rehabilitació i control de pròtesis per a membres superiors i inferiors, destacant el seu impacte potencial en diversos camps. En resum, aquest estudi presenta una exploració exhaustiva de l'anàlisi de senyals EMG, des de la resolució de MUAPs superposats fins a l'estimació de la força en temps real, oferint metodologies i perspectives noves que avancen en les fronteres de la decodificació neural i muscular i les seves aplicacions pràctiques. 7 Table of Contents Acknowledgements ......................................................................................................................... 2 Abstract ........................................................................................................................................... 3 Resumen .......................................................................................................................................... 4 Resum ............................................................................................................................................. 6 List of tables .................................................................................................................................. 11 List of figures ................................................................................................................................ 12 List of acronyms ........................................................................................................................... 16 Chapter 1: Introduction ................................................................................................................. 17 1. Introduction to physiology of movement .............................................................................. 18 1.1 Movement generation ...................................................................................................... 18 1.2 Motor unit ........................................................................................................................ 19 2. Electromyography ................................................................................................................. 25 2.1 Introduction ..................................................................................................................... 25 2.2 Intramuscular EMG, surface EMG and High-Density surface EMG .............................. 25 2.3 Detection techniques ........................................................................................................ 26 3. Introduction to advanced analytical techniques .................................................................... 28 3.1 Forward and inverse problem .......................................................................................... 28 3.2 Optimization .................................................................................................................... 28 3.3 Machine learning ............................................................................................................. 34 3.4 Deep learning ................................................................................................................... 41 3.5 Hybrid learning ................................................................................................................ 42 3.6 Statistical analysis............................................................................................................ 43 4. EMG Decomposition............................................................................................................. 44 4.1 Introduction ..................................................................................................................... 44 4.2 Intramuscular EMG Decomposition ................................................................................ 45 4.3 High Density Surface EMG Decomposition ................................................................... 51 5. Robotic devices and exoskeleton .......................................................................................... 54 6. Objectives .............................................................................................................................. 57 6.1 General objective ............................................................................................................. 57 6.2 Specific objectives ........................................................................................................... 57 8 Chapter 2: Rigorous performance assessment of the algorithms for resolving motor unit action potential superpositions ................................................................................................................ 58 1. Abstract ................................................................................................................................. 59 2. Introduction ........................................................................................................................... 59 3. Materials and methods .......................................................................................................... 61 3.1 The simulation ................................................................................................................. 61 3.2 The resolution algorithms ................................................................................................ 63 3.3 Peel-off ............................................................................................................................ 63 3.4 Branch and bound ............................................................................................................ 64 3.5 Genetic algorithm ............................................................................................................ 64 3.6 Particle swarm optimization ............................................................................................ 64 3.7 Performance assessment .................................................................................................. 64 3.8 Statistical methods ........................................................................................................... 65 4. Results ................................................................................................................................... 65 4.1 The overall accuracy analysis .......................................................................................... 67 4.2 Running time analysis ..................................................................................................... 67 4.3 The overall accuracy analysis on the hard set ................................................................. 69 4.4 Running time analysis on the hard set ............................................................................. 69 4.5 The overall results using rank product ............................................................................ 69 5. Discussion ............................................................................................................................. 71 Chapter 3: An accurate and real-time method for resolving superimposed action potentials in multiunit recordings ...................................................................................................................... 74 1. Abstract ................................................................................................................................. 75 2. Introduction ........................................................................................................................... 75 3. Method and material.............................................................................................................. 77 3.1 Discrete Brute-Force Correlation (DBC) ........................................................................ 78 3.2 High-Resolution Brute-Force Correlation (HRBC) ........................................................ 79 3.3 Levenberg–Marquardt Algorithm .................................................................................... 79 3.4 Fusion HRBC (FHRBC) .................................................................................................. 80 3.5 Parallel Algorithm ........................................................................................................... 80 3.6 An Example of the FHRBC Algorithm ........................................................................... 80 3.7 iEMG Datasets ................................................................................................................. 82 9 3.8 Neural Recording Dataset ................................................................................................ 84 3.9 Real-Time Decomposition of Experimental Signals ....................................................... 87 3.10 Validation ...................................................................................................................... 88 3.11 Statistical Methods ........................................................................................................ 88 4. Results ................................................................................................................................... 88 4.1 Simulated Signals ............................................................................................................ 88 4.2 Experimental Signals ....................................................................................................... 93 4.3 Influence of the Background Noise ................................................................................. 94 4.4 The Complexity of the Superpositions of the Analyzed Datasets ................................... 96 5. Discussion ............................................................................................................................. 97 5.1 Evaluating the Results ..................................................................................................... 97 5.2 Resolving Destructive Superpositions ............................................................................. 99 5.3 Applications in Other Fields ............................................................................................ 99 5.4 Limitation and Future Works .......................................................................................... 99 6. Conclusion ........................................................................................................................... 100 Chapter 4: A real-time and convex model for the estimation of muscle force from surface electromyographic signals in the upper and lower limbs ............................................................ 101 1. Abstract ............................................................................................................................... 102 2. Introduction ......................................................................................................................... 102 3. Materials and equipment ..................................................................................................... 105 3.1 Participants .................................................................................................................... 105 3.2 Experimental setup ........................................................................................................ 105 3.3 Experimental Protocol ................................................................................................... 106 4. Methods ............................................................................................................................... 107 4.1 Data Processing ............................................................................................................. 107 4.2 Method description ........................................................................................................ 107 4.3 The proposed mathematical model ................................................................................ 108 4.4 State-of-the-art ............................................................................................................... 108 4.5 Evaluation criteria .......................................................................................................... 109 4.6 Data allocation strategy ................................................................................................. 110 4.7 Statistical analysis.......................................................................................................... 111 5. Results ................................................................................................................................. 111 16 List of acronyms EMG Electromyography CNS Central Nervous System MyHC Myosin Heavy Chain iEMG Intramuscular EMG sEMG Surface EMG HD-sEMG High-Density surface EMG LDA Linear Discriminant Analysis SVM Support Vector Machine LS Least Squares ANN Artificial Neural Network CNN Convolutional Neural Network RNN Recurrent Neural Network LSTM Long Short-Term Memory MU Motor Unit MUAP Motor Unit Action Potential MVC Maximal Voluntary Contraction NMF Non-negative Matrix Factorization PO Peel-off BB Branch and Bound PSO Particle Swarm Optimization GA Genetic Algorithm DBC Discrete Brute-Force Correlation OLS Ordinary Least Squares PCA Principal Component Analysis 17 Chapter 1: Introduction In this chapter, we will start by discussing the physiology of movement and how the electromyography (EMG) signal is produced. Then, we will delve into the analytical tools that were used in the thesis. After discussing EMG decomposition, we will clarify the objective of the thesis. 18 1. Introduction to physiology of movement 1.1 Movement generation Performing a locomotion task, simply movement from one location to another, is a complex process involving various physiological entities operating in synchronization. This includes bones, tendons, nerves, and other systems functioning harmoniously from the cellular and electrochemical levels to the highest organizational levels of the organism. Even seemingly simple movements rarely involve just one muscle; instead, they require high muscular coordination and precise regulation (Kandel, Schwartz et al. 2021). For instance, when standing, the muscles of the legs and trunk constantly co-contract to maintain balance. While the neural system plays a crucial role in control, the actual force necessary for movement is generated in the muscles. Muscles, capable of converting chemical energy into force, come in different types: smooth muscles, found in internal organs; cardiac muscles, building the heart; and skeletal muscles, the only type that can be voluntarily controlled and used in locomotion. Skeletal muscles are typically connected to bones via tendons made of collagen fibers. The nervous system is composed of two main parts: the central nervous system (CNS) and the peripheral nervous system. The central nervous system includes the brain and spinal cord, while the peripheral nervous system encompasses all the other nerves in the body. The neural system that controls movement is organized hierarchically. At the highest level, a movement is conceptualized, although the precise location of the neurons and brain centers responsible for this task remains largely unknown. These centers then relay commands to middle-level structures, where tasks are further elaborated. Simultaneously, these middle-level neurons receive information from receptors in muscles, skin, tendons, joints, and the visual system. This comprehensive input is considered in formulating a movement plan, accounting for the space it will occupy, and generating control signals for each muscle involved. The planning of movement execution involves various brain regions, including the cerebral cortex, cerebellum, subcortical nuclei, and brainstem (Figure 1.1). Information is subsequently transmitted to the lowest level of the motor hierarchy—the spinal cord and brainstem—where motor neurons transmit signals to the muscles. At this level, precise selection of motor neurons and timing of their activations are coordinated. 19 Figure 1.1. Different parts of the brain which involve in the movement planning. The subcortical nuclei were not shown in this picture (Khalili. 2023). Skeletal muscle stands out as an exceptionally dynamic and adaptable tissue within the human body. It makes up around 40% of the total body weight, housing 50–75% of all body proteins and driving 30–50% of whole-body protein turnover. Its composition primarily includes water (75%), protein (20%), and a mix of inorganic salts, minerals, fats, and carbohydrates (5%). The maintenance of muscle mass hinges on the delicate equilibrium between protein synthesis and breakdown, influenced by factors like diet, hormonal levels, physical activity, and health conditions (Frontera and Ochala 2015). 1.2 Motor unit 1.2.1 Introduction The human motor system must adapt to a wide list of internal and external demands and constraints, including the regulation of force output for precise and powerful movements, maintaining upright posture, facilitating locomotion, and even executing our repertoire of gestures. The central nervous system operates in a hierarchical manner, with motor programming occurring in regions such as the premotor cortex, the supplementary motor area, and other associated cortical areas. Inputs from these regions, as well as from the cerebellum and to some extent the basal ganglia, converge onto the primary motor cortex, where they either stimulate or inhibit various neurons. The outputs from the primary motor cortex exert a significant influence 20 on the interneurons and motoneurons located within the brainstem and spinal cord (Merletti and Parker 2004). The motor unit serves as the primary output for the CNS, translating sensory and descending neural inputs into forces for generating movement, thereby acting as a neuromechanical transducer. Consisting of two main components, the motoneuron and the muscle fibers it innervates, with the latter referred to as the muscle unit. Because the neuromuscular junctions between the axon terminal and muscle fibers are large, the motor unit operates as a cohesive entity in controlling movement (Heckman and Enoka 2012). The robust connection between action potentials produced by a motoneuron and its muscle unit offers a distinct advantage in studying motor function control by the nervous system. Muscle fiber action potentials are relatively straightforward to measure, making motoneurons the sole CNS cells whose action potential discharge times can be easily quantified in humans. Understanding how the modulation of motor unit discharge arises from motoneuron and muscle unit inputs and properties can unveil the framework of motor commands in both typical and pathological conditions (Heckman and Enoka 2012). Motoneurons can be divided into two types of neurons, depending on their function: upper motor neurons and lower motor neurons (Figure 1.2). These neurons form a variety of controlled and complex circuits throughout the body, controlling both voluntary and involuntary movements. 21 Figure 1.2. This figure illustrates the hierarchical organization of motor units, showcasing various types of motor neurons and skeletal muscle structures. The diagram provides a visual representation of the relationships and interactions between these components within the motor system (Smith 2023). 1.2.2 Upper Motor Neurons The upper motor neurons (Figure 1.2), situated in the motor cortex or brainstem, prompt voluntary movements throughout the body by linking the cerebral cortex to the brain stem and spinal cord. There are several pathways or tracts for these neurons, each serving distinct purposes: pyramid, extrapyramidal, rubrospinal, tectospinal, and reticulospinal tracts. In the pyramid tract, upper motor neurons manage conscious movement, originating in the motor strip of the frontal lobe and transmitting nerve impulses to the spinal cord. The extrapyramidal tract, encompassing pathways outside the pyramid tract, typically involves 22 subconscious motor functions like posture and balance. The rubrospinal tract, an extrapyramidal pathway, aids involuntary movements for body balance. The tectospinal tract, another extrapyramidal pathway, governs neck muscle movements. Lastly, the reticulospinal tract plays a key role in regulating autonomous actions in the body. Upper motor neurons travel down these tracts and form connections with spinal cord neurons, known as lower motor neurons (Moini and Piran 2020). 1.2.3 Lower Motor Neurons Lower motor neurons (Figure 1.2), situated in the spinal cord, play a vital role in transmitting signals to skeletal muscles, organs, and glands. They receive input from upper motor neurons, either directly or through interneurons, and then activate these structures by extending their fibers to the appropriate destinations. These lower motor neurons have several subtypes, each with distinct functions: Somatic motor neurons, originating in the brainstem within the central nervous system, project their axons to skeletal muscles. They are further categorized into alpha, beta, and gamma motor neurons. • Alpha motor neurons, relatively large in size, directly innervate skeletal muscle, causing contractions for movement by targeting extrafusal muscle fibers. • Beta motor neurons also innervate extrafusal muscle fibers and intrafusal fibers, which function as specialized sensory organs and are innervated by both motor and sensory fibers. • Gamma motor neurons respond to stretch receptors in skeletal muscles (muscle spindles), aiding in fine-tuning muscle contractions alongside alpha motor neurons. Special visceral efferent neurons, also known as branchial motor neurons, are responsible for innervating muscles in the head and neck. These neurons are located in the brainstem and form nuclei for certain cranial nerves (trigeminal, facial, glossopharyngeal, vagus, and accessory nerves). General visceral motor neurons contribute to the autonomic nervous system's sympathetic and parasympathetic functions. They regulate peripheral activities such as heart rate, smooth muscle function, and gland activity, except for skeletal muscles, which are not under autonomic control (Moini and Piran 2020). 1.2.4 Motor Nucleus Individual muscles consist of a population of motor units responsible for controlling the force exerted during muscle contractions. The motoneurons within this population are typically situated in close proximity within the ventral horn of the spinal cord or the brain stem. Together, the motoneurons innervating a muscle form a longitudinal cluster known as a motor nucleus or motoneuron pool (Vanderhorst and Holstege 1997, Routal and Pal 1999, Heckman and Enoka 2012). In cross-section, motor nuclei for proximal muscles are generally located more ventrally and laterally compared to those for distal muscles, while motor nuclei for anterior muscles tend to be more lateral than those for posterior muscles (Jenny and Inukai 1983, Price, De Marco Garcia 23 et al. 2002, Dasen, Liu et al. 2003). Despite these spatial differences, the extensive dendritic projections of each motoneuron ensure significant overlap in the distribution of synaptic targets (Dityatev, Chmykhova et al. 2001). The number of motor units innervating a muscle can range from a few tens to several hundred, although accurately determining these numbers poses challenges due to limitations in available methods (Heckman and Enoka 2012). Various techniques have been employed in the literature for counting motoneurons (Jenny and Inukai 1983, McComas 1995). While the electrophysiological method appears capable of tracking changes in motor unit numbers associated with neuromuscular disorders, particularly when incorporating Bayesian statistical methodology, it may not provide quantitative measures of less pronounced reductions in motor unit numbers, such as those occurring during aging (Ridall, Pettitt et al. 2006, Henderson, Ridall et al. 2007, Porter, Alvarez et al. 2008, Boe, Antonowicz et al. 2010). 1.2.5 Muscle Unit Some cadaveric dissections aimed at estimating the size of the motoneuron pool, referred to as the motor unit pool when discussing both central and peripheral components, have yielded information on the average number of muscle fibers within a muscle unit. For instance, the average innervation number (the number of muscle fibers innervated by a single motoneuron) varies from 5 to 10 for muscles like the rectus lateralis, stapedius, and tensor tympani, to approximately 1750 for large limb muscles such as the medial gastrocnemius (Blevins 1967, Heckman and Enoka 2012). While these data are valuable for comparisons between muscles, it is the variation within individual motor unit pools that holds greater importance for understanding how the nervous system regulates muscle force. Studies on glycogen depletion suggest that the innervation number varies within a motor unit pool, with low-threshold motor units exhibiting lower values. For instance, in the cat medial gastrocnemius muscle, the innervation number ranges from 18 to 830 (Kanda and Hashizume 1992, Rafuse, Pattullo et al. 1997). Measures of motor unit force, given the high correlation between innervation number and maximal motor unit force (Kanda and Hashizume 1992). Using this method, the literature (Enoka and Fuglevand 2001) has estimated innervation numbers for the 120 motor units in the human first dorsal interosseus muscle to range from 21 to 1770. Since muscles consist of numerous motor units that produce small forces and only a few that generate large forces, the frequency distribution of innervation numbers within a motor unit is typically depicted with an exponential function (Elek, Kossev et al. 1992, Enoka and Fuglevand 2001). The remodeling of motor unit territories that occurs with advancing age increases the average motor unit force but does not seem to alter the distribution of motor unit forces within the motor unit pool (Masakado, Noda et al. 1994, Fling, Knight et al. 2009). The fibers within each muscle unit are dispersed across a portion of the muscle and intertwine with the fibers of other muscle units (Weijs, Jüch et al. 1993, Wang and Kernell 2002). Glycogen-depleted fiber counts suggest that the territories of muscle units vary among different animals (Rafuse and Gordon 1996, Heckman and Enoka 2012). Apart from variations in the extent of muscle unit territories, the densities of fibers belonging to the same muscle unit (expressed as fibers per 100 total muscle fibers) can vary across different muscles. 24 Likewise, the muscle fibers within a single motor unit often occupy only a specific portion of the muscle rather than extending from one end to the other. An extreme example of this structural pattern was observed in a study utilizing electrophysiological techniques to map muscle unit territories in the sartorius, the longest muscle in the human body (Young, Paul et al. 2000, Lateva and McGill 2001). For an example of this, a study in the literature (Harris, Duxson et al. 2005) shows out of 64 motor unit action potentials recorded across five subjects, only 21 were detected at both the most proximal and distal recording electrodes, suggesting that the muscle unit fibers of these motor units traversed the entire length of the muscle. The remaining 43 motor units exhibited fibers that either originated or terminated within a fascicle. Similarly, another study (Vieira, Loram et al. 2011), utilizing intramuscular and surface EMG recordings, illustrated that the territories of individual motor units within the human medial gastrocnemius muscle were limited to 2.5 cm or less, approximately 10% of the muscle's total length. In certain muscles, muscle unit territories may be confined to discrete compartments within the muscle, with each neuromuscular compartment being innervated by a distinct primary branch of the muscle nerve (Windhorst, Hamm et al. 2010). This arrangement results in a single muscle comprising multiple distinct regions, each serving a different physiological function (Keen and Fuglevand 2004, Falla and Farina 2008). For instance, the human biceps brachii muscle receives innervation from three to five primary branches of the musculocutaneous nerve, with the motor units in the long head of the muscle appearing to function in two distinct populations (Heckman and Enoka 2012). Motor units in the lateral aspect of the long head activate during elbow joint flexion, those in the medial aspect activate during supination torque production, and those in the middle activate when the torque about the elbow joint involves both flexion and supination components (Barry, Pascoe et al. 2009). The variability in muscle unit anatomy within a muscle must be considered in the activation signals received by the motoneuron pool when aiming to produce a specific action. Additionally, the attachment sites to the skeleton often enable a muscle to exert torques in multiple directions about a joint, and unwanted actions must be regulated through appropriate activation of motor unit pools. Consequently, motor unit anatomy limits the activation strategies available to the central nervous system (Heckman and Enoka 2012). 1.2.6 Motor Unit Types Various methods exist in the literature for categorizing human motor units. One widely used approach involves distinguishing three isoforms of the myosin heavy chain (MyHC) that affect maximal contraction velocity, with MyHC I considered the slowest and MyHC IIX the fastest (Bottinelli and Reggiani 2000). Another classification method, proposed by Burke (Burke, Jankowska et al. 1970, Burke, Levine et al. 1974), categorizes motor units based on their response to submaximal tetanus and fatigability measures. Burke's scheme divides motor units into fast and slow categories, with further distinctions made for fatigue-sensitive and fatigue-resistant units within the fast category. However, subsequent research has revealed that muscle fiber and motor unit properties are more complex than previously thought. Muscle fibers can express combinations of MyHC 25 isoforms, and Burke's classification overlooks several factors contributing to fatigue during voluntary contractions. Furthermore, distinguishing motor units as strictly fast or slow is challenging, making it difficult to characterize their fatigability solely based on muscle unit contractile properties. Therefore, it's essential to recognize that each motor unit's functional properties exist along a continuum and should be evaluated within a broader framework (Merletti and Farina 2016). 2. Electromyography 2.1 Introduction The synaptic transmission at the neuromuscular junction during voluntary contractions ensures a high level of safety. Consequently, when a motoneuron triggers an action potential, it invariably leads to the propagation of action potentials across all muscle fibers within a muscle unit simultaneously (Heckman and Enoka 2012). The electromyographic (EMG) signal reflects these action potentials, which arise from the depolarization of the outer membrane of muscle fibers, known as the sarcolemma. Detection of EMG involves the placement of intramuscular or surface electrodes at specific distances from the sources. The tissue between the sources and the recording electrodes acts as a volume conductor, influencing the characteristics of the detected signals, such as their frequency content (Merletti and Farina 2016). 2.2 Intramuscular EMG, surface EMG and High-Density surface EMG The EMG signal originates from the electrical activity of muscle fibers engaged during a contraction. These signals stem from the depolarizing and repolarizing areas within the muscle fibers. Biological tissues act as spatial and temporal low-pass filters on the potential distribution, separating the signal sources from the recording electrodes. In intramuscular recordings, the tissue's effect is relatively minor due to the proximity of the recording electrodes to the sources. Conversely, for surface recordings, the volume conductor significantly distorts the signal, primarily in spatial terms (Merletti and Farina 2016). EMG can be detected using intramuscular electrodes or those placed on the skin's surface. Inserting electrodes directly into the muscle enables the detection of electric potentials very close to the source, minimizing the volume conductor's influence on the current sources at the fiber membranes. Consequently, action potentials of different MUs are relatively easily distinguishable, particularly at low to medium force levels. Signals which recorded from the intramuscular electrodes are intramuscular EMG (iEMG) and signals which recorded with surface electrode from the skin are surface EMG (sEMG). Surface EMG can be record with more than two electrodes like an array of electrode or a matrix of electrodes. In the case of using array of electrodes or matrix of electrode for recording EMG signals, we are using High-Density surface EMG (HD-sEMG). In iEMG we can only recorded from a small portion of the muscle in the near of the electrode location. In sEMG we can record from a bigger area of the muscle in respect to iEMG and in HD-sEMG recording we are able to record from whole of the muscle and also, we have the possibility to record from surrounding 32 Figure 1.6. Contour plot of a convex function and a non-convex function. An algorithm that computes a solution to an optimization problem within a certain accuracy, based on a specific instance of that problem, is known as a solution method. Since the late 1940s, substantial effort has been dedicated to developing algorithms for a range of optimization problems, analyzing their characteristics, and creating efficient software implementations. The efficacy of these algorithms, in terms of solving the optimization problem with varied degrees of success, depends on factors like the form of the objective and constraint functions, the number of variables and constraints, and any special structures such as sparsity (where each constraint function involves only a few variables). Even when dealing with smooth functions like polynomials, the general optimization problem remains challenging. Consequently, 33 approaches to solving the general problem often involve compromises like lengthy computation times or the potential for not finding a solution (Boyd and Vandenberghe 2009). Exceptions to the general difficulty of solving optimization problems do exist. In certain problem classes, we have effective algorithms capable of reliably solving large problems with hundreds or thousands of variables and constraints. Two prominent examples are least-squares problems and linear programs. It's worth noting that convex optimization is also an exception: Similar to least-squares or linear programming, there are highly effective algorithms for efficiently solving even large convex problems with reliability (Boyd and Vandenberghe 2009). 3.2.3 Least squares problem A least-squares problem is an optimization problem with no constraints (i.e., 𝑚=0) and an objective which is a sum of squares of terms of the form 𝑎𝑖𝑇𝑥−𝑏𝑖: 𝑚𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓0(𝑥)=‖𝐴𝑥−𝑏‖22= ∑ (𝑎𝑖𝑇𝑥−𝑏𝑖)2 𝑘𝑖=1 (1.3) Here 𝐴∈𝑅𝑘×𝑛 with 𝑘≥𝑛, 𝑎𝑖𝑇 are the rows of 𝐴, and the vector 𝑥∈𝑅𝑁 is the optimization variable. 3.2.3.1 Solving least-squares problem The solution of the least-squares problem can be reduced to solving a set of linear equations (𝐴𝑇𝐴)𝑥=𝐴𝑇𝑏 (1.4) so, we have the analytical solution 𝑥=(𝐴𝑇𝐴)−1𝐴𝑇𝑏. For least-squares problems we have good algorithms for solving the problem to high accuracy, with very high reliability. The least-squares problem can be solved in a time approximately proportional to 𝑛2𝑘, with a known constant. In many cases we can solve even larger least-squares problems, by exploiting some special structure in the coefficient matrix A. Suppose, for example, that the matrix A is sparse, which means that it has far fewer than 𝑘𝑛 nonzero entries. By exploiting sparsity, we can usually solve the least-squares problem much faster than order 𝑛2𝑘 (Boyd and Vandenberghe 2009). 3.2.3.2 Weighted least-squares The weighted least-squares cost function is: ∑𝑤𝑖(𝑎𝑖𝑇𝑥−𝑏𝑖)2 𝑘𝑖=1 (1.5) Where 𝑤𝑖,…,𝑤𝑘 are positive, is minimized. This problem can solve as a standard least-squares problem. In here the weights 𝑤𝑖 re chosen to reflect differing levels of concern about the sizes of the terms 𝑎𝑖𝑇𝑥−𝑏𝑖. In a statistical setting, weighted least-squares arises in estimation of a vector x, given linear measurements corrupted by errors with unequal variances (Boyd and Vandenberghe 2009). 3.2.3.3 Regularized least-squares In the regularized least-squares an extra term will add to the cost function. In the simplest case, a positive multiple of the sum of squares of the variables is added to the cost function: 34 ∑ (𝑎𝑖𝑇𝑥−𝑏𝑖)2+𝜌∑𝑥𝑖2 𝑛 𝑖=1 𝑘𝑖=1 (1.6) Where 𝜌>0. This problem can solve as a standard least-squares problem. The extra term penalizes large values of 𝑥, and result in a sensible solution in cases when minimizing the first sum only does not. The parameter 𝜌 is chosen by the user to give the right trade-off between making the original objective function ∑ (𝑎𝑖𝑇𝑥−𝑏𝑖)2 𝑘𝑖=1 small, while try to keep the regularized added part not to big. Regularization is utilized in statistical estimation when the vector x that needs estimation is assigned a prior distribution (Boyd and Vandenberghe 2009). 3.2.3.4 Application of least-squares The least-squares problem serves as the foundation for regression analysis, optimal control, and numerous parameter estimation and data fitting techniques. It can be interpreted statistically in various ways, such as maximum likelihood estimation of a vector x, considering linear measurements affected by Gaussian measurement errors. Identifying an optimization problem as a least-squares problem is relatively simple; we just need to confirm that the objective function is quadratic (and then check if the associated quadratic form is positive semidefinite). Although the fundamental least-squares problem has a straightforward structure, several standard techniques are employed to enhance its adaptability in practical applications. 3.2.4 Linear programming Another important class of optimization problems is linear programming, in which the objective and all constraint functions are linear: 𝑚𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑐𝑇𝑥 (1.7) 𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑎𝑖𝑇𝑥≤𝑏𝑖,𝑖=1,…,𝑚 Here the vectors 𝑐,𝑎1,…,𝑎𝑚∈𝑅𝑛 and scalers 𝑏1,…,𝑏𝑚∈𝑅 are problem parameters that specify that specify the objective and constraint functions. Unlike the least-squares problem, linear programming doesn't have a straightforward analytical formula for its solution. However, there are numerous highly effective methods for solving such problems, including Dantzig’s simplex method and the more modern interior-point methods. Although we cannot provide an exact count of arithmetic operations needed to solve a linear program (unlike least squares), we can determine rigorous bounds on the number of operations required to solve a linear program with a specified accuracy, using an interior-point method. The complexity in practice is order 𝑛2𝑚 (assuming 𝑚 ≥ 𝑛) but with a constant that isless well characterized than for least-squares. 3.3 Machine learning 3.3.1 Introduction The evaluation of neuromuscular information and EMG signals represents a formidable challenge in the field of biomedical engineering. The intricate nature of neuromuscular interactions, coupled with the dynamic variability of EMG signals, renders traditional manual 35 analysis insufficient for extracting meaningful insights. This complexity arises from the diverse factors influencing neuromuscular function, such as motor unit recruitment patterns, muscle fatigue dynamics, and the influence of neural pathways. Consequently, relying solely on human interpretation often leads to subjective assessments and limited diagnostic accuracy. To address these challenges, the integration of computer algorithms and machine learning has emerged as a crucial approach in advancing our understanding of neuromuscular physiology. Machine learning algorithms excel in processing large volumes of EMG data, identifying complex patterns, and discerning subtle variations that might evade human perception. These algorithms can classify EMG signals based on distinctive features, such as amplitude, frequency, and temporal characteristics, thereby enabling automated detection of abnormalities indicative of neuromuscular disorders. Furthermore, machine learning models can adapt and improve over time, enhancing their diagnostic capabilities and reducing the reliance on manual intervention. The synergy between computational techniques and neuromuscular evaluation not only streamlines the analysis process but also enhances the accuracy and reliability of diagnostic outcomes. By harnessing the power of computational algorithms, researchers and clinicians can delve deeper into the complexities of neuromuscular information, uncover hidden patterns, and provide personalized interventions tailored to individual patients. As technology continues to evolve, integrating advanced machine learning methodologies with clinical practice holds tremendous promise in revolutionizing the assessment and management of neuromuscular conditions, ultimately improving patient outcomes and quality of life. Machine learning algorithms have the ability to learn from data and perform classification tasks, attempting to classify input data into predefined classes. Additionally, machine learning algorithms are capable of clustering, aiming to identify different clusters within the data. The determination of the number of clusters depends on the algorithms, with some algorithms requiring knowledge of the number of clusters before performing clustering tasks, while others can perform clustering without any prior information about the number of clusters. In this section we will describe classification and clustering and for each one of them we will explain one of their common algorithms that later can be use on iEMG decomposition. 3.3.2 Classification algorithms 3.3.2.1 Linear Discriminant analysis Linear discriminant analysis (LDA) is a foundational method in data analysis credited to R. Fisher, initially devised for distinguishing between various flower types. Its core principle involves identifying a lower-dimensional subspace, relative to the original data dimension, where data points become distinguishable. Distinguishability is gauged using statistical metrics such as mean and variance. LDA offers the advantage of solving a generalized eigenvalue problem, enabling swift processing of large datasets. Furthermore, it can be adapted to non-linear scenarios via the kernel trick. While originally designed for binary classification tasks, extensions to multiclass scenarios have also been proposed (Xanthopoulos, Pardalos et al. 2013). 36 The objective of employing LDA is to reduce the dimensionality of the original data matrix. This is achieved through three sequential steps. Firstly, the calculation of separability among distinct classes, quantified as the between-class variance or matrix, by measuring the distance between their means. Secondly, the determination of within-class variance or matrix by assessing the distance between class means and samples within each class. Finally, the construction of a lower-dimensional space that optimizes between-class variance while minimizing within-class variance (Tharwat, Gaber et al. 2017). The between-class variance of the 𝑖𝑡ℎ class (𝑆𝐵𝑖) quantifies the difference between the mean of that class (µ𝑖) and the overall mean (µ). In the context of LDA, the objective is to find a lower-dimensional space that maximizes this between-class variance, thereby enhancing the distinction between classes. To illustrate the calculation of the between-class variance or matrix (𝑆𝐵), certain assumptions are made. Consider an original data matrix 𝑋=[𝑥1,𝑥2,…,𝑥𝑁], where 𝑥𝑖 represents the 𝑖𝑡ℎ sample, pattern, or observation, and 𝑁 is the total number of samples. Each sample is characterized by 𝑀 features (𝑥𝑖 ∈ ℝ𝑀), indicating that each sample is a point in an M- dimensional space. To compute the between-class variance (𝑆𝐵), the difference in mean values between different classes, denoted by (𝑚𝑖 − 𝑚), is calculated as follows: (𝑚𝑖−𝑚)=(𝑊𝑇𝜇𝑖−𝑊𝑇𝜇)2= 𝑊𝑇(𝜇𝑖−𝜇)(𝜇𝑖−𝜇)𝑇𝑊 (1.8) where 𝑚𝑖 represents the projection of the mean of the 𝑖𝑡ℎ class and is calculated as follows: 𝑚𝑖= 𝑊𝑇 µ𝑖. Here, 𝑚 denotes the projection of the total mean of all classes, and it is calculated as follows: 𝑚=𝑊𝑇 µ. In this context, 𝑊 signifies the transformation matrix of LDA, µ𝑖 (1 × 𝑀) denotes the mean of the 𝑖𝑡ℎ class computed as in equation (1.9), and µ (1 × 𝑀) represents the total mean of all classes computed as in equation (1.10). 𝜇𝑗=1 𝑛𝑗∑𝑥𝑖𝑥𝑖∈𝑤𝑗 (1.9) 𝜇=1 𝑁∑𝑥𝑖 𝑁 𝑖=1 (1.10) The term (µ𝑖 − µ)(µ𝑖 − µ)𝑇 in equation (1.8) signifies the separation distance between the mean of the 𝑖𝑡ℎ class (µ𝑖) and the total mean (µ), or simply represents the between-class variance of the 𝑖𝑡ℎ class (𝑆𝐵𝑖). Let's substitute 𝑆𝐵𝑖 into equation (1.8) as follows: (𝑚𝑖−𝑚)2= 𝑊𝑇𝑆𝐵𝑖𝑊 (1.11) The total between-class variance is calculated as follows, (𝑆𝐵 = ∑𝑛𝑖𝑆𝐵𝑖 𝑐𝑖=1 ). The within-class variance of the 𝑖𝑡ℎ class (𝑆𝑊𝑖) indicates the distinction between the mean and the samples of that class. LDA aims to find a lower-dimensional space that minimizes the difference between the projected mean (𝑚_𝑖) and the projected samples of each class (𝑊𝑇𝑥𝑖), thereby minimizing the within-class variance. The within-class variance of each class (𝑆𝑊𝑖) is computed according to Equation (1.12). 37 ∑(𝑊𝑇𝑥𝑖−𝑚𝑗)2= 𝑥𝑖∈𝑤𝑗,𝑗=1,…,𝑐 ∑𝑊𝑇𝑆𝑊𝑗𝑊 𝑥𝑖∈𝑤𝑗,𝑗=1,…,𝑐 (1.12) The total within-class variance signifies the sum of all within-class matrices across all classes, and it can be computed according to Equation (1.13). 𝑆𝑊= ∑𝑆𝑊𝑁 𝑁 𝑖=1 (1.13) Upon computing the between-class variance (𝑆𝐵) and within-class variance (𝑆𝑊), the transformation matrix (𝑊) of the LDA technique can be determined using Equation (1.14), known as Fisher’s criterion. This formula can be rephrased as shown in Equation (1.15). 𝑎𝑟𝑔𝑚𝑎𝑥 𝑊= 𝑊𝑇𝑆𝐵𝑊 𝑊𝑇𝑆𝑊𝑊 (1.14) 𝑆𝑊𝑊=𝜆𝑆𝐵𝑊 (1.15) Here, λ represents the eigenvalues of the transformation matrix (W). Solving this problem involves computing the eigenvalues (𝜆 =[𝜆1,𝜆2,...,𝜆𝑀]) and eigenvectors (𝑉 =[𝑣1,𝑣2,...,𝑣𝑀]) of 𝑊= 𝑆𝑊 −1𝑆𝐵, provided 𝑆𝑊 is non-singular. Eigenvalues are scalar values, while eigenvectors are nonzero vectors that satisfy equation (1.15) and provide information about the LDA space. Eigenvectors indicate the directions of the new space, while the corresponding eigenvalues represent the scaling factor, length, or magnitude of the eigenvectors. Each eigenvector corresponds to one axis of the LDA space, with its associated eigenvalue reflecting the strength of that eigenvector. The robustness of an eigenvector reflects its ability to differentiate between different classes, thus increasing the between-class variance and decreasing the within-class variance of each class, thereby fulfilling the LDA objective. Consequently, the eigenvectors with the k highest eigenvalues are employed to construct a lower-dimensional space (𝑉𝑘), while the remaining eigenvectors ([𝑣𝑘+1,𝑣𝑘+2,...,𝑣𝑀]) are disregarded. Each sample (𝑥𝑖), initially represented as a point in an M-dimensional space, will be projected onto a k-dimensional space (𝑉𝑘) by the following transformation: 𝑦𝑖 = 𝑥𝑖𝑉𝑘. 𝑌=𝑋𝑉𝑘 (1.16) In the end the LDA algorithm is: 1. Given a set of 𝑁 samples 𝑋=[𝑥(1,1) 𝑥(2,1) 𝑥(1,2) 𝑥(2,𝑀) ⋯𝑥(1,𝑀) 𝑥(2,𝑀) ⋮ ⋱ ⋮ 𝑥(𝑁,1) 𝑥(𝑁,2) ⋯ 𝑥(𝑁,𝑀)] (1.17) 2. Calculate the mean of each class with equation 1.9 3. Calculate the mean of all of the data with equation 1.10 4. Calculate between-class matrix as follow: 38 𝑆𝐵=∑𝑛𝑖(𝜇𝑖−𝜇)(𝜇𝑖−𝜇)𝑇 𝑐𝑖=1 (1.18) 5. Calculate within-class matrix: 𝑆𝑊= ∑ ∑ (𝑥𝑖𝑗−𝜇𝑗)(𝑥𝑖𝑗−𝜇𝑗)𝑇 𝑛𝑗 𝑖=1 𝑐𝑗=1 (1.19) 6. Based on the equations 1.18 and 1.19 calculate 𝑊 and then use equation 1.14. 7. Sort the eigenvector in descending order with respect to their eigenvalues and the select the first k eigenvectors. 8. Use equation 1.16. 3.3.2.2 Support Vector Machine Support vector machine (SVM) is a classification algorithm which is uses a simple mathematical model 𝑌=𝑊𝑋𝑇+𝛾 and manipulates it to allow linear domain division. The SVM can be categorized into linear and nonlinear models. A linear SVM is employed when the data domain can be straightforwardly separated, such as by a straight line or hyperplane, in the original domain. Conversely, a nonlinear SVM is utilized when the data domain cannot be linearly separated but can be transformed into a feature space where linear separation is feasible (Pisner and Schnyer 2020). The steps involved in a linear SVM encompass the mapping of the data domain into a response set and subsequently dividing the data domain. Conversely, in a nonlinear SVM, the steps include mapping the data domain to a feature space using a kernel function, then mapping the feature space domain into the response set, followed by dividing the data domain. Mathematically, the model of a linear SVM follows the linear equation 𝑌=𝑊𝑋+𝛾, whereas a nonlinear SVM adopts the nonlinear equation 𝑦=𝑊𝜙(𝑥)+𝛾, where the kernel function introduces nonlinearity (Öchsner and Makvandi 2020). The classification technique employing SVM involves parameterization and optimization objectives, which largely hinge on the topological class structure within the data domain. Specifically, these objectives must accommodate whether the classes are linearly separable or nonseparable. Notably, linearly separable classes may still be non-separable in a nonlinear context. Consequently, the parametrization and optimization objectives need to consider these class properties within the data domain. SVM can focus on different scenarios and in here we will focus on the linear classifier which can be separate linearly and for two classes. A straight-line equation is as follow: 𝑊𝑋𝑇+𝛾 =0 (1.20) 39 In the context of a data domain, this parameterized straight line serves to divide the domain into two distinct subdomains. Following a convention akin to decision tree-based models, let's denote these subdomains as 𝐷1 and 𝐷2, characterizing them as follows: 𝐷1=𝑋:𝑊𝑋𝑇+𝛾≤0 𝐷2=𝑋:𝑊𝑋𝑇+𝛾>0 (1.21) The points falling within these subdomains can be distinguished by assigning labels 1 for subdomain 𝐷1 and -1 for subdomain 𝐷2. Hence, the parametrization objective of the support vector machine can be formulated as follows: 𝑊𝑋𝑇+𝛾=1,𝑥∈𝐷1 𝑊𝑋𝑇+𝛾= −1,𝑥∈𝐷2 (1.22) In the parametrization objectives, we have introduced two straight lines (or hyperplanes) to delineate boundaries between classes. The optimization objective involves defining an objective function, such as the distance between these straight lines, and seeking parameter values that maximize this distance. Since these lines are parallel to each other, we can readily employ the standard distance formula between two parallel lines, denoted as 𝑌=𝑚𝑋+𝑏1 and 𝑌=𝑚𝑋+𝑏2 , as follows: 𝑑=(𝑏2−𝑏1) √𝑚2+1 (1.23) Where the slopes of the straight lines are 𝑚=𝑊, and their intercepts are 𝑏1=𝛾+1 and 𝑏2= 𝛾−1. Substituting these variables, we can establish the following: 𝑑= ±2 √𝑊𝑊𝑇+1 (1.24) Ultimately, this distance formula will serve as the measure for the optimization problem we construct. Hence, without loss of generality, we can rewrite it as follows: 𝑑= ±2 √𝑊𝑊𝑇 (1.25) In practice, the optimization problem for the support vector machine is typically formulated using mathematical norm notation. Hence, we rewrite the above equation as follows: 𝑑= ±2 ‖𝑤‖2 (1.26) By squaring both sides of the equation and subsequently dividing both sides by the value of 2, we can derive the following simple mathematical relationship: 𝑑2 2=1 ‖𝑤‖2 2 (1.27) It implies that rather than maximizing the distance function 𝑑2 2 , we can minimize ‖𝑤‖2 2. Put differently, we aim to minimize the prediction error concerning the aforementioned classifier while 40 simultaneously maximizing the distance between them (which constitutes the optimization objective). Therefore, we can define the following mathematical expression for the prediction error between 𝑥∈𝐷 and its response variables 𝑌: 𝑒=1−𝑌(𝑊𝑋𝑇+𝛾) (1.28) This error function plays a significant role in formulating the optimization problem for the support vector machine. The error function needs to be 𝑒≤0 and this will lead us to: 1−𝑌(𝑊𝑋𝑇+𝛾)≤0 (1.29) 𝑌(𝑊𝑋𝑇+𝛾)≥1 (1.30) By integrating the minimization objectives, we can formulate the following optimization problem, which serves as the foundation for the two-class support vector machine. 𝑚𝑖𝑛𝑚𝑖𝑧𝑒 𝑊,𝑌 :‖𝑊‖2 2,𝑤𝑖𝑡ℎ 𝑐𝑜𝑛𝑑𝑖𝑡𝑖𝑜𝑛:𝑌(𝑊𝑋𝑇+𝛾)≥1 (1.31) We can now extend this optimization problem to a multidimensional data domain with a comprehensive matrix representation as follows: 𝑚𝑖𝑛𝑚𝑖𝑧𝑒 𝑊,𝑌 :‖𝑊‖2 2,𝑤𝑖𝑡ℎ 𝑐𝑜𝑛𝑑𝑖𝑡𝑖𝑜𝑛:𝑆(𝑊𝑋𝑇+𝛾𝐼)≥𝐼 (1.32) The minimize term is the SVM measure and with condition is label error. It this equation 𝑋 is represent the data matrix in domain 𝐷, and 𝑆 is the response variables of 𝑋.𝐼 is the identity matrix and 𝛾is the intercept of the straight line. 3.3.2 Clustering algorithms In situations where the number of classes is unknown, or we aim to group similar samples together, we need to use clustering algorithms. Clustering algorithms have numerous applications in biomedical engineering, ranging from grouping different subjects into similar clusters to identifying clusters for each motor unit action potential among all active segments. In this section, we will introduce one of the most common clustering algorithms: k-means. The k-means is one of the most popular unsupervised learning algorithms that solve the well-known clustering problem. With considering 𝑋=[𝑥1,…,𝑥𝑛] as our dataset in 𝑚-dimention 𝑥𝑖∈𝑅𝑚, we can consider that we have vector 𝐴=[𝑎1,…,𝑎𝑐] which contain the centers of our 𝑐 clusters. Let 𝑧=[𝑧𝑖𝑘]𝑛×𝑐 where 𝑧𝑖𝑘is a binary variable indicating if the data point 𝑥𝑖 belongs to 𝑘th cluster. The objective function of k-means is as follow 𝐽(𝑧,𝐴)= ∑ ∑ 𝑧𝑖𝑘‖𝑥𝑖−𝑎𝑘‖2 𝑐𝑘=1 𝑛 𝑖=1 (1.34) The k-means algorithm is iterated through necessary conditions for minimizing the k-means objective function 𝐽(𝑧,𝐴) with updating equations for cluster centers and memberships, respectively, as 41 𝑎𝑘=∑𝑧𝑖𝑘𝑥𝑖𝑗 𝑛 𝑖=1 ∑𝑧𝑖𝑘 𝑛 𝑖=1 (1.35) 𝑧𝑖𝑘={1 𝑖𝑓 ‖𝑥𝑖−𝑎𝑘‖2=𝑚𝑖𝑛‖𝑥𝑖−𝑎𝑘‖2,1≤𝑘≤𝑐 0,𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒. (1.36) Where ‖𝑥𝑖−𝑎𝑘‖ is the Euclidean distance between the data point 𝑥𝑖and the cluster center 𝑎𝑘. The aim of clustering is generally to find the number of clusters in a dataset and in the k-means we need to first set this number. There are different studies to proposed methods for dealing with this problem like (Sinaga and Yang 2020). 3.4 Deep learning As we delve deeper into the realm of machine learning, one particular subset stands out for its remarkable capabilities in handling complex data structures and extracting intricate patterns: deep learning. Deep learning represents a sophisticated branch of artificial intelligence that leverages neural networks with multiple layers of interconnected nodes to process and interpret data. Unlike conventional machine learning algorithms that rely on feature engineering and manual extraction of relevant attributes, deep learning models autonomously learn hierarchical representations from raw input data, thereby unlocking unprecedented insights and predictive capabilities. In the context of biomedical engineering and neuromuscular disorders, deep learning holds immense promise due to its ability to handle high-dimensional and multimodal datasets with exceptional accuracy and efficiency. For instance, in analyzing EMG signals, deep learning architectures such as convolutional neural networks (CNNs) can automatically extract hierarchical features from raw EMG waveforms, capturing nuanced temporal and spatial patterns that signify specific neuromuscular activities or abnormalities. This level of abstraction and automatic feature learning surpasses traditional machine learning approaches, which often require manual feature extraction and domain expertise. Moreover, deep learning models excel in tasks requiring sequence modeling, such as timeseries analysis of EMG data to predict muscle fatigue, motor unit firing patterns, or gait abnormalities. Recurrent neural networks (RNNs) and their variants, equipped with long shortterm memory (LSTM) cells, can effectively capture temporal dependencies and dynamics in neuromuscular signals, enabling real-time monitoring, anomaly detection, and adaptive interventions tailored to individual patient profiles. The advantages of deep learning extend beyond data analysis to include scalability, adaptability, and generalization across diverse datasets and clinical scenarios. Deep learning models can scale seamlessly with increasing data volumes and complexity, learning intricate patterns that may elude human perception or conventional machine learning algorithms. Furthermore, the transfer learning capabilities of deep learning frameworks enable knowledge transfer across related tasks, facilitating rapid deployment and customization for specific neuromuscular disorders or patient populations. 48 5. MUAPs may be incorrectly assigned to a cluster (false positives). One approach to mitigate these issues is to consider the relative timing of active segments. Healthy MUs typically produce trains of MUAPs with regular firing patterns, with inter-discharge intervals falling within a certain range around their mean value. Incorporating firing time information, such as by not allowing active segments that are too close together in time to be in the same cluster or by merging clusters with interdigitating firing times, can reduce the occurrence of mixed clusters, false positives, and duplicate clusters. 4.2.6 Classification The classification step aims to identify the identities of active segments that were not initially identified in the clustering step. This process involves evaluating the shape and firing time of the active segment in relation to the MUAPs and already identified firing times of surrounding MUs. Many algorithms continuously update the MUAP templates used for classification as new occurrences are detected, enabling tracking of slow changes in MUAP shape over time. Certain iEMG decomposition programs offer the option for manual checking and editing of classification results. This allows experienced human operators to enhance the accuracy and reliability of the decomposition process. Additionally, some programs have attempted to incorporate expert knowledge into the decomposition algorithm to improve classification accuracy. 4.2.7 Resolving Superimpositions When two or more motor units discharge within a brief time frame, their MUAPs overlap and superimpose. The challenge of identifying the MUAPs engaged in a superimposition and determining their exact timing is referred to as resolving the superposition. Resolving superpositions is a time-consuming process, and as a result, not all decomposition programs perform this task. There are three types of superimpositions: constructive superimposition, destructive superimposition, and partial superimposition. In partial superimpositions, MUAPs are summed up in a way that their peaks are visible in the superimposition, usually containing multiple peaks within their signal. Generally, because most of the peaks related to different MUAPs are visible in the superimposition, this type of superimposition is easier to interpret. Figure 1.8-a shows an example of partial superimposition. In constructive superimposition, the MUAPs of different motor units are summed together in a way that their largest peaks align, resulting in a superimposition with a prominent peak. Figure 1.8-b provides an example of this type. The third version of superimpositions is destructive superimpositions, where MUAPs are summed up in a way that they cancel out each other's energy, often resembling background noise. Figure 1.8-c illustrates an example of destructive superimposition. Solving superimpositions is a challenging task because this is a problem cause in the continuous time domain and we are trying to solve them in the digital domain, and because we 49 have a limit number of samplings, we may not able to completely solve the superimposition of MUAPs if we only try to solve them in digital domain. For this reason, we need to solve this problem in the continuous domain and use continuous optimization algorithms. Another problem for solving the superimposition is that it is not known exactly each superimposition contain action potentials of how many motor units. One way for solving this problem is try to estimate which one of the motor units will fire in that specific time which this this superimposition was created. Another way is to consider all of the MUAPs and try to find the best combination of them that can give us the lost possible residual signal. Generally, the methods that can estimate the next firing of the motor units are more suitable here. There are different methods in the literature can solve superimposition of different MUAPs with a condition that we are already know which one of the MUAPs are involve of the superimposition. One of the ways for solving this problem is to do an exhaustive search and try to consider every possible situation that can occur. This situation can only consider in the theory and in the practice, if we consider to solve the problem in the digital domain only it is usually too much time consuming and, in the end, usually, we are not able to find the global minimum of cost function. In the case that we want to solve it in the continuous domain the exhaustive search method will not possible to implement because there are infinite number of situations that can cause such a superimposition. One method that is usually fast and, in the literature, has lots of usage is Peel-off (Etawil and Stashuk 1996, Christodoulou and Pattichis 1999). The Peel-off method only considers the highest peak and try to subtract the biggest peak of MUAP waveforms from the peak of superimposition and continue this process until all of the motor units were subtracted. There is another version of this algorithm which is use cross-correlation instead of max peak for finding the best location for removing the peak. The Peel-Off method is very fast but usually has a low accuracy and it is not able to solve the superimpositions completely. For improving the results of the Peel-Off methods other types of algorithms based on different continuous optimization are suggested. One of them is using branch and bound optimization (McGill 2002) and try to find the global minimum of the cost function smartly. This method has a high accuracy but in some situation the time for finding the best solution is too much even for offline processing. There are two other algorithms that were proposed in the literature which are based on the population-based optimization algorithms (Florestal, Mathieu et al. 2007, Marateb and McGill 2009) and they are not guarantee to find the global minimum of the cost function but they usually will find a good solution of the problem. The timing in here also like branch and bound algorithm is a problem and they are requiring too much time for solving a superimposition. The resolving superimposition is still an open problem and need to be solve, because there are lots of applications that require the iEMG signal to be decompose completely and also in realtime and none of them cannot be done without having a robust algorithm for resolving superimposition that can solve it in real-time and with acceptable accuracy. 50 Figure 1.8. Different types of MUAPs superimpositions. a) is a partial superimposition of MUAPs, b) is a constructive superimposition of MUAPs, and c) is a destructive superimposition of MUAPs 4.2.8 Annotation The primary outputs of iEMG decomposition consist of the firing times and MUAP waveforms of the detected MUs. Firing times may reflect either complete or incomplete firing patterns, depending on whether superpositions were resolved during decomposition. Additionally, supplementary clinical or physiological parameters may be provided. Parameters associated with firing patterns encompass: • Mean firing rate • Firing variability (standard deviation or coefficient of variation of inter-discharge intervals) • Degree of commonality among fluctuations in instantaneous firing rates (common drive) • Degree of short-term synchronization between firing patterns • MU recruitment and derecruitment thresholds In cases of incomplete firing patterns, robust methods are employed to estimate the mean firing rate and firing variability to compensate for potential missing or erroneous firings. The estimated firing rate enables the determination of how many actual firings are captured in the incomplete annotation, referred to as the identification rate or detection probability. 51 MUAP waveforms are derived by averaging the active segments corresponding to each specific MU. These MUAPs can also be averaged from alternative signals besides the one used for decomposition, allowing for compatibility with conventional clinical studies or architectural analysis. Alternative signals may include the wide-band (non-highpass filtered) iEMG signal, the signal from the cannula of a concentric needle electrode (macro EMG signal), or the signal from a surface electrode. Common parameters utilized to characterize a MUAP include amplitude, duration, and number of turns or phases. 4.3 High Density Surface EMG Decomposition 4.3.1 Introduction sEMG signals offer a noninvasive means to study the physiological and neural characteristics of muscles. They find extensive applications in biomechanics, ergonomics, sports science, and space science, as well as in clinical settings where needle electrodes are not preferred, such as in examinations of children and patients with conditions like hemophilia. One advantage of sEMG signals is that they originate from a relatively large cross-section of the muscle, potentially providing a more comprehensive representation of the overall muscle state compared to iEMG signals, which are limited to a small area around the electrode. However, sEMG decomposition presents challenges due to the similarity in shape of surface MUAPs. These MUAPs tend to exhibit comparable waveforms, complicating the task of distinguishing between individual motor units within the signal. Despite these challenges, advancements in signal processing techniques and electrode array technology have contributed to improving the accuracy and effectiveness of sEMG decomposition methods. In this thesis, the focus was on improving the iEMG decomposition; details about the HD- sEMG decomposition will not be covered. For more information about these types of algorithms, interested readers can refer to specific studies such as (Holobar and Zazula 2007). 4.3.2 Muscles force Skeletal muscles play a pivotal role in generating forces to facilitate movement or stabilize the skeleton. The force exerted by a muscle is influenced by the activation of motor units (recruitment) and the rates at which they generate action potentials (rate coding) (Duchateau and Enoka 2011). Throughout most of a muscle's range of operation, both processes occur simultaneously, with recruitment being more prominent at low forces and rate coding becoming significant at higher forces and during rapid contractions. In the Figure 1.9 you can see an example of recruitment of 17 motor units and their respective firing rate. In the figure you can see with increasing the force the number of motor units are increase as well. 52 Figure 1.9. The results of the decomposition of high-density surface EMG signals recorded from biceps muscle of contralateral hand of a stroke patient in doing 50% maximum voluntary contraction. Early studies on motor unit function observed a consistent sequence in the recruitment of motor units during voluntary contractions (Duchateau and Enoka 2011). This orderly recruitment formed the basis for the size principle, where smaller motor neurons with weaker muscle units and longer contraction times are recruited before larger motor neurons with stronger muscle units and faster contraction times (Henneman 1957). The sequence of motor unit recruitment is primarily determined by differences in motor neuron size (soma and dendrites), with smaller motor neurons requiring less current to reach the voltage threshold (Heckman and Enoka 2004). In human motor units, this principle is evident in the positive relationship between twitch force and recruitment threshold. The upper limit of motor unit recruitment varies among muscles, typically ranging from 50% to 90% of maximal voluntary contraction (MVC) force (Heckman and Enoka 2012). Because of the exponential distribution of recruitment thresholds across motor unit pools, most motor units are recruited at lower forces, with fewer being recruited as force increases (Fuglevand, Winter et al. 1993, Cutsem, Feiereisen et al. 1997). Thus, achieving high forces relies heavily on motor neurons' ability to reach high discharge rates, which may be influenced by neuromodulatory input regulating motor neuron excitability. The force produced by a motor unit during an action depends on the rate of action potential discharge by the motor neuron. This discharge rate is determined by the quality and quantity of ionotropic and neuromodulatory input received by the motor neuron, as well as time-dependent processes modulating its responsiveness. The modulation of discharge rate, known as rate coding, varies significantly across motor tasks (Merletti and Farina 2016). 53 Rate coding is typically assessed during submaximal isometric contractions with gradual changes in applied force. In such scenarios, earlier recruited motor units tend to achieve higher discharge rates (Westgaard and Luca 2001). However, as the target force approaches maximal MVC, later recruited motor units may surpass lower threshold motor units in discharge rates (Moritz, Barry et al. 2005). The combination of recruitment and rate coding that increases force during submaximal isometric contractions differs from that which decreases force. Although discharge rates decrease during force reduction, the force at which a motor unit is derecruited relative to its recruitment threshold varies (Heckman and Enoka 2012). The amount of force produced by the muscles is controlled by recruitment and rate coding. Our brain controls the amount of required force to perform a task, and generally, at low forces, the number of recruited motor units increases. As the contraction level increases, along with an increase in the number of motor units, their firing rate also increases until a point where all motor units are recruited, and the firing rate can no longer increase. There are physiological limitations that determine a motor unit's maximum firing rate. Force production and performing different movements are outcomes of the nervous system. Our brain, by controlling recruitment and firing rates of motor units, aims to precisely generate the required force for specific movements. For example, holding an egg or exerting handgrip force represents critical mechanical interactions between individuals and their external environment. This force generation finds applications in tasks such as opening doors, sports activities, and military operations. Understanding and estimating the force generated across different muscle groups, including forearm muscles, biceps, triceps, and lower limbs, is of paramount importance. In recent years, there has been an increase in lower limb amputations, alongside prevalent conditions like stroke, spinal cord injury, and other disabling disorders, which underscore the need for effective prosthetic solutions. Surface EMG emerges as a promising tool for controlling advanced prostheses, particularly in amputees through myoelectric-controlled prostheses. HD-sEMG enables the recording of electrical activity from hundreds of skin points, covering a significant portion of the target muscle's volume. This technique finds diverse applications in gait and movement analysis, myoelectric control, biofeedback, fatigue evaluation, gesture recognition, obstetrics, occupational medicine, aging research, rehabilitation, gaming, ergonomics, and force estimation. Various methodologies have been explored in the literature to address the EMG-force relationship, encompassing the Hill model, fast orthogonal search, polynomial fitting models, parallel cascade identification, diverse neural network architectures, and non-negative matrix factorization (NMF). However, each approach presents its challenges. For instance, while the Hill model offers a macroscopic perspective, its accuracy diminishes with differing firing frequencies and activation levels, particularly at low motor unit firing rates. Polynomial fitting models tend to overfit with increasing muscle involvement, leading to substantial prediction errors. Similarly, NMF methods rely heavily on precise dataset characteristics, potentially hindering generalization. 54 Generally, one thing that is required to consider is that the estimation of force produced by the muscles requires having information about the motor units that were involved in this force production and their firing pattern. More specifically, we need to completely decompose the signal and extract the information about the participating motor units and calculate the amount of force that was produced by each one of these motor units and sum them up. This task will give us complete information about muscle force production, but the problem is that the current algorithms of HD-sEMG decomposition are not able to completely decompose the signal and they will give us, in the best scenario, information about some of the motor units and not most of them. In the iEMG decomposition, we are able to completely decompose the signal but as mentioned in the resolving superimposition section, we need to first fully resolve the superimpositions of different MUAPs and then we can completely decompose the signal. In the iEMG signal decomposition, the real-time decomposition or offline decomposition mostly depends on the resolving superimposition algorithms. The estimation of muscle force holds profound implications across various domains, including biomechanics, kinesiology, exoskeleton and prosthesis control, grasping force, and military applications. Numerous studies have endeavored to elucidate the EMG-force relationship and predict force in different muscle groups, spanning the biceps, triceps, forearm muscles, hand grip, and lower limbs. We need to consider that lots of application of muscle force estimation is application when we record the signals non-invasively and more specifically, we record them by HD-sEMG electrodes. As mentioned, the HD-sEMG decomposition algorithms are not able to completely decompose the EMG signals and therefore we have a problem for estimation of force produced by the muscle when we want to use types of signals. The estimation of force produced by the muscles is still an open problem because we are and it is necessary to completely decompose the HD-sEMG signals in real-time to answer the required needs. This problem can be seen from another perspective, and it is possible to estimate the force produced by the muscles precisely without decomposition of the HD-sEMG signals and by only using the envelope of these signals. Of course, this solution will not give us complete information about the motor units and their firing pattern, but it will solve many problems that require the estimation of force produced by muscles. In this thesis, one of our focuses is on this area, and we will try to solve the problem of force estimation using the envelope of the signals and in real-time. 5. Robotic devices and exoskeleton Neuromuscular conditions such as stroke, spinal cord injury, and muscular dystrophy, along with neurodegenerative disorders like multiple sclerosis and amyotrophic lateral sclerosis, often result in significant motor function impairments. Patients with these conditions typically need to engage in rehabilitation to lessen adverse impacts and enhance their mobility and overall well-being. However, they may also require ongoing assistance for daily living activities due to their dependency (Bardi, Gandolla et al. 2022). 55 Upper limb disabilities significantly affect a person's quality of life by limiting their ability to perform basic activities independently. Wearable rehabilitative and assistive devices, including exoskeletons, can be crucial in this regard. Exoskeletons consist of rigid structures attached to the user's limbs and actuators that apply torque at the joints. These devices are primarily developed for three main applications: (i) motor rehabilitation for individuals with limb impairments (rehabilitation scenario), (ii) assistance with daily living activities for individuals with disabilities (assistive scenario), and (iii) enhancing motor abilities of healthy individuals in settings such as industrial work, military operations, or sports (augmentation scenario) (Bardi, Gandolla et al. 2022). In the rehabilitation scenario, wearable robots assist therapists by delivering rehabilitative exercises. Compared to traditional therapy, these robots offer several advantages: they allow for a greater number of repetitions per session, provide objective measurements of the patient’s performance, reduce the therapist’s physical workload, and enable monitoring of the patient’s engagement in the exercises. These benefits help increase the training dose, customize the training intensity, and encourage patient participation, which are essential for effective motor re-learning (Bardi, Gandolla et al. 2022). In the assistive scenario, wearable robots are designed to aid in daily activities such as drinking, eating, reaching, and personal hygiene. These assistive devices can help users regain some independence and enhance their ability to participate in daily life, which is crucial for their psychological and social well-being. In the augmentation scenario, wearable robots deliver high torques to enhance an individual's capabilities beyond their natural limits or to distribute the load applied to their limbs. The primary objective is to prevent musculoskeletal disorders associated with strenuous and repetitive tasks and to lower the metabolic cost. Wearable robots can be categorized based on how they assist or enhance the user's movements. The initial classification divides these devices into two types: "rigid exoskeletons," which use a rigid frame to apply torques, and "soft robotic suits," which do not rely on a rigid structure. While rigid exoskeletons offer precise trajectory tracking and can exert significant torques, they also have several drawbacks: (i) their heaviness and bulkiness increase system inertia and the metabolic cost of wearing them; (ii) they are costly; (iii) their rigid links limit the natural degrees of freedom of human joints and require precise alignment, which is time-consuming; (iv) even minor misalignments can interfere with natural limb movements; (v) they lack aesthetic appeal. These disadvantages hinder the widespread adoption of rigid exoskeletons for home rehabilitation or daily assistance outside clinical settings. Consequently, soft robotic devices have emerged as a promising alternative. These robotic suits are inherently flexible due to the absence of rigid links and the use of soft materials, such as fabric or soft polymers, as the interface with the user's limbs. The advantages of using these materials include: (i) they support the user's movements without excessively restricting the joints, 56 thereby preserving mobility and flexibility; (ii) they do not require precise joint alignment, which reduces the time needed to put on the device; (iii) they enhance comfort and ease of use, making the device easier to don and doff; (iv) they lower the device's overall weight and bulk, improving portability; (v) they reduce costs. These features make soft robotic devices particularly promising for providing rehabilitation and assistance outside of clinical settings. However, despite these advantages, robotic suits face several challenges that necessitate further research. Specifically, they function more like external muscles than external skeletons. This reliance on the user’s skeletal structure limits the application of high torques, which could potentially injure the wearer. Additionally, their inherent compliance reduces the precision of movements and the level of assistance, complicating control. The sleeve can slide, affecting sensor data accuracy and making force transmission unreliable. Increased shear forces on the skin are another concern. Upper limb assistance with soft robotic devices presents additional challenges. Unlike lower limb devices, which often use control strategies based on the repetitive nature of walking, upper limb devices must handle a wide range of dynamic tasks, unpredictable interactions with the environment, and the complex biomechanics of the arm. This makes controlling these devices more complicated. When a subject retains some residual muscle activity, surface electromyographic (sEMG) signals can be used to trigger assistance. Several methods have been explored (Choi, Kang et al. 2019, Hosseini, Meattini et al. 2020, Nam, Rong et al. 2022). The simplest approach involves setting a threshold that the sEMG signal must exceed to activate assistance. This threshold can be either single or double. Additionally, a time-over-threshold criterion can be applied to help filter out artifacts. EMG signals can also be used to estimate muscle torque, allowing for the determination of the appropriate level of assistance. A key benefit of this method is that it detects the user's intention before movement occurs, enabling timely assistance. Furthermore, using EMG signals allows for monitoring the user's active participation in the task, which can enhance rehabilitation outcomes. However, one significant drawback is that these techniques require a calibration procedure for each user and session due to electrode repositioning. EMG decomposition, as previously described, is a method for extracting information about motor units and understanding how the nervous system recruits and controls them. This technique can be particularly useful in patients with various neuromuscular diseases, as it allows us to extract neural commands and apply them in exoskeletons and robotic devices to improve their efficiency. With this additional information, robotic devices can be personalized to better meet the user's needs, using their neural signals to control the device for daily tasks and rehabilitation training. In practical scenarios, feedback from EMG signals to robotic devices doesn’t always require results from EMG decomposition. Residual muscle force and movement estimation can be achieved using sEMG signals in real-time without decomposing them. While EMG decomposition 57 can provide more accurate results when the signals are fully decomposed, using surface EMG data alone can still be very effective. In assistive scenarios, where individuals require long-term use of robotic devices, information from EMG decomposition can help these devices better adapt to the patient's condition, aiding them in regaining a normal life. For healthy individuals, in augmentation scenarios, this technology can enhance their quality of life and expand their abilities. 6. Objectives 6.1 General objective The general objective of this thesis is to obtain novel, detailed and precise information from EMG signals and solving the problem in real time for its future usefulness and application in mobility assistive devices or in motor rehabilitation technologies. EMG signals allow us to recognize different movements more clearly and control the prosthesis with higher accuracy, particularly in the control of force. 6.2 Specific objectives In this thesis, our aim is to answer the following specific objectives, which are aligned with the general objective defined above: - To identify the most accurate algorithm in the literature for resolving the superimposition of motor unit action potentials, and to determine the fastest algorithm suitable for real-time applications. - To propose a new algorithm for resolving the superimposition of motor unit action potentials that has comparable accuracy to state-of-the-art algorithms and can operate in real-time for controlling prostheses for both the lower and upper limbs. - To estimate the force produced by different muscles involved in movement from their respective EMG signals with high accuracy and in real-time, applicable for prostheses of the lower and upper limbs. 64 subtracted from the superimposed signal. The residual signal is then used as the input signal, and the correlation analysis continues with the unchecked templates until all the templates are selected. The discrete-time shifts related to the maximal cross-correlations are reported as the estimated time shifts (Etawil and Stashuk 1996). 3.4 Branch and bound Branch and bound (BB) is an algorithm to find a finite-state optimization problem’s exact solution. It was used to resolve the superimposed MUAPs through an effective search strategy to identify the best solution in the discrete-time domain. Then, it was used as the initial locations to find the continuous-time shifts using gradient-based algorithms. BB uses a tree strategy to find the best solution in the discrete time search space. It also interpolated the signals to create a rich search space (a.k.a., the branching strategy). The pruning rules were also used to determine the lower error bounds for the possible alignments (McGill 2002). 3.5 Genetic algorithm The GA algorithm has several steps for resolving superimposed MUAPs. First, all of the templates are oversampled. They are slightly shifted and then are sampled back to the original rate. This procedure creates slightly different copies of each template. The peel-off algorithm then uses them, and if any fits are acceptable, which is identified by a normalized pseudo-correlation fitness function, the algorithm terminates. Otherwise, they are used as part of the initial population for the GA. Such initial alignments are considered as chromosomes, while the time shifts are alleles. The algorithm then evaluates the fitness of each chromosome with a normalized Manhattan distance fitness function. Using the discrete time-shifts as the initial point, the continuous time shifts are estimated using the decent gradient algorithm. The new population is generated based on their fitness, and their crossover is performed for new offspring. Also, the new offspring have a mutation. This procedure continues for five consecutive generations, and the best alignment is then reported. 3.6 Particle swarm optimization PSO algorithm simulates an animal’s social behavior, including birds and fish. These swarms conform to a cooperative way to find food, and each member in the swarms keeps changing the search pattern according to the learning experiences of its own and other members. PSO was used to resolve superimposed MUAPs by considering each particle in the swarm as a search space solution. Each particle is influenced by its own (i.e., cognitive term) and its neighbors’ experience (i.e., social term) in the star topology. The algorithm also uses crossover, randomization, and swarm re-generation strategies to improve global search (“exploration”) and local search (“exploitation”). The uniform pseudo-random and Sobol’s quasi-random sequences were used for random generation to explore the search space better. The stopping criteria are the combination of the number of iterations and the change in the best solution. 3.7 Performance assessment Each superposition was resolved using the PO, BB, GA, and PSO algorithms. Also, to test whether the PO algorithm would be improved by interpolation, it was also resolved using the PO 65 algorithm after upsampling the waveforms by a factor of 10, which we will refer to as the POI algorithm. In each case, it was assumed that the templates’ identities involved in the superposition were known. For each resolution, the time shifts estimated by the algorithm were compared with the actual time shifts, and the offset errors were stratified into three classes: < ± 0.1 ms (essentially correct), ≤ ± 0.5 ms (close), > ± 0.5 ms (incorrect). The accuracy of each resolution was measured by the overall accuracy (𝐼𝑑=𝑛𝑐 𝑛𝑖+𝑁 , where 𝑛𝑐 is the number of essentially correct time shifts, 𝑛𝑖 is the number of incorrect time shifts, and N is the total number of templates involved in the superposition). Also, the average and maximum running time of the superposition resolving algorithms was recorded. The simulations were performed on an Intel dual-core 1.83 GHz CPU with 2 GB of RAM. To identify the rank of the analyzed algorithms on the entire datasets and number of templates based on the performance indices Id and running time, the rank of each protocol was identified and then combined using the Rank Product (RP) (Breitling, Armengaud et al. 2004). Each criterion was considered as a ranker (k = 2). The overall RP for each superimposed MUAP resolution method (g) was estimated as below: 𝑅𝑃(𝑔)=(∑𝑟𝑔,𝑖 𝑘𝑖=1 )1𝑘 (2.2) where 𝑟𝑔,𝑖 is the rank of the method g of the 𝑖 − 𝑡ℎ ranker. RP values were then ordered in ascending order. 3.8 Statistical methods Continuous variables were reported as MEAN ± SD. The generalized Estimating Equation (GEE) method was used for modeling factors associated with repeated responses (i.e., 1000 random realizations of superpositions). GEE was used to find significant factors (MUAP set and the number of constituent templates) affecting the superposition resolution algorithms’ performance/efficiency. Also, Friedman Post hoc statistical test was used to identify which algorithm significantly outperformed the others. The level of statistical significance of p = 0.05 was used in our study. The statistical analysis was performed using SPSS Statistics for Windows version 22 (IBM Corp. Released 2013. Armonk, NY: IBM Corp.). 4. Results The performance of the algorithms (BB, GA, PSO, PO, and POI) was assessed on sets 1 and 2 with superpositions involving N = 2 to N = 5 constituent templates) (Table 2.1). 66 Table 2.1. The performance of the analyzed MUAP superimposed resolution algorithms onsets 1 and 2 in MEAN ± SD [maximum]. Set 1 Set 2 Number of Templates (N) algorithm 𝐼𝑑% + std [max] Time(ms) + std [max] 𝐼𝑑%+ std [max] Time(ms) + std [max] 2 BB 0.99±0.02 [1.00] 17 ± 3 [35] 1.00±0.00 [1.00] 19±4 [35] GA 0.99±0.08 [1.00] 43.11 ± 40.31 [930.51] 1.00±0.03 [1.00] 41±48 [672] PSO 1.00±0.00 [1.00] 1564 ± 236 [5565] 1.00±0.00 [1.00] 1561±196 [4018] PO 0.49±0.32 [1.00] 0.23±0.09 [1.99] 0.47±0.37 [1.00] 0.15±0.05 [0.51] POI 0.52±0.34 [1.00] 1.80±0.15 [4.07] 0.49±0.38 [,1.00] 1.80±0.15 [3.03] 3 BB 0.99±0.07 [1.00] 43 ± 18 [166] 1.00±0.00 [1.00] 67 ± 25 [189] GA 0.97±0.12 [1.00] 157 ± 142 [1294] 0.99±0.11 [1.00] 108 ±131 [1476] PSO 0.99±0.05 [1.00] 3070 ± 488 [6598] 1.00±0.00 [1.00] 3078 ± 496 6523] PO 0.32±0.21 [1.00] 0.23±0.09 [1.11] 0.30±0.23 [1.00] 0.19±0.06 [0.56] POI 0.33±0.22 [1.00] 2.57±0.48 [6.42] 0.32±0.25 [1.00] 2.32±0.14 [,3.38] 4 BB 0.98±0.10 [1.00] 144 ± 107 [1317] 1.00±0.02 [1.00] 384 ±230 [1724] GA 0.93±0.17 [1.00] 272 ± 268 [3346] 0.97±0.14 1.00] 198 ±182 [2119] PSO 0.98±0.10 [1.00] 7113 ± 557 [10076] 0.99±0.07 [1.00] 7210 ± 591 [12663] PO 0.26±0.17 [1.00] 0.21±0.06 [0.48] 0.25±0.18 [1.00] 0.23±0.06 [0.45] POI 0.27±0.17 [1.00] 3.02±0.42 [6.94] 0.26±0.19 [1.00] 2.86±0.16 [3.92] 5 BB 0.94±0.16 [1.00] 748 ± 1092 [18307] 0.99±0.06 [1.00] 3633 ± 3001 67 [21888] GA 0.84±0.25 [1.00] 326 ± 169 [2375] 0.87±0.28 [1.00] 328 ± 179 [1785] PSO 0.95±0.15 [1.00] 10940 ± 1132 [16762] 0.94±0.20 [1.00] 11012 ± 1002 [16405] PO 0.21±0.14 [1.00] 0.24±0.06 [0.56] 0.21±0.14 [0.80] 0.24±0.07 [,0.50] POI 0.21±0.15 [1.00] 3.47±0.29 [6.49] 0.21±0.15 [0.80] 3.41±0.27 [8.38] 4.1 The overall accuracy analysis The data set, algorithm, and the number of templates were statistically significant (p < 0.05). PSO algorithm was statistically better than the other algorithms (p < 0.05), followed by BB, GA, POI, and finally, PO. 4.2 Running time analysis The data set and algorithm were statistically significant (p < 0.05). The PO algorithm was significantly better than the other algorithms (p < 0.05), followed by POI, GA, BB, and PSO. To better analyze the algorithms, the cases in which the PO was not successful (Id < 30%), i.e., cases involving constructive or destructive superposition, were re-analyzed separately (which we will refer to as the hard set). The results for BB, GA, PSO are shown in Figs. 2.3, and 2.4. 68 Figure 2.3. The overall accuracy of the BB, GA, and PSO methods for resolving superimposed MUAPs in two, three, four, and five combinations on the hard set 1 and 2. 69 Figure 2.4. The running time of the BB, GA, and PSO methods for resolving superimposed MUAPs in two, three, four, and five combinations on the hard set 1 and 2. 4.3 The overall accuracy analysis on the hard set The data set, algorithms, and the number of templates were statistically significant. BB algorithm was statistically better than others (p < 0.05), followed by PSO, GA. 4.4 Running time analysis on the hard set The data set, algorithm, and number of templates were statistically significant. The POI algorithm was significantly better than the other algorithms (p < 0.05) followed by GA, BB, and PSO. 4.5 The overall results using rank product When combining the 𝐼𝑑 and running time based on the Rank Product formula (Eq. (2.1)), the PSO significantly outperformed the other algorithms following by BB, GA, PO, and POI in the first dataset (p < 0.05). For the second dataset, the algorithm’s ranking was BB, PSO, GA, PO, POI. In the first hard dataset, the ranking was PSO, BB, and GA, while in the second hard dataset, the ranking was BB, PSO, GA. Combining the results of the first and second datasets, the overall ranking was BB, PSO, GA, PO, and POI. In the hard datasets, the ranking was BB, PSO, and GA. Thus, we conclude that the BB algorithm significantly outperformed the other algorithms, considering different normal/hard datasets (p < 0.05). 70 We also randomly changed the amplitude of the MUAPs in superpositions by the maximum 30% of their peak-to-peak value to increase the generalization capability of the results. The performance of the methods did not significantly change (p > 0.05). As an example, the overall accuracy of the BB algorithm was shown in Fig. 2.5 in this validation scenario, which is similar to Table 2.1. It indicated that our conclusion about the BB algorithm does not change. Figure 2.5 The overall accuracy of the BB algorithm for resolving superimposed MUAPs in two, three, four, and five combinations on the set 1 and 2, after changing the MUAPs’ amplitude randomly. It was shown in the literature that the alignment error is affected by the SNR of the superposition. Thus, the BB algorithm’s overall identification for superpositions involving two constituent templates of the first set at different noise levels is shown in Fig. 2.6. The algorithm’s performance was identical from the no-noise condition to the noise level of 0.05, which was used in the current study. The identification rate was higher than 90% when the noise level was 0.1 or less. 71 Figure 2.6 The overall identification of the BB algorithm for 2-constituent superpositions from the first set at different noise levels. The standard deviation of the added noise was the noise level multiplied by the peak-to-peak of the superimposed signal. 5. Discussion In this article, we analyze the most important and popular algorithms used for resolving superposition in iEMG decomposition. This study aimed to compare all of these algorithms in hard conditions in accuracy and computation time. Our study has some limitations. Current findings are based on simple simulation procedures. We focused on known constituent cases. Moreover, the running time analysis was used as a measure of computational complexity. For creating a hard condition, we used two datasets, one of which included MUAPs with a variety of energies and one of which included MUAPs with similar shapes. We simulated 8000 superpositions that covered all possible types of superpositions (constructive, destructive, and partial). The PO algorithm is the fastest and easiest algorithm for resolving superpositions, but because it is based on finding the highest similarity between the templates and the superposition, it does not do well when it encounters constructive and destructive superpositions. The performance did not improve when signals were upsampled by a factor of 10 (POI), showing that the difficulty is not merely a result of time quantization but reflects the difficulty of resolving superpositions in which none of the constituent templates are immediately recognizable. The central part of the cost function (Eq 2.1) is plotted as a function of template shifts in a 2 of combination case in Fig. 2.7. For clarity, it is plotted upside-down so that the peaks correspond to good alignments. This central part has many local maxima, making it hard for any optimization algorithm to find the global maxima. The PO algorithm found the time shifts of [the first template: − 0.400, the second template: 0.00] (ms), while the actual time shifts were [0.816, 0.049] (ms). 72 Thus, the PO method got stuck in a local maximum—the number of maxima increases when the problem’s dimension increases. Thus, the PO method (and the others) fail much more in 5 of 5 combinations (Table 2.1). The noise added to the superposition creates another problem: the global maximum of the cost function is not always related to the best alignment (Fig. 2.6). This problem is related to the background activity and the instrumentation noise in practice. Figure 2.7 The cost function for a superposition with two MUAPs. For clarity, it was plotted upside down, so that the peaks correspond to local optima. PSO and GA algorithms are population-based algorithms, and there is no guarantee that they can reach the global minimum. Also, their speed is not fast enough for real-time applications. The BB algorithm intelligently searches for the global minimum and, in many cases, finds it quickly. However, because resolving a superposition is a non-convex problem and the search space may be quite large, it sometimes takes many iterations to find the global minimum and prove that it is indeed the global minimum. Because the PO algorithm could not resolve many of the constructive and destructive superpositions, we decided to look at those cases more closely (hard set). The analysis showed that all the other algorithms had a higher 𝐼𝑑 on the hard set than on the full set. It seems that BB, PSO, and GA also have some problems in resolving the partial superpositions, and when these cases were removed, the accuracy of these algorithms increased. Although the BB algorithm is fast in some cases, there are other cases where the BB algorithm spends too much time. For example, for five constituent templates from set number 2, the BB algorithm had a maximum computation time of 21.88 s, which is a massive time for resolving superpositions of MUAPs. The BB, PSO, and GA algorithms have a high enough accuracy to be suitable for applications that require accurate full decomposition. However, at present, their use is limited to offline applications since they are too slow for real-time use. 73 80 Where, 𝐽𝑖= 𝜕𝑒2 𝜕𝜙𝑖 (3.9) The first-order approximation of 𝑒2(𝜑 + 𝛿) in vector notation is the following: 𝑒2(𝜙+𝛿) ≈ ‖𝑋−𝑆𝑘𝜙−𝐽𝛿‖2 (3.10) After taking the derivative and setting it to zero, we have: (𝐽𝑇𝐽)𝛿= 𝐽𝑇[𝑋−𝑆𝑘𝜙] (3.11) where 𝐽 is the Jacobian Matrix. By using Levenberg’s contribution, we obtain: (𝐽𝑇𝐽+𝜆𝐼)𝛿= 𝐽𝑇[𝑋−𝑆𝑘𝜙] (3.12) where 𝐼 is the identity matrix and 𝜆 is the damping factor. The LMA is, in fact, the combination of the Gauss-Newton and gradient descent algorithms. The method proposed by Marquardt (Marquardt 1963) was used to tune the damping factor adaptively. It was initially set to 𝜆(0) = 0.1 in our study. Its scaling factor (𝜈) was set to 2. The damping factor was scaled by the scaling factor if the sum square error (𝑒2) is reduced at each iteration. Otherwise, the damping factor increased to reduce the sum square error. 3.4 Fusion HRBC (FHRBC) The use of the 𝑙2-norm does not always result in a discrete time solution that converges to the globally best continuous time solution. This is partly due to the background noise and its distribution (Marateb and McGill 2009). In FHRBC, two other cost functions were used in addition to the 𝑙2-norm (Fig. 3.3): the 𝑙1-norm, which is more robust to noise, and the average amplitude change (AAC) (Phinyomark, Phukpattaranont et al. 2012). AAC was defined as follows: 𝐴𝐴𝐶=1 𝑁∑ |𝑥𝑖+1−𝑥𝑖 | 𝑁−1 𝑖=1 (3.13) where, 𝑁 is the length of the residual signal, and 𝑥𝑖 is the 𝑖𝑡ℎ element of the residual signal. 3.5 Parallel Algorithm One of the benefits of the HRBC and FHRBC algorithms is that they can use a parallel implementation to improve efficiency. The block diagram of the parallel FHRBC algorithm is shown in Fig. 3.4. The discrete part of the algorithm (DBC) is, in fact, implemented in parallel in which different permuted time shift sets are tested as a separated process. The DBC algorithm implemented in parallel is referred to as the parallel DBC algorithm. 3.6 An Example of the FHRBC Algorithm In this subsection, an example is provided to describe how the FHRBC algorithm works. A superposition was created by shifting templates 5, 4, and 8 of Fig. 3.5 by −7.0719, 2.9947, and −7.5464 samples, respectively, and adding them together along with background noise. Time shifts 81 (∅) that are fractions of the sampling interval were computed by the inverse Fourier transform of the rotations in the frequency domain (McGill and Dorfman 1984): 𝑋𝑘,∅=𝑋𝑘exp(𝑗2𝜋𝑘∅ 𝑁) (3.14) The algorithm considered six permutations [(12,3), (13,2), (21,3), (31,2), (23,1), (32,1)]. The algorithm peeled off the templates in the prescribed order for each permutation, resulting in the six residual signals shown in Fig. S1: P1-P6. The FHRBC algorithm calculated the 𝑙2-norm, 𝑙1-norm, and AAC of each residual signal and chose the minimum for each norm. In this case, permutation P4 had the minimum 𝑙2-norm, and AAC and P5 had the minimum 𝑙1-norm. The corresponding sets of discrete-time shifts were sent to the LMA procedure, which used them as starting points to find the optimal continuous time shifts. In our example, both P4 and P5 converged to the same set of continuous-time shifts: −6.9689, 2.8945, −7.5772 samples, with an 𝑙2-norm of 0.54. The final estimation errors of the time shifts were 0.10, 0.10, and 0.03 samples. Table S1 shows the estimated time shifts for each step of the algorithm. 82 Figure 3.3. Block diagram of FHRBC algorithm. 1* = Select the ith order of permutation array and name it as current_temps and then i++. 2* = Pick j template of current_temps array and calculate cross-correlation between it and superimposed then j++. 3* = Find best match of crosscorrelation result and save best match in shift array and minus shifted template from superimposed and save result in residual vector. 3.7 iEMG Datasets Two sets of MUAP templates, taken from iEMG signals from the public domain database at www.emglab.net, were used in our study. They were sampled at 10 kHz and high-pass filtered at 1 kHz (Shirzadi, Marateb et al. 2021). The first set had ten MUAPs with a variety of energies (5000–130000)(𝜇𝑉 ) 2(Fig. 3.5), while the second set had six MUAPs with a high degree of similarity (average bivariate correlation coefficients of 0.59 ± 0.28) (Fig. 3.6). In the first set, we simulated 7000 superimpositions from 2 to 8 MUAPs, while in the second set, we simulated 4000 superimpositions from 2 to 5 MUAPs. The time shifts of the MUAPs were randomly distributed 83 between −1ms to +1ms, which produced more constructive and destructive rather than partial superimpositions. For simulating practical situations, we added uniform random noise that varied from −5% to 5% of the difference between maximum and minimum of the signal to each of the samples of the resulting superimposition. Also, for simulating the effect of movement of electrodes, we randomly changed the MUAP amplitudes involved in the superimposition to improve the generalization of the results (Shirzadi, Marateb et al. 2021). The amplitude gain was randomly distributed between 0.7 and 1.3, and was randomly applied to the involved MUAPs. Figure 3.4. Block diagram of parallel FHRBC. 1* = Pick j template of current_temps array and calculate crosscorrelation between it and superimposed then j++. 2* = Find best match of crosscorr result and save best match in shift array and minus shifted template from superimposed and save result in residual vector. 84 Figure 3.5. Ten MUAP templates in the set 1 of iEMG decomposition dataset and some examples of the noisy superimpositions along with the constituent MUAP templates. 3.8 Neural Recording Dataset The benchmark dataset proposed by Pedreira et al. (Pedreira, Martinez et al. 2012) was used for spike sorting. Spike-triggered averaging was used to extract different spikes (McGill, Lateva et al. 2005). Two spike sets were then generated. The first set had 10 spikes with a wide variety of energies (0.75 – 9.79) (𝜇𝑉)2 (Fig. 3.7) while the second set had 11 spikes with a high degree of similarity (correlation 0.58 ± 0.24) (Fig. 3.8). This dataset was recorded with a 24 kHz sampling frequency. For each spike set, 1000 different superimpositions of combinations of 2 to 8 spikes (a total of 14000 for the entire set) were simulated. Electrode movement and background noise were simulated as with iEMG. 85 Figure 3.6. Six MUAP templates of the set 2 of iEMG decomposition dataset and some examples of noisy superimpositions along with their constituent MUAP templates. 86 Figure 3.7. Different Spikes in the set 1 of neural recording dataset and some examples of noisy superimpositions (overlapping Spikes) (bottom). 87 Figure 3.8. Different Spikes in the set 2 of neural recording dataset and some examples of noisy superimpositions (overlapping Spikes) (bottom). 3.9 Real-Time Decomposition of Experimental Signals The performance of the proposed DBC algorithm was further assessed in conjunction with a real-time iEMG decomposition algorithm on experimental signals. The iEMG decomposition algorithm proposed by Karimimehr et al. (Karimimehr, Marateb et al. 2017) was used in our study. In this algorithm, superimposed MUAPs were not resolved. The active segments with superimposed MUAPs were thus resolved by the DBC algorithm. The identities of the Mus involved in the superposition were estimated from the expected firing times of the MUs based on the firing times of their surrounding discharges (McGill, Lateva et al. 2005, Marateb and McGill 2016). Experimental signals recorded from biceps femoris long-head (BFlh), tibialis anterior (TA), and Vastus Medialis obliquus (VM) muscles were used in our study. The experimental protocol was described elsewhere (Karimimehr, Marateb et al. 2017). Briefly, the constant force plateau regions of isometric contractions were analyzed. The levels of contractions were 5% and 10% MVC for BFlh (five subjects, all men) and 10% and 30% MVC for VM (five subjects, all men). The subjects were asked to increase the strength of the contraction of the TA muscle until the iEMG signal contained from 6 to 12 active MU trains, as judged by the investigators. All subjects were informed about the study protocol in accordance with the Declaration of Helsinki and approved by the local ethics committee. To check the results of the DBC algorithm, the singlechannel signals were decomposed by EMGLAB (McGill, Lateva et al. 2005) and then manually corrected by an experienced operator. The decomposition results were then corrected using a 88 rigorous a posteriori statistical analysis (McGill and Marateb 2011). These results were considered the gold standard (Kline and Luca 2014). 3.10 Validation The results of each algorithm were compared with the actual or gold-standard time shifts of the MUAPs or spikes in the superimpositions. Each time-shift error was classified as being in one of these three classes: < ±0.1 ms (essentially correct), ≤ ±0.5 ms (close), and > ±0.5 ms (incorrect) (McGill 2002, McGill and Marateb 2011). The Identification rate (𝐼𝑑) was used (Marateb and McGill 2009, Shirzadi, Marateb et al. 2021) to assess the accuracy of the algorithms: 𝐼𝑑= 𝑛𝑐 𝑛𝑖+𝑁𝑡 (3.15) where 𝑛𝑐 is the number of essentially correct time shifts, 𝑛𝑖 is the number of incorrect time shifts, and 𝑁𝑡 is the total number of ground truth MUAPs (or spikes) involved in this superimposition. The analyzed algorithms were ranked overall on the entire datasets using the Rank Product (RP) (Breitling, Armengaud et al. 2004, Shirzadi, Marateb et al. 2021). Moreover, the complexity of the experimental iEMG signals was assessed by the superposition percentage (% Sup), defined as the number of superimposed spikes divided by the total number of spikes detected in the iEMG signal. A margin of 3 ms was used to define superimposed spikes (Yu, Akhmadeev et al. 2020, Yu, Akhmadeev et al. 2020). The running time of the superposition resolution algorithms was also reported as a measure of computational complexity. The running time of the algorithms was assessed on an Intel(R) Core (TM) i7-8750H 2.20 GHz CPU with 16 GB of RAM. 3.11 Statistical Methods Results are reported as mean ± standard deviation. We used the Generalized Estimating Equation (GEE) method to model factors associated with repeated responses (Hardin and Hilbe 2002). GEE was used to find significant factors (e.g., set number and number of APs) affecting the performance of the superposition resolution algorithms. The Friedman test was further used to compare the performance of the DBC, HRBC, and FHRBC methods. The Wilcoxon signed-rank test with the Bonferroni correction was used for pairwise comparison, and also to assess whether initial interpolation was required for the DBC, HRBC, and FHRBC methods. Adjusted P-values less than 0.05 were considered significant. The statistical analysis and calculations were performed using the IBM SPSS Statistics for Windows, version 24.0, Released 2016 (IBM Corp., Armonk, NY). 4. Results 4.1 Simulated Signals The results of the different algorithms on the iEMG sets 1 and 2 for superpositions involving 2 to 5 MUAPs are provided in Tables 3.1 and 3.2. The results for the spike sorting sets 1 and 2 for superpositions involving 2 to 5 spikes are provided in Tables 3.3 and 3.4. 89 Table 3.1. Results of different algorithms on the iEMG set 1 for combination of 2 to 5 MUAPs Combination Algorithm Id (%) Time (s) 2 DBC 99.45±6.10 0.001±0.0001 HRBC 99.70±04.99 0.006±0.0009 FHRBC 99.70±4.99 0.007±0.0020 BB 99.90±2.23 0.004±0.0008 3 DBC 97.47±11.34 0.001±0.0002 HRBC 98.33±9.83 0.008±0.0028 FHRBC 98.88±8.38 0.012±0.0065 BB 99.27±6.06 0.012±0.0055 4 DBC 93.51±16.34 0.006±0.0003 HRBC 94.93±15.17 0.015±0.0033 FHRBC 96.83±12.07 0.027±0.0104 BB 96.33±12.78 0.042±0.0356 5 FHRBC 90.86±18.87 0.089±0.0195 BB 92.38±17.30 0.231±0.2957 DBC 85.52±22.20 0.033±0.0013 HRBC 86.94±22.24 0.045±0.0073 Table 3.2. Results of different algorithms on the iEMG set 2 for combination of 2 to 5 MUAPs Combination Algorithm Id (%) Time (s) 2 DBC 99.15±8.47 0.001±0.0001 HRBC 99.50±7.05 0.005±0.0010 FHRBC 99.60±6.31 0.007±0.0021 BB 100.00±0.00 0.005±0.0026 3 DBC 97.89±10.85 0.001±0.0001 HRBC 98.45±10.04 0.008±0.0021 FHRBC 99.13±7.80 0.012±0.0050 BB 100.00±0.00 0.019±0.0072 4 DBC 96.10±13.06 0.006±0.0002 96 3 99.32±5.26 0.065±0.0021 4 99.36±4.75 0.073±0.0020 5 99.17±4.60 0.119±0.0031 6 98.94±4.75 0.335±0.0118 7 98.98±4.27 1.959±0.0787 8 98.84±4.27 21.660±4.0459 Figure 3.10. The accuracy of different algorithms to resolve superimpositions of two MUs for different noise levels. The BB, FHRBC, HRBC, and DBC algorithms were shown in dashed black, solid red, dotted cyan and dashed dotted blue. 4.4 The Complexity of the Superpositions of the Analyzed Datasets The superpositions considered in our study were not easy to resolve. The result of the peeloff algorithm is provided in Table 3.10 as a measure of the complexity of the superpositions. The accuracy of the peel-off algorithm ranged from 57.95% for superpositions involving 2 APs in spike sorting set 1 to 12.01% for superpositions involving 8 MUs in spike sorting set 2. Overall, its average accuracy was 25.39±23.16 (%). The peel-off algorithm peels off the templates in one specific order, and, as our results show, this does not always lead to the best solution. However, versions of it are still being used in the literature (Ren, Zhang et al. 2018). This might be because the algorithm is fast and works fairly well for partial superpositions (Shirzadi, Marateb et al. 2021). 97 Table 3.10. Results of the Peel-Off algorithm on different combinations of the set 1 and 2 of the iEMG and neural recording datasets Dataset Set Combinations Id (%) Time (s) iEMG 1 2 49.98±32.88 0.001±0.0001 3 31.92±21.13 0.001±0.0001 4 25.74±16.89 0.001±0.0001 5 21.49±13.84 0.001±0.0001 6 19.06±11.96 0.001±0.0057 7 18.10±10.73 0.001±0.0009 8 17.01±9.79 0.001±0.0007 2 2 49.77±37 . 33 0.001±0.0001 3 30.21±23.06 0.001±0.0001 4 24.82±17.93 0.001±0.0001 5 20.48±14.15 0.001±0.0001 Spike Sorting 1 2 57.95±35.62 0.001±0.0001 3 28.79±18.77 0.001±0.0001 4 21.21±14.43 0.001±0.0001 5 17.50±10.26 0.001±0.0001 6 15.37±9.36 0.001±0.0001 7 13.50±7.43 0.002±0.0014 8 12.30±7.22 0.002±0.0008 2 2 53.38±35.12 0.001±0.0001 3 27.92±19.05 0.001±0.0001 4 21.07±14.34 0.001±0.0001 5 16.66±10.82 0.001±0.0001 6 15.07±9.55 0.001±0.0008 7 13.51±8.18 0.002±0.0008 8 12.01±7.47 0.002±0.0008 5. Discussion 5.1 Evaluating the Results Resolving APs is a critical final step when complete decomposition is envisioned. It is time-consuming, especially when interactive decomposition programs are used (McGill, Lateva et 98 al. 2005). Various algorithms have been proposed in the literature to resolve superimposed APs (Ge, Carpentier et al. 2011, Shirzadi, Marateb et al. 2021). However, in principle, they are not suitable for online neural decoding. Moreover, their performance significantly drops when several APs overlap. Some attempts were made to bypass this step in online decoding, including applying Cumulative Discharge Rate (CDR) and estimating approximate firing times of MUs to use incomplete decomposition results (Karimimehr, Marateb et al. 2017). However, such an approximation is not suitable when the precise timing of each MU is required (Marateb and McGill 2016). The literature also shows that resolving superimposed MUAPs can significantly increase decomposition accuracy (Monsifrot, Carpentier et al. 2014, Karimimehr, Marateb et al. 2017, Yu, Akhmadeev et al. 2020, Yu, Akhmadeev et al. 2020). Thus, this study aimed to propose an accurate and efficient method to resolve superimposed MUAPs that could also be implemented in parallel (Fig. 3.4). The DBC algorithm was superior to the other methods analyzed in terms of accuracy and running time. Its average running time was 33ms and 102ms for the combinations of five MUs in the iEMG (Tables 3.1, 3.2) and spike sorting (Tables 3.3, 3.4) datasets. Its parallel implementation could be used, in principle, for online decoding. It is too slow, however, to be used online for superpositions involving more than 5 APs, but it may still be helpful offline, showing an average accuracy of 87.61% and 96.31% for 8 MUs (Tables 3.6, 3.7). An exhaustive-search algorithm must calculate the entire 𝑁 𝑁𝑡 residual signals, while in the DBC method 𝑁×(𝑁𝑡)! residual signalsmust be evaluated. For example, if we limit the number of discrete-time shifts to (𝑁 = 42), the number of residual signals for 𝑁𝑡 = 8 templates are 9.68E+12, and 1.69E+6 for the exhaustive search and the DBC algorithms, respectively. For signals with sharp spikes sampled near the Nyquist rate, using interpolation to increase the time resolution is essential for increasing the accuracy of algorithms based on discrete time shifts. We found that interpolation by a factor of four provided sufficient time resolution so that the discrete-time DBC algorithm showed high accuracy. Fine-tuning the results using the continuous-time LMA algorithm provided only a slight improvement. However, sub-sampling superposition resolution is a critical step in decreasing the clusters’ dispersion, MUAP template variability for spike-triggered averaging. Such subsampling time shifts are important when investigating MUAP jitter, and such values affect the accuracy of neural decoding algorithms in the validation steps (Florestal, Mathieu et al. 2007, Marateb and McGill 2016). It must also be noted that the formulation of the Gradient vector and Hessian matrix was originally proposed by McGill and Dorfman (McGill and Dorfman 1984), and our main contribution is the development of the heuristic DBC algorithm and using three cost functions to find the best discrete-time solution. Our main message is that, unlike the peel-off algorithm, we must consider all the permutations of the templates that could provide suitable candidates for time shift estimation. Such a procedure is accurate and efficient (Tables 3.3-3.9), and is promising for real-time neural decoding. 99 5.2 Resolving Destructive Superpositions Destructive superimpositions are usually created when a MUAP is out of phase with another MUAP, or in a more general case, some MUAPs cancel out the others. When destructive superimpositions occur, the superimposed waveform is not similar to any of the MUAPs involved in the superimposition. The correlation of the involved MUAPs and the superimposed waveform is not thus a suitable method to resolve destructive superpositions. Resolving superimposed MUAPs can be formulated as the following, in a more general case: −𝑥𝑖(𝑡+𝜑𝑖)≈−𝑠(𝑡)+∑𝑥𝑗(𝑡+𝜑𝑗) 𝑗=1,…,𝑁;𝑗≠𝑖 (3.16) where 𝑥𝑖 is the 𝑖𝑡ℎ MUAP, s is the superimposed waveform, and 𝜙𝑖 is the time shift of the 𝑥𝑖. In fact, we try to fit the right-hand side of the (3.14) to each MUAP (𝑖.𝑒.,𝑖 = 1,...,𝑁𝑡). The case with the best residual norm is considered the solution. The DBC algorithm was thus used for the implementation. Over the entire multiunit sets and the combinations of two to five MUs, this extension significantly improved the average accuracy of the superposition resolution by 2%(P- value<0.001). Since the DBC method must run 𝑁𝑡 times, this extension is suitable for offline algorithms. 5.3 Applications in Other Fields The problem of resolving superimpositions (overlapping waveforms) also arises in other areas, such as nuclear magnetic resonance spectroscopy (Ye, Aboutanios et al. 2017), the overlapping of asphaltenes in the oil industry (Asemani and Rabbani 2020), and the spectral overlapping of phosphors in light-emitting diodes (Lee, Arunkumar et al. 2014). The algorithms proposed here could be used in these applications. 5.4 Limitation and Future Works The present study has some limitations. The cost functions used in our study are not entirely robust to the background noise (Fig. 3.9). The background noise could resemble the background activity, and the performance of the proposed algorithms drops in signals with high background activities. Other cost functions should be examined in the future. The DBC algorithm is a suboptimal heuristic method. Although it was converged to the global minimum in 79% of the entire cases (i.e., the percentage of the cases with the 𝐼𝑑 of 100%), the global convergence is not guaranteed. Using hidden convexity in nonconvex quadratic optimization is thus a focus of our future activities. The firing time estimation method used in our study and the a-posterior accuracy assessment algorithm work on isometric constant-force contractions. Signals recorded during ramp contractions must also be analyzed, and other firing time estimation methods with more flexibility (Navallas, Malanda et al. 2014, Navallas, Porta et al. 2019) must be used. Also, low-to-moderate contraction levels were used in our study. Various experimental signals and higher contraction levels must be used for extensive validation, which will be a focus of future work. Having compared the running time of the sequential DBC algorithm and its parallel implementation (Table 3.9), the parallel implementation is more efficient when more than five 100 MUAPs are involved in superpositions. Due to the management between CPU cores, such an implementation is inefficient with fewer MUAPs. 6. Conclusion In conclusion, new algorithms were proposed to resolve superimposed MUAPs for iEMG decomposition and neural spike sorting. Various simulated and synthetic signals were used to assess the accuracy and efficiency of the algorithms. Overall, the parallel DBC algorithm was superior to the other proposed methods (i.e., HRBC and FHRBC). It had comparable accuracy in comparison with the state-of-the-art (BB, (Shirzadi, Marateb et al. 2021)). However, its running time was significantly better than that of the BB method. The DBC algorithm is a simple and accurate method and could be used, in principle, for real-time neural decoding. 101 Chapter 4: A real-time and convex model for the estimation of muscle force from surface electromyographic signals in the upper and lower limbs Authors: Mehdi Shirzadi, Hamid Reza Marateb, Mónica Rojas-Martínez, Marjan Mansourian, Alberto Botter, Fabio Vieira dos Anjos, Taian Martins Vieira, Miguel Angel Mañanas DOI: https://doi.org/10.3389/fphys.2023.1098225 102 1. Abstract Surface electromyography (sEMG) is a signal consisting of different motor unit action potential trains and records from the surface of the muscles. One of the applications of sEMG is the estimation of muscle force. We proposed a new realtime convex and interpretable model for solving the sEMG—force estimation. We validated it on the upper limb during isometric voluntary flexions-extensions at 30%, 50%, and 70% Maximum Voluntary Contraction in five subjects, and lower limbs during standing tasks in thirty-three volunteers, without a history of neuromuscular disorders. Moreover, the performance of the proposed method was statistically compared with that of the state-of-the-art (13 methods, including linear-in-the-parameter models, Artificial Neural Networks and Supported Vector Machines, and non-linear models). The envelope of the sEMG signals was estimated, and the representative envelope of each muscle was used in our analysis. The convex form of an exponential EMG-force model was derived, and each muscle’s coefficient was estimated using the Least Square method. The goodness-of-fit indices, the residual signal analysis (bias and Bland-Altman plot), and the running time analysis were provided. For the entire model, 30% of the data was used for estimation, while the remaining 20% and 50% were used for validation and testing, respectively. The average R-square (%) of the proposed method was 96.77 ± 1.67 [94.38, 98.06] for the test sets of the upper limb and 91.08 ± 6.84 [62.22, 96.62] for the lower-limb dataset (MEAN ± SD [min, max]). The proposed method was not significantly different from the recorded force signal (p-value = 0.610); that was not the case for the other tested models. The proposed method significantly outperformed the other methods (adj. p-value < 0.05). The average running time of each 250 ms signal of the training and testing of the proposed method was 25.7 ± 4.0 [22.3, 40.8] and 11.0 ± 2.9 [4.7, 17.8] in microseconds for the entire dataset. The proposed convex model is thus a promising method for estimating the force from the joints of the upper and lower limbs, with applications in load sharing, robotics, rehabilitation, and prosthesis control for the upper and lower limbs. 2. Introduction Skeletal muscles generate forces to move different body parts or stabilize the skeleton (BASMAJIAN 1962). Handgrip force is one of the leading mechanical interactions between humans and the outside environment (Cao, Sun et al. 2017). For example, handgrip force has applications in opening doors, sports (Duc, Bertucci et al. 2008), military (Henning, Park et al. 2011), and so on. Estimating the generated force in other body muscles like forearm muscles, biceps, triceps, and lower limbs is essential. The amputation of the lower limb (toe/foot) increased in the last few years (Spoden, Nimptsch et al. 2019). Also, diseases like stroke, spinal cord injury, and other disabling disorders can cause disabilities. With the increment of disabilities, a prosthesis that can compensate for a lost limb is necessary. Surface electromyography (sEMG) could control advanced prosthesis in amputees (myoelectric-controlled prosthesis). The sEMG is a signal consisting of different motor unit action potential trains and is recorded from the skin. Because of the possibility of misalignment of the electrode pair in conventional sEMG recordings and muscle fiber direction (Staudenmann, Kingma et al. 2006), in 103 addition to the fact that a pair of electrodes may not fully and accurately represent the muscle activity and be vulnerable to the innervation zone (IZ) effect, using High-Density sEMG (HD- sEMG) is beneficial. In HD-sEMG, we can record from hundreds of skin points, covering the target muscle’s whole or most volume. HD-sEMG has applications in gait and movement analysis, myoelectric control (Wang, Lao et al. 2017), biofeedback (Huang, Lin et al. 2013), fatigue evaluation (Cifrek, Medved et al. 2009), gesture recognition (Du, Lin et al. 2010), obstetrics, occupational medicine, aging, rehabilitation, gaming, ergonomics, and force estimation (Merletti and Muceli 2019). One of the applications of HD-sEMG and sEMG is the estimation of muscle force (Staudenmann, Kingma et al. 2005). The generation of force is always related to the electrical activity of the HD-sEMG with limitations to superficial muscles or motor units, and it depends on the recruitment of motor units and the firing rate of active motor units (Erim, De Luca et al. 1996). Other factors that affect the sEMG are muscle length and the IZ location. Estimation of muscle force has various applications in biomechanics and kinesiology (Christophy, Faruk Senan et al. 2012), exoskeleton control (Lenzi, Rossi et al. 2012, Li, Wang et al. 2014), prosthesis control (Castellini and van der Smagt 2009), grasping force (Gurari and Okamura 2007, Farina and Holobar 2015), and military (Henning, Park et al. 2011). Many studies attempted to explain the EMG-force relationship and estimate force in different muscles based on the sEMG signal. Different studies were performed on biceps and triceps muscles (Buchanan, Moniz et al. 1993, Euljoon and Meek 1995, Luh, Chang et al. 1999, Clancy, Bouchard et al. 2001, Potvin and Brown 2004, Staudenmann, Kingma et al. 2005, Mobasser, Eklund et al. 2007, Staudenmann, Daffertshofer et al. 2007, Botter, Marateb et al. 2011, Nielsen, Holmgaard et al. 2011, Hashemi, Morin et al. 2012, Allouch, Harrach et al. 2013, Hashemi, Morin et al. 2013, Li, Wang et al. 2014, Hashemi, Morin et al. 2015, Huang, Chen et al. 2017, Na and Kim 2017, Xu, Chen et al. 2018), forearm muscles (Youn and Kim 2010, Liu, Martel et al. 2014), hand griping (Cao, Sun et al. 2017), and lower limbs (Hayashibe, Guiraud et al. 2009, Amarantini, Rao et al. 2010, Menegaldo and Oliveira 2012, Hayashibe and Guiraud 2013, Cao, Boudaoud et al. 2015, Rane, Ding et al. 2019). Different modeling of the problem was considered in these studies, and various solutions were presented. Ma et al. (Ma, Zhang et al. 2020) predicted grasping force based on the sEMG with the gene expression programming (GEP) and also compared the result of the GEP algorithm with the Back Propagation (BP) neural network algorithm. The GEP algorithm achieved a better overall result than their study’s BP neural network algorithm. They predicted grasping force in 20%, 40%, 60%, and 80% MVC and reported root mean square error (RMSE) and correlation coefficient (CC) in their work. In the 60% MVC, they achieved 7.5% RMSE and 95% CC. (Chen, Dai et al. 2020) used three degrees of freedom (DoF) of finger movement to predict force from HD-sEMG based on only one DoF (doing all of the finger movements sequentially in one movement) in the training part. They used Convolutional Neural Network (CNN) and Recurrent Neural Network (RNN) methods, with minimal numbers of trials (using 1-DoF trials only) to train the model and then assessed on multi-DoF trials. The muscle crosstalk was reduced using HD-sEMG, and the entire recording channels were used. The authors showed that multi-DoF control for individual fingers is possible with minimal training. (Rane, Ding et al. 2019) predicted force from the lower limb muscles with deep learning and reported Pearson’s correlation coefficient (r) and RMSE for fitness criteria. The best value of r 104 was 0.91, and RMSE was 126 (N) for the hamstring muscles in all test trials. (Xu, Chen et al. 2018) approached the force estimation problem in the biceps brachii muscle with the CNN and long short-term memory (LSTM) and their combination. The best model for the 50% MVC had a %RMSE of 5.69. Various performance indices were proposed in the literature for the EMG-force problem. For example, (Huang, Chen et al. 2017) used a non-negative matrix factorization algorithm and a polynomial model to estimate muscle force from the biceps brachii muscle. They report % root mean square difference (RMSD), variability accounted for (VAF), and the correlation coefficient in different figures for all subjects in their studies. (Cao, Sun et al. 2017) used extreme machine learning (EML) algorithm to predict handgrip force using the EMG signal of forearm muscles. They compared their algorithm with the support vector machine (SVM) and multiple non-linear regression (MNLR) and reported a comparable result in time and accuracy with these algorithms. For the evaluation of the results, they used RMSE and CC. Na et al. (Na and Kim 2017) estimated elbow flexion force using a muscle-twitch model with sEMG in the fatigue condition and then compared their results with the mean absolute value (MAV) method. To evaluate the results, they used 𝑅2 and %RMSE criteria. (Hashemi, Morin et al. 2015) used an angle-based EMG calibration method and parallel cascade identification (PCI) modeling to estimate muscle force in elbow flexion and extension in different angles. They evaluated their results with %RMSE criteria. The summary of the EMG-force estimation algorithms and performance indices is presented in Supplementary Table S1. The EMG-force problem is a regression problem in which regression diagnostics (e.g., residual signal analysis (O'Connor, Mahar et al. 2011, Giavarina 2015) are essential in addition to the goodness-of-fit indices. Moreover, a proper statistical method is required for rigorous comparison of the proposed and state-of-theart methods. Otherwise, bias occurs (Davidson and MacKinnon 1981). In such studies, specific muscles were used, and the generalization ability of such algorithms was not discussed. Thus, there is a need for a new method that can be robust enough to be used in different muscles and fast enough for real-world applications. Many approaches have been investigated in the literature for solving the EMG-force relationship problems until now, including the Hill model (Hill 1938, Hayashibe, Guiraud et al. 2009, Hayashibe and Guiraud 2013), fast orthogonal search (Mobasser, Eklund et al. 2007), polynomial fitting model (Clancy and Hogan 1997), parallel cascade identification (Hashemi, Morin et al. 2012), different neural network architectures (Choi, Kwon et al. 2010, Mobasser and Hashtrudi-Zaad 2012, Su, Qi et al. 2021), non-negative matrix factorization (NMF) (Huang, Chen et al. 2017). Hill-type models have various problems. There is an error in estimating force from EMG when there are different firing frequencies, activation levels, and contraction speeds (Perreault, Heckman et al. 2003, Hayashibe and Guiraud 2013). Hill’s model is mainly based on macroscopic modeling and does not relate to microscopic physiology. Besides the large error in different firing frequencies, the error in the low motor unit firing rates is very high (Perreault, Heckman et al. 105 2003). Moreover, Hill’s model is not usually practical when high, and low force contraction is simultaneously considered because each of them needs to set the cut-off frequency of the low pass filter differently (Hermens, Freriks et al. 2000, Perreault, Heckman et al. 2003, Hayashibe and Guiraud 2013). On the other hand, polynomial fitting models tend to overfit when the number of involved muscles increases (such as the lower limb dataset), and their prediction error significantly increases (Clancy and Hogan 1997). Also, in the NMF methods, the identification of features depends strongly on the exact dataset and on converging to a set of highly sparse factors (Burkholder and van Antwerp 2013). In this paper, we propose a new real-time convex algorithm to estimate muscle force for the lower and upper limbs, and thorough regression diagnostics and rigorous statistical comparison with the state-of-the-art are provided. 3. Materials and equipment In this study, we used two of our previously recorded datasets. The first set is related to the lower limb (dos Anjos, Pinto et al. 2017), while the second is HD-sEMG and force in the upper limb (Botter, Marateb et al. 2011). The full description of the experimental protocol of both datasets is available in the original papers, and here we describe them briefly. 3.1 Participants In the lower limb dataset, we recorded data from nineteen young volunteers (14 male and 5 females, with age 26.0 ± 3.0 (MEAN ± SD) (years)) and fourteen aged volunteers (12 male and 2 females, with age70.0 ± 6.0 (years)). The physical activity of the participants was assessed according to the international physical activity questionnaire (IPAQ) (Booth, 2000), and they were then ranked with minimally active (low) or active (moderate or high) scores (Sember, Meh et al. 2020). Based on volunteer reports, none of them did have any balance impairment, neurological disorders, muscular injuries, or the intake of medications for body balance. In the upper limb dataset, we recorded data from five healthy male volunteers with an average age of 21.3 ± 2.8 (years), weight of 71.0 ± 3.4 (kg), and height of 174.3 ± 2.6 (cm). In both datasets, all subjects gave informed consent to the experimental procedure. The procedures were confirmed with the Declaration of Helsinki and were approved by Politecnico di Torino Research Ethics Committee. 3.2 Experimental setup In the lower limb dataset, sEMG signals were recorded in signal differential mode. All signals were amplified by a between individuals’ variable factor, ranging from 5,000 to 10,000, to maximize the analog gain without saturation. The force signals were recorded by a piezoelectric force plate (9286AA Kistler, Zurich, Switzerland). Both sEMG and force signals were sampled synchronously at 2048 Hz with a 12-bit analog-to-digital converter (EMG-USB, OTBioelettronica, and LISiN, Politecnico di Torino, Turin, Italy). We used linear array electrodes to record the calf muscles’ activity: sEMG from tibialis anterior and medial and lateral gastrocnemius muscles were detected with three arrays of 16 electrodes, each with 10 mm inter-electrode distance (IED), 112 1 97.70±1.67 [94.95, 99.42] 95.54±3.25 [90.16, 98.84] 95.59±3.25 [90.17, 98.85] 2 83.66±15.32 [60.04, 96.19] 71.86±24.14 [36.05, 92.52] 71.87±24.14 [36.05, 92.53] 3 1.22±.07 [1.15, 1.33] 0.01±0.00001 [0.01, 0.017] 0.01±0.00001 [0.01, 0.017] 4 90.27±5.76 [83.23, 97.38] 81.75±10.42 [69.26, 93.97] 81.77±10.42 [69.28, 94.00] 5 31.36±11.67 [14.40, 43.76] 15.50±1.79 [0.09, 26.09] 15.51±1.79 [0.09, 26.10] 6 99.14±0.41 [98.43, 99.38] 98.29±0.80 [96.88, 98.76] 98.30±0.80 [96.89, 98.77] 7 74.87±15.68 [56.76, 93.09] 50.03±23.34 [32.22, 86.66] 50.04±23.34 [32.22, 86.67] 8 42.19±41.99 [5.30, 86.15] 31.91±32.04 [0, 74.22] 31.92±32.04 [0, 74.23] 9 33.27±37.81 [7.64, 76.08] 22.51±23.87 [0.32, 57.88] 22.51±23.87 [0.32, 57.89] OLS 94.14±3.01 [89.12, 96.72] 88.70±5.58 [79.40, 93.56] 88.70±5.58 [79.40, 93.56] RLS 94.14±3.01 [89.11, 96.73] 88.70±5.58 [79.40, 93.56] 88.70±5.58 [79.40, 93.56] ANN 87.21±20.01 [51.56, 97.49] 79.26±29.63 [26.59, 95.04] 79.24±29.56 [26.51, 95.04] SVM 95.49±2.69 [91.38, 98.16] 91.24±5.11 [83.50, 96.36] 91.24±5.10 [83.50, 96.36] The proposed algorithm 98.36±0.85 [97.15, 99.03] 96.77±1.67 [94.38, 98.06] 96.77±1.67 [94.38, 98.06] 113 Table 4.2. The results of different models on the test set of lower limb dataset in MEAN±SD [minimum, maximum]. Model* (Eldary) Correlation (×100%) (Eldary) 𝑹𝟐 (×100%) (Eldary) adj. R2 (×100%) (Young) Correlation (×100%) (Young) 𝑹𝟐 (×100%) (Young) adj. R2 (×100%) 1 70.64±13.06 [52.98, 97.29] 51.48±18.95 [28.07, 94.66] 51.47±18.93 [28.05, 94.65] 66.678±15.91 [30.242, 89.37] 46.86±20.36 [9.14, 79.95] 46.85±20.34 [9.14, 79.94] 2 90.55±2.11 [85.92, 92.88] 85.34±4.00 [80.49, 90.80] 85.33±3.97 [80.48, 90.79] 86.75±15.22 [51.54, 97.93] 77.34±23.20 [26.57, 95.90] 77.33±23.18 [26.56, 95.89] 4 50.56±31.05 [27.69, 87.98] 35.11±37.17 [7.67, 77.41] 35.09±37.16 [7.66, 77.40] 63.08±12.46 [53.08, 77.05] 40.83±16.40 [28.17, 59.36] 40.82±16.38 [28.15, 59.35] 5 79.08±8.39 [67.65, 95.53] 63.19±13.60 [45.77, 91.25] 63.17±13.58 [45.75, 91.24] 77.60±11.76 [42.39, 92.19] 61.53±16.44 [17.97, 85.01] 61.52±16.43 [17.94, 84.99] 6 68.41±0.11.63 [44.52, 86.49] 48.06±15.37 [19.82, 74.81] 48.04±15.35 [19.80, 74.76] 71.27±13.93 [40.83, 96.33] 52.64±19.52 [16.67, 92.80] 52.62±19.51 [16.66, 92.78] 7 82.64±13.63 [40.68, 94.28] 70.01±18.34 [16.55, 88.89] 69.99±18.33 [16.53, 88.86] 84.30±11.23 [51.07, 93.18] 72.26±16.36 [26.08, 86.82] 72.25±16.34 [26.05, 86.80] 8 83.75±9.31 [65.42, 94.61] 70.95±14.88 [42.80, 89.52] 70.94±14.86 [42.78, 89.50] 83.39±9.34 [65.44, 96.40] 70.38±14.97 [42.83, 92.93] 70.36±14.96 [42.82, 92.91] 9 76.89±14.98 [35.083, 91.16] 61.21±19.91 [12.30, 83.10] 61.19±19.89 [12.28, 83.08] 79.11±12.42 [50.02, 98.19] 64.05±18.64 [25.02, 96.41] 64.03±18.62 [25.01, 96.39] OLS 87.66±10.23 [64.96, 97.35] 77.83±16.81 [42.20, 94.77] 77.81±16.78 [42.18, 94.75] 83.92±15.922 [47.37, 98.13] 72.84±24.76 [22.44, 96.31] 72.82±24.75 [22.41, 96.30] RLS 81.63±16.96 [47.96, 96.63] 69.30±24.79 [23.00, 93.37] 69.29±24.75 [22.98, 93.35] 87.73±9.55 [67.22, 97.55] 77.83±16.14 [45.18, 95.16] 77.82±16.11 [45.15, 95.15] ANN 71.30±23.39 [18.37, 94.85] 55.93±27.72 [3.37, 89.98] 55.86±27.60 [3.21, 89.96] 90.89±10.14 [52.17, 98.41] 83.59±15.38 [27.22, 96.86] 83.56±15.24 [27.10, 96.85] SVM 95.57±2.06 [91.83, 98.22] 91.38±3.93 [84.34, 96.48] 91.37±3.92 [84.33, 96.47] 95.85±2.29 [90.60, 98.41] 91.93±4.35 [82.09, 96.86] 91.92±4.34 [82.08, 96.85] The proposed algorithm 95.64±2.03 [89.525, 97.37] 91.51±3.81 [80.14, 94.81] 91.50±3.78 [80.13, 94.80] 97.43±1.27 [94.54, 98.98] 94.95±2.46 [89.39, 97.97] 94.94±2.45 [89.38, 97.96] *: The third model had very large values in the lower limb dataset that resulted in zero goodness-of-fit in all indices. 114 The residual signal was further analyzed using the Bland-Altman plot. The Bland Altman plot of the best models (ANN, OLS, SVM, and the proposed method) was shown in Figures 4.1– 4.4 for upper and lower limbs datasets. Since the OLS and RLS methods had comparable results, The Bland Altman plot of the OLS method was provided. Figure 4.1. The Bland-Altman (BA) plot of the ANN method on the upper-limb (top) and the lower-limb (bottom) dataset. 115 Figure 4.2. The Bland-Altman (BA) plot of the OLS method on the upper-limb (top) and the lower-limb (bottom) dataset. 116 Figure 4.3. The Bland-Altman (BA) plot of the SVM method on the upper-limb (top) and the lower-limb (bottom) dataset. 117 Figure 4.4. The Bland-Altman (BA) plot of the proposed method on the upper-limb (top) and the lower-limb (bottom) dataset. The goodness-of-fit of ANN, OLS, SVM, and the proposed method is shown on a sample recording from the upper-limb dataset (Figure 4.5). The proposed method was further analyzed regarding the scatter plot between the predicted and measured force data in the upper (Figure 4.6) and lower-limb (Figure 4.7) datasets. The predicted signals of the proposed method and the measured force signals in different subjects from the upper and lower limb datasets are provided in Figure 4.8. 118 Figure 4.5. The comparison between ANN, OLS, SVM and the proposed method on a sample data from the lowerlimb dataset. Figure 4.6. The scatter plot of the proposed method (measured vs. predicted force data) upper-limb dataset. 119 Figure 4.7. The scatter plot of the proposed method (measured vs. predicted force data) lower-limb dataset. 120 Figure 4.8. The measured and predicted force signals in different subject from upper (d,e) and lower limb (a-c) datasets. The y-label data was normalized and has arbitrary unit (a.u.). The envelope of the sEMG signal, the weighted activity of each muscle estimated from Eq. 4.7, and the estimated vs. measured force signals were provided for the upper (Figure 4.9) and lower-limb (Figure 4.10) datasets. The average running time of each 250 msec-epoch signal of the training and testing of the proposed method was 30.3 ± 3.4 [27.6, 35.9] and 6.7 ± 2.2 [4.7, 9.5] for the upper limb and 25.1 ± 3.6 [22.3, 40.8] and 11.6 ± 2.4 [8.5, 17.8] for the lower-limb dataset in us. 121 Figure 4.9. The envelope of the sEMG signal (top), the weighted activity of each muscle estimated from Eq. 4.7 (middle), and the estimated v.s. measured force signals (bottom) in a sample data from the upper-limb dataset. The ylabel data has arbitrary unit (a.u.). 128 Chapter 5: Discussion and conclusion 1. Summary This doctoral thesis delves into various aspects of intramuscular and high-density surface electromyography, aiming to propose different practical algorithms which could be implemented in the future with robotic prostheses applications. One of the primary and important questions that need to be addressed in EMG decomposition is the superimposition of different motor unit action potentials. This occurs when the firing times of various motor units coincide, causing their action potentials to merge in the EMG signal. Our initial effort involved evaluating existing algorithms in the literature aimed at resolving this superimposition problem, followed by the development of our own algorithm. The complete results of these two studies were published in the Journal of Electromyography and Kinesiology (https://doi.org/10.1016/j.jelekin.2020.102510) and in the IEEE Transactions on Biomedical Engineering journal (https://doi.org/10.1109/TBME.2022.3192119), respectively. Once the superimposition challenge was tackled, our attention turned towards estimating the force generated by muscles to answer the next challenging question for controlling prostheses 129 with EMG signals. Estimating force from EMG signals presents an intriguing question, with numerous models proposed in the literature. Our approach began with an assessment of these models, leading to the proposal of our unique model based on HD-sEMG. The result of this study was published in the journal Frontiers in Physiology (https://doi.org/10.3389/fphys.2023.1098225). 2. Discussion In this thesis our general objective was to obtain novel, detailed and precise information from EMG signals and solving the problem in real time for its future usefulness and application in mobility assistive devices or in motor rehabilitation technologies. Adding EMG signals into robotic devices, we are able to create more intelligent devices and to use it as user command for controlling it. For a better control we need to extract the neural commands from the EMG signals which can be obtained by EMG decomposition as resulting of this work. For fully decomposing EMG signals we need to deal with the superimposition of motor unit action potentials related to the motor units which fire closely together. For improving the results of the EMG decomposition signals that were recorded invasively, we need to use iEMG signal decomposition. The general procedure of the algorithms that are used in the iEMG decomposition was describe in the chapter 1. We saw that for completely decompose the iEMG signals and be able to extract all of the information about the motor units and neural commands we need to resolve superimpositions of different motor units. Also, to use this information in real-time applications we need an algorithm to perform decomposition and to resolve superimpositions in real-time. In our first study our focus was on analyzing various algorithms used for resolving superposition in iEMG decomposition, emphasizing their accuracy and computation time under challenging conditions. The study's scope is limited by its reliance on simple simulation procedures and a focus on known constituent cases. To create challenging conditions, two datasets with varying MUAP energies and similar shapes were utilized to simulate 8000 superpositions covering all possible types (constructive, destructive, and partial). The following conclusions were extracted: • We saw that the Peel-off algorithm, while fast and straightforward, struggles with constructive and destructive superpositions due to its reliance on template similarity. Upsampling signals did not improve its performance, highlighting the inherent difficulty in resolving unrecognizable constituent templates. Additionally, the algorithm tends to get stuck in local maxima, particularly in higher-dimensional problems, impacting its accuracy across different combinations. • Population-based algorithms like Particle swarm optimization (PSO) and Genetic algorithm (GA) lack guaranteed global minimum attainment and are too slow for real-time applications. The branch and bound (BB) algorithm show promise in finding global minima quickly, but its efficiency varies depending on the problem's complexity, occasionally leading to long computation times. 130 The study also notes challenges faced by other algorithms in resolving partial superpositions. Removing these cases improved overall accuracy. Despite the BB algorithm's speed in some scenarios, its computation time can be excessive, limiting real-time applications. Overall, while these algorithms offer high accuracy for accurate decomposition, their current speed restricts their usage to offline applications. After analyzing the state-of-the-art algorithms, we focus to propose an algorithm to have the accuracy better or in the worth situations compatible with the state-of-the-art algorithms and also to able to use in for real-time applications. Finally, we come up with different algorithm for different scenarios and we compare the results of them with the best algorithm in the sate-of-the- art which was BB algorithm. The study found that the Discrete Brute-Force Correlation (DBC) algorithm outperformed others in both accuracy and runtime, making it suitable for online decoding with up to 5 MUAPs. On average, the DBC algorithm achieved an accuracy of 92.1% ± 21.7% and a running time of 2.3 ms ± 15.3 ms for 10.5 ms superimposed spikes in experimental signals. While it performs well in simpler cases, it slows down with more complex superpositions, making it more suitable for offline use in such scenarios. Interpolation and fine-tuning can enhance accuracy, and the algorithm's design significantly reduces computational load compared to exhaustive methods. However, challenges remain, particularly with destructive superpositions where MUAPs cancel each other out. While the DBC algorithm is effective in many situations, further work is needed to address background noise and improve convergence. Beyond neural decoding, the ability to resolve superimpositions could also benefit fields such as spectroscopy, oil industry processes, and lightemitting diode technology. After this comparative study for resolving superimposition and proposing new algorithms to solve them in real-time with acceptable accuracy, our focus moved to other problems in the EMG field. One of this problem is estimation of force produced by muscles by signals recorded from surface of the skin. Usually, the iEMG decomposition can give us information from all of the motor units near the electrodes but this information that were extracted from iEMG is not suitable to use for muscle force estimation because it is from a small portion of the muscle, that is very localized, and we need usually the information from whole of the muscle. In these types of problems that HD-sEMG decomposition doesn’t have proper results and the iEMG decomposition cannot help us because of its limitation about considering only a portion of the muscle and also being invasive and not suitable to use it every day we will need a solution to use only the information from HD-sEMG signal without decomposing it and give us accurate estimation of force produce by the muscles. Next step after accurately estimates the force of the muscles is to perform it in the real-time as explained above. The main applications of these algorithms are to use them in the prosthesis hands and for them the real-time estimation and the accuracy of the estimation is very important because if the person who wants to use these types of hand prosthesis wants to pick up an egg, he need to be able to correctly estimate the force who need to pick up it without breaks it. In the third study we were focused on the estimation of produce by the muscles without decomposing it. 131 The proposed method achieved a minimum adjusted R-squared (adj. R2) value of 80.13% across the upper and lower-limb datasets, indicating a good fit. This was supported by Bland Altman plots, where the residual signal of the proposed method showed more homogeneous variance in the upper-limb dataset compared to the lower-limb dataset. Regression lines further confirmed the fitness of predicted force signals in both datasets. Additionally, the proposed algorithm demonstrated a maximum running time suitable for real-time applications and utilized a cutoff frequency of 2.0 Hz for envelope estimation, aligned with literature recommendations for sEMG signal processing. The algorithm's transformation of sEMG envelopes using logarithmic transformation aimed to improve data distribution and facilitate convex optimization methods, enhancing the algorithm's efficiency. Moreover, the algorithm showed promise in classifying active and minimally active subjects in the lower-limb dataset, emphasizing the importance of muscles like the tibialis anterior and soleus in postural control and sway protocols, which have implications for clinical practice and fall prevention strategies in elderly and neurodegenerative disease populations. We conducted further analysis to explore the relationship between the adjusted R-squared (adj. 𝑅2) and the condition number of matrix A. The average condition number of matrix 𝐴 was 763 ± 464, and we found no significant correlation between the goodness-of-fit and the matrix's condition number across the entire dataset (r = −0.263; p-value = 110). This indicates that our method not only demonstrated a suitable goodness-of-fit but also avoided significant bias in the dataset (p-value = 0.610). Additionally, our model included the estimation of the intercept point (𝑤0). Subtracting this intercept from the measured force signal (𝑓(𝑡)) removes the mean value of the signal and reduces the number of estimated parameters. This aligns with system identification guidelines recommending detrending of measured signals before system identification. Our method utilized the same least squares (LS) model for both the upper and lower-limb datasets, demonstrating the algorithm's ability to generalize. However, the goodness-of-fit and analysis of residual signals were more favorable in the upper-limb dataset compared to the lower-limb dataset. This discrepancy might be attributed to the lower number of involved muscles in the upper-limb dataset compared to the lower-limb dataset. Furthermore, unlike black-box models such as artificial neural networks (ANN) or support vector machines (SVM), our method operates as a grey-box model. This means that the model interpretation is feasible. We can provide information on the activity of each muscle during recording, offering insights into load-sharing issues. Such insights are valuable in prosthetic control, especially when a limited number of electrodes are utilized in practical applications, as they help identify the major active muscles. We compared our proposed model with traditional EMG amplitude processing methods using a repeated measures analysis of variance (rm-ANOVA), which revealed statistically significant differences (F (4,567,728) = 969.856; p-value < 0.001). To mitigate Type I errors, we employed Bonferroni correction and reported adjusted p-values. Our proposed method consistently outperformed the others in terms of goodness-of-fit measures (adj. p-value < 0.05). Artificial neural networks (ANN), being a black-box method, exhibited inadequate fitness, as evident from the Bland-Altman plot (Figure 4.1), making it less suitable for clinical applications. Similarly, ordinary least squares (OLS) showed suboptimal results in the Bland-Altman plot, 132 indicating that linear weights were not ideal for solving the EMG-force problem. Despite its widespread use in the literature, OLS (also known as Multiple Linear Regression) may not capture the non-linear nature of the EMG-force relationship, particularly in a broad force range. Previous studies have highlighted the non-linearity of this relationship, with components like the sigmoid shape between excitation and muscle force, which can be better approximated using exponential forms. Another limitation is the complexity of factors influencing the EMG-force relationship, including amplitude cancellation, crosstalk from nearby muscles, and electrode characteristics. Despite these challenges, our proposed method achieved high goodness-of-fit values in both upper and lower-limb datasets, with acceptable variations between subjects. In terms of muscle selection, we aimed to include major muscles contributing to specific movements, although limitations exist, especially in capturing deep muscle activity. However, our method's approximation error term encompasses uncorrelated activities of deep muscles, minimizing errors in elbow flexion and extension estimations. Similarly, for lower limb muscles, our selection targeted major contributors to specific movements like plantar flexion torque, minimizing errors in signal sensitivity. Regarding sample size, we calculated it based on expected goodness-of-fit, predictors, and statistical power, ensuring reliability in our regression analysis. However, the generalization of results may be more robust in the lower-limb dataset due to the larger sample size compared to the upper-limb dataset. 2.1 Conclusion The study presents a novel method for resolving superimposed action potentials in multiunit recordings, a critical aspect for accurate neural decoding. The proposed DBC algorithm outperforms others in terms of accuracy and runtime, making it suitable for online decoding with up to 5 MUAPs. However, challenges remain in handling more complex superpositions and addressing background noise, highlighting areas for further exploration and algorithm refinement. Moving to muscle force estimation using sEMG signals, the proposed algorithm demonstrates promising results, achieving high goodness-of-fit values across upper and lowerlimb datasets. The method's robustness is evidenced by its ability to generalize despite variations in muscle involvement and dataset sizes. Comparisons with traditional EMG amplitude processing methods, such as ANN and OLS, highlight the superiority of the proposed algorithm in terms of goodness-of-fit measures. This emphasizes the importance of developing accurate and efficient algorithms for real-time applications in neural decoding and muscle force estimation. In conclusion, the study's findings contribute to advancing methods for resolving superimposed action potentials and improving accuracy in muscle force estimation, both in real time, with implications for clinical practice, prosthetic control, and fall prevention strategies. Future research directions include refining algorithms for noise robustness, optimizing computational resource management, and adapting methods for different signal complexities and muscle contraction types. 133 3. Contribution In this thesis, we addressed the challenge of resolving the superimposition of motor unit action potentials and estimating the force produced by muscles from surface EMG signals. Our achieved to improve EMG decomposition algorithms and, on a larger scale, facilitate the use of prostheses based on EMG signals. Our main contributions in this doctoral thesis were resolving the superimposition of up to five different motor unit action potentials in real-time with high accuracy and proposing a model for the real-time estimation of force produced by various muscles in both the lower and upper limbs. 4. Future extensions Regarding resolving superimpositions, future work includes refining cost functions for noise robustness, improving convergence in the DBC algorithm, and adapting methods for different types of muscle contractions and signal complexities. Parallel implementations are noted as more efficient for larger superpositions, hinting at optimization possibilities for computational resource management. It is good to mention that our main message in this study is, unlike the peeloff algorithm, we must consider all the permutations of the templates that could provide suitable candidates for time shift estimation. Such a procedure is accurate and efficient, and is promising for real-time neural decoding. Regarding the muscle force estimation study, one of the limitations of our study is that we did not incorporate a random force trajectory, which has been shown to offer valuable information about muscle excitation. In future work, we plan to integrate proper signal processing techniques to identify frequency spectra in force trajectories, ensuring equal stimulation across different frequencies in training and test sets to reduce bias. However, we observed low-to-medium correlations between the measured force signals in estimation and test sets, indicating a need for improvements in this area. Furthermore, our analysis did not account for electromechanical delay, which could enhance model goodness-of-fit but would also add complexity not suitable for realtime applications. We aim to address this issue in future research. Additionally, while we selected representative sEMG channels for each muscle in our study, using techniques like principal component analysis (PCA) could improve force estimation from high-density sEMG signals. We also did not compare our method with sEMG superimposition, a technique that utilizes motor control information rather than traditional EMG amplitude processing, which has gained traction in muscle force estimation. However, such methods often face challenges in real-time prediction due to longer running times and electrode requirements compared to EMG amplitude-based methods like ours. While the study acknowledges limitations such as the absence of a random force trajectory and the complexity of factors affecting the EMG-force relationship, it outlines strategies for future work. Incorporating proper signal processing techniques, addressing electromechanical delay, and exploring alternative muscle selection methods like PCA are identified as areas for improvement. One of the interesting applications of the proposed algorithm for force estimation is its use in load-sharing problems. The algorithm can be trained on the total force, allowing us to investigate 134 the contribution of each muscle to better understand load sharing during specific tasks. This approach can also be used to determine whether all subjects follow the same pattern. 5. Publications derived from the thesis 5.1 Journal Papers 1. Shirzadi, M., H. R. Marateb, K. C. McGill and M. A. Mañanas (2021). "Rigorous performance assessment of the algorithms for resolving motor unit action potential superpositions." Journal of Electromyography and Kinesiology 56: 102510. 2. Shirzadi, M., H. R. Marateb, K. C. McGill, S. Muceli, M. A. Mañanas and D. Farina (2023). "An Accurate and Real-Time Method for Resolving Superimposed Action Potentials in MultiUnit Recordings." IEEE Transactions on Biomedical Engineering 70(1): 378-389. 3. Shirzadi, M., H. R. Marateb, M. Rojas-Martínez, M. Mansourian, A. Botter, F. Vieira dos Anjos, T. Martins Vieira and M. A. Mañanas (2023). "A real-time and convex model for the estimation of muscle force from surface electromyographic signals in the upper and lower limbs." Frontiers in Physiology 14. 5.2 Conference Papers 1. Miguel Angel Mañanas Villanueva Mislav Jordanic, Mehdi Shirzadi, Joan Francesc Alonso, Hamid Reza Marateb (2020). Simple alternatives for dry surface electromyographic electrodes. International Society of Electrophysiology and Kinesiology (ISEK). 2. Shirzadi, M., A. Mirshamsi, A. Eşrefoğlu, M. Rojas-Martínez, H. R. Marateb, M. A. Mañanas and T. Vieira (2023). A new force profile signal for a convex solution of muscle force estimation from electromyographic signals*. 2023 45th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC). 5.3 Book Chapters 1. Marateb, H. R., M. Jordanic, M. Rojas-Martínez, J. F. Alonso, L. Y. Serna, M. Shirzadi, M. Nosouhi, M. Á. Mañanas and K. C. McGill (2020). Reliable and accurate information extraction from surface electromyographic signals. Modelling and Analysis of Active Biopotential Signals in Healthcare, Volume 1, IOP Publishing: 7-1-7-18. 135 136 References Adamos, D. A., N. A. Laskaris, E. K. Kosmidis and G. Theophilidis (2010). "NASS: An empirical approach to spike sorting with overlap resolution based on a hybrid noise-assisted methodology." Journal of Neuroscience Methods 190(1): 129-142. Alasuutari, P., J. Brannen and L. Bickman (2008). "The SAGE handbook of social research methods." Allouch, S., M. A. Harrach, S. Boudaoud, J. Laforet, F. S. Ayachi and R. Younes (2013). Muscle force estimation using data fusion from high-density SEMG grid. 2013 2nd International Conference on Advances in Biomedical Engineering. Amarantini, D., G. Rao and E. Berton (2010). "A two-step EMG-and-optimization process to estimate muscle force during dynamic movement." Journal of Biomechanics 43(9): 1827-1830. Antoniou, A. and W.-S. Lu (2021). Practical optimization: algorithms and engineering applications, Springer. Asemani, M. and A. R. Rabbani (2020). "Detailed FTIR spectroscopy characterization of crude oil extracted asphaltenes: Curve resolve of overlapping bands." Journal of Petroleum Science and Engineering 185: 106618. Bardi, E., M. Gandolla, F. Braghin, F. Resta, A. L. G. Pedrocchi and E. Ambrosini (2022). "Upper limb soft robotic wearable devices: a systematic review." Journal of NeuroEngineering and Rehabilitation 19(1): 87. Barry, B. K., M. A. Pascoe, S. Riek, R. G. Carson and R. M. Enoka (2009). "Common input to different regions of biceps brachii long head." Experimental Brain Research 193(3): 351-359. BASMAJIAN, J. V. (1962). "Muscles Alive. Their Functions Revealed by Electromyography." Academic Medicine 37(8): 802. Beck, A. (2014). Introduction to nonlinear optimization: Theory, algorithms, and applications with MATLAB, SIAM. Bland, J. M. and D. G. Altman (1999). "Measuring agreement in method comparison studies." Statistical Methods in Medical Research 8(2): 135-160. Blevins, C. E. (1967). "Innervation Patterns of the Human Stapedius Muscle." Archives of Otolaryngology 86(2): 136-142. Boe, S. G., N. M. Antonowicz, V. W. Leung, S. M. Shea, T. C. Zimmerman and T. J. Doherty (2010). "High inter-rater reliability in analyzing results of decomposition-based quantitative electromyography in subjects with or without neuromuscular disorder." Journal of Neuroscience Methods 192(1): 138-145. Botter, A., H. R. Marateb, B. Afsharipour and R. Merletti (2011). Solving EMG-force relationship using Particle Swarm Optimization. 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. Bottinelli, R. and C. Reggiani (2000). "Human skeletal muscle fibres: molecular and functional diversity." Progress in Biophysics and Molecular Biology 73(2): 195-262. Boyd, S. P. and L. Vandenberghe (2009). Convex optimization, Cambridge university press. Breitling, R., P. Armengaud, A. Amtmann and P. Herzyk (2004). "Rank products: a simple, yet powerful, new method to detect differentially regulated genes in replicated microarray experiments." FEBS Letters 573(1-3): 83-92. Buchanan, T. S., M. J. Moniz, J. P. A. Dewald and W. Z. Rymer (1993). "Estimation of muscle forces about the wrist joint during isometric tasks using an EMG coefficient method." Journal of Biomechanics 26(4): 547-560. Burke, R. E., E. Jankowska and G. ten Bruggencate (1970). "A comparison of peripheral and rubrospinal synaptic input to slow and fast twitch motor units of triceps surae." The Journal of Physiology 207(3): 709-732. 137 Burke, R. E., D. N. Levine, M. Salcman and P. Tsairis (1974). "Motor units in cat soleus muscle: physiological, histochemical and morphological characteristics." The Journal of Physiology 238(3): 503- 514. Burkholder, T. J. and K. W. van Antwerp (2013). "Practical limits on muscle synergy identification by nonnegative matrix factorization in systems with mechanical constraints." Medical & Biological Engineering & Computing 51(1): 187-196. Cao, H., S. Boudaoud, F. Marin and C. Marque (2015). "Surface EMG-force modelling for the biceps brachii and its experimental evaluation during isometric isotonic contractions." Computer Methods in Biomechanics and Biomedical Engineering 18(9): 1014-1023. Cao, H., S. Sun and K. Zhang (2017). "Modified EMG-based handgrip force prediction using extreme learning machine." Soft Computing 21(2): 491-500. Carlson, D. and L. Carin (2019). "Continuing progress of spike sorting in the era of big data." Current Opinion in Neurobiology 55: 90-96. Castellini, C. and P. van der Smagt (2009). "Surface EMG in advanced hand prosthetics." Biological Cybernetics 100(1): 35-47. Chatterjee, S. and A. S. Hadi (1986). "Influential Observations, High Leverage Points, and Outliers in Linear Regression." Statistical Science 1(3): 379-393, 315. Chen, K., Y. Jiang, Z. Wu, N. Zheng, H. Wang and H. Hong (2021). "HTsort: Enabling Fast and Accurate Spike Sorting on Multi-Electrode Arrays." Frontiers in Computational Neuroscience 15. Chen, P. H., R. E. Fan and C. J. Lin (2006). "A Study on SMO-Type Decomposition Methods for Support Vector Machines." IEEE Transactions on Neural Networks 17(4): 893-908. Chen, Y., C. Dai and W. Chen (2020). "Cross-Comparison of EMG-to-Force Methods for Multi-DoF Finger Force Prediction Using One-DoF Training." IEEE Access 8: 13958-13968. Choi, C., S. Kwon, W. Park, H.-d. Lee and J. Kim (2010). "Real-time pinch force estimation by surface electromyography using an artificial neural network." Medical Engineering & Physics 32(5): 429-436. Choi, H., B. B. Kang, B. K. Jung and K. J. Cho (2019). "Exo-Wrist: A Soft Tendon-Driven Wrist-Wearable Robot With Active Anchor for Dart-Throwing Motion in Hemiplegic Patients." IEEE Robotics and Automation Letters 4(4): 4499-4506. Christodoulou, C. I. and C. S. Pattichis (1999). "Unsupervised pattern recognition for the classification of EMG signals." IEEE Transactions on Biomedical Engineering 46(2): 169-178. Christophy, M., N. A. Faruk Senan, J. C. Lotz and O. M. O’Reilly (2012). "A Musculoskeletal model for the lumbar spine." Biomechanics and Modeling in Mechanobiology 11(1): 19-34. Chung, J. E., J. F. Magland, A. H. Barnett, V. M. Tolosa, A. C. Tooker, K. Y. Lee, K. G. Shah, S. H. Felix, L. M. Frank and L. F. Greengard (2017). "A Fully Automated Approach to Spike Sorting." Neuron 95(6): 1381- 1394.e1386. Cifrek, M., V. Medved, S. Tonković and S. Ostojić (2009). "Surface EMG based muscle fatigue evaluation in biomechanics." Clinical Biomechanics 24(4): 327-340. Clancy, E. A., S. Bouchard and D. Rancourt (2001). "Estimation and application of EMG amplitude during dynamic contractions." IEEE Eng Med Biol Mag 20(6): 47-54. Clancy, E. A. and N. Hogan (1997). "Relating agonist-antagonist electromyograms to joint torque during isometric, quasi-isotonic, nonfatiguing contractions." IEEE Transactions on Biomedical Engineering 44(10): 1024-1028. Clancy, E. A. and N. Hogan (1999). "Probability density of the surface electromyogram and its relation to amplitude detectors." IEEE Transactions on Biomedical Engineering 46(6): 730-739. Cohen, J. W., A. Gallina, T. D. Ivanova, T. Vieira, D. J. McAndrew and S. J. Garland (2020). "Regional modulation of the ankle plantarflexor muscles associated with standing external perturbations across different directions." Experimental Brain Research 238(1): 39-50. 144 Nam, C., W. Rong, W. Li, C. Cheung, W. Ngai, T. Cheung, M. Pang, L. Li, J. Hu, H. Wai and X. Hu (2022). "An Exoneuromusculoskeleton for Self-Help Upper Limb Rehabilitation After Stroke." Soft Robotics 9(1): 14-35. Navallas, J., A. Malanda and J. Rodriguez-Falces (2014). "Maximum Likelihood Estimation of Motor Unit Firing Pattern Statistics." IEEE Transactions on Neural Systems and Rehabilitation Engineering 22(3): 460- 469. Navallas, J., S. Porta and A. Malanda (2019). "Exact inter-discharge interval distribution of motor unit firing patterns with gamma model." Medical & Biological Engineering & Computing 57(5): 1159-1171. Nielsen, J. L. G., S. Holmgaard, N. Jiang, K. B. Englehart, D. Farina and P. A. Parker (2011). "Simultaneous and Proportional Force Estimation for Multifunction Myoelectric Prostheses Using Mirrored Bilateral Training." IEEE Transactions on Biomedical Engineering 58(3): 681-688. Nurhanim, K., I. Elamvazuthi, P. Vasant, T. Ganesan, S. Parasuraman and M. K. A. A. Khan (2014). "Joint Torque Estimation Model of Surface Electromyography(sEMG) Based on Swarm Intelligence Algorithm for Robotic Assistive Device." Procedia Computer Science 42: 175-182. O'Connor, D. P., M. T. Mahar, M. S. Laughlin and A. S. Jackson (2011). "The Bland-Altman Method Should Not Be Used in Regression Cross-Validation Studies." Research Quarterly for Exercise and Sport 82(4): 610-616. Öchsner, A. and R. Makvandi (2020). Constrained Functions of One Variable. Numerical Engineering Optimization: Application of the Computer Algebra System Maxima. A. Öchsner and R. Makvandi. Cham, Springer International Publishing: 47-84. Oliynyk, A., C. Bonifazzi, F. Montani and L. Fadiga (2012). "Automatic onlinespike sorting with singular value decomposition and fuzzy C-mean clustering." BMC Neuroscience 13(1): 96. Pedreira, C., J. Martinez, M. J. Ison and R. Quian Quiroga (2012). "How many neurons can we see with current spike sorting algorithms?" Journal of Neuroscience Methods 211(1): 58-65. Perreault, E. J., C. J. Heckman and T. G. Sandercock (2003). "Hill muscle model errors during movement are greatest within the physiologically relevant range of motor unit firing rates." Journal of Biomechanics 36(2): 211-218. Phinyomark, A., P. Phukpattaranont and C. Limsakul (2012). "Feature reduction and selection for EMG signal classification." Expert Systems with Applications 39(8): 7420-7431. Pillow, J. W., J. Shlens, E. J. Chichilnisky and E. P. Simoncelli (2013). "A Model-Based Spike Sorting Algorithm for Removing Correlation Artifacts in Multi-Neuron Recordings." PLOS ONE 8(5): e62123. Pintelon, R. and J. Schoukens (2012). System identification: a frequency domain approach, John Wiley & Sons. Pisner, D. A. and D. M. Schnyer (2020). Support vector machine. Machine learning, Elsevier: 101-121. Porter, C. L., A. Alvarez, K. E. Jones and K. Ming Chan (2008). "Test–retest reliability of a modified multiple point stimulation technique for motor unit number estimation." Clinical Neurophysiology 119(10): 2287-2290. Potvin, J. R. and S. H. M. Brown (2004). "Less is more: high pass filtering, to remove up to 99% of the surface EMG signal power, improves EMG-based biceps brachii muscle force estimates." Journal of Electromyography and Kinesiology 14(3): 389-399. Prentice, J. S., J. Homann, K. D. Simmons, G. Tkačik, V. Balasubramanian and P. C. Nelson (2011). "Fast, scalable, Bayesian spike identification for multi-electrode arrays." PLoS One 6(7): e19884. Price, S. R., N. V. De Marco Garcia, B. Ranscht and T. M. Jessell (2002). "Regulation of Motor Neuron Pool Sorting by Differential Expression of Type II Cadherins." Cell 109(2): 205-216. Puig, P. and M. A. Stephens (2000). "Tests of Fit for the Laplace Distribution, With Applications." Technometrics 42(4): 417-424. 145 Rafuse, V. F. and T. Gordon (1996). "Self-reinnervated cat medial gastrocnemius muscles. II. analysis of the mechanisms and significance of fiber type grouping in reinnervated muscles." Journal of Neurophysiology 75(1): 282-297. Rafuse, V. F., M. C. Pattullo and T. Gordon (1997). "Innervation ratio and motor unit force in large muscles: a study of chronically stimulated cat medial gastrocnemius." The Journal of Physiology 499(3): 809-823. Ranaldi, S., G. Corvini, C. De Marchis and S. Conforto (2022). "The Influence of the sEMG Amplitude Estimation Technique on the EMG–Force Relationship." Sensors 22(11): 3972. Rane, L., Z. Ding, A. H. McGregor and A. M. J. Bull (2019). "Deep Learning for Musculoskeletal Force Prediction." Annals of Biomedical Engineering 47(3): 778-789. Ren, X., C. Zhang, X. Li, G. Yang, T. Potter and Y. Zhang (2018). "Intramuscular EMG Decomposition Basing on Motor Unit Action Potentials Detection and Superposition Resolution." Frontiers in Neurology 9. Rey, H. G., C. Pedreira and R. Quian Quiroga (2015). "Past, present and future of spike sorting techniques." Brain Research Bulletin 119: 106-117. Ridall, P. G., A. N. Pettitt, R. D. Henderson and P. A. McCombe (2006). "Motor Unit Number Estimation— A Bayesian Approach." Biometrics 62(4): 1235-1250. Rojas-Martínez, M., J. F. Alonso, M. Jordanić, M. Á. Mañanas and J. Chaler (2019). "Analysis of Muscle Load-Sharing in Patients With Lateral Epicondylitis During Endurance Isokinetic Contractions Using Nonlinear Prediction." Frontiers in Physiology 10. Rossant, C., S. N. Kadir, D. F. M. Goodman, J. Schulman, M. L. D. Hunter, A. B. Saleem, A. Grosmark, M. Belluscio, G. H. Denfield, A. S. Ecker, A. S. Tolias, S. Solomon, G. Buzsáki, M. Carandini and K. D. Harris (2016). "Spike sorting for large, dense electrode arrays." Nature Neuroscience 19(4): 634-641. Routal, R. V. and G. P. Pal (1999). "A study of motoneuron groups and motor columns of the human spinal cord." Journal of Anatomy 195(2): 211-224. Šavc, M., V. Glaser, J. Kranjec, I. Cikajlo, Z. Matjačič and A. Holobar (2018). "Comparison of Convolutive Kernel Compensation and Non-Negative Matrix Factorization of Surface Electromyograms." IEEE Transactions on Neural Systems and Rehabilitation Engineering 26(10): 1935-1944. Sember, V., K. Meh, M. Sorić, G. Starc, P. Rocha and G. Jurak (2020). "Validity and Reliability of International Physical Activity Questionnaires for Adults across EU Countries: Systematic Review and Meta Analysis." International Journal of Environmental Research and Public Health 17(19): 7161. Setiono, R. and L. C. K. Hui (1995). "Use of a quasi-Newton method in a feedforward neural network construction algorithm." IEEE Transactions on Neural Networks 6(1): 273-277. Shirzadi, M., H. R. Marateb, K. C. McGill and M. A. Mañanas (2021). "Rigorous performance assessment of the algorithms for resolving motor unit action potential superpositions." Journal of Electromyography and Kinesiology 56: 102510. Sinaga, K. P. and M. S. Yang (2020). "Unsupervised K-Means Clustering Algorithm." IEEE Access 8: 80716- 80727. Smith, P. (2023). "Differences And Similarities Between Somatic And Visceral Reflex." Smola, A. J. and B. Schölkopf (2004). "A tutorial on support vector regression." Statistics and Computing 14(3): 199-222. Spoden, M., U. Nimptsch and T. Mansky (2019). "Amputation rates of the lower limb by amputation level – observational study using German national hospital discharge data from 2005 to 2015." BMC Health Services Research 19(1): 8. Stashuk, D. (2001). "EMG signal decomposition: how can it be accomplished and used?" Journal of Electromyography and Kinesiology 11(3): 151-173. 146 Staudenmann, D., A. Daffertshofer, I. Kingma, D. F. Stegeman and J. H. v. Dieen (2007). "Independent Component Analysis of High-Density Electromyography in Muscle Force Estimation." IEEE Transactions on Biomedical Engineering 54(4): 751-754. Staudenmann, D., I. Kingma, A. Daffertshofer, D. F. Stegeman and J. H. van Dieën (2006). "Improving EMG-based muscle force estimation by using a high-density EMG grid and principal component analysis." IEEE Trans Biomed Eng 53(4): 712-719. Staudenmann, D., I. Kingma, D. F. Stegeman and J. H. van Dieën (2005). "Towards optimal multi-channel EMG electrode configurations in muscle force estimation: a high density EMG study." Journal of Electromyography and Kinesiology 15(1): 1-11. Staudenmann, D., K. Roeleveld, D. F. Stegeman and J. H. van Dieën (2010). "Methodological aspects of SEMG recordings for force estimation – A tutorial and review." Journal of Electromyography and Kinesiology 20(3): 375-387. Strang, G. (2022). Introduction to linear algebra, SIAM. Su, H., W. Qi, Z. Li, Z. Chen, G. Ferrigno and E. D. Momi (2021). "Deep Neural Network Approach in EMG- Based Force Estimation for Human–Robot Interaction." IEEE Transactions on Artificial Intelligence 2(5): 404-412. Sukiban, J., N. Voges, T. A. Dembek, R. Pauli, V. Visser-Vandewalle, M. Denker, I. Weber, L. Timmermann and S. Grün (2019). "Evaluation of Spike Sorting Algorithms: Application to Human Subthalamic Nucleus Recordings and Simulations." Neuroscience 414: 168-185. Takahashi, S., Y. Anzai and Y. Sakurai (2003). "Automatic Sorting for Multi-Neuronal Activity Recorded With Tetrodes in the Presence of Overlapping Spikes." Journal of Neurophysiology 89(4): 2245-2258. Tharwat, A., T. Gaber, A. Ibrahim and A. E. Hassanien (2017). "Linear discriminant analysis: A detailed tutorial." AI communications 30(2): 169-190. van Dijk, J. P., M. M. Lowery, B. G. Lapatki and D. F. Stegeman (2009). "Evidence of Potential Averaging over the Finite Surface of a Bioelectric Surface Electrode." Annals of Biomedical Engineering 37(6): 1141- 1151. Vanderhorst, V. G. J. M. and G. Holstege (1997). "Organization of lumbosacral motoneuronal cell groups innervating hindlimb, pelvic floor, and axial muscles in the cat." Journal of Comparative Neurology 382(1): 46-76. Ventura, V. and R. C. Gerkin (2012). "Accurately estimating neuronal correlation requires a new spikesorting paradigm." Proceedings of the National Academy of Sciences 109(19): 7230-7235. Vette, A. H., D. G. Sayenko, M. Jones, M. O. Abe, K. Nakazawa and K. Masani (2017). "Ankle muscle cocontractions during quiet standing are associated with decreased postural steadiness in the elderly." Gait & Posture 55: 31-36. Vieira, T. M. and A. Botter (2021). "The Accurate Assessment of Muscle Excitation Requires the Detection of Multiple Surface Electromyograms." Exercise and Sport Sciences Reviews 49(1). Vieira, T. M. M., I. D. Loram, S. Muceli, R. Merletti and D. Farina (2011). "Postural activation of the human medial gastrocnemius muscle: are the muscle units spatially localised?" The Journal of Physiology 589(2): 431-443. Wang, H., K. J. Rajotte, H. Wang, C. Dai, Z. Zhu, X. Huang and E. A. Clancy (2021). "Simplified Optimal Estimation of Time-Varying Electromyogram Standard Deviation (EMGσ): Evaluation on Two Datasets." Sensors 21(15): 5165. Wang, L. C. and D. Kernell (2002). "Fibre type regionalisation in lower hindlimb muscles of rabbit, rat and mouse: a comparative study." Journal of Anatomy 199(6): 631-643. Wang, N., K. Lao and X. Zhang (2017). "Design and Myoelectric Control of an Anthropomorphic Prosthetic Hand." Journal of Bionic Engineering 14(1): 47-59. 147 Warnica, M. J., T. B. Weaver, S. D. Prentice and A. C. Laing (2014). "The influence of ankle muscle activation on postural sway during quiet stance." Gait & Posture 39(4): 1115-1121. Weijs, W. A., P. J. W. Jüch, S. H. S. Kwa and J. A. M. Korfage (1993). "Motor Unit Territories and Fiber Types in Rabbit Masseter Muscle." Journal of Dental Research 72(11): 1491-1498. West, R. M. (2022). "Best practice in statistics: The use of log transformation." Annals of Clinical Biochemistry 59(3): 162-165. Westgaard, R. H. and C. J. D. Luca (2001). "Motor Control of Low-Threshold Motor Units in the Human Trapezius Muscle." Journal of Neurophysiology 85(4): 1777-1781. Windhorst, U., T. M. Hamm and D. G. Stuart (2010). "On the function of muscle and reflex partitioning." Behavioral and Brain Sciences 12(4): 629-645. Xanthopoulos, P., P. M. Pardalos, T. B. Trafalis, P. Xanthopoulos, P. M. Pardalos and T. B. Trafalis (2013). "Linear discriminant analysis." Robust data mining: 27-33. Xu, L., X. Chen, S. Cao, X. Zhang and X. Chen (2018). "Feasibility Study of Advanced Neural Networks Applied to sEMG-Based Force Estimation." Sensors 18(10): 3226. Xue, M., L. Haibin and D. W. Jacobs (2009). Sparse representation of cast shadows via ℓ1-regularized least squares. 2009 IEEE 12th International Conference on Computer Vision. Ye, S., E. Aboutanios, D. S. Thomas and J. M. Hook (2017). "Localised high resolution spectral estimator for resolving superimposed peaks in NMR signals." Signal Processing 130: 343-354. Yger, P., G. L. B. Spampinato, E. Esposito, B. Lefebvre, S. Deny, C. Gardella, M. Stimberg, F. Jetter, G. Zeck, S. Picaud, J. Duebel and O. Marre (2018). "A spike sorting toolbox for up to thousands of electrodes validated with ground truth recordings in vitro and in vivo." eLife 7: e34518. Youn, W. and J. Kim (2010). "Estimation of elbow flexion force during isometric muscle contraction from mechanomyography and electromyography." Medical & Biological Engineering & Computing 48(11): 1149-1157. Young, M., A. Paul, J. Rodda, M. Duxson and P. Sheard (2000). "Examination of intrafascicular muscle fiber terminations: Implications for tension delivery in series-fibered muscles." Journal of Morphology 245(2): 130-145. Yu, T., K. Akhmadeev, E. L. Carpentier, Y. Aoustin and D. Farina (2020). "On-Line Recursive Decomposition of Intramuscular EMG Signals Using GPU-Implemented Bayesian Filtering." IEEE Transactions on Biomedical Engineering 67(6): 1806-1818. Yu, T., K. Akhmadeev, E. L. Carpentier, Y. Aoustin, R. Gross, Y. Péréon and D. Farina (2020). "Recursive Decomposition of Electromyographic Signals With a Varying Number of Active Sources: Bayesian Modeling and Filtering." IEEE Transactions on Biomedical Engineering 67(2): 428-440. Zamani, M., D. Jiang and A. Demosthenous (2018). "An Adaptive Neural Spike Processor With Embedded Active Learning for Improved Unsupervised Sorting Accuracy." IEEE Transactions on Biomedical Circuits and Systems 12(3): 665-676. Zhang, P.-M., J.-Y. Wu, Y. Zhou, P.-J. Liang and J.-Q. Yuan (2004). "Spike sorting based on automatic template reconstruction with a partial solution to the overlapping problem." Journal of Neuroscience Methods 135(1): 55-65. Zhou, P. and W. Z. Rymer (2004). "Factors Governing the Form of the Relation Between Muscle Force and the EMG: A Simulation Study." Journal of Neurophysiology 92(5): 2878-2886. Ziai, A. and C. Menon (2011). "Comparison of regression models for estimation of isometric wrist joint torques using surface electromyography." Journal of NeuroEngineering and Rehabilitation 8(1): 56.