Scalable classification of infant breast milk feeding status from clinical notes using weak supervision and rule-based natural language processing
Open Access
- 9 September 2026
- journal article
- Published by Oxford University Press (OUP) in JAMIA Open
- Vol. 9 (5)
Abstract
Objective: Extract infant breast milk feeding status from electronic health record clinical notes to support observational drug-safety studies. Materials and Methods: Infant notes (19 489; 228 infants) were weakly labeled by large language model (LLM) and validated on 1045 manually reviewed notes. Using these labels, we built a rule-based medspaCy classifier from a curated feeding term set and compared it with ClinPhen and fine-tuned Bidirectional Encoder Representations from Transformers (BERT) document classifiers. Maternal postpartum notes (23 mothers; 616 partitions) were manually labeled to compare BERT with prompt-based language models. Results: LLM labels achieved 99.62% accuracy (macro F1 99.32%). medspaCy achieved 94.36% accuracy and 90.40% balanced accuracy (macro F1 0.90) and was applied to 52 278 mother–infant dyads. On maternal notes, the prompt-based model improved Positive-class F1 vs BERT (0.96 vs 0.82). Discussion: LLMs were most effective for scalable labeling; deterministic rules supported transparent large-scale inference. Conclusion: Weak supervision plus lightweight rules can convert sparse breastfeeding documentation into structured variables at-scale.Keywords
Funding Information
- The Ohio State University Clinical and Translational Science Institute (P30HD106451)
- National Center for Advancing Translational Sciences
- National Institutes of Health (UM1TR004548)
This publication has 15 references indexed in Scilit:
- Operationalizing a research-oriented learning healthcare system across covered entities: cross-institutional strategies and innovationsnpj Health Systems, 2025
- Derivation and validation of an algorithm for maternal–child linkage in electronic health recordsJournal of the American Medical Informatics Association, 2025
- Leveraging large language models for knowledge-free weak supervision in clinical natural language processingScientific Reports, 2025
- Classifying early infant feeding status from clinical notes using natural language processing and machine learningScientific Reports, 2024
- Evaluation of Drug Labels Following the 2015 Pregnancy and Lactation Labeling RuleJAMA Network Open, 2020
- ClinPhen extracts and prioritizes patient phenotypes directly from medical records to expedite genetic disease diagnosisGenetics in Medicine, 2019
- Clinical information extraction applications: A literature reviewJournal of Biomedical Informatics, 2018
- Analysis of free text in electronic health records for identification of cancer patient trajectoriesScientific Reports, 2017
- Extent of Medication Use in Breastfeeding WomenBreastfeeding Medicine, 2007
- Drug use during breastfeeding. A survey from the NetherlandsEuropean Journal of Clinical Nutrition, 2004