A number of things, like exercise, hypnotherapy, nerve feedback, talk therapy.
The somnambulistic state is necessary in hypnotherapy when there is a need for the patient to relive some traumatic episode.
hypnotherapy hyp·no·ther·a·py (hĭp'nō-thěr'ə-pē)
Therapy using hypnosis, especially for chronic pain.
Treatment of disease by inducing prolonged sleep.