(responsive stimulation therapy)
Implanted electrodes detect electrical activity in the brain. A microprocessor analyzes the signal then delivers an electrical stimulus to the brain, also via implanted electrodes, in order to, for example, interrupt a seizure.