Expert-drawn outlines distinguish cancerous breast lesions within the same suspicious ultrasound category
Why it matters
In this breast-ultrasound dataset, an expert-drawn lesion outline helped distinguish cancers among patients given the same broad assessment category. Some predictive information available to an image model therefore comes from the outline supplied by a person. The finding helps researchers test what their models add, but does not show that biopsies can safely be avoided.
To judge whether an ultrasound model can help identify breast cancer, researchers need to know what it adds to a radiologist's assessment. Good performance across all lesions can hide poor performance among lesions rated similarly suspicious. Expert-drawn lesion outlines introduce another source of information. A model given these outlines may benefit from the expert's interpretation as well as the ultrasound image.
In BUS-BRA, a public breast ultrasound dataset, expert-drawn outlines alone distinguished malignant (cancerous) from benign lesions among 392 patients assigned the same broad suspicious category. This category, 4 in the Breast Imaging Reporting and Data System (BI-RADS), records the radiologist's assessment. A model given only filled binary outlines, which mark pixels as inside or outside the lesion, achieved an area under the receiver operating characteristic curve (AUC) of 0.824 when tested on patients excluded from training. Five simple outline measurements achieved 0.786; ultrasound images cropped around the lesions achieved 0.806. Outline-only predictions therefore provide a strong comparison for measuring what an image model adds beyond expert annotations.
Results
The BUS-BRA release provides ultrasound images, expert lesion masks (maps of the pixels inside each outline), pathology labels identifying malignancy, and BI-RADS categories [1,2]. We analyzed 1,875 views from 1,064 patients, including 722 benign and 342 malignant cases. The prespecified category-4 subgroup contained 159 benign and 233 malignant patients. Models were trained across all categories, with each patient's views kept together throughout training, tuning and testing.
For validation, patients were divided into groups called folds. Each fold was tested using models trained on the other folds. Our main discrimination measure compares malignant–benign patient pairs within the same test fold. An AUC of 0.824 means that the outline model ranked the malignant patient higher in 82.4% of these pairs. The category-only comparator assigns the same score to everyone in category 4 within a fold, giving AUC 0.500. We also report pooled AUC across all held-out predictions and the Brier score, the mean squared error of predicted malignancy probabilities, for which lower is better.
The models used ultrasound crops, filled binary outlines, or five geometric measurements of the outlines. Combined models used both crop and outline information, or added the recorded BI-RADS category to these predictions.
| Model | Within-fold AUC (95% interval) | Pooled AUC | Brier score |
|---|---|---|---|
| Category only | 0.500 (0.500–0.500) | 0.466 | 0.2416 |
| Ultrasound crop | 0.806 (0.758–0.850) | 0.801 | 0.1801 |
| Binary expert outline | 0.824 (0.782–0.865) | 0.829 | 0.1674 |
| Five outline measurements | 0.786 (0.736–0.829) | 0.790 | 0.1955 |
| Crop + outline | 0.842 (0.800–0.880) | 0.838 | 0.1620 |
| Category + outline | 0.824 (0.782–0.865) | 0.825 | 0.1655 |
| Category + crop + outline | 0.842 (0.800–0.880) | 0.834 | 0.1603 |
Table 1. Performance in the same 392 category-4 patients. Intervals use 1,000 bootstrap samples, drawn by resampling patients within test folds without refitting the models. Category-only pooled AUC is below 0.5 because the proportion of malignant cases in each category differs between training folds; its ranking within each fold is exactly chance. Adding category to model predictions through a second regression, called stacking, preserves within-fold rankings here because each fitted image-score coefficient is positive. Generated table.
The binary-outline model achieved within-fold AUC 0.824 (95% interval 0.782–0.865). Five geometric measurements achieved 0.786 (0.736–0.829), showing that readily measured shape properties recover much of this discrimination. Adding outline predictions to category reduced category-4 Brier score from 0.2416 to 0.1655, a reduction of 0.0761 (0.0575–0.0965).

Figure 1. Within-fold AUC among category-4 patients. Blue intervals describe uncertainty with the fitted models held fixed. Orange points come from refitting on a second patient split of the same cohort; they are a sensitivity analysis, not independent replication.
Outline discrimination persisted on the second split (AUC 0.829), as did the five-measurement result (0.792). Excluding the one patient whose views had different BI-RADS categories and refitting gave outline AUC 0.824. An exploratory comparison restricted to pairs sharing both ultrasound scanner and test fold gave outline AUC 0.807 (0.756–0.856). Thus between-scanner differences alone cannot account for the ranking.
Crop and outline features together achieved AUC 0.842. Their increment over outlines alone was 0.0179 (0.0001–0.0342) for within-fold AUC and 0.0095 (−0.0061–0.0234) for pooled AUC. After adding category through stacking, the joint model's Brier change relative to category plus outline was −0.0052 (−0.0116–0.0027). On the second split, the within-fold AUC increment shrank to 0.0035. These results suggest that crops contribute complementary information in this fitted model, but the gain over outlines alone is small and sensitive to the patient split.
Methods
We used BUS-BRA version 1.0 and treated its case identifier as the patient grouping variable. Each case had consistent pathology across views. One case, 856, had both category 4 and 5 labels; we assigned its maximum category, 5. The remaining category counts were 304 in category 2, 279 in category 3 and 89 in category 5. No 4A/B/C subdivisions, which distinguish levels of suspicion within category 4, are released. The source describes biopsy-proven cases [1,2]; clinical records were unavailable for independent verification.
The release supplies five outer folds for testing, with no patient shared between folds. We replaced its inner-validation flags, which identify data for model tuning, with patient-level splits because some original inner flags divided views from the same patient. The image audit found no exactly identical image arrays across cases. Preprocessing used actual image dimensions rather than metadata dimensions.
We represented each image with 512 numerical features extracted by ResNet18 V1, a neural network pretrained on the ImageNet image collection. Its weights were frozen, meaning they were not updated using BUS-BRA. Inputs were either a grayscale ultrasound crop or its filled binary lesion mask, both using the smallest rectangle enclosing the expert mask plus a 10-pixel margin. We padded each input to a square by extending its edge pixels, resized it to 224 × 224 pixels with bilinear interpolation, copied it across three channels, and applied ImageNet normalization. We averaged features across each patient's views. The mask representation contains no ultrasound intensities, though the fixed pixel margin may retain scale information. The joint representation joins crop and mask features into one feature vector.
The geometric comparison model uses five outline measurements: log bounding-box width/height, measuring aspect ratio; occupancy, the fraction of that box occupied by the lesion; solidity, the fraction occupied within the smallest convex region enclosing the lesion; grid-perimeter compactness, a measure of compactness based on the boundary measured on the pixel grid; and covariance eccentricity, a measure of elongation derived from the spread of lesion pixels. We averaged these measurements across views and used no absolute-size inputs.
Each representation entered logistic regression to predict malignancy probability. Features were standardized to a common scale, and an L2 (squared-coefficient) penalty constrained the size of the regression coefficients. Three-fold inner validation selected the inverse penalty strength C from {0.0001, 0.001, 0.01, 0.1, 1, 10} by log loss, a measure of probability prediction error. The category-only model used the training-fold proportion of malignant cases in each category with Jeffreys smoothing: (malignant count + 0.5)/(patient count + 1). Category-plus-feature models used logistic stacking with C = 1. This second regression combined indicators of category membership with the feature model’s predicted log odds of malignancy. Four-fold cross-fitting generated its training scores, with each score coming from a feature model trained without that patient’s fold; scaling and penalty selection were repeated inside each cross-fit training subset. Held-out labels therefore entered neither tuning nor stacking. No model reweighted patients to give benign and malignant groups different influence during fitting.
Within-fold AUC weights each fold's AUC by its number of malignant–benign pairs. Paired 95% percentile intervals resample patients within outer folds 1,000 times. The second analysis refitted all representations on a five-fold patient split stratified by outcome to balance malignancy proportions (seed 20261030); a separate sensitivity analysis excluded case 856. The category-4 analysis was prespecified. Joint features, simple geometry and split-sensitivity analyses were exploratory, specified after observing the initial mask result.
Interpretation and limits
Expert outlines carry substantial information associated with pathology within the released broad BI-RADS category. A model that receives those annotations should be compared with an outline-only predictor when estimating the added value of ultrasound appearance. This analysis measures prediction within a fixed assessment category. The original BUS-BRA benchmark fine-tunes a neural network and supplies masks as additional image channels [3]; the frozen-feature models here address a different comparison from reproducing its reported numbers.
This is a single-source retrospective study with expert masks supplied at test time. We could not establish whether outline annotators were blinded to pathology, so the signal may reflect lesion shape, annotation practices or both. Missing BI-RADS subdivisions and clinical context prevent comparison with a radiologist's full assessment. Sampled ultrasound crops retained calipers or other marks, and overlays were not removed; crop gains cannot be attributed solely to tissue appearance. The intervals omit model-training uncertainty and dependence from overlapping training sets. Performance on scanners excluded from training remains untested. The results do not evaluate automatic lesion outlining or justify avoiding biopsies. External validation with known annotation timing is needed before interpreting these scores as pre-biopsy predictions.
Reproducibility
Analysis instructions describe data download, the software environment and execution. The download procedure checks the release checksum, and provenance records include hashes identifying the extracted features and pretrained weights. The analysis generates patient-level held-out predictions, the main metrics and paired intervals, Figure 1, Table 1, and scanner checks. Raw images and cached features are downloaded or generated locally.
References
- Gómez-Flores W, Gregorio-Calas MJ, de Albuquerque Pereira WC. BUS-BRA: A breast ultrasound dataset for assessing computer-aided diagnosis systems. Medical Physics. 2024;51:3110–3123. doi:10.1002/mp.16812.
- Gómez-Flores W, Gregorio-Calas MJ, de Albuquerque Pereira WC. BUS-BRA dataset, version 1.0. Zenodo. doi:10.5281/zenodo.8231412.
- Gómez-Flores W and colleagues. BUS-BRA benchmark source code.