Integrating mental-RoBERTa and generative LLMs for phenotyping secondary insomnia: A multi-dimensional framework for etiology discovery

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorAnwar, Md. Tawhid
dc.contributor.advisorAhmed, Md. Sabbir
dc.contributor.advisorAlam, Md. Ashraful
dc.contributor.authorSakib, Sadman
dc.contributor.authorHossain, Nahmar
dc.contributor.authorChowdhury, Kumar Prothom Pranto Sarma
dc.contributor.authorHakim, Shehzad
dc.contributor.authorIslam, A Q M Mujahidul
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-08-10T10:32:02Z
dc.date.available2026-08-10T10:32:02Z
dc.date.copyright2026
dc.date.issued2026-01
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2026.
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 38-40).
dc.description.abstractInsomnia affects a significant portion of the global population, yet distinguishing between primary and secondary insomnia—where sleep disturbances stem from underlying medical, psychiatric, or environmental factors—remains critically underexplored in computational health research. This study presents a multi-stage computational framework for identifying and phenotyping secondary insomnia from naturalistic Reddit discussions. A clinically validated dataset of 600 posts was developed, with linguistic validation confirming that secondary insomnia posts contain significantly more biomedical terminology than primary insomnia posts. Mental- RoBERTa, a domain-adapted transformer, was employed (after the initial integration of RoBERTa-Base) for identifying cases, which outperformed both traditional baselines and large language models. The trained model identified over 3,400 high confidence secondary insomnia cases from 5,000 unlabeled posts. A hybrid pipeline combining Llama-3 clinical summarization with BERTopic unsupervised clustering discovered 10 distinct etiological categories, revealing gastroesophageal reflux disease, menopausal factors, and benzodiazepine withdrawal as predominant drivers. Zero-shot emotion profiling revealed distinct psychological phenotypes across different triggers, with benzodiazepine withdrawal exhibiting the highest perplexity and environmental factors showing the greatest frustration. This framework enables the first large-scale computational characterization of secondary insomnia drivers and their psychological burdens, providing actionable insights for precision intervention design and population health surveillance in digital mental health systems.
dc.description.degreeBachelor of Science in Computer Science and Engineering
dc.description.statementofresponsibilitySadman Sakib
dc.description.statementofresponsibilityNahmar Hossain
dc.description.statementofresponsibilityKumar Prothom Pranto Sarma Chowdhury
dc.description.statementofresponsibilityShehzad Hakim
dc.description.statementofresponsibilityA Q M Mujahidul Islam
dc.format.extent47 pages
dc.identifier.otherID 21201605
dc.identifier.otherID 21201639
dc.identifier.otherID 22201736
dc.identifier.otherID 22341022
dc.identifier.otherID 22101014
dc.identifier.urihttps://hdl.handle.net/10361/28896
dc.language.isoen_US
dc.publisherBRAC University
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 Internationalen
dc.rightsBRAC University theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission.
dc.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subjectInsomnia
dc.subjectMachine learning
dc.subjectSupervised learning
dc.subjectText classification
dc.subjectSleep disorders
dc.subjectMental health
dc.subjectZero-shot emotion profiling
dc.subject.lcshNatural language processing (Computer science).
dc.subject.lcshInsomnia--Diagnosis.
dc.subject.lcshSleep disorders--Classification.
dc.subject.lcshInsomnia--Etiology.
dc.subject.lcshMental health--Data processing.
dc.titleIntegrating mental-RoBERTa and generative LLMs for phenotyping secondary insomnia: A multi-dimensional framework for etiology discovery
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
21201605, 21201639, 22201736, 22341022, 22101014_CSE.pdf
Size:
1.6 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: