Using network analysis modularity to group health code systems and decrease dimensionality in machine learning models

Machine learning (ML) prediction models in healthcare and pharmacy-related research face challenges with encoding high-dimensional Healthcare Coding Systems (HCSs) such as ICD, ATC, and DRG codes, given the trade-off between reducing model dimensionality and minimizing information loss. To investiga...

Full description

Saved in:
Bibliographic Details
Published inExploratory research in clinical and social pharmacy Vol. 14; p. 100463
Main Authors Askar, Mohsen, Småbrekke, Lars, Holsbø, Einar, Bongo, Lars Ailo, Svendsen, Kristian
Format Journal Article
LanguageEnglish
Published United States Elsevier Inc 01.06.2024
Elsevier
Subjects
Online AccessGet full text
ISSN2667-2766
2667-2766
DOI10.1016/j.rcsop.2024.100463

Cover

More Information
Summary:Machine learning (ML) prediction models in healthcare and pharmacy-related research face challenges with encoding high-dimensional Healthcare Coding Systems (HCSs) such as ICD, ATC, and DRG codes, given the trade-off between reducing model dimensionality and minimizing information loss. To investigate using Network Analysis modularity as a method to group HCSs to improve encoding in ML models. The MIMIC-III dataset was utilized to create a multimorbidity network in which ICD-9 codes are the nodes and the edges are the number of patients sharing the same ICD-9 code pairs. A modularity detection algorithm was applied using different resolution thresholds to generate 6 sets of modules. The impact of four grouping strategies on the performance of predicting 90-day Intensive Care Unit readmissions was assessed. The grouping strategies compared: 1) binary encoding of codes, 2) encoding codes grouped by network modules, 3) grouping codes to the highest level of ICD-9 hierarchy, and 4) grouping using the single-level Clinical Classification Software (CCS). The same methodology was also applied to encode DRG codes but limiting the comparison to a single modularity threshold to binary encoding. The performance was assessed using Logistic Regression, Support Vector Machine with a non-linear kernel, and Gradient Boosting Machines algorithms. Accuracy, Precision, Recall, AUC, and F1-score with 95% confidence intervals were reported. Models utilized modularity encoding outperformed ungrouped codes binary encoding models. The accuracy improved across all algorithms ranging from 0.736 to 0.78 for the modularity encoding, to 0.727 to 0.779 for binary encoding. AUC, recall, and precision also improved across almost all algorithms. In comparison with other grouping approaches, modularity encoding generally showed slightly higher performance in AUC, ranging from 0.813 to 0.837, and precision, ranging from 0.752 to 0.782. Modularity encoding enhances the performance of ML models in pharmacy research by effectively reducing dimensionality and retaining necessary information. Across the three algorithms used, models utilizing modularity encoding showed superior or comparable performance to other encoding approaches. Modularity encoding introduces other advantages such as it can be used for both hierarchical and non-hierarchical HCSs, the approach is clinically relevant, and can enhance ML models' clinical interpretation. A Python package has been developed to facilitate the use of the approach for future research. •The paper introduces Modularity Encoding to encode categorical Healthcare Coding Systems in machine learning models.•The approach enhances the clinical interpretation of models by representing how codes co-occur in a individuals.•Modularity encoding showed better or similar performance to other popular encoding approaches.•The approach can be used for hierarchical and non-hierarchical systems.•The study features a developed Python package to simplify applying modularity encoding in future studies.
Bibliography:ObjectType-Article-1
SourceType-Scholarly Journals-1
ObjectType-Feature-2
content type line 23
ISSN:2667-2766
2667-2766
DOI:10.1016/j.rcsop.2024.100463