Home / Current Issue / Paper 1716837
Nightmare Disorder Assistant Tool
Subject area: Science,Engineering and Technology · Area of research: Deep Learning
DOI: https://doi.org/10.64388/IREV9I10-1716837
Abstract
Nightmare Disorder is a sleep condition characterized by recurrent distressing dreams that lead to abrupt awakenings, emotional distress, and impaired sleep quality. It is strongly associated with psychiatric conditions such as post-traumatic stress disorder (PTSD), anxiety, and depression. Traditional diagnostic approaches rely heavily on subjective measures including patient self-reports, sleep diaries, and clinician interpretation, which often lack consistency and scalability. This paper proposes an automated EEG-based framework for detecting nightmare episodes using deep learning techniques. The system leverages spectrogram-based feature extraction to transform EEG signals into time-frequency representations, enabling effective use of Convolutional Neural Networks (CNNs) for pattern recognition. The model is trained on REM sleep EEG data, including perturbed samples designed to simulate abnormal neural activity associated with nightmares. It also incorporates a severity analysis module that evaluates the intensity of detected episodes based on spectral deviations. A web-based dashboard built using React.js and Next.js provides an interactive interface for users to upload EEG segments and visualize results. FastAPI is used as the backend framework to integrate the trained model and handle inference requests efficiently. Experimental results demonstrate classification accuracy ranging from 89% to 94.6%, indicating strong performance in distinguishing between normal and abnormal REM patterns. The system provides an objective, scalable, and interpretable solution for nightmare detection, contributing toward AI-driven advancements in sleep disorder diagnostics.
Keywords
EEG, Sleep Disorder, REM Sleep, Nightmare Disorder, Deep Learning.
References
[1] C. Li, Y. Qi, X. Ding, J. Zhao, T. Sang, and M. Lee, “A Deep Learning Method Approach for Sleep Stage Classification with EEG Spectrogram,” International Journal of Environmental Research and Public Health, vol. 19, no. 9, 2022.
[2] H. Kim, J. Lee, and S. Lee, “Classification of Sleep Stage with Biosignal Images Using Convolutional Neural Networks,” 2022.
[3] A. Vilamala, K. H. Madsen, and L. K. Hansen, “Deep Convolutional Neural Networks for Interpretable Analysis of EEG Sleep Stage Scoring,” 2017.
[4] Y. Zhang, Y. Wang, and J. Wang, “Analysis and Classification of Sleep Stage Using Deep Learning Network from Single-Channel EEG Signal,” 2017.
[5] O. Tsinalis, P. M. Matthews, Y. Guo, and S. Zafeiriou, “Automatic Sleep Stage Scoring with Single-Channel EEG Using Convolutional Neural Networks,” 2016.
[6] L.-P. Marquis, T. Paquette, C. Blanchette-Carrière, G. Dumel, and T. Nielsen, “REM Sleep Theta Changes in Frequent Nightmare Recallers,” 2017.
[7] C. Picard-Deland, T. Paquette, L. Pigeon, and T. Nielsen, “Sleep Spindle and Psychopathology Characteristics of Frequent Nightmare Recallers,” Sleep Medicine, 2018.
[8] M. D. de Boer, M. J. Nijdam, and R. A. Jongedijk, “The Spectral Fingerprint of Sleep Problems in Post-Traumatic Stress Disorder,” Journal of Sleep Research, 2020.
[9] A. Craik, Y. He, and J. L. Contreras-Vidal, “Deep Learning for Electroencephalogram (EEG) Classification Tasks,” Journal of Neural Engineering, 2019.
How to cite this paper
@article{1716837,
author = {Amoolya S, Nischitha B S},
title = {Nightmare Disorder Assistant Tool},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {9},
number = {10},
pages = {3437-3444},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1716837.pdf},
abstract = {Nightmare Disorder is a sleep condition characterized by recurrent distressing dreams that lead to abrupt awakenings, emotional distress, and impaired sleep quality. It is strongly associated with psychiatric conditions such as post-traumatic stress disorder (PTSD), anxiety, and depression. Traditional diagnostic approaches rely heavily on subjective measures including patient self-reports, sleep diaries, and clinician interpretation, which often lack consistency and scalability. This paper proposes an automated EEG-based framework for detecting nightmare episodes using deep learning techniques. The system leverages spectrogram-based feature extraction to transform EEG signals into time-frequency representations, enabling effective use of Convolutional Neural Networks (CNNs) for pattern recognition. The model is trained on REM sleep EEG data, including perturbed samples designed to simulate abnormal neural activity associated with nightmares. It also incorporates a severity analysis module that evaluates the intensity of detected episodes based on spectral deviations. A web-based dashboard built using React.js and Next.js provides an interactive interface for users to upload EEG segments and visualize results. FastAPI is used as the backend framework to integrate the trained model and handle inference requests efficiently. Experimental results demonstrate classification accuracy ranging from 89% to 94.6%, indicating strong performance in distinguishing between normal and abnormal REM patterns. The system provides an objective, scalable, and interpretable solution for nightmare detection, contributing toward AI-driven advancements in sleep disorder diagnostics.},
keywords = {EEG, Sleep Disorder, REM Sleep, Nightmare Disorder, Deep Learning.},
month = {April},
doi = {https://doi.org/10.64388/IREV9I10-1716837}
}