An Inpainting Framework for Restoring the Fidelity of Electrocorticography Signals for Invasive Brain Computer Interfaces
Unreliable electrocorticography (ECoG) observations can impair brain-computer interface (BCI) decoding. We investigated restoration after such observations have been identified, using a controlled missing-observation benchmark. A denoising diffusion probabilistic model with RePaint inference (DDPM-RePaint), conditioned on electrode layout and stimulation-informed cortical-region labels, was compared with linear and spline interpolation, Wasserstein GAN with gradient penalty (WGAN-GP), and supervised masked-reconstruction U-Net. Acute intraoperative ECoG recordings from five participants were evaluated through eight session-held-out folds per participant, with three missing-observation patterns at 12.5% and 25% missingness. Performance was assessed by point-wise waveform fidelity, raw-amplitude and band-power Kullback-Leibler divergence (KLD), and finger-movement decoding with fixed clean-trained decoders. U-Net achieved the strongest point-wise waveform fidelity in all six conditions. DDPM-RePaint yielded the lowest raw-amplitude KLD across all conditions and the lowest mean band-power KLD in all 20 whole-channel condition-band combinations at the primary 100-ms window. DDPM-RePaint also achieved the highest mean downstream decoding correlation in all six conditions, with BH-FDR-supported advantages concentrated under whole-channel corruption. Under Block-Ch 25%, the zero-filled no-restoration Corrupt condition yielded a decoding correlation of 0.001 ± 0.037, compared with 0.497 ± 0.070 for DDPM-RePaint and 0.355 ± 0.097 for U-Net (DDPM-RePaint minus U-Net: +0.1422, BH-adjusted q = 0.021). The principal ranking divergence was largely retained in window-duration and targeted CAR-policy sensitivity analyses. These findings support evaluation-target-dependent ECoG restoration-prior selection in a five-participant, oracle-mask proof of concept.
Authors
- Marc M. Van Hulle (ORCID: https://orcid.org/0000-0003-1060-7044)
- Yihan Wu (ORCID: https://orcid.org/0000-0003-2856-3203)
- Jiawei Liao (ORCID: https://orcid.org/0000-0002-3809-3762)
- Ning Jiang (ORCID: https://orcid.org/0000-0003-1579-3114)
- Eva Calvo Merino (ORCID: https://orcid.org/0000-0002-8782-3856)
- Jiayuan He (ORCID: https://orcid.org/0000-0001-9915-2108)
- Qing Mao (ORCID: https://orcid.org/0000-0002-7156-5346)
- Qiang Sun (ORCID: https://orcid.org/0000-0002-1125-4706)
- Yuxin Quan (ORCID: https://orcid.org/0009-0003-0421-2254)
- Yihui Zhao (ORCID: https://orcid.org/0009-0004-0149-1056)
- Yuan Yang
- Tao Chang
Institutions
- Sichuan University (CN)
- West China Hospital of Sichuan University (CN)
- KU Leuven (BE)
Publication Details
- Journal
- IEEE Transactions on Neural Systems and Rehabilitation Engineering
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1109/tnsre.2026.3759545
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Fundamental Research Funds for the Central Universities
- West China Hospital, Sichuan University