A system and method for detecting and predicting neurological events with
an implantable device uses a relatively low-power central processing unit
in connection with signal processing circuitry to identify features
(including half waves) and calculate window-based characteristics
(including line lengths and areas under the curve of the waveform) in one
or more electrographic signals received from a patient's brain. The
features and window-based characteristics are employed within the
framework of a programmable finite state machine to identify patterns and
sequences in and across the electrographic signals, facilitating early
and reliable detection and prediction of complex spatiotemporal
neurological events in real time, and enabling responsive action by the
implantable device.