From Free Text to Research-Ready Data: A Reproducible, Reverse-Audited Pipeline for Structuring Breast Mammography Reports.
Xu Zhang, Yunjiang Li, Rui Feng, Yuhai Xie, Qinqin Ai, Wenbin Ni
Department of Ultrasound, Hangzhou Xixi Hospital, No. 2 Hengbu Street, Xihu District, Hangzhou, Zhejiang, 310023, P. R. China. · Department of Radiology, Hangzhou Xixi Hospital, No. 2 Hengbu Street, Xihu District, Hangzhou, Zhejiang, 310023, P. R. China.
Key points
From the paper's conclusion- We developed a rule-based pipeline (PyMuPDF text extraction with section-aware regular expressions) that structured 615 source PDF reports into a verified 299 patient cohort (mean age 52.4 years; 290 female, sex not recorded in 9) with molecular subtype available for 286.
Abstract
Exported PDF mammography and pathology reports contain rich phenotypic and molecular information, yet they remain underused for research because converting them into research-ready variables is labor-intensive and error-prone. We developed a rule-based pipeline (PyMuPDF text extraction with section-aware regular expressions) that structured 615 source PDF reports into a verified 299 patient cohort (mean age 52.4 years; 290 female, sex not recorded in 9) with molecular subtype available for 286. An independent, deterministic reverse audit re-extracted every field from the source PDFs and compared it with the structured table across four validation layers, observing no discrepancies and confirming internal reproducibility rather than absolute accuracy. As a secondary, hypothesis-generating analysis, we used LASSO logistic regression under nested cross-validation (preprocessing and regularization tuned within training folds) to test whether report-level descriptors predict tumor biology. Predictive performance was weak throughout: HER2-positive versus HER2-negative attained the highest out-of-fold AUC 0.614 (95% CI 0.526-0.710), the only endpoint whose interval excluded chance, whereas triple-negative (0.511), four-class subtype (macro-AUC 0.519), and axillary node metastasis (0.455) were at or below chance. Incremental value benchmarks showed no gain over age or BI-RADS alone, and calibration and decision curve analysis indicated no clinically meaningful net benefit. These exploratory findings are consistent with evidence that pixel-level radiomics is more informative than report text; finer-grained NLP- or LLM-derived features remain unexplored. Under compatible report templates, the pipeline yields a reproducible, auditable structured breast cohort from text-exportable PDFs, motivating image-based radiomics as a reusable asset for multicenter research.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Fully Automated Abstraction of Longitudinal Breast Oncology Records with Off-The-Shelf Large Language ModelsmedRxiv · 2026
- Large Language Model Versus Manual Review for Clinical Data Curation in Breast Cancer: Retrospective Comparative StudyJMIR Medical Informatics · 2025
- Prediction of pathological complete response after neoadjuvant therapy in breast cancer using pretreatment core biopsy pathology reports: a pathology-report-driven model with exploratory clinical-laboratory fusion.Frontiers in oncology · 2026
- Associations of mammographic and ultrasonographic features with immunohistochemistry-defined surrogate subtypes of breast cancer: a single-center retrospective studyBMC Medical Imaging · 2026
- External Validation and Clinical Readiness of Imaging Models for Axillary Nodal Metastasis: A Bibliometric Evidence Map with a Nested Full-Text Audit.Journal of imaging informatics in medicine · 2026
- Digital Registrar: A Schema-First Framework for Multi-Cancer Privacy-Preserving Pathology Abstraction via Local LLMsDiagnostics · 2026