Fast parametric curve matching (FPCM) for automatic spike detection
Objective. Epilepsy is a widely spread neurological disease, whose treatment often requires resection of the pathological cortical tissue. Interictal spike analysis observed in the non-invasively collected EEG or MEG data offers an attractive way to localize epileptogenic cortical structures for surgery planning purposes. Interictal spike detection in lengthy multichannel data is a daunting task that is still often performed manually. This frequently limits such an analysis to a small portion of the data which renders the appropriate risks of missing the potentially epileptogenic region. While a plethora of automatic spike detection techniques have been developed each with its own assumptions and limitations, none of them is ideal and the best results are achieved when the output of several automatic spike detectors are combined. This is especially true in the low signal-to-noise ratio conditions. To this end we propose a novel biomimetic approach for automatic spike detection based on a constrained mixed spline machinery that we dub as fast parametric curve matching (FPCM). Approach. Using the peak-wave shape parametrization, the constrained parametric morphological model is constructed and convolved with the observed multichannel data to efficiently determine mixed spline parameters corresponding to each time-point in the dataset. Then the logical predicates that directly map to verbalized text-book like descriptions of the expected interictal event morphology allow us to accomplish the spike detection task. Main results. The results of simulations mimicking typical low SNR scenarios show the robustness and high receiver operating characteristic AUC values of the FPCM method as compared to the spike detection performed using more conventional approaches such as wavelet decomposition, template matching or simple amplitude thresholding. Applied to the real MEG and EEG data from the human patients and to rat ECoG data, the FPCM technique demonstrates reliable detection of the interictal events and localization of epileptogenic zones concordant with independent conclusions made by the epileptologist. Significance. Since the FPCM is computationally light, tolerant to high amplitude artifacts and flexible to accommodate verbalized descriptions of an arbitrary target morphology, it is likely to complement the existing arsenal of means for analysis of noisy interictal datasets.