Your doctor will likely give you seizure medication (anti-epileptic drugs or AEDs) starting with a low dose and slowly add more, the medication works by changing the way your brain cells work and send messages to each other. In some cases, your doctor may perform a procedure called nerve stimulator to help prevent seizures. There are two types of nerve stimulator: vagus nerve stimulation (placing a small device under the skin of your chest and connecting it to the nerve) and responsive neurostimulation (implanting a small gadget under your skull bone). In some cases, surgery may also be performed, which involves removing the part of the brain that causes seizures or cutting the paths between the nerves in the brain that causes seizures.