1. An implantable device for detecting a neurological event by analyzing an electrical signal from a patient's brain, the device comprising: an implantable control module; a central processing unit located within the control module; and a detection subsystem located within the control module and comprising a waveform analyzer having a window-based analysis unit and a feature-based analysis unit.