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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Inpainting Framework for Restoring the Fidelity of Electrocorticography Signals for Invasive Brain Computer Interfaces

Marc M. Van Hulle, Yihan Wu, Jiawei Liao, Ning Jiang et al.
IEEE Transactions on Neural Systems and Rehabilitation Engineering
EEG and Brain-Computer Interfaces
article

An Inpainting Framework for Restoring the Fidelity of Electrocorticography Signals for Invasive Brain Computer Interfaces

Marc M. Van Hulle, Yihan Wu, Jiawei Liao, Ning Jiang, Eva Calvo Merino, Jiayuan He, Qing Mao, Qiang Sun, Yuxin Quan, Yihui Zhao, Yuan Yang, Tao Chang
article en

Abstract

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.

IEEE Transactions on Neural Systems and Rehabilitation EngineeringVol. PP
Sichuan University (CN), West China Hospital of Sichuan University (CN), KU Leuven (BE)
National Natural Science Foundation of China, Fundamental Research Funds for the Central Universities, West China Hospital, Sichuan University
Good health and well-being
EEG and Brain-Computer Interfaces
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon