Brain implants are used to treat neurological dysfunction, and their use for enhancing cognitive abilities is a promising field of research. Implants can be used to monitor brain activity or stimulate parts of the brain using electrical pulses. In epilepsy, for example, brain implants can determine where in the brain seizures are happening.