Sleeping and shaking can be related to physiological factors, calcium deficiency and seizures. 1. Physiological factors: the brain is in a state of rest during the night, and the control of the limbs is weakened, thus causing the situation of sleep fright and body shaking. This is a normal physiological phenomenon and does not require special intervention. 2. Calcium deficiency: commonly found in children, frail people or the elderly, due to a lack of calcium in the body, leading to a decrease in blood calcium levels, resulting in an increase in musculoskeletal excitability, which may be manifested in sleep terrors and body shaking. 3. Epileptic seizures: Some patients with a history of epilepsy may have epileptic seizures during sleep, which may manifest as sleep terrors and body shaking, and may also be accompanied by foaming at the mouth and tilting of the eyes and mouth. Sleep terrors and body shaking may also be associated with other factors. If the symptoms recur, seek medical advice as soon as possible to confirm the diagnosis and provide targeted treatment.