System and method for determining optimal deep brain stimulation parameters for treating intractable epilepsy. The system is adapted to impart deep brain stimulation to a patient�s brain, record electroencephalographic responses to the stimulation, enable adjustment of one or more stimulation parameters to achieve an optimum electroencephalogram desynchronization (EEG desynchronization) state and thereafter select stimulation parameters that resulted in the optimum EEG desynchronization. Reference figure: FIG. 2