TL;DR
This paper introduces a novel dictionary learning algorithm to effectively remove electrical stimulation artifacts from intracranial neural recordings. By learning artifact "templates" from the data itself, the method robustly recovers underlying neural signals, paving the way for more accurate and reliable brain-computer interfaces and neuroscientific research.
What Problem Does This Paper Address?
Direct electrical stimulation of the brain is a powerful tool for research and clinical applications like neuroprosthetics and treating neurological disorders. However, when recording neural activity during stimulation, the electrical artifacts generated by the stimulation are often orders of magnitude larger than the neural signals of interest. This "masking" effect makes it incredibly difficult to interpret the true neural responses. Existing methods for artifact removal often struggle with the complexity and variability of these artifacts, especially when dealing with trains of stimulation pulses across multiple recording channels. This paper aims to solve this by developing a more robust and adaptable method for recovering neural signals in the presence of these dominant artifacts.
Methods
The core of the paper's contribution is a data-driven approach using dictionary learning and unsupervised clustering. Here's a breakdown:
- Artifact Detection and Extraction: The algorithm first identifies time windows containing stimulation artifacts. It leverages timing information from channels with the largest artifact magnitudes to detect onset and offset. Individual artifact pulses within these windows are then extracted.
- Unsupervised Clustering (HDBSCAN): These extracted artifact pulses are then fed into a modified HDBSCAN algorithm. This clustering technique groups similar artifact waveforms together, creating a "dictionary" of distinct artifact templates. This is a key innovation, as it learns artifact patterns directly from the data, rather than relying on pre-defined models or assumptions.
- Template Matching and Subtraction: Each individual artifact pulse is then compared to the learned templates. The closest matching template is scaled to account for amplitude variations and subtracted from the raw artifact pulse. This process effectively removes the artifact, leaving the underlying neural signal.
- Channel-wise Independence: A significant advantage is that this process can be applied independently to each channel, avoiding the need for complex cross-channel synchronization or assumptions about spatial artifact spread.
Datasets
The authors utilized several real human intracranial recording datasets for evaluation:
- Electrocorticographic (ECoG) grids: Used in subjects with medically intractable epilepsy.
- Deep Brain Stimulation (DBS) leads: Used in patients undergoing DBS lead placement.
- Specific experimental datasets:
- Haptic touch dataset: Comparing responses to direct electrical stimulation of the somatosensory cortex (S1) with natural peripheral haptic touch.
- Non-uniform train dataset: Featuring stimulation trains with varying pulse amplitudes.
- Button press dataset: Analyzing motor cortex activity during a button pressing task with and without concurrent S1 stimulation.
- Rubber hand illusion dataset: Used to illustrate inadequate sampling for stimulation epoch processing.
The authors have made all their code and data publicly available, aiming to serve as benchmark datasets for future research.
Key Insights and Ideas
- Learning Artifacts from Data is Powerful: The most significant insight is that by learning artifact "templates" directly from the recorded data using unsupervised clustering, the algorithm can adapt to the complex and variable nature of stimulation artifacts, outperforming methods that rely on fixed models or assumptions.
- Robustness Across Channels: The method's ability to process channels independently is crucial for real-world applications where perfect synchronization or identical artifact morphology across all electrodes is unlikely.
- Handling Stimulation Trains: The algorithm is specifically designed to handle trains of stimulation pulses, which are common in therapeutic applications like DBS, a significant improvement over methods that might struggle with repeated, closely spaced artifacts.
- Physiologically Meaningful Recovery: The recovered signals were shown to contain interpretable neural activity, demonstrating the method's ability to extract meaningful biological information.
Key Results
The paper demonstrates the effectiveness of their dictionary learning approach across various datasets:
- Successful Signal Recovery: The method successfully recovered meaningful neural signatures in both ECoG and DBS recordings, showing interpretable time-series and time-frequency responses.
- Comparison to Other Methods: When compared to interpolation, low-pass filtering, and ICA, the proposed dictionary learning method showed superior performance in artifact removal while preserving neural signals, particularly in complex scenarios like non-uniform stimulation trains.
- Validation with Real Data: The authors emphasize that their method was validated on real human data, not just synthetic datasets, providing strong ecological validity.
- Open-Source Availability: The availability of code and data is a significant contribution, enabling reproducibility and further development in the field.
Limitations and Future Work
- Sampling Rate Dependency: The authors acknowledge that their algorithm performs poorly when stimulation waveforms are not well-resolved due to a low sampling rate (e.g., 1221 Hz). This indicates a limitation in handling undersampled data.
- Oversampling: The method relies on adequate oversampling to effectively distinguish artifact pulses.
- Parameter Tuning: While default parameters perform reasonably well, optimal performance might be achieved with channel-specific parameter tuning. Future work could involve developing automated parameter search strategies.
- Other Artifact Types: The current work primarily addresses single-pulse artifacts. Future research could explore methods to better handle onset/offset artifacts, capacitive charge buildup, and other complex artifact influences.
- Extending to Other Electrode Types: The authors suggest extending the approach to penetrating depth electrodes and micro ECoG arrays, expecting similar behavior for artifact processing.
- Hybrid Approaches: Combining model-based and data-driven approaches, as well as exploring deep learning, are suggested as future avenues for constructing more principled artifact templates.
Summary updated