02837nas a2200169   4500008004100000245011000041210006900151300001100220490000700231520221500238100001702453700002102470700002102491700002102512700001302533856012102546       2025                        eng d00aExtracting robust single-trial somatosensory evoked potentials for non-invasive brain computer interfaces0 aExtracting robust singletrial somatosensory evoked potentials fo  a0560040 v223 aObjective: Reliable extraction of single-trial somatosensory evoked potentials (SEPs) is essential for developing brain-computer interface (BCI) applications to support rehabilitation after brain injury. For real-time feedback, these responses must be extracted prospectively on every trial, with minimal post-processing and artifact correction. However, noninvasive SEPs elicited by electrical stimulation at recommended parameter settings (0.1–0.2 msec pulse width, stimulation at or below motor threshold, 2–5 Hz frequency) are typically small and variable, often requiring averaging across multiple trials or extensive processing. Here, we describe and evaluate ways to optimize the stimulation setup to enhance the signal-to-noise ratio (SNR) of noninvasive single-trial SEPs, enabling more reliable extraction. Approach: SEPs were recorded with scalp electroencephalography in tibial nerve stimulation in thirteen healthy people, and two people with CNS injuries. Three stimulation frequencies (lower than recommended: 0.2 Hz, 1 Hz, 2 Hz) with a pulse width longer than recommended (1 msec), at a stimulation intensity based on H-reflex and M-wave at Soleus muscle were evaluated. Detectability of single-trial SEPs relative to background noise was tested offline and in a pseudo-online analysis, followed by a real-time demonstration. Main results. SEP N70 was observed predominantly at the central scalp regions. Online decoding performance was significantly higher with Laplacian filter. Generalization performance showed an expected degradation, at all frequencies, with an average decrease of 5.9% (multivariate) and 6.5% (univariate), with an AUC score ranging from 0.78–0.90. The difference across stimulation frequencies was not significant. In individuals with injuries, AUC of 0.86 (incomplete spinal cord injury) and 0.81 (stroke) was feasible. Real-time demonstration showed SEP detection with AUC of 0.89. Significance This study describes and evaluates a system for extracting single-trial SEPs in real-time, suitable for a BCI-based operant conditioning. It enhances SNR of individual SEPs by alternate electrical stimulation parameters, dry headset, and optimized signal processing.1 aGupta, Disha1 aBrangaccio, Jodi1 aMojtabavi, Helia1 aWolpaw, Jonathan1 aHill, NJ  uhttps://www.neurotechcenter.org/publications/2025/extracting-robust-single-trial-somatosensory-evoked-potentials-non