What is the reason for the sudden twitching of the body while sleeping? This question involves the physiological phenomena of the human body, mainly related to the muscles and nervous system. This question will be answered from three aspects: muscle spasm, nerve activation and sleep disorder. Muscle spasms are