Journal of imaging informatics in medicine

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.

Computational

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