The present invention relates to the design and implementation of a seizure detection system. In this invention, a reliable way to detect seizures is presented. The proposed invention filters an EEG signal by a Prediction Error Filter. The output of the prediction error filter is subjected to wavelet decomposition. Various features are then extracted from the wavelet coefficients. These features are input to a classifier to detect seizures. The proposed algorithm takes advantage of high sensitivity in detecting seizures and low complexity in implementation. The proposed scheme is general and is suitable for creating a trigger for therapy delivery in a closed-loop therapy system. The therapy could involve either delivery of an anti-epileptic drug or electrical or magnetic stimulation of the brain.