Repository logo
  • English
  • Deutsch
  • Français
Log In
New user? Click here to register.Have you forgotten your password?
  1. Home
  2. CRIS
  3. Publication
  4. Analyzing Sleep Behavior Using BERT-BiLSTM and Fine-Tuned GPT-2 Sentiment Classification: Comparison Study
 

Analyzing Sleep Behavior Using BERT-BiLSTM and Fine-Tuned GPT-2 Sentiment Classification: Comparison Study

URI
https://arbor.bfh.ch/handle/arbor/46102
Version
Published
Identifiers
10.2196/70753
Date Issued
2025-11-10
Author(s)
Deng, Yihan  
Van Der Meer, Julia
Tzovara, Athina
Schmidt, Markus
Bassetti, Claudio
Denecke, Kerstin  
Type
Article
Language
English
Subjects

sleep disorder

clinical documentatio...

free text

sentiment analysis

opinion discrepancy

LLM

prompting

supervised fine-tunin...

large language model

Abstract
Background: The diagnosis of sleep disorders presents a challenging landscape, characterized by the complex nature of their assessment and the often divergent views between objective clinical assessment and subjective patient experience. This study explores the interplay between these perspectives, focusing on the variability of individual perceptions of sleep quality and latency. Objective: Our primary goal was to investigate the alignment, or lack thereof, between subjective experiences and objective measures in the assessment of sleep disorders. Methods: To study this, we developed an aspect-based sentiment analysis method for clinical narratives: using large language models (Falcon 40B and Mixtral 8X7B), we are identifying entity groups of 3 aspects related to sleep behavior (day sleepiness, sleep quality, and fatigue). To phrases referring to these aspects, we are assigning sentiment values between 0 and 1 using a BERT-BiLSTM-based approach (accuracy 78%) and a fine-tuned GPT-2 sentiment classifier (accuracy 87%). Results: In a cohort of 100 patients with complete subjective (Karolinska Sleepiness Scale [KSS]) and objective (Multiple Sleep Latency Test [MSLT]) assessments, approximately 15% exhibited notable discrepancies between perceived and measured levels of daytime sleepiness. A paired-sample t test comparing KSS scores to MSLT latencies approached statistical significance (t 99 =2.456; P=.06), suggesting a potential misalignment between subjective reports and physiological markers. In contrast, the comparison using text-derived sentiment scores revealed a statistically significant divergence (t 99 =2.324; P=.047), indicating that clinical narratives may more reliably capture discrepancies in sleepiness perception. These results underscore the importance of integrating multiple subjective sources, with an emphasis on narrative free text, in the assessment of domains such as fatigue and daytime sleepiness-where standardized measures may not fully reflect the patient's lived experience. Conclusions: Our method has potential in uncovering critical insights into patient self-perception versus clinical evaluations, which enables clinicians to identify patients requiring objective verification of self-reported symptoms.
DOI
https://doi.org/10.24451/arbor.12532
Publisher DOI
10.2196/70753
Journal or Serie
JMIR medical informatics
Journal or Serie
JMIR Medical Informatics
ISSN
2291-9694
Publisher URL
https://medinform.jmir.org/2025/1/e70753
Organization
Technik und Informatik  
Institute for Patient-centered Digital Health  
AI for Health  
Volume
13
Publisher
JMIR Publications
Submitter
Denecke, Kerstin
Citation apa
Deng, Y., Van Der Meer, J., Tzovara, A., Schmidt, M., Bassetti, C., & Denecke, K. (2025). Analyzing Sleep Behavior Using BERT-BiLSTM and Fine-Tuned GPT-2 Sentiment Classification: Comparison Study. In JMIR Medical Informatics (Vol. 13). JMIR Publications. https://doi.org/10.24451/arbor.12532
File(s)
Loading...
Thumbnail Image
Download

open access

Name

medinform-2025-1-e70753.pdf

License
Attribution 4.0 International
Version
published
Size

964.56 KB

Format

Adobe PDF

Checksum (MD5)

5d122774357e5fabb62a09f3373175c3

About ARBOR

Built with DSpace-CRIS software - System hosted and mantained by 4Science

  • Cookie settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
  • Our institution