Before the DBS operation, the patient will need medical tests. That way, doctors can assess the potential risks, make sure that deep brain stimulation is a safe and appropriate option for the case. Before DBS, doctors usually do brain tests, including an MRI. The research helps to map the areas of the brain where the electrodes will be implanted.