A secondary analysis of clinical brainwave recordings has demonstrated that patient-specific calibration reliably improves future-session decoding of imagined leg movements in people with knee pain, whereas pretraining models on large external datasets fails to enhance performance. Published in Frontiers in Molecular Biosciences, the investigation evaluated whether machine learning models could identify movement-related cortical activity without forcing patients to repeatedly load a painful joint. Motor imagery, defined as the internal simulation of physical actions without overt execution, recruits frontoparietal and sensorimotor networks that overlap substantially with actual movement execution. Because persistent musculoskeletal pain can alter cortical sensory processing and motor control across frontal, cingulate, somatosensory, and sensorimotor regions, decoding these signals provides a non-invasive window into motor representation. However, the study revealed that generic population models achieve only modest accuracy when applied to unseen patients, and pretraining on outside brainwave repositories provides no measurable advantage over learning solely from target clinical data.
The research team conducted a rigorous retrospective evaluation using three publicly available electroencephalography, or EEG, repositories to examine how well decoders generalize across subjects, datasets, and clinical visits. The primary clinical target cohort, designated Zuo2025, consisted of thirty patients with knee pain who performed repeated left-leg and right-leg motor imagery tasks. Although the original source report described one hundred fifty nominal sessions comprising fifteen thousand trials, the frozen dataset available for analysis contained one hundred eighteen sessions and eleven thousand eight hundred complete trials, divided evenly between left and right leg imagery. The remaining thirty-two nominal sessions were absent from the frozen set and were not imputed or reconstructed. To assess external pretraining, the investigators incorporated two separate open-access datasets: MILimbEEG, which contributed eleven hundred fifty-two retained lower-limb trials across sixty participants, and PhysioNet EEGMMIDB, an effector-mismatched repository of left-versus-right hand fist imagery that yielded four thousand six hundred ninety-seven retained trials across one hundred eight participants after quality screening.
To permit valid cross-dataset comparisons without introducing processing artifacts, all recordings were harmonized into a standardized six-electrode montage consisting of frontal channels F3, Fz, and F4 alongside central sensorimotor channels C3, Cz, and C4. Signals across all datasets were bandpass-filtered between 8 and 30 Hertz, capturing the characteristic mu- and beta-band oscillatory rhythms associated with movement preparation and imagery, and resampled to a uniform rate of 125 Hertz. Analysis was restricted to an identical time window spanning 0.5 to 2.5 seconds following imagery onset, creating a uniform data matrix of six channels by two hundred fifty temporal samples per trial. A common-channel average reference was applied across the harmonized montage, and external trials exceeding a maximum absolute amplitude of 75 microvolts were excluded during source data cleaning. The authors noted that restricting data to six common channels was necessary for cross-dataset compatibility, even though discarding broader spatial coverage inevitably sacrificed spatial resolution present in the original multichannel arrays.
Evaluating model performance required a strict leave-one-subject-out scheme across the thirty clinical patients to ensure that testing remained completely independent of model development. In each outer fold, all recorded sessions from one patient were set aside exclusively for evaluation, while the remaining twenty-nine patients formed the training and validation cohort. The held-out patient contributed zero data to parameter fitting, feature normalization, hyperparameter selection, or early stopping criteria. Under this uncompromising protocol, the compact convolutional neural network architecture known as EEGNet achieved the highest subject-independent balanced accuracy at 0.5718, with a 95 percent bootstrap confidence interval spanning 0.5574 to 0.5869. This performance significantly exceeded classical machine learning pipelines, including an oracle-approximating shrinkage regularized common spatial pattern linear discriminant analysis model that reached a mean balanced accuracy of 0.5369, and a Riemannian tangent-space logistic regression framework that attained 0.5443. A repeated-measures Friedman test confirmed a statistically significant overall model effect with a p-value of 0.0005.
To verify that the modest decoding accuracy reflected genuine neurophysiological task information rather than methodological artifacts or statistical bias, the investigators implemented a negative control analysis using label permutation. By randomly permuting the movement laterality labels within each training patient while preserving original class balances, the researchers eliminated the relationship between electrophysiological signals and intended movement direction. When re-evaluated under this permuted condition, the subject-independent performance of EEGNet plummeted directly to chance level, yielding a mean balanced accuracy of 0.5018 with a standard deviation of 0.0267 and a median of 0.4950. The resulting mean difference between the true and permuted models was 0.0701, supported by a 95 percent confidence interval of 0.0524 to 0.0867. This definitive return to chance confirmed that the unpermuted network was detecting an authentic, albeit subtle, population-level cortical signal distinguishing left-leg from right-leg motor imagery in patients experiencing knee pain.
Despite common assumptions that pretraining on larger datasets improves generalization in deep learning, external transfer learning failed across all tested conditions. When EEGNet was pretrained on the nominally task-matched MILimbEEG lower-limb dataset before fine-tuning on the twenty-nine development patients, the resulting mean balanced accuracy on held-out target patients was 0.5674, reflecting a paired difference of minus 0.0045 compared to target-only training. Pretraining on the larger PhysioNet upper-limb dataset produced a mean balanced accuracy of 0.5582, corresponding to a paired reduction of minus 0.0136. Most strikingly, sequential pretraining, wherein models were initialized on PhysioNet, adapted to MILimbEEG, and then fine-tuned on the clinical target, yielded the poorest outcome with a mean balanced accuracy of 0.5510. This sequential strategy produced a statistically significant degradation compared to target-only models, showing a paired drop of minus 0.0208 and an adjusted p-value of 0.0173 after Holm correction, demonstrating that accumulating mismatched external features can impair target representation.
Internal validation of the source datasets provided critical mechanistic insight into why external transfer failed to enhance clinical decoding. PhysioNet demonstrated robust, highly reproducible subject-independent decodability in its own domain under grouped cross-validation, achieving a mean balanced accuracy of 0.6243 with a p-value below 0.0001 against chance. Nevertheless, initial representations learned from this upper-limb task failed to transfer productively to the knee pain population, likely due to substantial effector mismatch and divergent recording configurations. Conversely, MILimbEEG exhibited poor internal generalizability across subjects, registering a grouped cross-validation accuracy of only 0.4960 under the harmonized six-channel representation. Within-participant MILimb decoding was similarly constrained, reaching 0.5193 with common spatial patterns and 0.4847 with Riemannian classification. These diagnostic checks revealed that MILimb offered negligible transferable signal to begin with, whereas PhysioNet contained robust source-specific features that were fundamentally incompatible with the target clinical setting.
In marked contrast to external pretraining, personalizing decoders using patient-specific calibration yielded clear, statistically supported performance gains across future recording sessions. This longitudinal calibration analysis focused on twenty-three patients who completed an initial visit and at least one subsequent testing session, locking later sessions solely for evaluation. Uncalibrated models applied across these later sessions yielded a baseline balanced accuracy of 0.5664. Implementing unlabelled adaptive batch normalization to update running statistics produced negligible improvement, reaching 0.5680. However, fine-tuning the final classification layer using labelled trials from session one produced progressive performance gains: five trials per class reached 0.5713, ten trials reached 0.5731, twenty trials reached 0.5769, and fifty trials per class attained 0.5825. This fifty-trial condition represented an absolute gain of 0.0161 over uncalibrated decoding, with a 95 percent confidence interval of 0.0075 to 0.0265 and a Holm-adjusted p-value of 0.0082, establishing that initial-visit calibration provides enduring longitudinal benefits.
Electrode occlusion analyses and artifact robustness audits further clarified how the trained architectures functioned across the scalp. Evaluating the frozen models across subsets of electrodes demonstrated that central sensorimotor channels C3, Cz, and C4 were substantially more informative than frontal channels F3, Fz, and F4. Sensorimotor channels alone achieved a mean balanced accuracy of 0.5333, significantly exceeding the frontal-only accuracy of 0.5143 by 0.0190 with an adjusted p-value of 0.0053. Retaining the complete six-channel montage provided the best performance at 0.5718, outperforming sensorimotor channels alone by 0.0386 and frontal channels alone by 0.0576. Meanwhile, an artifact sensitivity analysis revealed that only fourteen of the eleven thousand eight hundred clinical test trials exceeded the 75-microvolt amplitude threshold, affecting eight of the thirty patients. Excluding these rare high-amplitude epochs produced an imperceptible mean change of plus 0.00014, confirming that the primary subject-independent findings were not driven by transient voltage spikes or contamination.
The authors emphasized several methodological boundaries and clinical caveats when interpreting these findings for future medical applications. With an overall balanced accuracy remaining below sixty percent, the current offline decoding pipeline cannot support an autonomous clinical brain-computer interface. Furthermore, because patient-level clinical severity metrics such as visual analogue scale pain scores, symptom durations, and functional knee scores were inaccessible in the machine-readable metadata, the researchers could not assess how decoding varied with individual clinical impairment. The cohort encompassed heterogeneous etiologies, including degenerative osteoarthritis, overuse injuries, and traumatic knee conditions, preventing uniform classification as chronic pain. Moreover, collecting fifty calibration trials per class required a full one-hundred-trial session, which could impose fatigue or pain on patients during physical rehabilitation. The investigators concluded that external pretraining should be tested against target-only training and that longitudinal clinical EEG studies should specify how patient-specific calibration is evaluated.
Subject of Research: Cross-session calibration and external pretraining for motor-imagery electroencephalography decoding in patients with knee pain
Article Title: Clinical transportability of motor-imagery EEG in knee pain: external pretraining and patient-specific calibration
Article References: Chen, Q., Tang, Z., Wang, J., Zang, F., & Wang, H. (2026). Clinical transportability of motor-imagery EEG in knee pain: external pretraining and patient-specific calibration. Frontiers in Molecular Biosciences, 13, Article 2034600. https://doi.org/10.3389/fmolb.2026.2034600
Image Credits: AI Generated
DOI: 10.3389/fmolb.2026.2034600
Keywords: motor-imagery EEG, knee pain, electroencephalography, brain-computer interfaces, transfer learning, domain adaptation, patient-specific calibration, EEGNet, leave-one-subject-out, orthopedic rehabilitation, sensorimotor cortex, common spatial patterns, Riemannian geometry, cross-dataset decoding, movement representation, neural decoding
News Source: Cassandra Pierce. (November 30, 2026). First-Session Calibration Improves Later Motor-Imagery EEG Decoding in Knee Pain. Scienmag.



