Generalizing machine learning models from clinical free text.

Journal: Scientific reports
Published Date:

Abstract

To assess strategies for enhancing the generalizability of healthcare artificial intelligence models, we analyzed the impact of preprocessing approaches applied to medical free text, compared single- versus multiple-institution data models, and evaluated data divergence metrics. From 1,607,393 procedures across 44 U.S. institutions, deep neural network models were created to classify anesthesiology Current Procedural Terminology codes from medical free text. Three levels of text preprocessing were analyzed from minimal to automated (cSpell) with comprehensive physician review. Kullback-Leibler Divergence and k-medoid clustering were used to predict single- vs multiple-institutional model performances. Single-institution models showed a mean accuracy of 92.5% [2.8% SD] and 0.923 [0.029] F1 on internal data but generalized poorly on external data (- 22.4% [7.0%]; - 0.223 [0.081]). Free text preprocessing minimally altered performance (+ 0.51% [2.23]; + 0.004 [0.020]). An all-institution model performed worse on internal data (-4.88% [2.43%]; - 0.045 [0.020]), but improved generalizability to external data (+ 17.1% [8.7%]; + 0.182 [0.073]). Compared to vocabulary overlap and Jaccard similarity, Kullback-Leibler Divergence correlated with model performance (R of 0.41 vs 0.16 vs 0.08, respectively) and was successful clustering institutions and identifying outlier data. Overall, pre-processing medical free text showed limited utility improving generalization of machine learning models, single institution models performed best but generalized poorly, while combined data models improved generalization but never achieved performance of single-institutional models. Kullback-Leibler Divergence provided valuable insight as a reliable heuristic to evaluate generalizability. These results have important implications in developing broad use artificial intelligence healthcare applications, providing valuable insight into their development and evaluations.

Authors

  • Balaji Pandian
    2School of Medicine, University of Michigan, Ann Arbor, Michigan.
  • John Vandervest
  • Graciela Mentz
    Department of Anesthesiology, Michigan Medicine, Ann Arbor, MI, USA.
  • Jomy Varghese
    Department of Anesthesiology, University of Michigan, 1500 East Medical Center Drive, 1H247 UH, SPC 5048, Ann Arbor, MI, 48109-5048, USA.
  • Shavano D Steadman
    Department of Urology, University of Michigan, Ann Arbor, MI, USA.
  • Sachin Kheterpal
    Department of Anesthesiology, University of Michigan, Ann Arbor, MI, 48109, USA.
  • Maggie Makar
    M. Makar is assistant professor, Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, Michigan.
  • V G Vinod Vydiswaran
    Department of Learning Health Sciences, University of Michigan Medical School, Ann Arbor, MI, USA.
  • Michael L Burns
    Department of Anesthesiology, University of Michigan, Ann Arbor, Michigan.