Most of the sudden shaking of the body while sleeping is just a physiological phenomenon, which may be related to the unstable function of the nervous system; a few of them are caused by diseases, such as epilepsy, restless legs syndrome and other diseases.
The body suddenly shakes when sleeping, and then quickly recovered, most of the cases this is just a physiological phenomenon, and is not caused by diseases. This is because when people sleep, the function of the brain is inhibited, and the nerve cells that innervate the motor function of the body may become functionally unstable after losing control of the brain, inducing the body to shake.
In rare cases, disorders such as epilepsy may also cause muscle spasms and body shaking while sleeping. However, seizures may also be accompanied by stiffness of the limbs, foaming at the mouth, and the inability to call out, and the symptoms tend to last for about two or three minutes, not just a few seconds. People with restless leg syndrome may also be unable to resist stretching their legs and having their body shake suddenly while they sleep.
If these symptoms occur frequently and have a significant impact on sleep and life, it is important to visit a hospital to further identify the cause.