parasomnia refers to abnormal behavior such as a nightmare or sleep-walking that occurs during sleep.