Vagus nerve stimulation, also known as VNS, is used to treat epilepsy when other treatments have failed.