Abstract
Background/Objectives: Reading breast ultrasound depends strongly on the radiologist, and classifiers that rarely explain their predictions can be right for the wrong reason. We studied a classifier that receives the lesion mask as an extra input channel and how much its performance depends on that mask. Methods: EfficientNet-B3 received the RGB image and the lesion mask as a fourth channel on BUS-BRA (1875 images, 1064 patients; patient-level 70/15/15 split). We added bootstrap confidence intervals and paired tests, validation-selected operating points, a three-seed ROI-only comparison, zeroed and automatic masks, external BUSI testing with near-duplicate analysis, and quantitative Grad-CAM metrics with center-prior controls. Results: With the expert mask, accuracy was 0.870 and AUC 0.903 (95% CI 0.844–0.952) on BUS-BRA, and AUC 0.971 on BUSI. With an automatic mask the AUC fell to 0.849 (−0.054), and to 0.847 with the mask zeroed. The mask channel gave no AUC gain over ROI-only on BUS-BRA (−0.004) but did on BUSI (+0.057) and in the reverse direction (+0.077). Grad-CAM localization was not consistently better than a center prior. Sensitivity targets of 90% and 95% were not reached (0.773, 0.875). Conclusions: The design works well with expert masks and helps under distribution shift, but not with automatic masks; Grad-CAM gives only weak support for lesion-focused attention. It is a research prototype; domain-shift-robust mask generation and independent expert validation are needed. The code, weights and splits are public.
1. Introduction
Breast cancer is the most prevalent cancer in women worldwide, and a leading cause of cancer-related death: GLOBOCAN estimated that approximately 2.3 million new cases of breast cancer in women occurred in 2022, and that approximately one in eight women will develop breast cancer at some point in their lives [1]. The prognosis is very important and depends on early detection: early detection of lesions has a significantly higher survival rate [2] and is more likely to be cured. As the stage of diagnosis increases, the relative survival decreases rapidly as shown in Figure 1. In addition to mammography, ultrasound (US) imaging is now a major imaging tool, especially for women who have dense breast tissue, since it does not involve the use of ionizing radiation, is relatively inexpensive, and can be used in resource-limited environments [3].
Figure 1.
Value of early, accurate detection—5-year relative survival for female breast cancer, by stage at diagnosis: localized, regional, distant. Adapted from SEER Program/American Cancer Society, Breast Cancer Facts & Figures.
The American College of Radiology (ACR) created the Breast Imaging Reporting and Data System (BI-RADS) to help standardize the reporting and interpretation of breast imaging. Each study is assigned to one of seven assessment categories (0–6): 0 is incomplete and requires further imaging evaluation; 1 is negative; 2 is benign; 3 is probably benign (malignancy likelihood of 2% or less); 4 is suspicious (malignancy likelihood above 2% and below 95%, subdivided into 4A, 4B and 4C); 5 is highly suggestive of malignancy (95% or more); and 6 is known biopsy-proven malignancy [4]. In breast ultrasound, the categorization depends on characteristics like the shape, outline, direction, echo pattern, and posterior acoustic response of the lesion. This standardization has not been perfect, however, since inter-observer agreement is reported to be between 15% and more than 30% disagreement on the categories [4]. This variability can lead to unnecessary biopsies of benign lesions, and to missed or delayed diagnosis of cancer; this effect is exaggerated in areas with limited access to sub-specialized radiologists. The BI-RADS categories in this study are shown in Figure 2, with categories 2–5 being those most relevant to clinical decision-making for the BUS-BRA dataset. The characteristic sonographic features which differentiate benign from malignant lesions are summarized in Figure 3.
Figure 2.
BI-RADS for breast ultrasound and clinical implications. This study focuses on data from the BUS-BRA categories 2–5. Categories 0, 1 and 6 are not used in this study. Malignancy-likelihood ranges are from the ACR BI-RADS lexicon. The sonographic appearance of benign vs. malignant lesions is summarized and contrasted in Figure 3.
Figure 3.
Benign vs. malignant sonographic characteristics (shape, margin, orientation, echo pattern, and posterior acoustic behavior) according to ACR BI-RADS lexicon.
Breast ultrasound images can be classified with high accuracy using deep learning [5,6] and efficient architectures, like EfficientNet, do not require large computational resources to be able to achieve high predictive performance [7]. However, there are two hurdles that prevent such models from being routinely used in the clinical setting. First, they rarely give a reason for a given prediction [8]—without an understandable explanation, predictions are not easily adopted by the clinical community. Secondly (and not quite as obviously), a model might attend to the wrong region, focusing on background tissue or artifacts from the scanner, not the lesion itself, and predict the correct label. A model that is right for the wrong reason cannot be trusted at the bedside, and its errors may go unnoticed until it encounters data from a new scanner.
This challenge is not just a technical one but a human one as well. If there is no explanation given in a model, the clinician has two undesirable choices—accept the prediction uncritically or ignore it. Blind acceptance encourages automation bias, whereby a confident but incorrect prediction propagates the model’s error to the reader; wholesale distrust, on the other hand, makes the model useless. What a radiologist needs is a prediction whose reasoning can be checked against the image. Spatial verification in breast ultrasound is the most natural check which indicates whether the model has successfully focused on the target lesion or on something incidental in the background. An explanation that addresses this question converts the model from a “black box” into a second reader [8].
Various methods for post hoc explainability (e.g., Grad-CAM [9], SHAP [10] and Occlusion Sensitivity [11]) can indicate which regions of an image are most important for a prediction. Simultaneously, there are datasets, like BUS-BRA, that contain segmentation masks of the lesions indicating where the tumor is located in the image. The key difference in this work is that these two elements are not just applied after training to verify the network is looking at the lesion, but used during the process of training to push the network to look at the lesion, before verifying using explainability tools that the network is actually looking at the lesion.
This work is important because it treats the quality of the explanation itself as a measurable outcome, instead of an add-on. Most previous research provides a visual explanation but not a quantification of whether it is spatially aligned with the true lesion [8]. A heatmap that merely looks plausible is not the same as one that is linked to the prediction and anatomically correct. We therefore quantify how the Grad-CAM attention relates to the annotated lesion, against chance and center-prior controls and against an ROI-only model, and we report how faithful and stable the explanations are. We also report where the evidence is weak.
The contribution of this work is the combination of a mask-conditioned classifier with a deliberately skeptical evaluation protocol: patient-level splitting, confidence intervals and paired tests, a test of how much performance depends on the lesion mask at inference, and external validation in both directions. All headline results are mask-conditioned, i.e., they describe classification when the location and shape of the lesion is known, and the effect of removing, perturbing and automatically generating the mask is quantified because the expert lesion mask is an input of the model. The main contributions are:
- Quantitatively evaluated attention: Instead of qualitative illustrations, we measure Grad-CAM localization (pointing game, in-lesion activation fraction, lesion-to-background energy ratio, IoU), fidelity and stability, and compare mask-guided and ROI-only models against chance and center-prior controls. The measured localization is not consistently better than a center prior (Section 4.8): the prior scored higher on the pointing game and top-k IoU, but lower on the in-lesion fraction and energy ratio; we describe the attention as weakly supported and not as verified.
- A mask-conditioned framework which introduces the lesion mask as an additional channel in the input of an EfficientNet-B3: A three-seed comparison under the same settings (Section 4.1) reveals that the mask channel does not provide any measurable AUC improvement when both models are applied to the BUS-BRA test set (−0.004, 95% CI −0.026 to +0.019), but does provide a clear improvement when both models are applied to the shifted BUSI data (+0.057, +0.043 to +0.071) and in the opposite direction of data (+0.077, +0.034 to +0.121). The previous EfficientNet-B0 improvement (75.8% to 84.2%) is a single run and has been removed.
- A leakage-free, patient-level protocol with external validation in both directions: Patient-level splitting (1064 patients, no patient shared across splits) eliminates image-level leakage. The model maintains an AUC of 0.971 (0.956–0.983) on BUSI under a frozen threshold; however, BUSI contains near-duplicate images, is different from BUS-BRA in lesion contrast and does not provide any patient identifiers. These are analyzed in Section 4.6 along with the reverse experiment.
- A quantified mask dependence and operating-point analysis: We report performance with the mask channel zeroed, shifted, eroded, dilated or random, and with the fully automatic U-Net mask (AUC 0.849 versus 0.903 with the expert mask), and validation-selected operating points for sensitivity and specificity targets. EfficientNet-B4 and a B3 + B4 ensemble are evaluated separately; the ensemble did not outperform B3 alone and is reported as an additional configuration.
The rest of this paper is structured as follows. Related work is reviewed in Section 2, covering deep learning for breast ultrasound, segmentation- and attention-guided learning, and explainable AI in breast imaging. The methodology is described in Section 3, comprising the dataset, preprocessing, the mask-guided architecture, training, inference, explainability, and the evaluation protocol. The results are presented in Section 4, which includes the ablation of the mask, the performance of the final model, the threshold analysis, external validation, and the explainability analysis. Section 5 discusses the findings and limitations, and Section 6 concludes the paper.
2. Related Work
Automated breast ultrasound (BUS) analysis has been rapidly developed with deep learning. In this section, we briefly summarize previous studies on three aspects that are relevant to the present study: (i) deep-learning classifiers for breast ultrasound, (ii) approaches that incorporate lesion localization information into the model through segmentation or attention, and (iii) explainable AI for breast imaging. We highlight throughout the paper how previous studies have addressed lesion localization and interpretability, and how these aspects motivate the framework proposed here that is guided by the mask and is explainability-oriented.
2.1. Deep Learning for Breast Ultrasound Classification
The most popular method for breast ultrasound lesion classification is currently convolutional neural networks (CNNs) using transfer learning from ImageNet [12] with EfficientNet [7], ResNet [13] or VGG [14] backbones [5,6]. More recently, transformer-based architectures such as the Vision Transformer [15] and the Swin Transformer [16] have also been explored for medical image classification. Byra et al. [17] achieved an AUC of around 0.89 with deep transfer learning with a color-conversion step, and Qi et al. [6] improved the AUC to over 0.90 on a private dataset. In order to enhance robustness, several groups have gone beyond single-backbone classifiers: Moon et al. [18] proposed an ensemble computer-aided diagnosis (CAD) system combining VGGNet, ResNet and DenseNet which achieved an accuracy of over 94%, Jabeen et al. [19] introduced a hybrid computer-aided diagnosis (CAD) system based on probability-based optimal deep features, and Eroğlu et al. [20] proposed a hybrid CNN with mRMR feature selection. More recent works focus on fine-grained discrimination and efficient deployment: Taheri and Rahbar [21] achieved better fine-grained ultrasound classification by feature discrimination and transfer learning; Sahu et al. [22] proposed an efficient scheme for mammography and ultrasound; and Heikal et al. [23] and Sirjani et al. [24] reported good results through multicenter evaluation and systematic fine-tuning, respectively. Reductions in false positives were also shown in large-scale systems like Shen et al.’s [5] in routine screening. Related efforts span adaptive multi-model feature fusion for ultrasound tumor classification [25], EfficientNet-based BI-RADS classification [26], an improved VGG16 for mammographic classification [27], and lightweight GAN-augmented models for efficient detection [28]; convolutional networks have likewise been applied to regional mammography datasets [29]. The same group has also used deep learning and decision-support methods to other breast-imaging and ultrasound applications, such as a decision-support model for breast cancer diagnosis [30] and automated ultrasound image-quality assessment with biometric measurement [31].
Most of these systems focus on binary classification (benign vs. malignant) instead of multi-class BI-RADS grading because adjacent BI-RADS categories are visually similar and hard to distinguish even for expert radiologists [4] and because the binary classification (malignant vs. benign) is most directly relevant to clinical management. One thing that is often missing, though, is that performance is assessed almost exclusively based on accuracy and AUC, and little consideration is given to where the model looks. Two models with the same accuracy can be very different—one may focus on the lesion, the other may be exploiting background tissue that happens to correlate with the label in a particular dataset, and this effect can only be seen when the model is applied to data from a new scanner. Evaluating spatial focus is thus a part of the validation of a reported result, and this is the motivation for the localization- and explainability-aware approaches reviewed next.
2.2. Segmentation-Informed and Attention-Guided Learning
The increasing number of studies focuses the network’s attention on clinically relevant lesion regions, instead of irrelevant background cues. Luo et al. [32] combined segmentation information and an attention mechanism for breast tumor classification in ultrasound, demonstrating that lesion-aware guidance enhances discrimination. For breast lesion classification, Kalafi et al. [33] added an attention layer to a deep CNN with a loss ensemble, and Koshy and Anbarasi [34] used a hybrid mixer with multi-head attention for breast ultrasound segmentation. In addition to attention modules, multi-task formulations couple segmentation and classification, with segmentation regularizing the classifier: Huang et al. [35] proposed a multi-task, 3D whole-breast ultrasound network that jointly predicts the targets related to the lesion, while remaining explainable; Yan et al. [36] integrated domain knowledge into an interpretable system for clinical breast ultrasound diagnosis. These strategies are all aimed at forcing the model to focus on the actual lesion, but usually they do so either by adding a segmentation decoder and a second loss function to be weighted and optimized, or by incorporating attention modules that introduce parameters and learn where to look from the data. While both directions work, they make the model more complex and, in the case of learned attention, there is still space for the network to pick up on random noise. The approach outlined in this paper is based on the same localization-aware approach, but with reduced costs as explained in the Methodology.
2.3. Explainable AI in Breast Imaging
Explainability is now considered as a key factor for clinical trust in ultrasound-based CAD. There are several commonly used post hoc visual methods that show which regions are important for a prediction, such as Grad-CAM [9] and its improvement Grad-CAM++ [37], SHAP [10], Occlusion Sensitivity [11] and LIME [38]. Explainable AI techniques and their evaluation in breast cancer screening were summarized in recent reviews specific to breast imaging [39] and AI- and XAI-based breast cancer diagnosis across imaging modalities [40]. At the study level, Bai et al. [41] used explainable AI in breast cancer diagnosis, and explicitly discussed the advantages and disadvantages of the explanations that can be generated, and Boumaraf et al. [42] compared the performance of conventional machine learning and deep learning in breast image classification with visual explanations. Explainable machine learning has likewise been applied across a range of breast cancer tasks and modalities, including interactive diagnosis tools [43], prediction of lymph-node metastasis [44], HER2 immunohistochemistry classification [45], graph-based malignancy-pattern analysis of ultrasound [46], and ensemble-based risk estimation [47]. In addition to these, Yan et al. [36] and Huang et al. [35] demonstrate that interpretability can be incorporated into the model, not just appended. Similarly, interpretability using Grad-CAM has been used in other medical imaging tasks including brain tumor classification from MRI [48].
Van der Velden et al. [8] noted that while visual explanations are now widely used in medical image analysis, there are relatively few studies that quantify the quality of the explanation (e.g., fidelity and stability) and fewer studies that verify that the regions highlighted in the explanation correspond to reference annotations. To address both of these shortcomings, the present work provides quantitative fidelity and stability for its explanations, and evaluates the spatial overlap between Grad-CAM maps and the ground-truth lesion, testing whether the model focuses on the lesion itself or its surroundings. The main characteristics of the representative studies are summarized in Table 1.
Table 1.
Summary of representative studies on breast ultrasound classification and their key attributes. XAI is rated “Limited” for this work as the localization of Grad-CAM was not consistently superior to a center prior (Section 4.8).
3. Materials and Methods
The proposed framework uses a mask-conditioned, four-channel deep-learning pipeline to classify breast ultrasound lesions as benign or malignant, and then performs an explainability analysis. The pipeline consists of seven stages, as summarized in Figure 4: input preparation (Section 3.1), preprocessing (Section 3.2), mask-guided four-channel fusion (Section 3.3), the classification backbone (Section 3.4), the training strategy (Section 3.5), inference (Section 3.6), and explainability with evaluation (Section 3.7 and Section 3.8). The extra experiments requested during review (statistics, mask perturbation and automatic masks, reverse-direction validation, localization metrics) are detailed in Section 3.11. The block numbers in Figure 4 correspond to these subsections. In Figure 4 the lesion mask is an input of the model; in the automatic-mask experiments it is replaced by the output of a segmentation network (Section 3.11).
Figure 4.
Proposed Mask-guided Explainable Framework. The numbers in the boxes refer to the methodology subsections (Section 3.1, Section 3.2, Section 3.3, Section 3.4, Section 3.5, Section 3.6, Section 3.7 and Section 3.8) and there are no feedback loops. The main model is EfficientNet-B3, and the additional one is EfficientNet-B4, as indicated in box 4; box 7 gives the main-model test results (Section 4.2).
3.1. Dataset and Input Data
Experiments were performed on the publicly available BUS-BRA dataset [49], which consists of B-mode breast ultrasound images with expert lesion masks and bounding-box annotations. BUS-BRA includes 1875 images from 1064 patients (on average 1.76 images per patient; 1268 benign and 607 malignant) and only contains images from BI-RADS categories 2–5 (562, 463, 693 and 157 images, respectively), with categories 0, 1 and 6 not present in this dataset. Each sample provides three inputs to the pipeline: the grayscale ultrasound image, its binary lesion mask, and the lesion bounding box. The dataset was partitioned at the patient (case) level, not at the image level, in a single patient-level 70/15/15 split (random seed 42), giving disjoint training, validation and test subsets. The number of patients, images, class counts and BI-RADS distribution of each split is listed in Table 2, and a check was performed to ensure that no patient was included in more than one split. Malignant = 1 and benign = 0 were used for the class labels. Examples of benign and malignant lesions are shown, with lesion-mask contours, in Figure 5. The external BUSI dataset [51] (647 benign and malignant images; the normal class was not included) does not contain patient identifiers.
Table 2.
Patients, images, class and BI-RADS distribution of the datasets and splits.
Figure 5.
Representative benign and malignant breast ultrasound images with the lesion mask contour overlaid (green). The small “+” marks and “+2” labels visible in some ultrasound images are measurement calipers from the original acquisition, not part of the annotation.
3.2. Preprocessing
A region of interest (ROI) was cropped around the annotated lesion bounding box for each image with a 0.3 margin added on each side to include peritumoral context. The cropped image and mask were resized to the same spatial resolution. The three image channels were normalized using ImageNet statistics (mean = [0.485, 0.456, 0.406] and standard deviation = [0.229, 0.224, 0.225]); the lesion mask was not normalized, so that it remained a spatial indicator and did not become a photometric feature. The crop is therefore the expert annotation; in the automatic-mask experiments it is the predicted mask (Section 3.11). The complete preprocessing pipeline is shown in Figure 6.
Figure 6.
Preprocessing pipeline: (a) original image; (b) ROI crop with 0.3 margin; (c) resize to 300 × 300; (d) lesion mask forming the fourth input channel. The small “+” marks and “+2” labels visible in some ultrasound images are measurement calipers from the original acquisition, not part of the annotation.
3.3. Mask-Guided Four-Channel Fusion (Core Design)
The central design choice of this work is the explicit combination of lesion-shape information and image appearance at the input level.
The binary lesion mask is then added as an extra, fourth, input channel to the network, so that each sample is a four-channel tensor which is stacked on top of the three normalized image channels with the lesion mask. The formal definition of this four-channel input is given in Section 3.9 (Equation (3)).
This design allows the network to have access to the morphology of the lesion from the first convolutional layer, and retain the context of the tissue surrounding the lesion. The use of this information is an empirical question: the mask channel did not improve AUC on the internal test set (−0.004, 95% CI −0.026 to +0.019; Section 4.1), and it only helped under distribution shift with expert masks (Section 4.1, Section 4.5 and Section 4.6).
3.4. Classification Backbone
EfficientNet-B3 (input 300 × 300) with weights pretrained on ImageNet is the main model of this study; EfficientNet-B4 (input 380 × 380) was trained with the same protocol and is reported separately, and their average is evaluated only as a supplementary ensemble (Sections Model Ensemble (Supplementary) and 4.4). The input to the standard EfficientNet stem is three channels, so the weights of the three original channels were kept from the pretrained model, while the weights of the extra (mask) channel were initialized as the mean of the three pretrained channel weights, giving a good starting point for fine-tuning. In each backbone the classification head was replaced with a two-class output for benign/malignant prediction.
3.5. Training Strategy
Class imbalance was addressed with a weighted random sampler and with class weights inversely proportional to class frequency. The sampler balances the class composition of each mini-batch, so that the minority (malignant) class is seen often enough to give stable gradients, whereas the class weights rescale each sample’s contribution to the loss. The main model employs both; although using both could over-compensate for the imbalance, a controlled comparison of sampler only, class weights only, both and neither is reported in Section 4.1. The network was optimized with a focal loss [52] with focusing parameter γ = 2.0 applied to a class-weighted cross-entropy with label smoothing of 0.05 [53] (Equation (7)) to focus on hard examples and avoid overconfidence. Optimization: AdamW [54] (learning rate 1 × 10−4, weight decay 1 × 10−4) with a cosine-annealing learning-rate schedule, up to 25 epochs, batch size 8, and early stopping (patience 6) on the validation accuracy; the checkpoint with the highest validation accuracy was kept. The image channels were augmented (horizontal flipping, small rotations, affine transformations, mild additive noise, and random erasing) during training, while the image and mask were transformed together to maintain spatial correspondence. Some of the augmented training images are displayed in Figure 7. This paper uses two training recipes, both of which are listed in Table 3. The main EfficientNet-B3 model (and EfficientNet-B4 and the ensemble) was trained once with the recipe of the first column (random seed 42); the multi-seed experiments (mask versus ROI-only, reverse-direction validation and the Grad-CAM comparison) were trained with a second, unified recipe, with the difference between the two models being only the fourth input channel. The results of the two recipes are never combined in the same comparison.
Figure 7.
Examples of the data augmentation applied to the training set. The small “+” marks and “+2” labels visible in some ultrasound images are measurement calipers from the original acquisition, not part of the annotation.
Table 3.
Training configuration of the two recipes used in this study.
3.6. Inference
Test-time augmentation (TTA) was performed by averaging the predicted probabilities of the original image and its three flipped versions at inference. The decision threshold was not set at 0.5, but chosen on the validation set to maximize validation accuracy (τ = 0.61 for EfficientNet-B3), and then frozen and applied without changes to the internal test set and to the external dataset. This is not a clinically optimized threshold, as it is accuracy-oriented and a missed cancer is the more expensive error. We therefore chose thresholds, on the validation set only, that achieve a sensitivity of at least 90% or 95% and a specificity of at least 90% or 95%, and report the test-set performance (Section 4.3). Selecting thresholds on the validation split rather than on the test set avoids optimistic bias.
Model Ensemble (Supplementary)
The two backbones were trained independently and, as an additional configuration, the average of the malignant probabilities of the two backbones was used, ens = ½((B3) + (B4)), with a validation-selected threshold τens = 0.59. The ensemble is not a part of the main model: it doubles the inference cost and as demonstrated in Section 4.4, it did not outperform EfficientNet-B3.
3.7. Explainability (XAI)
Three complementary post hoc explainability methods were used to make the model’s decisions transparent: Grad-CAM, SHAP, and Occlusion Sensitivity. This explainability pipeline is summarized in Figure 8: each method is applied to the trained model to generate a heatmap, and the Grad-CAM heatmaps are then quantitatively assessed for fidelity, stability and localization relative to the ground-truth lesion; SHAP and Occlusion Sensitivity are qualitative.
Figure 8.
The explainability (XAI) pipeline consists of three complementary methods (Grad-CAM, SHAP, Occlusion Sensitivity) that analyze the trained model’s prediction, of which only the Grad-CAM heatmaps are evaluated quantitatively (localization, fidelity and stability; Section 4.8), whereas SHAP and Occlusion Sensitivity are shown as qualitative examples (Section 4.7). Only the Grad-CAM explanations were used to calculate Fidelity and Stability. Fidelity is the decrease in the predicted confidence level when the most influential Grad-CAM pixels are masked, which is defined as Fidelity = f(x) − f(x ⊙ (1 − Mtop)), where f(x) is the model’s prediction of the probability for input x, Mtop is the binary mask of the most influential pixels, and ⊙ represents element-wise multiplication. Stability is defined as the similarity of the explanation under small perturbations, i.e., the correlation between the heatmaps computed under small Gaussian perturbations of the input, Stability = corr(E(x), E(x + ε)), ε ∼ (0, σ2), E(·) is the Grad-CAM explanation map and ε is Gaussian noise with standard deviation σ (σ = 0.1 in the experiments). A higher Fidelity means that the deleted pixels have a greater impact on the model’s output; it does not mean that the highlighted area is the only or true reason for the output, and it is compared to the random-pixel and random-block deletion controls (Section 4.8). A higher Stability does not necessarily mean that the explanation is correct, but rather that the map is less susceptible to small input noise and is highly dependent on the border treatment (Section 4.8). The localization metrics also rely on the post hoc border zeroing, which alters the pointing-game values considerably (Section 4.8).
3.8. Evaluation Protocol
The performance of the model was evaluated with accuracy, sensitivity, specificity, area under the ROC curve (AUC), per-class precision, recall and F1-score (and their macro average), and the confusion matrix. The held-out BUS-BRA test set was used for internal evaluation, and cross-dataset generalization was evaluated on the independent BUSI dataset, collected with different equipment and protocols, in inference mode only, without retraining, fine-tuning or re-selection of the threshold. All 95% confidence intervals were computed using a percentile bootstrap with 2000 resamples, resampling whole patients on BUS-BRA (images of one patient are resampled together) and images on BUSI (no patient identifiers; a cluster bootstrap over near duplicate clusters is used as a sensitivity analysis). Paired bootstrap tests were used to test differences between two models evaluated on the same cases for AUC and accuracy. The lesion masks of BUSI were reconstructed by merging the per-lesion mask files provided, and the ROI bounding box was obtained from the mask. The normal class of BUSI was omitted because it is not part of the binary task.
3.9. Mathematical Formulation of the Proposed Framework
This section outlines the mask-guided pipeline described above. The raw ultrasound image, its binary lesion mask, and the lesion bounding box are represented by I, M0, and b = (x, y, w, h), respectively; the spatial dimensions and value ranges of these are directly related to Equations (1)–(3) below.
(1) Region-of-interest extraction: A 0.3 margin around the bounding box is used to define the crop region, which is then applied to the image and the mask:
where Ω is cropped to the image edges.
(2) Resizing and normalization: The cropped image and mask are resized to N × N (N = 300). The image channels are normalized using ImageNet statistics and the mask is scaled to [0,1]:
The resized mask is denoted by Ms ∈ [0,1] N × N, and ⊘ represents channel-wise division.
(3) Mask-guided four-channel fusion: The normalized image and the mask are combined along the channel axis to create the four-channel input tensor:
(4) Adapted input stem: The first convolutional layer in each backbone has four input channels instead of three. The weights of the RGB channels are kept, and the weights of the mask channel are set to the average of the three pretrained channels:
(5) Feature extraction: Let fθ be a mask-guided EfficientNet backbone with parameters θ. The embedding vector is obtained by global average pooling (GAP) over the last feature maps:
(6) Classification head: A linear layer maps the embedding to two class logits, then a softmax (main model):
(7) Focal loss with label smoothing and class weights: The label-smoothed cross-entropy is ℓi = −wy_{i} Σc ∈ {0,1} qi,c log pi,c, where the smoothed targets are qi,c = (1 − ε)·1[c = yi] + ε/2 and ε = 0.05. The focal loss used for the focusing parameter γ = 2.0 is multiplied by (1 − i)γ, with i = exp(−ℓi) as applied in our code, and averaged over the N training samples:
where wc is the class weight (proportional to the inverse class frequency, normalized so that w0 + w1 = 2) and i = exp(−ℓi) is the modulating probability that is down-weighted for easy samples. The label-smoothing term is therefore included in ℓi and the class weights are used in conjunction with the weighted random sampler (Section 3.5).
(8) Test-time augmentation and decision: The malignant probability is computed over the original image and the three flipped versions (horizontal, vertical, and both), V = {identity, horizontal, vertical, both} and the label is assigned based on the comparison with the threshold τ = 0.61 that is selected by the validation set (Equation (9)). The supplementary two-backbone ensemble averages the two backbone-level quantities of Equation (8), ens = ½((B3) + (B4)), and uses its own threshold τens = 0.59:
(9) Optimization: AdamW (learning rate α = 1 × 10−4, weight decay 1 × 10−4) is used to optimize parameters with a cosine-annealing schedule:
3.10. Evaluation Metrics
The accuracy, precision, recall and F1-score are used to evaluate the model’s performance, as shown in Equations (11)–(14), where TP, TN, FP, and FN represent true positive, true negative, false positive and false negative, respectively.
The area under the ROC curve (AUC) is another measure that summarizes discrimination for all thresholds; the ROC curve plots the true-positive rate (TPR = TP/(TP + FN)) against the false-positive rate (FPR = FP/(FP + TN)).
3.11. Additional Analyses Requested in Review
Mask dependence: The lesion mask was tested in five different ways. (i) The mask channel of the trained main model was made zero, shifted by 15% of the box size, eroded or dilated by 5 and 10 pixels, or replaced by a random ellipse of the same area, with the crop remaining (Section 4.5). (ii) To compare the mask-guided model with a bounding-box-only (ROI-only, 3-channel) model, the same recipe was used to train the latter and tested on three seeds (Section 4.1). (iii) In the case of fully automatic masks, a U-Net with an EfficientNet-B3 encoder [55] was trained on BUS-BRA training images only, and the predicted mask, and the bounding box of that mask for the ROI crop, was used at inference instead of the expert mask. Other segmentation architectures, for example the hybrid attention network of [56], can be substituted without altering the protocol. (iv) The decision threshold was re-selected on the validation set for each mask source using the same type of masks to distinguish between loss of discrimination and miscalibration. (v) The classifier was optimized using a combination of expert and predicted masks of the training images, and tested using predicted masks.
Operating points and statistics: The thresholds were chosen in the validation set for the maximum accuracy, and for sensitivity ≥ 90%, ≥ 95% and for specificity ≥ 90%, ≥ 95% and then used without changes in the test set. Confidence intervals and paired tests follow Section 3.8.
Multi-seed comparison: For each of the EfficientNet-B3 models, three random seeds were used to train the model, and the results are reported as the mean AUC per seed with a patient-level bootstrap (BUS-BRA) or image-level bootstrap (BUSI), and as three-seed ensembles, all trained under the same recipe. The same single recipe was used in a controlled comparison of the imbalance-handling strategy (sampler only, class weights only, both, neither).
Reverse direction: To test generalization in the opposite direction, the unified recipe was trained on BUSI only (522 training and 125 validation images, split in cluster-aware fashion so that near-duplicate images stay together), the threshold was selected on the BUSI validation split, and the models were tested on BUS-BRA with expert masks and with automatic masks. The automatic-mask results are not independent of the target domain as the segmentation network used for the automatic masks was trained on BUS-BRA.
BUSI duplicates and dataset comparison: Near-duplicate images were identified using a 64-bit difference hash (dHash) and Hamming distance threshold (0, ≤4 and ≤8 bits) in BUSI, as there are no patient identifiers. Images were clustered and clusters were used for bootstrap resampling and exclusion sensitivity analyses. The lesion size (mask area and box area as a fraction of the image), contrast (mean intensity of a ring around the lesion minus mean intensity inside the lesion) and class prevalence were compared between the datasets. The Dice overlap between predicted and annotated masks, number of masks per image and empty masks were used to determine the reliability of the BUSI masks.
Grad-CAM metrics: Grad-CAM was calculated for the last convolutional feature map of EfficientNet-B3 (10 × 10 cells) for the predicted class of all 285 test images and the three seeds of both model variants. The outermost ring of cells was set to zero before normalization (ring 1 is the main setting; rings 0 and 2 are reported as sensitivity analyses; this is a post hoc decision, after observing border artifacts). The metrics used were: pointing game (maximum of the map within the lesion mask), the fraction of positive activation within the lesion, the ratio of mean activation within the lesion to mean activation outside the lesion, and the IoU between the lesion and the top-activated pixels (top-k, with k equal to the lesion area) or the map thresholded at 0.5. Two controls were used: a random map (chance) and a fixed Gaussian map centered on the crop (standard deviation of one quarter of the crop side; center prior). Fidelity was measured as the drop in the predicted probability of the predicted class when the 20% most activated pixels (18,000 of 90,000 pixels) were set to zero in the normalized input (the ImageNet mean color), compared with deleting the same number of randomly scattered pixels and a random contiguous 134 × 134 pixel block; stability was the Pearson correlation between the map for the clean image and for the image with added Gaussian noise of standard deviation 0.1 in normalized intensity units, averaged over three noise draws. All maps were calculated for the 285 test images (patient-level paired bootstrap for differences between the mask-guided and ROI-only models).
4. Results
We report results in the following order: the effect of the mask channel under the final backbone, with three seeds (Section 4.1); the performance of the main EfficientNet-B3 on the held-out test set (Section 4.2); operating points (Section 4.3); EfficientNet-B3 versus B4 and the ensemble (Section 4.4); masking at inference (dependence on the lesion mask, automatic masks, Section 4.5); external validation on BUSI, near-duplicate and dataset analyses, and the reverse experiment (Section 4.6); the explainability analysis (Section 4.7); Grad-CAM localization, fidelity and stability against controls (Section 4.8); and a comparison with related work (Section 4.9). Unless otherwise stated, internal results are obtained on the held-out BUS-BRA test set of 285 images (160 patients; 197 benign, 88 malignant) with the decision threshold chosen on the validation set and fixed for all reported results, and 95% confidence intervals are patient-level bootstrap intervals. Unless otherwise stated in Section 4.5 or in the text, all results are based on the expert lesion mask at inference (mask-conditioned).
4.1. Mask-Guided vs. ROI-Only Baseline Under the Final Backbone
This comparison is not an ablation of the reported main model: the main model (seed 42) was trained with the first recipe of Table 3 (class weights and weighted sampler, learning rate 1 × 10−4, batch size 8), while the three-seed comparison below was trained with the second recipe (weighted sampler only, learning rate 3 × 10−4, batch size 16), which resulted in an AUC approximately 0.015 lower (see Imbalance handling below); the mask-versus-ROI-only comparison was not repeated with the main-model recipe. Earlier ablation was done using EfficientNet-B0 and a single run. We thus repeated the comparison with the final EfficientNet-B3 using the same data, crops and training recipe (Table 3, second column) and three random seeds, which means that the two models differ only in the fourth (mask) channel (Table 4). On the BUS-BRA test set, the mask channel gave no measurable gain: the mean per-seed AUC was 0.900 (95% CI 0.847–0.947) with the mask and 0.903 (0.853–0.947) without it (difference −0.004, 95% CI −0.026 to +0.019, p = 0.77), and the three-seed ensembles gave 0.909 versus 0.914. One possible explanation is that the ROI crop, which is the box that is annotated in both models, already localizes the lesion. The previously reported improvement from 75.8% to 84.2% accuracy (EfficientNet-B0, single run) is not reproduced under the final backbone and has been removed from the paper. On the external BUSIs, however, the mask channel improved the mean AUC from 0.884 (0.858–0.908) to 0.941 (0.925–0.955), a difference of +0.057 (+0.043 to +0.071, p < 0.001), and this gain was unchanged in the cluster-bootstrap and duplicate-exclusion analyses of Section 4.6; in the reverse direction it was +0.077 (Section 4.6). The mask channel thus seems to benefit primarily under distribution shift, and only if the mask is correct (Section 4.5). The ablation with B4 or with the B3 + B4 ensemble was not repeated, as the ensemble is only an additional configuration (Section 4.4).
Table 4.
Mask-guided versus ROI-only EfficientNet-B3 (identical recipe, three seeds; AUC is the mean of the per-seed AUCs, intervals are 95% bootstrap intervals).
Imbalance handling: The main model uses a weighted sampler and class weights, so we tested four variants of the unified recipe (mask-guided EfficientNet-B3, three seeds each; Table 5): sampler only, class weights only, both, and neither. All three options other than sampler only reached a similar BUS-BRA AUC (0.912–0.916). On BUS-BRA, using both did not differ significantly from class weights only (+0.001, 95% CI −0.011 to +0.013, p = 0.80) or from neither (+0.004, −0.007 to +0.016, p = 0.44), and was better than sampler only (+0.017, +0.005 to +0.031, p = 0.006). On BUSI, class weights alone gave a slightly higher AUC than both (+0.010, +0.002 to +0.018, p = 0.008). The combination therefore does not demonstrate any benefit over class weights alone or over no rebalancing at these sensitivities, and no evidence of any harm from over-compensation on the internal test set; the sampler-only recipe used in the multi-seed experiments of this section was the weakest (about 0.015 AUC lower), which also applies to the mask-guided and ROI-only models compared in Table 4 but means that their absolute AUCs may be conservative. The main model keeps both mechanisms because it was trained, and its threshold selected, before this comparison; we do not claim that the combination is necessary.
Table 5.
Imbalance handling (mask-guided EfficientNet-B3, unified recipe, three seeds; AUC is the mean of per-seed AUCs with 95% bootstrap intervals; Δ is relative to sampler + weights).
4.2. Final Model Test-Set Performance
The mask-guided EfficientNet-B3 model, described in Section 3.4, is the final (main) model. At the validation-selected threshold τ = 0.61 it reached an accuracy of 0.870 (95% CI 0.816–0.917) and an AUC of 0.903 (0.844–0.952) on the BUS-BRA test set, with a sensitivity (malignant recall) of 0.739 (0.611–0.851) and a specificity of 0.929 (0.880–0.968). The per-class metrics with confidence intervals are in Table 6, the confusion matrix in Table 7, and the ROC curve in Figure 9. The intervals are mask-conditioned (expert mask and box supplied at inference) and the model was trained once (seed 42), so run-to-run variability of this exact model is not reflected by the intervals, but only test-set sampling.
Table 6.
Test-set classification report of the main model (EfficientNet-B3, threshold τ = 0.61; 95% patient-level bootstrap intervals).
Table 7.
Confusion matrix of the main model on the BUS-BRA test set (τ = 0.61).
Figure 9.
Receiver operating characteristic (ROC) curves of the main model (EfficientNet-B3) on the internal BUS-BRA test set and the external BUSI dataset; the marker shows the operating point at τ = 0.61.
The ROC curve is well above the diagonal (AUC 0.903, Figure 9). At the deployed threshold the model misses 23 of 88 malignant lesions (sensitivity 0.739) while producing 14 false positives among 197 benign lesions; this accuracy-oriented operating point is not a clinically optimized one, and operating points at fixed sensitivity or specificity are presented in Section 4.3.
4.3. Operating Points and Sensitivity Targets
The deployed threshold (τ = 0.61) is the best threshold for validation purposes and is not clinically optimized, as a missed malignancy is a more expensive error. The test-set performance of thresholds selected using the validation set only, the default threshold of 0.50, the lowest thresholds that achieve a validation sensitivity of 90% and 95%, and the lowest thresholds that achieve a validation specificity of 95% (fixed false-positive rate of ~5%) are reported in Table 8. The thresholds chosen on the validation set gave a test sensitivity of 0.773 and 0.875, respectively, at the cost of 22 and 42 false positives, and the confidence interval of the latter (0.782–0.957) includes 0.95; the 90% and 95% sensitivity targets were nevertheless not reached on the test set. The sensitivity of 90% would then imply a specificity of approximately 0.79 on this test set, and the thresholds are not directly transferable from the validation to the test set. The malignant recall of 0.739 at the accuracy-oriented threshold is a restriction for screening use.
Table 8.
Operating points of the main model on the BUS-BRA test set; thresholds selected on the validation set (95% bootstrap intervals).
4.4. EfficientNet-B3 Versus EfficientNet-B4 and the Ensemble
The two backbones are reported separately in Table 9 and their average (supplementary ensemble) is also reported. On the BUS-BRA test set EfficientNet-B3 reached an accuracy of 0.870 and an AUC of 0.903, EfficientNet-B4 0.863 and 0.885, and the ensemble 0.860 and 0.906. Paired bootstrap tests showed no significant difference between the ensemble and B3 (ΔAUC +0.004, 95% CI −0.013 to +0.021, p = 0.72; Δaccuracy −1.1 points, −3.5 to +1.1, p = 0.43) nor between B3 and B4 (ΔAUC +0.018, −0.016 to +0.055, p = 0.30); the ensemble was significantly better than B4 in AUC (+0.021, +0.004 to +0.042, p = 0.011), but not in accuracy. On BUSI, B3 and the ensemble gave similar AUCs (0.971 and 0.973) and B4 was lower (0.941). The ensemble doubles the inference cost, but does not show a clear advantage over B3, so the ensemble is included as an additional configuration and the main model of this paper is EfficientNet-B3. The previous statement that the stages (backbone, loss, augmentation, ensembling) were complementary has been removed.
Table 9.
Backbones evaluated separately (BUS-BRA test, n = 285; thresholds chosen on validation; 95% bootstrap intervals for the AUC).
4.5. Dependence on the Lesion Mask at Inference
All results above are based on the expert mask and annotated bounding box. We set the mask channel of the trained main model to zero to see how much performance depends on them (Table 10); this reduced the AUC to 0.847 (−0.055, 95% CI −0.093 to −0.020); a random ellipse of the same area reduced it to 0.791 (−0.110), and the sensitivity at the frozen threshold dropped to 0.295, indicating that the network is sensitive to a wrong mask. Small errors were tolerated better: eroding the mask by 5 or 10 pixels changed the AUC by −0.004, dilating it by 10 pixels by −0.032 (−0.058 to −0.009), and a 15% shift by −0.024 (−0.050 to +0.002). For these experiments the ROI crop was left at the expert box, so these experiments measure the effect of the mask channel only.
Table 10.
Main model with perturbed, zeroed and automatically generated masks (BUS-BRA test, n = 285). Unless stated, sensitivity and specificity are at the frozen threshold; ΔAUC is relative to the expert mask unless stated.
With a fully automatic pipeline (U-Net mask → predicted box → classifier) the AUC on the BUS-BRA test set fell to 0.849 (95% CI 0.783–0.909; Δ = −0.054, −0.092 to −0.021), with a Dice overlap between predicted and expert masks of 0.912 (median 0.936) on BUS-BRA and 0.681 on BUSI (153 of 647 BUSI masks with Dice < 0.5, two empty). The sensitivity at the frozen threshold was 0.466, but this is primarily a calibration change: with the threshold re-selected on the validation set using automatic masks (τ = 0.38), the sensitivity was 0.727 and the specificity 0.827. Fine-tuning the classifier on a mixture of expert and predicted masks raised the automatic-mask AUC to 0.877 (0.816–0.929; +0.028 versus the original, −0.005 to +0.065, p = 0.11, not significant) while leaving the expert-mask AUC unchanged (0.902); the automatic-mask AUC remained 0.025 below the expert-mask AUC (−0.049 to −0.002, p ≈ 0.03). On BUSI, the automatic-mask AUC rose from 0.848 to 0.877 after fine-tuning (+0.030, +0.009 to +0.051, p = 0.003), whereas the expert-mask AUC fell from 0.971 to 0.946.
Two conclusions follow. First, the headline accuracy of this framework is for classification where the location and shape of the lesions are already known, and with a generic automatic mask the AUC is reduced by approximately 0.05 on the source domain, and the framework does not outperform an ROI-only model (Section 4.6, reverse BUSI → BUS-BRA experiment, automatic masks). Second, the mask-guided design is not yet a stand-alone automated system: it requires a segmentation stage whose quality is domain-dependent (Dice 0.912 versus 0.681). We did not train an ROI-only model on automatic boxes in the BUS-BRA→BUSI direction, so the comparison of the two designs under automatic masks is available only in the reverse (BUSI→BUS-BRA) direction. Better segmentation networks, such as the hybrid attention network used in [56] could help close the gap, but this was not explored.
4.6. External Validation on BUSI, Dataset Analysis and Reverse Experiment
The main model was tested on the independent BUSI dataset [51], obtained with different ultrasound equipment and protocols, to evaluate cross-domain generalization. The benign and malignant cases were used (n = 647; 437 benign, 210 malignant) and the normal class was not used. The evaluation was conducted exclusively in inference mode with the threshold frozen on the BUS-BRA validation set (τ = 0.61). The main model reached an accuracy of 0.920 (95% CI 0.900–0.940), an AUC of 0.971 (0.956–0.983), a sensitivity of 0.862 (0.813–0.906) and a specificity of 0.947 (0.926–0.968) on BUSI, with class-wise metrics given in Table 11 and confusion matrices in Figure 10 (image-level bootstrap, since BUSI has no patient identifiers). These external figures are higher than the internal ones (accuracy 0.870, AUC 0.903), which is not what is normally expected under a domain shift, and they should not be interpreted as better generalization: the expert masks were still provided, and the analyses below demonstrate that BUSI differs from BUS-BRA in ways that make it easier. Duplicates: A difference-hash analysis revealed 17 pairs of near-identical images (Hamming distance 0; 31 images; 3 pairs with different labels) and 139 pairs of images that are up to 4 bits different (231 images; 8 pairs with different labels) that formed 523 clusters (107 clusters with more than one image, the largest with 4 images, 6 clusters with mixed labels); no BUSI image matched a BUS-BRA image at that distance. When the image and its duplicate are on the same side of a split, the external performance may be overstated, and the label-inconsistent pairs indicate that some of the BUSI is noisy; in this case, the effective sample size is smaller than 647, and part of BUSI is noisy. In a sensitivity analysis with the three-seed mask-guided and ROI-only models of Section 4.1, the mask effect on BUSI was unchanged when the bootstrap resampled clusters (+0.057, 95% CI 0.041–0.074), when exact duplicates were excluded (n = 616; +0.057), and when all multi-image clusters were excluded (n = 416; mask 0.946 versus ROI-only 0.891, +0.055, 0.039–0.071). The main-model metrics of Table 11 were not recomputed on the de-duplicated subset. Dataset difficulty: The datasets are compared in Table 12; the malignant prevalence is the same (0.324 versus 0.325), the lesion size is similar overall (median area fraction 0.062 versus 0.058), but the BUSI lesions have a clearly higher contrast against the surrounding tissue (median 49.9 versus 39.6 gray levels, Mann–Whitney p < 10−20), especially for benign lesions (56.0 versus 41.3), and the lesions are relatively larger in BUSI for malignant lesions. In addition to any advantage of the mask, a higher lesion contrast and more distinct size difference between classes makes the BUSI task easier, which may account for the higher external accuracy. Reliability of BUSI masks and boxes: The BUSI bounding boxes are derived from the (merged) masks; 630 of the 647 images have one lesion mask, 16 have two and one has three, and none is empty. The BUSI annotations were not checked independently of the dataset authors and the BUSI masks were not checked by a radiologist for this study. The influence of mask errors is quantified, however, by the perturbation experiments of Section 4.5 on BUS-BRA and, on BUSI itself, by the automatic-mask experiment, which resulted in an AUC drop from 0.971 (expert masks) to 0.848 (automatic masks), and to 0.877 after fine-tuning (Dice 0.681 between predicted and annotated masks). This means that the external performance reported is highly dependent on the quality of the mask supplied.
Table 11.
The main model’s internal (BUS-BRA test) and external (BUSI) performances with the same frozen threshold (τ = 0.61). Intervals are 95% bootstrap intervals (patients on BUS-BRA, images on BUSI).
Figure 10.
Confusion matrices of the main model on the internal (BUS-BRA test) and external (BUSI) sets at τ = 0.61. The color intensity of each cell is proportional to the number of cases (darker blue indicates more cases).
Table 12.
Lesion size, contrast and class prevalence in BUS-BRA and BUSI (all images; medians).
Reverse direction: The reverse experiment is shown in Table 13, where three mask-guided and three ROI-only EfficientNet-B3 models were trained on BUSI only and tested on BUS-BRA (unified recipe, threshold selected on the BUSI validation split). With expert masks, the mask-guided models reached a mean AUC of 0.888 (95% CI 0.832–0.931) on the BUS-BRA test set versus 0.811 (0.752–0.863) for ROI-only models (difference +0.077, 0.034 to +0.121, p = 0.002), and 0.911 versus 0.809 on all 1875 BUS-BRA images (+0.101, 0.083 to +0.119, p < 0.001). With automatic masks (from the segmenter trained on BUS-BRA, which is a favorable setting for the target domain) the mask-guided models fell to 0.782 and were no better than ROI-only models (0.794; −0.012, −0.064 to +0.032, p = 0.61); the loss from expert to automatic masks was 0.106 (0.061–0.151) for the mask-guided and 0.017 (−0.005 to +0.041) for the ROI-only models. The AUC of the BUSI validation split (0.999 vs. 0.957) is not reliable since BUSI does not contain patient identifiers and the validation split may contain patients or near-duplicates of patients in the training split. The thresholds chosen on BUSI did not transfer (on BUSI-selected threshold, the sensitivity of mask-guided and ROI-only models was 0.765 and 0.500, respectively, with seed-to-seed standard deviations of 0.13–0.15). The small number of training images (522 images) also restricts the training on BUSI. With automatic masks, the difference between mask-guided and ROI-only models (−0.012, −0.064 to +0.032) is compatible with both a small loss and a small gain, so it qualifies, but does not prove, the loss of the mask-channel advantage; it is available in this direction only (Section 4.5).
Table 13.
Reverse experiment: models trained on BUSI only and tested on BUS-BRA (mean per-seed AUC over three seeds; 95% bootstrap intervals).
4.7. Explainability
Figure 11 illustrates representative Grad-CAM, SHAP and Occlusion-Sensitivity visualizations, which are qualitative examples; the three methods complement each other: Grad-CAM is fast and class-specific, SHAP is based on a game-theoretic approach, while Occlusion Sensitivity is model-agnostic. Only Grad-CAM is used for the quantitative assessment of explanations and this is reported in Section 4.8, along with the number of cases (285 test images, 3 seeds), the fraction of deleted pixels (20%, i.e., 18,000 pixels) and the noise level of the stability test (standard deviation 0.1). The stability value of 0.497 and the IoU values of 0.078 and 0.055 are from an older evaluation protocol that is no longer used and are therefore not comparable with, nor evidence of, robustness or localization.
Figure 11.
Grad-CAM, SHAP and Occlusion Sensitivity overlays for a malignant case. The overlays are qualitative illustrations of one case and do not evidence lesion-focused attention. In the Grad-CAM and Occlusion Sensitivity overlays, warmer colors (red) indicate regions of higher importance for the predicted class.
4.8. Grad-CAM Localization, Fidelity and Stability
Because the IoU between a coarse Grad-CAM map and the lesion is a poor measure of localization, we report four localization metrics (pointing game, in-lesion activation fraction, lesion-to-background energy ratio, and the IoU of the top-activated pixels with the lesion), each with chance (random map) and center-prior controls, for the mask-guided and the ROI-only EfficientNet-B3 (Table 14 and Figure 12 and Figure 13). With the primary border treatment (outermost ring of the 10 × 10 grid zeroed), the mask-guided model hit the lesion with its maximum in 77.7% of the cases versus 61.4% for the ROI-only model (difference +0.163, 95% CI 0.115–0.208), and had a higher in-lesion activation fraction (0.627 versus 0.585; +0.042, 0.028–0.056), a higher energy ratio (5.05 versus 4.38; +0.67, 0.34–0.97) and a higher top-k IoU (0.475 versus 0.446; +0.029, 0.016–0.042). A fixed Gaussian center prior (no image information used) scores higher on the pointing game (1.00) and the top-k IoU (0.804) but lower on the in-lesion fraction (0.571) and the energy ratio (3.14), because lesions are centered in the ROI crops. The localization of the mask-guided model is therefore better than that of the ROI-only model, but not consistently better than the localization provided by the crop geometry alone, and we do not claim that the attention is verified to be on the tumor. The ranking of the two models is the same without border zeroing (pointing 0.406 versus 0.357), and with two rings zeroed (0.932 versus 0.876), the border treatment was chosen after inspecting border artifacts and is a post hoc choice. Both models showed a higher in-lesion fraction for benign than for malignant predictions (mask-guided 0.659 versus 0.560). Fidelity and stability are reported in Table 15. The probability reduction due to the 20% most activated pixels was 0.295 (mask-guided) and 0.246 (ROI-only), which is less than the 0.429 and 0.345 reductions for the same number of randomly scattered pixels and only slightly greater than the 0.263 and 0.171 reductions for a randomly contiguous block of 20%. The Grad-CAM maps then indicate areas where removing the pixels has some impact, but not as much as removing the same number of pixels at random, and the evidence for fidelity is not strong. The stability (Pearson correlation of the maps under noise of standard deviation 0.1) was 0.37 for both models (0.11 without and 0.52–0.53 with more border zeroing), and is highly dependent on the border treatment and does not differ between the models, so we do not describe it as evidence of robustness. Lastly, the same expert masks are used to guide the classifier and score the explanations, and no independent expert annotation of clinically relevant regions was available; a validation with independent expert annotation of clinically relevant regions is a limitation of this study (Section 5).
Table 14.
Grad-CAM localization against the lesion mask (285 test images, three seeds; primary border treatment, ring 1). Δ is mask-guided minus ROI-only with a 95% patient-level bootstrap interval. A dash (–) means that no value was computed or that it does not apply.
Figure 12.
Examples of Grad-CAM heatmaps of the mask-guided model and ROI-only model compared to the annotated lesion contour. The maps are only illustrative; the quantitative comparison is in Table 14 and Table 15; the mask-guided maps are not systematically focused on the lesion. The green line shows the annotated lesion contour; warmer colors (red) indicate higher Grad-CAM activation.
Figure 13.
The examples of Grad-CAM for test images predicted malignant (top figure) and predicted benign (bottom figure). The image is shown with expert contour, mask-guided model, ROI-only model; p is the predicted malignant probability. Both models also react to areas outside the contour. Green and white lines show the expert lesion contour; warmer colors (red) indicate higher Grad-CAM activation.
Table 15.
Fidelity and stability of Grad-CAM (285 test images, three seeds; 18,000 pixels deleted; noise standard deviation 0.1).
4.9. Comparison with Related Work
Table 16 compares the proposed model with representative deep-learning studies for breast ultrasound. A direct numerical comparison is only partially meaningful, as studies vary in the datasets, split protocol and class definitions; in particular, results that are not based on patient-level splitting tend to be optimistic, because images from the same patient may be present in the training and test sets. Many cells of the table are not reported (NR) and because most previous studies reported only the AUC or only the accuracy, no value was imputed. We included recent studies that employed patient-level splitting or cross-dataset evaluation: a patient-leakage-aware benchmark [57] reported a mean AUROC of 0.801 internally and 0.719 across datasets (balanced accuracy 0.723 and 0.635), and a multi-task model trained on BrEaST achieved AUCs of 0.69–0.79 on BUSI [58]. This comparison is limited, however, because the present results are mask-conditioned, the other studies did not use expert masks at inference, and the datasets, class definitions and splits are different. The expert masks were used for the present main model, which achieved an AUC of 0.903 on a patient-level BUS-BRA test set and 0.971 on BUSI, but the comparators did not use expert masks for inference, so the more fair comparison is to the automatic-mask AUC of 0.849 (Section 4.5), which is closer to the cross-dataset values of [57,58]. We thus define the model as competitive in discrimination only in the presence of expert masks.
Table 16.
Comparison with representative breast ultrasound classification studies. The table is not a controlled benchmark as the results are not directly comparable as a result of differences in dataset, protocol and mask usage. NR = not reported.
Neighboring BI-RADS categories are visually so similar that even expert readers are not in complete agreement [4], and forcing a multi-class split tends to trade clinically meaningful accuracy for a finer label that the images do not reliably support; we therefore use the binary benign-versus-malignant target, which most directly influences management. BI-RADS 3 lesions are probably benign, and BI-RADS 4 lesions are suspicious and are not equivalent to a decision to biopsy in every case; BUS-BRA contains categories 2–5 only. Second, a result should not be based on one dataset. Unlike most of the studies listed in Table 16, the present work assesses the model in the other direction, but the external results are limited by the near-duplicates, the difference in lesion contrast and the use of expert masks (Section 4.6).
5. Discussion
There are four main findings. First, with the expert lesion mask supplied at inference, the mask-conditioned EfficientNet-B3 reached an accuracy of 0.870 and an AUC of 0.903 (95% CI 0.844–0.952) on a patient-level BUS-BRA test set, and an AUC of 0.971 on BUSI under a frozen threshold. Second, these numbers are heavily influenced by the mask: when the mask is zeroed, the AUC is 0.847; when the mask is random, the AUC is 0.791; and when the mask is fully automatic, the AUC is 0.849 (−0.054, 95% CI −0.092 to −0.021). Third, the benefit of the mask channel itself is not uniform: with the same recipes and three seeds, it did not improve the AUC on the BUS-BRA test set (−0.004, −0.026 to +0.019), but it did on BUSI (+0.057) and in the reverse BUSI→BUS-BRA direction (+0.077). The reverse-direction gain was not found with automatic masks (−0.012 versus ROI-only), while the BUS-BRA → BUSI direction was not tested with automatic masks. Fourth, the Grad-CAM attention was more localized for the mask-guided model than for the ROI-only model, but not consistently better localized than a center prior, so the evidence for lesion-focused attention is weak. These findings are comparable to those reported for breast ultrasound by other groups, with a patient-level, leakage-free protocol, but they do not support the use of the framework as an automated diagnostic system.
The reason the mask channel is helpful on shifted data and not on the internal test set is not confirmed by our experiments. A possible explanation is that, with the bounding-box crop in both models, the location of the lesion is already given to the ROI-only model, so that the extra information in the mask on BUS-BRA is limited to the lesion contour; on data with a different appearance the contour may be a more robust cue than texture. This would also account for the fact that this advantage is lost if the contour is replaced by an imperfect automatic one (as observed in the reverse direction only). We did not test this explanation directly and the shape cue could also be a shortcut for the dataset (e.g., if the shape cue varies systematically across classes in the annotating center). This possibility is not ruled out by our experiments.
The external validation result is to be interpreted with care. This increased accuracy on BUSI compared to BUS-BRA is not, in isolation, proof of improved generalization because BUSI has a higher lesion contrast than BUS-BRA, contains near-duplicate and label-inconsistent images and no patient identifiers, and was assessed using expert masks. The reverse experiment reveals a different picture: BUSI-trained models were not as good on BUS-BRA as BUS-BRA-trained models were on BUSI, thresholds did not transfer and, in that direction, automatic masks eliminated the advantage of the mask channel. Therefore, we consider the cross-dataset results as preliminary evidence of transfer only in cases where expert masks are available. The clinical significance of the threshold analysis is as follows. The threshold used is the deployed threshold (τ = 0.61) which was chosen on the validation set to maximize accuracy and is therefore not clinically optimized, but rather accuracy-oriented, missing 23 of 88 malignant lesions (sensitivity 0.739). For the purposes of screening-level sensitivity, thresholds were chosen on the validation set for 90% and 95% sensitivity, but the resulting 22 and 42 false positives (Table 8) did not allow for an acceptable level of specificity with this model and these data. A missed cancer is much more expensive than a benign call-back and any such model would have to have an operating point set and validated for the intended workflow.
The explainability analysis is less than initially stated. Both models localized the lesion better than chance, and the mask-guided model better than the ROI-only model, but a fixed center prior scored higher on the pointing game and top-k IoU (and lower on in-lesion fraction and energy ratio), as lesions are centered in the ROI crops; a fidelity test showed that the removal of the most activated pixels was not more damaging than the removal of scattered pixels; and stability depended on the border treatment and was the same in both models. The Grad-CAM maps should be interpreted as illustrative supporting evidence, rather than evidence that the model is paying attention to the tumor, as there were no independent expert annotations available and the same expert masks were used to guide the classifier and to score the explanations.
Errors are also informative: at τ = 0.61 the model missed 23 of 88 malignant cases and produced 14 false positives among 197 benign cases (Table 7). Descriptively, the misses were concentrated in lesions that the radiologists had rated as probably benign: 11 of the 12 malignant lesions in BI-RADS 2–3 were missed (2 of 2 and 9 of 10), against 12 of 50 in BI-RADS 4 and none of 26 in BI-RADS 5; the false positives were mainly BI-RADS 4 lesions (11 of 14). These counts are small and are not adjusted for lesion size or margin, which we did not analyze. They suggest that the model fails mostly where the visual appearance is deceptive for readers too, but we cannot say that it fails only on truly ambiguous images.
The model is cheap to use: the primary EfficientNet-B3 requires one forward pass per flipped view and it is run on standard hardware, and the ensemble would double the cost without any evidence of improvement. The extra requirement compared to a plain classifier is the lesion mask (and the crop derived from it) which is required during training and at inference. This reported performance is thus mask-conditioned; it refers to classification given the location and shape of the lesions, but not the information that is available prior to diagnosis. The impact of automatic masks is assessed in Section 4.5, where the AUC dropped from 0.903 to 0.849, and fine-tuning on predicted masks brought it back only a small way (0.877). In a real workflow, such a tool would not be used in place of the radiologist, but rather alongside as a second reader; in this case, the coarse localization observed would be considered as supporting evidence for the radiologist’s own decision and not as evidence that the model is looking at the tumor.
Limitations: There are a number of caveats. First, all reported headline results are mask-conditioned, and the automatic pipeline is clearly worse (AUC 0.849 on BUS-BRA, 0.848 on BUSI); other architectures [56] were not tested, and the segmentation network was a generic U-Net trained on BUS-BRA only, chosen to measure the sensitivity to segmentation error rather than to optimize the segmenter. The automatic pipeline did not perform well across domains: Dice overlap decreased from 0.912 (BUS-BRA) to 0.681 (BUSI) (153 of 647 masks with Dice < 0.5); automatic-mask AUC was 0.848 on BUSI, whereas expert-mask AUC was 0.971. The automatic-mask results are thus for this segmenter and these two datasets and should not be generalized to other scanners, protocols or centers. Second, the explanation analysis is not an independent validation, as it is done using the same expert masks that are used to train the classifier; no independent expert annotation of clinically relevant regions was available (it requires an independent radiologist annotation study); the center-prior baseline (which was higher on the pointing game and top-k IoU) contradicts the above localization results and should not be interpreted as evidence of lesion-focused attention, and the border treatment was a post hoc choice. Third, the operating point (τ = 0.61) is accuracy-oriented, and the sensitivity goals of 90% and 95% were not achieved on the test set. Fourth, the main model was trained once, on a single patient-level 70/15/15 split; the three-seed experiments use the same split but a different (unified) recipe, so split-to-split variability was not evaluated, and the intervals reflect test-set sampling only. Fifth, BUSI does not contain patient identifiers and thus duplicates and inconsistencies in labels may have been only partially controlled, and we did not repeat the main-model analysis on a de-duplicated BUSI. Sixth, the BUS-BRA → BUSI direction was not tested with automatic ROI-only baselines, the B4 and ensemble ablations were not retested with seeds (the ensemble did not yield any improvement over B3 and each additional configuration would necessitate additional trainings on a limited GPU quota), and the reverse experiment was conducted with a small training set (522 images), three seeds and a segmenter trained on the target domain, so the absence of a mask-channel advantage with automatic masks in that direction (−0.012, 95% CI −0.064 to +0.032) is an absence of evidence of benefit rather than proof of no benefit, and the interval does not exclude a small gain or loss. Lastly, the study is retrospective, and only two public datasets are available, with only BI-RADS categories 2–5 included in BUS-BRA, and no reader study was conducted.
6. Conclusions
This study presented a mask-conditioned approach to the benign–malignant classification of breast ultrasound images, in which the lesion mask is added as a fourth input channel of an EfficientNet-B3, and examined how much it relies on that mask. With the expert mask at inference, the model reached an accuracy of 0.870 and an AUC of 0.903 on a patient-level BUS-BRA test set and an AUC of 0.971 on BUSI without fine-tuning or threshold re-selection. These results are mask-conditioned: the BUS-BRA AUC dropped to 0.849 with an automatic mask, the mask channel did not improve the AUC on the internal test set under the same bounding-box crop, and the gain in the reverse BUSI → BUS-BRA direction (+0.077) was eliminated when masks were automatically generated (−0.012 versus ROI-only); the gain in the BUS-BRA → BUSI direction (+0.057) was not tested with automatic masks. The deployed threshold is accuracy-oriented (sensitivity 0.739) and sensitivity goals of 90% and 95% were not met. The Grad-CAM attention was localized in the mask-guided model, but not consistently better than a center prior; it is illustrative rather than verified evidence of lesion-focused reasoning, and no independent expert annotation was available. The framework is at present a research prototype and not a deployable decision-support tool. Future work will involve automatic segmentation that is robust to domain shift, evaluation with independent expert annotations and repeated patient-level splits, expansion to the full BI-RADS scale, and testing with radiologists in a reader study.
Author Contributions
Conceptualization, N.I.A.A.-L.S. and A.Y.O.; methodology, N.I.A.A.-L.S. and A.Y.O.; software, N.I.A.A.-L.S.; validation, N.I.A.A.-L.S. and A.Y.O.; formal analysis, N.I.A.A.-L.S. and A.Y.O.; investigation, N.I.A.A.-L.S.; data curation, N.I.A.A.-L.S.; writing—original draft preparation, N.I.A.A.-L.S.; writing—review and editing, N.I.A.A.-L.S. and A.Y.O.; visualization, N.I.A.A.-L.S.; supervision, A.Y.O.; project administration, A.Y.O. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Ethical review and approval were waived for this study because it used only publicly available, fully de-identified breast ultrasound datasets (BUS-BRA and BUSI); no new data involving human participants were collected by the authors.
Informed Consent Statement
Not applicable. This study analyzed publicly available, fully anonymized datasets for which informed consent had been obtained by the original data providers.
Data Availability Statement
This study used two publicly available datasets: the BUS-BRA dataset [49] and Breast Ultrasound Images (BUSI) dataset [51]. The trained model weights, analysis code, software environment and the exact patient-level data splits (patient identifiers per split) are available in a versioned public repository (Zenodo, version v1.0; https://doi.org/10.5281/zenodo.24252086); they are not provided on request only.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| Abbreviation | Definition |
| AUC | Area under the receiver operating characteristic curve |
| BI-RADS | Breast Imaging Reporting and Data System |
| BUS | Breast ultrasound |
| BUS-BRA | Breast Ultrasound dataset from Brazil (internal dataset) |
| BUSI | Breast Ultrasound Images dataset (external dataset) |
| CAD | Computer-aided diagnosis |
| CNN | Convolutional neural network |
| FN | False negative |
| FP | False positive |
| Grad-CAM | Gradient-weighted class activation mapping |
| IoU | Intersection over union |
| ROC | Receiver operating characteristic |
| ROI | Region of interest |
| SHAP | SHapley Additive exPlanations |
| TN | True negative |
| TP | True positive |
| TTA | Test-time augmentation |
| XAI | Explainable artificial intelligence |
References
- Bray, F.; Laversanne, M.; Sung, H.; Ferlay, J.; Siegel, R.L.; Soerjomataram, I.; Jemal, A. Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J. Clin. 2024, 74, 229–263. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Carriero, A.; Groenhoff, L.; Vologina, E.; Basile, P.; Albera, M. Deep Learning in Breast Cancer Imaging: State of the Art and Recent Advancements in Early 2024. Diagnostics 2024, 14, 848. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Berg, W.A.; Blume, J.D.; Cormack, J.B.; Mendelson, E.B.; Lehrer, D.; Böhm-Vélez, M.; Pisano, E.D.; Jong, R.A.; Evans, W.P.; Morton, M.J.; et al. Combined screening with ultrasound and mammography vs mammography alone in women at elevated risk of breast cancer. JAMA 2008, 299, 2151–2163. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lazarus, E.; Mainiero, M.B.; Schepps, B.; Koelliker, S.L.; Livingston, L.S. BI-RADS lexicon for US and mammography: Interobserver variability and positive predictive value. Radiology 2006, 239, 385–391. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shen, Y.; Shamout, F.E.; Oliver, J.R.; Witowski, J.; Kannan, K.; Park, J.; Wu, N.; Huddleston, C.; Wolfson, S.; Millet, A.; et al. Artificial intelligence system reduces false-positive findings in the interpretation of breast ultrasound exams. Nat. Commun. 2021, 12, 5645. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Qi, X.; Zhang, L.; Chen, Y.; Pi, Y.; Chen, Y.; Lv, Q.; Yi, Z. Automated diagnosis of breast ultrasonography images using deep neural networks. Med. Image Anal. 2019, 52, 185–198. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tan, M.; Le, Q.V. EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 6105–6114. [Google Scholar]
- van der Velden, B.H.M.; Kuijf, H.J.; Gilhuijs, K.G.A.; Viergever, M.A. Explainable artificial intelligence (XAI) in deep learning-based medical image analysis. Med. Image Anal. 2022, 79, 102470. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. In Proceedings of the Advances in Neural Information Processing Systems 30 (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; pp. 4765–4777. [Google Scholar]
- Zeiler, M.D.; Fergus, R. Visualizing and understanding convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), Zurich, Switzerland, 6–12 September 2014; pp. 818–833. [Google Scholar] [CrossRef] [Scilit]
- Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16×16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar] [CrossRef] [Scilit]
- Byra, M.; Galperin, M.; Ojeda-Fournier, H.; Olson, L.; O’BOyle, M.; Comstock, C.; Andre, M. Breast mass classification in sonography with transfer learning using a deep convolutional neural network and color conversion. Med. Phys. 2019, 46, 746–755. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Moon, W.K.; Lee, Y.-W.; Ke, H.-H.; Lee, S.H.; Huang, C.-S.; Chang, R.-F. Computer-aided diagnosis of breast ultrasound images using ensemble learning from convolutional neural networks. Comput. Methods Programs Biomed. 2020, 190, 105361. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jabeen, K.; Khan, M.A.; Alhaisoni, M.; Tariq, U.; Zhang, Y.-D.; Hamza, A.; Mickus, A.; Damaševičius, R. Breast cancer classification from ultrasound images using probability-based optimal deep learning feature fusion. Sensors 2022, 22, 807. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Eroğlu, Y.; Yildirim, M.; Çinar, A. Convolutional neural networks based classification of breast ultrasonography images by hybrid method with respect to benign, malignant, and normal using mRMR. Comput. Biol. Med. 2021, 133, 104407. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Taheri, F.; Rahbar, K. Improving breast cancer classification in fine-grain ultrasound images through feature discrimination and a transfer learning approach. Biomed. Signal Process. Control 2025, 106, 107690. [Google Scholar] [CrossRef] [Scilit]
- Sahu, A.; Das, P.K.; Meher, S. An efficient deep learning scheme to detect breast cancer using mammogram and ultrasound breast images. Biomed. Signal Process. Control 2024, 87, 105377. [Google Scholar] [CrossRef] [Scilit]
- Heikal, A.; El-Ghamry, A.; Elmougy, S.; Rashad, M.Z. Fine tuning deep learning models for breast tumor classification. Sci. Rep. 2024, 14, 10753. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sirjani, N.; Oghli, M.G.; Tarzamni, M.K.; Gity, M.; Shabanzadeh, A.; Ghaderi, P.; Shiri, I.; Akhavan, A.; Faraji, M.; Taghipour, M. A novel deep learning model for breast lesion classification using ultrasound images: A multicenter data evaluation. Phys. Med. 2023, 107, 102560. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhuang, Z.; Yang, Z.; Raj, A.N.J.; Wei, C.; Jin, P.; Zhuang, S. Breast ultrasound tumor image classification using image decomposition and fusion based on adaptive multi-model spatial feature fusion. Comput. Methods Programs Biomed. 2021, 208, 106221. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Purnama, M.M.R.; Sandi, I.N.; Gunawan, A.A.N.; Sutapa, G.N.; Widagda, I.G.A.; Wendri, N. Classification of BI-RADS using convolutional neural network and EfficientNet-B7. Int. J. Sci. Res. Arch. 2024, 11, 1022–1028. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Peng, J.; Guo, X.; Chen, S.; Liu, L. Breast cancer classification method based on improved VGG16 using mammography images. J. Radiat. Res. Appl. Sci. 2024, 17, 100885. [Google Scholar] [CrossRef] [Scilit]
- Rai, H.M.; Yoo, J.; Agarwal, S.; Agarwal, N. LightweightUNet: Multimodal deep learning with GAN-augmented imaging data for efficient breast cancer detection. Bioengineering 2025, 12, 73. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Saadah, H.; Owda, A.Y.; Owda, M. Convolutional neural networks breast cancer classification using Palestinian mammogram dataset. Indones. J. Electr. Eng. Comput. Sci. 2024, 36, 1149–1162. [Google Scholar] [CrossRef] [Scilit]
- Saadah, H.; Owda, A.Y.; Stergioulas, L.; Owda, M. Optimal decision support system model for breast cancer diagnosis. In Proceedings of the 2024 4th International Conference of Science and Information Technology in Smart Administration (ICSINTESA), Balikpapan, Indonesia, 2024; IEEE: New York, NY, USA, 2024; pp. 528–533. [Google Scholar] [CrossRef] [Scilit]
- Baddad, R.O.; Owda, A.Y.; Owda, M. A deep learning framework for ultrasound image quality assessment and automated nuchal translucency measurement to improve first-trimester chromosomal abnormality screening. AI 2026, 7, 45. [Google Scholar] [CrossRef] [Scilit]
- Luo, Y.; Huang, Q.; Li, X. Segmentation information with attention integration for classification of breast tumor in ultrasound image. Pattern Recognit. 2022, 124, 108427. [Google Scholar] [CrossRef] [Scilit]
- Kalafi, E.Y.; Jodeiri, A.; Setarehdan, S.K.; Lin, N.W.; Rahmat, K.; Taib, N.A.; Ganggayah, M.D.; Dhillon, S.K. Classification of breast cancer lesions in ultrasound images by using attention layer and loss ensemble in deep convolutional neural networks. Diagnostics 2021, 11, 1859. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Koshy, S.S.; Anbarasi, L.J. HMA-Net: A hybrid mixer framework with multihead attention for breast ultrasound image segmentation. Front. Artif. Intell. 2025, 8, 1572433. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, Z.; Zhang, X.; Ju, Y.; Zhang, G.; Chang, W.; Song, H.; Gao, Y. Explainable breast cancer molecular expression prediction using multi-task deep-learning based on 3D whole breast ultrasound. Insights Imaging 2024, 15, 227. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yan, L.; Liang, Z.; Zhang, H.; Zhang, G.; Zheng, W.; Han, C.; Yu, D.; Zhang, H.; Xie, X.; Liu, C.; et al. A domain knowledge-based interpretable deep learning system for improving clinical breast ultrasound diagnosis. Commun. Med. 2024, 4, 90. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chattopadhay, A.; Sarkar, A.; Howlader, P.; Balasubramanian, V.N. Grad-CAM++: Generalized gradient-based visual explanations for deep convolutional networks. In Proceedings of the IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 12–15 March 2018; pp. 839–847. [Google Scholar] [CrossRef] [Scilit]
- Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why should I trust you?” Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 1135–1144. [Google Scholar] [CrossRef] [Scilit]
- Shifa, N.; Saleh, M.; Akbari, Y.; Al Maadeed, S. A review of explainable AI techniques and their evaluation in mammography for breast cancer screening. Clin. Imaging 2025, 123, 110492. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Karthiga, R.; Narasimhan, K.; Thanikaiselvan, V.; Hemalatha, M.; Amirtharajan, R. Review of AI and XAI-based breast cancer diagnosis methods using various imaging modalities. Multimed. Tools Appl. 2025, 84, 2209–2260. [Google Scholar] [CrossRef] [Scilit]
- Bai, S.; Nasir, S.; Khan, R.A.; Meyer, A.; Konik, H. Breast cancer diagnosis with explainable artificial intelligence (XAI): Uncovering strengths and biases. IEEE Access 2025, 13, 205197–205223. [Google Scholar] [CrossRef] [Scilit]
- Boumaraf, S.; Liu, X.; Wan, Y.; Zheng, Z.; Ferkous, C.; Ma, X.; Li, Z.; Bardou, D. Conventional machine learning versus deep learning for magnification-dependent histopathological breast cancer image classification: A comparative study with visual explanation. Diagnostics 2021, 11, 528. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mohi Uddin, K.M.; Biswas, N.; Rikta, S.T.; Dey, S.K.; Qazi, A. XML-LightGBMDroid: A self-driven interactive mobile application utilizing explainable machine learning for breast cancer diagnosis. Eng. Rep. 2023, 5, e12666. [Google Scholar] [CrossRef] [Scilit]
- Vrdoljak, J.; Boban, Z.; Barić, D.; Šegvić, D.; Kumrić, M.; Avirović, M.; Balja, M.P.; Periša, M.M.; Tomasović, Č.; Tomić, S.; et al. Applying explainable machine learning models for detection of breast cancer lymph node metastasis in patients eligible for neoadjuvant treatment. Cancers 2023, 15, 634. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cordova, C.; Muñoz, R.; Olivares, R.; Minonzio, J.-G.; Lozano, C.; Gonzalez, P.; Marchant, I.; González-Arriagada, W.; Olivero, P. HER2 classification in breast cancer cells: A new explainable machine learning application for immunohistochemistry. Oncol. Lett. 2023, 25, 44. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Montaha, S.; Azam, S.; Bhuiyan, R.I.; Chowa, S.S.; Mukta, S.H.; Jonkman, M. Malignancy pattern analysis of breast ultrasound images using clinical features and a graph convolutional network. Digit. Health 2024, 10, 20552076241251660. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hanis, T.M.; Ruhaiyem, N.I.R.; Arifin, W.N.; Haron, J.; Rahman, W.F.W.A.; Abdullah, R.; Musa, K.I. Developing a supplementary diagnostic tool for breast cancer risk estimation using ensemble transfer learning. Diagnostics 2023, 13, 1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Abumihsan, A.; Owda, M.; Owda, A.Y.; Gasir, F.; Abumohsen, M. A novel hybrid deep learning approach for brain tumor classification from MRI images with Grad-CAM interpretability. In Proceedings of the 2025 2nd Beyond Technology Summit on Informatics International Conference (BTS-I2C), Jember, East Java, Indonesia, 2025; IEEE: New York, NY, USA, 2025; pp. 572–577. [Google Scholar] [CrossRef] [Scilit]
- Gómez-Flores, W.; Gregorio-Calas, M.J.; Coelho de Albuquerque Pereira, W. BUS-BRA: A breast ultrasound dataset for assessing computer-aided diagnosis systems. Med. Phys. 2024, 51, 3110–3123. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Anghelache Nastase, I.-N.; Moldovanu, S.; Biswas, K.C.; Moraru, L. Role of inter- and extra-lesion tissue, transfer learning, and fine-tuning in the robust classification of breast lesions. Sci. Rep. 2024, 14, 22754. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Al-Dhabyani, W.; Gomaa, M.; Khaled, H.; Fahmy, A. Dataset of breast ultrasound images. Data Brief 2020, 28, 104863. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal loss for dense object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar] [CrossRef] [Scilit]
- Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the Inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 2818–2826. [Google Scholar] [CrossRef] [Scilit]
- Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Proceedings of MICCAI 2015 Lecture Notes in Computer Science 9351; Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- Aslam, M.A.; Naveed, A.; Ahmed, N. Hybrid attention network for accurate breast tumor segmentation in ultrasound images. arXiv 2025, arXiv:2506.16592. [Google Scholar]
- Wang, L. Breast Ultrasound AI Under Dataset Shift: A Patient-Leakage-Aware Benchmark. Diagnostics 2026, 16, 1537. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, J.; Moradi, S.; Saha, A. Externally validated multi-task learning via consistency regularization using differentiable BI-RADS features for breast ultrasound tumor segmentation. arXiv 2025, arXiv:2511.15968. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.












