Disclosed is a device and method for preventing seizures due to physiological system dysfunction. The method is based on a conjectural model of the brain wherein each brain site is modeled as a chaotic oscillator a normal brain generates an internal feedback signal to prevent long-term entrainment among the oscillators and a pathological brain fails to provide this feedback signal. The device of the present invention measures and characterizes the brain sites to determine if entrainment is occurring among the oscillators, derives an appropriate feedback signal to counteract the entrainment, and applies the feedback signal to the critical brain sites. The feedback signal generated by the device supplements or takes the place of the feedback signal that would otherwise be generated by the normal brain.