<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.2" xml:lang="en">
    <front>
        <journal-meta>
            <journal-id journal-id-type="pmc">F1000Research</journal-id>
            <journal-title-group>
                <journal-title>F1000Research</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2046-1402</issn>
            <publisher>
                <publisher-name>F1000 Research Limited</publisher-name>
                <publisher-loc>London, UK</publisher-loc>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.12688/f1000research.132382.2</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Research Article</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>A systematic investigation of detectors for low signal-to-noise ratio EMG signals</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 2; peer review: 1 approved, 1 approved with reservations]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Yuvaraj</surname>
                        <given-names>Monisha</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Investigation</role>
                    <role content-type="http://credit.niso.org/">Methodology</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0009-0009-4055-0975</uri>
                    <xref ref-type="aff" rid="a1">1</xref>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Raja</surname>
                        <given-names>Priyanka</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <xref ref-type="aff" rid="a3">3</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>David</surname>
                        <given-names>Ann</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a4">4</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Burdet</surname>
                        <given-names>Etienne</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <xref ref-type="aff" rid="a5">5</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>SKM</surname>
                        <given-names>Varadhan</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-5746-2340</uri>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Balasubramanian</surname>
                        <given-names>Sivakumar</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Project Administration</role>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0001-5915-1346</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                    <xref ref-type="aff" rid="a6">6</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>Department of Bioengineering, Christian Medical College Vellore Association, Vellore, Tamil Nadu, India</aff>
                <aff id="a2">
                    <label>2</label>Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India</aff>
                <aff id="a3">
                    <label>3</label>School of Electrical and Computer Engineering, Indiana University Purdue University Indianapolis, Indianapolis, Indiana, USA</aff>
                <aff id="a4">
                    <label>4</label>Department of Mechanical Engineering, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India</aff>
                <aff id="a5">
                    <label>5</label>Department of Bioengineering, Imperial College London, London, England, UK</aff>
                <aff id="a6">
                    <label>6</label>School of Health and Rehabilitation Sciences, The University of Queensland, Saint Lucia, Queensland, Australia</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:siva82kb@cmcvellore.ac.in">siva82kb@cmcvellore.ac.in</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>30</day>
                <month>1</month>
                <year>2024</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2023</year>
            </pub-date>
            <volume>12</volume>
            <elocation-id>429</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>22</day>
                    <month>1</month>
                    <year>2024</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Yuvaraj M et al.</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <self-uri content-type="pdf" xlink:href="https://f1000research.com/articles/12-429/pdf"/>
            <abstract>
                <sec>
                    <title>Background</title>
                    <p>Active participation of stroke survivors during robot-assisted movement therapy is essential for sensorimotor recovery. Robot-assisted therapy contingent on movement intention is an effective way to encourage patients&#x2019; active engagement. For severely impaired stroke patients with no residual movements, a surface electromyogram (EMG) has been shown to be a viable option for detecting movement intention. Although numerous algorithms for EMG detection exist, the detector with the highest accuracy and lowest latency for low signal-to-noise ratio (SNR) remains unknown.</p>
                </sec>
                <sec>
                    <title>Methods</title>
                    <p>This study, therefore, investigates the performance of 13 existing EMG detection algorithms on simulated low SNR (0dB and -3dB) EMG signals generated using three different EMG signal models: Gaussian, Laplacian, and biophysical model. The detector performance was quantified using the false positive rate (FPR), false negative rate (FNR), and detection latency. Any detector that consistently showed FPR and FNR of no more than 20%, and latency of no more than 50ms, was considered an appropriate detector for use in robot-assisted therapy.</p>
                </sec>
                <sec>
                    <title>Results</title>
                    <p>The results indicate that the Modified Hodges detector &#x2013; a simplified version of the threshold-based Hodges detector introduced in the current study &#x2013; was the most consistent detector across the different signal models and SNRs. It consistently performed for ~90% and ~40% of the tested trials for 0dB and -3dB SNR, respectively. The two statistical detectors (Gaussian and Laplacian Approximate Generalized Likelihood Ratio) and the Fuzzy Entropy detectors have a slightly lower performance than Modified Hodges.</p>
                </sec>
                <sec>
                    <title>Conclusions</title>
                    <p>Overall, the Modified Hodges, Gaussian and Laplacian Approximate Generalized Likelihood Ratio, and the Fuzzy Entropy detectors were identified as the potential candidates that warrant further investigation with real surface EMG data since they had consistent detection performance on low SNR EMG data.</p>
                </sec>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>EMG detectors</kwd>
                <kwd>Low SNR EMG</kwd>
                <kwd>Movement intent detection</kwd>
                <kwd>EMG-BCI</kwd>
                <kwd>Robot-assisted therapy</kwd>
                <kwd>Neurorehabilitation</kwd>
            </kwd-group>
            <funding-group>
                <award-group id="fund-1" xlink:href="http://dx.doi.org/10.13039/501100007601">
                    <funding-source>Horizon 2020</funding-source>
                    <award-id>871767</award-id>
                </award-group>
                <award-group id="fund-2">
                    <funding-source>Fluid Research grant, CMC Vellore,India</funding-source>
                    <award-id>IRBMin.No.12714</award-id>
                </award-group>
                <award-group id="fund-3">
                    <funding-source>Prime Minister research fellowship, Ministry of Education , India</funding-source>
                    <award-id>2500916</award-id>
                </award-group>
                <funding-statement>This project was supported through Prime Minister&#x2019;s Research Fellowship, Ministry of Education Government of India (awarded to Monisha Yuvaraj; PMRF ID: 2500916), the Fluid research grant, Christian Medical College, Vellore, India (IRB Min. No. 12714), and the EU H2020 REHYB (ICT 871767) project.</funding-statement>
                <funding-statement>
                    <italic>The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</italic>
                </funding-statement>
            </funding-group>
        </article-meta>
        <notes>
            <sec sec-type="version-changes">
                <label>Revised</label>
                <title>Amendments from Version 1</title>
                <p>We have modified the manuscript based on the suggestions from the reviewer. We have: (a) used the surface electromyogram acronym throughout the paper, (b) made the introduction concise by shortening the text on BCI drawbacks. The oversight in Table 1 on the signal conditioning methods for the Lidierth detector has been rectified. In Figure 1, the amplitude of the biophysical model signal has been scaled to have similar amplitudes to that of the phenomenological model to avoid any confusion. We have modified the term EMG-triggered robot-assisted therapy to EMG-driven robot-assisted therapy to since we want robot-assisted movements to be contingent on the presence or absence of sEMG; we have also changed &#x201c;sEMG-triggered&#x201d; to &#x201c;sEMG-driven&#x201d; in the manuscript. We have also included a paragraph in the discussion section to explain the choice of the 20% cut-off for defining a good detector. This cost will permit up to 20% FPR resulting in a sensitive detector. This is not a major concern, because some form of time-based filtering will be applied on the binary output of the EMG detector before using it to drive robotic assistance. The choice of amount of time-based&#x00a0; filtering can be determined through patient feedback from patients about their sense of agency when interacting with the robot device.</p>
            </sec>
        </notes>
    </front>
    <body>
        <sec id="sec1" sec-type="intro">
            <title>Introduction</title>
            <p>Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training.
                <sup>
                    <xref ref-type="bibr" rid="ref1">1</xref>
                </sup> Rehabilitation robots can facilitate such high-intensity movement training while providing physical assistance to the user for completing movements consistently and precisely. About 30% of stroke survivors are severely impaired
                <sup>
                    <xref ref-type="bibr" rid="ref2">2</xref>
                </sup>
                <sup>,</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref3">3</xref>
                </sup> and require physical assistance to actively engage in movement training. While physical assistance from a robot can motivate such subjects to attempt and train movements, they can also provide inappropriately timed or too much assistance
                <sup>
                    <xref ref-type="bibr" rid="ref4">4</xref>
                </sup>
                <sup>,</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref5">5</xref>
                </sup> leading to slacking, where patients reduce their voluntary effort and exploit robotic assistance to perform the movements. Inappropriately timed robotic assistance also alters the patient&#x2019;s sense of agency or subjective awareness of control. This could lead to a lack of intrinsic motivation and attention, affecting motor learning and performance.
                <sup>
                    <xref ref-type="bibr" rid="ref6">6</xref>
                </sup> Positive therapeutic effects have been observed only when patients actively engage in therapy.
                <sup>
                    <xref ref-type="bibr" rid="ref7">7</xref>
                </sup>
                <sup>&#x2013;</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref10">10</xref>
                </sup> Jo 
                <italic toggle="yes">et al.</italic>
                <sup>
                    <xref ref-type="bibr" rid="ref11">11</xref>
                </sup> reported no improvement in clinical scales with passive range of motion therapy. Thus, active patient participation during movement therapy is an essential ingredient for sensorimotor recovery.</p>
            <p>Robotic assistance contingent on a subject&#x2019;s intention to move is an effective way to guide neuroplasticity.
                <sup>
                    <xref ref-type="bibr" rid="ref12">12</xref>
                </sup> However, it can be difficult to detect the intention to move in stroke patients with no residual movement. Electroencephalogram (EEG) based brain-computer interface (BCI) has been used to detect movement intention in order to trigger robotic movement assistance and the effectiveness of EEG-BCI in robot-assisted rehabilitation has been investigated in several studies.
                <sup>
                    <xref ref-type="bibr" rid="ref13">13</xref>
                </sup>
                <sup>&#x2013;</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref19">19</xref>
                </sup> Ramos 
                <italic toggle="yes">et al.</italic> reported a 3 point improvement in the Fugl-Meyer assessment (FMA) score of the experimental group who were given robot-assisted therapy contingent on movement intention.
                <sup>
                    <xref ref-type="bibr" rid="ref17">17</xref>
                </sup> There are, however, several drawbacks to EEG-BCI systems. They often exhibit a poor signal-to-noise ratio, with significant trial-to-trial intra-subject variability.
                <sup>
                    <xref ref-type="bibr" rid="ref20">20</xref>
                </sup> Unlike electromyography systems, EEG-BCI modalities lack task specificity.
                <sup>
                    <xref ref-type="bibr" rid="ref21">21</xref>
                </sup> Moreover, their complexity and time-consuming nature make them less suitable for routine clinical use.
                <sup>
                    <xref ref-type="bibr" rid="ref24">22</xref>
                </sup>
            </p>
            <p>Surface Electromyogram (sEMG) could be a viable alternative to address these drawbacks of the EEG-BCI modality for robot-assisted therapy. sEMG is a simple, robust, compact modality suitable for routine clinical use. In a recent study, we identified sEMG as a potential alternative to EEG-BCI to detect movement intention from severely affected stroke patients without residual movement.
                <sup>
                    <xref ref-type="bibr" rid="ref24">22</xref>
                </sup> About 70% (22 out of the 30) of the study participants had residual sEMG in the forearm muscles that showed a consistent increase in amplitude with wrist/finger movement attempts.</p>
            <p>However, our study reported poor agreement between the EEG and sEMG modalities for detecting movement intention. The authors suggested that this discrepancy could be because of the simple root mean square detector with temporal thresholding that was used. This detector may not optimally pick up low SNR surface sEMG signals
                <sup>
                    <xref ref-type="bibr" rid="ref24">22</xref>
                </sup> expected from severe patients with no residual movements.</p>
            <p>Numerous sEMG detection algorithms have been proposed for the automatic detection of sEMG onset.
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup>
                <sup>&#x2013;</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref32">30</xref>
                </sup> The review article by Staude 
                <italic toggle="yes">et al.</italic>
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup> compared different sEMG detector types to identify the best detectors for detecting sEMG onset.
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup> However, this work was done on high SNR (3dB and 6dB) simulated sEMG signals generated by bandpass-filtering white Gaussian noise, and it only investigated detectors reported till 2001. Other detectors have been reported in the last 20 years, and a systematic characterization of existing sEMG detector types on low SNR sEMG signals (generated using different signal models) is still lacking. Identifying an optimal detector is essential for further exploring the use of sEMG-based movement intent detection for robot-assisted therapy in severely affected stroke subjects with no residual movements.</p>
            <p>Our goal in this study is to systematically compare the detection accuracy and latency of existing sEMG detectors on low SNR sEMG signals to identify the most promising detectors, while eliminating the ones with poor performance, for further investigation. To this end, we will here:
                <list list-type="bullet">
                    <list-item>
                        <label>&#x2022;</label>
                        <p>Generate simulated low SNR (0dB and -3dB) sEMG data using two phenomenological (Gaussian and Laplacian) models and a biophysical model to evaluate the performance of the different detector types.</p>
                    </list-item>
                    <list-item>
                        <label>&#x2022;</label>
                        <p>Define an appropriate cost function considering the detection accuracy and latency to evaluate the performance of the different detector types.</p>
                    </list-item>
                    <list-item>
                        <label>&#x2022;</label>
                        <p>Compare the performance of the different detector types on simulated surface sEMG signals from the three signal models for two different SNRs (0dB and -3dB) and identify the most appropriate detector type(s).</p>
                    </list-item>
                </list>
            </p>
            <p>We note that the detectors studied in this work produce a binary output suitable for on-off control of robotic assistance during therapy. This is in contrast to previous studies exploring continuous control paradigms using sEMG amplitude estimates on less severely affected stroke patients with some residual limb movements
                <sup>
                    <xref ref-type="bibr" rid="ref33">31</xref>
                </sup>
                <sup>,</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref34">32</xref>
                </sup> However, for severely affected patients with no residual movements, who may or may not have detectable sEMG, an on-off control scheme might be the easiest modality for human-robot interaction. Continuous control schemes might be appropriate as patients gain better control of their muscles that are still too weak to produce residual movements.</p>
        </sec>
        <sec id="sec2" sec-type="methods">
            <title>Methods</title>
            <p>Neurorehabilitation training consists of repeating specific movements of interest punctuated by periods of rest.
                <sup>
                    <xref ref-type="bibr" rid="ref17">17</xref>
                </sup>
                <sup>,</sup>
                <sup>
                    <xref ref-type="bibr" rid="ref35">33</xref>
                </sup> A typical training session will involve several &#x201c;trials&#x201d; of a particular movement, each with a period of rest (rest-phase) followed by a period of movement/movement attempt (move-phase). In sEMG-driven robot-assisted therapy, the robot remains inactive during the rest phase, while in the move phase robot-assisted movement of the subject&#x2019;s limb is contingent upon the presence or absence of sEMG at any given time instant; continued sEMG is required to continuously receive robotic assistance. The rest of this section starts with the formal definition of the signal processing problem solved by an sEMG detector, followed by the details of the simulated sEMG signals, a description of the general structure of sEMG detectors, and the approach used to compare the performance of the different detectors.</p>
            <sec id="sec3">
                <title>The formal definition of the signal processing problem</title>
                <p>Let 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>x</mml:mi>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>,</mml:mo>
                            <mml:mn>0</mml:mn>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>n</mml:mi>
                            <mml:mo>&lt;</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> be the recorded signal from a target muscle during the 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>i</mml:mi>
                                <mml:mi>th</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> trial; 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>n</mml:mi>
                        </mml:math>
                    </inline-formula> is the sampling instant, where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>n</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mn>0</mml:mn>
                        </mml:math>
                    </inline-formula> is the start of a trial, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> is the number of data points from each trial. Let 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>r</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>m</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> be the number of samples in the rest- and move-phases of a trial, respectively, then 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>r</mml:mi>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>m</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>. The time segments 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mn>0</mml:mn>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>n</mml:mi>
                            <mml:mo>&lt;</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>r</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>r</mml:mi>
                            </mml:msub>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>n</mml:mi>
                            <mml:mo>&lt;</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> correspond to the rest-phase and move-phase of the trial, respectively.</p>
                <p>
                    <bold>Problem definition:</bold> To detect the presence of EMG in real-time in the move-phase of a trial using only the current and past EMG data 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mfenced close="}" open="{">
                                <mml:mrow>
                                    <mml:mi>x</mml:mi>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>k</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                            <mml:mo>,</mml:mo>
                            <mml:mn>0</mml:mn>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>k</mml:mi>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>n</mml:mi>
                        </mml:math>
                    </inline-formula> from the start of the trial. Let 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> represent the binary output of the sEMG detector at the current sampling instant 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>n</mml:mi>
                        </mml:math>
                    </inline-formula>,
                    <disp-formula id="e1">
                        <mml:math display="block">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:mi>D</mml:mi>
                            <mml:mfenced close=")" open="(" separators=";">
                                <mml:msubsup>
                                    <mml:mfenced close="}" open="{">
                                        <mml:mrow>
                                            <mml:mi>x</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>k</mml:mi>
                                            </mml:mfenced>
                                        </mml:mrow>
                                    </mml:mfenced>
                                    <mml:mrow>
                                        <mml:mi>k</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>0</mml:mn>
                                    </mml:mrow>
                                    <mml:mi>n</mml:mi>
                                </mml:msubsup>
                                <mml:mi>p</mml:mi>
                            </mml:mfenced>
                            <mml:mo>&#x2208;</mml:mo>
                            <mml:mfenced close="}" open="{" separators=",">
                                <mml:mn>0</mml:mn>
                                <mml:mn>1</mml:mn>
                            </mml:mfenced>
                        </mml:math>
                        <label>(1)</label>
                    </disp-formula>
                </p>
                <p>where, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>D</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mo>&#x2219;</mml:mo>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the detector function that maps the sEMG signal 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mfenced close="}" open="{">
                                    <mml:mrow>
                                        <mml:mi>x</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>k</mml:mi>
                                        </mml:mfenced>
                                    </mml:mrow>
                                </mml:mfenced>
                                <mml:mrow>
                                    <mml:mi>k</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>0</mml:mn>
                                </mml:mrow>
                                <mml:mi>n</mml:mi>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula>, from the start of a trial to a binary output corresponding to the presence or absence of sEMG at the current time instant 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>n</mml:mi>
                        </mml:math>
                    </inline-formula>; 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>p</mml:mi>
                        </mml:math>
                    </inline-formula> is the set of detector parameters that control the detector&#x2019;s performance. The function 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>D</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mo>&#x2219;</mml:mo>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is often a complex mathematical operation consisting of a series of simpler operations performed on the sEMG data to produce the binary output. This binary output can be used as a simple on/off control of robotic assistance by severely affected patients to relearn movement initiation.
                    <sup>
                        <xref ref-type="bibr" rid="ref36">34</xref>
                    </sup>
                    <sup>,</sup>
                    <sup>
                        <xref ref-type="bibr" rid="ref37">35</xref>
                    </sup>
                </p>
            </sec>
            <sec id="sec4">
                <title>Simulation of surface EMG signal</title>
                <p>The analysis of the different sEMG detectors was performed using simulated sEMG data. To generate this simulated sEMG, we assume that:
                    <list list-type="bullet">
                        <list-item>
                            <label>&#x2022;</label>
                            <p>the measurement noise has a fixed variance throughout the experiment,</p>
                        </list-item>
                        <list-item>
                            <label>&#x2022;</label>
                            <p>the muscle is fully relaxed in the rest-phase of any trial, 
                                <italic toggle="yes">i.e.</italic>, there is no sEMG activity from the target muscle during the rest-phase, and</p>
                        </list-item>
                        <list-item>
                            <label>&#x2022;</label>
                            <p>the muscle is activated at a constant level for the entire duration of the move-phase.</p>
                        </list-item>
                    </list>
                </p>
                <p>These assumptions were made to evaluate the sEMG detectors under the conditions that: (a) the sEMG signal has a fixed signal-to-noise ratio (SNR) in the move-phase, and (b) all other intra- and inter-trial variabilities in the sEMG signal characteristics are minimized. The detectors that perform poorly under these ideal conditions will likely perform worse with real sEMG data from patients, since real sEMG data from severely affected stroke patients might occur in random bursts and is likely to have time-varying amplitude.</p>
                <p>We simulated 100 trials of sEMG data with an individual trial duration of 13 seconds (8 s and 5 s for rest- and move-phases, respectively). The sampling frequency of the simulated signal was set to 1000 Hz. Three different sEMG signal generation models were employed in the current analysis &#x2013; two phenomenological (Gaussian and Laplacian) models and one biophysical model.</p>
            </sec>
            <sec id="sec5">
                <title>Phenomenological models: Gaussian and Laplacian</title>
                <p>The phenomenological models were based on the work of De Luca
                    <sup>
                        <xref ref-type="bibr" rid="ref38">36</xref>
                    </sup> where a surface sEMG signal from a muscle activated at a fixed level can be treated as zero-mean white noise followed by a shaping filter (electrode properties); this model is widely accepted in the literature.
                    <sup>
                        <xref ref-type="bibr" rid="ref25">23</xref>
                    </sup>
                    <sup>,</sup>
                    <sup>
                        <xref ref-type="bibr" rid="ref39">37</xref>
                    </sup>
                    <sup>&#x2013;</sup>
                    <sup>
                        <xref ref-type="bibr" rid="ref42">40</xref>
                    </sup> The exact probability density of the sEMG signal depends on the muscle activation level, with high levels of activation following a Gaussian distribution.
                    <sup>
                        <xref ref-type="bibr" rid="ref39">37</xref>
                    </sup>
                    <sup>,</sup>
                    <sup>
                        <xref ref-type="bibr" rid="ref40">38</xref>
                    </sup> However, at low levels of muscle activation, sEMG signals have been reported to follow a distribution that lies between a Gaussian and a Laplacian distribution.
                    <sup>
                        <xref ref-type="bibr" rid="ref43">41</xref>
                    </sup> Therefore, to ensure that the detectors are tested with the appropriate signals, we generated data using both white Gaussian and white Laplacian signals, resulting in two phenomenological models.</p>
                <p>The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>e</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>. A step change in the signal variance, within a trial, at the transition between the rest- and move-phases of a trial was obtained by multiplying 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>e</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> by 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>&#x03c3;</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>:
                    <disp-formula id="e2">
                        <mml:math display="block">
                            <mml:mover accent="true">
                                <mml:mi>e</mml:mi>
                                <mml:mo stretchy="true">&#x0302;</mml:mo>
                            </mml:mover>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:mi>&#x03c3;</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mspace width="0.25em"/>
                            <mml:mi>e</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>,</mml:mo>
                            <mml:mspace width="2.25em"/>
                            <mml:mn>0</mml:mn>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:mi>n</mml:mi>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:msub>
                                <mml:mi>N</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                            <mml:mspace width="0.25em"/>
                        </mml:math>
                        <label>(2)</label>
                    </disp-formula>
                    <disp-formula id="e3">
                        <mml:math display="block">
                            <mml:msup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>2</mml:mn>
                            </mml:msup>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:mfenced close="" open="{">
                                <mml:mtable>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:msubsup>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>0</mml:mn>
                                                <mml:mn>2</mml:mn>
                                            </mml:msubsup>
                                        </mml:mtd>
                                        <mml:mtd>
                                            <mml:mn>0</mml:mn>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&lt;</mml:mo>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>r</mml:mi>
                                            </mml:msub>
                                        </mml:mtd>
                                    </mml:mtr>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:msubsup>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>0</mml:mn>
                                                <mml:mn>2</mml:mn>
                                            </mml:msubsup>
                                            <mml:mo>+</mml:mo>
                                            <mml:msubsup>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>1</mml:mn>
                                                <mml:mn>2</mml:mn>
                                            </mml:msubsup>
                                        </mml:mtd>
                                        <mml:mtd>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>r</mml:mi>
                                            </mml:msub>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&lt;</mml:mo>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>t</mml:mi>
                                            </mml:msub>
                                        </mml:mtd>
                                    </mml:mtr>
                                </mml:mtable>
                            </mml:mfenced>
                        </mml:math>
                        <label>(3)</label>
                    </disp-formula>where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>0</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>1</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> are the noise and signal variances, respectively. The noise variance is always set to 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>0</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> = 1 in this analysis, and the signal variance is chosen based on the desired signal-to-noise ratio (SNR) in the move-phase. The signal 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mover accent="true">
                                <mml:mi>e</mml:mi>
                                <mml:mo stretchy="true">&#x0302;</mml:mo>
                            </mml:mover>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is then zero-phase bandpass filtered (8
                    <sup>th</sup> order FIR bandpass filter with cut-off frequency 10 Hz and 450 Hz) to have a signal with spectral characteristics like a surface sEMG signal.
                    <disp-formula id="e4">
                        <mml:math display="block">
                            <mml:mi>x</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:msub>
                                <mml:mi>h</mml:mi>
                                <mml:mi mathvariant="italic">sf</mml:mi>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>&#x2217;</mml:mo>
                            <mml:mover accent="true">
                                <mml:mi>e</mml:mi>
                                <mml:mo stretchy="true">&#x0302;</mml:mo>
                            </mml:mover>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                        <label>(4)</label>
                    </disp-formula>where, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>h</mml:mi>
                                <mml:mi mathvariant="italic">sf</mml:mi>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the impulse response of the bandpass or shaping filter, and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>x</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the generated sEMG signal that is used for the analysis. The signal-to-noise ratio (SNR) of this simulated sEMG signal in the move-phase is given by,
                    <disp-formula id="e5">
                        <mml:math display="block">
                            <mml:mi>SNR</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mn>10</mml:mn>
                            <mml:mo>log</mml:mo>
                            <mml:mfenced close=")" open="(">
                                <mml:mfrac>
                                    <mml:msubsup>
                                        <mml:mi>&#x03c3;</mml:mi>
                                        <mml:mn>1</mml:mn>
                                        <mml:mn>2</mml:mn>
                                    </mml:msubsup>
                                    <mml:msubsup>
                                        <mml:mi>&#x03c3;</mml:mi>
                                        <mml:mn>0</mml:mn>
                                        <mml:mn>2</mml:mn>
                                    </mml:msubsup>
                                </mml:mfrac>
                            </mml:mfenced>
                            <mml:mi mathvariant="italic">dB</mml:mi>
                            <mml:mo>.</mml:mo>
                        </mml:math>
                        <label>(5)</label>
                    </disp-formula>
                </p>
            </sec>
            <sec id="sec6">
                <title>Biophysical model</title>
                <p>In addition to the phenomenological models, we also wanted to test the detectors on more realistic data based on the biophysics of the sEMG signal, accounting for the physiological origin of the electrical muscle activity and the recording electrode geometry. In this paper, the biophysical model proposed in Ref. 
                    <xref ref-type="bibr" rid="ref44">42</xref> was employed to generate the simulated sEMG data. Assuming a linear, isotropic volume conduction model, a simple muscle geometry with parallel muscles fibres ignoring the effects due to the finite muscle fibre length, the sEMG recorded by a bipolar electrode configuration can be approximated using the following expression:
                    <disp-formula id="e6">
                        <mml:math display="block">
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>sEMG</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:munderover>
                                            <mml:mo>&#x2211;</mml:mo>
                                            <mml:mrow>
                                                <mml:mi>q</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                            <mml:mi>Q</mml:mi>
                                        </mml:munderover>
                                        <mml:msub>
                                            <mml:mi>R</mml:mi>
                                            <mml:mi>q</mml:mi>
                                        </mml:msub>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>&#x2217;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>D</mml:mi>
                                            <mml:mi>q</mml:mi>
                                        </mml:msub>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>&#x2217;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>e</mml:mi>
                                            <mml:mi>q</mml:mi>
                                        </mml:msub>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>&#x2217;</mml:mo>
                                        <mml:mi>p</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:msub>
                                            <mml:mi>D</mml:mi>
                                            <mml:mi>q</mml:mi>
                                        </mml:msub>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mi>t</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:munderover>
                                            <mml:mo>&#x2211;</mml:mo>
                                            <mml:mrow>
                                                <mml:mi>m</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                            <mml:msub>
                                                <mml:mi>M</mml:mi>
                                                <mml:mi>q</mml:mi>
                                            </mml:msub>
                                        </mml:munderover>
                                        <mml:mi>&#x03b4;</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mrow>
                                                <mml:mi>t</mml:mi>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:msub>
                                                    <mml:mi>&#x03c4;</mml:mi>
                                                    <mml:mi>m</mml:mi>
                                                </mml:msub>
                                            </mml:mrow>
                                        </mml:mfenced>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                        </mml:math>
                        <label>(6)</label>
                    </disp-formula>where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>Q</mml:mi>
                        </mml:math>
                    </inline-formula> is the number of motor units in the muscle, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mi>q</mml:mi>
                            </mml:msub>
                            <mml:mfenced close=")" open="(">
                                <mml:mi>t</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the impulse train signal arriving at the 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>q</mml:mi>
                                <mml:mi>th</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> motor unit through its corresponding motor neuron, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>M</mml:mi>
                                <mml:mi>q</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> is the number of muscle fibers in the 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>q</mml:mi>
                                <mml:mi>th</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> motor unit, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>e</mml:mi>
                                <mml:mi>q</mml:mi>
                            </mml:msub>
                            <mml:mfenced close=")" open="(">
                                <mml:mi>t</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the approximate electrode transfer function between the 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>q</mml:mi>
                                <mml:mi>th</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> motor unit and the recording electrodes, and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>p</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mi>t</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the single fibre action potential, which is assumed to be the same for all fibres. The full details of the model can be found in Devasahayam.
                    <sup>
                        <xref ref-type="bibr" rid="ref44">42</xref>
                    </sup> with the associated parameters provided in 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22232527.v3">Table S3</ext-link> of the supplementary material.</p>
                <p>The sEMG simulator developed by Devasahayam
                    <sup>
                        <xref ref-type="bibr" rid="ref42">40</xref>
                    </sup> was employed in the current work to generate the simulated sEMG signals.
                    <sup>
                        <xref ref-type="bibr" rid="ref44">42</xref>
                    </sup> A bipolar surface electrode configuration with a 10 mm interelectrode distance was considered. The simulator takes in the muscle force level as its input and computes the corresponding firing pattern for the motor units. In the current study, the force levels from the muscle were set to 0N in the rest-phase (no muscle activation) and 10N in the move-phase (average firing rate of 16.4 Hz for the muscle). The simulator generated pure muscle activity 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>x</mml:mi>
                                <mml:mtext mathvariant="italic">pure</mml:mtext>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> recorded by the chosen electrode configuration. The force level for the muscle in the move-phase was chosen empirically to ensure that the temporal profile of the simulated sEMG signal 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mfenced close=")" open="(" separators=",">
                                <mml:mrow>
                                    <mml:msub>
                                        <mml:mi>x</mml:mi>
                                        <mml:mtext mathvariant="italic">pure</mml:mtext>
                                    </mml:msub>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>n</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                                <mml:mrow>
                                    <mml:mn>0</mml:mn>
                                    <mml:mo>&#x2264;</mml:mo>
                                    <mml:mi>n</mml:mi>
                                    <mml:mo>&#x2264;</mml:mo>
                                    <mml:msub>
                                        <mml:mi>N</mml:mi>
                                        <mml:mi>t</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> visually resembled that of real surface sEMG signals. A zero-mean white Gaussian noise 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>e</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> of fixed noise variance 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>0</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> was added to 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>x</mml:mi>
                                <mml:mtext mathvariant="italic">pure</mml:mtext>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> to introduce measurement noise. The noise variance was chosen based on the signal power (
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>1</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula>) of 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>x</mml:mi>
                                <mml:mtext mathvariant="italic">pure</mml:mtext>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> in the move-phase to obtain a signal with the desired SNR:
                    <disp-formula id="e7">
                        <mml:math display="block">
                            <mml:msubsup>
                                <mml:mi>&#x03c3;</mml:mi>
                                <mml:mn>0</mml:mn>
                                <mml:mn>2</mml:mn>
                            </mml:msubsup>
                            <mml:mo>=</mml:mo>
                            <mml:mfrac>
                                <mml:msubsup>
                                    <mml:mi>&#x03c3;</mml:mi>
                                    <mml:mn>1</mml:mn>
                                    <mml:mn>2</mml:mn>
                                </mml:msubsup>
                                <mml:mi>SNR</mml:mi>
                            </mml:mfrac>
                        </mml:math>
                        <label>(7)</label>
                    </disp-formula>
                </p>
                <p>Following this, the noisy signal 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:msub>
                                        <mml:mi>x</mml:mi>
                                        <mml:mtext mathvariant="italic">pure</mml:mtext>
                                    </mml:msub>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>n</mml:mi>
                                    </mml:mfenced>
                                    <mml:mo>+</mml:mo>
                                    <mml:mi>e</mml:mi>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>n</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is bandpass filtered (8
                    <sup>th</sup> order non-causal FIR filter) between 10 Hz and 450 Hz cut-off frequencies:
                    <disp-formula id="e8">
                        <mml:math display="block">
                            <mml:mi>x</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:msub>
                                <mml:mi>h</mml:mi>
                                <mml:mi mathvariant="italic">sf</mml:mi>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                            <mml:mo>&#x2217;</mml:mo>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:msub>
                                        <mml:mi>x</mml:mi>
                                        <mml:mtext mathvariant="italic">pure</mml:mtext>
                                    </mml:msub>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>n</mml:mi>
                                    </mml:mfenced>
                                    <mml:mo>+</mml:mo>
                                    <mml:mi>e</mml:mi>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>n</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                        <label>(8)</label>
                    </disp-formula>where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>h</mml:mi>
                                <mml:mi mathvariant="italic">sf</mml:mi>
                            </mml:msub>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> is the impulse response of the bandpass shaping filter. The characteristics of sEMG generated from these three models are shown in 
                    <xref ref-type="fig" rid="f1">Figure 1</xref>. We wanted to investigate the performance of the detectors under two conditions where the signal power was: (a) equal to noise power, and (b) less than the noise power. Thus, the current study employed two different SNRs of 0dB (signal power equals noise power) and -3dB (signal power is half the noise power).</p>
                <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                    <label>Figure 1. </label>
                    <caption>
                        <title>Characteristics of the sEMG signals generated from the three models.</title>
                        <p>The three rows correspond to the three different signal models: Biophysical in the top row, Gaussian in the middle, and Laplacian in the bottom row. The left most column shows the time series of the simulated 13 seconds of data with the first 8 seconds corresponding to the rest phase and the next 5 seconds to the move phase. The middle column shows the corresponding Fourier magnitude spectrum of the 5 seconds of move phase data. The right column displays the estimate of the probability density functions of the 5 seconds of move phase data from the three models.</p>
                    </caption>
                    <graphic id="gr1" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/161421/5c3ba021-44d2-40cf-8590-2c269b718344_figure1.gif"/>
                </fig>
            </sec>
            <sec id="sec7">
                <title>Detection algorithms</title>
                <p>The general structure for sEMG detectors proposed by Staude 
                    <italic toggle="yes">et al.</italic>
                    <sup>
                        <xref ref-type="bibr" rid="ref25">23</xref>
                    </sup> is shown in 
                    <xref ref-type="fig" rid="f2">Figure 2</xref>, which consists of three steps carried out sequentially to map the given real-time sEMG data into a binary output:
                    <list list-type="order">
                        <list-item>
                            <label>1.</label>
                            <p>
                                <bold>Signal conditioning</bold> is the first step to improve sEMG signal quality for better detection, often involving high-pass filtering for movement artefact removal. Some detectors might employ additional filtering operations, such as adaptive whitening for stable sEMG amplitude estimation.
                                <sup>
                                    <xref ref-type="bibr" rid="ref45">43</xref>
                                </sup>
                                <sup>,</sup>
                                <sup>
                                    <xref ref-type="bibr" rid="ref46">44</xref>
                                </sup> The conditioned signal is represented by
                                <disp-formula id="e9">
                                    <mml:math display="block">
                                        <mml:mover accent="true">
                                            <mml:mi>x</mml:mi>
                                            <mml:mo stretchy="true">~</mml:mo>
                                        </mml:mover>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:mi>S</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:msubsup>
                                                <mml:mfenced close="}" open="{">
                                                    <mml:mrow>
                                                        <mml:mi>x</mml:mi>
                                                        <mml:mfenced close="]" open="[">
                                                            <mml:mi>k</mml:mi>
                                                        </mml:mfenced>
                                                    </mml:mrow>
                                                </mml:mfenced>
                                                <mml:mrow>
                                                    <mml:mi>k</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mn>0</mml:mn>
                                                </mml:mrow>
                                                <mml:mi>n</mml:mi>
                                            </mml:msubsup>
                                        </mml:mfenced>
                                        <mml:mo>,</mml:mo>
                                        <mml:mn>0</mml:mn>
                                        <mml:mo>&lt;</mml:mo>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>&lt;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>N</mml:mi>
                                            <mml:mi>t</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                    <label>(9)</label>
                                </disp-formula>where 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>S</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mo>&#x2219;</mml:mo>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula> represents the mathematical operation performed by the signal conditioning step.</p>
                        </list-item>
                        <list-item>
                            <label>2.</label>
                            <p>
                                <bold>Test function computation</bold> transforms 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mover accent="true">
                                            <mml:mi>x</mml:mi>
                                            <mml:mo stretchy="true">~</mml:mo>
                                        </mml:mover>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula> into a scalar variable or feature that can distinguish the presence or absence of sEMG. The test function 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>g</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula> is computed at the current time instant 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>n</mml:mi>
                                    </mml:math>
                                </inline-formula> over a causal window of size 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>W</mml:mi>
                                    </mml:math>
                                </inline-formula>:
                                <disp-formula id="e10">
                                    <mml:math display="block">
                                        <mml:mi>g</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:mi>T</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:msubsup>
                                                <mml:mfenced close="}" open="{">
                                                    <mml:mrow>
                                                        <mml:mover accent="true">
                                                            <mml:mi>x</mml:mi>
                                                            <mml:mo stretchy="true">~</mml:mo>
                                                        </mml:mover>
                                                        <mml:mfenced close="]" open="[">
                                                            <mml:mi>k</mml:mi>
                                                        </mml:mfenced>
                                                    </mml:mrow>
                                                </mml:mfenced>
                                                <mml:mrow>
                                                    <mml:mi>k</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mi>n</mml:mi>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:mi>W</mml:mi>
                                                    <mml:mo>+</mml:mo>
                                                    <mml:mn>1</mml:mn>
                                                </mml:mrow>
                                                <mml:mi>n</mml:mi>
                                            </mml:msubsup>
                                        </mml:mfenced>
                                        <mml:mo>,</mml:mo>
                                        <mml:mn>0</mml:mn>
                                        <mml:mo>&lt;</mml:mo>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>&lt;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>N</mml:mi>
                                            <mml:mi>t</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                    <label>(10)</label>
                                </disp-formula>
                            </p>
                            <p>Some examples of test functions in the literature include the moving average of 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mover accent="true">
                                            <mml:mi>x</mml:mi>
                                            <mml:mo stretchy="true">~</mml:mo>
                                        </mml:mover>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula>, 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msup>
                                            <mml:mi>&#x03c7;</mml:mi>
                                            <mml:mn>2</mml:mn>
                                        </mml:msup>
                                    </mml:math>
                                </inline-formula> test variable,
                                <sup>
                                    <xref ref-type="bibr" rid="ref47">45</xref>
                                </sup> likelihood ratio
                                <sup>
                                    <xref ref-type="bibr" rid="ref48">46</xref>
                                </sup> 
                                <italic toggle="yes">etc.</italic>
                            </p>
                        </list-item>
                        <list-item>
                            <label>3.</label>
                            <p>A 
                                <bold>decision rule</bold> is applied on the test function 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>g</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula> by comparing it to a threshold 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>h</mml:mi>
                                    </mml:math>
                                </inline-formula> to identify the presence/absence of an sEMG signal:
                                <disp-formula id="e11">
                                    <mml:math display="block">
                                        <mml:mi>y</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:mi>R</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mrow>
                                                <mml:mi>g</mml:mi>
                                                <mml:mfenced close="]" open="[">
                                                    <mml:mi>n</mml:mi>
                                                </mml:mfenced>
                                            </mml:mrow>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:mfenced close="" open="{">
                                            <mml:mtable>
                                                <mml:mtr>
                                                    <mml:mtd>
                                                        <mml:mn>1</mml:mn>
                                                    </mml:mtd>
                                                    <mml:mtd>
                                                        <mml:mi>g</mml:mi>
                                                        <mml:mfenced close="]" open="[">
                                                            <mml:mi>n</mml:mi>
                                                        </mml:mfenced>
                                                        <mml:mo>&gt;</mml:mo>
                                                        <mml:mi>h</mml:mi>
                                                    </mml:mtd>
                                                </mml:mtr>
                                                <mml:mtr>
                                                    <mml:mtd>
                                                        <mml:mn>0</mml:mn>
                                                    </mml:mtd>
                                                    <mml:mtd>
                                                        <mml:mi>g</mml:mi>
                                                        <mml:mfenced close="]" open="[">
                                                            <mml:mi>n</mml:mi>
                                                        </mml:mfenced>
                                                        <mml:mo>&#x2264;</mml:mo>
                                                        <mml:mi>h</mml:mi>
                                                    </mml:mtd>
                                                </mml:mtr>
                                            </mml:mtable>
                                        </mml:mfenced>
                                    </mml:math>
                                    <label>(11)</label>
                                </disp-formula>
                            </p>
                            <p>The threshold 
                                <italic toggle="yes">h</italic> is adaptive and is calculated for each trial by adding &#x03b1; times the standard deviation of first 3 seconds data (
                                <xref ref-type="fig" rid="f3">Figure 3</xref>) to the mean. &#x03b1; is termed as the 
                                <italic toggle="yes">weight</italic> for threshold in this paper. Some detectors employ a more sophisticated decision rule, such as double thresholding, to control the false positive rates of detection.
                                <sup>
                                    <xref ref-type="bibr" rid="ref47">45</xref>
                                </sup>
                                <sup>,</sup>
                                <sup>
                                    <xref ref-type="bibr" rid="ref49">47</xref>
                                </sup>
                            </p>
                        </list-item>
                    </list>
                </p>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>Figure 2. </label>
                    <caption>
                        <title>A general structure for sEMG detectors as proposed by Staude 
                            <italic toggle="yes">et al.</italic>
                            <sup>
                                <xref ref-type="bibr" rid="ref25">23</xref>
                            </sup>
                        </title>
                    </caption>
                    <graphic id="gr2" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/161421/5c3ba021-44d2-40cf-8590-2c269b718344_figure2.gif"/>
                </fig>
                <fig fig-type="figure" id="f3" orientation="portrait" position="float">
                    <label>Figure 3. </label>
                    <caption>
                        <title>A representative example of a trial from the Gaussian signal model with -3dB SNR run through the Modified Hodges detector.</title>
                        <p>The plot shows the rectified sEMG signals, its lowpass filtered output, and the binary output from the detector. The trial is 13 seconds long with first 8 seconds corresponding to the rest-phase and the next 5 seconds to the move-phase. The rest-phase is further divided into the baseline phase (yellow background) that is used for computing the threshold 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:mi>h</mml:mi>
                                </mml:math>
                            </inline-formula>, and the remaining rest-phase (red background) is used for computing 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:msub>
                                        <mml:mi>r</mml:mi>
                                        <mml:mi mathvariant="italic">FP</mml:mi>
                                    </mml:msub>
                                </mml:math>
                            </inline-formula>. The move-phase (green background) is used to compute 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:mo>&#x2206;</mml:mo>
                                    <mml:mi>t</mml:mi>
                                </mml:math>
                            </inline-formula> and 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:msub>
                                        <mml:mi>r</mml:mi>
                                        <mml:mi mathvariant="italic">FN</mml:mi>
                                    </mml:msub>
                                </mml:math>
                            </inline-formula>.</p>
                    </caption>
                    <graphic id="gr3" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/161421/5c3ba021-44d2-40cf-8590-2c269b718344_figure3.gif"/>
                </fig>
                <p>We note that each detector has a set of parameters associated with it. The current study compares the performance of 13 detector types reported in the literature which can be implemented in real-time, listed in 
                    <xref ref-type="table" rid="T1">Table 1</xref>. Each detector type fits into the general structure shown in 
                    <xref ref-type="fig" rid="f2">Figure 2</xref>. The different parameters associated with these detector types are also provided in 
                    <xref ref-type="table" rid="T2">Table 2</xref>. A detailed description of the individual detector types and the algorithms for their implementation are provided in the extended data (
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22232527.v3">Table S1</ext-link>). All detector algorithms were obtained from the literature and implemented in MATLAB
                    <sup>
                        <xref ref-type="bibr" rid="ref52">50</xref>
                    </sup> with appropriate modifications required for real-time detection.</p>
                <table-wrap id="T1" orientation="portrait" position="float">
                    <label>Table 1. </label>
                    <caption>
                        <title>Description of the structure of the 13 detectors investigated in the current study, along with the different parameters associated with the individual detectors.</title>
                    </caption>
                    <table content-type="article-table" frame="hsides">
                        <thead>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">Detectors</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Signal Conditioning</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Test function</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Parameters</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Modified Hodges</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Rectification
                                    <break/>Low pass filter</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mover accent="true">
                                                <mml:mi>x</mml:mi>
                                                <mml:mo stretchy="true">~</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Cut-off frequency of LPF (
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:msub>
                                                <mml:mi>f</mml:mi>
                                                <mml:mi>c</mml:mi>
                                            </mml:msub>
                                            <mml:mo stretchy="true">)</mml:mo>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>AGLR - G</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref25">23</xref>
                                    </sup>
                                    <sup>,</sup>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref50">48</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Adaptive whitening</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Likelihood Ratio test</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>AGLR - L</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Adaptive whitening</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Likelihood Ratio test</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Fuzzy</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref29">27</xref>
                                    </sup> 
                                    <bold>Entropy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">-</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Chebyshev distance
                                    <break/>Fuzzy function</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Modified Lidierth</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Rectification
                                    <break/>Low pass filter</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mover accent="true">
                                                <mml:mi>x</mml:mi>
                                                <mml:mo stretchy="true">~</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Cut-off frequency of LPF (
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:msub>
                                                <mml:mi>f</mml:mi>
                                                <mml:mi>c</mml:mi>
                                            </mml:msub>
                                            <mml:mo stretchy="true">)</mml:mo>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>Weight (&#x03b1;)
                                    <break/>Double threshold params: m, T1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Hodges</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref25">23</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Rectification
                                    <break/>Low pass filter</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mover accent="true">
                                                <mml:mi>x</mml:mi>
                                                <mml:mo stretchy="true">&#x0302;</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mi>MAV</mml:mi>
                                            <mml:mfenced close=")" open="(">
                                                <mml:mrow>
                                                    <mml:mover accent="true">
                                                        <mml:mi>x</mml:mi>
                                                        <mml:mo stretchy="true">~</mml:mo>
                                                    </mml:mover>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mfenced close=")" open="(">
                                                <mml:mrow>
                                                    <mml:mover accent="true">
                                                        <mml:mi>x</mml:mi>
                                                        <mml:mo stretchy="true">&#x0302;</mml:mo>
                                                    </mml:mover>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:msub>
                                                        <mml:mi>&#x03bc;</mml:mi>
                                                        <mml:mn>0</mml:mn>
                                                    </mml:msub>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:mo>/</mml:mo>
                                            <mml:msub>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>0</mml:mn>
                                            </mml:msub>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Cut-off frequency of LPF (
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:msub>
                                                <mml:mi>f</mml:mi>
                                                <mml:mi>c</mml:mi>
                                            </mml:msub>
                                            <mml:mo stretchy="true">)</mml:mo>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>Window size (W)
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>RMS</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref24">22</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Band pass filter</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Root mean square (
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mover accent="true">
                                                <mml:mi>x</mml:mi>
                                                <mml:mo stretchy="true">~</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>)</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weights (&#x03b1;)
                                    <break/>Window shift (p)
                                    <break/>Temporal threshold (m)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Lidierth</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref25">23</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Rectification</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mover accent="true">
                                                <mml:mi>y</mml:mi>
                                                <mml:mo stretchy="true">~</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mi>MAV</mml:mi>
                                            <mml:mo stretchy="true">(</mml:mo>
                                            <mml:mover accent="true">
                                                <mml:mi>x</mml:mi>
                                                <mml:mo stretchy="true">~</mml:mo>
                                            </mml:mover>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>)
                                    <break/>
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mfenced close=")" open="(">
                                                <mml:mrow>
                                                    <mml:mover accent="true">
                                                        <mml:mi>y</mml:mi>
                                                        <mml:mo stretchy="true">~</mml:mo>
                                                    </mml:mover>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:msub>
                                                        <mml:mi>&#x03bc;</mml:mi>
                                                        <mml:mn>0</mml:mn>
                                                    </mml:msub>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:mo>/</mml:mo>
                                            <mml:msub>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>0</mml:mn>
                                            </mml:msub>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weight (&#x03b1;)
                                    <break/>Double threshold params: m, T1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>TKEO</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref30">28</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">High pass filter</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>&#x03c6;</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:msup>
                                                <mml:mover accent="true">
                                                    <mml:mi>x</mml:mi>
                                                    <mml:mo stretchy="true">~</mml:mo>
                                                </mml:mover>
                                                <mml:mn>2</mml:mn>
                                            </mml:msup>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mrow>
                                                    <mml:mi>n</mml:mi>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:mn>1</mml:mn>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:msup>
                                                <mml:mover accent="true">
                                                    <mml:mi>x</mml:mi>
                                                    <mml:mo stretchy="true">~</mml:mo>
                                                </mml:mover>
                                                <mml:mn>2</mml:mn>
                                            </mml:msup>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mrow>
                                                    <mml:mi>n</mml:mi>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:mn>2</mml:mn>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:msup>
                                                <mml:mover accent="true">
                                                    <mml:mi>x</mml:mi>
                                                    <mml:mo stretchy="true">~</mml:mo>
                                                </mml:mover>
                                                <mml:mn>2</mml:mn>
                                            </mml:msup>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mi>MAV</mml:mi>
                                            <mml:mfenced close=")" open="(">
                                                <mml:mrow>
                                                    <mml:mi>&#x03c6;</mml:mi>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Cut-off frequency of HPF (
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:msub>
                                                <mml:mi>f</mml:mi>
                                                <mml:mi>c</mml:mi>
                                            </mml:msub>
                                            <mml:mo stretchy="true">)</mml:mo>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>Window size (W)
                                    <break/>Weight (&#x03b1;)
                                    <break/>Double threshold params: m = 1, T1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Bonato</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref47">45</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Adaptive whitening</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>g</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mfenced close=")" open="(">
                                                <mml:mrow>
                                                    <mml:msup>
                                                        <mml:mover accent="true">
                                                            <mml:mi>x</mml:mi>
                                                            <mml:mo stretchy="true">~</mml:mo>
                                                        </mml:mover>
                                                        <mml:mn>2</mml:mn>
                                                    </mml:msup>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                    <mml:mo>&#x2212;</mml:mo>
                                                    <mml:msup>
                                                        <mml:mover accent="true">
                                                            <mml:mi>x</mml:mi>
                                                            <mml:mo stretchy="true">~</mml:mo>
                                                        </mml:mover>
                                                        <mml:mn>2</mml:mn>
                                                    </mml:msup>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mrow>
                                                            <mml:mi>n</mml:mi>
                                                            <mml:mo>&#x2212;</mml:mo>
                                                            <mml:mn>1</mml:mn>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:mo>/</mml:mo>
                                            <mml:msubsup>
                                                <mml:mi>&#x03c3;</mml:mi>
                                                <mml:mn>0</mml:mn>
                                                <mml:mn>2</mml:mn>
                                            </mml:msubsup>
                                        </mml:math>
                                    </inline-formula>
                                    <break/>
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&#x2208;</mml:mo>
                                            <mml:mfenced close="}" open="{" separators=",,,">
                                                <mml:mn>1</mml:mn>
                                                <mml:mn>3</mml:mn>
                                                <mml:mn>5</mml:mn>
                                                <mml:mo>&#x2026;</mml:mo>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight (&#x03b1;)
                                    <break/>Double threshold params: m, T1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>Sample</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref32">30</xref>
                                    </sup> 
                                    <bold>Entropy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">-</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Chebyshev distance
                                    <break/>Local tolerance for the distance</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)
                                    <break/>Weight (&#x03b1;)
                                    <break/>Tolerance 
                                    <inline-formula>
                                        <mml:math display="inline">
                                            <mml:mfenced close=")" open="(">
                                                <mml:mi>&#x03c1;</mml:mi>
                                            </mml:mfenced>
                                        </mml:math>
                                    </inline-formula>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>CWT</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref31">29</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">-</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Correlation of signal with Wavelet representing shape of MUAP</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Scaling parameter of the mother wavelet (a)
                                    <break/>Weight (&#x03b1;)</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>SSA</bold>
                                    <sup>
                                        <xref ref-type="bibr" rid="ref51">49</xref>
                                    </sup>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">-</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Computation of detection statistics using Euclidean distance.</td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (W)</td>
                            </tr>
                        </tbody>
                    </table>
                    <table-wrap-foot>
                        <p>Moving average (MAV): 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:mfrac>
                                        <mml:mn>1</mml:mn>
                                        <mml:mi>W</mml:mi>
                                    </mml:mfrac>
                                    <mml:msubsup>
                                        <mml:mo>&#x2211;</mml:mo>
                                        <mml:mrow>
                                            <mml:mi>k</mml:mi>
                                            <mml:mo>=</mml:mo>
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mi>W</mml:mi>
                                            <mml:mo>+</mml:mo>
                                            <mml:mn>1</mml:mn>
                                        </mml:mrow>
                                        <mml:mi>n</mml:mi>
                                    </mml:msubsup>
                                    <mml:mover accent="true">
                                        <mml:mi>x</mml:mi>
                                        <mml:mo stretchy="true">~</mml:mo>
                                    </mml:mover>
                                    <mml:mfenced close="]" open="[">
                                        <mml:mi>k</mml:mi>
                                    </mml:mfenced>
                                    <mml:mo>;</mml:mo>
                                </mml:math>
                            </inline-formula> AGLR-G &#x2013; approximate generalized likelihood ratio test assuming Gaussian model; AGLR-L &#x2013; AGLR assuming Laplacian model; Double threshold: Active state for at least (m) samples and during m samples can test function go below threshold repeatedly, not more that (T1) samples. CWT &#x2013; Continuous wavelet transform; SSA &#x2013; Singular spectrum analysis; RMS &#x2013; Root mean square detector.</p>
                    </table-wrap-foot>
                </table-wrap>
                <table-wrap id="T2" orientation="portrait" position="float">
                    <label>Table 2. </label>
                    <caption>
                        <title>Optimal parameters for the different detector types for the different SNRs and signal model. These parameters were identified using procedure described in 
                            <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref> on the 50 trials from the training datasets.</title>
                    </caption>
                    <table content-type="article-table" frame="hsides">
                        <thead>
                            <tr>
                                <th align="left" colspan="1" rowspan="2" valign="top">Detector type</th>
                                <th align="left" colspan="1" rowspan="2" valign="top">Parameters</th>
                                <th align="left" colspan="3" rowspan="1" valign="top">SNR 0dB</th>
                                <th align="left" colspan="3" rowspan="1" valign="top">SNR -3dB</th>
                            </tr>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">Gaussian</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Laplacian</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Biophysical</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Gaussian</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Laplacian</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">Biophysical</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td align="left" colspan="1" rowspan="2" valign="top">
                                    <bold>Modified Hodges</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">LPF cut-off (Hz)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">7.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">7.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">4.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">6.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">4.5</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="2" valign="top">
                                    <bold>AGLR-G</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">150</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">150</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">150</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">3</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="2" valign="top">
                                    <bold>AGLR-L</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (s)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.15</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.2</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="2" valign="top">
                                    <bold>Fuzzy Entropy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">60</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">80</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">90</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">70</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="4" valign="top">
                                    <bold>Modified Lidierth</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">LPF cut-off</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">7.5</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">m</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">55</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">T1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">60</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="3" valign="top">
                                    <bold>Hodges</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">LPF cut-off (Hz)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">8.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">9.5</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="4" valign="top">
                                    <bold>RMS</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">120</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window shift (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Time threshold (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">40</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="4" valign="top">
                                    <bold>Lidierth</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">m</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">10</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">10</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">T1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="4" valign="top">
                                    <bold>TKEO</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">HPF cut-off (Hz)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">15</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">15</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">100</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">T1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="3" valign="top">
                                    <bold>Bonato</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">m</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">10</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">20</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">25</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">T1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">60</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">30</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="3" valign="top">
                                    <bold>Sample Entropy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">Tolerance for distance</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>CWT</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Weight</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.2</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">1.4</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="top">
                                    <bold>SSA</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="top">Window size (ms)</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">52</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">50</td>
                            </tr>
                        </tbody>
                    </table>
                </table-wrap>
            </sec>
            <sec id="sec8">
                <title>A measure of detector performance</title>
                <p>The simulated sEMG data from the three different signal models and the two different SNRs were used to evaluate the performance of the different detector types. Each trial of sEMG signal (13 seconds long) was input to the different detectors to compute binary output indicating the presence or absence of sEMG signal. An optimal EMG detector designed for use in EMG-driven robot-assisted therapy should possess the capability to quickly identify the onset of sEMG, efficiently eliminate false positives, and consistently detect sEMG when it is present (lower false negative). Such a detector might be essential for maintaining the user&#x2019;s motivation and sense of agency. These are computed from the output 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> of each trial (
                    <xref ref-type="fig" rid="f3">Figure 3</xref>), where the sEMG signal from each trial was analysed in the following three steps:
                    <list list-type="order">
                        <list-item>
                            <label>1.</label>
                            <p>the first three seconds (0&#x2013;3s) of the rest-phase data is used for estimating the threshold 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>h</mml:mi>
                                    </mml:math>
                                </inline-formula> for detection:
                                <disp-formula id="e12">
                                    <mml:math display="block">
                                        <mml:mi>h</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:msub>
                                            <mml:mi>&#x03bc;</mml:mi>
                                            <mml:mi>g</mml:mi>
                                        </mml:msub>
                                        <mml:mo>+</mml:mo>
                                        <mml:mi>&#x03b1;</mml:mi>
                                        <mml:msub>
                                            <mml:mi>&#x03c3;</mml:mi>
                                            <mml:mi>g</mml:mi>
                                        </mml:msub>
                                        <mml:mspace width="2.25em"/>
                                        <mml:mi>&#x03b1;</mml:mi>
                                        <mml:mo>&#x2208;</mml:mo>
                                        <mml:mfenced close="]" open="[" separators=",">
                                            <mml:mn>1</mml:mn>
                                            <mml:mn>5</mml:mn>
                                        </mml:mfenced>
                                    </mml:math>
                                    <label>(12)</label>
                                </disp-formula>where 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msub>
                                            <mml:mi>&#x03bc;</mml:mi>
                                            <mml:mi>g</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                </inline-formula> and 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msub>
                                            <mml:mi>&#x03c3;</mml:mi>
                                            <mml:mi>g</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                </inline-formula> are the mean and standard deviation of the test function in this period.</p>
                        </list-item>
                        <list-item>
                            <label>2.</label>
                            <p>the remaining 5 seconds of the rest-phase are used to estimate the false positive rate 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mfenced close=")" open="(">
                                            <mml:msub>
                                                <mml:mi>r</mml:mi>
                                                <mml:mi mathvariant="italic">FP</mml:mi>
                                            </mml:msub>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula>.</p>
                        </list-item>
                        <list-item>
                            <label>3.</label>
                            <p>the 5 seconds of the move-phase are used to estimate the false negative rate 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mfenced close=")" open="(">
                                            <mml:msub>
                                                <mml:mi>r</mml:mi>
                                                <mml:mi mathvariant="italic">FN</mml:mi>
                                            </mml:msub>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula> and the detection latency 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mfenced close=")" open="(">
                                            <mml:mrow>
                                                <mml:mo>&#x2206;</mml:mo>
                                                <mml:mi>t</mml:mi>
                                            </mml:mrow>
                                        </mml:mfenced>
                                    </mml:math>
                                </inline-formula>.</p>
                        </list-item>
                    </list>
                </p>
                <p>We defined a performance measure to compute a single number referred to as the 
                    <italic toggle="yes">cost of detection</italic> that considers the false positive rate 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FP</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>, the false negative rate 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FN</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>, and the detection latency 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:mo>&#x2206;</mml:mo>
                                    <mml:mi>t</mml:mi>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>. Let 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi mathvariant="bold-italic">c</mml:mi>
                            <mml:mo>&#x225c;</mml:mo>
                            <mml:msup>
                                <mml:mfenced close="]" open="[">
                                    <mml:mrow>
                                        <mml:msub>
                                            <mml:mi>r</mml:mi>
                                            <mml:mi mathvariant="italic">FP</mml:mi>
                                        </mml:msub>
                                        <mml:mspace width="0.5em"/>
                                        <mml:msub>
                                            <mml:mi>r</mml:mi>
                                            <mml:mi mathvariant="italic">FN</mml:mi>
                                        </mml:msub>
                                        <mml:mspace width="0.5em"/>
                                        <mml:mi>f</mml:mi>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mrow>
                                                <mml:mo>&#x2206;</mml:mo>
                                                <mml:mi>t</mml:mi>
                                            </mml:mrow>
                                        </mml:mfenced>
                                    </mml:mrow>
                                </mml:mfenced>
                                <mml:mi>T</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> be the cost vector associated with the output 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> of the detector for a particular trial. We define the 
                    <italic toggle="yes">cost</italic> of detection 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                        </mml:math>
                    </inline-formula> as the infinity norm of the cost vector 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi mathvariant="bold-italic">c</mml:mi>
                        </mml:math>
                    </inline-formula>.
                    <disp-formula id="e13">
                        <mml:math display="block">
                            <mml:mi>C</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mo>max</mml:mo>
                            <mml:mspace width="0.25em"/>
                            <mml:mfenced close="}" open="{">
                                <mml:mrow>
                                    <mml:msub>
                                        <mml:mi>r</mml:mi>
                                        <mml:mi mathvariant="italic">FP</mml:mi>
                                    </mml:msub>
                                    <mml:mtable>
                                        <mml:mtr>
                                            <mml:mtd>
                                                <mml:mo>,</mml:mo>
                                            </mml:mtd>
                                            <mml:mtd>
                                                <mml:msub>
                                                    <mml:mi>r</mml:mi>
                                                    <mml:mi mathvariant="italic">FN</mml:mi>
                                                </mml:msub>
                                                <mml:mo>,</mml:mo>
                                            </mml:mtd>
                                            <mml:mtd>
                                                <mml:mi>f</mml:mi>
                                                <mml:mfenced close=")" open="(">
                                                    <mml:mrow>
                                                        <mml:mo>&#x2206;</mml:mo>
                                                        <mml:mi>t</mml:mi>
                                                    </mml:mrow>
                                                </mml:mfenced>
                                            </mml:mtd>
                                        </mml:mtr>
                                    </mml:mtable>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                        <label>(13)</label>
                    </disp-formula>providing the worst-case performance of the detector on the given trial.</p>
                <p>The false positive rate 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FP</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> is defined as the ratio of the number of 1s in the detector output 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> in the rest-phase of a trial, and the false negative rate 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FN</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> is defined as the ratio of the number of 0s in 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>y</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>n</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> in the move-phase.
                    <disp-formula id="e14">
                        <mml:math display="block">
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mfenced close="]" open="[" separators=",">
                                            <mml:mn>0</mml:mn>
                                            <mml:mn>1</mml:mn>
                                        </mml:mfenced>
                                        <mml:mo>&#x220b;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>r</mml:mi>
                                            <mml:mi mathvariant="italic">FP</mml:mi>
                                        </mml:msub>
                                        <mml:mo>&#x225c;</mml:mo>
                                        <mml:mfrac>
                                            <mml:mn>1</mml:mn>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>r</mml:mi>
                                            </mml:msub>
                                        </mml:mfrac>
                                        <mml:munderover>
                                            <mml:mo>&#x2211;</mml:mo>
                                            <mml:mrow>
                                                <mml:mi>n</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:mn>0</mml:mn>
                                            </mml:mrow>
                                            <mml:mrow>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>r</mml:mi>
                                                </mml:msub>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                        </mml:munderover>
                                        <mml:mi>y</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>n</mml:mi>
                                        </mml:mfenced>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mfenced close="]" open="[" separators=",">
                                            <mml:mn>0</mml:mn>
                                            <mml:mn>1</mml:mn>
                                        </mml:mfenced>
                                        <mml:mo>&#x220b;</mml:mo>
                                        <mml:msub>
                                            <mml:mi>r</mml:mi>
                                            <mml:mi mathvariant="italic">FN</mml:mi>
                                        </mml:msub>
                                        <mml:mo>&#x225c;</mml:mo>
                                        <mml:mfrac>
                                            <mml:mn>1</mml:mn>
                                            <mml:mrow>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>t</mml:mi>
                                                </mml:msub>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>r</mml:mi>
                                                </mml:msub>
                                            </mml:mrow>
                                        </mml:mfrac>
                                        <mml:munderover>
                                            <mml:mo>&#x2211;</mml:mo>
                                            <mml:mrow>
                                                <mml:mi>n</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>r</mml:mi>
                                                </mml:msub>
                                            </mml:mrow>
                                            <mml:mrow>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>t</mml:mi>
                                                </mml:msub>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:msub>
                                                    <mml:mi>N</mml:mi>
                                                    <mml:mi>r</mml:mi>
                                                </mml:msub>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                        </mml:munderover>
                                        <mml:mfenced close=")" open="(">
                                            <mml:mrow>
                                                <mml:mn>1</mml:mn>
                                                <mml:mo>&#x2212;</mml:mo>
                                                <mml:mi>y</mml:mi>
                                                <mml:mfenced close="]" open="[">
                                                    <mml:mi>n</mml:mi>
                                                </mml:mfenced>
                                            </mml:mrow>
                                        </mml:mfenced>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                        </mml:math>
                        <label>(14)</label>
                    </disp-formula>
                </p>
                <p>From 
                    <xref ref-type="fig" rid="f3">Figure 3</xref>, the detection latency is defined as the time delay from the start of the move-phase to when the detector output goes to 1:
                    <disp-formula id="e15">
                        <mml:math display="block">
                            <mml:mo>&#x2206;</mml:mo>
                            <mml:mi>t</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:msub>
                                <mml:mi>T</mml:mi>
                                <mml:mi>s</mml:mi>
                            </mml:msub>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:mo>min</mml:mo>
                                    <mml:mfenced close="}" open="{" separators="|">
                                        <mml:mrow>
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>r</mml:mi>
                                            </mml:msub>
                                            <mml:mspace width="0.25em"/>
                                        </mml:mrow>
                                        <mml:mrow>
                                            <mml:mspace width="0.25em"/>
                                            <mml:mi>y</mml:mi>
                                            <mml:mfenced close="]" open="[">
                                                <mml:mi>n</mml:mi>
                                            </mml:mfenced>
                                            <mml:mo>=</mml:mo>
                                            <mml:mn>1</mml:mn>
                                            <mml:mo>,</mml:mo>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>r</mml:mi>
                                            </mml:msub>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mi>n</mml:mi>
                                            <mml:mo>&lt;</mml:mo>
                                            <mml:msub>
                                                <mml:mi>N</mml:mi>
                                                <mml:mi>t</mml:mi>
                                            </mml:msub>
                                        </mml:mrow>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                        <label>(15)</label>
                    </disp-formula>where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>T</mml:mi>
                                <mml:mi>s</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> is the sampling period of data in milliseconds, and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mo>&#x2206;</mml:mo>
                            <mml:mi>t</mml:mi>
                            <mml:mo>&#x2208;</mml:mo>
                            <mml:mfenced close="]" open="[" separators=",">
                                <mml:mn>0</mml:mn>
                                <mml:mn>5000</mml:mn>
                            </mml:mfenced>
                            <mml:mi>ms</mml:mi>
                        </mml:math>
                    </inline-formula>. The cost due to this latency is quantified by the function 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>f</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:mo>&#x2206;</mml:mo>
                                    <mml:mi>t</mml:mi>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> that maps 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mo>&#x2206;</mml:mo>
                            <mml:mi>t</mml:mi>
                        </mml:math>
                    </inline-formula> to a real number in the closed interval between 0 and 1:
                    <disp-formula id="e16">
                        <mml:math display="block">
                            <mml:mfenced close="]" open="[" separators=",">
                                <mml:mn>0</mml:mn>
                                <mml:mn>1</mml:mn>
                            </mml:mfenced>
                            <mml:mo>&#x220b;</mml:mo>
                            <mml:mi>f</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:mo>&#x2206;</mml:mo>
                                    <mml:mi>t</mml:mi>
                                </mml:mrow>
                            </mml:mfenced>
                            <mml:mo>=</mml:mo>
                            <mml:mfenced close="" open="{">
                                <mml:mtable>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:mn>0</mml:mn>
                                        </mml:mtd>
                                        <mml:mtd>
                                            <mml:mo>&#x2206;</mml:mo>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&lt;</mml:mo>
                                            <mml:mn>0</mml:mn>
                                            <mml:mi>ms</mml:mi>
                                        </mml:mtd>
                                    </mml:mtr>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:mfrac>
                                                <mml:mrow>
                                                    <mml:mo>&#x2206;</mml:mo>
                                                    <mml:mi>t</mml:mi>
                                                </mml:mrow>
                                                <mml:mn>250</mml:mn>
                                            </mml:mfrac>
                                        </mml:mtd>
                                        <mml:mtd>
                                            <mml:mn>0</mml:mn>
                                            <mml:mi>ms</mml:mi>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mo>&#x2206;</mml:mo>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&lt;</mml:mo>
                                            <mml:mn>250</mml:mn>
                                            <mml:mi>ms</mml:mi>
                                        </mml:mtd>
                                    </mml:mtr>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:mn>1</mml:mn>
                                        </mml:mtd>
                                        <mml:mtd>
                                            <mml:mo>&#x2206;</mml:mo>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2265;</mml:mo>
                                            <mml:mn>250</mml:mn>
                                            <mml:mi>ms</mml:mi>
                                        </mml:mtd>
                                    </mml:mtr>
                                </mml:mtable>
                            </mml:mfenced>
                        </mml:math>
                        <label>(16)</label>
                    </disp-formula>
                </p>
                <p>Latencies between 0 to 250 ms have linearly increasing costs while the ones above 250 ms are considered as bad as 250 ms. Based on the definitions of 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FP</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>r</mml:mi>
                                <mml:mi mathvariant="italic">FN</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>, and 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>f</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:mo>&#x2206;</mml:mo>
                                    <mml:mi>t</mml:mi>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>, 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                            <mml:mo>&#x2208;</mml:mo>
                            <mml:mfenced close="]" open="[" separators=",">
                                <mml:mn>0</mml:mn>
                                <mml:mn>1</mml:mn>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>. A detector with a consistently lower cost of detection 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                        </mml:math>
                    </inline-formula> would be considered a better detector.</p>
            </sec>
            <sec id="sec9">
                <title>Comparing different detector types</title>
                <p>A detector&#x2019;s performance or cost is determined by the SNR of the input signal, the detector type, and its associated parameters. Thus, for a fixed SNR input signal, comparing two detector types must be done only after controlling for the influence of their corresponding detector parameters. In the current work, this was done by first choosing the optimal parameters for each detector type, before comparing different detector types. The optimal parameters for a detector type were selected by first splitting the 100 movement trials of simulated sEMG data of the three models (which was generated as explained above) into training and validation datasets with 50 trials each. This was done for both SNRs (0dB and -3dB) and for all three signal models (Gaussian, Laplacian, and biophysical). The training dataset was used to identify the optimal parameter values for the different detector types, 
                    <italic toggle="yes">i.e.</italic> the values of the parameter combination that consistently resulted in the least cost for the detector on the training dataset. The exact procedure is given in 
                    <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref> (end of the document), while details are provided in the extended data.</p>
                <p>After identifying the optimal parameter combination for each detector type, the optimal parameter values were used to run the detector on the 50 trials of the validation dataset, which resulted in the validation cost set 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>C</mml:mi>
                                <mml:mi mathvariant="italic">val</mml:mi>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                            <mml:mo>=</mml:mo>
                            <mml:msubsup>
                                <mml:mfenced close="}" open="{">
                                    <mml:msubsup>
                                        <mml:mi>C</mml:mi>
                                        <mml:mi>i</mml:mi>
                                        <mml:mi>D</mml:mi>
                                    </mml:msubsup>
                                </mml:mfenced>
                                <mml:mrow>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>1</mml:mn>
                                </mml:mrow>
                                <mml:mn>50</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> for the detector type 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>D</mml:mi>
                        </mml:math>
                    </inline-formula>. The cost set from the different detector types were compared using two-way ANOVA with the detector type and signal SNR as the two factors for each of the three-signal model. The complete code for the analysis can be found 
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/1608Moni/EMG_detectors">here</ext-link>.</p>
            </sec>
        </sec>
        <sec id="sec10" sec-type="results">
            <title>Results</title>
            <p>The entire analysis &#x2013; generation of the simulated data, the various detection algorithms, optimization
                <sup>
                    <xref ref-type="bibr" rid="ref53">51</xref>
                </sup> of the detector parameters, and analysis of the results &#x2013; reported in this paper were implemented in MATLAB R2020 (RRID:SCR_001622) (alternative languages could also recreate this study 
                <italic toggle="yes">i.e.</italic> Python [RRID:SCR_008394] or GNU Octave [RRID:SCR_014398]). A sample of the individual trials from the three sEMG signal models is depicted in 
                <xref ref-type="fig" rid="f1">Figure 1</xref>. A sample output of the different processing stages of the Modified Hodges detector from a Gaussian sEMG signal trial is shown in 
                <xref ref-type="fig" rid="f3">Figure 3</xref>. The Modified Hodges detector, filters (2
                <sup>nd</sup> order Butterworth low pass filter) the rectified raw sEMG signal (blue coloured trace in 
                <xref ref-type="fig" rid="f3">Figure 3</xref>). This lowpass filtered signal is the test function of the detector (red-coloured trace in 
                <xref ref-type="fig" rid="f3">Figure 3</xref>). The threshold 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:mi>h</mml:mi>
                    </mml:math>
                </inline-formula> for this trial is shown by the green-coloured horizontal line in 
                <xref ref-type="fig" rid="f3">Figure 3</xref>. The output of the detector (black coloured trace in 
                <xref ref-type="fig" rid="f3">Figure 3</xref>) is 1 whenever the test function crosses the threshold, it is 0 otherwise. The figure also shows the values of 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:msub>
                            <mml:mi>r</mml:mi>
                            <mml:mi mathvariant="italic">FP</mml:mi>
                        </mml:msub>
                    </mml:math>
                </inline-formula>, 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:msub>
                            <mml:mi>r</mml:mi>
                            <mml:mi mathvariant="italic">FN</mml:mi>
                        </mml:msub>
                    </mml:math>
                </inline-formula>, 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:mo>&#x2206;</mml:mo>
                        <mml:mi>t</mml:mi>
                    </mml:math>
                </inline-formula>, and 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:mi>f</mml:mi>
                        <mml:mfenced close=")" open="(">
                            <mml:mrow>
                                <mml:mo>&#x2206;</mml:mo>
                                <mml:mi>t</mml:mi>
                            </mml:mrow>
                        </mml:mfenced>
                    </mml:math>
                </inline-formula> for the trial.</p>
            <sec id="sec11">
                <title>Optimal parameters for the different detector types</title>
                <p>The 13 detector types were compared after choosing the optimal parameter set for each detector type using the training dataset of 50 trials for each of the six combinations of the three signal models and two SNRs.
                    <sup>
                        <xref ref-type="bibr" rid="ref54">52</xref>
                    </sup> This procedure is depicted in 
                    <xref ref-type="fig" rid="f4">Figure 4</xref> for the Modified Hodges detector for the 0 dB SNR Gaussian signal model, which shows the outcomes from the different steps in the optimization process described in 
                    <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref>. 
                    <xref ref-type="fig" rid="f4">Figure 4(a)</xref> shows the histograms of the cost 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                        </mml:math>
                    </inline-formula> for the different parameter combinations, in light blue traces. These histograms are estimated from the cost values 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mfenced close="}" open="{">
                                    <mml:msub>
                                        <mml:mi>C</mml:mi>
                                        <mml:mi>i</mml:mi>
                                    </mml:msub>
                                </mml:mfenced>
                                <mml:mrow>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>1</mml:mn>
                                </mml:mrow>
                                <mml:mn>50</mml:mn>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> obtained from the 50 trials in the training dataset for the different combinations of the detector parameters. The scatter plot of the median 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>c</mml:mi>
                                <mml:mi mathvariant="italic">med</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> and inter-quartile range 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>c</mml:mi>
                                <mml:mi mathvariant="italic">iqr</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> of these histograms are shown in 
                    <xref ref-type="fig" rid="f4">Figure 4(b)</xref>. The choice of the best parameter for the detector was determined to be the one with the least Euclidean norm 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msqrt>
                                <mml:mrow>
                                    <mml:msubsup>
                                        <mml:mi>c</mml:mi>
                                        <mml:mi mathvariant="italic">med</mml:mi>
                                        <mml:mn>2</mml:mn>
                                    </mml:msubsup>
                                    <mml:mo>+</mml:mo>
                                    <mml:msubsup>
                                        <mml:mi>c</mml:mi>
                                        <mml:mi mathvariant="italic">iqr</mml:mi>
                                        <mml:mn>2</mml:mn>
                                    </mml:msubsup>
                                </mml:mrow>
                            </mml:msqrt>
                        </mml:math>
                    </inline-formula> which is shown as the red circle in 
                    <xref ref-type="fig" rid="f4">Figure 4(b)</xref>; its corresponding histogram is shown in the thick red trace in 
                    <xref ref-type="fig" rid="f4">Figure 4(a)</xref>. 
                    <xref ref-type="fig" rid="f4">Figure 4(c)</xref> shows the marginal histograms of the individual contributors 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mfenced close=")" open="(" separators=",,">
                                <mml:msub>
                                    <mml:mi>r</mml:mi>
                                    <mml:mi mathvariant="italic">FP</mml:mi>
                                </mml:msub>
                                <mml:msub>
                                    <mml:mi>r</mml:mi>
                                    <mml:mi mathvariant="italic">FP</mml:mi>
                                </mml:msub>
                                <mml:mrow>
                                    <mml:mi>f</mml:mi>
                                    <mml:mfenced close=")" open="(">
                                        <mml:mrow>
                                            <mml:mo>&#x2206;</mml:mo>
                                            <mml:mi>t</mml:mi>
                                        </mml:mrow>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula> to the cost 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                        </mml:math>
                    </inline-formula> for the optimal parameter combination for the Modified Hodges detector. The values of the optimal parameters for the different detector types are listed in 
                    <xref ref-type="table" rid="T2">Table 2</xref>.</p>
                <fig fig-type="figure" id="f4" orientation="portrait" position="float">
                    <label>Figure 4. </label>
                    <caption>
                        <title>Outcomes of the parameter optimization process for the Modified Hodges detector as described in 
                            <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref>.</title>
                        <p>(a) Estimated probability density function of cost for the different combinations of parameters (in light blue traces). The red trace corresponds to the cost of the optimum parameter combination. (b) Scatter plot of median vs IQR for the cost of different parameter combinations. (c) Estimated histograms of latency, false positive rate, false negative rate and cost of the optimum parameter.</p>
                    </caption>
                    <graphic id="gr4" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/161421/5c3ba021-44d2-40cf-8590-2c269b718344_figure4.gif"/>
                </fig>
            </sec>
            <sec id="sec12">
                <title>How do the different detector types perform on the different signal models and SNRs?</title>
                <p>The performance of the different &#x201c;optimal&#x201d; detector types, 
                    <italic toggle="yes">i.e.</italic>, detectors using the optimal parameter values, were compared using the 50 trials from the validation datasets. The boxplot of the performance of these different detector types for the three different signal models &#x2013; Gaussian, Laplacian, and biophysical &#x2013; are shown in 
                    <xref ref-type="fig" rid="f5">Figure 5(a)</xref>, 
                    <xref ref-type="fig" rid="f5">(b)</xref>, 
                    <xref ref-type="fig" rid="f5">(c)</xref>, respectively; each of these subplots displays the performance for the 0dB and -3dB SNRs in red and blue boxplots, respectively. Note that the order of the depiction of the different detectors is in terms of the increasing average cost across the three signal models and two SNRs; the detectors on the left are better than the ones on the right in an average sense. A two-way ANOVA on the effect of the detector type and SNR on performance revealed a significant difference between the detector types (p &lt; 0.001) and SNRs (p &lt; 0.001) for all three signal models. The test revealed a significant interaction between the factors for all three models (biophysical: p &lt; 0.0001; Gaussian: p &lt; 0.0001; Laplacian: p &lt; 0.0001). These statistical results confirm the results shown in the boxplots in 
                    <xref ref-type="fig" rid="f5">Figure 5</xref>, where the performance is different among the detector types, with consistently poorer performance for -3dB compared to 0dB. The costs for both 0dB and -3dB appear to be lower for the biophysical model compared to the Gaussian and Laplacian models.</p>
                <fig fig-type="figure" id="f5" orientation="portrait" position="float">
                    <label>Figure 5. </label>
                    <caption>
                        <title>Boxplot of cost of performance of the different detectors in the validation datasets from the different signal models and SNRs.</title>
                        <p>All detectors shown in this plot use the optimal detector parameter sets optimized on the training dataset. (a) Cost of detection for the Gaussian signal model, (b) Laplacian signal model and (c) Biophysical signal model. The red and blue colored boxplots are of 0dB and -3 dB SNR, respectively. The red dashed line is the acceptable cost 
                            <inline-formula>
                                <mml:math display="inline">
                                    <mml:msub>
                                        <mml:mi>C</mml:mi>
                                        <mml:mtext mathvariant="italic">accept</mml:mtext>
                                    </mml:msub>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>0.2</mml:mn>
                                </mml:math>
                            </inline-formula>.</p>
                    </caption>
                    <graphic id="gr5" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/161421/5c3ba021-44d2-40cf-8590-2c269b718344_figure5.gif"/>
                </fig>
                <p>Most detector types perform similarly except for the Sample entropy, Continuous wavelet transform (CWT), and Singular spectrum analysis (SSA) detector types which perform worse across the different signal models and SNRs. Among the other detector types &#x2013; the Modified Hodges, the approximate generalise likelihood ratio test- Gaussian (AGLR-G), and the approximate generalise likelihood ratio test- Laplacian (AGLR-L) detectors &#x2013; have almost similar costs for the different signal models and SNRs. The other detector types &#x2013; Root mean square (RMS), Hodges, Bonato, Lidierth, Modified Lidierth, Teager Kaiser Energy Operator (TKEO), and Fuzzy entropy &#x2013; have slightly higher costs for one or more specific signal models and SNRs. We note that the Fuzzy entropy detector performs very well on the biophysical signal model for both SNRs with an acceptable cost for more than 95% of the validation trials.</p>
            </sec>
            <sec id="sec13">
                <title>Which detector types have an acceptable cost?</title>
                <p>The choice of appropriate detector type(s) for use in robot-assisted therapy requires the specification of an acceptable cost of detection 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>. To this end, we specify the upper limits for the false positive rate, false negative rate, and the latency of detection as 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mn>0.2</mml:mn>
                        </mml:math>
                    </inline-formula>, which corresponds to a detector with the following cost components:
                    <disp-formula id="e17">
                        <mml:math display="block">
                            <mml:mfenced close="}" open="">
                                <mml:mtable>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:msub>
                                                <mml:mi>r</mml:mi>
                                                <mml:mi mathvariant="italic">FP</mml:mi>
                                            </mml:msub>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mn>0.2</mml:mn>
                                        </mml:mtd>
                                    </mml:mtr>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:msub>
                                                <mml:mi>r</mml:mi>
                                                <mml:mi mathvariant="italic">FN</mml:mi>
                                            </mml:msub>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mn>0.2</mml:mn>
                                        </mml:mtd>
                                    </mml:mtr>
                                    <mml:mtr>
                                        <mml:mtd>
                                            <mml:mo>&#x2206;</mml:mo>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2264;</mml:mo>
                                            <mml:mn>50</mml:mn>
                                            <mml:mi>ms</mml:mi>
                                        </mml:mtd>
                                    </mml:mtr>
                                </mml:mtable>
                            </mml:mfenced>
                            <mml:mo>&#x27fa;</mml:mo>
                            <mml:msub>
                                <mml:mfenced close="&#x2016;" open="&#x2016;">
                                    <mml:mi mathvariant="bold-italic">c</mml:mi>
                                </mml:mfenced>
                                <mml:mo>&#x221e;</mml:mo>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mi>C</mml:mi>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mn>0.2</mml:mn>
                        </mml:math>
                        <label>(17)</label>
                    </disp-formula>
                </p>
                <p>We believe that these upper limits are a reasonable compromise among the three competing factors determining the cost. Any detector type with costs consistently lower than 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> would be deemed an appropriate detector for use in robot-assisted therapy. To determine the detector types with consistently lower costs than 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                        </mml:math>
                    </inline-formula>, we computed the proportion 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mo>(</mml:mo>
                            <mml:msubsup>
                                <mml:mi>r</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                            <mml:mo>)</mml:mo>
                        </mml:math>
                    </inline-formula> of the 50 validation trials with acceptable 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>C</mml:mi>
                            <mml:mo>&#x2264;</mml:mo>
                            <mml:msub>
                                <mml:mi>C</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> for the detector 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>D</mml:mi>
                        </mml:math>
                    </inline-formula> for the three signal models and two SNRs using
                    <disp-formula id="e18">
                        <mml:math display="block">
                            <mml:msubsup>
                                <mml:mi>r</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                            <mml:mo>=</mml:mo>
                            <mml:mfrac>
                                <mml:mn>1</mml:mn>
                                <mml:mn>50</mml:mn>
                            </mml:mfrac>
                            <mml:munderover>
                                <mml:mo>&#x2211;</mml:mo>
                                <mml:mrow>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>1</mml:mn>
                                </mml:mrow>
                                <mml:mn>50</mml:mn>
                            </mml:munderover>
                            <mml:mi mathvariant="double-struck">I</mml:mi>
                            <mml:mfenced close=")" open="(">
                                <mml:mrow>
                                    <mml:msubsup>
                                        <mml:mi>C</mml:mi>
                                        <mml:mi>i</mml:mi>
                                        <mml:mi>D</mml:mi>
                                    </mml:msubsup>
                                    <mml:mo>&#x2264;</mml:mo>
                                    <mml:msub>
                                        <mml:mi>C</mml:mi>
                                        <mml:mtext mathvariant="italic">accept</mml:mtext>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>
                        <label>(18)</label>
                    </disp-formula>where 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>C</mml:mi>
                                <mml:mi>i</mml:mi>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> is the cost of detection for the 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>i</mml:mi>
                                <mml:mi>th</mml:mi>
                            </mml:msup>
                        </mml:math>
                    </inline-formula> validation trial for detector 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>D</mml:mi>
                        </mml:math>
                    </inline-formula>. The value of 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>r</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                        </mml:math>
                    </inline-formula> for the different detector types is shown in 
                    <xref ref-type="table" rid="T3">Table 3</xref>, where the cells with 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi>r</mml:mi>
                                <mml:mtext mathvariant="italic">accept</mml:mtext>
                                <mml:mi>D</mml:mi>
                            </mml:msubsup>
                            <mml:mo>&#x2265;</mml:mo>
                            <mml:mn>0.8</mml:mn>
                        </mml:math>
                    </inline-formula> are highlighted. We can observe there that:
                    <list list-type="order">
                        <list-item>
                            <label>1.</label>
                            <p>All detectors perform poorly for the -3dB Laplacian signal model. The highest value of 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mi>r</mml:mi>
                                            <mml:mtext mathvariant="italic">accept</mml:mtext>
                                            <mml:mi>D</mml:mi>
                                        </mml:msubsup>
                                    </mml:math>
                                </inline-formula> is 0.22 for this signal model, which interestingly is from the AGLR-L detector designed for the Laplacian signal. Many detectors perform a little better with higher 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mi>r</mml:mi>
                                            <mml:mtext mathvariant="italic">accept</mml:mtext>
                                            <mml:mi>D</mml:mi>
                                        </mml:msubsup>
                                    </mml:math>
                                </inline-formula> values for the -3dB Gaussian and biophysical signal models.</p>
                        </list-item>
                        <list-item>
                            <label>2.</label>
                            <p>The Modified Hodges detector is the most consistent detector across the different signal models and SNRs. It has an 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mi>r</mml:mi>
                                            <mml:mtext mathvariant="italic">accept</mml:mtext>
                                            <mml:mi>D</mml:mi>
                                        </mml:msubsup>
                                        <mml:mo>&gt;</mml:mo>
                                        <mml:mn>0.8</mml:mn>
                                    </mml:math>
                                </inline-formula> for the three signal models at 0dB and the biophysical model at -3dB SNR.</p>
                        </list-item>
                        <list-item>
                            <label>3.</label>
                            <p>The Fuzzy Entropy detector performs as well as the Modified Hodges detector for the Gaussian and biophysical signal models, but not on the Laplacian model.</p>
                        </list-item>
                        <list-item>
                            <label>4.</label>
                            <p>In terms of the average value of 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mi>r</mml:mi>
                                            <mml:mtext mathvariant="italic">accept</mml:mtext>
                                            <mml:mi>D</mml:mi>
                                        </mml:msubsup>
                                    </mml:math>
                                </inline-formula>, across the three signal models (last two columns of 
                                <xref ref-type="table" rid="T3">Table 3</xref>), the Modified Hodges detector performs the best for the 0dB signals, followed by the AGLR-G, AGLR-L, and Fuzzy Entropy detectors which have slightly lower but similar performance. For -3dB signals, the Modified Hodges, AGLR-G, and AGLR-L detectors result in similar performances.</p>
                        </list-item>
                    </list>
                </p>
                <table-wrap id="T3" orientation="portrait" position="float">
                    <label>Table 3. </label>
                    <caption>
                        <title>The proportion of the 50 validation trials with cost less than the acceptable cost of 0.2 for different detector types, signal models, and SNRs.</title>
                        <p>The cells with proportions greater or equal to 0.8 are highlighted in gray.</p>
                    </caption>
                    <table content-type="article-table" frame="hsides">
                        <thead>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">Signal Model</th>
                                <th align="left" colspan="2" rowspan="1" valign="top">Gaussian</th>
                                <th align="left" colspan="2" rowspan="1" valign="top">Laplacian</th>
                                <th align="left" colspan="2" rowspan="1" valign="top">Biophysical</th>
                                <th align="left" colspan="2" rowspan="1" valign="top">Average</th>
                            </tr>
                            <tr>
                                <th align="left" colspan="1" rowspan="1" valign="top">SNR</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">0 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">-3 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">0 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">-3 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">0 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">-3 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">0 dB</th>
                                <th align="left" colspan="1" rowspan="1" valign="top">-3 dB</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>RMS</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.34</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.12</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.84</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.7</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.43</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.24</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Hodges</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.32</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.26</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.28</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.76</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.45</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.26</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Modified Hodges</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.86</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.4</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.82</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.06</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">1</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.84</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.89</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.43</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>AGLR-G</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.82</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.56</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.76</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.16</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.7</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.6</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.76</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.44</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>AGLR-L</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.8</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.54</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.68</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.22</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.68</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.44</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.72</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.4</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Fuzzy Entropy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.86</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.54</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.94</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.98</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.78</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.33</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Sample Entrpoy</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Lidierth</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.18</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.04</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.18</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.72</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.46</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.36</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.17</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Modified Lidierth</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.64</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.08</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.4</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" style="background-color:#AEAAAA" valign="middle">0.96</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.64</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.67</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.25</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>Bonato</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.54</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.02</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.08</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.06</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.23</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.01</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>TKEO</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.36</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.04</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.3</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.64</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.43</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0.01</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>CWT</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                            </tr>
                            <tr>
                                <td align="left" colspan="1" rowspan="1" valign="middle">
                                    <bold>SSA</bold>
                                </td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                                <td align="left" colspan="1" rowspan="1" valign="middle">0</td>
                            </tr>
                        </tbody>
                    </table>
                </table-wrap>
                <p>Based on these observations, the Modified Hodges appears to be the most consistent detector for low SNR signal models, irrespective of the sEMG signal model. The two statistical detectors (AGLR-G, and AGLR-L) and the fuzzy entropy detectors provide similar but slightly lower performance than the Modified Hodges detector.</p>
            </sec>
        </sec>
        <sec id="sec14" sec-type="discussion">
            <title>Discussion</title>
            <p>Movement intention-triggered robot-assisted therapy is one of the options available for severely impaired patients without residual movement. sEMG for movement intent detection is a simpler, more direct and task-specific alternative to EEG-BCI.
                <sup>
                    <xref ref-type="bibr" rid="ref24">22</xref>
                </sup> The investigation of sEMG-driven robot-assisted therapy requires a sensitive and robust method for the accurate and fast detection of movement intention from residual low SNR sEMG signals. This study systematically investigated existing sEMG detection algorithms in the literature until 2018. The investigation was carried out on simulated sEMG signals using three different signal models with low SNR of 0dB and -3dB. These SNRs correspond to feeble sEMG signals compared to regular surface sEMG recordings from healthy individuals. Using three different signal models &#x2013; two phenomenological and one biophysical &#x2013; makes the study results robust to assumptions about the simulated sEMG data.</p>
            <p>The study by Staude 
                <italic toggle="yes">et al.</italic> published in 2001
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup> compared different sEMG detectors for accurate sEMG onset-time detection. They employed a Gaussian signal model with ramp variance profiles (with varying slopes) at SNR of 3dB to 12dB in their analysis
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup> and found the AGLR statistical detector to be the best in terms of onset detection, while the Hodges detector performed poorly.
                <sup>
                    <xref ref-type="bibr" rid="ref25">23</xref>
                </sup> Although there are some similarities between the current study and those of Staude 
                <italic toggle="yes">et al.,</italic> the two differ in several ways: (a) the current study is focused on real-time detection, while Staude 
                <italic toggle="yes">et al.</italic>&#x2019;s primary goal was offline analysis; (b) the current study employed lower SNR signals, which is important considering its application to detect motion intention in severally affected stroke patients; (c) the current study tested three different signal models, while Staude 
                <italic toggle="yes">et al.</italic> used only the Gaussian signal model; (d) the primary performance measure in Staude 
                <italic toggle="yes">et al.</italic> was onset detection latency, while the current study used a composite performance measure (or cost) consisting of the false positive rate, false negative rate, and detection latency; (e) the rationale for the choice of the specific detector parameters was not explicitly mentioned in Staude 
                <italic toggle="yes">et al.</italic> In the current study, the detector parameters were optimized through a brute force search to ensure the best detectors from each detector type were compared; and (f) the current study investigates a wider class of detector types than Staude 
                <italic toggle="yes">et al.,</italic> including the detectors published after 2001.</p>
            <p>In this analysis, an acceptable cost 0.2 was chosen for application in sEMG-driven robot-assisted therapy; this corresponds to a latency of 50 ms, 20% FPR or 20%FNR; the low latency, and relatively high FPR and FNR can result in a more sensitive detector being chosen as the optimal detector. We do not believe this is a problem, because the raw output of this detector is unlikely to be used directly to drive the robot-assistance. Some form of low-pass or time-based filtering (like the one employed by Ramos-Murguialday 
                <italic toggle="yes">et al.</italic>
                <sup>
                    <xref ref-type="bibr" rid="ref17">17</xref>
                </sup>) will be employed to filter out show false positives/negative pulses before using it to drive robotic assistance. This filtering operation reduce the FPR and FNR at the expense of introducing an additional latency; a delay of 200-300ms are well tolerated when reporting for sense of agency.
                <sup>
                    <xref ref-type="bibr" rid="ref55">53</xref>
                </sup> The choice of amount of filtering of the chosen detector&#x2019;s output will need to be done through feedback from patients/users of the system.</p>
            <p>The current study identified that the Modified Hodges detector performed consistently well with cost 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:mi>C</mml:mi>
                        <mml:mo>&#x2264;</mml:mo>
                        <mml:mn>0.2</mml:mn>
                    </mml:math>
                </inline-formula> for at least 80% of the validation trials, across the different signal models and SNRs, except for the -3dB Laplacian signal model, where all detectors fail. The modified Hodges detector &#x2013; a simplified version of the Hodges detector &#x2013; performs better than Hodges because it does not involve the additional averaging step in computing its test function. This reduces the detection latency for the modified Hodges detector without an appreciable increase in the false positive and false negative rates (
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22232527.v3">Table S4</ext-link> in the extended data in figshare (RRID:SCR_004328)). The AGLR-G, AGLR-L, and fuzzy entropy detectors perform slightly lower than modified Hodges but better than the rest of the detectors. The good performance of the statistical detectors agrees with that of Staude 
                <italic toggle="yes">et al.</italic> even with the lower SNRs investigated in this study. The fuzzy entropy detector also performs well, unlike its counterpart &#x2013; sample entropy. The sample entropy algorithm in this study used the local estimate of the signal&#x2019;s standard deviation for normalizing the data. Sample entropy&#x2019;s poor performance with the local estimate of the standard deviation was previously reported by Zhang 
                <italic toggle="yes">et al.</italic> Sample entropy performs well only with the global estimate of the signal&#x2019;s standard deviation.
                <sup>
                    <xref ref-type="bibr" rid="ref32">30</xref>
                </sup> This is not suitable for real-time implementation as estimating the global standard deviation is a non-causal operation requiring the entire signal record. The use of the fuzzy similarity measure addresses this problem with sample entropy, allowing the fuzzy entropy detector to track changes in the overall signal amplitude. Interestingly, fuzzy entropy has a low cost of detection for both 0dB and -3dB biophysical signal models, which could be due to the additional structure of the motor unit action potentials (MUAPs) in the move-phase of the biophysical signal.</p>
            <p>Interestingly, the RMS detector we used previously to demonstrate the viability of sEMG as an alternative to detect movement intention in severely impaired chronic stroke subjects
                <sup>
                    <xref ref-type="bibr" rid="ref24">22</xref>
                </sup> was not one of the best performers, as seen in 
                <xref ref-type="fig" rid="f5">Figure 5</xref> and 
                <xref ref-type="table" rid="T3">Table 3</xref>. We note that the observed performance was for the RMS detector with optimized parameters (
                <xref ref-type="table" rid="T2">Table 2</xref>) using the training dataset. This optimized RMS detector had a relatively high false negative rate and higher detection latency which resulted in its poor performance. This could possibly explain the lack of agreement between the sEMG and EEG detectors we had observed in our previous study, and a more sensitive detector might have identified sEMG activity in a larger proportion of subjects. The current study results warrant further investigation with real sEMG data from severely impaired patients using other detectors, such as the modified Hodges, AGLR-G/L, and fuzzy entropy.</p>
            <p>In general, most detectors have a relatively lower cost of detection for the biophysical signal model, compared to the Gaussian and the Laplacian signal models. The reasons for the better performance on the biophysical model are not entirely clear, except for the fuzzy entropy detector, which might be sensitive to the temporal structure of the simulated data (MUAP) from the biophysical model. One possibility is the difference in the spectra of the signals from the biophysical model compared to the Gaussian or Laplacian modes (
                <xref ref-type="fig" rid="f1">Figure 1</xref>); more signal energy is concentrated in the lower frequencies for the biophysical model than in the Gaussian or Laplacian models. Most detectors compute their test functions through a lowpass filtering or averaging operation, which could retain a relatively larger portion of the signal in the biophysical model compared to the Gaussian and Laplacian ones, thus resulting in improved performance with the biophysical model. If this is correct, then the difference in performances between the biophysical and the Gaussian/Laplacian models should disappear when an appropriate spectral shaping filter is used in the Gaussian and Laplacian models, yielding a spectrum like the biophysical model. Finally, among the Gaussian and Laplacian models, the relatively poorer performance with the Laplacian signal model could be due to the long tails of the Laplacian distribution.</p>
            <p>The simulated data used in the current study relies on a step-change in the signal properties between the rest- and move-phase, and an sEMG signal of fixed amplitude during the move phase. These assumptions will be violated when dealing with feeble surface sEMG signals recorded from impaired participants with no residual movements. In such participants, movement attempts are likely to produce intermittent bursts of sEMG activity with smooth transitions between the on and off states in the target muscles. The sEMG signal might have time-varying amplitude even when the participant can continuously activate the muscle for sufficient duration. Although based on idealized simulated sEMG data, the current results do provide some idea about the detector types that can potentially work on real low SNR sEMG signals; a detector performing poorly on ideal data is likely to perform worse with real data. Furthermore, the results from the current analysis also indicate that modified Hodges, AGLR-G, AGLR-L, and fuzzy entropy detectors are likely to pick up even bursts of sEMG signals since they have small detection latency (&#x2206;
                <italic toggle="yes">t</italic> &#x2264; 50 ms).</p>
            <p>The detectors studied in this paper can only be used for on-off control of robotic assistance,
                <sup>
                    <xref ref-type="bibr" rid="ref56">54</xref>
                </sup> where once sEMG activity is detected, robotic assistance drives the limb towards the target in a preprogramed fashion. This is different from continuous control of the motion where robotic assistance is proportional to the level of sEMG measured from the target muscles.
                <sup>
                    <xref ref-type="bibr" rid="ref37">35</xref>
                </sup> Continuous control of robotic assistance is likely to be a more natural and engaging interaction for participants than simple on-off control. The most common sEMG feature for continuous control has been the sEMG amplitude estimate,
                <sup>
                    <xref ref-type="bibr" rid="ref37">35</xref>
                </sup> however, the test functions employed by the different detector types in the current study could be potential alternatives. The choice of the best control variable depends on which one of these is sensitive, robust, and provides a natural human-robot interaction with minimal lag. However, it should be noted that it is unclear how well severely impaired participants, with no residual movements, can finely modulate their sEMG activity. The choice of on-off versus continuous control of robotic assistance for a participant will require a screening procedure to evaluate the ability of the participant to modulate sEMG activity in the target muscle.</p>
            <p>The study has limitations that are worth noting to ensure that the results are interpreted appropriately. The study entirely relies on simulated data to investigate the different detectors. The conclusions are thus only as good as the assumed signal models and how well they represent the residual surface sEMG signals of patients with no visible movements. This is the first study investigating detectors for low SNR sEMG, and thus the use of simulated data was essential to gain some understanding of the performance of the different detectors. Simulated data also allows complete control of the ground truth, which provides a more truthful characterization of different detectors&#x2019; detection accuracy and latency. The use of three different signal models to investigate the different detectors also adds some robustness to the study&#x2019;s findings. Additionally, this analysis allows us to exclude the poorly performing detectors and identify the ones that warrant further investigation with real data. Another potential limitation of the use of simulated data is the availability of complete information about the ground truth against which the different detectors are compared. However, the results of the current study can&#x2019;t be verified with real data because we will never know the ground truth in the surface sEMG from patients with no residual movements. This is a valid concern. Nevertheless, some form of an unsupervised approach will be required for verifying the results of the current study with real data. With real data, the best detector would be the one that consistently provides the maximum separation for the probability density function of the test function 
                <inline-formula>
                    <mml:math display="inline">
                        <mml:mi>g</mml:mi>
                        <mml:mfenced close="]" open="[">
                            <mml:mi>n</mml:mi>
                        </mml:mfenced>
                    </mml:math>
                </inline-formula> from the different detectors under the rest-phase and move-phase.</p>
        </sec>
        <sec id="sec15" sec-type="conclusions">
            <title>Conclusions</title>
            <p>This paper systematically investigated existing sEMG detection algorithms on low SNR sEMG signals simulated using three different signal models (two phenomenological &#x2013; Gaussian, Laplacian models and a biophysical model) at two different SNRs (0dB and -3dB). The Modified Hodges detector &#x2013; a simplified version of the threshold-based Hodges detector, introduced in the current study &#x2013; was found to be the most consistent detector across the different signal models and SNRs. This detector had false positive and false negative rates of lower than 20% and a detection latency of lower than 50 ms for almost 90% of the trials on which it was tested for 0 dB SNR and more than 40% of the trials for -3 dB SNR. The two statistical detectors (Gaussian and Laplacian Approximate Generalized Likelihood Ratio) and the Fuzzy Entropy detectors have a slightly lower performance than Modified Hodges. Overall, the modified Hodges, Gaussian and Laplacian approximate generalized likelihood ratio, and fuzzy entropy detectors were identified as potential candidates for further validation with real surface sEMG data on a population of severely impaired patients. The current study forms the first step towards developing a simpler, practical, and robust sEMG-based human-machine interface for triggered robot-assisted therapy in severely impaired patients.</p>
            <boxed-text id="B1" orientation="portrait" position="float">
                <caption>
                    <title>Algorithm 1: Procedure for selecting the best parameter combination for the detector type.</title>
                </caption>
                <p>Let the parameter set for the given detector type be 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi mathvariant="normal">&#x03a0;</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mfenced close="}" open="{" separators=",,,">
                                <mml:msub>
                                    <mml:mi>p</mml:mi>
                                    <mml:mn>1</mml:mn>
                                </mml:msub>
                                <mml:msub>
                                    <mml:mi>p</mml:mi>
                                    <mml:mn>2</mml:mn>
                                </mml:msub>
                                <mml:mo>&#x2026;</mml:mo>
                                <mml:msub>
                                    <mml:mi>p</mml:mi>
                                    <mml:mi>m</mml:mi>
                                </mml:msub>
                            </mml:mfenced>
                        </mml:math>
                    </inline-formula>.</p>
                <p>Set the parameter ranges for the individual parameters 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>p</mml:mi>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                        </mml:math>
                    </inline-formula> in the parameter set 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>P</mml:mi>
                        </mml:math>
                    </inline-formula> for the detector type, which results in 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>K</mml:mi>
                        </mml:math>
                    </inline-formula> different parameters combinations.</p>
                <p>For 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>j</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mn>1</mml:mn>
                        </mml:math>
                    </inline-formula> to 
                    <inline-formula>
                        <mml:math display="inline">
                            <mml:mi>K</mml:mi>
                        </mml:math>
                    </inline-formula> parameter combinations:
                    <list list-type="bullet">
                        <list-item>
                            <label>-</label>
                            <p>Compute the output of the detector 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mfenced close="}" open="{">
                                                <mml:mrow>
                                                    <mml:msub>
                                                        <mml:mi>y</mml:mi>
                                                        <mml:mi>i</mml:mi>
                                                    </mml:msub>
                                                    <mml:mfenced close="]" open="[">
                                                        <mml:mi>n</mml:mi>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:mfenced>
                                            <mml:mrow>
                                                <mml:mi>i</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                            <mml:mn>50</mml:mn>
                                        </mml:msubsup>
                                    </mml:math>
                                </inline-formula>for the chosen combination of parameter values for each of the 50 trials in the training dataset.</p>
                        </list-item>
                        <list-item>
                            <label>-</label>
                            <p>Compute the cost 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msubsup>
                                            <mml:mfenced close="}" open="{">
                                                <mml:msub>
                                                    <mml:mi>C</mml:mi>
                                                    <mml:mi>i</mml:mi>
                                                </mml:msub>
                                            </mml:mfenced>
                                            <mml:mrow>
                                                <mml:mi>i</mml:mi>
                                                <mml:mo>=</mml:mo>
                                                <mml:mn>1</mml:mn>
                                            </mml:mrow>
                                            <mml:mn>50</mml:mn>
                                        </mml:msubsup>
                                    </mml:math>
                                </inline-formula> for each of the 50 trials.</p>
                        </list-item>
                        <list-item>
                            <label>-</label>
                            <p>Compute the median 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msub>
                                            <mml:mi>c</mml:mi>
                                            <mml:mi mathvariant="italic">med</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                </inline-formula> and inter-quartile range 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msub>
                                            <mml:mi>c</mml:mi>
                                            <mml:mi mathvariant="italic">iqr</mml:mi>
                                        </mml:msub>
                                    </mml:math>
                                </inline-formula> of the cost values from the 50 trials.</p>
                        </list-item>
                        <list-item>
                            <label>-</label>
                            <p>Compute the overall detector performance for the 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:msup>
                                            <mml:mi>j</mml:mi>
                                            <mml:mi>th</mml:mi>
                                        </mml:msup>
                                    </mml:math>
                                </inline-formula> trial as 
                                <inline-formula>
                                    <mml:math display="inline">
                                        <mml:mi>P</mml:mi>
                                        <mml:mfenced close="]" open="[">
                                            <mml:mi>j</mml:mi>
                                        </mml:mfenced>
                                        <mml:mo>=</mml:mo>
                                        <mml:msqrt>
                                            <mml:mrow>
                                                <mml:msubsup>
                                                    <mml:mi>c</mml:mi>
                                                    <mml:mi mathvariant="italic">med</mml:mi>
                                                    <mml:mn>2</mml:mn>
                                                </mml:msubsup>
                                                <mml:mo>+</mml:mo>
                                                <mml:msubsup>
                                                    <mml:mi>c</mml:mi>
                                                    <mml:mi mathvariant="italic">iqr</mml:mi>
                                                    <mml:mn>2</mml:mn>
                                                </mml:msubsup>
                                            </mml:mrow>
                                        </mml:msqrt>
                                    </mml:math>
                                </inline-formula>.</p>
                        </list-item>
                    </list>
                </p>
                <p>Get the best parameter combination for the detector type as the following,
                    <disp-formula id="e19">
                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>k</mml:mi>
                                <mml:mi mathvariant="italic">opt</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:munder>
                                <mml:mrow>
                                    <mml:mo>arg</mml:mo>
                                    <mml:mspace width="0.25em"/>
                                    <mml:mo>min</mml:mo>
                                </mml:mrow>
                                <mml:mrow>
                                    <mml:mn>1</mml:mn>
                                    <mml:mo>&#x2264;</mml:mo>
                                    <mml:mi>j</mml:mi>
                                    <mml:mo>&#x2264;</mml:mo>
                                    <mml:mi>K</mml:mi>
                                </mml:mrow>
                            </mml:munder>
                            <mml:mi>P</mml:mi>
                            <mml:mfenced close="]" open="[">
                                <mml:mi>j</mml:mi>
                            </mml:mfenced>
                        </mml:math>
                    </disp-formula>
                </p>
            </boxed-text>
        </sec>
        <sec id="sec17">
            <title>Author contributions</title>
            <p>SB conceived and brainstormed the idea with EB and VSKM. PR worked on the initial literature search and the implementation of some of the detectors. MY implemented the different EMG signal models, all the detectors, optimization of detector parameters, and the analysis of the results. AD and SB provided scientific inputs for the implementation and analysis done by MY. EB and VSKM provided critical feedback for the methodology and results. MY, AD, and SB wrote the first draft of the manuscript. All authors reviewed and approved the final submitted manuscript.</p>
        </sec>
    </body>
    <back>
        <sec id="sec21" sec-type="data-availability">
            <title>Data availability</title>
            <sec id="sec22">
                <title>Underlying data</title>
                <p>Figshare - Dataset: A systematic investigation of detectors for low signal-to-noise ratio EMG signal, 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22317658.v2">https://doi.org/10.6084/m9.figshare.22317658.v2</ext-link>.
                    <sup>

                        <xref ref-type="bibr" rid="ref54">52</xref>
</sup>
                </p>
                <p>The data used in the analysis is saved as csv file which is named based on the SNR and signal generating model as follows:
                    <list list-type="bullet">
                        <list-item>
                            <label>&#x2022;</label>
                            <p>Example: EMGDataSNR0trail50dur13biophy.csv (EMG data generated using biophysical model having SNR 0).</p>
                        </list-item>
                        <list-item>
                            <label>&#x2022;</label>
                            <p>TestEMGDataSNR0trail50dur13biophy.csv (Test data generated using biophysical model with SNR 0).
</p>
                        </list-item>
                    </list>
                </p>
            </sec>
            <sec id="sec23">
                <title>Extended data</title>
                <p>Figshare: Supplementary material: A Systematic Investigation of Detectors for Low Signal-to-Noise Ratio EMG Signals.docx, 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22232527.v3">https://doi.org/10.6084/m9.figshare.22232527.v3</ext-link>.
                    <sup>

                        <xref ref-type="bibr" rid="ref53">51</xref>
</sup>
                </p>
                <p>This project contains the following extended data:
                    <list list-type="bullet">
                        <list-item>
                            <label>-</label>
                            <p>

                                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.22232527.v3">Supplementary material.pdf</ext-link> (parameters for optimizing the detector)
</p>
                        </list-item>
                    </list>
                </p>
                <p>Data are available under the terms of the 
                    <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International license</ext-link> (CC-BY 4.0).</p>
            </sec>
        </sec>
        <sec id="sec16">
            <title>Software availability</title>
            <p>Source code: 
                <ext-link ext-link-type="uri" xlink:href="https://github.com/1608Moni/EMG_detectors">https://github.com/1608Moni/EMG_detectors</ext-link>
            </p>
            <p>Archived source code: 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.7750951">https://doi.org/10.5281/zenodo.7750951</ext-link>
            </p>
            <p>License: 
                <ext-link ext-link-type="uri" xlink:href="https://opensource.org/license/mit/">MIT</ext-link>
            </p>
        </sec>
        <ack>
            <title>Acknowledgements</title>
            <p>The authors thank Prof. Suresh Devasahayam for providing us with the software he&#x2019;d developed for simulating the EMG signals. This software was used for generating data for the biophysical EMG model.</p>
        </ack>
        <ref-list>
            <title>References</title>
            <ref id="ref1">
                <label>1</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ward</surname>
                            <given-names>NS</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Brander</surname>
                            <given-names>F</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Kelly</surname>
                            <given-names>K</given-names>
                        </name>
</person-group>:
                    <article-title>Intensive upper limb neurorehabilitation in chronic stroke: outcomes from the Queen Square programme.</article-title>
                    <source>

                        <italic toggle="yes">J. Neurol. Neurosurg. Psychiatry.</italic>
</source>
                    <year>2019</year>;<volume>90</volume>:<fpage>498</fpage>&#x2013;<lpage>506</lpage>.
                    <pub-id pub-id-type="doi">10.1136/jnnp-2018-319954</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref2">
                <label>2</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Langhorne</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Coupar</surname>
                            <given-names>F</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Pollock</surname>
                            <given-names>A</given-names>
                        </name>
</person-group>:
                    <article-title>Motor recovery after stroke: a systematic review.</article-title>
                    <source>

                        <italic toggle="yes">Lancet Neurol.</italic>
</source>
                    <year>2009</year>;<volume>8</volume>:<fpage>741</fpage>&#x2013;<lpage>754</lpage>.
                    <pub-id pub-id-type="doi">10.1016/S1474-4422(09)70150-4</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref3">
                <label>3</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Young</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Forster</surname>
                            <given-names>A</given-names>
                        </name>
</person-group>:
                    <article-title>Review of stroke rehabilitation.</article-title>
                    <source>

                        <italic toggle="yes">BMJ.</italic>
</source>
                    <year>2007</year>;<volume>334</volume>:<fpage>86</fpage>&#x2013;<lpage>90</lpage>.
                    <pub-id pub-id-type="pmid">17218714</pub-id>
                    <pub-id pub-id-type="doi">10.1136/bmj.39059.456794.68</pub-id>
                    <pub-id pub-id-type="pmcid">PMC1767284</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref4">
                <label>4</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Israel</surname>
                            <given-names>JF</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Campbell</surname>
                            <given-names>DD</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Kahn</surname>
                            <given-names>JH</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Metabolic costs and muscle activity patterns during robotic- and therapist-assisted treadmill walking in individuals with incomplete spinal cord injury.</article-title>
                    <source>

                        <italic toggle="yes">Phys. Ther.</italic>
</source>
                    <year>2006</year>;<volume>86</volume>:<fpage>1466</fpage>&#x2013;<lpage>1478</lpage>.
                    <pub-id pub-id-type="pmid">17079746</pub-id>
                    <pub-id pub-id-type="doi">10.2522/ptj.20050266</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref5">
                <label>5</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Reinkensmeyer</surname>
                            <given-names>DJ</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Emken</surname>
                            <given-names>JL</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Cramer</surname>
                            <given-names>SC</given-names>
                        </name>
</person-group>:
                    <article-title>Robotics, Motor Learning, and Neurologic Recovery.</article-title>
                    <source>

                        <italic toggle="yes">Annu. Rev. Biomed. Eng.</italic>
</source>
                    <year>2004</year>;<volume>6</volume>:<fpage>497</fpage>&#x2013;<lpage>525</lpage>.
                    <pub-id pub-id-type="doi">10.1146/annurev.bioeng.6.040803.140223</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Lewthwaite</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Wulf</surname>
                            <given-names>G</given-names>
                        </name>
</person-group>:
                    <article-title>Optimizing motivation and attention for motor performance and learning.</article-title>
                    <source>

                        <italic toggle="yes">Curr. Opin. Psychol.</italic>
</source>
                    <year>2017</year>;<volume>16</volume>:<fpage>38</fpage>&#x2013;<lpage>42</lpage>.
                    <pub-id pub-id-type="pmid">28813352</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.copsyc.2017.04.005</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Kaelin-Lane</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Sawaki</surname>
                            <given-names>L</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Cohen</surname>
                            <given-names>LG</given-names>
                        </name>
</person-group>:
                    <article-title>Role of voluntary drive in encoding an elementary motor memory.</article-title>
                    <source>

                        <italic toggle="yes">J. Neurophysiol.</italic>
</source>
                    <year>2005</year>;<volume>93</volume>:<fpage>1099</fpage>&#x2013;<lpage>1103</lpage>.
                    <pub-id pub-id-type="pmid">15456807</pub-id>
                    <pub-id pub-id-type="doi">10.1152/jn.00143.2004</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref8">
                <label>8</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Lotze</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Braun</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Birbaumer</surname>
                            <given-names>N</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Motor learning elicited by voluntary drive.</article-title>
                    <source>

                        <italic toggle="yes">Brain.</italic>
</source>
                    <year>2003</year>;<volume>126</volume>:<fpage>866</fpage>&#x2013;<lpage>872</lpage>.
                    <pub-id pub-id-type="pmid">12615644</pub-id>
                    <pub-id pub-id-type="doi">10.1093/brain/awg079</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref9">
                <label>9</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Jo</surname>
                            <given-names>I</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Park</surname>
                            <given-names>Y</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Lee</surname>
                            <given-names>J</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>A portable and spring-guided hand exoskeleton for exercising flexion/extension of the fingers.</article-title>
                    <source>

                        <italic toggle="yes">Mech. Mach. Theory.</italic>
</source>
                    <year>2019</year>;<volume>135</volume>:<fpage>176</fpage>&#x2013;<lpage>191</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.mechmachtheory.2019.02.004</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref10">
                <label>10</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hornby</surname>
                            <given-names>TG</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Reinkensmeyer</surname>
                            <given-names>DJ</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Chen</surname>
                            <given-names>D</given-names>
                        </name>
</person-group>:
                    <article-title>Manually-Assisted Versus Robotic-Assisted Body Weight&#x2212;Supported Treadmill Training in Spinal Cord Injury: What Is the Role of Each?</article-title>
                    <source>

                        <italic toggle="yes">PM&amp;R.</italic>
</source>
                    <year>2010</year>;<volume>2</volume>:<fpage>214</fpage>&#x2013;<lpage>221</lpage>.
                    <pub-id pub-id-type="pmid">20359687</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.pmrj.2010.02.013</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref11">
                <label>11</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Jo</surname>
                            <given-names>I</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Park</surname>
                            <given-names>Y</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Lee</surname>
                            <given-names>J</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>A portable and spring-guided hand exoskeleton for exercising flexion/extension of the fingers.</article-title>
                    <source>

                        <italic toggle="yes">Mech. Mach. Theory.</italic>
</source>
                    <year>2019</year>;<volume>135</volume>:<fpage>176</fpage>&#x2013;<lpage>191</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.mechmachtheory.2019.02.004</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref12">
                <label>12</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ethier</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Gallego</surname>
                            <given-names>JA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Miller</surname>
                            <given-names>LE</given-names>
                        </name>
</person-group>:
                    <article-title>Brain-controlled neuromuscular stimulation to drive neural plasticity and functional recovery.</article-title>
                    <source>

                        <italic toggle="yes">Curr. Opin. Neurobiol.</italic>
</source>
                    <year>2015</year>;<volume>33</volume>:<fpage>95</fpage>&#x2013;<lpage>102</lpage>.
                    <pub-id pub-id-type="pmid">25827275</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.conb.2015.03.007</pub-id>
                    <pub-id pub-id-type="pmcid">PMC4523462</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref13">
                <label>13</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>V&#x00e1;rkuti</surname>
                            <given-names>B</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Resting state changes in functional connectivity correlate with movement recovery for BCI and robot-Assisted upper-extremity training after stroke.</article-title>
                    <source>

                        <italic toggle="yes">Neurorehabil. Neural Repair.</italic>
</source>
                    <year>2013</year>;<volume>27</volume>:<fpage>53</fpage>&#x2013;<lpage>62</lpage>.
                    <pub-id pub-id-type="pmid">22645108</pub-id>
                    <pub-id pub-id-type="doi">10.1177/1545968312445910</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref14">
                <label>14</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Pichiorri</surname>
                            <given-names>F</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Brain-computer interface boosts motor imagery practice during stroke recovery.</article-title>
                    <source>

                        <italic toggle="yes">Ann. Neurol.</italic>
</source>
                    <year>2015</year>;<volume>77</volume>:<fpage>851</fpage>&#x2013;<lpage>865</lpage>.
                    <pub-id pub-id-type="pmid">25712802</pub-id>
                    <pub-id pub-id-type="doi">10.1002/ana.24390</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref15">
                <label>15</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ono</surname>
                            <given-names>T</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Brain-computer interface with somatosensory feedback improves functional recovery from severe hemiplegia due to chronic stroke.</article-title>
                    <source>

                        <italic toggle="yes">Front. Neuroeng.</italic>
</source>
                    <year>2014</year>;<volume>7</volume>.
                    <pub-id pub-id-type="pmid">25071543</pub-id>
                    <pub-id pub-id-type="doi">10.3389/fneng.2014.00019</pub-id>
                    <pub-id pub-id-type="pmcid">PMC4083225</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref16">
                <label>16</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Brauchle</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Vukeli&#x0107;</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Bauer</surname>
                            <given-names>R</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Brain state-dependent robotic reaching movement with a multi-joint arm exoskeleton: combining brain-machine interfacing and robotic rehabilitation.</article-title>
                    <source>

                        <italic toggle="yes">Front. Hum. Neurosci.</italic>
</source>
                    <year>2015</year>;<volume>9</volume>.
                    <pub-id pub-id-type="pmid">26528168</pub-id>
                    <pub-id pub-id-type="doi">10.3389/fnhum.2015.00564</pub-id>
                    <pub-id pub-id-type="pmcid">PMC4607784</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref17">
                <label>17</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ramos-Murguialday</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Brain&#x2013;machine interface in chronic stroke rehabilitation: A controlled study.</article-title>
                    <source>

                        <italic toggle="yes">Ann. Neurol.</italic>
</source>
                    <year>2013</year>;<volume>74</volume>:<fpage>100</fpage>&#x2013;<lpage>108</lpage>.
                    <pub-id pub-id-type="pmid">23494615</pub-id>
                    <pub-id pub-id-type="doi">10.1002/ana.23879</pub-id>
                    <pub-id pub-id-type="pmcid">PMC3700597</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref18">
                <label>18</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ramos-Murguialday</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Proprioceptive Feedback and Brain Computer Interface (BCI) Based Neuroprostheses.</article-title>
                    <source>

                        <italic toggle="yes">PLoS One.</italic>
</source>
                    <year>2012</year>;<volume>7</volume>:<fpage>e47048</fpage>.
                    <pub-id pub-id-type="pmid">23071707</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pone.0047048</pub-id>
                    <pub-id pub-id-type="pmcid">PMC3465309</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref19">
                <label>19</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ang</surname>
                            <given-names>KK</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>A Randomized Controlled Trial of EEG-Based Motor Imagery Brain-Computer Interface Robotic Rehabilitation for Stroke.</article-title>
                    <source>

                        <italic toggle="yes">Clin. EEG Neurosci.</italic>
</source>
                    <year>2015</year>;<volume>46</volume>:<fpage>310</fpage>&#x2013;<lpage>320</lpage>.
                    <pub-id pub-id-type="pmid">24756025</pub-id>
                    <pub-id pub-id-type="doi">10.1177/1550059414522229</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref20">
                <label>20</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Bai</surname>
                            <given-names>O</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Prediction of human voluntary movement before it occurs.</article-title>
                    <source>

                        <italic toggle="yes">Clin. Neurophysiol.</italic>
</source>
                    <year>2011</year>;<volume>122</volume>:<fpage>364</fpage>&#x2013;<lpage>372</lpage>.
                    <pub-id pub-id-type="pmid">20675187</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.clinph.2010.07.010</pub-id>
                    <pub-id pub-id-type="pmcid">PMC5558611</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref21">
                <label>21</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Obermaier</surname>
                            <given-names>B</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Neuper</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Guger</surname>
                            <given-names>C</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Information transfer rate in a five-classes brain-computer interface.</article-title>
                    <source>

                        <italic toggle="yes">IEEE Trans. Neural Syst. Rehabil. Eng.</italic>
</source>
                    <year>2001</year>;<volume>9</volume>:<fpage>283</fpage>&#x2013;<lpage>288</lpage>.
                    <pub-id pub-id-type="pmid">11561664</pub-id>
                    <pub-id pub-id-type="doi">10.1109/7333.948456</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref24">
                <label>22</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Balasubramanian</surname>
                            <given-names>S</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Garcia-Cossio</surname>
                            <given-names>E</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Birbaumer</surname>
                            <given-names>N</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Is EMG a Viable Alternative to BCI for Detecting Movement Intention in Severe Stroke?</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>2018</year>;<volume>65</volume>:<fpage>2790</fpage>&#x2013;<lpage>2797</lpage>.</mixed-citation>
            </ref>
            <ref id="ref25">
                <label>23</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Staude</surname>
                            <given-names>G</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Flachenecker</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Daumer</surname>
                            <given-names>M</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Onset Detection in Surface Electromyographic Signals: 
                        <italic toggle="yes">Journal on.</italic>
                    </article-title>
                    <source>

                        <italic toggle="yes">Applied Signal Processing.</italic>
</source>
                    <year>2001</year>;<volume>2</volume>:<fpage>67</fpage>&#x2013;<lpage>81</lpage>.</mixed-citation>
            </ref>
            <ref id="ref26">
                <label>24</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Yang</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zhang</surname>
                            <given-names>H</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Gu</surname>
                            <given-names>Y</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Biomedical Signal Processing and Control Accurate EMG onset detection in pathological, weak and noisy myoelectric signals.</article-title>
                    <source>

                        <italic toggle="yes">Biomed Signal Process Control.</italic>
</source>
                    <year>2017</year>;<volume>33</volume>:<fpage>306</fpage>&#x2013;<lpage>315</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.bspc.2016.12.014</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref27">
                <label>25</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Tabie</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Kirchner</surname>
                            <given-names>EA</given-names>
                        </name>
</person-group>:
                    <article-title>EMG onset detection: Comparison of different methods for a movement prediction task based on EMG EMG Onset Detection Comparison of different methods for a movement prediction task based on EMG.</article-title>
                    <year>2017</year>.</mixed-citation>
            </ref>
            <ref id="ref28">
                <label>26</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Vaisman</surname>
                            <given-names>L</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zariffa</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Popovic</surname>
                            <given-names>MR</given-names>
                        </name>
</person-group>:
                    <article-title>Application of singular spectrum-based change-point analysis to EMG-onset detection.</article-title>
                    <source>

                        <italic toggle="yes">J. Electromyogr. Kinesiol.</italic>
</source>
                    <year>2010</year>;<volume>20</volume>:<fpage>750</fpage>&#x2013;<lpage>760</lpage>.
                    <pub-id pub-id-type="pmid">20303784</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.jelekin.2010.02.010</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref29">
                <label>27</label>
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ming</surname>
                            <given-names>L</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Xiong</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zhang</surname>
                            <given-names>Q</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <chapter-title>Fuzzy Entropy-Based Muscle Onset Detection Using Electromyography (EMG).</chapter-title>
                    <source>

                        <italic toggle="yes">Intelligent Robotics and Applications.</italic>
</source>
                    <person-group person-group-type="editor">

                        <name name-style="western">
                            <surname>Xianmin</surname>
                            <given-names>Z</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Liu</surname>
                            <given-names>H</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Chen</surname>
                            <given-names>Z</given-names>
                        </name>

                        <etal/>
</person-group>editors.
                    <publisher-name>Springer International Publishing</publisher-name>;<year>2014</year>; pp.<fpage>89</fpage>&#x2013;<lpage>98</lpage>.</mixed-citation>
            </ref>
            <ref id="ref30">
                <label>28</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Solnik</surname>
                            <given-names>S</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Devita</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Rider</surname>
                            <given-names>PM</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Teager-Kaiser Operator improves the accuracy of EMG onset detection independent of signal-to-noise ratio.</article-title>
                    <source>

                        <italic toggle="yes">Acta Bioeng. Biomech.</italic>
</source>
                    <year>2008</year>;<volume>10</volume>(<issue>2</issue>):<fpage>65</fpage>&#x2013;<lpage>68</lpage>.
                    <pub-id pub-id-type="pmid">19032000</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref31">
                <label>29</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Merlo</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Farina</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Merletti</surname>
                            <given-names>R</given-names>
                        </name>
</person-group>:
                    <article-title>A fast and reliable technique for muscle activity detection from surface EMG signals.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>2003</year>;<volume>50</volume>:<fpage>316</fpage>&#x2013;<lpage>323</lpage>.
                    <pub-id pub-id-type="doi">10.1109/TBME.2003.808829</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref32">
                <label>30</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Zhang</surname>
                            <given-names>X</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zhou</surname>
                            <given-names>P</given-names>
                        </name>
</person-group>:
                    <article-title>Sample entropy analysis of surface EMG for improved muscle activity onset detection against spurious background spikes.</article-title>
                    <source>

                        <italic toggle="yes">J. Electromyogr. Kinesiol.</italic>
</source>
                    <year>2012</year>;<volume>22</volume>(<issue>6</issue>):<fpage>901</fpage>&#x2013;<lpage>907</lpage>.
                    <pub-id pub-id-type="pmid">22800657</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.jelekin.2012.06.005</pub-id>
                    <pub-id pub-id-type="pmcid">PMC3514830</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref33">
                <label>31</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hu</surname>
                            <given-names>XL</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Coordinated upper limb training assisted with an electromyography (EMG)-driven hand robot after stroke.</article-title>
                    <source>

                        <italic toggle="yes">2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).</italic>
</source>
                    <year>2013</year>; pp.<fpage>5903</fpage>&#x2013;<lpage>5906</lpage>.
                    <pub-id pub-id-type="doi">10.1109/EMBC.2013.6610895</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref34">
                <label>32</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Sarasola-Sanz</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>EMG-based multi-joint kinematics decoding for robot-aided rehabilitation therapies.</article-title>
                    <source>

                        <italic toggle="yes">2015 IEEE International Conference on Rehabilitation Robotics (ICORR).</italic>
</source>
                    <year>2015</year>; pp.<fpage>229</fpage>&#x2013;<lpage>234</lpage>.
                    <pub-id pub-id-type="doi">10.1109/ICORR.2015.7281204</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref35">
                <label>33</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Lan</surname>
                            <given-names>Y</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Yao</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Dewald</surname>
                            <given-names>JPA</given-names>
                        </name>
</person-group>:
                    <article-title>The impact of shoulder abduction loading on EMG-based intention detection of hand opening and closing after stroke.</article-title>
                    <source>

                        <italic toggle="yes">2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society.</italic>
</source>
                    <year>2011</year>; pp.<fpage>4136</fpage>&#x2013;<lpage>4139</lpage>.
                    <pub-id pub-id-type="doi">10.1109/IEMBS.2011.6091027</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref36">
                <label>34</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Irastorza-Landa</surname>
                            <given-names>N</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>EMG Discrete Classification Towards a Myoelectric Control of a Robotic Exoskeleton in Motor Rehabilitation.</article-title>
                    <source>

                        <italic toggle="yes">Biosystems and Biorobotics.</italic>
</source>
                    <year>2017</year>;<volume>15</volume>:<fpage>159</fpage>&#x2013;<lpage>163</lpage>.
                    <pub-id pub-id-type="doi">10.1007/978-3-319-46669-9_29</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref37">
                <label>35</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hu</surname>
                            <given-names>XL</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Tong</surname>
                            <given-names>KY</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Song</surname>
                            <given-names>R</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>A comparison between electromyography-driven robot and passive motion device on wrist rehabilitation for chronic stroke.</article-title>
                    <source>

                        <italic toggle="yes">Neurorehabil. Neural Repair.</italic>
</source>
                    <year>2009</year>;<volume>23</volume>:<fpage>837</fpage>&#x2013;<lpage>846</lpage>.
                    <pub-id pub-id-type="pmid">19531605</pub-id>
                    <pub-id pub-id-type="doi">10.1177/1545968309338191</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref38">
                <label>36</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>De Luca</surname>
                            <given-names>CJ</given-names>
                        </name>
</person-group>:
                    <article-title>The Use of Surface Electromyography in Biomechanics.</article-title>
                    <source>

                        <italic toggle="yes">J. Appl. Biomech.</italic>
</source>
                    <year>1997</year>;<volume>13</volume>:<fpage>135</fpage>&#x2013;<lpage>163</lpage>.
                    <pub-id pub-id-type="doi">10.1123/jab.13.2.135</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref39">
                <label>37</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Bilodeau</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Cincera</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Arsenault</surname>
                            <given-names>AB</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Normality and stationarity of EMG signals of elbow flexor muscles during ramp and step isometric contractions.</article-title>
                    <source>

                        <italic toggle="yes">J. Electromyogr. Kinesiol.</italic>
</source>
                    <year>1997</year>;<volume>7</volume>:<fpage>87</fpage>&#x2013;<lpage>96</lpage>.
                    <pub-id pub-id-type="pmid">20719694</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S1050-6411(96)00024-7</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref40">
                <label>38</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Parker</surname>
                            <given-names>PA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Stuller</surname>
                            <given-names>JA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Scott</surname>
                            <given-names>RN</given-names>
                        </name>
</person-group>:
                    <article-title>Signal processing for the multistate myoelectric channel.</article-title>
                    <source>

                        <italic toggle="yes">Proc. IEEE.</italic>
</source>
                    <year>1977</year>;<volume>65</volume>:<fpage>662</fpage>&#x2013;<lpage>674</lpage>.
                    <pub-id pub-id-type="doi">10.1109/PROC.1977.10545</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref41">
                <label>39</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Merletti</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Lo Conte</surname>
                            <given-names>LR</given-names>
                        </name>
</person-group>:
                    <article-title>Advances in processing of surface myoelectric signals: Part 1.</article-title>
                    <source>

                        <italic toggle="yes">Med. Biol. Eng. Comput.</italic>
</source>
                    <year>1995</year>;<volume>33</volume>:<fpage>362</fpage>&#x2013;<lpage>372</lpage>.
                    <pub-id pub-id-type="pmid">7666682</pub-id>
                    <pub-id pub-id-type="doi">10.1007/BF02510518</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref42">
                <label>40</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Shwedyk</surname>
                            <given-names>E</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Balasubramanian</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Scott</surname>
                            <given-names>RN</given-names>
                        </name>
</person-group>:
                    <article-title>A Nonstationary Model for the Electromyogram.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>1977</year>;<volume>BME-24</volume>:<fpage>417</fpage>&#x2013;<lpage>424</lpage>.
                    <pub-id pub-id-type="doi">10.1109/TBME.1977.326175</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref43">
                <label>41</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Clancy</surname>
                            <given-names>EA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Hogan</surname>
                            <given-names>N</given-names>
                        </name>
</person-group>:
                    <article-title>Probability density of the surface electromyogram and its relation to amplitude detectors.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>1999</year>;<volume>46</volume>:<fpage>730</fpage>&#x2013;<lpage>739</lpage>.
                    <pub-id pub-id-type="doi">10.1109/10.764949</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref44">
                <label>42</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Devasahayam</surname>
                            <given-names>SR</given-names>
                        </name>
</person-group>:
                    <article-title>Signals and systems in biomedical engineering: physiological systems modeling and signal processing.</article-title>
                    <fpage>468</fpage>.</mixed-citation>
            </ref>
            <ref id="ref45">
                <label>43</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Clancy</surname>
                            <given-names>EA</given-names>
                        </name>
</person-group>:
                    <article-title>Electromyogram amplitude estimation with adaptive smoothing window length.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>1999</year>;<volume>46</volume>:<fpage>717</fpage>&#x2013;<lpage>729</lpage>.
                    <pub-id pub-id-type="doi">10.1109/10.764948</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref46">
                <label>44</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Clancy</surname>
                            <given-names>EA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Hogan</surname>
                            <given-names>N</given-names>
                        </name>
</person-group>:
                    <article-title>Single site electromyograph amplitude estimation.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>1994</year>;<volume>41</volume>:<fpage>159</fpage>&#x2013;<lpage>167</lpage>.
                    <pub-id pub-id-type="doi">10.1109/10.284927</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref47">
                <label>45</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Bonato</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>D&#x2019;Alessio</surname>
                            <given-names>T</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Knaflitz</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>A statistical method for the measurement of muscle activation intervals from surface myoelectric signal during gait.</article-title>
                    <source>

                        <italic toggle="yes">I.E.E.E. Trans. Biomed. Eng.</italic>
</source>
                    <year>1998</year>;<volume>45</volume>:<fpage>287</fpage>&#x2013;<lpage>299</lpage>.
                    <pub-id pub-id-type="doi">10.1109/10.661154</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref48">
                <label>46</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Staude</surname>
                            <given-names>G</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Wolf</surname>
                            <given-names>W</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Appel</surname>
                            <given-names>U</given-names>
                        </name>
</person-group>:
                    <article-title>Automatic event detection in surface EMG of rhythmically activated muscles.</article-title>
                    <source>

                        <italic toggle="yes">Proceedings of 17th International Conference of the Engineering in Medicine and Biology Society.</italic>
</source>Vol.<volume>2</volume>.<year>1995</year>; pp.<fpage>1351</fpage>&#x2013;<lpage>1352</lpage>.</mixed-citation>
            </ref>
            <ref id="ref49">
                <label>47</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Lidierth</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>A computer based method for automated measurement of the periods of muscular activity from an EMG and its application to locomotor EMGs.</article-title>
                    <source>

                        <italic toggle="yes">Electroencephalogr. Clin. Neurophysiol.</italic>
</source>
                    <year>1986</year>;<volume>64</volume>:<fpage>378</fpage>&#x2013;<lpage>380</lpage>.
                    <pub-id pub-id-type="pmid">2428587</pub-id>
                    <pub-id pub-id-type="doi">10.1016/0013-4694(86)90163-X</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref50">
                <label>48</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Staude</surname>
                            <given-names>G</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Wolf</surname>
                            <given-names>W</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Appel</surname>
                            <given-names>U</given-names>
                        </name>
</person-group>:
                    <article-title>Automatic event detection in surface EMG of rhythmically activated muscles.</article-title>
                    <source>

                        <italic toggle="yes">Annual International Conference of the IEEE Engineering in Medicine and Biology - Proceedings.</italic>
</source>Vol.<volume>17</volume>.<year>1995</year>; pp.<fpage>1351</fpage>&#x2013;<lpage>1352</lpage>.</mixed-citation>
            </ref>
            <ref id="ref51">
                <label>49</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Vaisman</surname>
                            <given-names>L</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zariffa</surname>
                            <given-names>J</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Popovic</surname>
                            <given-names>MR</given-names>
                        </name>
</person-group>:
                    <article-title>Application of singular spectrum-based change-point analysis to EMG-onset detection.</article-title>
                    <source>

                        <italic toggle="yes">J. Electromyogr. Kinesiol.</italic>
</source>
                    <year>2010</year>;<volume>20</volume>:<fpage>750</fpage>&#x2013;<lpage>760</lpage>.
                    <pub-id pub-id-type="pmid">20303784</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.jelekin.2010.02.010</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref52">
                <label>50</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Yuvaraj</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>1608Moni/EMG_detectors: A systematic investigation of detectors for low sig-nal-to-noise ratio EMG signals (v1.0.0). [Code].</article-title>
                    <source>

                        <italic toggle="yes">Zenodo.</italic>
</source>
                    <year>2023</year>.
                    <pub-id pub-id-type="doi">10.5281/zenodo.7750951</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref53">
                <label>51</label>
                <mixed-citation publication-type="data">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Yuvaraj</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Raja</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>David</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <data-title>Supplementary material: A Systematic Investigation of Detectors for Low Signal-to-Noise Ratio EMG Signals.docx.</data-title>[Data].
                    <source>

                        <italic toggle="yes">figshare. Figure.</italic>
</source>
                    <year>2023</year>.
                    <pub-id pub-id-type="doi">10.6084/m9.figshare.22232527.v3</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref54">
                <label>52</label>
                <mixed-citation publication-type="data">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Yuvaraj</surname>
                            <given-names>M</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Raja</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>David</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <data-title>Dataset: A systematic investigation of detectors for low signal-to-noise ratio EMG signals.</data-title>[Data].
                    <source>

                        <italic toggle="yes">figshare.</italic>
</source>
                    <year>2023</year>.
                    <pub-id pub-id-type="doi">10.6084/m9.figshare.22317658.v2</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref55">
                <label>53</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Wen</surname>
                            <given-names>W</given-names>
                        </name>
</person-group>:
                    <article-title>Does delay in feedback diminish sense of agency? A review.</article-title>
                    <source>

                        <italic toggle="yes">Conscious Cogn.</italic>
</source>
                    <year>2019</year>;<volume>73</volume>: 102759.
                    <pub-id pub-id-type="pmid">31173998</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.concog.2019.05.007</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref56">
                <label>54</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hu</surname>
                            <given-names>XL</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>The effects of post-stroke upper-limb training with an electromyography (EMG)-driven hand robot.</article-title>
                    <source>

                        <italic toggle="yes">J. Electromyogr. Kinesiol.</italic>
</source>
                    <year>2013</year>;<volume>23</volume>:<fpage>1065</fpage>&#x2013;<lpage>1074</lpage>.
                    <pub-id pub-id-type="pmid">23932795</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.jelekin.2013.07.007</pub-id>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report242339">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.161421.r242339</article-id>
            <title-group>
                <article-title>Reviewer response for version 2</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Crocher</surname>
                        <given-names>Vincent</given-names>
                    </name>
                    <xref ref-type="aff" rid="r242339a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r242339a1">
                    <label>1</label>The University of Melbourne, Melbourne, Victoria, Australia</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>16</day>
                <month>2</month>
                <year>2024</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Crocher V</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport242339" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.132382.2"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>I have no more comments.</p>
            <p>Is the work clearly and accurately presented and does it cite the current literature?</p>
            <p>Yes</p>
            <p>If applicable, is the statistical analysis and its interpretation appropriate?</p>
            <p>Yes</p>
            <p>Are all the source data underlying the results available to ensure full reproducibility?</p>
            <p>Yes</p>
            <p>Is the study design appropriate and is the work technically sound?</p>
            <p>Yes</p>
            <p>Are the conclusions drawn adequately supported by the results?</p>
            <p>Partly</p>
            <p>Are sufficient details of methods and analysis provided to allow replication by others?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>Rehabilitation robotics</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.</p>
        </body>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report223113">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.145296.r223113</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Wolf</surname>
                        <given-names>Werner</given-names>
                    </name>
                    <xref ref-type="aff" rid="r223113a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r223113a1">
                    <label>1</label>Universitat der Bundeswehr Munchen, Neubiberg, Bavaria, Germany</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>19</day>
                <month>2</month>
                <year>2024</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2024 Wolf W</copyright-statement>
                <copyright-year>2024</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport223113" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.132382.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>First of all, I would like to confirm the detailled review of Vincent Crocher. But I would like to underline his criticism on the lengthy elaboration of the rehabilitation issue. The manuscript focusses on event detection in stochastic signals and, therefore, it can be mapped to the biosignal processing field. The EMG processing&#x00a0; is only specificly addressed by the inclusion of the biophysical signal model. And the topic &#x201e;robots in rehalitation&#x201c; is a separate field not really related main issue of this manuscrpt.</p>
            <p> Thus, the total rehabilitation part &#x2013; not only the BCI passages - &#x00a0;can be reduced &#x2013; as Vincent already states &#x2013; to a single sentence and a removal of about 25 references.</p>
            <p> It sounds also contradicting to refer to the case &#x201e;without residual movement&#x201c; but to measure surface EMG. What presumably is addressed by the manuscript are combined muscle excitations; i.e. to generate stiffness in the arm when fingers are grasping an object. But such a stiffness in the forearm is ambiguous, because the same stiffness will be generated with different finger movements. I will not continue this rehabilitation issue, because it is not the concern of this manuscript. &#x2013; as mentioned above.</p>
            <p> Summarizing: The main results are interesting and they should be provided in a compressed form.</p>
            <p>Is the work clearly and accurately presented and does it cite the current literature?</p>
            <p>Partly</p>
            <p>If applicable, is the statistical analysis and its interpretation appropriate?</p>
            <p>Partly</p>
            <p>Are all the source data underlying the results available to ensure full reproducibility?</p>
            <p>Yes</p>
            <p>Is the study design appropriate and is the work technically sound?</p>
            <p>Yes</p>
            <p>Are the conclusions drawn adequately supported by the results?</p>
            <p>Yes</p>
            <p>Are sufficient details of methods and analysis provided to allow replication by others?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>Biosignal Processing - human motor control</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment11298-223113">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Yuvaraj</surname>
                            <given-names>Monisha</given-names>
                        </name>
                        <aff>Applied Mechanics, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>20</day>
                    <month>3</month>
                    <year>2024</year>
                </pub-date>
            </front-stub>
            <body>
                <p>
                    <bold>1. Summary</bold>
                </p>
                <p> </p>
                <p> Thank you very much for taking the time to review this manuscript. Please find the detailed responses below and the corresponding revisions/corrections highlighted/in track changes in the re-submitted files.</p>
                <p> </p>
                <p> 
                    <bold>2. Point-by-point response to Comments and Suggestions for Authors</bold>
                </p>
                <p> </p>
                <p> In the following, the reviewer&#x2019;s comments are in Italics which is followed by our response. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>First of all, I would like to confirm the detailled review of Vincent Crocher. But I would like to underline his criticism on the lengthy elaboration of the rehabilitation issue. The manuscript focusses on event detection in stochastic signals and, therefore, it can be mapped to the biosignal processing field. The EMG processing&#x00a0; is only specificly addressed by the inclusion of the biophysical signal model. And the topic &#x201e;robots in rehalitation&#x201c; is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part &#x2013; not only the BCI passages - &#x00a0;can be reduced &#x2013; as Vincent already states &#x2013; to a single sentence and a removal of about 25 references.</italic>
                            </p>
                        </list-item>
                    </list> </p>
                <p> 
                    <bold>Response:</bold> Our primary goal is to identify a suitable EMG detector for on-off control of robotic assistance during therapy. This paper focusses on the problem of event detection of EMG signals as this is the first step towards implementing an effective closed loop control of robotic assistance using EMG. The result of this analysis identifies the most promising detectors for application in EMG-driven robot assisted therapy. The &#x201c;cost&#x201d; for identifying the detectors is also designed accordingly. Therefore, in the introduction we have given the background about the necessity to identify the best detector that works well with low SNR EMG signals. However, we have reduced the introduction and discussion section which now highlights only the need for identifying the best detector for application such as EMG driven robot assisted therapy.</p>
                <p> </p>
                <p> 
                    <bold>Original text</bold>: Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>1</sup>
                    </ext-link>
                    <sup> </sup>Rehabilitation robots can facilitate such high-intensity movement training while providing physical assistance to the user for completing movements consistently and precisely. About 30% of stroke survivors are severely impaired 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>2</sup>
                    </ext-link>
                    <sup> ,</sup> 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>3</sup>
                    </ext-link>
                    <sup> </sup>and require physical assistance to actively engage in movement training. While physical assistance from a robot can motivate such subjects to attempt and train movements, they can also provide inappropriately timed or too much assistance 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>4</sup>
                    </ext-link>
                    <sup> ,</sup> 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>5</sup>
                    </ext-link>
                    <sup> </sup>leading to slacking, where patients reduce their voluntary effort and exploit robotic assistance to perform the movements. Inappropriately timed robotic assistance also alters the patient&#x2019;s sense of agency or subjective awareness of control. This could lead to a lack of intrinsic motivation and attention, affecting motor learning and performance. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>6</sup>
                    </ext-link>
                    <sup> </sup>Positive therapeutic effects have been observed only when patients actively engage in therapy. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>7</sup>
                    </ext-link>
                    <sup> &#x2013;</sup> 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>10</sup>
                    </ext-link>
                    <sup> </sup>Jo 
                    <italic>et al.</italic> 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>11</sup>
                    </ext-link>
                    <sup> </sup>reported no improvement in clinical scales with passive range of motion therapy. Thus, active patient participation during movement therapy is an essential ingredient for sensorimotor recovery. Robotic assistance contingent on a subject&#x2019;s intention to move is an effective way to guide neuroplasticity.</p>
                <p> </p>
                <p> 
                    <bold>Reduced text in the manuscript:</bold>
                </p>
                <p> </p>
                <p> Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 
                    <sup>
                        <ext-link ext-link-type="uri" xlink:href="">2</ext-link> ,</sup> 
                    <sup>
                        <ext-link ext-link-type="uri" xlink:href="">3</ext-link> </sup>and require physical assistance to actively engage in movement training. Robotic assistance can motivate such subjects to attempt and train movements and when it is contingent on the intention to move it may be an effective way to guide neuroplasticity. 
                    <sup>
                        <ext-link ext-link-type="uri" xlink:href="">12</ext-link>
                    </sup>
                </p>
                <p> &#x00a0; 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>It sounds also contradicting to refer to the case &#x201e;without residual movement&#x201c; but to measure surface EMG. What presumably is addressed by the manuscript are combined muscle excitations; i.e. to generate stiffness in the arm when fingers are grasping an object. But such a stiffness in the forearm is ambiguous, because the same stiffness will be generated with different finger movements. I will not continue this rehabilitation issue, because it is not the concern of this manuscript. &#x2013; as mentioned above.</italic>
                            </p>
                        </list-item>
                        <list-item>
                            <p>
                                <italic>Summarizing: The main results are interesting, and they should be provided in a compressed form.</italic>
                            </p>
                        </list-item>
                    </list> </p>
                <p> 
                    <bold>Response:</bold> The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG.</p>
                <p> </p>
                <p> The lack of residual movements despite the presence of EMG in stroke patients could be because of several reasons, one such is co-contraction in which case we could still pick up residual EMG. We agree with the reviewer that the same stiffness can be generated with different finger movements. However, our objective is not to decode stiffness, but to see if there is EMG activity in a muscle of interest &#x2013; a muscle the patient is trying to activate while attempting a movement.</p>
                <p> </p>
                <p> The patient could be activating other (antagonists or unrelated) muscles as well, but this is not relevant to the question of whether the muscle of interest displays EMG activity when it is being activated. We are primarily interested in the most appropriate detector for low SNR EMG from any given muscle, irrespective of what happens with other muscles. Once such a detector is identified, different forms of therapeutic interventions become possible, where patients could be asked to attempt activation of certain muscles while suppressing others.</p>
            </body>
        </sub-article>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report219586">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.145296.r219586</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Crocher</surname>
                        <given-names>Vincent</given-names>
                    </name>
                    <xref ref-type="aff" rid="r219586a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r219586a1">
                    <label>1</label>The University of Melbourne, Melbourne, Victoria, Australia</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>6</day>
                <month>11</month>
                <year>2023</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2023 Crocher V</copyright-statement>
                <copyright-year>2023</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport219586" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.132382.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>The authors propose to evaluate and compare 13 sEMG onset detectors specifically on low signal-to-noise EMG (0db and -3db). The authors propose a thorough work and use an appropriate methodology (including generation of simulated EMG signals, wide range of detectors and tuning, outcome evaluation cost and analysis) which is aligned with the objective of the paper and the application (the use of EMG onset for rehabilitation robotics control).</p>
            <p> </p>
            <p> The paper is clearly of interest in the field of neuro-rehabilitation robotics and I believe that both the results and the methodology used (and associated code provided, which is reasonably documented) are of direct interest to the field.</p>
            <p> </p>
            <p> Specific comments:</p>
            <p> </p>
            <p> 
                <bold>Introduction:</bold> 
                <list list-type="bullet">
                    <list-item>
                        <p>The part on BCI drawbacks can be shorten into a simple sentence to keep the introduction more straightforward (this is not the focus of the paper).</p>
                    </list-item>
                    <list-item>
                        <p>"In this paper, EMG always refers to surface-recorded muscle": this indeed makes sense for the neuro-rehabilitation application of interest here and even more generally given the wider adoption and ease of use of surface EMG.I would thus suggest to bring this statement as early as in the introduction and adopt the sEMG acronym across the paper as this is an unambiguous terminology widely used.</p>
                    </list-item>
                </list> 
                <bold>Methods:</bold> 
                <list list-type="bullet">
                    <list-item>
                        <p>In the "Simulation of surface EMG signal" section, I would suggest to move the part of the last paragraph ("The phenomenological models were based on the work of De Luca...") to the next section to ease the reading. This part is relative to the Phenomenological models only.</p>
                    </list-item>
                    <list-item>
                        <p>Figure 1 presenting examples of the three types of generated signals show the biophysical signal of a smaller (20 times) than the phenomenological ones. While the absolute amplitude likely does not affect the detectors, this is slightly confusing. Is there any valid reason for this difference or can these three signals be equalised to the same amplitude?</p>
                    </list-item>
                    <list-item>
                        <p>In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify.</p>
                    </list-item>
                    <list-item>
                        <p>In Table 1, while RMS and Lidierth detectors do use a filter for the conditioning, those filters cut-off frequencies are not listed as parameters. Do authors intentionally chose fixed, non-optimised, frequencies for those (and if so, why)? or is this a simple oversight in the table?</p>
                    </list-item>
                    <list-item>
                        <p>After Eq 12, authors should clearly introduce \alpha and refer to it as weight as this is the fist time it is properly introduced. I would also recommend to explicit it earlier on, as the Weight (weights?) are introduced in Table 1 earlier and earlier in the text but without explanation making it hard to follow.</p>
                    </list-item>
                </list> 
                <bold>Methods: On the cost definition:</bold> 
                <list list-type="bullet">
                    <list-item>
                        <p>According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat&lt;0ms and so is effectively a False positive. While I understand that this cannot be avoided with the chosen structure of the cost: this suggests that the within the overall cost, the latency and the false negative rates are more redundant whereas the false negative rate is quite independent of the other two.</p>
                    </list-item>
                    <list-item>
                        <p>More generally, as the authors show that most detectors already behave quite poorly for such low SNR sEMG, the chosen cost bounds, and especially the 20% seems quite high for actual use. Given the application in mind where the objective is to detect one true onset as quickly as possible (and 50ms appears reasonable for a robotics assistance), I wonder if a cost accounting for a more strict false negative rate and more tolerant (if accounted at all) for false positive would make more sense. Indeed, only the earliest positive detection after onset can be considered useful for an application using this signal as a trigger. Wouldn't it make sense to also train and evaluate the detectors on a cost based solely on a very strict false positive rate (5%?) and not included FN in the cost (given that only the earliest detection after true onset matters)? Regarding the FP and FN rates, those are also calculated per trial, meaning that 20% (or even 5%) can mean that each trial has at least several FP before onset and not that 20% (or 5%) of the trials do have a FP. This is this latest figure that is of direct interest for the application. Authors should clearly discuss this point on how these results translate to real scenarios and provide results showing in what percentage of test trials FP detection happens before onset.</p>
                    </list-item>
                </list> 
                <bold>Discussion:</bold> 
                <list list-type="bullet">
                    <list-item>
                        <p>It could be interesting to discuss the possibility that the signal processing (detectors) might not be necessarily implemented at the same frequency than the one the sEMG data is collected. Indeed it is common in existing systems to have an EMG acquisition faster than the robotic controller (typically a &gt;2kHz EMG sampling for a 1kHz controller). Does authors have clues on how that might differently affect the different detectors?</p>
                    </list-item>
                    <list-item>
                        <p>While the use of simulated (generated) EMG signals to evaluate the performance of the detector is appropriate and allows for robust and repeatable outcomes, it would be an interesting addition to also perform a short evaluation on actual low signal-to-noise EMG datasets.</p>
                        <p> </p>
                        <p> On that point of potential difference with actual EMG signals, authors rightly point that they here test the optimal behaviour of the detectors, i.e. they would likely all perform worst on actual signals, especially when muscle activation is not constant over a long period. Can authors infer and discuss some difference in performance between the detectors for short activation (typically flickers that can be encountered in rehabilitation applications)? Some detectors are based on relatively long windows of 150ms, and while authors explain in the discussion that the best detectors have a latency of &lt;50ms and so likely suitable for short activation bursts, how this would affect the detectors with longer window? Could they be likely be optimised differently for such signals?</p>
                    </list-item>
                </list> 
                <bold>Minor/typos:</bold> 
                <list list-type="bullet">
                    <list-item>
                        <p>&#x00a0;"Devasahayam S43"&#x00a0; =&gt; "Devasahayam43"</p>
                    </list-item>
                    <list-item>
                        <p>&#x00a0;In Table 2, some window sizes are in (ms) some in (s)</p>
                    </list-item>
                </list>
            </p>
            <p>Is the work clearly and accurately presented and does it cite the current literature?</p>
            <p>Yes</p>
            <p>If applicable, is the statistical analysis and its interpretation appropriate?</p>
            <p>Yes</p>
            <p>Are all the source data underlying the results available to ensure full reproducibility?</p>
            <p>Yes</p>
            <p>Is the study design appropriate and is the work technically sound?</p>
            <p>Yes</p>
            <p>Are the conclusions drawn adequately supported by the results?</p>
            <p>Partly</p>
            <p>Are sufficient details of methods and analysis provided to allow replication by others?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>Rehabilitation robotics</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
        <sub-article article-type="response" id="comment10896-219586">
            <front-stub>
                <contrib-group>
                    <contrib contrib-type="author">
                        <name>
                            <surname>Yuvaraj</surname>
                            <given-names>Monisha</given-names>
                        </name>
                        <aff>Applied Mechanics, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India</aff>
                    </contrib>
                </contrib-group>
                <author-notes>
                    <fn fn-type="conflict">
                        <p>
                            <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                    </fn>
                </author-notes>
                <pub-date pub-type="epub">
                    <day>14</day>
                    <month>1</month>
                    <year>2024</year>
                </pub-date>
            </front-stub>
            <body>
                <p>
                    <bold>1. S</bold>
                    <bold>ummary</bold>
                </p>
                <p> Thank you very much for taking the time to review this manuscript. Please find the detailed responses below and the corresponding revisions/corrections highlighted/in track changes in the re-submitted files.</p>
                <p> </p>
                <p> 
                    <bold>2. Point-by-point response to Comments and Suggestions for Authors</bold>
                </p>
                <p> </p>
                <p> In the following, the reviewer&#x2019;s comments are in Italics. Each comment has the response and The changes in the manuscript are presented by first showing verbatima segment of the text from the previous manuscript&#x00a0; followed by the modified text. Please find the response as a PDF file 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.24996056.v3">here</ext-link>.</p>
                <p> </p>
                <p> The authors propose to evaluate and compare 13 sEMG onset detectors specifically on low signal-to-noise EMG (0db and -3db). The authors propose a thorough work and use an appropriate methodology (including generation of simulated EMG signals, wide range of detectors and tuning, outcome evaluation cost and analysis) which is aligned with the objective of the paper and the application (the use of EMG onset for rehabilitation robotics control). The paper is clearly of interest in the field of neuro-rehabilitation robotics and I believe that both the results and the methodology used (and associated code provided, which is reasonably documented) are of direct interest to the field.</p>
                <p> </p>
                <p> 
                    <underline>
                        <bold>Introduction:</bold>
                    </underline> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>The part on BCI drawbacks can be shorten into a simple sentence to keep the introduction more straightforward (this is not the focus of the paper).</italic>
                            </p>
                        </list-item>
                    </list> </p>
                <p> 
                    <bold>Response: </bold>We have shortened this segment in the introduction section as suggested.</p>
                <p> </p>
                <p> 
                    <bold>Original text</bold>:</p>
                <p> They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>20</sup>
                    </ext-link>
                    <sup> </sup>The use of sophisticated signal processing techniques can increase the delay in intent detection, which can result in inappropriately timed robotic assistance leading to suboptimal recovery 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>12</sup>
                    </ext-link>
                    <sup> ,</sup> 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>21</sup>
                    </ext-link>
                    <sup> </sup>
                </p>
                <p> EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>21</sup>
                    </ext-link>
                    <sup> </sup>
                </p>
                <p> Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>22</sup>
                    </ext-link>
                    <sup> </sup>
                </p>
                <p> Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 
                    <ext-link ext-link-type="uri" xlink:href="">
                        <sup>23</sup>
                    </ext-link>
                </p>
                <p> </p>
                <p> 
                    <bold>Change in the manuscript:</bold> They often exhibit a poor signal-to-noise ratio, with significant trial-to-trial intra-subject variability [20]. Unlike EMG systems, EEG-BCI modalities lack task specificity [21]. Moreover, their complexity and time-consuming nature prevent their routine clinical use [23]. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>"In this paper, EMG always refers to surface-recorded muscle": this indeed makes sense for the neuro-rehabilitation application of interest here and even more generally given the wider adoption and ease of use of surface EMG. I would thus suggest to bring this statement as early as in the introduction and adopt the sEMG acronym across the paper as this is an unambiguous terminology widely used.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> We have moved the sentence to the introduction and used &#x201c;sEMG&#x201d; throughout the paper.</p>
                <p> </p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> In this paper, we consider surface-recorded muscle electromyogram activity (sEMG), as this modality will most likely be employed in routine robot-assisted therapy. sEMG could be used as a viable alternative to address the drawbacks of EEG-BCI for robot-assisted therapy.</p>
                <p> </p>
                <p> 
                    <bold>
                        <underline>Methods:</underline>
                    </bold> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>In the "Simulation of surface EMG signal" section, I would suggest to move the part of the last paragraph ("The phenomenological models were based on the work of De Luca...") to the next section to ease the reading. This part is relative to the Phenomenological models only.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response: </bold>We have
                    <bold> </bold>moved the paragraph to the phenomenological models&#x2019; section as suggested.</p>
                <p> 
                    <italic>&#x00a0;</italic>
                </p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> 
                    <italic>&#x201c; The phenomenological models were based on the work of De Luca 37 where an sEMG signal from a muscle activated at a fixed level can be treated as zero-mean white noise followed by a shaping filter (electrode properties); this model is widely accepted in the literature. 24, 38 &#x2013; 41&#x2026; The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise &#x2026;&#x201d;</italic> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>Figure 1 presenting examples of the three types of generated signals show the biophysical signal of a smaller (20 times) than the phenomenological ones. While the absolute amplitude likely does not affect the detectors, this is slightly confusing. Is there any valid reason for this difference or can these three signals be equalised to the same amplitude</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> The amplitude of biophysical model is in mV since it is modelled using physics of the EMG generation and recording process. Whereas with the phenomenological model the EMG signal is generated as bandpass filtered white noise, and thus its amplitude is in arbitrary units. We have now addressed this issue by scaling the biophysical models to have similar amplitudes to that of the phenomenological models to avoid any confusion. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> The optimal parameter for each detector type is selected by doing search over a range of values for each parameter. The performance of a detector is tested with different weights in the range
                    <bold> </bold>
                    <bold>
                        <italic>&#x03b1; </italic>
                    </bold>&#x2208;{1,2,3,4,5}.&#x00a0; However, only one value by detector is used for computing the threshold. &#x201c;Weights&#x201d; in Table 1 has been modified as &#x201c;Weight&#x201d;. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>In Table 1, while RMS and Lidierth detectors do use a filter for the conditioning, those filters cut-off frequencies are not listed as parameters. Do authors intentionally chose fixed, non-optimised, frequencies for those (and if so, why)? or is this a simple oversight in the table?</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> The Lidierth detector utilizes rectification for signal conditioning and does not incorporate a low-pass filter. This oversight in the table has been rectified. On the other hand, the RMS detector, as per the original paper, employed a band-pass filter between 10 Hz and 250 Hz (fs/2) on recoded raw EMG data to obtain the EMG signal within the required frequency spectrum. However, in this analysis, simulated data was generated by band-pass filtering white noise between 10 and 450 Hz. Therefore, the band-pass filter for signal conditioning in the RMS detector was redundant. Hence, we implemented the detector without the band-pass filter and achieved similar results. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>After Eq 12, authors should clearly introduce \alpha and refer to it as weight as this is the first time it is properly introduced. I would also recommend to explicit it earlier on, as the Weight (weights?) are introduced in Table 1 earlier and earlier in the text but without explanation making it hard to follow.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> Thank you, we have followed this suggestion as follows:</p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> The threshold 
                    <italic>h</italic> is adaptive and is calculated for each trial by adding &#x03b1; times the standard deviation of first 3 seconds data (Figure 3) to the mean. &#x03b1; is termed as 
                    <italic>weight</italic> for threshold in this paper.&#x00a0;</p>
                <p> </p>
                <p> 
                    <underline>
                        <bold>Methods: On the cost definition:</bold>
                    </underline> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat&lt;0ms and so is effectively a False positive. While I understand that this cannot be avoided with the chosen structure of the cost: this suggests that the within the overall cost, the latency and the false negative rates are more redundant whereas the false negative rate is quite independent of the other two.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> The response is with the understanding that the reviewer's comment is as follows: &#x201c;This suggests that the within the overall cost, the latency and the false negative rates are more redundant whereas the false positive rate is quite independent of the other two.&#x201d;</p>
                <p> We performed a correlation analysis between false negative rate and the latency, which showed that: 
                    <list list-type="bullet">
                        <list-item>
                            <p>Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1).</p>
                        </list-item>
                        <list-item>
                            <p>No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2).</p>
                        </list-item>
                    </list> Therefore, the three factors are independent at lower SNR and there is a need to account for them separately in order to evaluate the performance of the detector. Scatter plots of FNR vs. latency at both 0dB and -3dB for one of the detector Hodges are presented in Figures 1 and 2, respectively. Similar results are observed for all other detectors.</p>
                <p> 
                    <italic>Fig.1. Correlation plot of false negative rate vs. latency of Hodges detector tested on the three signals model (from left: Gaussian, Laplacian and Biophysical) with 0dB SNR.</italic>
                </p>
                <p> 
                    <italic>Fig.2: Correlation plot of false negative rate v.s latency of Hodges detector tested on the three signal model (from left: Gaussian, Laplacian and Biophysical) with -3 dB SNR.</italic>
                </p>
                <p> 
                    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.6084/m9.figshare.24996101.v1">The figures can be found here</ext-link> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>More generally, as the authors show that most detectors already behave quite poorly for such low SNR sEMG, the chosen cost bounds, and especially the 20% seems quite high for actual use. Given the application in mind where the objective is to detect one true onset as quickly as possible (and 50ms appears reasonable for a robotics assistance), I wonder if a cost accounting for a more strict false negative rate and more tolerant (if accounted at all) for false positive would make more sense. Indeed, only the earliest positive detection after onset can be considered useful for an application using this signal as a trigger. Wouldn't it make sense to also train and evaluate the detectors on a cost based solely on a very strict false positive rate (5%?) and not included FN in the cost (given that only the earliest detection after true onset matters)? Regarding the FP and FN rates, those are also calculated per trial, meaning that 20% (or even 5%) can mean that each trial has at least several FP before onset and not that 20% (or 5%) of the trials do have a FP. This is this latest figure that is of direct interest for the application. Authors should clearly discuss this point on how these results translate to real scenarios and provide results showing in what percentage of test trials FP detection happens before onset.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> Firstly, we have modified the term EMG-triggered robot-assisted therapy&#x00a0; to EMG-driven robot-assisted therapy to emphasise that we are interested in implementing a therapy modality where the robot-assisted movement is contingent on the presence or absence of sEMG. Continued assistance required the continued presence of sEMG. This has been modified in the manuscript. We have also changed &#x201c;sEMG-triggered&#x201d; to &#x201c;sEMG-driven&#x201d;.</p>
                <p> </p>
                <p> 
                    <bold>Original text</bold>:</p>
                <p> In sEMG-triggered robot-assisted therapy, robotic assistance is triggered whenever sEMG is detected in real-time in the target muscle during the move phase of a trial.</p>
                <p> </p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> In sEMG-driven robot-assisted therapy, the robot remains inactive during the rest phase, while in the move phase the robot-assisted movement is contingent upon the presence or absence of sEMG at any given time, thus continued sEMG is required to continuously receive robotic assistance.</p>
                <p> </p>
                <p> 
                    <bold>Response:</bold>
                </p>
                <p> Making robot-assistance contingent on continued presence of sEMG is important to keep the subject actively involved during the entire duration of a task, and thus avoid slacking. Such a modality requires both the rejection of false positives, quick detection of sEMG onset, and the continued detection of sEMG when it is present (i.e. low false negatives). Low false negative rates may be essential for the user&#x2019;s motivation and sense of agency.</p>
                <p> For higher SNR signals, the presence of the false negative rate may not be important in the cost function, but it is crucial for low SNR signals (0dB or -3dB) including the false negative rate.</p>
                <p> Also, the sample entropy, SSA and CWT detectors that performed worse across all three models had acceptable false positive rate and latency, but the false negative rate alone was more than 20% which contributed to higher cost. These detectors will also be considered suitable for application in robot assisted therapy if the false negative rate is not included in the cost. This suggest that it is important to optimised for false negative rate as well since we are looking at low SNR EMG signals.</p>
                <p> We have now included a short paragraph explaining why the three terms are included in the cost function:</p>
                <p> </p>
                <p> 
                    <bold>Original text</bold>:</p>
                <p> The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency.</p>
                <p> </p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> An optimal EMG detector designed for use in EMG-driven robot-assisted therapy should possess the capability to quickly identify the onset of sEMG, efficiently eliminate false positives, and consistently detect sEMG when it is present (lower false negatives). Such a detector is essential for maintaining user&#x2019;s motivation and sense of agency.
                    <bold> </bold>
                </p>
                <p> </p>
                <p> 
                    <bold>Response:</bold>
                </p>
                <p> We agree that the 20% false positive rate might be too high. But since we are looking at very low SNR signal a strict FPR of 5% might decide all the detectors as not suitable for application in robot-assisted therapy. Also optimising for such low FPR could lead to parameter choices that compromise the true positive rate and latency since we are working with low SNR signals. Therefore, we have decided to use a more sensitive detector. 
                    <list list-type="bullet">
                        <list-item>
                            <p>We do not think that choosing a sensitive detector is a problem because the output of the detector will not be used to directly drive robot-assistance. Some form of low-pass filtering, or time-based filtering will be employed to smooth out jittery outputs from the detector before activating robotic-assistance. Such filtering operations on the detector output is commonly employed (e.g. Ramos-Murguialday et al., 2013). This can help filter out most short-duration false-positive pulses from activating robotic assistance. This filtering operation will increase the latency, which can impact the sense of agency and the perception of the user about the system&#x2019;s responsiveness. Previous work indicates that a 200-300ms delay is well tolerated when reporting agency. Starting with a sensitive detector, we can experiment with different levels of filtering of the output with feedback from patients to yield an optimal detector. Individualising the detector and the filtering block is likely to favour patients to feel in control of their own movements.</p>
                        </list-item>
                    </list> We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector.</p>
                <p> </p>
                <p> 
                    <bold>Change in the manuscript:</bold>
                </p>
                <p> In this analysis, a cost of 0.2 was selected for the application in sEMG-driven robot-assisted therap, corresponding to a 50 ms latency, 20% FPR or 20% FNR. &#x00a0;Permitting up to a 20% false positive rate might be too high, leading to the selection of a highly sensitive detector as the best choice. However, we &#x00a0;believe that choosing a sensitive detector &#x00a0;is not a problem, because the raw output of this detector is unlikely to be used directly to drive the robot-assistance. Some form of low-pass or time-based filtering (like the one employed by Ramos-Murguialday et al.
                    <sup>1</sup>) will be employed to filter out show false positives/negative pulses before using it to drive robotic assistance. This filtering operation reduce the FPR and FNR at the expense of introducing an additional latency; a delay of 200-300ms are well tolerated when reporting for sense of agency
                    <sup>2</sup>. The choice of amount of filtering of the chose detector&#x2019;s output will need to be done through feedback from patients/users of the system.</p>
                <p> A 20% false positive rate does not imply that 20% of the trials have a false positive rate. Instead, we assessed the consistency of the detectors by determining the number of test trials with a cost less than 0.2. A suitable detector is identified as one that has 80% of test trials with a cost less than 0.2, as indicated by the grey boxes in Table 3. These highlighted detectors exhibit more than 80% of test trials with at most a 20% false positive rate. This means that every trial could have false positives, and in our analysis the best detectors are the ones that consistently show less than 20% false positives in each test trial.</p>
                <p> </p>
                <p> 
                    <underline>
                        <bold>Discussion:</bold>
                    </underline> 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>It could be interesting to discuss the possibility that the signal processing (detectors) might not be necessarily implemented at the same frequency than the one the sEMG data is collected. Indeed, it is common in existing systems to have an EMG acquisition faster than the robotic controller (typically a &gt;2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors?</italic>
                                <bold> </bold>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> Although the EMG acquisition happens at faster rate when compared to the robotic controller
                    <bold>, </bold>the performance of the different detectors is likely to be not affected by the sampling rate. Consider that the EMG detectors are implemented at the same frequency as the EMG acquisition system (1 kHz) but the robotic controller is running at lower sampling frequency of 100 Hz. Then the output of the EMG detector is to be down sampled to match the frequency of the robotic controller which might lead to increase in latency by few milliseconds (10 ms) which might not affect the overall behaviour of the EMG-triggered robot assistance system. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>While the use of simulated (generated) EMG signals to evaluate the performance of the detector is appropriate and allows for robust and repeatable outcomes, it would be an interesting addition to also perform a short evaluation on actual low signal-to-noise EMG datasets.</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> We believe that evaluating the performance of the detector with real EMG datasets is outside the scope of this paper, in part as the same analysis approach cannot be applied with real data since we do not have full control over the amplitude and timing of the real EMG data, and we might not always have the ground truth. However, we are investigating if the outcomes of this study are supported by real data from patients from a previously concluded study. 
                    <list list-type="bullet">
                        <list-item>
                            <p>
                                <italic>On that point of potential difference with actual EMG signals, authors rightly point that they here test the optimal behaviour of the detectors, i.e. they would likely all perform worst on actual signals, especially when muscle activation is not constant over a long period. Can authors infer and discuss some difference in performance between the detectors for short activation (typically flickers that can be encountered in rehabilitation applications)? Some detectors are based on relatively long windows of 150ms, and while authors explain in the discussion that the best detectors have a latency of &lt;50ms and so likely suitable for short activation bursts, how this would affect the detectors with longer window? Could they be likely be optimised differently for such signals?</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency &lt; 50ms) have a window size of less than or equal to 100 ms as the optimised parameter (Table 2). AGLR-G detector under biophysical model (0dB and -3dB) and Laplacian model (-3dB) with window size of 150 ms do not fall under the detectors with acceptable cost. This shows that detectors with a larger window size are less likely suitable for short activation bursts. However, on an average across all three models AGLR-G detector had reasonable percentage of validation trials with cost less than 0.2, thus we have mentioned in the Discussion that it is also one of the detectors that is likely to pick up short bursts.</p>
                <p> We conducted an analysis on EMG signals with short pulses of 500 ms duration. The results indicated that optimised parameters differed for the step EMG and pulse EMG. We also included the offset time in evaluating the performance of the detector. When optimising for offset time, higher weights for the threshold and a greater cut-off frequency for the low-pass filter (smaller window sizes) were selected to minimise the offset time latency. Hence, the detectors that were optimised with step EMG with relatively longer window size may exhibit suboptimal performance on EMG, with intermittent muscle activity as they might miss to detect the short activation burst.</p>
                <p> </p>
                <p> 
                    <bold>
                        <underline>Minor/typos:</underline>
                    </bold> 
                    <list list-type="bullet">
                        <list-item>
                            <p>&#x00a0;
                                <italic>"Devasahayam S43"&#x00a0; =&gt; "Devasahayam43"</italic>
                            </p>
                        </list-item>
                        <list-item>
                            <p>
                                <italic>&#x00a0;In Table 2, some window sizes are in (ms) some in (s)</italic>
                            </p>
                        </list-item>
                    </list> 
                    <bold>Response:</bold>
                </p>
                <p> These have been corrected in the manuscript.</p>
            </body>
        </sub-article>
    </sub-article>
</article>
