Use of natural language processing to extract uterine weight from pathology reports.
Steven Habbous, Alinah Surani, Ally Murji, Erik Hellsten
Ontario Health, Toronto, Ontario, Canada. · Department of Obstetrics and Gynaecology, University of Toronto, Toronto, Ontario, Canada.
Key points
From the paper's conclusion- Natural language processing followed by simple CART can accurately extract total uterine weight from narrative pathology reports. Further work is needed to extract specific anatomic weights.
Abstract
INTRODUCTION: For patients requiring hysterectomy, uterine weight is an important factor affecting surgical complexity and surgical outcomes. However, uterine weight is not readily available for analysis in administrative databases. In the present study, we use natural language processing to extract uterine weight from narrative pathology text. METHODS: Pathology text was obtained for 5000 patients sampled ±3 days of hysterectomy from hospital administrative datasets. The gross pathology subsections that describe the submitted tissues were retained for analysis. Manual annotation was performed to create a gold standard dataset. The texts were pre-processed, tokenized (split into words and punctuation), and tagged with parts-of-speech (e.g., noun, verb, number, adverb). Numeric tokens were retained for analysis. Feature engineering (e.g., variable construction and selection) included creating subspecimen flags, three tokens before and after the numeric tokens, weight units, and the prefix "weigh." Models included classification and regression trees (CART), extreme gradient boosting (XGB), and CatBoost, trained on 75%, validated on 15%, and tested in a 10% hold-out dataset. Performance on a real-world application was assessed for all hysterectomies performed over a 4-year period. RESULTS: Trained on all numeric tokens using features determined a priori, CART had 99.1% precision and 100% recall, with eight false positives. XGB performed similarly (99.3% precision; 99.9% recall). Performance was best using CatBoost's ordered target encoding and all values of the previous and subsequent three tokens (99.8% precision; 100% recall). Applied to the test dataset, CART slightly outperformed CatBoost with two fewer false positives. Summing all weights in the test set reports (n = 474), the extracted total specimen weight was a mean 9.4 g higher than the truth, owing predominantly to duplicate weights (22/37 discrepant reports). Application in the real-world dataset (n = 57 546) identified a small number of reports with data quality issues specific to low-weight specimens that should be excluded (≤10 g) or subjected to manual adjudication (>10 to ≤15 g). CONCLUSION: Natural language processing followed by simple CART can accurately extract total uterine weight from narrative pathology reports. Further work is needed to extract specific anatomic weights.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Free Text to Research-Ready Data: A Reproducible, Reverse-Audited Pipeline for Structuring Breast Mammography Reports.Journal of imaging informatics in medicine · 2026
- Incorporating natural language processing-derived features from pathology reports into machine learning models to predict differentiated thyroid cancer recurrence.Frontiers in endocrinology · 2026
- Single-slice ct body-weight prediction with image and metadata fusion: a multi-model comparison.Radiological physics and technology · 2026
- Lung cancer research: how natural language processing enhances clinical data extraction.Journal of thoracic disease · 2026
- QLTI-15 A natural-language question-answering system for institutional meningioma cohorts: querying outcomes across grade, location, age, and treatment trajectory with verified statistics and patient-level traceabilityNeuro-Oncology · 2026
- Osteoporosis prediction using lumbar CT Hounsfield units: comparative performance and clinical implications of seven machine learning modelsEuropean Spine Journal · 2026