- Open Access
Implementation of machine learning in the clinic: challenges and lessons in prospective deployment from the System for High Intensity EvaLuation During Radiation Therapy (SHIELD-RT) randomized controlled study
BMC Bioinformatics volume 23, Article number: 408 (2022)
Artificial intelligence (AI) and machine learning (ML) have resulted in significant enthusiasm for their promise in healthcare. Despite this, prospective randomized controlled trials and successful clinical implementation remain limited. One clinical application of ML is mitigation of the increased risk for acute care during outpatient cancer therapy. We previously reported the results of the System for High Intensity EvaLuation During Radiation Therapy (SHIELD-RT) study (NCT04277650), which was a prospective, randomized quality improvement study demonstrating that ML based on electronic health record (EHR) data can direct supplemental clinical evaluations and reduce the rate of acute care during cancer radiotherapy with and without chemotherapy. The objective of this study is to report the workflow and operational challenges encountered during ML implementation on the SHIELD-RT study.
Data extraction and manual review steps in the workflow represented significant time commitments for implementation of clinical ML on a prospective, randomized study. Barriers include limited data availability through the standard clinical workflow and commercial products, the need to aggregate data from multiple sources, and logistical challenges from altering the standard clinical workflow to deliver adaptive care.
The SHIELD-RT study was an early randomized controlled study which enabled assessment of barriers to clinical ML implementation, specifically those which leverage the EHR. These challenges build on a growing body of literature and may provide lessons for future healthcare ML adoption.
Trial registration: NCT04277650. Registered 20 February 2020. Retrospectively registered quality improvement study.
Artificial intelligence (AI) and machine learning (ML) have generated much enthusiasm in the healthcare space. Despite this, many obstacles remain to their adoption in routine clinical care. Among these are a lack of prospective data, need for trust from clinicians and patients, and logistical challenges in integration [1,2,3,4,5]. The need for this prospective deployment experience is critical, to verify accuracy and demonstrate usability and clinical value in the real world. As such, digital health innovations have had a limited clinical impact .
We previously completed one of the first randomized controlled studies of clinical ML, using an electronic health record (EHR)-based ML approach to identify patients at high risk for acute care (emergency department visit or hospitalization) during cancer radiation therapy (RT) . These patients were then randomized to standard of care weekly evaluations (with ad hoc visits as deemed appropriate by the treating physician) versus mandatory twice-weekly evaluations. This study demonstrated that ML could appropriately identify high-risk patients and guide interventional strategies, reducing acute care rates in the high-risk population from 22.3% to 12.3%. Supportive management of patients with cancer is critical, with acute care resulting in detriments to patient outcomes, quality of life, treatment decisions, and costs, which have made it a priority to the Centers for Medicare and Medicaid Services [7,8,9].
The impact on clinical workflow is an important consideration to assess the hidden costs of clinical ML implementation . This study focuses on describing the challenges encountered in the workflow of integrating a locally developed ML approach in a busy radiation oncology clinic during the course of the randomized controlled SHIELD-RT study.
Deployment data extraction
One major identified barrier for the physics team was to develop a method for extracting data in real-time clinical practice. In aggregate, the below data extraction process required a median of 5 h (interquartile range [IQR] 4–5 h) per week of a medical physics resident’s time.
For the purposes of deployment, identification of new RT courses was required. One major challenge in practically identifying these courses was the labels used in the Aria oncology information system (OIS) (Varian Medical Systems, Palo Alto). During retrospective model development, this was simply queried to identify 8134 courses of radiotherapy completed from 2013 to 2016 . In prospective development, identification of courses required queries through the scheduling system. The OIS designation at the time of SHIELD-RT designated new treatment appointments as three potential options: “new start” (new patient beginning new course), “old start” (patient with a prior OIS course starting new course) or “final treatment” (either final fraction of a multi-fraction treatment or start of a single fraction treatment) (Fig. 1). To identify courses during the first week of treatment, manual review was needed to verify “old starts” and for quality assurance to verify that single fraction treatments labeled as “final treatment” were indeed a new course of radiation therapy.
After identification of eligible treatment courses, RT data were extracted from the OIS, including details regarding the treatment course name, prescription, total dose, number of fractions, RT technique, and patient diagnosis based on International Classification of Diseases (ICD) codes.
Additional manual review was required to inspect draft (unsigned) prescriptions of sequential RT boosts and verify that they were an intended component of the treatment plan. This included subsequent radiation plans that were designed to deliver additional RT dose to a portion of the originally treated field within a single treatment course (e.g., a boost to a breast tumor bed following lumpectomy after primary whole breast treatment). Manual review of their inclusion was needed to accurately characterize a patient’s planned treatment course. Draft prescriptions typically represent planned treatment, but can also include boosts that are no longer intended (e.g., due to radiation planning constraints). These draft prescriptions are sometimes pended unsigned at the start of treatment initiation and therefore not automatically aggregated.
Machine learning deployment
Once patient RT data was identified, the process to generate ML predictions, randomize patients, and deploy clinical alerts was undertaken, requiring a median of 1.5 h per week (IQR 1–2 h) of the lead investigator’s time. From the OIS-generated patient list, the patient medical record number was used to query pre-treatment EHR data from the Duke enterprise data unified content explorer (DEDUCE) to provide additional input for the ML prediction . DEDUCE aggregates data directly from the hospital and clinic operations via the Decision Support Repository (DSR), similarly to efforts utilizing data from institutional clinical data warehouses [13,14,15].
The combined OIS and EHR-queried data were then input into an aggregated R script to generate ML predictions. Patients identified as high risk (ML predicted 10% or greater risk of requiring acute care) were then entered into a REDCap database, which facilitated randomization, study documentation, and auditing . Alerts were then manually placed in the OIS so that patients could be appropriately directed to supplemental visits, and the treating team was notified via manual emails. For auditing at a later time during the course of the study, the ML model was then run by two independent investigators and output verified.
The clinical workflow
During treatment, alerts in the OIS prompted radiation therapists to direct high-risk patients who were randomized to the intervention arm to examination rooms for weekly mandatory supplemental visits. As previously reported, 79.7% (444 of 557) of mandatory supplemental evaluations were completed, with a median of 0 missed visits per course (IQR 0–1). Anecdotally, these were largely associated with missed alerts or patients forgetting about their supplemental evaluations especially in the context of variable scheduled times. These visits required an additional median of 5 min (IQR 5–10 min) of clinician time per visit .
In this study, we identify specific challenges during the implementation of a randomized controlled study of EHR-based ML-directed clinical evaluations for cancer patients undergoing RT. We demonstrated specific barriers across the real-time data aggregation, ML deployment, and clinical workflow steps. While the challenges are specific to the radiation oncology domain, the broader barriers are important considerations for investigators and clinicians alike, as AI becomes increasingly relevant in the delivery of clinical care. These practical concerns are often not readily apparent or underestimated prior to clinical implementation, and can impact successful clinical use [1, 2, 10]. Streamlining the workflow to minimize deployment challenges is currently under discussion and investigation with institutional health ML oversight bodies as we work towards implementing our ML model into routine care.
One major obstacle was the need for real-time data aggregation, particularly in the context of data extraction from commercial products, such as our institutional OIS. Application programming interfaces (APIs) can improve integration with existing software. However, these opportunities do not consistently exist, presenting a barrier to institutionally developed and commercial solutions alike. Furthermore, we demonstrated that as the data were not stored in a fashion conducive for this use case, additional, in some cases manual, evaluation may be needed to obtain the required information. Modifications of OIS course start naming conventions and consistent entry of draft prescriptions may improve automation and reduce the need for manual review.
Disparate information systems represent a second challenge. Cancer care, including RT, frequently involves multiple information systems that capture data salient to clinically relevant decisions. This includes the EHR and OIS, as well as other sources (pathology information systems), procedure data, and genomic data. Some of these elements are aggregated in the EHR, but typically in an unstructured format that makes real-time utilization challenging. The planned integration of data derived from clinical free-text will further introduce challenges in real-time data integration . Our team is currently working towards a unified, rather than ad hoc data stream to improve linkage and clinical deployment.
Finally, we developed a clinical workflow that minimizes the number of touch points during the clinic day, integrating a direct OIS alert to the radiation therapy team at a treatment machine and the clinician responsible for the supplemental visits. Rates of supplemental visit completion were high, and overall clinician time was efficient.
This study does have limitations, including a specific use case and single institution. These may limit the generalizable lessons from our implementation, though this study demonstrates broader themes in ML implementation. This algorithm was also deployed during a 6-month period. Routine clinical deployment or longer-term prospective studies require more prolonged implementation periods, which introduce the risk of other confounders, such as automation bias or distributional shift, requiring regular quality assurance .
This early randomized study of ML-directed care demonstrates the potential for ML to guide systematic, clinically meaningful differences at the point of care. However, many challenges arose that required staff time and effort, and these must be streamlined for clinical deployment and routine adoption.
Ethics, consent, and permissions
SHIELD-RT was a prospective, randomized controlled quality improvement (QI) study, which was approved by the Duke University Medical Center Institutional Review Board (Pro00100647) and registered on ClinicalTrials.gov (NCT04277650). As a QI study, study consent was not required.
SHIELD-RT study details
The methods of the SHIELD-RT study have been previously described . This study included all adult outpatient RT courses with or without concurrent systemic therapy from January 7, 2019 to June 30, 2019 at the Duke Cancer Institute. Total body irradiation courses were excluded due to planned admissions.
The ML model was previously developed, and source code is available online . This was deployed and run weekly to identify high-risk patients who had started RT in the current week, with > 10% predicted risk of requiring acute care in the form of an emergency department (ED) visit or hospital admission. High-risk patients were subsequently randomized to standard of care, which consists of weekly on-treatment evaluations by the treating radiation oncologist, or the addition of a mandatory second weekly evaluation, typically performed by a clinician on the primary treating team (attending physician, resident physician, advanced practice provider, or nurse clinician). Both arms allowed for additional evaluations as indicated by the treating physician. The primary endpoint of this study was the rate of acute care visits during courses of RT, with secondary endpoints including the rate of acute care visits during RT and the 15 days following treatment, rates of missed supplemental evaluations, and reasons for acute care (grouped by those designated as potentially preventable by CMS ).
Implementation data collection
During the course of the study, investigators at each stage of implementation logged their time spent on the various tasks needed for deployment. Clinician time was also documented in formal EHR clinical visit notes. Each team also described their workflows to facilitate future reproduction for routine clinical implementation.
Availability of data and materials
Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.
Application programming interfaces
Centers for Medicare and Medicaid Services
Decision support repository
Duke enterprise data unified content explorer
Electronic health record
International classification of diseases
Oncology information system
System for High Intensity EvaLuation During Radiation Therapy
Coiera E. The last mile: Where artificial intelligence meets reality. J Med Internet Res. 2019;21:e16323.
Beede E, Baylor E, Hersch F, Iurchenko A, Wilcox L, Ruamviboonsuk P, et al. A human-centered evaluation of a deep learning system deployed in clinics for the detection of diabetic retinopathy. In: Proceedings of the 2020 CHI conference on human factors in computing systems. Honolulu, HI, USA: Association for Computing Machinery; 2020. p. 1–12. doi:https://doi.org/10.1145/3313831.3376718.
Nimri R, Battelino T, Laffel LM, Slover RH, Schatz D, Weinzimer SA, et al. Insulin dose optimization using an automated artificial intelligence-based decision support system in youths with type 1 diabetes. Nat Med. 2020;26:1380–4.
Hong JC, Eclov NCW, Dalal NH, Thomas SM, Stephens SJ, Malicki M, et al. System for High-Intensity Evaluation during Radiation Therapy (SHIELD-RT): a prospective randomized study of machine learning-directed clinical evaluations during radiation and chemoradiation. JCO. 2020;38:3652–61.
Wijnberge M, Geerts BF, Hol L, Lemmers N, Mulder MP, Berge P, et al. Effect of a machine learning-derived early warning system for intraoperative hypotension vs standard care on depth and duration of intraoperative hypotension during elective noncardiac surgery: the HYPE randomized clinical trial. JAMA. 2020. https://doi.org/10.1001/jama.2020.0592.
Safavi K, Mathews SC, Bates DW, Dorsey ER, Cohen AB. Top-funded digital health companies and their impact on high-burden. High-Cost Conditions Health Affairs. 2019;38:115–23.
Jairam V, Lee V, Park HS, Thomas CR, Melnick ER, Gross CP, et al. Treatment-related complications of systemic therapy and radiotherapy. JAMA Oncol. 2019;5:1028–35.
Phillips CM, Deal K, Powis M, Singh S, Dharmakulaseelan L, Naik H, et al. Evaluating patients’ perception of the risk of acute care visits during systemic therapy for cancer. JCO Oncol Pract. 2020;16:e622–9.
Admissions and Emergency Department (ED) Visits for Patients Receiving Outpatient Chemotherapy. https://cmit.cms.gov/CMIT_public/ViewMeasure?MeasureId=2929. Accessed 19 Dec 2019.
Morse KE, Bagley SC, Shah NH. Estimate the hidden deployment cost of predictive models to improve patient care. Nat Med. 2020;26:18–9.
Hong JC, Niedzwiecki D, Palta M, Tenenbaum JD. Predicting Emergency visits and hospital admissions during radiation and chemoradiation: an internally validated pretreatment machine learning algorithm. JCO Clinical Cancer Informatics. 2018;2:1–11.
Horvath MM, Winfield S, Evans S, Slopek S, Shang H, Ferranti J. The DEDUCE Guided Query tool: providing simplified access to clinical data for research and quality improvement. J Biomed Inform. 2011;44:266–76.
Murphy SN, Mendis M, Hackett K, Kuttan R, Pan W, Phillips LC, et al. Architecture of the open-source clinical research chart from Informatics for Integrating Biology and the Bedside. AMIA Annu Symp Proc. 2022;2007:548–52.
Murphy SN, Chueh HC. A security architecture for query tools used to access large biomedical databases. Proc AMIA Symp. 2022;2002:552–6.
Lowe HJ, Ferris TA, Hernandez PM, Weber SC. STRIDE–An integrated standards-based translational research informatics platform. AMIA Annu Symp Proc. 2009;2009:391–5.
Harris PA, Taylor R, Thielke R, Payne J, Gonzalez N, Conde JG. Research Electronic Data Capture (REDCap)—a metadata-driven methodology and workflow process for providing translational research informatics support. J Biomed Inform. 2009;42:377–81.
Hong JC, Fairchild AT, Tanksley JP, Palta M, Tenenbaum JD. Natural language processing for abstraction of cancer treatment toxicities: accuracy versus human experts. JAMIA Open. 2020;3:513–7.
Lyell D, Coiera E. Automation bias and verification complexity: a systematic review. J Am Med Inform Assoc. 2017;24:423–31.
About this supplement
This article has been published as part of BMC Bioinformatics Volume 23 Supplement 12, 2022: Fifth and Sixth Computational Approaches for Cancer Workshop. The full contents of the supplement are available online at https://bmcbioinformatics.biomedcentral.com/articles/supplements/volume23-supplement-12.
This study was funded in part by the Duke Endowment, which had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. The Duke Department of Radiation Oncology also provided funding.
Ethics approval and consent to participate
This study was approved by the Duke University Medical Center Institutional Review Board (Pro00100647) as a quality improvement study. As a quality improvement study, study consent was not required.
Consent for publication
JCH and MP, are coinventors on a pending patent, “Systems and methods for predicting acute care visits during outpatient cancer therapy,” studied in this manuscript.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Hong, J.C., Eclov, N.C.W., Stephens, S.J. et al. Implementation of machine learning in the clinic: challenges and lessons in prospective deployment from the System for High Intensity EvaLuation During Radiation Therapy (SHIELD-RT) randomized controlled study. BMC Bioinformatics 23 (Suppl 12), 408 (2022). https://doi.org/10.1186/s12859-022-04940-3
- Radiation therapy
- Machine learning
- Artificial intelligence
- Quality improvement