1. A method comprising: receiving, at a computing device, body parameter data of a patient; determining that the patient is in a particular sleep cycle stage based on the body parameter data; detecting, while the patient is in the particular sleep cycle stage, a seizure event based on synchrony of brain waves of the patient; comparing, at the computing device, the brain waves to a target profile associated with the particular sleep cycle stage; and in response to determining the brain waves are not in conformance with the target profile, adjusting, at the computing device, a cranial nerve stimulation parameter to drive the brain waves to the target profile.