JMIR Publications Blog

Retraining the Algorithm: How Expert Eyes Correct EMR Errors in Maternal Care

Written by Liana Ramos, Marketing Associate | 22 July 2026 3:41 PM

Postpartum hemorrhage (PPH) remains a leading cause of maternal morbidity worldwide, with blood transfusion rates hovering around 2% to 2.7%. While discussing these risks is a vital component of antenatal informed consent and shared decision-making, translating historical medical records into an accurate personal risk profile is notoriously difficult.


Key Takeaways

The Danger of Flawless Software with Flawed Data: Machine learning models trained on raw EMR data can appear statistically superior while producing completely inaccurate clinical predictions, as seen when the algorithm misidentified vaginal deliveries as unspecified cesarean sections due to data labeling errors.

Essential Human Intervention: Manual physician chart review is mandatory for cleaning clinical data, as it allows the model to shift its feature importance rankings to reflect actual clinical reality rather than structural archiving flaws.

Improved Clinical Utility: Once retrained on physician-labeled data, the model achieved high accuracy metrics (PR-ROC of 0.78) and was effectively integrated into a clinical decision support application that assists obstetricians in prenatal risk assessment.


In a recent retrospective cohort study published in JMIR Formative Research, researcher Jennifer Glance and colleagues from Kettering Health highlight a critical bottleneck in maternal health informatics. They demonstrate that while machine learning models can accurately predict which patients will require a peripartum blood transfusion, the software is only as good as the human eyes reviewing the underlying data.

When Flawless Software Meets Flawed Medical Records

To explore how delivery modes and maternal indications affect blood transfusion rates, the research team analyzed a 10-year retrospective cohort of 62,521 births. They trained an extreme gradient boosting (XGBoost) machine learning model on a sample of 1,734 patient records using two separate approaches: one using raw, structured data pulled directly from the Electronic Medical Record (EMR), and another using that same dataset after it was manually cleaned and reviewed by a physician.

On paper, the model trained on raw EMR data actually looked superior, logging a slightly higher precision-recall curve. However, testing the model in a live clinical interface revealed a glaring problem: its clinical predictions and feature importance rankings were completely inaccurate.

The issue stems from a common electronic archiving flaw. In raw EMR databases, vaginal deliveries are routinely labeled as an unspecified indication for a cesarean section. Because the machine learning algorithm lacks clinical context, it misidentified these unlabeled files, mixing up delivery modes and completely miscalculating which patient variables actually drove the hemorrhage risk.

The Power of Human Context in Retraining Clinical AI

To resolve this data pollution, a physician performed a manual chart review, tracking down 120 unlabeled entries and explicitly correcting misclassified elective delivery records based on real clinical notes.

Once the model was retrained on this clean, physician-labeled dataset, the structural math aligned perfectly with live clinical logic:

  • Ecosystem Integrity: The precision-recall receiver operating characteristic curve (PR-ROC) held strong at 0.78, paired with a balanced F1 safety score of 0.809.
  • Clinical Accuracy: Feature importance rankings shifted to reflect clinical reality, correctly placing the active delivery mode (cesarean vs. vaginal) as the primary risk vector, followed directly by specific medical or surgical complications.

Using this validated model, the team built a prototype clinical decision support application. The interface translates complex algorithmic probabilities into clear risk tiers (low, moderate, or high) based on the Youden J statistic. This gives obstetricians an intuitive, workflow-integrated tool to help guide shared decision-making conversations during prenatal checkups.

  In this video, Dr. Jennifer Glance from Kettering Medical Center presents a retrospective cohort study evaluating machine learning models to predict postpartum hemorrhage (PPH) requiring a blood transfusion.  
 

Why JMIR?

The authors selected JMIR Formative Research to present this project because of the journal's focus on the formative evaluation of digital health interventions and medical predictive analytics. As hospital networks rush to implement automated decision support tools, this study serves as an essential warning: raw electronic medical records are riddled with structural inconsistencies, and collaborative physician data-labeling is mandatory to ensure patient-facing AI tools are safe, accurate, and useful.

Curious to see how physician-reviewed data models are refining maternal risk analytics? Watch the video featuring Jennifer Glance and read the full retrospective cohort study to explore the underlying XGBoost frameworks, data-cleaning methodologies, and the digital app architecture designed for point-of-care informed consent.


Glance J, Nielson J, Bonnema A
Evaluating Postpartum Hemorrhage Transfusion Risk With a Machine Learning Model for Informed Consent: Retrospective Cohort Study
JMIR Form Res 2026;10:e82424
URL: https://formative.jmir.org/2026/1/e82424
DOI: 10.2196/82424