Related Experiment Video
Updated: Feb 10, 2026

Meta-Analysis of the Effectiveness and Safety of Shugan Jieyu Capsules for the Treatment of Insomnia
Published on: February 17, 2023
Development of an Algorithm to Identify Patients with Physician-Documented Insomnia
Uri Kartoun1,2,3, Rahul Aggarwal1,2, Andrew L Beam2,4
1Center for Systems Biology; Center for Assessment Technology & Continuous Health (CATCH), Massachusetts General Hospital, Boston, MA, USA.
A new insomnia classification algorithm using electronic medical records (EMR) is more accurate than billing codes alone. This method identifies more insomnia patients comprehensively and quickly.
Area of Science:
- Medical Informatics
- Clinical Data Analysis
- Sleep Medicine Research
Background:
- Insomnia is a prevalent sleep disorder impacting public health.
- Accurate identification of insomnia patients is crucial for effective treatment and research.
- Traditional methods relying on billing codes may underestimate insomnia prevalence.
Purpose of the Study:
- To develop and validate an advanced algorithm for classifying insomnia patients using electronic medical records (EMR).
- To compare the performance of the developed algorithm against traditional billing code-based methods.
- To assess the algorithm's ability to identify a larger and more comprehensive cohort of insomnia patients.
Main Methods:
- Developed an insomnia classification algorithm by analyzing a large electronic medical records (EMR) database (314,292 patients).
- Combined structured data (ICD-9 codes, prescriptions, lab results) and unstructured data (clinical notes mentioning sleep and psychiatric disorders).
- Evaluated algorithm performance using the area under the receiver operating characteristic curve (AUROC) and compared it to billing codes alone.
Main Results:
- The algorithm achieved a high classification performance (AUROC = 0.83) when combining structured and unstructured variables.
- This performance was significantly superior to using billing codes alone (AUROC = 0.55).
- The algorithm identified 36,810 insomnia patients, with less than 17% having an insomnia billing code, highlighting underdiagnosis.
Conclusions:
- An insomnia classification algorithm incorporating clinical notes significantly outperforms methods based solely on billing codes.
- This novel algorithm offers a more accurate, comprehensive, and efficient approach to identifying large insomnia patient cohorts.
- The findings suggest a potential for improved insomnia diagnosis and management through advanced data analytics in EMR.
Related Concept Videos
Insomnia
Multiple factors contribute...
Management of Insomnia
Nursing Process for Patient and Caregiver Teaching III: Evaluation and Documentation
Nurses can use several methods to evaluate patient outcomes. For example, oral questions can assess cognitive learning,...
Trial and Error and Algorithm
Guidelines for Nursing Documentation I
Factual:
The following points emphasize the significance of upholding accurate and unbiased documentation in healthcare.
Methods of Documentation V: CBE
In CBE, healthcare professionals establish predefined standards of practice that define what constitutes...

