What is the reason for the sudden shaking of the body in sleep

There are two possible diseases that may cause sudden body shaking during sleep, including epileptic seizures and pro-sleep myoclonus, as follows: 1. Epileptic seizures: often occur when just falling asleep or when waking up, the patient has a history of epilepsy or a definite organic brain disease, this kind of shaking generally lasts for a long time and can reach 2-3 minutes or even more than 5 minutes, and the patient cannot be awakened during the shaking is a disorder of consciousness; 2. Pro-sleep myoclonus Myopia: This is a muscle jumping disease that occurs frequently in the normal population, 70% of the normal population has a similar experience, also often appears when just falling asleep and about to wake up, manifested as a sudden shaking of a part of the body, patients often wake up suddenly because of this reason. If it is a falling sensation during sleep that can occur while dreaming, this condition does not require special treatment, if frequent episodes are related to excessive fatigue and mental tension.