This document discusses brain stimulation as a treatment for epilepsy. It describes a responsive neurostimulator device that detects abnormal brain activity associated with seizures and delivers stimulation to prevent seizures from occurring. It also discusses using intracranial electrodes to map epileptic networks in the brain and locate the seizure onset zone. Finally, it envisions future devices that can continuously monitor brain activity at high resolution using wireless sensors and use artificial intelligence to anticipate and respond to seizures.