Vagus nerve stimulation prevents seizures by sending regular, mild pulses of electrical energy to the brain via the vagus nerve.