This study proposes a closed-loop brain-machine interface (BMI) based on spinal cord stimulation to inhibit epileptic seizures, applying a semi-supervised machine learning approach that learns from Local Field Potential (LFP) patterns acquired on the pre-ictal (preceding the seizure) condition.
 
Approach. LFP epochs from the hippocampus and motor cortex are band-pass filtered from 1 to 13 Hz, to obtain the time-frequency representation using the continuous Wavelet transform, and successively calculate the phase lock values (PLV). As a novelty, the Z-score-based PLV normalization using both modified k-means and Davies-Bouldin's measure for clustering is proposed here. Consequently, a generic seizure's detector is calibrated for detecting seizures on the normalized PLV, and enables the spinal cord stimulation for periods of 30 s in a closed-loop, while the BMI system detects seizure events. To calibrate the proposed BMI, a dataset with LFP signals recorded on five Wistar rats during basal state and epileptic crisis was used. The epileptic crisis was induced by injecting pentylenetetrazol (PTZ). Afterwards, two experiments without/with our BMI were carried out, inducing epileptic crisis by PTZ in Wistar rats. 

Main Results. Stronger seizure events of high LFP amplitudes and long time periods were observed in the rat, when the BMI system was not used. In contrast, short-time seizure events of relative low intensity were observed in the rat, using the proposed BMI. The proposed system detected on unseen data the synchronized seizure activity in the hippocampus and motor cortex, provided stimulation appropriately, and consequently decreased seizure symptoms. 

Significance. Low-frequency LFP signals from the hippocampus and motor cortex, and cord spinal stimulation can be used to develop accurate closed-loop BMIs for early epileptic seizures inhibition, as an alternative treatment.
Read full abstract