Natural Language Processing Versus Diagnosis Code–Based Methods for Postherpetic Neuralgia Identification: Algorithm Development and Validation
Authors:
Open Access
- 10 September 2024
- journal article
- research article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 12, e57949
Abstract
Background: Diagnosis codes and prescription data are used in algorithms to identify postherpetic neuralgia (PHN), a debilitating complication of herpes zoster (HZ). Because of the questionable accuracy of codes and prescription data, manual chart review is sometimes used to identify PHN in electronic health records (EHRs), which can be costly and time-consuming. Objective: This study aims to develop and validate a natural language processing (NLP) algorithm for automatically identifying PHN from unstructured EHR data and to compare its performance with that of code-based methods. Methods: This retrospective study used EHR data from Kaiser Permanente Southern California, a large integrated health care system that serves over 4.8 million members. The source population included members aged ≥50 years who received an incident HZ diagnosis and accompanying antiviral prescription between 2018 and 2020 and had ≥1 encounter within 90‐180 days of the incident HZ diagnosis. The study team manually reviewed the EHR and identified PHN cases. For NLP development and validation, 500 and 800 random samples from the source population were selected, respectively. The sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), F-score, and Matthews correlation coefficient (MCC) of NLP and the code-based methods were evaluated using chart-reviewed results as the reference standard. Results: The NLP algorithm identified PHN cases with a 90.9% sensitivity, 98.5% specificity, 82% PPV, and 99.3% NPV. The composite scores of the NLP algorithm were 0.89 (F-score) and 0.85 (MCC). The prevalences of PHN in the validation data were 6.9% (reference standard), 7.6% (NLP), and 5.4%‐13.1% (code-based). The code-based methods achieved a 52.7%‐61.8% sensitivity, 89.8%‐98.4% specificity, 27.6%‐72.1% PPV, and 96.3%‐97.1% NPV. The F-scores and MCCs ranged between 0.45 and 0.59 and between 0.32 and 0.61, respectively. Conclusions: The automated NLP-based approach identified PHN cases from the EHR with good accuracy. This method could be useful in population-based PHN research.Keywords
This publication has 39 references indexed in Scilit:
- Prevalence and Sources of Duplicate Information in the Electronic Medical RecordJAMA Network Open, 2022
- Length and Redundancy of Outpatient Progress Notes Across a Decade at an Academic Medical CenterJAMA Network Open, 2021
- The use of natural language processing to identify Tdap-related local reactions at five health care systems in the Vaccine Safety DatalinkInternational Journal of Medical Informatics, 2019
- Impact of postherpetic neuralgia: A six year population-based analysis on people aged 50 years or olderJournal of Infection, 2018
- Characterizing the Source of Text in Electronic Health Record Progress NotesJAMA Internal Medicine, 2017
- Medication Extraction from Electronic Clinical Notes in an Integrated Health System: A Study on Aspirin Use in Patients with Nonvalvular Atrial FibrillationClinical Therapeutics, 2015
- Incidence of herpes zoster and its complications in Germany, 2005–2009Journal of Infection, 2015
- Using Natural Language Processing and Machine Learning to Identify Gout Flares From Electronic Clinical NotesArthritis Care & Research, 2014
- Development of a measure of the burden of pain due to herpes zoster and postherpetic neuralgia for prevention trials: Adaptation of the brief pain inventoryThe Journal of Pain, 2004
- Gabapentin for the Treatment of Postherpetic NeuralgiaA Randomized Controlled TrialJAMA, 1998