Abstract
Combining Transcranial Magnetic Stimulation (TMS) with Electroencephalography (EEG) is a powerful method for studying brain connectivity, but it is hindered by massive electromagnetic artifacts that mask early neuronal responses. This study evaluates three correction methods—FastICA, PCA, and a nonlinear Gap Filling approach—using a "ground truth" superposition dataset. The results demonstrate that the local Gap Filling method outperforms global blind source separation techniques by preserving signal integrity outside the artifact window, though its predictive accuracy decreases during complex brain states like active seizures.
Introduction
Transcranial Magnetic Stimulation (TMS) is a non-invasive tool used to probe brain function by delivering high-intensity magnetic pulses. When paired with EEG, it allows researchers to observe the brain's immediate response to stimulation. However, the magnetic pulse induces an electromagnetic artifact in EEG sensors that is several orders of magnitude larger than actual brain activity. This artifact can last up to 30 milliseconds, effectively "blinding" researchers to the brain's initial reaction. A significant challenge in the field is the lack of a "ground truth" to verify if correction algorithms are accurately recovering the underlying signal or merely introducing new distortions.
Methods
The study compared three distinct algorithmic approaches for artifact removal:
- FastICA (Independent Component Analysis): A standard tool that attempts to unmix the recording into independent sources to discard noise components.
- PCA Model: Uses Principal Component Analysis combined with a forward model of the head to separate artifact topographies from neuronal ones.
- Gap Filling: A local state space model that treats the artifact window as a total loss (a gap) and uses nonlinear time-series techniques to predict the missing signal based on data immediately before and after the pulse.
To evaluate these methods, the authors employed a superposition approach. They took clean EEG signals and manually added a representative TMS artifact, creating a known "true" signal for comparison.
The algorithms were tested across three scenarios using high-density EEG (60 channels) from a patient with Juvenile Absence Epilepsy: resting EEG, TMS at the onset of an epileptiform discharge (ED), and TMS during mid-ED activity.
Results and Discussion
The researchers found that global methods like ICA and PCA often failed to isolate the massive TMS artifact without distorting the clean brain signals outside the 30ms window. In contrast, the Gap Filling method was more successful because it is "local," only affecting the corrupted window while leaving the rest of the recording untouched.
Key insights from the evaluation include:
- Locality is King: By only modifying the corrupted window, Gap Filling avoids the spectral and temporal distortions often introduced by global transforms.
- Predictive Accuracy: Using Normalized Root Mean Square Error (NRMSE), Gap Filling achieved a score of ~1.35 for resting EEG. However, performance dropped significantly to ~2.65 during mid-ED activity, highlighting the difficulty of predicting chaotic, high-amplitude seizure waves.
- Nonlinear Dynamics: Unlike simple linear interpolation, the state space model captures the brain's dynamical rhythms, allowing it to recreate oscillations that look and act like real EEG.
Conclusion
Local, nonlinear gap-filling methods provide a superior alternative to traditional blind source separation for TMS-EEG artifact correction. While these methods excel in stable brain states, further development is needed to improve their performance during unpredictable events like seizures and to minimize spectral distortions in the reconstructed signal.
Summary updated