DBS surgery is done under local or general anesthesia. First, the neurosurgeon drills a small opening in the skull and inserts electrodes into specific brain nuclei. The electrode tips are carefully positioned using neuroimaging and microelectrode recording. Extension wires connect the electrodes to the neurostimulator implanted near the collarbone.