Disclosed are methods and systems for treating epilepsy by stimulating a main trunk of a vagus nerve, or a left vagus nerve, when the patient has had no seizure or a seizure that is not characterized by cardiac changes such as an increase in heart rate, and stimulating a cardiac branch of a vagus nerve, or a right vagus nerve, when the patient has had a seizure characterized by cardiac changes such as a heart rate increase.