Submitted:
30 June 2024
Posted:
04 July 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Dataset and Preprocessing
2.2. Methodology
2.2.1. Interpreting Dataset
2.2.2. Clustering Patient Records
2.2.3. Detecting Abnormal Records
- Mislabelled: If a record is categorized into one class but matches more patterns from a different class according to the PDD output, it suggests the record may be mislabelled. For example, consider the same record with described in section 2.2.2 with the same setting of the pattern groups where and . If the record is originally labelled as in the dataset, but the relative difference is greater than , this suggests that the record () is more associated with than with . The relative difference is used instead of absolute difference because it provides a scale-independent comparison of the number of patterns associated with one class to another. A value greater than 0.1 indicates that the number of patterns associated with one class is statistically significantly greater than the number associated with another class. Hence, the record () may be mislabelled.
- Outlier: If a record possesses no patterns or very few patterns, it may indicate the record is an outlier. For example, a record with uses the previously described pattern group settings. The comprehensive patterns possessed by this record are: , , , and . Calculating the percentages, is and is . Both percentages are less than or equal to , suggesting that record m possesses fewer than 1% of the patterns associated with either class, which may indicate it is an outlier.
- Undecided: If the number of possessed patterns for a record is similar across different classes, the record should be classified as undecided. For example, a record with uses the previously described pattern group settings. The comprehensive patterns possessed by this record are: , , , and . Calculating the percentages, is the mean of and , which is ; and is the mean of and , which is . Since the difference between the two percentages is zero or less than , record k may be associated with both classes, suggesting it is undecided
3. Results
3.1. Interpretable Results
3.2. Comparison of Unsupervised Learning
3.3. Error Detection Results
3.4. Error Detection Applied to Supervised Learning Models
4. Discussion
4.1. Interpretability
4.2. Error Detection
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| ML | Machine Learning |
| EHR | electronic health records |
| PDD | Pattern Discovery and Disentanglement |
| eICU-CRD | eICU Collaborative Research Database |
| GCS | Glasgow coma scale |
| SPO2 | oxygen saturation |
| SR | adjusted standard residual |
| SR-Matrix | statistical residual matrix |
| RSR-Matrix | Reprojected SR-Matrix |
| AV | attribute value |
| PCA | Principal Component Analysis |
| DSU | Disentangled Space Unit |
| SubGroup | Sub-Pattern group |
| Group | Pattern Group |
| PC | Principal Component |
| RF | Random Forests |
Appendix A. Dataset Description and Preprocessing Details
Appendix A.1. Step 1: Generate Temporal Features based on Vital Signs
Appendix A.2. Step 2: Process Labels
Appendix A.3. Step 2: Filter Features
| Feature | Table | Description |
|---|---|---|
| patientUnitStayID | patient | A distinct ICU admission. The same patient can have multiple. |
| observationOffset | vital periodic | The number of minutes, since admission, before the periodic value was recorded. |
| diagnosisoffset | diagnosis | Number of minutes, since admission, before diagnosis was recorded. |
| diagnosisPriority | diagnosis | Diagnosis was marked as Primary, Major, or Other |
| diagnosisString | diagnosis | The full pathstring of diagnosis selected in Philips eCareManager software with sections separated with pipes (e.g: cardiovascular | shock/hypotension | sepsis ) |
| ICD9Code | diagnosis | International Classification of Diseases code used to classify diagnoses (e.g: 518.81, 491.20, etc.) |
References
- Weerasinghe, K.; Scahill, S.L.; Pauleen, D.J.; Taskin, N. Big data analytics for clinical decision-making: Understanding health sector perceptions of policy and practice. Technological Forecasting and Social Change 2022, 174, 121222. [Google Scholar] [CrossRef]
- Rajkomar, A.; Oren, E.; Chen, K.; Dai, A.M.; Hajaj, N.; Hardt, M.; Liu, P.J.; Liu, X.; Marcus, J.; Sun, M.; et al. Scalable and accurate deep learning with electronic health records. NPJ digital medicine 2018, 1, 1–10. [Google Scholar] [CrossRef] [PubMed]
- Rudin, C.; Chen, C.; Chen, Z.; Huang, H.; Semenova, L.; Zhong, C. Interpretable machine learning: Fundamental principles and 10 grand challenges. Statistic Surveys 2022, 16, 1–85. [Google Scholar] [CrossRef]
- Raghupathi, W.; Raghupathi, V. Big data analytics in healthcare: promise and potential. Health information science and systems 2014, 2, 1–10. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, T.; Diakiw, S.; VerMilyea, M.; Dinsmore, A.; Perugini, M.; Perugini, D.; Hall, J. Efficient automated error detection in medical data using deep-learning and label-clustering. Scientific reports 2023, 13, 19587. [Google Scholar] [CrossRef] [PubMed]
- Rudin, C. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature machine intelligence 2019, 1, 206–215. [Google Scholar] [CrossRef]
- Mehrabi, N.; Morstatter, F.; Saxena, N.; Lerman, K.; Galstyan, A. A survey on bias and fairness in machine learning. ACM computing surveys (CSUR) 2021, 54, 1–35. [Google Scholar] [CrossRef]
- Amann, J.; Blasimme, A.; Vayena, E.; Frey, D.; Madai, V.I.; Consortium, P. Explainability for artificial intelligence in healthcare: a multidisciplinary perspective. BMC medical informatics and decision making 2020, 20, 1–9. [Google Scholar] [CrossRef] [PubMed]
- Sun, Y.; Wong, A.K.; Kamel, M.S. Classification of imbalanced data: A review. International journal of pattern recognition and artificial intelligence 2009, 23, 687–719. [Google Scholar] [CrossRef]
- Wong, A.K.; Zhou, P.Y.; Butt, Z.A. Pattern discovery and disentanglement on relational datasets. Scientific reports 2021, 11, 5688. [Google Scholar] [CrossRef] [PubMed]
- Wong, A.K.; Zhou, P.Y.; Lee, A.E.S. Theory and rationale of interpretable all-in-one pattern discovery and disentanglement system. npj Digital Medicine 2023, 6, 92. [Google Scholar] [CrossRef] [PubMed]
- Northcutt, C.G.; Athalye, A.; Mueller, J. Pervasive label errors in test sets destabilize machine learning benchmarks. arXiv, 2021; arXiv:2103.14749. [Google Scholar]
- Zhou, Z.H. Ensemble Methods: Foundations and Algorithms; CRC press: Boca Raton, FL, USA, 2012. [Google Scholar]
- Khan, A.A.; Chaudhari, O.; Chandra, R. A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluation. Expert Systems with Applications 2024, 244, 122778. [Google Scholar] [CrossRef]
- Pollard, T.J.; Johnson, A.E.; Raffa, J.D.; Celi, L.A.; Mark, R.G.; Badawi, O. The eICU Collaborative Research Database, a freely available multi-center database for critical care research. Scientific data 2018, 5, 1–13. [Google Scholar] [CrossRef] [PubMed]
- Parmar, S.; Shan, T.; Lee, S.; Kim, Y.; Kim, J.Y. Extending Machine Learning-Based Early Sepsis Detection to Different Demographics. 2024 IEEE First International Conference on Artificial Intelligence for Medicine, Health and Care (AIMHC). IEEE, 2024, pp. 70–71.
- Singer, M.; Deutschman, C.S.; Seymour, C.W.; Shankar-Hari, M.; Annane, D.; Bauer, M.; Bellomo, R.; Bernard, G.R.; Chiche, J.D.; Coopersmith, C.M.; et al. The third international consensus definitions for sepsis and septic shock (Sepsis-3). Jama 2016, 315, 801–810. [Google Scholar] [CrossRef]
- Hilarius, K.W.; Skippen, P.W.; Kissoon, N. Early recognition and emergency treatment of sepsis and septic shock in children. Pediatric Emergency Care 2020, 36, 101–106. [Google Scholar] [CrossRef]
- Dellinger, R.P.; Levy, M.M.; Rhodes, A.; Annane, D.; Gerlach, H.; Opal, S.M.; Sevransky, J.E.; Sprung, C.L.; Douglas, I.S.; Jaeschke, R.; et al. Surviving sepsis campaign: international guidelines for management of severe sepsis and septic shock: 2012. Critical care medicine 2013, 41, 580–637. [Google Scholar] [CrossRef] [PubMed]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. Journal of machine Learning research 2011, 12, 2825–2830. [Google Scholar] [CrossRef]
- Haixiang, G.; Yijing, L.; Shang, J.; Mingyun, G.; Yuanyue, H.; Bing, G. Learning from class-imbalanced data: Review of methods and applications. Expert systems with applications 2017, 73, 220–239. [Google Scholar] [CrossRef]
- Palczewska, A.; Palczewski, J.; Marchese Robinson, R.; Neagu, D. Interpreting random forest classification models using a feature contribution method. Integration of reusable systems, 2014; 193–218. [Google Scholar]
- Marchenko, O.; Russek-Cohen, E.; Levenson, M.; Zink, R.C.; Krukas-Hampel, M.R.; Jiang, Q. Sources of safety data and statistical strategies for design and analysis: real world insights. Therapeutic Innovation & Regulatory Science 2018, 52, 170–186. [Google Scholar] [CrossRef]








| Features | Low Range | Normal Range | High Range |
|---|---|---|---|
| GCS | 3-8 (Severe) | 9-12 (Moderate) | 13-15 (Mild) |
| Systolic BP1 | <90 mm Hg | 90 - 120 mm Hg | >120 mm Hg |
| Diastolic BP1 | <60 mm Hg | 60 - 80 mm Hg | >80 mm Hg |
| Mean BP1 | <70 mm | 70-93 mm Hg | >93 mm Hg |
| Pulse Pressure | <30 mm Hg | 30 - 40 mm Hg | >40 mm Hg |
| Heart Rate | <60 bpm | 60 - 100 bpm | >100 bpm |
| Unsupervised Learning | Precision | Recall | Accuracy | Balanced Accuracy | Weighted F1-Score |
|---|---|---|---|---|---|
| PDD (28-features data) | 0.83 | 0.90 | 0.87 | 0.89 | 0.88 |
| K-means (28-features data) | 0.43 | 0.42 | 0.52 | 0.42 | 0.54 |
| K-means (114-features data) | 0.59 | 0.51 | 0.75 | 0.51 | 0.67 |
| Classifiers (Before/After Error Detection) | Precision | Recall | Accuracy | Balanced Accuracy | Weighted F1-Score |
|---|---|---|---|---|---|
| Random Forest | 0.85/0.87 | 0.73/0.76 | 0.86/0.86 | 0.73/0.76 | 0.84/0.85 |
| SVM | 0.71/0.71 | 0.53/0.54 | 0.77/0.75 | 0.53/0.54 | 0.7/0.68 |
| NN | 0.71/0.74 | 0.71/0.80 | 0.79/0.77 | 0.71/0.80 | 0.79/0.78 |
| Logistic Regression | 0.84/0.83 | 0.79/0.80 | 0.87/0.86 | 0.79/0.80 | 0.87/0.86 |
| LightGBM | 0.9/0.93 | 0.89/0.93 | 0.92/0.95 | 0.89/0.93 | 0.92/0.95 |
| XGBoost | 0.89/0.94 | 0.88/0.93 | 0.92/0.95 | 0.88/0.93 | 0.92/0.95 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
