MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1088/2057-1976/ae6fc1

Медицинская библиотека · Biomedical physics & engineering express · 2026

A portable closed-loop platform enabling cortical evoked potential operant conditioning: system development and validation of target intensity estimation.

Gupta Disha, Brangaccio Jodi, Mojtabavi Helia, Hill N Jeremy

СтатьяПеревод в очереди

Аннотация

This study presents customizations and evaluations aimed at adapting a closed-loop platform designed for cortical evoked potential operant conditioning into a portable, user-friendly platform for real-time neurofeedback applications. Such applications can be useful for development of novel sensory and motor evoked response feedback approaches for rehabilitating lost function due to a brain or spinal injury. The current version of this system is component-heavy, and our primary goal was to reduce its footprint by integrating components, while supporting quality data acquisition, and without compromising real-time feedback. One key limitation in transitioning to a portable and integrated biosignal acquisition system is their typically lower sampling rates (e.g. 300-600 Hz) compared to high-resolution systems (e.g. 3200 Hz), typically used for detecting transient muscle and reflex responses (H-reflex andM-wave) for generating their recruitment curves. These are an essential part of the closed-loop platform, important for minimizing intra- and inter-session variability in effective afferent excitation. We evaluate whether lower-resolution signals would be usable in this setup. We find that despite larger dispersion of data, as expected, they can still provide comparable estimates of recruitment curve-based key components, as the higher-resolution counterparts. We also demonstrate the usability of automated response delineation under these lower sampling conditions, important in objectively analyzing post-injury data. Overall, this study demonstrates the feasibility of a portable/compact closed-loop system that enables real time feedback based on brain and muscle evoked responses. It also offers practical recommendations for selecting acquisition hardware to support reliable signal quality, real-time processing, and portability for this setup. Next, we aim to test it in a larger patient cohort, under non-laboratory settings.

Другие публикации по теме

Conditioning, OperantEvoked PotentialsSignal Processing, Computer-AssistedNeurofeedback
Для цитирования: Gupta Disha, Brangaccio Jodi, Mojtabavi Helia, Hill N Jeremy. A portable closed-loop platform enabling cortical evoked potential operant conditioning: system development and validation of target intensity estimation.. Biomedical physics & engineering express. 2026. DOI: 10.1088/2057-1976/ae6fc1.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by/4.0/ Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 license . Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Introduction

A real time feedback of single trial evoked responses can be useful in developing novel neurorehabilitation applications that target specific neural or spinal evoked responses such as sensory-evoked potentials (SEPs) (Gupta et al 2025b ), spinal reflex responses ( H -reflex) (Wolpaw 1987 , Thompson et al 2009 , 2013 , Thompson and Wolpaw 2021 ), motor evoked potentials (Thompson et al 2018 ), and event related negativity (Chavarriaga et al 2014 , Wirth et al 2019 , Gomez-Andres et al 2024 ). Such applications can help enhance weakened responses post injury (Thompson et al 2018 ) or suppress maladaptive hyperactive responses (Thompson et al 2009 , 2013 ), via operant conditioning.

The Evoked Potential Operant Conditioning System (EPOCS) (Thompson et al 2009 , Hill et al 2022 ) and Cortical-EPOCS (C-EPOCS) (Gupta et al 2025b ) are applications that were developed for such real time closed-loop operant conditioning of evoked responses. These were built as application layers of the BCI2000 software platform (Schalk et al 2004 , Mellinger and Schalk et al 2007 ), and provide practical interfaces for performing the multiple tasks required for the conditioning.

However, the EPOCS hardware and software were originally developed to process and provide feedback on evoked responses recorded peripherally using electromyography (EMG) (Thompson et al 2013 , 2018 ). In contrast, the C-EPOCS system was customized to process and deliver feedback based on cortical responses recorded via electroencephalography (EEG) (Gupta et al 2025a ). Both systems—particularly C-EPOCS—are component-heavy and have primarily been evaluated in controlled laboratory environments.

In long-term interventional studies, in individuals with brain or spinal cord injuries, these setups may be accessible to fewer people, limiting efficacy testing. Hence, developing a portable and practical version of the system could enable a wider reach, including research in constrained settings, such as rehabilitation centers, and home-based interventions and assessments. A portable system would also allow enhancing the efficacy of these conditioning approaches by combining them with active tasks (Thompson and Wolpaw 2021 ). All of these would facilitate clinical translation. In addition, the ability to collect longitudinal data from a larger number of people with injuries would also allow mechanistic studies on long-term neuroplasticity.

The C-EPOCS is designed for real-time acquisition and feedback of single-trial cortical evoked responses, typically known to have a low signal-to-noise (SNR) ratio, partly due to the variability in brain responses, but also due to variabilities in the stimulation procedures and stimuli. Focusing on an electrical stimulation-based C-EPOCS, the afferent excitation of nerves can differ across sessions, even with the same magnitude of applied stimulation current, due to small differences in surface electrode positions, posture, and muscle contractions. This makes it challenging to track functional improvements across multi-session interventions. In our previous study (Gupta et al 2025a ), we discuss an approach to maintain the effective afferent excitation—i.e. the stimulation received at the afferent pathway—as a means to reduce some of the inter-session variability. We perform this procedure on each testing day by measuring the stimulation intensity—referred to as the target stimulation intensity—required to elicit a near-maximal spinal reflex response (Hoffman reflex or H -reflex (Palmieri et al 2004 )), and a 10%–20% direct muscle action potential ( M -wave), in a muscle innervated by the stimulated nerve. These values are determined by generating recruitment curves for both the H -reflex and M -wave.

In a C-EPOCS study, this is achieved in two steps: first, an instantiation of the standard EPOCS setup (Hill et al 2022 ) (figure 1 ) is used, to record H -reflex and M -wave recruitment curves. These are used to determine the optimal target stimulation intensity for eliciting robust cortical responses (Gupta et al 2025a , 2025b ). In this setup, the EPOCS computing station receiving the EMG data acts as the control unit and is programmed to trigger the stimulator via a digitizer. Subsequently, the system is switched to the C-EPOCS setup (figure 2 ) to record, process and provide feedback on cortical responses at the target stimulation intensity. In this setup, the C-EPOCS system receiving the EEG data acts as the control and triggers the stimulator via a programmable embedded system. In these 2 setups, as the EEG and EMG signals are being recorded by separate hardware systems, the EPOCS and C-EPOCS are maintained on independent computing stations to avoid errors during switching of connections.

Иллюстрация — в первоисточнике ↗

Figure 1. The Evoked Potential Operant Conditioning System (EPOCS) is designed to measure effective afferent stimulation by recording spinal reflex responses—specifically the H -reflex and M -waves—at the soleus muscle during tibial nerve stimulation. The setup includes preamplifiers, an analog amplifier, a digitizer, and an electrical stimulator, forming a well-established framework that integrates with EPOCS software to process incoming electromyography (EMG) data and display real-time responses on a monitor. Data is typically recorded at a high sampling rate of 3200 Hz. EPOCS also continuously monitors background EMG activity in the soleus and its antagonist, the tibialis anterior, ensuring both remain below predefined thresholds before triggering stimulation. Brain signals are recorded separately using electroencephalography (EEG) via an independent biosignal acquisition system running the BCI2000 software platform. EEG and EMG data streams are synchronized by recording a copy of the stimulation trigger onset alongside the EEG data. Reproduced from Gupta et al ( 2025a ). © The Author(s). Published by IOP Publishing Ltd. CC BY 4.0 .

Иллюстрация — в первоисточнике ↗

Figure 2. C-EPOCS setup: this setup primarily records and displays brain responses to electrical stimulation using electroencephalography (EEG). It verifies that the ongoing EEG remains within predefined resting-state limits before triggering stimulation via a programmable trigger unit. EEG signals are recorded and processed in real time at 300 Hz, with the resulting sensory responses displayed on a monitor. In parallel, spinal reflex responses (H-reflex and M-wave) are recorded using electromyography (EMG) through a separate standard EPOCS system. EMG is sampled at 3200 Hz using an acquisition system (amplifier and digitizer) integrated with EPOCS. A copy of the stimulation trigger is recorded within the EPOCS system to synchronize the EEG and EMG data streams. Reproduced from Gupta et al ( 2025b ). © The Author(s). Published by IOP Publishing Ltd. CC BY 4.0 .

This overall system includes several bulky hardware components that require careful assembly and handling by trained researchers. These include EEG electrode setup with pre-amplifiers, amplifiers, digitizers, trigger hubs; EMG analog amplifiers with preamplifier unit, battery unit, digitizer unit, electrical stimulation device; two computing stations with extended viewing monitors for participant and researcher; synchronization embedded system; multiple power sources and various connector cables for communication and synchronization of these hardware systems. The setup becomes expensive and requires planning and organization on specialized carts, with several potential points of failure. Some of these components–such as the analog amplifier with a sampling rate of 3200 Hz–may not be readily available in many laboratories and the whole setup can be burdensome to setup in space constrained research or clinical settings.

In this study, we present the customizations and evaluations performed to streamline the above two steps (EPOCS and C-EPOCS) into a single, compact, user-friendly platform that eliminates the need for manual component switching. The system is designed to acquire and process both cortical and muscle responses, support contingent response processing, trigger electrical stimulation, and deliver rapid, real-time feedback on muscle ( H -reflex, M -wave) or cortical activity through visual gauges, with a single system.

Methods

A key feature of the portable setup is the use of a single biosignal recording device—such as a dry, active, battery-powered EEG headset (with optional wireless capability)—that can simultaneously acquire EMG signals and includes an embedded, isolated port for digital triggers. Important criteria in selecting the data acquisition hardware include high common-mode rejection ratio, integrated pre-amplifiers in EEG/EMG electrodes, high sampling rate, and compatibility with platforms like BCI2000. We performed the assessment with a DSI-24 system (Wearable Sensing, CA), but other EEG acquisition systems with similar capabilities may also be suitable. The main limitation of recording EMG with an EEG-based system (especially in a portable or wireless system), is the lower sampling rate, which affects the EMG signal resolution.

We evaluate whether the reduced EMG signal resolution impacts the measurement of M -wave and H -reflex responses, and whether their recruitment curves can still be generated in real time to obtain target stimulation intensity accurately, without requiring extensive post-processing. To address this, we first conduct a pseudo-online analysis in which EMG signals were acquired at a high sampling rate (3200 Hz). The stimulation intensities that elicited maximal H -reflex ( H max ) and M -wave ( M max ) responses were then compared with those obtained from down sampled, lower-resolution EMG signals—specifically, at 640 Hz (5 × lower) and 320 Hz (10 × lower). These sampling rates were selected as they closely match the sampling rates typically used for EEG systems. The subjective delineation of these responses can become challenging at reduced EMG resolution and an automated approach can be useful. Towards that, we test the performance of an automated delineation algorithm (McKinnon et al 2023 ) designed for H -reflex studies, on these lower resolution EMG signals. Next, we test the portable system in an online mode to evaluate its operational feasibility as it simultaneously records and transmits EEG and EMG signals at 600 Hz (a pre-defined setting) to the C-EPOCS system. We assess the resulting M -wave and H -reflex recruitment curves, by curve fitting and quantifying curve parameters. We focus in particular on the stimulation intensities required to reach H max and M max , as they are used for obtaining the target stimulation intensities for use in the C-EPOCS.

Portable C-EPOCS architecture: In the standard setup (illustrated in figure 1 ), EMG is recorded at the soleus muscle, using an analog amplifier (AMT-8, Bortec Biomedical Ltd, Canada) at a sampling rate of 3200 Hz. The system includes a battery-powered belt unit with bipolar electrodes and preamplifiers, connected to an analog-to-digital converter (PCIe-6321, National Instruments, TX). The digitizer is linked to a computing station running the EPOCS software platform, which serves as the control unit. This control station continuously receives and processes EMG signals to assess whether the background EMG activity in the soleus muscle (or antagonist tibialis anterior muscle) is maintained at a predefined low level (approximately 5%–10% of maximum voluntary contraction or 5–18 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\mu $\end{document} μ V observed in soleus during normal standing) for at least 2 s. Upon meeting this condition, the system triggers the electrical stimulator according to the selected protocol—for example, in recruitment curve protocol, it systematically increases stimulation intensity in predefined steps after a set number of trials. The control station also receives stimulation onset timestamps and other trial-specific parameters directly from the stimulator. Prior to each trial, the background EMG is continuously monitored, processed, and displayed on a participant-facing monitor to allow them to maintain it at the required low level. This setup is used to acquire the recruitment curves of the H-reflex and M-wave, enabling selection of a target stimulation intensity at which the H-reflex amplitude is approximately 75% of H max and the M-wave amplitude is around 10% of M max . These procedures have been described in Hill et al ( 2022 ) and used in multiple studies (Thompson and Wolpaw 2021 , Gupta et al 2025a ). In this setup, the brain signals are recorded simultaneously separately with an EEG acquisition system (including pre-amplifier, amplifier, digitizer, and trigger hub). The EEG and EMG data streams are merged by synchronization pulses from the electrical stimulator.

After determining the target stimulation intensity with the help of the standard EPOCS, the setup it switched to C-EPOCS to provide feedback based on brain signals. Switching to C-EPOCS involves transferring control from the standard EPOCS system (figure 1 )—that processes EMG signals and triggers the stimulator via a digitizer—to the C-EPOCS system (figure 2 ), that processes EEG signals and triggers the stimulator via the synchronization unit. Since the wiring configurations for the two systems differ, they are maintained on separate computing stations to prevent connectivity errors during the rapid switch-over. The C-EPOCS system communicates with the synchronization embedded system (SyncGenie, Alkhoury et al 2024 ) which in turn transmits a digital trigger to the electrical stimulator. Stimulation parameters for each trial are collected directly from the stimulator. EEG is recorded using a 19-channel referential dry electrode headset (DSI-24, Wearable Sensing) at a sampling rate of 300 Hz, with data acquired via the BCI2000 software platform. The EEG electrodes include built-in preamplifiers, and the headset is battery-powered. C-EPOCS also retrieves key EEG metadata from the headset, such as channel configuration, sampling rate, and timestamps.

The proposed portable setup (illustrated in figure 3 ) consists of only four components: (a) the EEG headset (DSI-24, Wearable Sensing), for simultaneously recording of synchronized EEG and EMG signals; (b) the electrical stimulator (DS8R, Digitimer), for delivering electrical stimuli; (c) the synchronization embedded system (SyncGenie, Alkhoury et al 2024 ), for synchronizing the data streams; and (d) a computing station (laptop or desktop) with an extended monitor, to operate the C-EPOCS and display feedback. In this setup, the EEG and EMG data are both acquired at a sampling rate of 600 Hz, a typical rate supported by the EEG headset. EMG is recorded from one of the DSI-24’s three auxiliary channel inputs, synchronously digitized by the same ADC electronics as the EEG. Both EEG and EMG are active electrodes with built-in pre-amplifiers. All biosignals and trigger recordings are transmitted to the C-EPOCS system with precise time synchronization.

Иллюстрация — в первоисточнике ↗

Figure 3. Portable C-EPOCS setup: this configuration records both brain signals (electroencephalography, EEG) and muscle signals (electromyography, EMG) at 600 Hz, using a single acquisition system—comprising the EEG headset and C-EPOCS software. Designed with a smaller footprint, the system can seamlessly switch between standard EPOCS functions for EMG-based feedback and C-EPOCS functionality for EEG-based feedback—without requiring any changes to the wiring or equipment setup. In EMG mode, C-EPOCS monitors background EMG activity prior to triggering stimulation and displays the resulting recruitment curves. In EEG mode, it monitors resting-state EEG before stimulation and displays sensory evoked potentials. A programmable trigger unit transmits digital pulses to the stimulator to initiate each trial. Bottom panel shows representative data from Step 1: EMG-mode: recruitment curves of H-reflex and M-wave, and Step 2: EEG-mode: acquiring and visualizing single trial EEG responses at spatially filtered Cz electrode. The heatmap of the trials and the averaged response show high signal-to-noise ratio and identifiable SEP components such as the P50, N70 and P200. Reproduced from Gupta et al ( 2025b ). © The Author(s). Published by IOP Publishing Ltd. CC BY 4.0 .

The C-EPOCS is customized with an additional skin (INI settings configuration) to easily switch between an EMG-driven system to an EEG-driven system, with the hardware and cable connections remaining unchanged. Configuration files mainly outline the input channels of interest (EMG vs EEG channels), stimulator settings (biphasic/monophasic, current limit, Digitimer enabled: On/off, polarity, pulse width), real time processing parameters (minimum time between triggers, feedback channel name), and storage path (data folder and directory path). This setup integrates the functionalities of standard EPOCS and C-EPOCS setups and can be operated using a single standard laptop or desktop computer. This development simplifies the setup and reduces the hardware footprint and potential points of failure in switching between EPOCS and C-EPOCS systems.

Software: The core software BCI2000 is an open-source software platform, available at: www.bci2000.org ; and the hardware and software setup for the EPOCS extension is described in detail in open-source Journal article (Hill et al 2022 ). The curve fitting software, along with automated response window identification, has been made available by co-author Dr Hill at: https://pypi.org/project/RecruitmentCurveFitting/ under an open-source license as part of a previous related study (McKinnon et al 2023 ). Version 1.2.7 was used in the current manuscript.

Portable C-EPOCS evaluation: We evaluate the portable C-EPOCS setup in two steps: (i) a pseudo-online analysis that used a stand-alone standard EPOCS for obtaining recruitment curves, and (ii) testing the system’s operational feasibility in an online mode where the EEG and EMG were recorded simultaneously and processed through a single EPOCS system.

Data: Retrospective analysis was performed on data from 21 healthy participants (age range: 23–82 years; mean age: 48.3y ± 18.8y, 10 women and 11 men), with no known neurological injury, and one individual with chronic stroke (>18 years-old, stroke more than 6 months ago; age and gender are not disclosed to maintain de-identification). The data was collected during methods development study on H -reflex and somatosensory evoked potentials (Brangaccio et al 2025 ), and baseline measurements during a motor learning study (Mojtabavi et al 2025 , Gupta et al 2026 ), at our laboratories. Real time assessment was performed in 4 participants from the healthy participant group (36y ± 14.9y, 2 women and 2 men). All data was acquired with informed consent, and the protocol (#1584762) was approved by the local institutional review board at the Stratton Veterans Affairs Medical Center.

Both the datasets were obtained during electrical stimulation of the tibial nerve at the popliteal fossa. The stimulation was delivered at 1 Hz stimulation frequency with an inter stimulus interval jitter of 10%, with 1 msec long biphasic pulses. Stimulation was delivered with a constant current stimulator (DS8R, Digitimer) with surface electrodes, with the cathode (proximal) and anode placed at 3–4 cm inter-electrode distance. The stimulation and recording setup are as described in previous studies (Thompson et al 2013 , Hill et al 2022 , Gupta et al 2025a ). To obtain the H -reflex and the M -wave recruitment curves, the stimulation current was increased steadily from threshold (minimum stimulation current that elicits an H -reflex) till a maximal M -wave was observed, which asymptotes with further increase in stimulation intensity.

Safety: During all the above tibial nerve stimulation setups, stimulus intensity limits were preset to a maximum of 50 mA. Participants were continuously monitored for discomfort throughout the session, particularly during incremental increase in stimulation intensity. Data acquisition was immediately paused or discontinued upon participant request or if any discomfort exceeded tolerable levels. Following data collection, the stimulation site was inspected for skin reactions. Mild, transient and localized redness is occasionally observed at the stimulation site, that resolves without intervention. No adverse events occurred.

EMG recording: In the standard setup, EMG was recorded using a pair of bipolar electrodes with built-in preamplifiers (500 × gain) (Bortec Biomedical Ltd) at 3200 Hz sampling rate. In the portable setup, we used bipolar EMG electrodes (EXG-Bi-60, Wearable Sensing) with integrated preamplifiers (60 × gain), connected to auxiliary channels in the EEG headset (DSI-24, Wearable Sensing), sampled at 600 Hz, analog high pass filtered at 0.003 Hz and digitized by the same ADC as the EEG Electrodes. Electrodes were attached to the skin using self-adhesive Ag/AgCl surface electrodes (Neuroplus, 22 × 22 mm, A10040-60, Vermont Medical Inc.) placed over the soleus muscle belly, approximately 3–4 cm apart (center-to-center).

EMG analysis: In the retrospective analysis, EMG data were low-pass filtered at 200 Hz (2nd-order Butterworth filter) and then down sampled to 640 Hz (5 × lower than the original 3200 Hz), or low-pass filtered at 100 Hz (2nd-order Butterworth filter) and down sampled to 320 Hz (10 × lower). The data was also high pass filtered by EPOCS at 10 Hz at the time of recording. The preprocessed data were then segmented into 600 msec epochs (from −200 to 400 msec relative to stimulation onset). Next, the H -reflex and M -wave response time windows were determined in two ways: (a) subjectively by the investigator in consultation with an expert in the laboratory, and (b) objectively using an algorithm specifically designed for automated delineation of these responses (McKinnon et al 2023 ). The hand selected windows were chosen based on the most prominent M -wave and H -reflex responses and kept constant across all trials during the analysis; while the automated window delineation used the complete recruitment-curve run to determine the windows, which were then kept constant across trials.

Subsequently, the mean rectified values (MRV) of the signal within these time windows were calculated. Next, the recruitment curves were obtained at the three sampling rates (3200 Hz, 640 Hz, 320 Hz) by plotting these MRV values at the respective stimulation intensities. Finally, to compare curve parameters across sampling rates, the H-reflex and M-wave recruitment curves were fitted with a bell shaped and a sigmoid curve respectively, as described in McKinnon et al ( 2023 ) using the open-source software shared by the authors. The automated delineation can help to reduce variability that arises from subjective evaluation, especially in longitudinal studies, but it may fail at the lower resolution EMG signals. The process includes blanking the stimulus artifact; removing the stimulus artifact related decay with an exponential function; modeling the M -wave as a logistic function of stimulus intensity and modeling the H -reflex with the ‘hill curve’—a product of two sigmoids. Six curve parameters were extracted for comparison–residual errors for the H -reflex and M -wave curves quantified by the mean squared error (MSE), H max , M max , stimulation intensity at H max and stimulation intensity at M threshold . These parameters were selected as they are most relevant for the C-EPOCS protocol, where the stimulation intensity of H max and M threshold is determined as the target stimulus intensity for maintaining the afferent stimulation.

In the real time demonstration of portable C-EPOCS, the EMG was filtered with a 10 Hz high pass filter (Butterworth, model order 2), to remove movement related artifacts, generally observed in data acquired by the headset at the higher stimulation intensities. The subsequent procedure for recruitment curve fitting remained the same as the retrospective analysis.

EEG recording and analysis: In both the setups (retrospective and portable), 19 channel EEG was recorded with the dry active DSI-24 headset, using referential mode. The electrodes were pre-positioned according to the International 10–20 EEG system (Klem et al 1999 ), with the ground at Fpz and the reference at linked earlobes. The headset provides coverage in the cortical areas of interest for sensory responses, such as the centro-parietal regions of the scalp (Valeriani et al 2000 ). In the retrospective dataset, the EEG was collected at 300 Hz, while in the portable C-EPOCS setup, the EEG was recorded at 600 Hz along with the EMG. A more detailed performance analysis of EEG acquired with the C-EPOCS setup has been included in Gupta et al 2025b . A representative dataset acquired with the portable C-EPOCS setup has been shown in figure 3 , that continues to show a high signal-to-noise ratio (SNR) along with the identifiable SEP components of interest.

Statistical Analysis: All analysis was performed in MATLAB 2020b (Mathworks, MA). Repeated measures assessments across sampling rates tested in the same group of participants were performed with Friedman repeated measures test, followed by post-hoc tests with Tukey’s multiple comparison procedure. The effect size was estimated using the coefficient of concordance (Kendall’s \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $w$\end{document} w (Tomczak and Tomczak ( 2014 )) with the equation \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $w = {\text{ }}{\chi ^2}/N\left( {k - 1} \right)$\end{document} w = χ 2 / N ( k − 1 ) , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2}$\end{document} χ 2 is the Friedman test statistic, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $N$\end{document} N is the sample size, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $k$\end{document} k is the number of repeated measurements. The interpretation of Kendall’s \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $w$\end{document} w was based on Cohen’s (Cohen 1977 ) interpretation guidelines of 0.1 – < 0.3 (small effect), 0.3 – < 0.5 (moderate effect), and ⩾0.5 (large effect). We use intraclass correlation coefficient (ICC) to evaluate the agreement between the automated vs manual response window determination (Koo and Li 2016 , Liljequist et al 2019 ). ICC estimates were calculated using MATLAB 2020b, based on a single measurement, absolute agreement, 2-way mixed-effects model. The ICC values were interpreted as per the guidelines (Koo and Li 2016 ) as 0.5 (poor), 0.5–0.75 (moderate), 0.75–0.9 (good) and >0.9 (excellent) agreement.

Results: We evaluate the effect of low-resolution (low sampling rate) EMG signals on the H -reflex and M -wave recruitment curve parameters, especially the stimulation intensity at H max and M threshold , important for C-EPOCS. First, we analyze existing data in healthy people and the individual with stroke, by down sampling the EMG signals from 3200 Hz to 5 × lower (640 Hz) and 10 × lower (320 Hz) sampling rate, identifying the H-reflex and M-wave response time windows by hand, fitting their recruitment curves at each sampling rate, and comparing the curve parameters. We hypothesized that curve parameters may be affected as the EMG resolution is reduced. We also assess the above with the automated delineation of responses as described in McKinnon et al ( 2023 ). We hypothesized that the automated response delineation algorithm will not be able to perform as well at the lower resolution EMG. Lastly, we assess the operational feasibility of the portable C-EPOCS, i.e. recording both EEG and EMG with the EEG headset at its typical sampling rate (600 Hz), processed in real time via the portable C-EPOCS pipeline.

EMG data from 21 healthy participants (age: 23–82 years) and 1 participant (>18 years old) with neurological injury was analyzed. Data was recorded at the soleus muscle during tibial nerve stimulation. In all participants, for the recordings at 3200 Hz, we observed the expected recruitment curves for H -reflex (bell-shaped curve) and M -wave (sigmoid curve) (shown by a representative example in figure 4 ).

Иллюстрация — в первоисточнике ↗

Figure 4. Representative example: M-wave and H-reflex recruitment curve data obtained at 3200 Hz sampling rate, recorded at the soleus muscle, during tibial nerve stimulation at the popliteal fossa, in a healthy participant. Top panel: heat plot of all the trials, each row being a trial, and color the EMG response magnitude. Middle panel: trials collapsed as overlapped time courses, show the M-wave and H-reflex responses. Lower panel: recruitment curve data plotted as the mean rectified M-wave and H-reflex responses at each stimulation intensity.

Pseudo-online assessment with down sampled EMG recordings in healthy people: The recruitment curves fitted with EMG at 3200 Hz, 640 Hz and 320 Hz visually showed considerable difference and deterioration with the 10 × lower sampling rate, and lesser change with 5 × lower sampling rate. The M -wave curves appeared to be more affected while the H -reflex curves appeared more robust. A representative example shown in figure 5 illustrates the increased noise in the M -wave as the sampling rate was reduced from 3200 Hz to 320 Hz. This change was quantified by the MSE of the residuals. Despite this increased dispersion of data points, the curves did not appear to shift, quantified by comparing the stimulation intensity at H max and M threshold at the different sampling rates. We also assess the magnitude of H max and M max , which can be affected by the filtering process. The descriptive statistics (mean and standard error) of these curve parameters across participants are shown in figure 6 .

Иллюстрация — в первоисточнике ↗

Figure 5. Representative recruitment curves from one healthy participant. EMG recorded at (a) 3200 Hz, (b) 640 Hz and (c) 320 Hz. The lower sampling rate shows increased residuals for both H-reflex and M-wave data, especially at higher stimulation intensities.

Иллюстрация — в первоисточнике ↗

Figure 6. Curve parameters with investigator selected response windows for H-reflex and M-wave at the three sampling rates (3200 Hz, 640 Hz and 320 Hz) (mean, standard error). Top panel: mean squared error (MSE) for H-reflex and M-wave recruitment curves showed increased MSE at lower stimulation intensity (Friedman repeated measures test, p < 0.001 for both). Middle panel: magnitude of H-reflex and M-wave at their recruitment curve maxima; maxima decreased with lowering of sampling rate (p < 0.05 for H-reflex). Bottom panel: stimulation intensity at H max and M threshold remained unchanged with lower sampling rate (p > 0.05 for both).

The Friedman repeated measures test showed a significant difference with moderate to large effect size, between the residual errors or MSE for H -reflex and M -wave at the three sampling rates ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 20.67,{\text{ }}p = 3.253{e^{ - 5}},{\text{ }}w = 0.49){\text{ }}$\end{document} χ 2 = 20.67 , p = 3.253 e − 5 , w = 0.49 ) for H-reflex, and ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 40.09,{\text{ }}p = 1.965{e^{ - 9}},{\text{ }}w = 0.95)$\end{document} χ 2 = 40.09 , p = 1.965 e − 9 , w = 0.95 ) for M -wave. The post hoc test showed a significance difference between H -reflex at 3200 Hz and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {p = 0.0002} \right){\text{ }}$\end{document} ( p = 0.0002 ) and between 640 and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {p = 0.0003} \right)$\end{document} ( p = 0.0003 ) , and a significant difference in M -wave between all pairs of sampling rates \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {p &lt; 0.01} \right)$\end{document} ( p < 0.01 ) . The H max was observed to be significantly different, with a small effect size, across sampling rates as well \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {{\chi ^2} = 8.67,{\text{ }}p = 0.013,{\text{ }}w = 0.21} \right)$\end{document} ( χ 2 = 8.67 , p = 0.013 , w = 0.21 ) ; with the post hoc test indicating significant difference between 3200 Hz and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {p = 0.009} \right)$\end{document} ( p = 0.009 ) . The M max was not found to be significantly different \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 5.43,{\text{ }}p = 0.066,{\text{ }}$\end{document} χ 2 = 5.43 , p = 0.066 , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $w = 0.13$\end{document} w = 0.13 .

However, more importantly, the stimulus intensity at H max and M threshold were not found to be significantly different across the three sampling rates with a small effect size \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {{\chi ^2} = 1.81,{\text{ }}p = 0.405,{\text{ }}w = 0.04} \right){\text{ }}$\end{document} ( χ 2 = 1.81 , p = 0.405 , w = 0.04 ) and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 1.24,{\text{ }}p = 0.538,{\text{ }}w = 0.03)$\end{document} χ 2 = 1.24 , p = 0.538 , w = 0.03 ) . This is useful for C-EPOCS application, where the stimulus intensity at H max and M threshold are the main parameters of interest from these recruitment curves.

Here, we assess sampling rates of 640 Hz and 320 Hz, which are closest to those typically used for EEG data acquisition, including with headsets such as the DSI-24. Similar trends were observed at other interim sampling rates between 3200 Hz and 320 Hz, shown in figure 7 , with stable (no significant change) stimulation intensity at H max and M threshold , and significantly increasing residual errors MSE for the M -wave and H -reflex at lower sampling rates, most evident by 320 Hz, as the temporal resolution of the responses reduces.

Иллюстрация — в первоисточнике ↗

Figure 7. Assessment of recruitment curve derived parameters at multiple sampling rates between 3200 Hz and 320 Hz: (a) and (b) Show a similar stimulation intensity at H max and M threshold at the multiple sampling rates. These were not significantly different and had a small effect size, as tested by Friedman repeated measures test (p = 0.27, w = 0.15 and p = 0.28, w = 0.15 respectively). (c) and (d) Show a significant increase in H-reflex and M-wave residual errors as measured by mean squared errors, along with a large effect size (H-reflex MSE: p = 1.43 × 10 −8 , w = 1.07; M-wave MSE: p—1.45 × 10 −17 , w = 2.10). Post hoc tests for H-reflex MSE show significant difference between 3200 Hz and 320 Hz; 1600 Hz and 400 and 320 Hz; 800 Hz and 400 and 320 Hz; 640 Hz and 320 Hz. Post hoc tests for M-wave MSE show significant difference between 3200 Hz and 640–320 Hz; 1600 Hz and 640–320 Hz; 800 Hz and 400–320 Hz; 640 Hz and 320 Hz. The MSE increases markedly by 320 Hz due to much reduced temporal resolution of the responses.

Automated response delineation and recruitment curve fitting: Next, we assessed the use of an automated process to delineate the H -reflex and M -wave responses (McKinnon et al 2023 ), which we hypothesized to be considerably challenging for signals with a lower resolution. We fit the curves as described in the previous sections and compare the curve parameters: MSE for H -reflex and M -wave, magnitude of H max and M max , and stimulation intensity at H max and H threshold , across the three sampling rates. The descriptive statistics (mean and standard error) of these curve parameters across participants are shown in figure 8 .

Иллюстрация — в первоисточнике ↗

Figure 8. Curve parameters with automated delineation of H-reflex and M-wave responses at the three sampling rates (3200 Hz, 640 Hz and 320 Hz) (mean, standard error): top panel: mean squared error (MSE) for H-reflex and M-wave recruitment curves showed increased MSE at lower stimulation intensity (Friedman repeated measures test, p < 0.001 for both). Middle panel: magnitude of H-reflex and M-wave at their recruitment curve maxima decreased with lowering of sampling rate (p < 0.001 for both). Bottom panel: stimulation intensity at the H max and M threshold remained unchanged with lower sampling rate (p > 0.05 for both).

The Friedman repeated measures test showed that the residuals of H -reflex and M -wave recruitment curves (quantified by the MSE) were significantly different, with large effect sizes, across sampling rates \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $({\chi ^2} = 27.81,{\text{ }}p = 9.15{e^{ - 7}},{\text{ }}w = 0.66{\text{ }}$\end{document} ( χ 2 = 27.81 , p = 9.15 e − 7 , w = 0.66 for H -MSE and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 35.53,{\text{ }}p = 1.93{e^{ - 8}},w = 0.85{\text{ }}$\end{document} χ 2 = 35.53 , p = 1.93 e − 8 , w = 0.85 for M -MSE). Post hoc tests showed significant difference in H -MSE and M -MSE between 3200 Hz and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $(p &lt; 0.01)$\end{document} ( p < 0.01 ) , and between 640 Hz and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $(p &lt; 0.01)$\end{document} ( p < 0.01 ) . The H max and M max magnitudes showed a significant difference with a large effect size, with sampling rate \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $({\chi ^2} = 28.67,{\text{ }}p = 5.96{e^{ - 07}},{\text{ }}w = 0.68$\end{document} ( χ 2 = 28.67 , p = 5.96 e − 07 , w = 0.68 and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 24.67,{\text{ }}p = 4.40{e^{ - 6}},{\text{ }}w = 0.59)$\end{document} χ 2 = 24.67 , p = 4.40 e − 6 , w = 0.59 ) respectively. Post hoc tests showed significant difference between 3200 Hz and 640 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $(p &lt; 0.01)$\end{document} ( p < 0.01 ) , and between 3200 Hz and 320 Hz \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} $\left( {p &lt; 0.01} \right)$\end{document} ( p < 0.01 ) for both H max and M max . However, the stimulation intensity at H max and M threshold did not differ significantly, with a small effect size ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 1.52,{\text{ }}p = 0.47,{\text{ }}w = 0.04$\end{document} χ 2 = 1.52 , p = 0.47 , w = 0.04 and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} ${\chi ^2} = 3.52,{\text{ }}p = 0.17,{\text{ }}w = 0.08$\end{document} χ 2 = 3.52 , p = 0.17 , w = 0.08 , respectively), which is useful as it indicates that this parameter is robust to lower resolution EMG.

The agreement between the recruitment curve derived parameters, obtained from the manual versus automated response delineation was assessed with ICC. ICC was computed using a two-way mixed-effects model with absolute agreement (ICC (3,1)), for MSE for H -reflex and M -wave, H max and M max magnitudes, and stimulation intensities at H max and M threshold , at each of the three sampling rates (table 1 ). Stimulation intensity at H max and M threshold showed excellent agreement between the recruitment curve derived parameters from manual and automatic response delineation at the three sampling rates (ICC = 0.97–0.99). The H max and M max magnitudes showed good agreement (ICC = 0.75–0.88), while the MSE for M -wave showed poor to moderate agreement (ICC = 0.47–0.59), and MSE for H-reflex showed a moderate to good agreement (ICC = 0.61–0.85).

Table 1.
Interclass correlation coefficient (ICC (3,1)) values of agreement between recruitment curve derived parameters for manual vs. automated response delineation, at three sampling rates.
ICC interpretation: 0.5 (poor), 0.5–0.75 (moderate), 0.75–0.9 (good) and >0.9 (excellent).

3200 Hz640 Hz320 Hz
MSE H-reflex0.850.870.61
MSE M-wave0.590.480.47
H max magnitude0.850.870.88
M max magnitude0.770.840.75
Stimulation intensities at H max0.990.990.99
Stimulation intensities at M threshold0.980.970.98

Equivalence confidence interval (TOST framework): Equivalence between the legacy (3200 Hz) and portable (640 Hz) systems was assessed using paired differences and prespecified equivalence bounds of ± 1 mA.

For stimulation intensity at H max , the 90% confidence interval for the paired mean difference was [−0.032, 0.038] mA for manual response delineation and [−0.031, 0.031] mA for automated delineation; both fell well within the equivalence bounds, supporting practical equivalence between systems. For stimulation intensity at M threshold , the 90% confidence intervals were [−0.051, 0.150] mA for manual delineation and [−0.168, 0.112] mA for automated delineation. These also fell entirely within the prespecified equivalence bounds.

Pseudo-online assessment in individual with neurological injury: The retrospective analysis on the data from the individual with neurological injury showed typical H -reflex and M -wave recruitment curves (figure 9 ). We observe a small change in the H -reflex residuals at lower sampling rates (6.1% at 640 Hz and 22.9% at 320 Hz) and a relatively larger change in the M -wave residuals (13.3% at 640 Hz and 76.92% at 320 Hz). A small decrease was observed in the H max (−5.1% at 640 Hz and −12.9% at 320 Hz) and M max (0.1% at 640 Hz and −4.1% at 320 Hz) magnitudes. The stimulation intensities at H max and M threshold had a negligible change –0.4% at 640 Hz and 1.5% at 320 Hz for H max and 0.6 at 640 Hz and 1.6% at 320 Hz for M threshold . These trends were similar to that observed in the participants with no neurological injury.

Иллюстрация — в первоисточнике ↗

Figure 9. Recruitment curves for H-reflex and M-wave measured in an individual with stroke: The M-wave residuals show some dispersion at 320 Hz at higher stimulation intensities, but mainly show that the curves do not change drastically with the lower sampling rate, such as at 640 Hz. The stimulation intensity at H max shows a negligible change of 0.4% and 1.5% and at M threshold 0.6% and 1.6% at 640 Hz and 320 Hz respectively.

Demonstration of real time portable C-EPOCS system: Here, we demonstrate the operational feasibility of recording the H and M recruitment curves with the portable setup (illustrated in figure 3 ). Here the EMG is recorded along with the EEG using a common hardware device—the EEG headset. Both the datasets are recorded at 600 Hz. This data was collected in 4 participants (age: 23–57 years, 2 women and 2 men) with no known neurological injury. The recruitment curves were observed to be the typical shape similar to the retrospective analysis dataset. A representative example is shown in figure 3 . The residuals (quantified by MSE) for the H and M recruitment curves were assessed as a measure of dispersion of points around the curve. The MSEs for H -reflex and M -wave curves were negligible—0.014 ± 0.005 and 0.010 ± 0.001 respectively, when analyzed with the investigator selected response windows; and 0.018 ± 0.006 and 0.013 ± 0.003 respectively, with the automated response delineation.

Discussion

The C-EPOCS system is designed to provide real-time feedback based on cortical responses to individual trials. However, these single-trial cortical signals typically have a low SNR and are highly susceptible to artifacts and background noise (Jiang et al 2019 ). This poses challenges for real-time applications, where feedback must be timely and accurate without extensive averaging or post-processing.

In conventional protocols, the intensity of electrical stimulation is typically determined using subjective measures, such as visible muscle twitches or reported sensory perception (Kato et al 2023 ). However, the nerve excitation can vary across sessions due to changes in electrode positioning, participant posture, muscle tone, or amount of involuntary contraction—factors that are especially difficult to control in individuals with brain or spinal cord injuries. Therefore, despite maintaining a constant stimulation current, the actual stimulation received by the nerves can differ across sessions, introducing variability in afferent input and affecting the ability to track intervention-related cortical changes over time.

To address this, it can be useful to objectively assess and standardize afferent excitation across sessions. Inspired by established H -reflex conditioning protocols, our previous work (Gupta et al 2025a , 2025b ) described a procedure that uses H -reflex and M -wave recruitment curves to identify a target stimulation intensity that elicits consistent single trial cortical responses. However, these methods were developed using high-resolution EMG recordings sampled at 3200 Hz, requiring a component-heavy setup that limits portability and usability in non-laboratory environments.

In this study, we explored whether the same objective procedures could be adapted for a more portable system—one that combines EEG and EMG data acquisition into a single device, typical of mobile neurotechnology platforms. A key trade-off in such systems is the reduced sampling rate, which can be 5–10 times lower than that used in traditional high-fidelity setups.

Despite this limitation, our results show that H -reflex and M -wave recruitment curves can still be generated using low-resolution EMG signals, enabling the objective determination of target stimulation intensity even in a portable setting. This makes it possible to standardize afferent input across sessions, supporting more stable cortical responses and improving the interpretability of intervention outcomes.

Feasibility of maintaining effective afferent excitation with low-resolution EMG: Results indicate that EMG signals sampled at rates five times lower than the standard 3200 Hz (i.e. ∼600–640 Hz) can still be used effectively to determine target stimulation intensity—the key parameter for maintaining consistent afferent excitation across sessions. Under these conditions, the stimulation intensity required to evoke comparable reflex responses remained largely unchanged, supporting the feasibility of using lower-resolution EMG for this specific application.

However, we also observed that further reductions in sampling rate—such as 10x lower (∼320 Hz)—led to increased dispersion in responses at higher stimulation intensities, making the recruitment curves less reliable. The H -reflex, which is the response of interest in this setup, has positive- and negative-going peaks separated by about 5 ms. This translates into a fundamental frequency of approximately 100 Hz, as observed across subjects and reported in a related study (McKinnon et al 2023 ). At the lowest EMG sampling frequency, we currently consider, 320 Hz, the Nyquist frequency is 160 Hz. To perform appropriate anti-aliasing before downsampling, we used a low-pass filter with a cutoff a little below this, at 100 Hz, to ensure that signals approaching the Nyquist frequency were already strongly attenuated. Therefore, at the 320 Hz sampling frequency, the anti-alias filter just started to impinge on the signal of interest. For H -reflex measurement, it would not be advisable to consider sampling rates any lower than this, since the signal of interest would likely be lost. Quantitative parameters such as H -reflex and M -wave magnitudes were notably affected at lower sampling rates, likely due to such loss of waveform fidelity. These distortions introduce challenges in applications where precise measurement of response amplitude or latency is required, such as in H -reflex-based operant conditioning studies (Thompson et al 2009 , 2013 , Thompson and Wolpaw 2021 ). In such cases, low-resolution EMG should be avoided, and higher sampling rates are recommended to preserve signal accuracy.

We also attribute the increased residuals and reduced response amplitudes to the loss of temporal resolution in measuring the stimulus trigger onset, caused by digitization limitations at lower sampling rates. This imprecision results in jitter in the estimated onset of the H- reflex and M -wave, effectively spreading the response time window and reducing the sharpness of the detected waveform. To mitigate this issue, we assessed whether the stimulus artifact—a large electrical signal that immediately follows stimulation—could be used as a reference for trigger alignment, to compensate for timing inaccuracies and improve the reliability of response detection even at lower sampling rates. However, a retrospective stimulus-artifact-anchored-realignment was not found to fully resolve the issue. Therefore, we recommend avoiding sampling rates that substantially reduce the temporal resolution of the trigger onset and response measurement to minimize inaccuracies.

Applicability of automated response delineation algorithms: Accurate identification of M -wave and H -reflex responses is essential for obtaining the recruitment curves and determining the target stimulation intensity for the C-EPOCS system. However, manual delineation of these responses is subject to inter-rater variability, inconsistent thresholds, and potential inaccuracies, especially when EMG signals are noisy and/or responses are atypical or small. This subjectivity can introduce error into the measurement of key parameters. Algorithm-based delineation methods offer a consistent and objective alternative, reducing the variability introduced by manual marking. Prior work, such as McKinnon et al ( 2023 ), has shown the benefits of automated approaches in improving the reproducibility and robustness of H -reflex and M -wave quantification, as used on high resolution EMG data (recorded at 3200 Hz sampling rate).

In this study, we demonstrate that an automated response delineation algorithm can be successfully applied even when using low-resolution EMG signals (i.e. 5–10 × lower sampling rate, such as 640 and 320 Hz)—a common limitation in portable or wireless biosignal acquisition systems. While the clarity of the M -wave and H -reflex responses may deteriorate at lower sampling rates, the algorithm remains robust enough to identify these responses and generate recruitment curves in real time, without the need for extensive post-processing. This was supported by ICC and Bland–Altman analysis, which showed agreement between the two approaches for response delineation. This finding supports the feasibility of integrating automated response processing into portable C-EPOCS setups, where real-time performance and reduced reliance on expert supervision can be useful. Future work may further improve algorithmic performance by including signal enhancement techniques or addressing trigger jitter issues associated with low-resolution signals.

Recommended features for EEG-based acquisition in portable C-EPOCS systems: The selection of an EEG-based biosignal acquisition system is a critical component in the portable C-EPOCS setup. Below are the key features to consider when evaluating such a system: a) Reliable signal acquisition: The system must reliably capture both cortical and muscle activity with minimal noise and latency, while being compact and user-friendly for out-of-laboratory use. In particular, the use of EMG-mode with the EEG system can increase overall power consumption and reduce available headset battery life, and this should be considered during experimental design. Additionally, simultaneous acquisition of EMG data alongside EEG may increase CPU load and place additional demands on wireless transmission, potentially affecting stability and packet loss. These factors should be considered when selecting acquisition hardware. Systems that are specifically benchmarked for concurrent EEG and EMG acquisition are recommended. b) High sampling rate: support for multichannel biosignal recording at a sampling rate of 600 Hz or more is important. This higher temporal resolution will enable accurate capture of fast, transient signals such as M -waves and H -reflexes—key components in a C-EPOCS setup—where standard EEG sampling rates may be insufficient. c) Integrated pre-amplifiers: pre-amplifiers integrated directly at the electrode level can be useful to reduce motion artifacts and enhance signal fidelity, for single trial responses, especially in ambulatory settings or when working with individuals with injuries, where environmental noise and participant movement are more pronounced. d) Consistent electrode placement: A robust and repeatable method for electrode placement and positioning is important to ensure consistent EEG signal quality across sessions. Variability in placement can significantly affect interpretation of cortical responses, particularly during longitudinal tracking. e) EEG-EMG signal isolation: isolation between EEG and EMG acquisition pathways is critical. Without it, electrical stimulation artifacts detected by EMG electrodes may contaminate EEG recordings. Hardware-level isolation or signal routing is recommended. f) Signal quality and synchronization: high common mode rejection ratio and high SNR are necessary for both EEG and EMG channels to ensure clean recordings in non-shielded environments. At least one isolated digital I/O port is also essential for receiving stimulation triggers and maintaining precise stimulus-response timing. g) Platform compatibility and portability: compatibility with real-time platforms such as BCI2000 will enable integrated stimulus control, signal monitoring, and feedback generation. The system should be portable, with amplifiers and digitization components built into the headset to reduce external components, minimize setup time, and increase usability in clinical or home-based settings.

Together, these hardware and software features form the foundation for a robust, portable C-EPOCS system that can support real-time neurofeedback and rehabilitation applications outside traditional lab environments. A more practical and streamlined C-EPOCS setup will also enable integrated research on cortical and spinal responses, expanding its utility for multi-system neurorehabilitation studies.

Limitations: The retrospective analysis involved the application of low-pass filters prior to down sampling, to prevent aliasing. This preprocessing step can overestimate the effect of reduced sampling rate, depending on the filters used. In contrast, data acquisition systems that are designed to record signals at lower sampling rates often include dedicated hardware and software filters tuned for those rates. These may introduce less distortion or signal attenuation compared to retrospective digital filtering. The real-time data collected at 600 Hz showed smaller residuals than the retrospective analysis of data acquired at a similar sampling rate of 640 Hz.

It should be noted that differences in gain settings of the acquisition systems can influence absolute amplitudes for the H -reflex and M -wave responses and, in some cases, latency estimates. However, these effects would systematically apply across all stimulation intensities within a recruitment curve. As our primary outcome for C-EPOCS is the determination of stimulation intensity based on the shape and inflection characteristics of the recruitment curve, uniform scaling or small latency shifts would not be expected to alter the derived target intensity.

Future work: Ongoing advancements in technology for recording brain and muscle signals, such as smaller setups with fewer channels, and wearable systems that deliver controlled peripheral stimulation, could further reduce the C-EPOCS system footprint. Addressing issues like trigger onset jitter at lower sampling rates may help overcome challenges associated with low-resolution signals. Further studies will evaluate the feasibility of using a portable C-EPOCS system to measure afferent responses or deliver rehabilitation training outside the lab, such as in rehabilitation centers, which may present noisier environments and affect setup time and real time data acquisition.

Conclusion

This study outlines the customizations and evaluations to adapt the cortical-EPOCS system into a portable platform for real-time brain-computer interface applications. The results demonstrate that the current component-heavy C-EPOCS setup can be effectively streamlined by using a single recording unit for both EEG and EMG acquisition—with minimal compromise to C-EPOCS applications—despite the reduced resolution of EMG signals. This setup can help maintain effective afferent excitation, supporting enhanced response stability and longitudinal tracking—both essential for cortical evoked response-based neurofeedback training.

Acknowledgments

We thank all the participants for their time and participation. We thank Dr Wolpaw for his support for IRB and NCAN laboratory resources. We thank Ms. Lisa Revette for her help in the EEG headset drawings for the figures. We acknowledge the support in funding and resources from The National Institutes of Health (NIH-NIBIB) award P41 EB018783 (Wolpaw); NYS Spinal Cord Injury Research Board C37714GG (Gupta) and C38338GG (Wolpaw) and the Stratton Veterans Affairs Medical Center.

Data availability statement

The data cannot be made publicly available upon publication due to legal restrictions preventing unrestricted public distribution. The data that support the findings of this study are available upon reasonable request from the authors.

Supporting information available at: https://doi.org/10.1088/2057-1976/ae6fc1/data1 .

Ethical Considerations

The study was approved by the local Institutional Review Board at Stratton VA Medical Center, Albany, NY (Protocol #1584762). All data were collected with written informed consent. Participation was voluntary with ability to opt out at any time. The research was conducted in accordance with the principles embodied in the Declaration of Helsinki and in accordance with local IRB requirements.

Conflict of interest

Authors do not have any conflicts of interest to disclose.

Use of AI tools

Chatgpt model 4o was used for proofreading, to check grammar, tense, and punctuation, using an instruction ‘check English’. The updated text and the specific improvements were duly checked before they were included in the manuscript.

References

Alkhoury L Scanavini G Swissler P Shah S A Gupta D Jeremy Hill N 2024 SyncGenie: a programmable event synchronization device for neuroscience research HardwareX 21 e00619 10.1016/j.ohx.2024.e00619 39834745 PMC11743915

Brangaccio J A et al 2025 Soleus H-reflex size versus stimulation rate in the presence of background muscle activity: a methodological study Exp. Brain Res. 243 215 10.1007/s00221-025-07149-x 40974412 PMC12679875

Chavarriaga R Sobolewski A Millán Jdel R 2014 Errare machinale est: the use of error-related potentials in brain-machine interfaces Front. Neurosci. 8 208 10.3389/fnins.2014.00208 25100937 PMC4106211

Cohen J 1977 Statistical Power Analysis for the Behavioral Sciences Routledge

Gomez-Andres A Cerda-Company X Cucurell D Cunillera T Rodríguez-Fornells A 2024 Decoding agency attribution using single trial error-related brain potentials Psychophysiology 61 e14434 10.1111/psyp.14434 37668293

Gupta D Brangaccio J A Hill N J 2026 Methodological optimization for eliciting robust median nerve somatosensory evoked potentials for realtime single trial applications J. Neural Eng. 23 016006 10.1088/2057-1976/ae6fc1 PMC12784216 41439390

Gupta D Brangaccio J Mojtabavi H Wolpaw J Hill N J 2025a Frequency dependence of cortical somatosensory evoked response to peripheral nerve stimulation with controlled afferent excitation J. Neural Eng. 22 026035 10.1088/1741-2552/adc204 PMC11951476 40101361

Gupta D Brangaccio J Mojtabavi H Wolpaw J Hill N J 2025b Extraction of robust single-trial somatosensory evoked potentials for non-invasive brain computer interfaces J. Neural Eng. 22 056004 10.1088/1741-2552/adfd8a PMC12405709 40834866

Hill N J Gupta D Eftekhar A Brangaccio J A Norton J J S McLeod M Fake T Wolpaw J R Thompson A K 2022 The evoked potential operant conditioning system (EPOCS): a research tool and an emerging therapy for chronic neuromuscular disorders J. Vis. Exp. 186 10.3791/63736 10.3791/63736 PMC9948679 36094287

Jiang X Bian G B Tian Z 2019 Removal of artifacts from EEG signals: a review Sensors 19 987 10.3390/s19050987 30813520 PMC6427454

Kato T Sasaki A Nakazawa K 2023 Short- and long-latency afferent inhibition of the human leg motor cortex by H-reflex subthreshold stimulation at the popliteal fossa Exp. Brain Res. 241 249 261 249–61 10.1007/s00221-022-06497-2 36481937 PMC9870969

Klem G Luders H Jasper H Elger C 1999 The ten-twenty electrode system of the International Federation Recommendations for the Practice of Clinical Neurophysiology: Guidelines of the Int. Federation of Clinical Physiology 52 Deuschl G Eisen A Electroencephalogr Clin Neurophysiol Suppl. 3 6 3–6 10590970

Koo T K Li M Y 2016 A guideline of selecting and reporting intraclass correlation coefficients for reliability research J. Chiropr. Med. 15 155 163 155–63 10.1016/j.jcm.2016.02.012 27330520 PMC4913118

Liljequist D Elfving B Skavberg Roaldsen K 2019 Intraclass correlation—a discussion and demonstration of basic features PLoS One 14 e0219854 10.1371/journal.pone.0219854 31329615 PMC6645485

McKinnon M L Hill N J Carp J S Dellenbach B Thompson A K 2023 Methods for automated delineation and assessment of EMG responses evoked by peripheral nerve stimulation J. Neural Eng. 20 ace6fb 10.1088/1741-2552/ace6fb PMC10445400 37437593

Mellinger J et al 2007 BCI2000: A General-Purpose Software Platform for BCI Research Dornhege G Millán J D R Hinterberger T McFarland D J Toward Brain-Computer Interfacing, MIT Press

Mojtabavi H Wolpaw J Gupta D Hardesty R 2025 Locomotor Skill Acquisition Through Repeated Adaptations to Bi-directional Walking on a Split-belt Treadmill Society of Neuroscience Annual Meeting (San Diego, California 15–19 November)

Palmieri R M Ingersoll C D Hoffman M A 2004 The Hoffmann reflex: methodologic considerations and applications for use in sports medicine and athletic training research J. Athl. Train. 39 268 277 268–77 16558683 PMC522151

Schalk G McFarland D J Hinterberger T Birbaumer N Wolpaw J R 2004 BCI2000: a general-purpose brain-computer interface (BCI) system IEEE Trans. Biomed. Eng. 51 1034 1043 1034–43 10.1109/TBME.2004.827072 15188875

Thompson A K Chen X Y Wolpaw J R 2009 Acquisition of a simple motor skill: task-dependent adaptation plus long-term change in the human soleus H-reflex J. Neurosci. 29 5784 5792 5784–92 10.1523/JNEUROSCI.4326-08.2009 19420246 PMC2696311

Thompson A K Cote R H Sniffen J M Brangaccio J A 2018 Operant conditioning of the tibialis anterior motor evoked potential in people with and without chronic incomplete spinal cord injury J. Neurophysiol. 120 2745 2760 2745–60 10.1152/jn.00362.2018 30207863 PMC6337029

Thompson A K Pomerantz F R Wolpaw J R 2013 Operant conditioning of a spinal reflex can improve locomotion after spinal cord injury in humans J. Neurosci. 33 2365 2375 2365–75 10.1523/JNEUROSCI.3968-12.2013 23392666 PMC3579496

Thompson A K Wolpaw J R 2021 H-reflex conditioning during locomotion in people with spinal cord injury J. Physiol. 599 2453 2469 2453–69 10.1113/JP278173 31215646 PMC7241089

Tomczak M Tomczak E 2014 The need to report effect size estimates revisited. An overview of some recommended measures of effect size Trends Sport Sci. 1 19 25 19–25

Valeriani M Restuccia D Le Pera D Barba C Tonali P 2000 Scalp distribution of the earliest cortical somatosensory evoked potential to tibial nerve stimulation: proposal of a new recording montage Clin. Neurophysiol. 111 1469 1477 1469–77 10.1016/S1388-2457(00)00342-4 10904229

Wirth C Dockree P M Harty S Lacey E Arvaneh M 2019 Towards error categorization in BCI: single-trial EEG classification between different errors J. Neural Eng. 17 016008 10.1088/1741-2552/ab53fe 31683267

Wolpaw J R 1987 Operant conditioning of primate spinal reflexes: the H-reflex J. Neurophysiol. 57 443 459 443–59 10.1152/jn.1987.57.2.443 3559687

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.