The causes of brain like electrocution when sleeping are physiological, cervical spondylosis, postherpetic neuralgia, which should be self-adjusted, medication and physical therapy. 1. Physiological: If it is because of personal stress, long-term mental tension, resulting in nerve dysfunction, thus appearing similar symptoms. You can relieve stress in your life, relax your mood, ensure a good work schedule, and avoid staying up late. 2. Cervical spondylosis: cervical spondylosis can cause spinal stenosis, usually referred to as prone position during sleep, may be in a special position leading to compression of the nerve, the emergence of this symptom. Physical therapy, traction, grilling, massage and other physical therapy should be performed. 3. Post-herpetic neuralgia: If the head is locally infected with herpes zoster can be left behind neuralgia sequelae, appearing in the brain like electrocution-like pain, and obvious at night. Need oral pregabalin, gabapentin and other anti-neuralgia drugs symptomatic treatment. Sleeping brain like electric shock like symptoms, should consult a doctor in time, to clarify the cause of the disease and carry out appropriate treatment, the drug should be used under the guidance of a physician.