A systematic investigation of detectors for low... | F1000Research "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r 3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}(); dataLayer = dataLayer || []; // Standard GTM initialization - Google Consent Mode handles consent automatically (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=hzk0Vc3qFsQYhCrIoHz68A>m_preview=env-1>m_cookies_win=x';f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MWFK8L5J'); ;window.NREUM||(NREUM={});NREUM.init={distributed_tracing:{enabled:true},privacy:{cookies_enabled:true},ajax:{deny_list:["bam.nr-data.net"]}}; ;NREUM.loader_config={accountID:"438030",trustKey:"438030",agentID:"772317073",licenseKey:"97f8f67f26",applicationID:"772317073"} ;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"97f8f67f26",applicationID:"772317073",sa:1} ;/*! For license information please see nr-loader-spa-1.236.0.min.js.LICENSE.txt */ (()=>{"use strict";var e,t,r={5763:(e,t,r)=>{r.d(t,{P_:()=>l,Mt:()=>g,C5:()=>s,DL:()=>v,OP:()=>T,lF:()=>D,Yu:()=>y,Dg:()=>h,CX:()=>c,GE:()=>b,sU:()=>_});var n=r(8632),i=r(9567);const o={beacon:n.ce.beacon,errorBeacon:n.ce.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){if(!e)throw new Error("All info objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function c(e,t){if(!e)throw new Error("All info objects require an agent identifier!");a[e]=(0,i.D)(t,o),(0,n.Qy)(e,a[e],"info")}var u=r(7056);const d=()=>{const e={blockSelector:"[data-nr-block]",maskInputOptions:{password:!0}};return{allow_bfcache:!0,privacy:{cookies_enabled:!0},ajax:{deny_list:void 0,enabled:!0,harvestTimeSeconds:10},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},session:{domain:void 0,expiresMs:u.oD,inactiveMs:u.Hb},ssl:void 0,obfuscate:void 0,jserrors:{enabled:!0,harvestTimeSeconds:10},metrics:{enabled:!0},page_action:{enabled:!0,harvestTimeSeconds:30},page_view_event:{enabled:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,long_task:!1},session_trace:{enabled:!0,harvestTimeSeconds:10},harvest:{tooManyRequestsDelay:60},session_replay:{enabled:!1,harvestTimeSeconds:60,sampleRate:.1,errorSampleRate:.1,maskTextSelector:"*",maskAllInputs:!0,get blockClass(){return"nr-block"},get ignoreClass(){return"nr-ignore"},get maskTextClass(){return"nr-mask"},get blockSelector(){return e.blockSelector},set blockSelector(t){e.blockSelector+=",".concat(t)},get maskInputOptions(){return e.maskInputOptions},set maskInputOptions(t){e.maskInputOptions={...t,password:!0}}},spa:{enabled:!0,harvestTimeSeconds:10}}},f={};function l(e){if(!e)throw new Error("All configuration objects require an agent identifier!");if(!f[e])throw new Error("Configuration for ".concat(e," was never set"));return f[e]}function h(e,t){if(!e)throw new Error("All configuration objects require an agent identifier!");f[e]=(0,i.D)(t,d()),(0,n.Qy)(e,f[e],"config")}function g(e,t){if(!e)throw new Error("All configuration objects require an agent identifier!");var r=l(e);if(r){for(var n=t.split("."),i=0;i {r.d(t,{D:()=>i});var n=r(50);function i(e,t){try{if(!e||"object"!=typeof e)return(0,n.Z)("Setting a Configurable requires an object as input");if(!t||"object"!=typeof t)return(0,n.Z)("Setting a Configurable requires a model to set its initial properties");const r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),o=0===Object.keys(r).length?e:r;for(let a in o)if(void 0!==e[a])try{"object"==typeof e[a]&&"object"==typeof t[a]?r[a]=i(e[a],t[a]):r[a]=e[a]}catch(e){(0,n.Z)("An error occurred while setting a property of a Configurable",e)}return r}catch(e){(0,n.Z)("An error occured while setting a Configurable",e)}}},6818:(e,t,r)=>{r.d(t,{Re:()=>i,gF:()=>o,q4:()=>n});const n="1.236.0",i="PROD",o="CDN"},385:(e,t,r)=>{r.d(t,{FN:()=>a,IF:()=>u,Nk:()=>f,Tt:()=>s,_A:()=>o,il:()=>n,pL:()=>c,v6:()=>i,w1:()=>d});const n="undefined"!=typeof window&&!!window.document,i="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),o=n?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),a=""+o?.location,s=/iPad|iPhone|iPod/.test(navigator.userAgent),c=s&&"undefined"==typeof SharedWorker,u=(()=>{const e=navigator.userAgent.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})(),d=Boolean(n&&window.document.documentMode),f=!!navigator.sendBeacon},1117:(e,t,r)=>{r.d(t,{w:()=>o});var n=r(50);const i={agentIdentifier:"",ee:void 0};class o{constructor(e){try{if("object"!=typeof e)return(0,n.Z)("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,i),Object.entries(e).forEach((e=>{let[t,r]=e;Object.keys(i).includes(t)&&(this.sharedContext[t]=r)}))}catch(e){(0,n.Z)("An error occured while setting SharedContext",e)}}}},8e3:(e,t,r)=>{r.d(t,{L:()=>d,R:()=>c});var n=r(2177),i=r(1284),o=r(4322),a=r(3325);const s={};function c(e,t){const r={staged:!1,priority:a.p[t]||0};u(e),s[e].get(t)||s[e].set(t,r)}function u(e){e&&(s[e]||(s[e]=new Map))}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"feature";if(u(e),!e||!s[e].get(t))return a(t);s[e].get(t).staged=!0;const r=[...s[e]];function a(t){const r=e?n.ee.get(e):n.ee,a=o.X.handlers;if(r.backlog&&a){var s=r.backlog[t],c=a[t];if(c){for(var u=0;s&&u {let[t,r]=e;return r.staged}))&&(r.sort(((e,t)=>e[1].priority-t[1].priority)),r.forEach((e=>{let[t]=e;a(t)})))}function f(e,t){var r=e[1];(0,i.D)(t[r],(function(t,r){var n=e[0];if(r[0]===n){var i=r[1],o=e[3],a=e[2];i.apply(o,a)}}))}},2177:(e,t,r)=>{r.d(t,{c:()=>f,ee:()=>u});var n=r(8632),i=r(2210),o=r(1284),a=r(5763),s="nr@context";let c=(0,n.fP)();var u;function d(){}function f(e){return(0,i.X)(e,s,l)}function l(){return new d}function h(){u.aborted=!0,u.backlog={}}c.ee?u=c.ee:(u=function e(t,r){var n={},c={},f={},g=!1;try{g=16===r.length&&(0,a.OP)(r).isolatedBacklog}catch(e){}var p={on:b,addEventListener:b,removeEventListener:y,emit:v,get:x,listeners:w,context:m,buffer:A,abort:h,aborted:!1,isBuffering:E,debugId:r,backlog:g?{}:t&&"object"==typeof t.backlog?t.backlog:{}};return p;function m(e){return e&&e instanceof d?e:e?(0,i.X)(e,s,l):l()}function v(e,r,n,i,o){if(!1!==o&&(o=!0),!u.aborted||i){t&&o&&t.emit(e,r,n);for(var a=m(n),s=w(e),d=s.length,f=0;fn,p:()=>i});var n=r(2177).ee.get("handle");function i(e,t,r,i,o){o?(o.buffer([e],i),o.emit(e,t,r)):(n.buffer([e],i),n.emit(e,t,r))}},4322:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(5546);o.on=a;var i=o.handlers={};function o(e,t,r,o){a(o||n.E,i,e,t,r)}function a(e,t,r,i,o){o||(o="feature"),e||(e=n.E);var a=t[o]=t[o]||{};(a[r]=a[r]||[]).push([e,i])}},3239:(e,t,r)=>{r.d(t,{bP:()=>s,iz:()=>c,m$:()=>a});var n=r(385);let i=!1,o=!1;try{const e={get passive(){return i=!0,!1},get signal(){return o=!0,!1}};n._A.addEventListener("test",null,e),n._A.removeEventListener("test",null,e)}catch(e){}function a(e,t){return i||o?{capture:!!e,passive:i,signal:t}:!!e}function s(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;window.addEventListener(e,t,a(r,n))}function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;document.addEventListener(e,t,a(r,n))}},4402:(e,t,r)=>{r.d(t,{Ht:()=>u,M:()=>c,Rl:()=>a,ky:()=>s});var n=r(385);const i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function o(e,t){return e?15&e[t]:16*Math.random()|0}function a(){const e=n._A?.crypto||n._A?.msCrypto;let t,r=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(31))),i.split("").map((e=>"x"===e?o(t,++r).toString(16):"y"===e?(3&o()|8).toString(16):e)).join("")}function s(e){const t=n._A?.crypto||n._A?.msCrypto;let r,i=0;t&&t.getRandomValues&&(r=t.getRandomValues(new Uint8Array(31)));const a=[];for(var s=0;s {r.d(t,{Bq:()=>n,Hb:()=>o,oD:()=>i});const n="NRBA",i=144e5,o=18e5},7894:(e,t,r)=>{function n(){return Math.round(performance.now())}r.d(t,{z:()=>n})},7243:(e,t,r)=>{r.d(t,{e:()=>o});var n=r(385),i={};function o(e){if(e in i)return i[e];if(0===(e||"").indexOf("data:"))return{protocol:"data"};let t;var r=n._A?.location,o={};if(n.il)t=document.createElement("a"),t.href=e;else try{t=new URL(e,r.href)}catch(e){return o}o.port=t.port;var a=t.href.split("://");!o.port&&a[1]&&(o.port=a[1].split("/")[0].split("@").pop().split(":")[1]),o.port&&"0"!==o.port||(o.port="https"===a[0]?"443":"80"),o.hostname=t.hostname||r.hostname,o.pathname=t.pathname,o.protocol=a[0],"/"!==o.pathname.charAt(0)&&(o.pathname="/"+o.pathname);var s=!t.protocol||":"===t.protocol||t.protocol===r.protocol,c=t.hostname===r.hostname&&t.port===r.port;return o.sameOrigin=s&&(!t.hostname||c),"/"===o.pathname&&(i[e]=o),o}},50:(e,t,r)=>{function n(e,t){"function"==typeof console.warn&&(console.warn("New Relic: ".concat(e)),t&&console.warn(t))}r.d(t,{Z:()=>n})},2587:(e,t,r)=>{r.d(t,{N:()=>c,T:()=>u});var n=r(2177),i=r(5546),o=r(8e3),a=r(3325);const s={stn:[a.D.sessionTrace],err:[a.D.jserrors,a.D.metrics],ins:[a.D.pageAction],spa:[a.D.spa],sr:[a.D.sessionReplay,a.D.sessionTrace]};function c(e,t){const r=n.ee.get(t);e&&"object"==typeof e&&(Object.entries(e).forEach((e=>{let[t,n]=e;void 0===u[t]&&(s[t]?s[t].forEach((e=>{n?(0,i.p)("feat-"+t,[],void 0,e,r):(0,i.p)("block-"+t,[],void 0,e,r),(0,i.p)("rumresp-"+t,[Boolean(n)],void 0,e,r)})):n&&(0,i.p)("feat-"+t,[],void 0,void 0,r),u[t]=Boolean(n))})),Object.keys(s).forEach((e=>{void 0===u[e]&&(s[e]?.forEach((t=>(0,i.p)("rumresp-"+e,[!1],void 0,t,r))),u[e]=!1)})),(0,o.L)(t,a.D.pageViewEvent))}const u={}},2210:(e,t,r)=>{r.d(t,{X:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1284:(e,t,r)=>{r.d(t,{D:()=>n});const n=(e,t)=>Object.entries(e||{}).map((e=>{let[r,n]=e;return t(r,n)}))},4351:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(2177);const i=()=>{const e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return r}};function o(e){try{return JSON.stringify(e,i())}catch(e){try{n.ee.emit("internal-error",[e])}catch(e){}}}},3960:(e,t,r)=>{r.d(t,{K:()=>a,b:()=>o});var n=r(3239);function i(){return"undefined"==typeof document||"complete"===document.readyState}function o(e,t){if(i())return e();(0,n.bP)("load",e,t)}function a(e){if(i())return e();(0,n.iz)("DOMContentLoaded",e)}},8632:(e,t,r)=>{r.d(t,{EZ:()=>u,Qy:()=>c,ce:()=>o,fP:()=>a,gG:()=>d,mF:()=>s});var n=r(7894),i=r(385);const o={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function a(){return i._A.NREUM||(i._A.NREUM={}),void 0===i._A.newrelic&&(i._A.newrelic=i._A.NREUM),i._A.NREUM}function s(){let e=a();return e.o||(e.o={ST:i._A.setTimeout,SI:i._A.setImmediate,CT:i._A.clearTimeout,XHR:i._A.XMLHttpRequest,REQ:i._A.Request,EV:i._A.Event,PR:i._A.Promise,MO:i._A.MutationObserver,FETCH:i._A.fetch}),e}function c(e,t,r){let i=a();const o=i.initializedAgents||{},s=o[e]||{};return Object.keys(s).length||(s.initializedAt={ms:(0,n.z)(),date:new Date}),i.initializedAgents={...o,[e]:{...s,[r]:t}},i}function u(e,t){a()[e]=t}function d(){return function(){let e=a();const t=e.info||{};e.info={beacon:o.beacon,errorBeacon:o.errorBeacon,...t}}(),function(){let e=a();const t=e.init||{};e.init={...t}}(),s(),function(){let e=a();const t=e.loader_config||{};e.loader_config={...t}}(),a()}},7956:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(3239);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return void(0,n.iz)("visibilitychange",(function(){if(t)return void("hidden"==document.visibilityState&&e());e(document.visibilityState)}),r,i)}},1214:(e,t,r)=>{r.d(t,{em:()=>v,u5:()=>N,QU:()=>S,_L:()=>I,Gm:()=>L,Lg:()=>M,gy:()=>U,BV:()=>Q,Kf:()=>ee});var n=r(2177);const i="nr@original";var o=Object.prototype.hasOwnProperty,a=!1;function s(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,o){n||(n="");var a,s,c,u="-"===n.charAt(0);for(c=0;c 2?n-2:0),o=2;o {r(A[T],e,w),r(E[T],e,w)})),r(l._A,"fetch",y),t.on(y+"end",(function(e,r){var n=this;if(r){var i=r.headers.get("content-length");null!==i&&(n.rxSize=i),t.emit(y+"done",[null,r],n)}else t.emit(y+"done",[e],n)})),t}const O={},j=["pushState","replaceState"];function S(e){const t=function(e){return(e||n.ee).get("history")}(e);return!l.il||O[t.debugId]++||(O[t.debugId]=1,s(t).inPlace(window.history,j,"-")),t}var P=r(3239);const C={},R=["appendChild","insertBefore","replaceChild"];function I(e){const t=function(e){return(e||n.ee).get("jsonp")}(e);if(!l.il||C[t.debugId])return t;C[t.debugId]=!0;var r=s(t),i=/[?&](?:callback|cb)=([^&#]+)/,o=/(.*)\.([^.]+)/,a=/^(\w+)(\.|$)(.*)$/;function c(e,t){var r=e.match(a),n=r[1],i=r[3];return i?c(i,t[n]):t[n]}return r.inPlace(Node.prototype,R,"dom-"),t.on("dom-start",(function(e){!function(e){if(!e||"string"!=typeof e.nodeName||"script"!==e.nodeName.toLowerCase())return;if("function"!=typeof e.addEventListener)return;var n=(a=e.src,s=a.match(i),s?s[1]:null);var a,s;if(!n)return;var u=function(e){var t=e.match(o);if(t&&t.length>=3)return{key:t[2],parent:c(t[1],window)};return{key:e,parent:window}}(n);if("function"!=typeof u.parent[u.key])return;var d={};function f(){t.emit("jsonp-end",[],d),e.removeEventListener("load",f,(0,P.m$)(!1)),e.removeEventListener("error",l,(0,P.m$)(!1))}function l(){t.emit("jsonp-error",[],d),t.emit("jsonp-end",[],d),e.removeEventListener("load",f,(0,P.m$)(!1)),e.removeEventListener("error",l,(0,P.m$)(!1))}r.inPlace(u.parent,[u.key],"cb-",d),e.addEventListener("load",f,(0,P.m$)(!1)),e.addEventListener("error",l,(0,P.m$)(!1)),t.emit("new-jsonp",[e.src],d)}(e[0])})),t}var k=r(5763);const H={};function L(e){const t=function(e){return(e||n.ee).get("mutation")}(e);if(!l.il||H[t.debugId])return t;H[t.debugId]=!0;var r=s(t),i=k.Yu.MO;return i&&(window.MutationObserver=function(e){return this instanceof i?new i(r(e,"fn-")):i.apply(this,arguments)},MutationObserver.prototype=i.prototype),t}const z={};function M(e){const t=function(e){return(e||n.ee).get("promise")}(e);if(z[t.debugId])return t;z[t.debugId]=!0;var r=n.c,o=s(t),a=k.Yu.PR;return a&&function(){function e(r){var n=t.context(),i=o(r,"executor-",n,null,!1);const s=Reflect.construct(a,[i],e);return t.context(s).getCtx=function(){return n},s}l._A.Promise=e,Object.defineProperty(e,"name",{value:"Promise"}),e.toString=function(){return a.toString()},Object.setPrototypeOf(e,a),["all","race"].forEach((function(r){const n=a[r];e[r]=function(e){let i=!1;[...e||[]].forEach((e=>{this.resolve(e).then(a("all"===r),a(!1))}));const o=n.apply(this,arguments);return o;function a(e){return function(){t.emit("propagate",[null,!i],o,!1,!1),i=i||!e}}}})),["resolve","reject"].forEach((function(r){const n=a[r];e[r]=function(e){const r=n.apply(this,arguments);return e!==r&&t.emit("propagate",[e,!0],r,!1,!1),r}})),e.prototype=a.prototype;const n=a.prototype.then;a.prototype.then=function(){var e=this,i=r(e);i.promise=e;for(var a=arguments.length,s=new Array(a),c=0;c e())),t};function m(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function b(){var e=this,t=r.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,r.emit("xhr-resolved",[],e)),i.inPlace(e,f,"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(o,p),p.prototype=o.prototype,i.inPlace(p.prototype,J,"-xhr-",E),r.on("send-xhr-start",(function(e,t){m(e,t),function(e){h.push(e),a&&(y?y.then(A):u?u(A):(w=-w,x.data=w))}(t)})),r.on("open-xhr-start",m),a){var y=c&&c.resolve();if(!u&&!c){var w=1,x=document.createTextNode(w);new a(A).observe(x,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===d||A()}));function A(){for(var e=0;e {r.d(t,{t:()=>n});const n=r(3325).D.ajax},6660:(e,t,r)=>{r.d(t,{A:()=>i,t:()=>n});const n=r(3325).D.jserrors,i="nr@seenError"},3081:(e,t,r)=>{r.d(t,{gF:()=>o,mY:()=>i,t9:()=>n,vz:()=>s,xS:()=>a});const n=r(3325).D.metrics,i="sm",o="cm",a="storeSupportabilityMetrics",s="storeEventMetrics"},4649:(e,t,r)=>{r.d(t,{t:()=>n});const n=r(3325).D.pageAction},7633:(e,t,r)=>{r.d(t,{Dz:()=>i,OJ:()=>a,qw:()=>o,t9:()=>n});const n=r(3325).D.pageViewEvent,i="firstbyte",o="domcontent",a="windowload"},9251:(e,t,r)=>{r.d(t,{t:()=>n});const n=r(3325).D.pageViewTiming},3614:(e,t,r)=>{r.d(t,{BST_RESOURCE:()=>i,END:()=>s,FEATURE_NAME:()=>n,FN_END:()=>u,FN_START:()=>c,PUSH_STATE:()=>d,RESOURCE:()=>o,START:()=>a});const n=r(3325).D.sessionTrace,i="bstResource",o="resource",a="-start",s="-end",c="fn"+a,u="fn"+s,d="pushState"},7836:(e,t,r)=>{r.d(t,{BODY:()=>A,CB_END:()=>E,CB_START:()=>u,END:()=>x,FEATURE_NAME:()=>i,FETCH:()=>_,FETCH_BODY:()=>v,FETCH_DONE:()=>m,FETCH_START:()=>p,FN_END:()=>c,FN_START:()=>s,INTERACTION:()=>l,INTERACTION_API:()=>d,INTERACTION_EVENTS:()=>o,JSONP_END:()=>b,JSONP_NODE:()=>g,JS_TIME:()=>T,MAX_TIMER_BUDGET:()=>a,REMAINING:()=>f,SPA_NODE:()=>h,START:()=>w,originalSetTimeout:()=>y});var n=r(5763);const i=r(3325).D.spa,o=["click","submit","keypress","keydown","keyup","change"],a=999,s="fn-start",c="fn-end",u="cb-start",d="api-ixn-",f="remaining",l="interaction",h="spaNode",g="jsonpNode",p="fetch-start",m="fetch-done",v="fetch-body-",b="jsonp-end",y=n.Yu.ST,w="-start",x="-end",A="-body",E="cb"+x,T="jsTime",_="fetch"},5938:(e,t,r)=>{r.d(t,{W:()=>o});var n=r(5763),i=r(2177);class o{constructor(e,t,r){this.agentIdentifier=e,this.aggregator=t,this.ee=i.ee.get(e,(0,n.OP)(this.agentIdentifier).isolatedBacklog),this.featureName=r,this.blocked=!1}}},9144:(e,t,r)=>{r.d(t,{j:()=>m});var n=r(3325),i=r(5763),o=r(5546),a=r(2177),s=r(7894),c=r(8e3),u=r(3960),d=r(385),f=r(50),l=r(3081),h=r(8632);function g(){const e=(0,h.gG)();["setErrorHandler","finished","addToTrace","inlineHit","addRelease","addPageAction","setCurrentRouteName","setPageViewName","setCustomAttribute","interaction","noticeError","setUserId"].forEach((t=>{e[t]=function(){for(var r=arguments.length,n=new Array(r),i=0;i 1?r-1:0),i=1;i {e.exposed&&e.api[t]&&o.push(e.api[t](...n))})),o.length>1?o:o[0]}(t,...n)}}))}var p=r(2587);function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,{init:b,info:y,loader_config:w,runtime:x={loaderType:m},exposed:A=!0}=t;const E=(0,h.gG)();y||(b=E.init,y=E.info,w=E.loader_config),(0,i.Dg)(e,b||{}),(0,i.GE)(e,w||{}),(0,i.sU)(e,x),y.jsAttributes??={},d.v6&&(y.jsAttributes.isWorker=!0),(0,i.CX)(e,y),g();const T=function(e,t){t||(0,c.R)(e,"api");const h={};var g=a.ee.get(e),p=g.get("tracer"),m="api-",v=m+"ixn-";function b(t,r,n,o){const a=(0,i.C5)(e);return null===r?delete a.jsAttributes[t]:(0,i.CX)(e,{...a,jsAttributes:{...a.jsAttributes,[t]:r}}),x(m,n,!0,o||null===r?"session":void 0)(t,r)}function y(){}["setErrorHandler","finished","addToTrace","inlineHit","addRelease"].forEach((e=>h[e]=x(m,e,!0,"api"))),h.addPageAction=x(m,"addPageAction",!0,n.D.pageAction),h.setCurrentRouteName=x(m,"routeName",!0,n.D.spa),h.setPageViewName=function(t,r){if("string"==typeof t)return"/"!==t.charAt(0)&&(t="/"+t),(0,i.OP)(e).customTransaction=(r||"http://custom.transaction")+t,x(m,"setPageViewName",!0)()},h.setCustomAttribute=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof e){if(["string","number"].includes(typeof t)||null===t)return b(e,t,"setCustomAttribute",r);(0,f.Z)("Failed to execute setCustomAttribute.\nNon-null value must be a string or number type, but a type of was provided."))}else(0,f.Z)("Failed to execute setCustomAttribute.\nName must be a string type, but a type of was provided."))},h.setUserId=function(e){if("string"==typeof e||null===e)return b("enduser.id",e,"setUserId",!0);(0,f.Z)("Failed to execute setUserId.\nNon-null value must be a string type, but a type of was provided."))},h.interaction=function(){return(new y).get()};var w=y.prototype={createTracer:function(e,t){var r={},i=this,a="function"==typeof t;return(0,o.p)(v+"tracer",[(0,s.z)(),e,r],i,n.D.spa,g),function(){if(p.emit((a?"":"no-")+"fn-start",[(0,s.z)(),i,a],r),a)try{return t.apply(this,arguments)}catch(e){throw p.emit("fn-err",[arguments,this,"string"==typeof e?new Error(e):e],r),e}finally{p.emit("fn-end",[(0,s.z)()],r)}}}};function x(e,t,r,i){return function(){return(0,o.p)(l.xS,["API/"+t+"/called"],void 0,n.D.metrics,g),i&&(0,o.p)(e+t,[(0,s.z)(),...arguments],r?null:this,i,g),r?void 0:this}}function A(){r.e(439).then(r.bind(r,7438)).then((t=>{let{setAPI:r}=t;r(e),(0,c.L)(e,"api")})).catch((()=>(0,f.Z)("Downloading runtime APIs failed...")))}return["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((e=>{w[e]=x(v,e,void 0,n.D.spa)})),h.noticeError=function(e,t){"string"==typeof e&&(e=new Error(e)),(0,o.p)(l.xS,["API/noticeError/called"],void 0,n.D.metrics,g),(0,o.p)("err",[e,(0,s.z)(),!1,t],void 0,n.D.jserrors,g)},d.il?(0,u.b)((()=>A()),!0):A(),h}(e,v);return(0,h.Qy)(e,T,"api"),(0,h.Qy)(e,A,"exposed"),(0,h.EZ)("activatedFeatures",p.T),T}},3325:(e,t,r)=>{r.d(t,{D:()=>n,p:()=>i});const n={ajax:"ajax",jserrors:"jserrors",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",spa:"spa"},i={[n.pageViewEvent]:1,[n.pageViewTiming]:2,[n.metrics]:3,[n.jserrors]:4,[n.ajax]:5,[n.sessionTrace]:6,[n.pageAction]:7,[n.spa]:8,[n.sessionReplay]:9}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>(({78:"page_action-aggregate",147:"metrics-aggregate",242:"session-manager",317:"jserrors-aggregate",348:"page_view_timing-aggregate",412:"lazy-feature-loader",439:"async-api",538:"recorder",590:"session_replay-aggregate",675:"compressor",733:"session_trace-aggregate",786:"page_view_event-aggregate",873:"spa-aggregate",898:"ajax-aggregate"}[e]||e)+"."+{78:"ac76d497",147:"3dc53903",148:"1a20d5fe",242:"2a64278a",317:"49e41428",348:"bd6de33a",412:"2f55ce66",439:"30bd804e",538:"1b18459f",590:"cf0efb30",675:"ae9f91a8",733:"83105561",786:"06482edd",860:"03a8b7a5",873:"e6b09d52",898:"998ef92b"}[e]+"-1.236.0.min.js"),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="NRBA:",i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d {s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(l.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=l.bind(null,s.onerror),s.onload=l.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=364,i.p="https://js-agent.newrelic.com/",(()=>{var e={364:0,953:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)c(i)}for(t&&t(r);u {i.r(o);var e=i(3325),t=i(5763);const r=Object.values(e.D);function n(e){const n={};return r.forEach((r=>{n[r]=function(e,r){return!1!==(0,t.Mt)(r,"".concat(e,".enabled"))}(r,e)})),n}var a=i(9144);var s=i(5546),c=i(385),u=i(8e3),d=i(5938),f=i(3960),l=i(50);class h extends d.W{constructor(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];super(e,t,r),this.auto=n,this.abortHandler,this.featAggregate,this.onAggregateImported,n&&(0,u.R)(e,r)}importAggregator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.featAggregate||!this.auto)return;const r=c.il&&!0===(0,t.Mt)(this.agentIdentifier,"privacy.cookies_enabled");let n;this.onAggregateImported=new Promise((e=>{n=e}));const o=async()=>{let t;try{if(r){const{setupAgentSession:e}=await Promise.all([i.e(860),i.e(242)]).then(i.bind(i,3228));t=e(this.agentIdentifier)}}catch(e){(0,l.Z)("A problem occurred when starting up session manager. This page will not start or extend any session.",e)}try{if(!this.shouldImportAgg(this.featureName,t))return void(0,u.L)(this.agentIdentifier,this.featureName);const{lazyFeatureLoader:r}=await i.e(412).then(i.bind(i,8582)),{Aggregate:o}=await r(this.featureName,"aggregate");this.featAggregate=new o(this.agentIdentifier,this.aggregator,e),n(!0)}catch(e){(0,l.Z)("Downloading and initializing ".concat(this.featureName," failed..."),e),this.abortHandler?.(),n(!1)}};c.il?(0,f.b)((()=>o()),!0):o()}shouldImportAgg(r,n){return r!==e.D.sessionReplay||!1!==(0,t.Mt)(this.agentIdentifier,"session_trace.enabled")&&(!!n?.isNew||!!n?.state.sessionReplay)}}var g=i(7633),p=i(7894);class m extends h{static featureName=g.t9;constructor(r,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(super(r,n,g.t9,i),("undefined"==typeof PerformanceNavigationTiming||c.Tt)&&"undefined"!=typeof PerformanceTiming){const n=(0,t.OP)(r);n[g.Dz]=Math.max(Date.now()-n.offset,0),(0,f.K)((()=>n[g.qw]=Math.max((0,p.z)()-n[g.Dz],0))),(0,f.b)((()=>{const t=(0,p.z)();n[g.OJ]=Math.max(t-n[g.Dz],0),(0,s.p)("timing",["load",t],void 0,e.D.pageViewTiming,this.ee)}))}this.importAggregator()}}var v=i(1117),b=i(1284);class y extends v.w{constructor(e){super(e),this.aggregatedData={}}store(e,t,r,n,i){var o=this.getBucket(e,t,r,i);return o.metrics=function(e,t){t||(t={count:0});return t.count+=1,(0,b.D)(e,(function(e,r){t[e]=w(r,t[e])})),t}(n,o.metrics),o}merge(e,t,r,n,i){var o=this.getBucket(e,t,n,i);if(o.metrics){var a=o.metrics;a.count+=r.count,(0,b.D)(r,(function(e,t){if("count"!==e){var n=a[e],i=r[e];i&&!i.c?a[e]=w(i.t,n):a[e]=function(e,t){if(!t)return e;t.c||(t=x(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(i,a[e])}}))}else o.metrics=r}storeMetric(e,t,r,n){var i=this.getBucket(e,t,r);return i.stats=w(n,i.stats),i}getBucket(e,t,r,n){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:r||{}},n&&(i.custom=n)),i}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},r="",n=!1,i=0;i t.max&&(t.max=e),e 2&&void 0!==arguments[2])||arguments[2];super(e,r,j.t,n),c.il&&((0,t.OP)(e).initHidden=Boolean("hidden"===document.visibilityState),(0,N.N)((()=>(0,s.p)("docHidden",[(0,p.z)()],void 0,j.t,this.ee)),!0),(0,O.bP)("pagehide",(()=>(0,s.p)("winPagehide",[(0,p.z)()],void 0,j.t,this.ee))),this.importAggregator())}}var P=i(3081);class C extends h{static featureName=P.t9;constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];super(e,t,P.t9,r),this.importAggregator()}}var R,I=i(2210),k=i(1214),H=i(2177),L={};try{R=localStorage.getItem("__nr_flags").split(","),console&&"function"==typeof console.log&&(L.console=!0,-1!==R.indexOf("dev")&&(L.dev=!0),-1!==R.indexOf("nr_dev")&&(L.nrDev=!0))}catch(e){}function z(e){try{L.console&&z(e)}catch(e){}}L.nrDev&&H.ee.on("internal-error",(function(e){z(e.stack)})),L.dev&&H.ee.on("fn-err",(function(e,t,r){z(r.stack)})),L.dev&&(z("NR AGENT IN DEVELOPMENT MODE"),z("flags: "+(0,b.D)(L,(function(e,t){return e})).join(", ")));var M=i(6660);class B extends h{static featureName=M.t;constructor(r,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];super(r,n,M.t,i),this.skipNext=0;try{this.removeOnAbort=new AbortController}catch(e){}const o=this;o.ee.on("fn-start",(function(e,t,r){o.abortHandler&&(o.skipNext+=1)})),o.ee.on("fn-err",(function(t,r,n){o.abortHandler&&!n[M.A]&&((0,I.X)(n,M.A,(function(){return!0})),this.thrown=!0,(0,s.p)("err",[n,(0,p.z)()],void 0,e.D.jserrors,o.ee))})),o.ee.on("fn-end",(function(){o.abortHandler&&!this.thrown&&o.skipNext>0&&(o.skipNext-=1)})),o.ee.on("internal-error",(function(t){(0,s.p)("ierr",[t,(0,p.z)(),!0],void 0,e.D.jserrors,o.ee)})),this.origOnerror=c._A.onerror,c._A.onerror=this.onerrorHandler.bind(this),c._A.addEventListener("unhandledrejection",(t=>{const r=function(e){let t="Unhandled Promise Rejection: ";if(e instanceof Error)try{return e.message=t+e.message,e}catch(t){return e}if(void 0===e)return new Error(t);try{return new Error(t+(0,D.P)(e))}catch(e){return new Error(t)}}(t.reason);(0,s.p)("err",[r,(0,p.z)(),!1,{unhandledPromiseRejection:1}],void 0,e.D.jserrors,this.ee)}),(0,O.m$)(!1,this.removeOnAbort?.signal)),(0,k.gy)(this.ee),(0,k.BV)(this.ee),(0,k.em)(this.ee),(0,t.OP)(r).xhrWrappable&&(0,k.Kf)(this.ee),this.abortHandler=this.#e,this.importAggregator()}#e(){this.removeOnAbort?.abort(),this.abortHandler=void 0}onerrorHandler(t,r,n,i,o){"function"==typeof this.origOnerror&&this.origOnerror(...arguments);try{this.skipNext?this.skipNext-=1:(0,s.p)("err",[o||new F(t,r,n),(0,p.z)()],void 0,e.D.jserrors,this.ee)}catch(t){try{(0,s.p)("ierr",[t,(0,p.z)(),!0],void 0,e.D.jserrors,this.ee)}catch(e){}}return!1}}function F(e,t,r){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=r}let U=1;const q="nr@id";function G(e){const t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===c._A?0:(0,I.X)(e,q,(function(){return U++}))}function V(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return(0,D.P)(e).length}catch(e){return}}}var X=i(7243);class W{constructor(e){this.agentIdentifier=e,this.generateTracePayload=this.generateTracePayload.bind(this),this.shouldGenerateTrace=this.shouldGenerateTrace.bind(this)}generateTracePayload(e){if(!this.shouldGenerateTrace(e))return null;var r=(0,t.DL)(this.agentIdentifier);if(!r)return null;var n=(r.accountID||"").toString()||null,i=(r.agentID||"").toString()||null,o=(r.trustKey||"").toString()||null;if(!n||!i)return null;var a=(0,_.M)(),s=(0,_.Ht)(),c=Date.now(),u={spanId:a,traceId:s,timestamp:c};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(u.traceContextParentHeader=this.generateTraceContextParentHeader(a,s),u.traceContextStateHeader=this.generateTraceContextStateHeader(a,c,n,i,o)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(u.newrelicHeader=this.generateTraceHeader(a,s,c,n,i,o)),u}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,o){if(!("function"==typeof c._A?.btoa))return null;var a={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return o&&n!==o&&(a.d.tk=o),btoa((0,D.P)(a))}shouldGenerateTrace(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var r=!1,n={};if((0,t.Mt)(this.agentIdentifier,"distributed_tracing")&&(n=(0,t.P_)(this.agentIdentifier).distributed_tracing),e.sameOrigin)r=!0;else if(n.allowed_origins instanceof Array)for(var i=0;i 2&&void 0!==arguments[2])||arguments[2];super(r,n,Z.t,i),(0,t.OP)(r).xhrWrappable&&(this.dt=new W(r),this.handler=(e,t,r,n)=>(0,s.p)(e,t,r,n,this.ee),(0,k.u5)(this.ee),(0,k.Kf)(this.ee),function(r,n,i,o){function a(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=E,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(r){_(t,e)}),(0,O.m$)(!1)),c.IF||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,O.m$)(!1))}function s(e){this.params={method:e[0]},T(this,e[1]),this.metrics={}}function u(e,n){var i=(0,t.DL)(r);i.xpid&&this.sameOrigin&&n.setRequestHeader("X-NewRelic-ID",i.xpid);var a=o.generateTracePayload(this.parsedOrigin);if(a){var s=!1;a.newrelicHeader&&(n.setRequestHeader("newrelic",a.newrelicHeader),s=!0),a.traceContextParentHeader&&(n.setRequestHeader("traceparent",a.traceContextParentHeader),a.traceContextStateHeader&&n.setRequestHeader("tracestate",a.traceContextStateHeader),s=!0),s&&(this.dt=a)}}function d(e,t){var r=this.metrics,i=e[0],o=this;if(r&&i){var a=V(i);a&&(r.txSize=a)}this.startTime=(0,p.z)(),this.listener=function(e){try{"abort"!==e.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==e.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof t.onload)&&"function"==typeof o.end)&&o.end(t)}catch(e){try{n.emit("internal-error",[e])}catch(e){}}};for(var s=0;s 1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&s(e[0].headers,n)&&(this.dt=n);function s(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}}function x(e,t){this.params={},this.metrics={},this.startTime=(0,p.z)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var r,n=this.opts||{},i=this.target;"string"==typeof i?r=i:"object"==typeof i&&i instanceof Y?r=i.url:c._A?.URL&&"object"==typeof i&&i instanceof URL&&(r=i.href),T(this,r);var o=(""+(i&&i instanceof Y&&i.method||n.method||"GET")).toUpperCase();this.params.method=o,this.txSize=V(n.body)||0}function A(t,r){var n;this.endTime=(0,p.z)(),this.params||(this.params={}),this.params.status=r?r.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var o={txSize:this.txSize,rxSize:n,duration:(0,p.z)()-this.startTime};i("xhr",[this.params,o,this.startTime,this.endTime,"fetch"],this,e.D.ajax)}function E(t){var r=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var o=0;o 2&&void 0!==arguments[2])||arguments[2];super(e,t,we.t,r),this.importAggregator()}}new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,_.ky)(16);c._A?(this.agentIdentifier=t,this.sharedAggregator=new y({agentIdentifier:this.agentIdentifier}),this.features={},this.desiredFeatures=new Set(e.features||[]),this.desiredFeatures.add(m),Object.assign(this,(0,a.j)(this.agentIdentifier,e,e.loaderType||"agent")),this.start()):(0,l.Z)("Failed to initial the agent. Could not determine the runtime environment.")}get config(){return{info:(0,t.C5)(this.agentIdentifier),init:(0,t.P_)(this.agentIdentifier),loader_config:(0,t.DL)(this.agentIdentifier),runtime:(0,t.OP)(this.agentIdentifier)}}start(){const t="features";try{const r=n(this.agentIdentifier),i=[...this.desiredFeatures];i.sort(((t,r)=>e.p[t.featureName]-e.p[r.featureName])),i.forEach((t=>{if(r[t.featureName]||t.featureName===e.D.pageViewEvent){const n=function(t){switch(t){case e.D.ajax:return[e.D.jserrors];case e.D.sessionTrace:return[e.D.ajax,e.D.pageViewEvent];case e.D.sessionReplay:return[e.D.sessionTrace];case e.D.pageViewTiming:return[e.D.pageViewEvent];default:return[]}}(t.featureName);n.every((e=>r[e]))||(0,l.Z)("".concat(t.featureName," is enabled but one or more dependent features has been disabled (").concat((0,D.P)(n),"). This may cause unintended consequences or missing data...")),this.features[t.featureName]=new t(this.agentIdentifier,this.sharedAggregator)}})),(0,T.Qy)(this.agentIdentifier,this.features,t)}catch(e){(0,l.Z)("Failed to initialize all enabled instrument classes (agent aborted) -",e);for(const e in this.features)this.features[e].abortHandler?.();const r=(0,T.fP)();return delete r.initializedAgents[this.agentIdentifier]?.api,delete r.initializedAgents[this.agentIdentifier]?.[t],delete this.sharedAggregator,r.ee?.abort(),delete r.ee?.get(this.agentIdentifier),!1}}}({features:[J,m,S,class extends h{static featureName=oe;constructor(t,r){if(super(t,r,oe,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),!c.il)return;const n=this.ee;let i;(0,k.QU)(n),this.eventsEE=(0,k.em)(n),this.eventsEE.on(se,(function(e,t){this.bstStart=(0,p.z)()})),this.eventsEE.on(ae,(function(t,r){(0,s.p)("bst",[t[0],r,this.bstStart,(0,p.z)()],void 0,e.D.sessionTrace,n)})),n.on(ce+ne,(function(e){this.time=(0,p.z)(),this.startPath=location.pathname+location.hash})),n.on(ce+ie,(function(t){(0,s.p)("bstHist",[location.pathname+location.hash,this.startPath,this.time],void 0,e.D.sessionTrace,n)}));try{i=new PerformanceObserver((t=>{const r=t.getEntries();(0,s.p)(te,[r],void 0,e.D.sessionTrace,n)})),i.observe({type:re,buffered:!0})}catch(e){}this.importAggregator({resourceObserver:i})}},C,xe,B,class extends h{static featureName=de;constructor(e,r){if(super(e,r,de,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),!c.il)return;if(!(0,t.OP)(e).xhrWrappable)return;try{this.removeOnAbort=new AbortController}catch(e){}let n,i=0;const o=this.ee.get("tracer"),a=(0,k._L)(this.ee),s=(0,k.Lg)(this.ee),u=(0,k.BV)(this.ee),d=(0,k.Kf)(this.ee),f=this.ee.get("events"),l=(0,k.u5)(this.ee),h=(0,k.QU)(this.ee),g=(0,k.Gm)(this.ee);function m(e,t){h.emit("newURL",[""+window.location,t])}function v(){i++,n=window.location.hash,this[ve]=(0,p.z)()}function b(){i--,window.location.hash!==n&&m(0,!0);var e=(0,p.z)();this[pe]=~~this[pe]+e-this[ve],this[ye]=e}function y(e,t){e.on(t,(function(){this[t]=(0,p.z)()}))}this.ee.on(ve,v),s.on(be,v),a.on(be,v),this.ee.on(ye,b),s.on(ge,b),a.on(ge,b),this.ee.buffer([ve,ye,"xhr-resolved"],this.featureName),f.buffer([ve],this.featureName),u.buffer(["setTimeout"+le,"clearTimeout"+fe,ve],this.featureName),d.buffer([ve,"new-xhr","send-xhr"+fe],this.featureName),l.buffer([me+fe,me+"-done",me+he+fe,me+he+le],this.featureName),h.buffer(["newURL"],this.featureName),g.buffer([ve],this.featureName),s.buffer(["propagate",be,ge,"executor-err","resolve"+fe],this.featureName),o.buffer([ve,"no-"+ve],this.featureName),a.buffer(["new-jsonp","cb-start","jsonp-error","jsonp-end"],this.featureName),y(l,me+fe),y(l,me+"-done"),y(a,"new-jsonp"),y(a,"jsonp-end"),y(a,"cb-start"),h.on("pushState-end",m),h.on("replaceState-end",m),window.addEventListener("hashchange",m,(0,O.m$)(!0,this.removeOnAbort?.signal)),window.addEventListener("load",m,(0,O.m$)(!0,this.removeOnAbort?.signal)),window.addEventListener("popstate",(function(){m(0,i>1)}),(0,O.m$)(!0,this.removeOnAbort?.signal)),this.abortHandler=this.#e,this.importAggregator()}#e(){this.removeOnAbort?.abort(),this.abortHandler=void 0}}],loaderType:"spa"})})(),window.NRBA=o})(); window.jQuery || document.write(' ') CKEDITOR_BASEPATH='https://f1000research.com/js/vendor/ckeditor/' window.reactTheme = 'research'; window.MathJax = { CommonHTML: { linebreaks: { automatic: true } }, 'HTML-CSS': { linebreaks: { automatic: true } }, SVG: { linebreaks: { automatic: true } }, AuthorInit: function() { MathJax.Hub.Register.MessageHook('End Process', function () { let timeout = false; // holder for timeout id const delay = 250; // delay after event is "complete" to run callback const reflowMath = function() { const dispFormulas = document.querySelectorAll('.disp-formula.panel'); if (!dispFormulas) { return; } for (const dispFormula of dispFormulas) { const child = dispFormula.querySelector('.MathJax_Preview').nextSibling.firstChild; const isMultiline = MathJax.Hub.getAllJax(dispFormula)[0].root.isMultiline; if (dispFormula.offsetWidth < child.offsetWidth || isMultiline) { MathJax.Hub.Queue(['Rerender', MathJax.Hub, dispFormula]); } } }; window.addEventListener('resize', function() { clearTimeout(timeout); // clear the timeout timeout = setTimeout(reflowMath, delay); // start timing for event "completion" }); }); }, }; if (window.location.hash == '#_=_'){ window.location = window.location.href.split('#')[0] } !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function() {n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1641728616063202'); fbq('track', "PixelInitialized", {}); (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:2318163,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); search file_upload Submit your research search menu close search Browse Gateways & Collections How to Publish Submit your Research My Submissions Article Guidelines Article Guidelines (New Versions) Open Data, Software and Code Guidelines Open Data and Accessible Source Materials Guidelines (HSS) Open Data, Software and Code Guidelines (PSE) Prepublication Checks Production Process Posters and Slides Guidelines Document Guidelines Article Processing Charges Peer Review Finding Article Reviewers About How it Works For Reviewers Our Advisors Policies Glossary FAQs For Developers Newsroom Contact My Research Submissions Content and Tracking Alerts My Details Sign In file_upload Submit your research { "@context": "https://schema.org", "@type": "ScholarlyArticle", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://f1000research.com/articles/12-429" }, "headline": "A systematic investigation of detectors for low signal-to-noise ratio EMG signals", "datePublished": "2023-04-21T10:51:22", "dateModified": "2024-04-18T15:08:41", "author": [ { "@type": "Person", "name": "Monisha Yuvaraj" }, { "@type": "Person", "name": "Priyanka Raja" }, { "@type": "Person", "name": "Ann David" }, { "@type": "Person", "name": "Etienne Burdet" }, { "@type": "Person", "name": "Varadhan SKM" }, { "@type": "Person", "name": "Sivakumar Balasubramanian" } ], "publisher": { "@type": "Organization", "name": "F1000Research", "logo": { "@type": "ImageObject", "url": "https://f1000research.com/img/AMP/F1000Research_image.png", "height": 480, "width": 60 } }, "image": { "@type": "ImageObject", "url": "https://f1000research.com/img/AMP/F1000Research_image.png", "height": 1200, "width": 150 }, "description": " Background 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’ 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. Methods 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. Results The results indicate that the Modified Hodges detector – a simplified version of the threshold-based Hodges detector introduced in the current study – 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. Conclusions 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. " } { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": "1", "item": { "@id": "https://f1000research.com/", "name": "Home" } }, { "@type": "ListItem", "position": "2", "item": { "@id": "https://f1000research.com/browse/articles", "name": "Browse" } }, { "@type": "ListItem", "position": "3", "item": { "@id": "https://f1000research.com/articles/12-429/v4", "name": "A systematic investigation of detectors for low signal-to-noise ratio..." } } ] } Home Browse A systematic investigation of detectors for low signal-to-noise ratio... ALL Metrics - Views Downloads Get PDF Get XML Cite How to cite this article Yuvaraj M, Raja P, David A et al. A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.12688/f1000research.132382.4 ) NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article. Close Copy Citation Details Export Export Citation Sciwheel EndNote Ref. Manager Bibtex ProCite Sente EXPORT Select a format first Track Share ▬ ✚ Research Article Revised A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] Monisha Yuvaraj https://orcid.org/0009-0009-4055-0975 1,2 , Priyanka Raja 3 , Ann David 4 , Etienne Burdet 5 , Varadhan SKM https://orcid.org/0000-0002-5746-2340 2 , Sivakumar Balasubramanian https://orcid.org/0000-0001-5915-1346 1,6 Monisha Yuvaraj https://orcid.org/0009-0009-4055-0975 1,2 , Priyanka Raja 3 , [...] Ann David 4 , Etienne Burdet 5 , Varadhan SKM https://orcid.org/0000-0002-5746-2340 2 , Sivakumar Balasubramanian https://orcid.org/0000-0001-5915-1346 1,6 PUBLISHED 18 Apr 2024 Author details Author details 1 Department of Bioengineering, Christian Medical College Vellore Association, Vellore, Tamil Nadu, India 2 Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India 3 School of Electrical and Computer Engineering, Purdue University, West Lafayette, Indiana, USA 4 Department of Mechanical Engineering, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India 5 Department of Bioengineering, Imperial College London, London, England, UK 6 School of Health and Rehabilitation Sciences, The University of Queensland, Saint Lucia, Queensland, Australia Monisha Yuvaraj Roles: Investigation, Methodology, Software, Writing – Original Draft Preparation, Writing – Review & Editing Priyanka Raja Roles: Conceptualization Ann David Roles: Conceptualization, Writing – Review & Editing Etienne Burdet Roles: Supervision, Validation, Writing – Review & Editing Varadhan SKM Roles: Supervision, Validation, Writing – Review & Editing Sivakumar Balasubramanian Roles: Conceptualization, Project Administration, Supervision, Validation, Writing – Original Draft Preparation, Writing – Review & Editing OPEN PEER REVIEW DETAILS REVIEWER STATUS Abstract Background 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’ 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. Methods 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. Results The results indicate that the Modified Hodges detector – a simplified version of the threshold-based Hodges detector introduced in the current study – 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. Conclusions 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. READ ALL READ LESS Keywords EMG detectors, Low SNR EMG, Movement intent detection, EMG-BCI, Robot-assisted therapy, Neurorehabilitation Corresponding Author(s) Sivakumar Balasubramanian ( [email protected] ) Close Corresponding author: Sivakumar Balasubramanian Competing interests: No competing interests were disclosed. Grant information: This project was supported through Prime Minister’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. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Copyright: © 2024 Yuvaraj M et al . This is an open access article distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. How to cite: Yuvaraj M, Raja P, David A et al. A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.12688/f1000research.132382.4 ) First published: 21 Apr 2023, 12 :429 ( https://doi.org/10.12688/f1000research.132382.1 ) Latest published: 18 Apr 2024, 12 :429 ( https://doi.org/10.12688/f1000research.132382.4 ) Revised Amendments from Version 3 We have made corrections based on the suggestions from the reviewer comments on our paper. The terminology "no residual movement" is now changed to "no visible residual movement" as suggested. Formal corrections to the references as suggested were also made. We have made corrections based on the suggestions from the reviewer comments on our paper. The terminology "no residual movement" is now changed to "no visible residual movement" as suggested. Formal corrections to the references as suggested were also made. See the authors' detailed response to the review by Werner Wolf See the authors' detailed response to the review by Vincent Crocher READ REVIEWER RESPONSES Introduction Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 1 , 2 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. 3 However, it can be difficult to detect the intention to move in stroke patients with no visible residual movement. Electroencephalogram (EEG) based brain-computer interface (BCI) has been used to detect movement intention to trigger robotic movement assistance. 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. 4 EEG-BCI modalities lack task specificity, 5 and their complexity and time-consuming nature make them less suitable for routine clinical use. 6 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 visible residual movement. 6 The lack of visible movement in severely affected stroke patients can be because of co-contraction, increased joint stiffness, etc. Residual EMG could still be present in this patient group if weak neural commands from the brain can reach the target muscles and elicit muscle activation, which may not be sufficient to cause visible movements. 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. 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 sEMG signals 6 expected from severe patients with no visible residual movements. Numerous sEMG detection algorithms have been proposed for the automatic detection of sEMG onset. 7 – 14 The review article by Staude et al. 7 compared different sEMG detector types to identify the best detectors for detecting sEMG onset. 7 However, this work was done on high SNR (3 dB and 6 dB) 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 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 visible residual movements. 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: • Generate simulated low SNR (0 dB and -3 dB) sEMG data using two phenomenological (Gaussian and Laplacian) models and a biophysical model to evaluate the performance of the different detector types. • Define an appropriate cost function considering the detection accuracy and latency to evaluate the performance of the different detector types. • Compare the performance of the different detector types on simulated sEMG signals from the three signal models for two different SNRs (0 dB and -3 dB) and identify the most appropriate detector type(s). Methods Neurorehabilitation training consists of repeating specific movements of interest punctuated by periods of rest. 15 , 16 A typical training session will involve several “trials” 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’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. The formal definition of the signal processing problem Let x i n , 0 ≤ n < N t be the recorded signal from a target muscle during the i th trial; n is the sampling instant, where n = 0 is the start of a trial, N t is the number of data points from each trial. Let N r and N m be the number of samples in the rest- and move-phases of a trial, respectively, then N t = N r + N m . The time segments 0 ≤ n < N r and N r ≤ n < N t correspond to the rest-phase and move-phase of the trial, respectively. Problem definition: To detect the presence of EMG in real-time in the move-phase of a trial using only the current and past EMG data x k , 0 ≤ k ≤ n from the start of the trial. Let y n represent the binary output of the sEMG detector at the current sampling instant n , (1) y n = D x k k = 0 n p ∈ 0 1 where, D ∙ is the detector function that maps the sEMG signal x k k = 0 n , from the start of a trial to a binary output corresponding to the presence or absence of sEMG at the current time instant n ; p is the set of detector parameters that control the detector’s performance. The function D ∙ 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. 17 , 18 Simulation of surface EMG signal The analysis of the different sEMG detectors was performed using simulated sEMG data. To generate this simulated sEMG, we assume that: • the measurement noise has a fixed variance throughout the experiment, • the muscle is fully relaxed in the rest-phase of any trial, i.e. , there is no sEMG activity from the target muscle during the rest-phase, and • the muscle is activated at a constant level for the entire duration of the move-phase. 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. 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 – two phenomenological (Gaussian and Laplacian) models and one biophysical model. Phenomenological models: Gaussian and Laplacian The phenomenological models were based on the work of De Luca 19 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. 7 , 20 – 23 The exact probability density of the sEMG signal depends on the muscle activation level, with high levels of activation following a Gaussian distribution. 20 , 21 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. 24 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. The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise e n . 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 e n by σ n : (2) e ̂ n = σ n e n , 0 ≤ n ≤ N t (3) σ 2 n = σ 0 2 0 ≤ n < N r σ 0 2 + σ 1 2 N r ≤ n < N t where σ 0 2 and σ 1 2 are the noise and signal variances, respectively. The noise variance is always set to σ 0 2 = 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 e ̂ n is then zero-phase bandpass filtered (8 th order FIR bandpass filter with cut-off frequency 10 Hz and 450 Hz) to have a signal with spectral characteristics like a sEMG signal. (4) x n = h sf n ∗ e ̂ n where, h sf n is the impulse response of the bandpass or shaping filter, and x n 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, (5) SNR = 10 log σ 1 2 σ 0 2 dB . Biophysical model 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. 25 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: (6) sEMG t = ∑ q = 1 Q R q t ∗ D q t ∗ e q t ∗ p t D q t = ∑ m = 1 M q δ t − τ m where Q is the number of motor units in the muscle, R q t is the impulse train signal arriving at the q th motor unit through its corresponding motor neuron, M q is the number of muscle fibers in the q th motor unit, e q t is the approximate electrode transfer function between the q th motor unit and the recording electrodes, and p t 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. 25 with the associated parameters provided in Table S3 of the supplementary material. The EMG simulator developed by Devasahayam 23 was employed in the current work to generate the simulated sEMG signals. 25 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 0 N in the rest-phase (no muscle activation) and 10 N in the move-phase (average firing rate of 16.4 Hz for the muscle). The simulator generated pure muscle activity x pure n 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 x pure n 0 ≤ n ≤ N t visually resembled that of real surface sEMG signals. A zero-mean white Gaussian noise e n of fixed noise variance σ 0 2 was added to x pure n to introduce measurement noise. The noise variance was chosen based on the signal power ( σ 1 2 ) of x pure n in the move-phase to obtain a signal with the desired SNR: (7) σ 0 2 = σ 1 2 SNR Following this, the noisy signal x pure n + e n is bandpass filtered (8 th order non-causal FIR filter) between 10 Hz and 450 Hz cut-off frequencies: (8) x n = h sf n ∗ x pure n + e n where h sf n is the impulse response of the bandpass shaping filter. The characteristics of sEMG generated from these three models are shown in Figure 1 . 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 0 dB (signal power equals noise power) and -3 dB (signal power is half the noise power). Figure 1. Characteristics of the sEMG signals generated from the three models. 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. Detection algorithms The general structure for sEMG detectors proposed by Staude et al. 7 is shown in Figure 2 , which consists of three steps carried out sequentially to map the given real-time sEMG data into a binary output: 1. Signal conditioning 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. 26 , 27 The conditioned signal is represented by (9) x ~ n = S x k k = 0 n , 0 < n < N t where S ∙ represents the mathematical operation performed by the signal conditioning step. 2. Test function computation transforms x ~ n into a scalar variable or feature that can distinguish the presence or absence of sEMG. The test function g n is computed at the current time instant n over a causal window of size W : (10) g n = T x ~ k k = n − W + 1 n , 0 < n < N t Some examples of test functions in the literature include the moving average of x ~ n , χ 2 test variable, 28 likelihood ratio 29 etc. 3. A decision rule is applied on the test function g n by comparing it to a threshold h to identify the presence/absence of an sEMG signal: (11) y n = R g n = 1 g n > h 0 g n ≤ h The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data ( Figure 3 ) to the mean. α is termed as the weight 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. 28 , 30 Figure 2. A general structure for sEMG detectors as proposed by Staude et al. 7 Figure 3. A representative example of a trial from the Gaussian signal model with -3 dB SNR run through the Modified Hodges detector. 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 h , and the remaining rest-phase (red background) is used for computing r FP . The move-phase (green background) is used to compute ∆ t and r FN . 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 Table 1 . Each detector type fits into the general structure shown in Figure 2 . The different parameters associated with these detector types are also provided in Table 2 . A detailed description of the individual detector types and the algorithms for their implementation are provided in the extended data ( Table S1 ). All detector algorithms were obtained from the literature and implemented in MATLAB 33 with appropriate modifications required for real-time detection. Table 1. Description of the structure of the 13 detectors investigated in the current study, along with the different parameters associated with the individual detectors. Detectors Signal Conditioning Test function Parameters Modified Hodges Rectification Low pass filter g n = x ~ n Cut-off frequency of LPF ( f c ) Weight (α) AGLR - G 7 , 31 Adaptive whitening Likelihood Ratio test Window size (W) Weight (α) AGLR - L Adaptive whitening Likelihood Ratio test Window size (W) Weight (α) Fuzzy 11 Entropy - Chebyshev distance Fuzzy function Window size (W) Weight (α) Modified Lidierth Rectification Low pass filter g n = x ~ n Cut-off frequency of LPF ( f c ) Weight (α) Double threshold params: m, T1 Hodges 7 Rectification Low pass filter x ̂ n = MAV x ~ n g n = x ̂ n − μ 0 / σ 0 Cut-off frequency of LPF ( f c ) Window size (W) Weight (α) RMS 6 Band pass filter Root mean square ( x ~ n ) Window size (W) Weights (α) Window shift (p) Temporal threshold (m) Lidierth 7 Rectification y ~ n = MAV ( x ~ n ) g n = y ~ n − μ 0 / σ 0 Window size (W) Weight (α) Double threshold params: m, T1 TKEO 12 High pass filter φ n = x ~ 2 n − 1 − x ~ 2 n − 2 x ~ 2 n g n = MAV φ n Cut-off frequency of HPF ( f c ) Window size (W) Weight (α) Double threshold params: m = 1, T1 Bonato 28 Adaptive whitening g n = x ~ 2 n − x ~ 2 n − 1 / σ 0 2 n ∈ 1 3 5 … Weight (α) Double threshold params: m, T1 Sample 14 Entropy - Chebyshev distance Local tolerance for the distance Window size (W) Weight (α) Tolerance ρ CWT 13 - Correlation of signal with Wavelet representing shape of MUAP Scaling parameter of the mother wavelet (a) Weight (α) SSA 32 - Computation of detection statistics using Euclidean distance. Window size (W) Table 2. Optimal parameters for the different detector types for the different SNRs and signal model. These parameters were identified using procedure described in Algorithm 1 on the 50 trials from the training datasets. Detector type Parameters SNR 0 dB SNR -3 dB Gaussian Laplacian Biophysical Gaussian Laplacian Biophysical Modified Hodges Weight 1 1 1 1 1 1 LPF cut-off (Hz) 7.5 7.5 4.5 6.5 5.5 4.5 AGLR-G Window size (ms) 100 100 150 100 150 150 Weight 2 1 3 1 1 1 AGLR-L Window size (s) 0.1 0.1 0.1 0.1 0.15 0.2 Weight 2 1 1 1 1 1 Fuzzy Entropy Window size (ms) 60 80 100 90 70 100 Weight 1 1 2 1 1 1 Modified Lidierth LPF cut-off 9.5 9.5 9.5 9.5 9.5 7.5 Weight 1 1 1 1 1 1 m 20 25 5 25 55 25 T1 30 30 30 30 60 30 Hodges Window size (ms) 100 100 100 100 100 100 Weight 1 1 1 1 1 1 LPF cut-off (Hz) 9.5 9.5 9.5 9.5 8.5 9.5 RMS Window size (ms) 120 120 120 120 120 120 Weight 1 1 1 1 1 1 Window shift (ms) 40 40 40 40 40 40 Time threshold (ms) 40 40 40 40 40 40 Lidierth Window size (ms) 100 100 100 100 100 100 Weight 1 1 1 1 1 1 m 10 10 5 20 25 25 T1 30 30 30 30 30 30 TKEO HPF cut-off (Hz) 5 5 5 15 20 15 Window size (ms) 100 100 100 100 100 100 Weight 1 1 1 1 1 1 T1 30 30 30 30 30 30 Bonato Weight 1 2 2 2 1 2 m 10 25 20 20 20 25 T1 30 30 30 30 60 30 Sample Entropy Window size (ms) 50 50 50 50 50 50 Weight 1 1 1 1 1 1 Tolerance for distance 0.5 1.5 0.5 0.5 1.5 0.5 CWT Weight 1.1 1.2 1 1.1 1 1.4 SSA Window size (ms) 52 50 50 50 50 50 A measure of detector performance 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’s motivation and sense of agency. These are computed from the output y n of each trial ( Figure 3 ), where the sEMG signal from each trial was analysed in the following three steps: 1. the first three seconds (0–3s) of the rest-phase data is used for estimating the threshold h for detection: (12) h = μ g + α σ g α ∈ 1 5 where μ g and σ g are the mean and standard deviation of the test function in this period. 2. the remaining 5 seconds of the rest-phase are used to estimate the false positive rate r FP . 3. the 5 seconds of the move-phase are used to estimate the false negative rate r FN and the detection latency ∆ t . We defined a performance measure to compute a single number referred to as the cost of detection that considers the false positive rate r FP , the false negative rate r FN , and the detection latency ∆ t . Let c ≜ r FP r FN f ∆ t T be the cost vector associated with the output y n of the detector for a particular trial. We define the cost of detection C as the infinity norm of the cost vector c . (13) C = max r FP , r FN , f ∆ t providing the worst-case performance of the detector on the given trial. The false positive rate r FP is defined as the ratio of the number of 1s in the detector output y n in the rest-phase of a trial, and the false negative rate r FN is defined as the ratio of the number of 0s in y n in the move-phase. (14) 0 1 ∋ r FP ≜ 1 N r ∑ n = 0 N r − 1 y n 0 1 ∋ r FN ≜ 1 N t − N r ∑ n = N r N t − N r − 1 1 − y n From Figure 3 , the detection latency is defined as the time delay from the start of the move-phase to when the detector output goes to 1: (15) ∆ t = T s × min n − N r y n = 1 , N r ≤ n < N t where T s is the sampling period of data in milliseconds, and ∆ t ∈ 0 5000 ms . The cost due to this latency is quantified by the function f ∆ t that maps ∆ t to a real number in the closed interval between 0 and 1: (16) 0 1 ∋ f ∆ t = 0 ∆ t < 0 ms ∆ t 250 0 ms ≤ ∆ t < 250 ms 1 ∆ t ≥ 250 ms 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 r FP , r FN , and f ∆ t , C ∈ 0 1 . A detector with a consistently lower cost of detection C would be considered a better detector. Comparing different detector types A detector’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 (0 dB and -3 dB) 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, i.e. 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 Algorithm 1 (end of the document), while details are provided in the extended data. 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 C val D = C i D i = 1 50 for the detector type D . 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 here . Results The entire analysis – generation of the simulated data, the various detection algorithms, optimization 34 of the detector parameters, and analysis of the results – reported in this paper were implemented in MATLAB R2020 (RRID:SCR_001622) (alternative languages could also recreate this study i.e. 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 Figure 1 . A sample output of the different processing stages of the Modified Hodges detector from a Gaussian sEMG signal trial is shown in Figure 3 . The Modified Hodges detector, filters (2 nd order Butterworth low pass filter) the rectified raw sEMG signal (blue coloured trace in Figure 3 ). This lowpass filtered signal is the test function of the detector (red-coloured trace in Figure 3 ). The threshold h for this trial is shown by the green-coloured horizontal line in Figure 3 . The output of the detector (black coloured trace in Figure 3 ) is 1 whenever the test function crosses the threshold, it is 0 otherwise. The figure also shows the values of r FP , r FN , ∆ t , and f ∆ t for the trial. Optimal parameters for the different detector types 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. 35 This procedure is depicted in Figure 4 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 Algorithm 1 . Figure 4(a) shows the histograms of the cost C for the different parameter combinations, in light blue traces. These histograms are estimated from the cost values C i i = 1 50 obtained from the 50 trials in the training dataset for the different combinations of the detector parameters. The scatter plot of the median c med and inter-quartile range c iqr of these histograms are shown in Figure 4(b) . The choice of the best parameter for the detector was determined to be the one with the least Euclidean norm c med 2 + c iqr 2 which is shown as the red circle in Figure 4(b) ; its corresponding histogram is shown in the thick red trace in Figure 4(a) . Figure 4(c) shows the marginal histograms of the individual contributors r FP r FP f ∆ t to the cost C for the optimal parameter combination for the Modified Hodges detector. The values of the optimal parameters for the different detector types are listed in Table 2 . Figure 4. Outcomes of the parameter optimization process for the Modified Hodges detector as described in Algorithm 1 . (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. How do the different detector types perform on the different signal models and SNRs? The performance of the different “optimal” detector types, i.e. , 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 – Gaussian, Laplacian, and biophysical – are shown in Figure 5(a) , (b) , (c) , respectively; each of these subplots displays the performance for the 0 dB and -3 dB 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 < 0.001) and SNRs (p < 0.001) for all three signal models. The test revealed a significant interaction between the factors for all three models (biophysical: p < 0.0001; Gaussian: p < 0.0001; Laplacian: p < 0.0001). These statistical results confirm the results shown in the boxplots in Figure 5 , where the performance is different among the detector types, with consistently poorer performance for -3 dB compared to 0 dB. The costs for both 0 dB and -3 dB appear to be lower for the biophysical model compared to the Gaussian and Laplacian models. Figure 5. Boxplot of cost of performance of the different detectors in the validation datasets from the different signal models and SNRs. 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 0 dB and -3 dB SNR, respectively. The red dashed line is the acceptable cost C accept = 0.2 . 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 – the Modified Hodges, the approximate generalise likelihood ratio test- Gaussian (AGLR-G), and the approximate generalise likelihood ratio test- Laplacian (AGLR-L) detectors – have almost similar costs for the different signal models and SNRs. The other detector types – Root mean square (RMS), Hodges, Bonato, Lidierth, Modified Lidierth, Teager Kaiser Energy Operator (TKEO), and Fuzzy entropy – 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. Which detector types have an acceptable cost? The choice of appropriate detector type(s) for use in robot-assisted therapy requires the specification of an acceptable cost of detection C accept . To this end, we specify the upper limits for the false positive rate, false negative rate, and the latency of detection as C accept = 0.2 , which corresponds to a detector with the following cost components: (17) r FP ≤ 0.2 r FN ≤ 0.2 ∆ t ≤ 50 ms ⟺ c ∞ = C ≤ C accept = 0.2 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 C accept would be deemed an appropriate detector for use in robot-assisted therapy. To determine the detector types with consistently lower costs than C accept , we computed the proportion ( r accept D ) of the 50 validation trials with acceptable C ≤ C accept for the detector D for the three signal models and two SNRs using (18) r accept D = 1 50 ∑ i = 1 50 I C i D ≤ C accept where C i D is the cost of detection for the i th validation trial for detector D . The value of r accept D for the different detector types is shown in Table 3 , where the cells with r accept D ≥ 0.8 are highlighted. We can observe there that: 1. All detectors perform poorly for the -3 dB Laplacian signal model. The highest value of r accept D 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 r accept D values for the -3 dB Gaussian and biophysical signal models. 2. The Modified Hodges detector is the most consistent detector across the different signal models and SNRs. It has an r accept D > 0.8 for the three signal models at 0 dB and the biophysical model at -3 dB SNR. 3. 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. 4. In terms of the average value of r accept D , across the three signal models (last two columns of Table 3 ), the Modified Hodges detector performs the best for the 0 dB signals, followed by the AGLR-G, AGLR-L, and Fuzzy Entropy detectors which have slightly lower but similar performance. For -3 dB signals, the Modified Hodges, AGLR-G, and AGLR-L detectors result in similar performances. Table 3. 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. The cells with proportions greater or equal to 0.8 are highlighted in gray. Signal Model Gaussian Laplacian Biophysical Average SNR 0 dB -3 dB 0 dB -3 dB 0 dB -3 dB 0 dB -3 dB RMS 0.34 0 0.12 0.02 0.84 0.7 0.43 0.24 Hodges 0.32 0.26 0.28 0.02 0.76 0.5 0.45 0.26 Modified Hodges 0.86 0.4 0.82 0.06 1 0.84 0.89 0.43 AGLR-G 0.82 0.56 0.76 0.16 0.7 0.6 0.76 0.44 AGLR-L 0.8 0.54 0.68 0.22 0.68 0.44 0.72 0.4 Fuzzy Entropy 0.86 0.02 0.54 0 0.94 0.98 0.78 0.33 Sample Entrpoy 0 0 0 0 0 0 0 0 Lidierth 0.18 0.04 0.18 0.02 0.72 0.46 0.36 0.17 Modified Lidierth 0.64 0.08 0.4 0.02 0.96 0.64 0.67 0.25 Bonato 0.54 0.02 0.08 0 0.06 0 0.23 0.01 TKEO 0.36 0.04 0.3 0 0.64 0 0.43 0.01 CWT 0 0 0 0 0 0 0 0 SSA 0 0 0 0 0 0 0 0 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. Discussion Movement intention-triggered robot-assisted therapy is one of the options available for severely impaired patients without visible residual movement. sEMG for movement intent detection is a simpler, more direct and task-specific alternative to EEG-BCI. 6 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 0 dB and -3 dB. These SNRs correspond to feeble sEMG signals compared to regular sEMG recordings from healthy individuals. Using three different signal models – two phenomenological and one biophysical – makes the study results robust to assumptions about the simulated sEMG data. The study by Staude et al. published in 2001 7 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 3 dB to 12 dB in their analysis 7 and found the AGLR statistical detector to be the best in terms of onset detection, while the Hodges detector performed poorly. 7 Although there are some similarities between the current study and those of Staude et al., the two differ in several ways: (a) the current study is focused on real-time detection, while Staude et al. ’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 et al. used only the Gaussian signal model; (d) the primary performance measure in Staude et al. 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 et al. 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 et al., including the detectors published after 2001. 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 et al. 15 ) will be employed to filter out short 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. 36 The choice of amount of filtering of the chosen detector’s output will need to be done through feedback from patients/users of the system. The current study identified that the Modified Hodges detector performed consistently well with cost C ≤ 0.2 for at least 80% of the validation trials, across the different signal models and SNRs, except for the -3 dB Laplacian signal model, where all detectors fail. The modified Hodges detector – a simplified version of the Hodges detector – 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 ( Table S4 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 et al. even with the lower SNRs investigated in this study. The fuzzy entropy detector also performs well, unlike its counterpart – sample entropy. The sample entropy algorithm in this study used the local estimate of the signal’s standard deviation for normalizing the data. Sample entropy’s poor performance with the local estimate of the standard deviation was previously reported by Zhang et al. Sample entropy performs well only with the global estimate of the signal’s standard deviation. 14 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 0 dB and -3 dB 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. 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 6 was not one of the best performers, as seen in Figure 5 and Table 3 . We note that the observed performance was for the RMS detector with optimized parameters ( Table 2 ) 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. 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 ( Figure 1 ); 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. 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 visible 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 (∆ t ≤ 50 ms). The detectors studied in this paper can be used for on-off control of robotic assistance, 37 where once sEMG activity is detected, robotic assistance drives the limb towards the target in a preprogramed fashion. 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 visible residual movements, can finely modulate their sEMG activity and will require a screening procedure to evaluate the ability of the participant to modulate sEMG activity in the target muscle. 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 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’ detection accuracy and latency. The use of three different signal models to investigate the different detectors also adds some robustness to the study’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’t be verified with real data because we will never know the ground truth in the surface EMG from patients with no visible 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 g n from the different detectors under the rest-phase and move-phase. Conclusions This paper systematically investigated existing sEMG detection algorithms on low SNR sEMG signals simulated using three different signal models (two phenomenological – Gaussian, Laplacian models and a biophysical model) at two different SNRs (0 dB and -3 dB). The Modified Hodges detector – a simplified version of the threshold-based Hodges detector, introduced in the current study – 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. Algorithm 1: Procedure for selecting the best parameter combination for the detector type. Let the parameter set for the given detector type be Π = p 1 p 2 … p m . Set the parameter ranges for the individual parameters p i in the parameter set P for the detector type, which results in K different parameters combinations. For j = 1 to K parameter combinations: - Compute the output of the detector y i n i = 1 50 for the chosen combination of parameter values for each of the 50 trials in the training dataset. - Compute the cost C i i = 1 50 for each of the 50 trials. - Compute the median c med and inter-quartile range c iqr of the cost values from the 50 trials. - Compute the overall detector performance for the j th trial as P j = c med 2 + c iqr 2 . Get the best parameter combination for the detector type as the following, k opt = arg min 1 ≤ j ≤ K P j Author contributions 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. Data availability Underlying data Figshare - Dataset: A systematic investigation of detectors for low signal-to-noise ratio EMG signal, https://doi.org/10.6084/m9.figshare.22317658.v2 . 35 The data used in the analysis is saved as csv file which is named based on the SNR and signal generating model as follows: • Example: EMGDataSNR0trail50dur13biophy.csv (EMG data generated using biophysical model having SNR 0). • TestEMGDataSNR0trail50dur13biophy.csv (Test data generated using biophysical model with SNR 0). Extended data Figshare: Supplementary material: A Systematic Investigation of Detectors for Low Signal-to-Noise Ratio EMG Signals.docx, https://doi.org/10.6084/m9.figshare.22232527.v3 . 34 This project contains the following extended data: - Supplementary material.pdf (parameters for optimizing the detector) Data are available under the terms of the Creative Commons Attribution 4.0 International license (CC-BY 4.0). Software availability Source code: https://github.com/1608Moni/EMG_detectors Archived source code: https://doi.org/10.5281/zenodo.7750951 License: MIT Acknowledgements The authors thank Prof. Suresh Devasahayam for providing us with the software he’d developed for simulating the EMG signals. This software was used for generating data for the biophysical EMG model. References 1. Langhorne P, Coupar F, Pollock A: Motor recovery after stroke: a systematic review. Lancet Neurol. 2009; 8 : 741–754. Publisher Full Text 2. Young J, Forster A: Review of stroke rehabilitation. BMJ. 2007; 334 : 86–90. PubMed Abstract | Publisher Full Text | Free Full Text 3. Ethier C, Gallego JA, Miller LE: Brain-controlled neuromuscular stimulation to drive neural plasticity and functional recovery. Curr. Opin. Neurobiol. 2015; 33 : 95–102. PubMed Abstract | Publisher Full Text | Free Full Text 4. Bai O, et al. : Prediction of human voluntary movement before it occurs. Clin. Neurophysiol. 2011; 122 : 364–372. PubMed Abstract | Publisher Full Text | Free Full Text 5. Obermaier B, Neuper C, Guger C, et al. : Information transfer rate in a five-classes brain-computer interface. IEEE Trans. Neural Syst. Rehabil. Eng. 2001; 9 : 283–288. PubMed Abstract | Publisher Full Text 6. Balasubramanian S, Garcia-Cossio E, Birbaumer N, et al. : Is EMG a Viable Alternative to BCI for Detecting Movement Intention in Severe Stroke? I.E.E.E. Trans. Biomed. Eng. 2018; 65 : 2790–2797. 7. Staude G, Flachenecker C, Daumer M, et al. :Onset detection in surface electromyographic signals: a systematic comparison of methods. EURASIP J. Adv. Signal Process. 2001; 2001 : 1–15. 8. Yang D, Zhang H, Gu Y, et al. : Biomedical Signal Processing and Control Accurate EMG onset detection in pathological, weak and noisy myoelectric signals. Biomed Signal Process Control. 2017; 33 : 306–315. Publisher Full Text 9. Tabie M, Kirchner EA: EMG onset detection-comparison of different methods for a movement prediction task based on EMG. International Conference on Bio-inspired Systems and Signal Processing .2013; Vol. 2, pp. 242–247. SciTePress. 10. Vaisman L, Zariffa J, Popovic MR: Application of singular spectrum-based change-point analysis to EMG-onset detection. J. Electromyogr. Kinesiol. 2010; 20 : 750–760. PubMed Abstract | Publisher Full Text 11. Ming L, Xiong C, Zhang Q, et al. : Fuzzy Entropy-Based Muscle Onset Detection Using Electromyography (EMG). Intelligent Robotics and Applications. Xianmin Z, Liu H, Chen Z, et al. editors. Springer International Publishing; 2014; pp. 89–98. 12. Solnik S, Devita P, Rider PM, et al. : Teager-Kaiser Operator improves the accuracy of EMG onset detection independent of signal-to-noise ratio. Acta Bioeng. Biomech. 2008; 10 (2): 65–68. PubMed Abstract 13. Merlo A, Farina D, Merletti R: A fast and reliable technique for muscle activity detection from surface EMG signals. I.E.E.E. Trans. Biomed. Eng. 2003; 50 : 316–323. Publisher Full Text 14. Zhang X, Zhou P: Sample entropy analysis of surface EMG for improved muscle activity onset detection against spurious background spikes. J. Electromyogr. Kinesiol. 2012; 22 (6): 901–907. PubMed Abstract | Publisher Full Text | Free Full Text 15. Ramos-Murguialday A, et al. : Brain–machine interface in chronic stroke rehabilitation: A controlled study. Ann. Neurol. 2013; 74 : 100–108. PubMed Abstract | Publisher Full Text | Free Full Text 16. Lan Y, Yao J, Dewald JPA: The impact of shoulder abduction loading on EMG-based intention detection of hand opening and closing after stroke. 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society. 2011; pp. 4136–4139. Publisher Full Text 17. Irastorza-Landa N, et al. : EMG Discrete Classification Towards a Myoelectric Control of a Robotic Exoskeleton in Motor Rehabilitation. Biosystems and Biorobotics. 2017; 15 : 159–163. Publisher Full Text 18. Hu XL, Tong KY, Song R, et al. : A comparison between electromyography-driven robot and passive motion device on wrist rehabilitation for chronic stroke. Neurorehabil. Neural Repair. 2009; 23 : 837–846. PubMed Abstract | Publisher Full Text 19. De Luca CJ: The Use of Surface Electromyography in Biomechanics. J. Appl. Biomech. 1997; 13 : 135–163. Publisher Full Text 20. Bilodeau M, Cincera M, Arsenault AB, et al. : Normality and stationarity of EMG signals of elbow flexor muscles during ramp and step isometric contractions. J. Electromyogr. Kinesiol. 1997; 7 : 87–96. PubMed Abstract | Publisher Full Text 21. Parker PA, Stuller JA, Scott RN: Signal processing for the multistate myoelectric channel. Proc. IEEE. 1977; 65 : 662–674. Publisher Full Text 22. Merletti R, Lo Conte LR: Advances in processing of surface myoelectric signals: Part 1. Med. Biol. Eng. Comput. 1995; 33 : 362–372. PubMed Abstract | Publisher Full Text 23. Shwedyk E, Balasubramanian R, Scott RN: A Nonstationary Model for the Electromyogram. I.E.E.E. Trans. Biomed. Eng. 1977; BME-24 : 417–424. Publisher Full Text 24. Clancy EA, Hogan N: Probability density of the surface electromyogram and its relation to amplitude detectors. I.E.E.E. Trans. Biomed. Eng. 1999; 46 : 730–739. Publisher Full Text 25. Devasahayam SR: Signals and systems in biomedical engineering: physiological systems modeling and signal processing.468. 26. Clancy EA: Electromyogram amplitude estimation with adaptive smoothing window length. I.E.E.E. Trans. Biomed. Eng. 1999; 46 : 717–729. Publisher Full Text 27. Clancy EA, Hogan N: Single site electromyograph amplitude estimation. I.E.E.E. Trans. Biomed. Eng. 1994; 41 : 159–167. Publisher Full Text 28. Bonato P, D’Alessio T, Knaflitz M: A statistical method for the measurement of muscle activation intervals from surface myoelectric signal during gait. I.E.E.E. Trans. Biomed. Eng. 1998; 45 : 287–299. Publisher Full Text 29. Staude G, Wolf W, Appel U: Automatic event detection in surface EMG of rhythmically activated muscles. Proceedings of 17th International Conference of the Engineering in Medicine and Biology Society. Vol. 2 . 1995; pp. 1351–1352. 30. Lidierth M: A computer based method for automated measurement of the periods of muscular activity from an EMG and its application to locomotor EMGs. Electroencephalogr. Clin. Neurophysiol. 1986; 64 : 378–380. PubMed Abstract | Publisher Full Text 31. Staude G, Wolf W, Appel U: Automatic event detection in surface EMG of rhythmically activated muscles. Annual International Conference of the IEEE Engineering in Medicine and Biology - Proceedings. Vol. 17 . 1995; pp. 1351–1352. 32. Vaisman L, Zariffa J, Popovic MR: Application of singular spectrum-based change-point analysis to EMG-onset detection. J. Electromyogr. Kinesiol. 2010; 20 : 750–760. PubMed Abstract | Publisher Full Text 33. Yuvaraj M: 1608Moni/EMG_detectors: A systematic investigation of detectors for low sig-nal-to-noise ratio EMG signals (v1.0.0). [Code]. Zenodo. 2023. Publisher Full Text 34. Yuvaraj M, Raja P, David A, et al. : Supplementary material: A Systematic Investigation of Detectors for Low Signal-to-Noise Ratio EMG Signals.docx. [Data]. figshare. Figure. 2023. Publisher Full Text 35. Yuvaraj M, Raja P, David A, et al. : Dataset: A systematic investigation of detectors for low signal-to-noise ratio EMG signals. [Data]. figshare. 2023. Publisher Full Text 36. Wen W: Does delay in feedback diminish sense of agency? A review. Conscious Cogn. 2019; 73 : 102759. PubMed Abstract | Publisher Full Text 37. Hu XL, et al. : The effects of post-stroke upper-limb training with an electromyography (EMG)-driven hand robot. J. Electromyogr. Kinesiol. 2013; 23 : 1065–1074. PubMed Abstract | Publisher Full Text Comments on this article Comments (0) Version 4 VERSION 4 PUBLISHED 21 Apr 2023 ADD YOUR COMMENT Comment Author details Author details 1 Department of Bioengineering, Christian Medical College Vellore Association, Vellore, Tamil Nadu, India 2 Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India 3 School of Electrical and Computer Engineering, Purdue University, West Lafayette, Indiana, USA 4 Department of Mechanical Engineering, Indian Institute of Technology Madras, Chennai, Tamil Nadu, India 5 Department of Bioengineering, Imperial College London, London, England, UK 6 School of Health and Rehabilitation Sciences, The University of Queensland, Saint Lucia, Queensland, Australia Monisha Yuvaraj Roles: Investigation, Methodology, Software, Writing – Original Draft Preparation, Writing – Review & Editing Priyanka Raja Roles: Conceptualization Ann David Roles: Conceptualization, Writing – Review & Editing Etienne Burdet Roles: Supervision, Validation, Writing – Review & Editing Varadhan SKM Roles: Supervision, Validation, Writing – Review & Editing Sivakumar Balasubramanian Roles: Conceptualization, Project Administration, Supervision, Validation, Writing – Original Draft Preparation, Writing – Review & Editing Competing interests No competing interests were disclosed. Grant information This project was supported through Prime Minister’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. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Article Versions (4) version 4 Revised Published: 18 Apr 2024, 12:429 https://doi.org/10.12688/f1000research.132382.4 version 3 Revised Published: 25 Mar 2024, 12:429 https://doi.org/10.12688/f1000research.132382.3 version 2 Revised Published: 30 Jan 2024, 12:429 https://doi.org/10.12688/f1000research.132382.2 version 1 Published: 21 Apr 2023, 12:429 https://doi.org/10.12688/f1000research.132382.1 Copyright © 2024 Yuvaraj M et al . This is an open access article distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Download Export To Sciwheel Bibtex EndNote ProCite Ref. Manager (RIS) Sente metrics Views Downloads F1000Research - - PubMed Central info_outline Data from PMC are received and updated monthly. - - Citations open_in_new 0 open_in_new 0 open_in_new SEE MORE DETAILS CITE how to cite this article Yuvaraj M, Raja P, David A et al. A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.12688/f1000research.132382.4 ) NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS track receive updates on this article Track an article to receive email alerts on any updates to this article. TRACK THIS ARTICLE Share Open Peer Review Current Reviewer Status: ? Key to Reviewer Statuses VIEW HIDE Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions Version 3 VERSION 3 PUBLISHED 25 Mar 2024 Revised Views 0 Cite How to cite this report: Wolf W. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.164086.r258897 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v3#referee-response-258897 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 05 Apr 2024 Werner Wolf , Universitat der Bundeswehr Munchen, Neubiberg, Bavaria, Germany Approved VIEWS 0 https://doi.org/10.5256/f1000research.164086.r258897 The manuscript is now in shape, even some points (e.g. the cost definition) can be discussed critically. One point can be solved easily: it sounds really inconsistant to measure a sEMG at no residual movement. EMG activity shows muscle ... Continue reading READ ALL The manuscript is now in shape, even some points (e.g. the cost definition) can be discussed critically. One point can be solved easily: it sounds really inconsistant to measure a sEMG at no residual movement. EMG activity shows muscle activity and muscle activity means force at a joint. No residual movement at EMG activity can be caused by - resolution of the movement measurement is limited - friction of the joint to high or isometric condition - cocontraction (which is probably in stroke) The authors should mention this point shortly and they should use the term "no visible movement" as they do on page 15 para 4, line 3. Use this formulation always. Maybe, references 7, 9 and 33 need formal corrections. Competing Interests: No competing interests were disclosed. Reviewer Expertise: Biosignal processing, human motor control 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. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Wolf W. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.164086.r258897 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v3#referee-response-258897 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Respond or Comment COMMENT ON THIS REPORT Version 2 VERSION 2 PUBLISHED 30 Jan 2024 Revised Views 0 Cite How to cite this report: Crocher V. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.161421.r242339 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v2#referee-response-242339 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 16 Feb 2024 Vincent Crocher , The University of Melbourne, Melbourne, Victoria, Australia Approved VIEWS 0 https://doi.org/10.5256/f1000research.161421.r242339 I have ... Continue reading READ ALL I have no more comments. Competing Interests: No competing interests were disclosed. Reviewer Expertise: Rehabilitation robotics 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. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Crocher V. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.161421.r242339 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v2#referee-response-242339 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Respond or Comment COMMENT ON THIS REPORT Version 1 VERSION 1 PUBLISHED 21 Apr 2023 Views 0 Cite How to cite this report: Wolf W. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r223113 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-223113 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 19 Feb 2024 Werner Wolf , Universitat der Bundeswehr Munchen, Neubiberg, Bavaria, Germany Approved with Reservations VIEWS 0 https://doi.org/10.5256/f1000research.145296.r223113 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, ... Continue reading READ ALL 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting and they should be provided in a compressed form. Is the work clearly and accurately presented and does it cite the current literature? Partly Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Partly Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Yes Competing Interests: No competing interests were disclosed. Reviewer Expertise: Biosignal Processing - human motor control 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. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Wolf W. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r223113 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-223113 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Author Response 13 Apr 2024 Monisha Yuvaraj , Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 13 Apr 2024 Author Response 1. Summary 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 ... Continue reading 1. Summary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’s comments are in Italics which is followed by our response. 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. Response: 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 “cost” 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. Original text : Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 1 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 2 , 3 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 4 , 5 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’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. 6 Positive therapeutic effects have been observed only when patients actively engage in therapy. 7 – 10 Jo et al. 11 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’s intention to move is an effective way to guide neuroplasticity. Reduced text in the manuscript: Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 2 , 3 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. 12 It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting, and they should be provided in a compressed form. Response: The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG. 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 – a muscle the patient is trying to activate while attempting a movement. 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. 1. Summary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’s comments are in Italics which is followed by our response. 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. Response: 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 “cost” 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. Original text : Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 1 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 2 , 3 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 4 , 5 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’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. 6 Positive therapeutic effects have been observed only when patients actively engage in therapy. 7 – 10 Jo et al. 11 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’s intention to move is an effective way to guide neuroplasticity. Reduced text in the manuscript: Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 2 , 3 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. 12 It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting, and they should be provided in a compressed form. Response: The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG. 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 – a muscle the patient is trying to activate while attempting a movement. 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. Competing Interests: No competing interests were disclosed. Close Report a concern Respond or Comment COMMENTS ON THIS REPORT Author Response 13 Apr 2024 Monisha Yuvaraj , Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 13 Apr 2024 Author Response 1. Summary 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 ... Continue reading 1. Summary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’s comments are in Italics which is followed by our response. 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. Response: 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 “cost” 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. Original text : Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 1 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 2 , 3 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 4 , 5 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’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. 6 Positive therapeutic effects have been observed only when patients actively engage in therapy. 7 – 10 Jo et al. 11 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’s intention to move is an effective way to guide neuroplasticity. Reduced text in the manuscript: Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 2 , 3 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. 12 It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting, and they should be provided in a compressed form. Response: The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG. 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 – a muscle the patient is trying to activate while attempting a movement. 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. 1. Summary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’s comments are in Italics which is followed by our response. 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. Response: 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 “cost” 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. Original text : Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 1 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 2 , 3 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 4 , 5 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’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. 6 Positive therapeutic effects have been observed only when patients actively engage in therapy. 7 – 10 Jo et al. 11 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’s intention to move is an effective way to guide neuroplasticity. Reduced text in the manuscript: Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 2 , 3 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. 12 It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting, and they should be provided in a compressed form. Response: The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG. 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 – a muscle the patient is trying to activate while attempting a movement. 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. Competing Interests: No competing interests were disclosed. Close Report a concern COMMENT ON THIS REPORT Views 0 Cite How to cite this report: Crocher V. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r219586 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-219586 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 06 Nov 2023 Vincent Crocher , The University of Melbourne, Melbourne, Victoria, Australia Approved with Reservations VIEWS 0 https://doi.org/10.5256/f1000research.145296.r219586 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 ... Continue reading READ ALL 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. Specific comments: Introduction: 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). "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. Methods: 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. 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? In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. 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? 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. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Does authors have clues on how that might differently affect the different detectors? 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. 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 <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? Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Is the work clearly and accurately presented and does it cite the current literature? Yes Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Partly Competing Interests: No competing interests were disclosed. Reviewer Expertise: Rehabilitation robotics 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. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Crocher V. Reviewer Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r219586 ) The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-219586 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Author Response 30 Jan 2024 Monisha Yuvaraj , Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 30 Jan 2024 Author Response 1. S ummary 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 ... Continue reading 1. S ummary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’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 followed by the modified text. Please find the response as a PDF file here . 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. Introduction: 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). Response: We have shortened this segment in the introduction section as suggested. Original text : They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 20 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 12 , 21 EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 21 Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 22 Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 23 Change in the manuscript: 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]. "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. Response: We have moved the sentence to the introduction and used “sEMG” throughout the paper. Change in the manuscript: 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. Methods: 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. Response: We have moved the paragraph to the phenomenological models’ section as suggested. Change in the manuscript: “ 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 – 41… The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise …” 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 Response: 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. In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. Response: 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 α ∈{1,2,3,4,5}. However, only one value by detector is used for computing the threshold. “Weights” in Table 1 has been modified as “Weight”. 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? Response: 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. 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. Response: Thank you, we have followed this suggestion as follows: Change in the manuscript: The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data (Figure 3) to the mean. α is termed as weight for threshold in this paper. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. Response: The response is with the understanding that the reviewer's comment is as follows: “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.” We performed a correlation analysis between false negative rate and the latency, which showed that: Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1). No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2). 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. 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. 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. The figures can be found here 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. Response: Firstly, we have modified the term EMG-triggered robot-assisted therapy 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 “sEMG-triggered” to “sEMG-driven”. Original text : 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. Change in the manuscript: 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. Response: 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’s motivation and sense of agency. 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. 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. We have now included a short paragraph explaining why the three terms are included in the cost function: Original text : The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. Change in the manuscript: 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’s motivation and sense of agency. Response: 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. 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’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. We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector. Change in the manuscript: 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. 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 believe that choosing a sensitive detector 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. 1 ) 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 2 . The choice of amount of filtering of the chose detector’s output will need to be done through feedback from patients/users of the system. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors? Response: Although the EMG acquisition happens at faster rate when compared to the robotic controller , 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. 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. Response: 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. 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 <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? Response: From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency < 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. 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. Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Response: These have been corrected in the manuscript. 1. S ummary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’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 followed by the modified text. Please find the response as a PDF file here . 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. Introduction: 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). Response: We have shortened this segment in the introduction section as suggested. Original text : They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 20 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 12 , 21 EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 21 Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 22 Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 23 Change in the manuscript: 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]. "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. Response: We have moved the sentence to the introduction and used “sEMG” throughout the paper. Change in the manuscript: 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. Methods: 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. Response: We have moved the paragraph to the phenomenological models’ section as suggested. Change in the manuscript: “ 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 – 41… The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise …” 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 Response: 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. In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. Response: 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 α ∈{1,2,3,4,5}. However, only one value by detector is used for computing the threshold. “Weights” in Table 1 has been modified as “Weight”. 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? Response: 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. 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. Response: Thank you, we have followed this suggestion as follows: Change in the manuscript: The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data (Figure 3) to the mean. α is termed as weight for threshold in this paper. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. Response: The response is with the understanding that the reviewer's comment is as follows: “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.” We performed a correlation analysis between false negative rate and the latency, which showed that: Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1). No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2). 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. 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. 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. The figures can be found here 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. Response: Firstly, we have modified the term EMG-triggered robot-assisted therapy 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 “sEMG-triggered” to “sEMG-driven”. Original text : 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. Change in the manuscript: 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. Response: 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’s motivation and sense of agency. 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. 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. We have now included a short paragraph explaining why the three terms are included in the cost function: Original text : The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. Change in the manuscript: 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’s motivation and sense of agency. Response: 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. 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’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. We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector. Change in the manuscript: 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. 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 believe that choosing a sensitive detector 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. 1 ) 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 2 . The choice of amount of filtering of the chose detector’s output will need to be done through feedback from patients/users of the system. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors? Response: Although the EMG acquisition happens at faster rate when compared to the robotic controller , 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. 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. Response: 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. 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 <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? Response: From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency < 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. 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. Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Response: These have been corrected in the manuscript. Competing Interests: No competing interests were disclosed. Close Report a concern Respond or Comment COMMENTS ON THIS REPORT Author Response 30 Jan 2024 Monisha Yuvaraj , Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 30 Jan 2024 Author Response 1. S ummary 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 ... Continue reading 1. S ummary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’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 followed by the modified text. Please find the response as a PDF file here . 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. Introduction: 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). Response: We have shortened this segment in the introduction section as suggested. Original text : They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 20 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 12 , 21 EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 21 Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 22 Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 23 Change in the manuscript: 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]. "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. Response: We have moved the sentence to the introduction and used “sEMG” throughout the paper. Change in the manuscript: 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. Methods: 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. Response: We have moved the paragraph to the phenomenological models’ section as suggested. Change in the manuscript: “ 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 – 41… The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise …” 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 Response: 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. In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. Response: 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 α ∈{1,2,3,4,5}. However, only one value by detector is used for computing the threshold. “Weights” in Table 1 has been modified as “Weight”. 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? Response: 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. 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. Response: Thank you, we have followed this suggestion as follows: Change in the manuscript: The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data (Figure 3) to the mean. α is termed as weight for threshold in this paper. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. Response: The response is with the understanding that the reviewer's comment is as follows: “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.” We performed a correlation analysis between false negative rate and the latency, which showed that: Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1). No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2). 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. 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. 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. The figures can be found here 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. Response: Firstly, we have modified the term EMG-triggered robot-assisted therapy 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 “sEMG-triggered” to “sEMG-driven”. Original text : 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. Change in the manuscript: 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. Response: 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’s motivation and sense of agency. 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. 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. We have now included a short paragraph explaining why the three terms are included in the cost function: Original text : The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. Change in the manuscript: 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’s motivation and sense of agency. Response: 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. 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’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. We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector. Change in the manuscript: 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. 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 believe that choosing a sensitive detector 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. 1 ) 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 2 . The choice of amount of filtering of the chose detector’s output will need to be done through feedback from patients/users of the system. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors? Response: Although the EMG acquisition happens at faster rate when compared to the robotic controller , 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. 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. Response: 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. 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 <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? Response: From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency < 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. 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. Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Response: These have been corrected in the manuscript. 1. S ummary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’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 followed by the modified text. Please find the response as a PDF file here . 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. Introduction: 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). Response: We have shortened this segment in the introduction section as suggested. Original text : They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 20 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 12 , 21 EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 21 Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 22 Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 23 Change in the manuscript: 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]. "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. Response: We have moved the sentence to the introduction and used “sEMG” throughout the paper. Change in the manuscript: 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. Methods: 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. Response: We have moved the paragraph to the phenomenological models’ section as suggested. Change in the manuscript: “ 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 – 41… The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise …” 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 Response: 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. In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. Response: 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 α ∈{1,2,3,4,5}. However, only one value by detector is used for computing the threshold. “Weights” in Table 1 has been modified as “Weight”. 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? Response: 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. 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. Response: Thank you, we have followed this suggestion as follows: Change in the manuscript: The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data (Figure 3) to the mean. α is termed as weight for threshold in this paper. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. Response: The response is with the understanding that the reviewer's comment is as follows: “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.” We performed a correlation analysis between false negative rate and the latency, which showed that: Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1). No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2). 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. 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. 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. The figures can be found here 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. Response: Firstly, we have modified the term EMG-triggered robot-assisted therapy 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 “sEMG-triggered” to “sEMG-driven”. Original text : 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. Change in the manuscript: 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. Response: 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’s motivation and sense of agency. 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. 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. We have now included a short paragraph explaining why the three terms are included in the cost function: Original text : The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. Change in the manuscript: 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’s motivation and sense of agency. Response: 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. 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’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. We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector. Change in the manuscript: 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. 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 believe that choosing a sensitive detector 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. 1 ) 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 2 . The choice of amount of filtering of the chose detector’s output will need to be done through feedback from patients/users of the system. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors? Response: Although the EMG acquisition happens at faster rate when compared to the robotic controller , 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. 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. Response: 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. 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 <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? Response: From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency < 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. 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. Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Response: These have been corrected in the manuscript. Competing Interests: No competing interests were disclosed. Close Report a concern COMMENT ON THIS REPORT Comments on this article Comments (0) Version 4 VERSION 4 PUBLISHED 21 Apr 2023 ADD YOUR COMMENT Comment keyboard_arrow_left keyboard_arrow_right Open Peer Review Reviewer Status info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions Reviewer Reports Invited Reviewers 1 2 Version 4 (revision) 18 Apr 24 Version 3 (revision) 25 Mar 24 read Version 2 (revision) 30 Jan 24 read Version 1 21 Apr 23 read read Vincent Crocher , The University of Melbourne, Melbourne, Australia Werner Wolf , Universitat der Bundeswehr Munchen, Neubiberg, Germany Comments on this article All Comments (0) Add a comment Sign up for content alerts Sign Up You are now signed up to receive this alert Browse by related subjects keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2024 Wolf W. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 05 Apr 2024 | for Version 3 Werner Wolf , Universitat der Bundeswehr Munchen, Neubiberg, Bavaria, Germany 0 Views copyright © 2024 Wolf W. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (0) Approved info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions The manuscript is now in shape, even some points (e.g. the cost definition) can be discussed critically. One point can be solved easily: it sounds really inconsistant to measure a sEMG at no residual movement. EMG activity shows muscle activity and muscle activity means force at a joint. No residual movement at EMG activity can be caused by - resolution of the movement measurement is limited - friction of the joint to high or isometric condition - cocontraction (which is probably in stroke) The authors should mention this point shortly and they should use the term "no visible movement" as they do on page 15 para 4, line 3. Use this formulation always. Maybe, references 7, 9 and 33 need formal corrections. Competing Interests No competing interests were disclosed. Reviewer Expertise Biosignal processing, human motor control 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. reply Respond to this report Responses (0) Wolf W. Peer Review Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.164086.r258897) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/12-429/v3#referee-response-258897 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2024 Crocher V. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 16 Feb 2024 | for Version 2 Vincent Crocher , The University of Melbourne, Melbourne, Victoria, Australia 0 Views copyright © 2024 Crocher V. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (0) Approved info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions I have no more comments. Competing Interests No competing interests were disclosed. Reviewer Expertise Rehabilitation robotics 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. reply Respond to this report Responses (0) Crocher V. Peer Review Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.161421.r242339) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/12-429/v2#referee-response-242339 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2024 Wolf W. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 19 Feb 2024 | for Version 1 Werner Wolf , Universitat der Bundeswehr Munchen, Neubiberg, Bavaria, Germany 0 Views copyright © 2024 Wolf W. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (1) Approved With Reservations info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting and they should be provided in a compressed form. Is the work clearly and accurately presented and does it cite the current literature? Partly Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Partly Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Yes Competing Interests No competing interests were disclosed. Reviewer Expertise Biosignal Processing - human motor control 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. reply Respond to this report Responses (1) Author Response 13 Apr 2024 Monisha Yuvaraj, Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 1. Summary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’s comments are in Italics which is followed by our response. 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 is only specificly addressed by the inclusion of the biophysical signal model. And the topic „robots in rehalitation“ is a separate field not really related main issue of this manuscrpt. Thus, the total rehabilitation part – not only the BCI passages - can be reduced – as Vincent already states – to a single sentence and a removal of about 25 references. Response: 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 “cost” 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. Original text : Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. 1 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 2 , 3 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 4 , 5 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’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. 6 Positive therapeutic effects have been observed only when patients actively engage in therapy. 7 – 10 Jo et al. 11 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’s intention to move is an effective way to guide neuroplasticity. Reduced text in the manuscript: Active patient participation during movement therapy is an essential ingredient for sensorimotor recovery after a stroke. About 30% of stroke survivors are severely impaired 2 , 3 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. 12 It sounds also contradicting to refer to the case „without residual movement“ 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. – as mentioned above. Summarizing: The main results are interesting, and they should be provided in a compressed form. Response: The study by Balasubramanian et al [1], about 70% of severely impaired stroke patients without residual movement in fingers and wrist had residual EMG. 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 – a muscle the patient is trying to activate while attempting a movement. 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. View more View less Competing Interests No competing interests were disclosed. reply Respond Report a concern Wolf W. Peer Review Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r223113) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-223113 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2023 Crocher V. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 06 Nov 2023 | for Version 1 Vincent Crocher , The University of Melbourne, Melbourne, Victoria, Australia 0 Views copyright © 2023 Crocher V. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (1) Approved With Reservations info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions 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. Specific comments: Introduction: 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). "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. Methods: 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. 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? In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. 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? 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. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Does authors have clues on how that might differently affect the different detectors? 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. 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 <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? Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Is the work clearly and accurately presented and does it cite the current literature? Yes Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Partly Competing Interests No competing interests were disclosed. Reviewer Expertise Rehabilitation robotics 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. reply Respond to this report Responses (1) Author Response 30 Jan 2024 Monisha Yuvaraj, Department of Applied Mechanics, Indian Institute of Technology Madras, Chennai, India 1. S ummary 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. 2. Point-by-point response to Comments and Suggestions for Authors In the following, the reviewer’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 followed by the modified text. Please find the response as a PDF file here . 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. Introduction: 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). Response: We have shortened this segment in the introduction section as suggested. Original text : They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. 20 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 12 , 21 EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. 21 Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. 22 Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. 23 Change in the manuscript: 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]. "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. Response: We have moved the sentence to the introduction and used “sEMG” throughout the paper. Change in the manuscript: 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. Methods: 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. Response: We have moved the paragraph to the phenomenological models’ section as suggested. Change in the manuscript: “ 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 – 41… The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise …” 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 Response: 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. In Table 1, authors refer to 'Weights' for \alpha whereas it appears that there is only a single value for each detector. Please clarify. Response: 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 α ∈{1,2,3,4,5}. However, only one value by detector is used for computing the threshold. “Weights” in Table 1 has been modified as “Weight”. 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? Response: 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. 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. Response: Thank you, we have followed this suggestion as follows: Change in the manuscript: The threshold h is adaptive and is calculated for each trial by adding α times the standard deviation of first 3 seconds data (Figure 3) to the mean. α is termed as weight for threshold in this paper. Methods: On the cost definition: According to Eq. 16, f(deltat) is 0 (ideal) when the detection happens before the actual onset: \deltat<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. Response: The response is with the understanding that the reviewer's comment is as follows: “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.” We performed a correlation analysis between false negative rate and the latency, which showed that: Moderate positive correlation between false negative rate and latency with 0 dB SNR signal of Gaussian and biophysical model (Figure 1). No correlation between FNR and latency with -3 dB SNR across all three models (Figure 2). 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. 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. 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. The figures can be found here 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. Response: Firstly, we have modified the term EMG-triggered robot-assisted therapy 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 “sEMG-triggered” to “sEMG-driven”. Original text : 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. Change in the manuscript: 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. Response: 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’s motivation and sense of agency. 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. 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. We have now included a short paragraph explaining why the three terms are included in the cost function: Original text : The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. Change in the manuscript: 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’s motivation and sense of agency. Response: 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. 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’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. We have now included this in the Discussion to explain the 20% cut-off choice for determining a good detector. Change in the manuscript: 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. 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 believe that choosing a sensitive detector 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. 1 ) 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 2 . The choice of amount of filtering of the chose detector’s output will need to be done through feedback from patients/users of the system. 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. Discussion: 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 >2kHz EMG sampling for a 1kHz controller). Do authors have clues on how that might differently affect the different detectors? Response: Although the EMG acquisition happens at faster rate when compared to the robotic controller , 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. 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. Response: 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. 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 <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? Response: From Table 3, we can see that the detectors that have more than 80% validation trials with cost consistently lower than 0.2 (latency < 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. 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. Minor/typos: "Devasahayam S43" => "Devasahayam43" In Table 2, some window sizes are in (ms) some in (s) Response: These have been corrected in the manuscript. View more View less Competing Interests No competing interests were disclosed. reply Respond Report a concern Crocher V. Peer Review Report For: A systematic investigation of detectors for low signal-to-noise ratio EMG signals [version 4; peer review: 2 approved] . F1000Research 2024, 12 :429 ( https://doi.org/10.5256/f1000research.145296.r219586) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/12-429/v1#referee-response-219586 Alongside their report, reviewers assign a status to the article: Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions Adjust parameters to alter display View on desktop for interactive features Includes Interactive Elements View on desktop for interactive features Competing Interests Policy Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list: Examples of 'Non-Financial Competing Interests' Within the past 4 years, you have held joint grants, published or collaborated with any of the authors of the selected paper. You have a close personal relationship (e.g. parent, spouse, sibling, or domestic partner) with any of the authors. You are a close professional associate of any of the authors (e.g. scientific mentor, recent student). You work at the same institute as any of the authors. You hope/expect to benefit (e.g. favour or employment) as a result of your submission. You are an Editor for the journal in which the article is published. Examples of 'Financial Competing Interests' You expect to receive, or in the past 4 years have received, any of the following from any commercial organisation that may gain financially from your submission: a salary, fees, funding, reimbursements. You expect to receive, or in the past 4 years have received, shared grant support or other funding with any of the authors. You hold, or are currently applying for, any patents or significant stocks/shares relating to the subject matter of the paper you are commenting on. Stay Updated Sign up for content alerts and receive a weekly or monthly email with all newly published articles Register with F1000Research Already registered? Sign in Not now, thanks close PLEASE NOTE If you are an AUTHOR of this article, please check that you signed in with the account associated with this article otherwise we cannot automatically identify your role as an author and your comment will be labelled as a “User Comment”. If you are a REVIEWER of this article, please check that you have signed in with the account associated with this article and then go to your account to submit your report, please do not post your review here. If you do not have access to your original account, please contact us . All commenters must hold a formal affiliation as per our Policies . The information that you give us will be displayed next to your comment. User comments must be in English, comprehensible and relevant to the article under discussion. We reserve the right to remove any comments that we consider to be inappropriate, offensive or otherwise in breach of the User Comment Terms and Conditions . Commenters must not use a comment for personal attacks. When criticisms of the article are based on unpublished data, the data should be made available. I accept the User Comment Terms and Conditions Please confirm that you accept the User Comment Terms and Conditions. Affiliation ✕ refresh Please enter your institution. Note: To add your institution or organisation, start typing the name and then select the correct name from the list. Where applicable, the name will appear in both the original language and in English. Do not paste in the name. If the name does not appear in the drop-down list, we will display the information you have entered. ✕ refresh Country/Region * USA UK Canada China France Germany Afghanistan Aland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory British Virgin Islands Brunei Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Cook Islands Costa Rica Cote d'Ivoire Croatia Cuba Cyprus Czech Republic Democratic Republic of the Congo Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Federated States of Micronesia Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Heard Island and Mcdonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran Iraq Ireland Israel Italy Jamaica Japan Jersey Jordan Kazakhstan Kenya Kiribati Kosovo (Serbia and Montenegro) Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macao Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Minor Outlying Islands of the United States Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea North Macedonia Northern Mariana Islands Norway Oman Pakistan Palau Palestinian Territory Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Reunion Romania Russian Federation Rwanda Saint Helena Saint Kitts and Nevis Saint Lucia Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Is South Korea South Sudan Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syria Taiwan Tajikistan Tanzania Thailand The Gambia The Netherlands Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu UK USA Uganda Ukraine United Arab Emirates United States Virgin Islands Uruguay Uzbekistan Vanuatu Venezuela Vietnam Wallis and Futuna West Bank and Gaza Strip Western Sahara Yemen Zambia Zimbabwe Please select your country/region. You must enter a comment. Competing Interests Please disclose any competing interests that might be construed to influence your judgment of the article's or peer review report's validity or importance. Competing Interests Policy Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list: Examples of 'Non-Financial Competing Interests' Within the past 4 years, you have held joint grants, published or collaborated with any of the authors of the selected paper. You have a close personal relationship (e.g. parent, spouse, sibling, or domestic partner) with any of the authors. You are a close professional associate of any of the authors (e.g. scientific mentor, recent student). You work at the same institute as any of the authors. You hope/expect to benefit (e.g. favour or employment) as a result of your submission. You are an Editor for the journal in which the article is published. Examples of 'Financial Competing Interests' You expect to receive, or in the past 4 years have received, any of the following from any commercial organisation that may gain financially from your submission: a salary, fees, funding, reimbursements. You expect to receive, or in the past 4 years have received, shared grant support or other funding with any of the authors. You hold, or are currently applying for, any patents or significant stocks/shares relating to the subject matter of the paper you are commenting on. Please state your competing interests The comment has been saved. An error has occurred. Please try again. Cancel Post var lTitle = "A systematic investigation of detectors for...".replace("'", ''); var linkedInUrl = "http://www.linkedin.com/shareArticle?url=https://f1000research.com/articles/12-429/v4" + "&title=" + encodeURIComponent(lTitle) + "&summary=" + encodeURIComponent('Read the article by '); var deliciousUrl = "https://del.icio.us/post?url=https://f1000research.com/articles/12-429/v4&title=" + encodeURIComponent(lTitle); var redditUrl = "http://reddit.com/submit?url=https://f1000research.com/articles/12-429/v4" + "&title=" + encodeURIComponent(lTitle); linkedInUrl += encodeURIComponent('Yuvaraj M et al.'); var offsetTop = /chrome/i.test( navigator.userAgent ) ? 4 : -10; var addthis_config = { ui_offset_top: offsetTop, services_compact : "facebook,twitter,www.linkedin.com,www.mendeley.com,reddit.com", services_expanded : "facebook,twitter,www.linkedin.com,www.mendeley.com,reddit.com", services_custom : [ { name: "LinkedIn", url: linkedInUrl, icon:"/img/icon/at_linkedin.svg" }, { name: "Mendeley", url: "http://www.mendeley.com/import/?url=https://f1000research.com/articles/12-429/v4/mendeley", icon:"/img/icon/at_mendeley.svg" }, { name: "Reddit", url: redditUrl, icon:"/img/icon/at_reddit.svg" }, ] }; var addthis_share = { url: "https://f1000research.com/articles/12-429", templates : { twitter : "A systematic investigation of detectors for low signal-to-noise.... Yuvaraj M et al., published by " + "@F1000Research" + ", https://f1000research.com/articles/12-429/v4" } }; if (typeof(addthis) != "undefined"){ addthis.addEventListener('addthis.ready', checkCount); addthis.addEventListener('addthis.menu.share', checkCount); } $(".f1r-shares-twitter").attr("href", "https://twitter.com/intent/tweet?text=" + addthis_share.templates.twitter); $(".f1r-shares-facebook").attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + addthis_share.url); $(".f1r-shares-linkedin").attr("href", addthis_config.services_custom[0].url); $(".f1r-shares-reddit").attr("href", addthis_config.services_custom[2].url); $(".f1r-shares-mendelay").attr("href", addthis_config.services_custom[1].url); function checkCount(){ setTimeout(function(){ $(".addthis_button_expanded").each(function(){ var count = $(this).text(); if (count !== "" && count != "0") $(this).removeClass("is-hidden"); else $(this).addClass("is-hidden"); }); }, 1000); } close How to cite this report {{reportCitation}} Cancel Copy Citation Details $(function(){R.ui.buttonDropdowns('.dropdown-for-downloads');}); $(function(){R.ui.toolbarDropdowns('.toolbar-dropdown-for-downloads');}); $.get("/articles/acj/132382/164809") new F1000.Clipboard(); new F1000.ThesaurusTermsDisplay("articles", "article", "164809"); $(document).ready(function() { $( "#frame1" ).on('load', function() { var mydiv = $(this).contents().find("div"); var h = mydiv.height(); console.log(h) }); var tooltipLivingFigure = jQuery(".interactive-living-figure-label .icon-more-info"), titleLivingFigure = tooltipLivingFigure.attr("title"); tooltipLivingFigure.simpletip({ fixed: true, position: ["-115", "30"], baseClass: 'small-tooltip', content:titleLivingFigure + " " }); tooltipLivingFigure.removeAttr("title"); $("body").on("click", ".cite-living-figure", function(e) { e.preventDefault(); var ref = $(this).attr("data-ref"); $(this).closest(".living-figure-list-container").find("#" + ref).fadeIn(200); }); $("body").on("click", ".close-cite-living-figure", function(e) { e.preventDefault(); $(this).closest(".popup-window-wrapper").fadeOut(200); }); $(document).on("mouseup", function(e) { var metricsContainer = $(".article-metrics-popover-wrapper"); if (!metricsContainer.is(e.target) && metricsContainer.has(e.target).length === 0) { $(".article-metrics-close-button").click(); } }); var articleId = $('#articleId').val(); if($("#main-article-count-box").attachArticleMetrics) { $("#main-article-count-box").attachArticleMetrics(articleId, { articleMetricsView: true }); } }); var figshareWidget = $(".new_figshare_widget"); if (figshareWidget.length > 0) { window.figshare.load("f1000", function(Widget) { // Select a tag/tags defined in your page. In this tag we will place the widget. _.map(figshareWidget, function(el){ var widget = new Widget({ articleId: $(el).attr("figshare_articleId") //height:300 // this is the height of the viewer part. [Default: 550] }); widget.initialize(); // initialize the widget widget.mount(el); // mount it in a tag that's on your page // this will save the widget on the global scope for later use from // your JS scripts. This line is optional. //window.widget = widget; }); }); } close Error Close Add Reset F1000.MICROSERVICES.AFFILIATION = ''; $(document).ready(function () { $('.js-affiliations-form').each((index, form) => { new AffiliationForm({ formId: form.id, institutionErrorSelector: '.comment-enter-institution', departmentErrorSelector: '.comment-enter-department', placeSelector: '.js-add-comment-place', stateSelector: '.js-add-comment-state', zipCodeSelector: '.js-add-comment-zipcode', countrySelector: '.js-add-comment-country', countryErrorSelector: '.comment-enter-country', }); }); }); $(document).ready(function () { var reportIds = { "223115": 0, "223114": 0, "223113": 19, "223119": 0, "223118": 0, "223117": 0, "223116": 0, "223123": 0, "223122": 0, "223121": 0, "223120": 0, "242339": 13, "250529": 0, "175782": 0, "211623": 0, "175783": 0, "175780": 0, "175781": 0, "175786": 0, "211627": 0, "175787": 0, "175784": 0, "211625": 0, "175785": 0, "211631": 0, "170543": 0, "211630": 0, "175788": 0, "211629": 0, "175789": 0, "170544": 0, "170545": 0, "252471": 0, "237883": 0, "237882": 0, "237881": 0, "179006": 0, "179007": 0, "179004": 0, "237884": 0, "179005": 0, "179010": 0, "179011": 0, "219586": 25, "179008": 0, "179009": 0, "267714": 0, "179012": 0, "267715": 0, "179013": 0, "193490": 0, "258898": 0, "173779": 0, "193491": 0, "258897": 10, "193489": 0, "173780": 0, "173781": 0, "223835": 0, "188763": 0, "223839": 0, "188766": 0, "223838": 0, "188767": 0, "188764": 0, "223837": 0, "223836": 0, "188765": 0, "188770": 0, "188771": 0, "188768": 0, "188769": 0, "188772": 0, "210545": 0, }; $(".referee-response-container,.js-referee-report").each(function(index, el) { var reportId = $(el).attr("data-reportid"), reportCount = reportIds[reportId] || 0; $(el).find(".comments-count-container,.js-referee-report-views").html(reportCount); }); var uuidInput = $("#article_uuid"), oldUUId = uuidInput.val(), newUUId = "29525445-ced2-4214-bc49-1b04e0c1e1a6"; uuidInput.val(newUUId); $("a[href*='article_uuid=']").each(function(index, el) { var newHref = $(el).attr("href").replace(oldUUId, newUUId); $(el).attr("href", newHref); }); }); An innovative open access publishing platform offering rapid publication and open peer review, whilst supporting data deposition and sharing. Browse Gateways Collections How it Works Contact For Developers Cookie Notice Privacy Notice RSS Submit Your Research Follow us © 2012-2026 F1000 Research Ltd. ISSN 2046-1402 | Legal | Partner of Research4Life • CrossRef • ORCID • FAIRSharing R.templateTests.simpleTemplate = R.template(' $text $text $text $text $text '); R.templateTests.runTests(); var F1000platform = new F1000.Platform({ name: "f1000research", displayName: "F1000Research", hostName: "f1000research.com", id: "1", editorialEmail: "
[email protected]", infoEmail: "
[email protected]", usePmcStats: true }); $(function(){R.ui.dropdowns('.dropdown-for-authors, .dropdown-for-about, .dropdown-for-myresearch');}); // $(function(){R.ui.dropdowns('.dropdown-for-referees');}); $(document).ready(function () { if ($(".cookie-warning").is(":visible")) { $(".sticky").css("margin-bottom", "35px"); $(".devices").addClass("devices-and-cookie-warning"); } $(".cookie-warning .close-button").click(function (e) { $(".devices").removeClass("devices-and-cookie-warning"); $(".sticky").css("margin-bottom", "0"); }); $("#tweeter-feed .tweet-message").each(function (i, message) { var self = $(message); self.html(linkify(self.html())); }); $(".partner").on("mouseenter mouseleave", function() { $(this).find(".gray-scale, .colour").toggleClass("is-hidden"); }); }); Sign In Remember me Forgotten your password? Sign In Cancel Email or password not correct. Please try again Please wait... $(function(){ // Note: All the setup needs to run against a name attribute and *not* the id due the clonish // nature of facebox... $("a[id=googleSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("GOOGLE"); $("form[id=oAuthForm]").submit(); }); $("a[id=facebookSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("FACEBOOK"); $("form[id=oAuthForm]").submit(); }); $("a[id=orcidSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("ORCID"); $("form[id=oAuthForm]").submit(); }); }); If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password. The email address should be the one you originally registered with F1000. Email address not valid, please try again You registered with F1000 via Google, so we cannot reset your password. To sign in, please click here . If you still need help with your Google account password, please click here . You registered with F1000 via Facebook, so we cannot reset your password. To sign in, please click here . If you still need help with your Facebook account password, please click here . Code not correct, please try again Reset password Cancel Email us for further assistance. Server error, please try again. If your email address is registered with us, we will email you instructions to reset your password. If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance. Please wait... Register $(document).ready(function () { signIn.createSignInAsRow($("#sign-in-form-gfb-popup")); $(".target-field").each(function () { var uris = $(this).val().split("/"); if (uris.pop() === "login") { $(this).val(uris.toString().replace(",","/")); } }); });
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.