Chronic electrode implant
A chronic electrode implant is an electronic device implanted chronically (for a long period) into the brain or other electrically excitable tissue. It may record electrical impulses in the brain or may stimulate neurons with electrical impulses from an external source.
Source: Wikipedia — Chronic electrode implant (CC BY-SA 4.0)