Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 3 March 2026

Neurofeedback Therapy Meets Transformers: Rewiring Sleep Disorders Through AI-Driven EEG Modulation

Amala Ann KA1 & Vaidhehi V1

Journal of Computer Science, Volume 22, Issue 2, pp. 708–723 · doi.org/10.3844/jcssp.2026.708.723

1,674 accesses950 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Sleep disorders such as insomnia, sleep Apnea, and hypersomnia significantly impair neurophysiological functioning, yet conventional treatments like Cognitive Behavioral Therapy for Insomnia (CBT-I) remain resource-intensive and difficult to personalize. This study introduces a novel AI-powered neurofeedback simulation framework designed to detect dysregulated EEG frequency band activity across sleep stages and simulate targeted interventions. A Transformer-based model serves as the core component, offering a unique capability to model cross-epoch temporal dynamics and frequency-specific spectral patterns. Unlike traditional architectures that treat EEG epochs in isolation, the Transformer captures how EEG band activity evolves across the night, critical for identifying persistent dysregulation patterns and planning stage-specific interventions. Through its multi-head attention mechanism, the model can simultaneously monitor delta, theta, alpha, beta, and gamma fluctuations while preserving sleep architecture transitions using positional encoding. Dysregulated epochs are classified with 92% accuracy, and intervention simulations-such as beta suppression in N2 or delta enhancement in REM-led to measurable improvements: average WASO decreased by 23%, and Sleep Efficiency improved by 13%. This framework not only demonstrates the efficacy of Transformer-based temporal-spectral modelling in EEG but also lays the foundation for closed-loop, wearable-compatible, personalized neurofeedback systems for remote sleep therapy.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

KA, A. A. & V, V. (2026). Neurofeedback Therapy Meets Transformers: Rewiring Sleep Disorders Through AI-Driven EEG Modulation. Journal of Computer Science, 22(2), 708–723. https://doi.org/10.3844/jcssp.2026.708.723

Licence
CC BY 4.0
Issue
Volume 22, Issue 2
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Neurofeedback Therapy Meets Transformers: Rewiring Sleep Disorders Through AI-Driven EEG ModulationJournal of Computer Science · Volume 22, Issue 2 · pp. 708–723 · CC BY 4.0Download