Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jan 1;57(1):82-88.
doi: 10.1097/MCG.0000000000001586.

An AI Approach for Identifying Patients With Cirrhosis

Affiliations

An AI Approach for Identifying Patients With Cirrhosis

Jihad S Obeid et al. J Clin Gastroenterol. .

Abstract

Goal: The goal of this study was to evaluate an artificial intelligence approach, namely deep learning, on clinical text in electronic health records (EHRs) to identify patients with cirrhosis.

Background and aims: Accurate identification of cirrhosis in EHR is important for epidemiological, health services, and outcomes research. Currently, such efforts depend on International Classification of Diseases (ICD) codes, with limited success.

Materials and methods: We trained several machine learning models using discharge summaries from patients with known cirrhosis from a patient registry and random controls without cirrhosis or its complications based on ICD codes. Models were validated on patients for whom discharge summaries were manually reviewed and used as the gold standard test set. We tested Naive Bayes and Random Forest as baseline models and a deep learning model using word embedding and a convolutional neural network (CNN).

Results: The training set included 446 cirrhosis patients and 689 controls, while the gold standard test set included 139 cirrhosis patients and 152 controls. Among the machine learning models, the CNN achieved the highest area under the receiver operating characteristic curve (0.993), with a precision of 0.965 and recall of 0.978, compared with 0.879 and 0.981 for the Naive Bayes and Random Forest, respectively (precision 0.787 and 0.958, and recalls 0.878 and 0.827). The precision by ICD codes for cirrhosis was 0.883 and recall was 0.978.

Conclusions: A CNN model trained on discharge summaries identified cirrhosis patients with high precision and recall. This approach for phenotyping cirrhosis in the EHR may provide a more accurate assessment of disease burden in a variety of studies.

PubMed Disclaimer

Conflict of interest statement

Conflict of interest disclosure statement:

The authors have no competing interests to disclose.

Figures

Figure 1.
Figure 1.. Consort diagram of patients.
The diagram depicts selection of patients from all patients of MUSC research data warehouse discharge summaries, and the two cohort data sets (training and cross-validation set and the test set).
Figure 2.
Figure 2.. Flowchart of the machine learning workflow.
A flowchart depicting an overview of the steps used for training and evaluating the machine learning models and the order in which they were executed.
Figure 3.
Figure 3.. Stochastic Neighbor Embedding (t-SNE).
Shown is a Word2vec t-distributed Stochastic Neighbor Embedding (t-SNE) plot in a 2-dimenstional space (reduced from 200 word2vec dimensions to two variables V1 and V2) for a select set of relevant key words. Clustering of contextually, semantically, and syntactically related words is depicted. For example, typographical errors such as “ascites” and “ascities”, words of similar derivation such as “varices” and “variceal”, and contextually related words such as “cirrhosis”, “alcoholic”, “NASH”, and “steatohepatitis” are close to each other on the plot.
Figure 4.
Figure 4.. Area under the receiver operating characteristic curve (AUC).
AUCs of the classifiers on discharge summaries to identify cirrhosis patients are shown. The figure demonstrates the results on the gold standard test set. Abbreviations: AUC: area under the receiver operating characteristic curve; NB: Naïve Bayes; RF: Random Forest; CNN: convolutional neural network.
Figure 5.
Figure 5.. Variable importance analysis for cirrhosis.
The mean decrease in accuracy is shown for the top 20 stemmed words (i.e. only the roots of the words) based on the random forest classifier. Words with a higher mean decrease in accuracy are the more important ones for the classifier. For example, “cirrhosi” and “varic” are the stemmed versions of “cirrhosis” and “varices” respectively.

References

    1. Scaglione S, Kliethermes S, Cao G, Shoham D, Durazo R, Luke A, et al. The Epidemiology of Cirrhosis in the United States: A Population-based Study. J Clin Gastroenterol. 2015. Sep;49(8):690–6. - PubMed
    1. Heron M Deaths: Leading Causes for 2017. Natl Vital Stat Rep. 2019. Jun;68(6):1–77. - PubMed
    1. Miniño AM, Xu J, Kochanek KD, Tejada-Vera B. Death in the United States, 2007. NCHS Data Brief. 2009. Dec;(26):1–8. - PubMed
    1. Mokdad AA, Lopez AD, Shahraz S, Lozano R, Mokdad AH, Stanaway J, et al. Liver cirrhosis mortality in 187 countries between 1980 and 2010: a systematic analysis. BMC Med. 2014. Sep 18;12:145. - PMC - PubMed
    1. Ho CK, Maselli JH, Terrault NA, Gonzales R. High Rate of Hospital Admissions Among Patients with Cirrhosis Seeking Care in US Emergency Departments. Dig Dis Sci. 2015. Jul;60(7):2183–9. - PMC - PubMed