» Articles » PMID: 38774372

Using Natural Language Processing for Automated Classification of Disease and to Identify Misclassified ICD Codes in Cardiac Disease

Abstract

Aims: ICD codes are used for classification of hospitalizations. The codes are used for administrative, financial, and research purposes. It is known, however, that errors occur. Natural language processing (NLP) offers promising solutions for optimizing the process. To investigate methods for automatic classification of disease in unstructured medical records using NLP and to compare these to conventional ICD coding.

Methods And Results: Two datasets were used: the open-source Medical Information Mart for Intensive Care (MIMIC)-III dataset ( = 55.177) and a dataset from a hospital in Belgium ( = 12.706). Automated searches using NLP algorithms were performed for the diagnoses 'atrial fibrillation (AF)' and 'heart failure (HF)'. Four methods were used: rule-based search, logistic regression, term frequency-inverse document frequency (TF-IDF), Extreme Gradient Boosting (XGBoost), and Bio-Bidirectional Encoder Representations from Transformers (BioBERT). All algorithms were developed on the MIMIC-III dataset. The best performing algorithm was then deployed on the Belgian dataset. After preprocessing a total of 1438 reports was retained in the Belgian dataset. XGBoost on TF-IDF matrix resulted in an accuracy of 0.94 and 0.92 for AF and HF, respectively. There were 211 mismatches between algorithm and ICD codes. One hundred and three were due to a difference in data availability or differing definitions. In the remaining 108 mismatches, 70% were due to incorrect labelling by the algorithm and 30% were due to erroneous ICD coding (2% of total hospitalizations).

Conclusion: A newly developed NLP algorithm attained a high accuracy for classifying disease in medical records. XGBoost outperformed the deep learning technique BioBERT. NLP algorithms could be used to identify ICD-coding errors and optimize and support the ICD-coding process.

Citing Articles

Clinical and research applications of natural language processing for heart failure.

Girouard M, Chang A, Liang Y, Hamilton S, Bhatt A, Svetlichnaya J Heart Fail Rev. 2024; 30(2):407-415.

PMID: 39699708 DOI: 10.1007/s10741-024-10472-0.

References
1.
Diao X, Huo Y, Zhao S, Yuan J, Cui M, Wang Y . Automated ICD coding for primary diagnosis via clinically interpretable machine learning. Int J Med Inform. 2021; 153:104543. DOI: 10.1016/j.ijmedinf.2021.104543. View

2.
Zhou L, Cheng C, Ou D, Huang H . Construction of a semi-automatic ICD-10 coding system. BMC Med Inform Decis Mak. 2020; 20(1):67. PMC: 7157985. DOI: 10.1186/s12911-020-1085-4. View

3.
Bosco-Levy P, Duret S, Picard F, Santos P, Puymirat E, Gilleron V . Diagnostic accuracy of the International Classification of Diseases, Tenth Revision, codes of heart failure in an administrative database. Pharmacoepidemiol Drug Saf. 2018; 28(2):194-200. DOI: 10.1002/pds.4690. View

4.
Chen P, Wang S, Liao W, Kuo L, Chen K, Lin Y . Automatic ICD-10 Coding and Training System: Deep Neural Network Based on Supervised Learning. JMIR Med Inform. 2021; 9(8):e23230. PMC: 8441604. DOI: 10.2196/23230. View

5.
Berman A, Biery D, Ginder C, Hulme O, Marcusa D, Leiva O . Natural language processing for the assessment of cardiovascular disease comorbidities: The cardio-Canary comorbidity project. Clin Cardiol. 2021; 44(9):1296-1304. PMC: 8428009. DOI: 10.1002/clc.23687. View