Elamur Research

IAIA-BL: A Case-based Interpretable Deep Learning Model for Classification of Mass Lesions in Digital Mammography

Paper · 2021 · Alina Jade Barnett, Fides R. Schwartz, Chaofan Tao et al.

Summary

When a mammogram shows a breast mass, the appearance of its border can help a radiologist decide what to do next. A prediction of malignancy is easier to assess if the reader can see which features of the border support it. IAIA-BL starts with an image of an already located mass and compares parts of that image with examples learned from earlier mammograms. It classifies the margin as circumscribed, indistinct, or spiculated, then uses the scores for those margin types to estimate malignancy. The comparisons that appear in the explanation also contribute to the prediction. This makes interpretability part of how the system works.

The authors adapted a prototype-based image classifier after finding that it could learn to recognize healthy tissue as evidence for a particular kind of mass margin. They taught IAIA-BL where to look with several kinds of supervision. Most images had a margin label and a box marking the mass. For 30 images, a radiologist also marked the parts of the border that mattered for identifying the margin type. A training penalty discouraged prototypes from responding outside those regions. The system also averages several strong matches to each prototype, so a single location does less to determine how much evidence a prototype supplies.

On the Duke test set of 78 images, IAIA-BL reached an overall margin classification AUROC of 0.951, compared with 0.947 for a conventional image classifier and 0.911 for the original prototype approach. Its strongest activations agreed more closely with the radiologist’s markings. Fine-scale activation precision was 0.41 for IAIA-BL and ranged from 0.21 to 0.24 for the baselines. At the broader lesion scale, IAIA-BL reached 0.94. On the malignancy test set of 75 images, its AUROC was 0.84, compared with 0.87 for an image classifier that could use evidence beyond the margin and 0.91 for radiologists’ research estimates.

The paper shows what an inspectable prediction can look like, including when it goes wrong. In one example, IAIA-BL calls a spiculated lesion circumscribed because it matches the sharply bounded part of the border and misses the spicules elsewhere. That explanation identifies a specific feature for the radiologist to check. The study measures retrospective prediction and agreement with expert markings. Whether access to those explanations helps radiologists make better decisions remains a question for a reader study.

Deep dive: IAIA-BL: A Case-based Interpretable Deep Learning Model for Classification of Mass Lesions in Digital Mammography

IAIA-BL classifies breast mass margins in digital mammograms, shows the image regions behind its predictions, and uses margin scores to estimate malignancy. · about 35 minutes to read

The problem and its context

From finding a mass to describing it

The authors distinguish finding a possible lesion from deciding what to make of one. A detection system can flag a suspicious region on a screening image. IAIA-BL begins at the next step, with a region that already contains a mass. It asks what the boundary of that mass looks like and what the predicted appearance implies for malignancy. The paper motivates this task by pointing out that many breast biopsies return benign results, even though a biopsy is an invasive procedure. An aid for interpreting a visible lesion addresses a different part of the process from a system designed to make the lesion easier to find.

Radiologists have a vocabulary for describing what they see. The paper uses margin descriptions from the Breast Imaging-Reporting and Data System, or BI-RADS. A circumscribed margin has a sharply defined border. An indistinct margin is harder to separate visually from the tissue around it. A spiculated margin has thin structures that extend outward from the mass. These descriptions concern the appearance of the boundary. The training label for malignancy comes from histopathology and answers a different question about the lesion itself.

The margin is an intermediate judgment that a radiologist can evaluate on the image. Suppose a mass has a clearly outlined border on one side and outward projections on the other. An explanation based on the clearly outlined side tells the reader where the evidence for a circumscribed prediction came from. The reader can then examine the other side and decide whether the explanation accounts for the most important feature. The possibility that several appearances coexist along one boundary also helps explain why the authors wanted a classifier to evaluate local regions.

The paper describes biopsy recommendations in terms of BI-RADS categories and notes that a lesion with a malignancy probability greater than 2% would fall within the range where biopsy is recommended. That puts the practical emphasis on the reason for the recommendation. Two different risk estimates can both lead to the same clinical action. A margin description can still be worth checking, because it identifies what image evidence contributed to the estimate and gives the reader a way to challenge the interpretation.

Earlier computer-aided detection systems, as the paper describes them, flagged areas that could prompt a recall for further imaging. The authors cite a study that found little diagnostic benefit from such systems in clinical practice. They also discuss more recent deep learning work that reported performance comparable to or better than that of radiologists on some mammography tasks. Computer-aided diagnosis goes beyond marking suspicious locations and can supply a judgment such as benign or malignant. The paper asks whether it can also supply evidence a radiologist can evaluate using the same vocabulary used to describe the lesion.

Why test accuracy leaves a question open

A learning algorithm can take advantage of a pattern that happens to be associated with a label in its data. The paper calls this confounding when the algorithm relies on information that gives the right answer for the wrong reason. Its examples include differences in imaging equipment and the possibility that breast tissue density can serve as a proxy for age. A classifier that learns such a relationship may perform well when the relationship holds in both training and testing. An explanation that exposes its evidence gives an investigator a way to find the shortcut while examining individual predictions.

Small mammography datasets sharpen this concern. With limited examples, a classifier can repeatedly encounter the same associations between a margin label and the tissue surrounding a mass. More examples might help distinguish a stable feature from an incidental association, but expert-annotated mammograms are scarce. The authors’ response is to make some of the training images more informative. A label says what kind of border the image contains. A precise marking says where the radiologist saw the evidence for that label. Both can help train the same classifier.

The paper distinguishes explanations produced by a classifier’s own computation from explanations attached to a conventional neural network after training. A saliency method such as Grad-CAM produces a map that highlights locations associated with a particular prediction. A highlighted location may help a reader see where to look, but a location by itself supplies little information about the visual feature that mattered or the earlier example that established its significance. The related work the authors discuss also raises concerns about maps that readily highlight edges. Grad-CAM

A prototype classifier makes a more specific kind of explanation possible. Earlier case-based systems in medicine retrieved similar recorded cases, and ProtoPNet brought comparisons with learned examples into a deep image classifier. ProtoPNet can search for locally similar patterns, which suits a task where the evidence can occupy a small part of the image. Each pattern is represented by a prototype associated with a class, and the strength of the match affects the score for that class. IAIA-BL keeps this mechanism and changes how the useful patterns are learned and how their matches are pooled.

The starting point matters because a case comparison can be faithfully reported even when the comparison is clinically irrelevant. The authors’ early mammography experiment with ProtoPNet had promising validation accuracy, yet its prototypes could match healthy tissue. One prototype associated with spiculated lesions illustrated the problem. It offered an example of what the network was using, while the example itself lacked the expected margin feature. Access to the prototype made the error visible. The subsequent design used expert supervision to discourage the error during learning.

The authors also place their work alongside methods that guide attention, including procedures that alter the training images, target known or learned confounders, or ask a human to assess an attention map during training. IAIA-BL uses the radiologist’s markings as part of the objective the algorithm minimizes. Its class-specific rule adds a further decision about supervision. A prototype associated with the image’s margin type should respond in a marked area. A prototype associated with a different type is discouraged from responding across the annotated image. That distinction shapes both what the examples represent and how they are used.

The method, step by step

How an image becomes a set of comparisons

Start with a crop that contains a known breast mass and surrounding tissue. A convolutional network converts the crop into a grid of features. Each grid location summarizes visual information associated with a region of the image. The system compares the features at every location with learned prototypes. A prototype for a spiculated margin may respond strongly at places where the border has outward projections. A prototype for a circumscribed margin may respond strongly where the edge is clear. Each prototype gets its own map of match strengths across the grid.

IAIA-BL summarizes each map by averaging its strongest matches. Its margin classifier combines these averages to produce a separate score for each margin type. A second calculation uses the raw margin scores to estimate malignancy. To explain a prediction, the system can show the training regions represented by its prototypes alongside the test regions that match them. The score for an example and its connection to a margin class tell the reader how that comparison enters the calculation.

How IAIA-BL evaluates an image of a breast mass

The steps in order.

How IAIA-BL evaluates an image of a breast massStep 1: Crop the mass and surrounding tissue1. Crop the mass and surrounding tissueStep 2: Encode the crop as a feature grid2. Encode the crop as a feature gridStep 3: Compare each grid location with learned prototypes3. Compare each grid location with learned prototypesStep 4: Map the matches back onto the image4. Map the matches back onto the imageStep 5: Average each prototype’s strongest grid matches5. Average each prototype’s strongest grid matchesStep 6: Combine similarities into margin scores6. Combine similarities into margin scoresStep 7: Estimate malignancy from the raw margin scores7. Estimate malignancy from the raw margin scores

The backbone starts from an ImageNet-pretrained VGG-16. The authors use its convolutional and pooling layers up to the final pooling layer, which they remove. They add convolutional layers with 1 × 1 filters and 512 channels in each layer. With an input resized to 224 × 224, the resulting feature maps have spatial dimensions of 14 × 14. Keeping the last VGG-16 pooling layer would have produced maps of 7 × 7. The finer grid makes it possible to represent smaller differences in where a feature appears along the boundary. The last added layer uses a sigmoid, which puts individual feature values between 0 and 1. VGG-16

A location on the grid contains 512 feature values. The prototype occupies a 1 × 1 location in this grid and has the same number of channels. The term patch therefore has two related meanings in the explanation. The system does its comparisons with a feature vector at one location. The reader sees a crop from the original mammogram associated with that vector. A feature-grid location is computed from an area of the input, so it should be understood as a summary of an image region.

dⱼ,ₗ = ‖pⱼ − f(x)ₗ‖₂²

Here x is the input crop, f is the convolutional feature extractor, and f(x)ₗ is the feature vector at spatial location l. The index j identifies a prototype, and pⱼ is that prototype’s feature vector. The double bars with subscript 2 denote Euclidean length. The superscript square makes dⱼ,ₗ the squared Euclidean distance between the prototype and the feature vector. Smaller distances indicate closer matches in the learned representation.

sⱼ,ₗ = log((dⱼ,ₗ + 1) / (dⱼ,ₗ + ε))

The score sⱼ,ₗ measures how similar prototype j is to location l. The input dⱼ,ₗ is the squared distance, log takes the logarithm, 1 is the constant in the numerator, and ε is the small positive constant in the denominator. The added ε keeps the denominator positive even when the vectors coincide. A close match gives a higher similarity. Placing these scores in their original grid positions produces the similarity map for the prototype.

The authors enlarge a map to the dimensions of the input by bilinear upsampling. This interpolation gives scores at image resolution while retaining the spatial pattern of the coarser map. The enlarged map is the prototype activation map that the reader sees and that the training procedure can compare with a pixel-level annotation. The scores used to classify the image are pooled on the feature grid. This matters when comparing the classifier’s computation with an overlay framed in input pixels.

How matches become margin scores

Original ProtoPNet supplies each prototype’s maximum match to the classifier. IAIA-BL uses top-k average pooling. It selects the strongest grid scores and averages them. The authors point to work on convolutional networks for sentences as an earlier use of this pooling idea. In mammography, their rationale is spatial. A defining margin feature can appear in more than one place, and the classification can draw on those places together. A Convolutional Neural Network for Modelling Sentences

sⱼ = AVGPOOL(topk([sⱼ,ₗ]ₗ; k))

The bracketed expression [sⱼ,ₗ]ₗ holds the scores for prototype j at all grid locations l. The function topk selects the k highest scores. AVGPOOL takes their arithmetic mean, and sⱼ is the resulting score for the whole crop relative to prototype pⱼ. At k = 1, the calculation is max pooling. Each prototype selects its own locations. The rule does not require the selected locations to be contiguous or to coincide across prototypes.

k = ⌊5% × (14 × 14)⌋ = 9

Here 5% is the pooling fraction used by IAIA-BL, 14 × 14 is the spatial size of its feature grid, and the floor brackets ⌊ ⌋ round down to a whole location count. The resulting k is 9 locations for each prototype. A prototype can thus have a strong score when its best matches are distributed along the border. Which matches qualify depends on the scores for that specific image and prototype.

The initial allocation was 5 prototypes per margin class. The version used for the main results retains 4 circumscribed prototypes, 3 indistinct prototypes, and 4 spiculated prototypes after pruning. A class assignment gives each prototype a defined role during training. The margin prediction then uses a learned weight matrix, which determines how much a match raises or lowers each margin score. Knowing the class assigned to a prototype and the weights with which it contributes gives more information than knowing the match strength alone.

ŷ_margin = h₁([s₁, …, sₘ]) = [ŷ_circumscribed, ŷ_indistinct, ŷ_spiculated]

Here m is the number of prototypes and [s₁, …, sₘ] is the vector of their pooled similarity scores. The first fully connected layer, h₁, multiplies that vector by its weight matrix. The result ŷ_margin contains the separate raw scores, or logits, for the circumscribed, indistinct, and spiculated classes. The hat indicates a prediction. A softmax transforms the margin logits into the reported probabilities for the margin classes by normalizing their exponentials. The malignancy calculation branches off before that normalization and receives the raw scores.

What the radiologist marks

The study draws on digital screening mammograms of masses from Duke University Health System. A rectangular region of interest identifies the mass in each image. The authors also retain surrounding tissue when they crop the images. A close box can cut across or omit evidence needed to characterize the boundary, especially where the feature of interest extends outward. This choice leaves the training objective with a job to do. The classifier receives enough image context to see the border, and the supervision encourages it to pay attention to specific parts of that context.

For the fine annotations, a radiologist marked the particularly defining features and traced other parts of the margin. A spiculated lesion, for example, could have circles around conspicuous spicules and lines along the rest of the border. This supplies spatial evidence on top of the margin label. The lesion-scale boxes offer a broader form of the same kind of supervision. A box can discourage reliance on tissue far from the lesion. The fine markings can further guide the classifier towards the parts of the border that characterize the margin.

D = {(xᵢ, yᵢ_margin, yᵢ_mal) : i = 1, …, n},  D′ ⊆ D

D is the training set and n is its size. The index i identifies an image xᵢ, its annotated margin type yᵢ_margin, and its malignancy label yᵢ_mal. D′ is the annotated subset in the fine-scale formulation. The symbol ⊆ indicates that its examples belong to D. For an annotated image, the mask mᵢ has the same height and width as xᵢ. The main loss equations use 0 for locations the expert marked as relevant and 1 for the other locations. This convention makes it easy to retain the activation that the loss should penalize. The box-based version applies that idea at lesion scale.

The authors describe stochastic gradient updates using 75 examples with lesion-scale markings and 10 with fine markings. The fine-annotated collection is reported as 30 images, so the 10 examples specify what enters an update. The two kinds of supervision perform complementary jobs even when they enter together. The coarse examples give the network many opportunities to learn the overall association between a region and its class. The fine examples put a much tighter spatial constraint on the features the network learns.

Learning a feature space and grounding its prototypes

Training cycles through feature learning, prototype projection, and adjustment of the margin decision layer. In the feature-learning stage, the authors update the convolutional parameters and the prototype vectors with the fully connected layers held fixed. The added convolutional layers and prototype vectors start from random initialization. The pretrained layers supply the initial feature extractor, and the warm-up updates only the added convolutional layers and prototypes. Once training moves beyond that warm-up, the feature extractor and prototypes can adapt together to the mammography task.

min over θ_f, p₁, …, pₘ [
  (1/n) Σᵢ₌₁ⁿ CrossEntropy(h₁ ∘ AVGPOOL ∘ topk ∘ g ∘ f(xᵢ), yᵢ_margin)
  + λ_c ClusterCost + λ_s SeparationCost + λ_f FineLoss
]

θ_f denotes the trainable parameters of f, and p₁, …, pₘ are the prototype vectors being optimized. The sum Σ averages the classification loss over the n training images indexed by i. Read the composition symbol ∘ from right to left. The image goes through f, prototype layer g makes the similarity maps, topk selects the strongest scores in each map, AVGPOOL averages them, and h₁ makes the margin logits. CrossEntropy is the classification penalty, which increases as the probability assigned to the annotated margin yᵢ_margin decreases. The coefficients λ_c, λ_s, and λ_f weight the cluster, separation, and annotation penalties, respectively.

The cluster cost encourages a training image to have a group of patches close to at least one prototype assigned to its own class. For instance, an image labeled spiculated can satisfy the cost by having multiple close matches to a single spiculated prototype. An image whose spicules look different can be close to a different prototype of the same class. The class can therefore contain several visual examples without requiring all its images to match all of them.

ClusterCost = (1/n) Σᵢ₌₁ⁿ minⱼ:class(pⱼ)=yᵢ_margin [
  (1/k) Σ mink_z∈patches(f(xᵢ)) ‖z − pⱼ‖₂²
]

Here class(pⱼ) is the assigned margin class of prototype pⱼ, and min ranges over prototypes of the same class as the label yᵢ_margin. A candidate vector z comes from patches(f(xᵢ)), the set of grid vectors for image i. The operation mink selects the k smallest squared Euclidean distances ‖z − pⱼ‖₂². The inner sum and factor 1/k average those distances for a prototype. The outer sum and factor 1/n average the best same-class result across the training images.

The separation cost examines the closest competing prototype. It encourages the image’s feature patches to lie farther from prototypes of the other classes. Using the closest competitor matters because several very distant prototypes could otherwise mask an especially close competing match. Together, the two costs give the comparisons meaning for classification. Being close to some same-class exemplar is rewarded, and being close to a competing exemplar is discouraged.

SeparationCost = −(1/n) Σᵢ₌₁ⁿ minⱼ:class(pⱼ)≠yᵢ_margin [
  (1/k) Σ mink_z∈patches(f(xᵢ)) ‖z − pⱼ‖₂²
]

The inequality ≠ restricts the minimum to prototypes whose class differs from yᵢ_margin. As in the cluster cost, mink selects the k smallest distances from the feature patches z of xᵢ to each prototype pⱼ. Their mean is computed before choosing the closest competing prototype. The sum across i and division by n give the dataset average. The minus sign means that minimizing the training objective favors increasing this distance. When k = 1, these two costs recover the single-patch versions used by the original ProtoPNet.

The authors connect these costs to the pooling design. Similarity grows as distance shrinks, so selecting the strongest similarities and selecting the smallest distances address the same end of a prototype’s map. With several patches contributing, a small change that swaps the best and next-best locations can leave both in the selected group. During training, this also allows the gradient, which indicates how the parameters should change to reduce the objective, to pass through several of the promising patches. The paper offers this as a possible explanation for the improvement it observed.

Penalizing activation in the wrong places

Fine annotation adds an explicitly spatial condition. If the prototype and image share a margin class, activation inside the expert’s marking can contribute freely to a match. The loss penalizes activation elsewhere. If the prototype belongs to a different class, the loss penalizes activation over the entire map. The two terms encourage the network to learn where a class’s features appear and what distinguishes them from features seen on images of another class.

FineLoss = Σᵢ∈D′ [
  Σⱼ:class(pⱼ)=yᵢ_margin ‖mᵢ ⊙ Upsample(gₚⱼ(f(xᵢ)))‖₂
  + Σⱼ:class(pⱼ)≠yᵢ_margin ‖gₚⱼ(f(xᵢ))‖₂
]

The outer sum visits images i in the annotated subset D′. For each such image, gₚⱼ(f(xᵢ)) gives the feature-grid similarity map for prototype pⱼ. Upsample enlarges that map by bilinear interpolation to the size of mᵢ. The operator ⊙ multiplies corresponding pixels. Because the mask is zero at marked pixels, the first norm measures the remaining activation outside the marked region for same-class prototypes. The second norm measures activation over the entire original grid for other-class prototypes. Both ‖ ‖₂ terms take Euclidean norms and both inner sums run over prototypes j under the indicated class condition.

The distinction between a penalty and a restriction on image access is important. During classification the network still receives the crop and all its surroundings, and the expert mask is unnecessary for a new case. During training, the penalty makes certain choices of features and prototypes more costly. With a lesion-scale box, it discourages matches in the extra context. With a pixel-level marking, it discourages matches outside the specific structure the radiologist identified. Both operate on the maps that arise from comparing the learned image regions with prototypes.

Attaching each prototype to a real training region

In the second training stage, projection replaces each learned prototype vector with an actual feature vector from the nearest eligible training patch. Eligibility comes from the label of the source image. This gives the prototype a source region that can be shown to a reader. Projecting after feature learning means the choice is made in the learned representation, which incorporates the class and annotation objectives.

Zⱼ = {z : z ∈ patches(f(xᵢ)) for an i in D with yᵢ_margin = class(pⱼ)}

Zⱼ is the set of eligible patches for prototype j. Each member z is drawn from the feature grid of training image xᵢ in D. Its source image must have margin label yᵢ_margin equal to the class assigned to pⱼ. The colon inside the set notation introduces the conditions for membership.

pⱼ ← arg min_z∈Zⱼ ‖z − pⱼ‖₂

The arrow assigns a new value to pⱼ. The expression arg min returns the eligible vector z in Zⱼ with the smallest Euclidean distance to the current prototype. The distance uses the prototype before replacement. Once the network can point to the source image, it uses the prototype’s activation there to identify the region to display.

The third training stage holds the feature extractor and projected prototypes fixed and adjusts h₁. On first entering this stage the authors initialize the connection from a prototype to its assigned margin class to 1, and its connections to other margin classes to -1. The adjustment gives the network a chance to change the weight of each comparison after projection. A set of plausible examples still needs to be combined into class decisions, and the training labels provide supervision for that combination.

min over θ_h₁ (1/n) Σᵢ₌₁ⁿ CrossEntropy(h₁ ∘ AVGPOOL ∘ topk ∘ g ∘ f(xᵢ), yᵢ_margin)

θ_h₁ is the set of adjustable parameters in the margin layer h₁. The remaining functions are the fixed feature extractor f, prototype maps g, strongest-score selection topk, and averaging AVGPOOL. The cross-entropy compares the margin logits from h₁ with the label yᵢ_margin of image xᵢ. Summing over i and dividing by n gives the average training loss. In this stage the weights that combine the comparisons change while the vectors being compared stay fixed.

Making the malignancy estimate

The authors repeat the stages for margin learning until the margin training loss converges. They then freeze that part of the system and train the second fully connected layer h₂ as a logistic regression. Its inputs are the margin logits. Its target is the malignancy label. This ordering keeps malignancy training from reshaping the feature space, the prototypes, or their weights in the margin classifier. A radiologist who disputes the image evidence for the margin interpretation can trace where that evidence enters the risk calculation.

ŷᵢ_mal = −16 ŷᵢ_circumscribed − 10 ŷᵢ_indistinct + 6 ŷᵢ_spiculated

The index i identifies the image. The three terms with margin names are its raw outputs from h₁. The coefficients −16, −10, and 6 are the reported weights for circumscribed, indistinct, and spiculated scores, respectively. Their weighted sum ŷᵢ_mal is the malignancy score. Holding the other logits fixed, a higher spiculated score raises this output, while a higher circumscribed or indistinct score lowers it.

Prob(malignancy) = σ((ŷᵢ_mal − 155)/100)

Prob(malignancy) is the estimated probability for the image. The input to σ is the score ŷᵢ_mal after subtracting the reported offset 155 and dividing by the reported scale 100. The function σ is the logistic sigmoid.

σ(t) = 1 / (1 + exp(−t))

Here t is the real-valued input to the sigmoid, exp is the exponential function, and 1 is the constant in the numerator and denominator. The expression maps a higher t to a higher probability between 0 and 1. This completes the calculation from localized matches to a malignancy estimate. Its intermediate outputs remain available for examination even when the final estimate is the result a reader first sees.

Experiments and results

The cohort and the tasks

The Duke cohort contains 1136 digital screening mammogram images of masses from 484 patients. Breast imaging radiologists drew the rectangular regions of interest with access to the original reports. A fellowship-trained breast imaging radiologist assigned the BI-RADS margin and shape labels. Histopathology supplied the reference diagnosis for malignancy. These sources define two distinct evaluations. Margin classification measures agreement with an expert’s visual description. Malignancy prediction measures how well the scores rank cases according to the tissue diagnosis.

The full cohort contained 125 spiculated, 220 indistinct, 41 microlobulated, 579 obscured, and 171 circumscribed margins. The authors excluded the microlobulated group because it had few examples. They excluded obscured masses because that designation generally signals a need for more imaging in the clinical framework they describe. The margin test therefore addresses distinctions among the retained classes, after the mass has been located and entered into the study.

For each retained class the authors allocated 73% to training, 12% to validation, and 15% to testing. Patients in the test set did not appear in the other sets. During training, the authors randomly flipped, rotated, and cropped images, setting the crop size to 80% of the original image size. The augmented training set contained 5000 images per class. These transformed crops supply different views of the training material. The independent evidence about performance comes from the held-out test patients.

The authors selected settings using the validation split and fit the final IAIA-BL on the combined training and validation data. The paper reports training it for 50 epochs, with convergence between 40 and 50 epochs. The margin results for this version come from a test set of 78 images. Malignancy results use 75 test images. The malignancy comparison and the visual margin comparison consequently have their own denominators and reference labels.

What was measured

The main prediction metric is area under the receiver operating characteristic curve, or AUROC. It credits the classifier for ranking a positive example ahead of a negative one across possible score thresholds. For the margin task, the authors compare each margin class against the rest and report an overall image-weighted average of those AUROCs. A score for spiculation, for example, is evaluated by how well it ranks the annotated spiculated cases above the other retained cases. For malignancy the positive class consists of the malignant cases. The paper uses DeLong’s method for 95% confidence intervals on AUROC.

Cohen’s kappa measures agreement between the selected margin predictions and the expert’s margin labels after accounting for chance agreement under the metric. It answers a different question from AUROC because a classifier must commit to a class. A system can rank cases well for a particular margin and still make individual assignment errors when it must choose between several margins. The authors report intervals for kappa using bootstrap resampling. They draw 5000 samples, each the size of the test set, to estimate the variation in agreement.

To assess the location of the evidence, the authors introduce activation precision. The metric takes the strongly activated pixels and asks what proportion lies within the area the radiologist marked. A prototype that successfully detects a distinctive section of a border can earn high activation precision even when the rest of the margin is unremarkable for that prototype. This is appropriate for examples designed to recognize local features. A coverage measure would answer whether the activation accounts for the entire annotated region, which is a different task.

AP(pⱼ, xᵢ, yᵢ_margin, mᵢ) =
  Σ_pixels [(1 − mᵢ) ⊙ T_τ(Upsample(gₚⱼ(f(xᵢ))))] /
  Σ_pixels T_τ(Upsample(gₚⱼ(f(xᵢ))))

AP is activation precision for prototype pⱼ on image xᵢ, defined here when class(pⱼ) equals yᵢ_margin. The complement 1 − mᵢ marks the radiologist’s relevant pixels. The operator ⊙ multiplies maps pixel by pixel. The expression Upsample(gₚⱼ(f(xᵢ))) is the enlarged activation map. T_τ is a threshold function that sets the strongest (1 − τ) × 100% of values to 1 and the bottom τ × 100% to 0. The denominator counts the selected pixels, and the numerator counts the ones that overlap the expert marking. The paper sets τ to 0.95, echoing the use of the top 5% in feature-grid pooling. The evaluation threshold is applied to an image-sized map.

AP(pⱼ, D′) = (1/|D′|) Σᵢ∈D′ AP(pⱼ, xᵢ, yᵢ_margin, mᵢ)

In the paper’s averaging notation, AP(pⱼ, D′) is the activation precision of prototype j over an annotated dataset D′. The symbol |D′| denotes its size, and the sum combines the individual activation precisions for the items indexed by i. Each item carries the image xᵢ, the margin reference yᵢ_margin, and the spatial mask mᵢ.

AP(P, D′) = (1/(|D′|m)) Σᵢ∈D′ Σⱼ₌₁ᵐ AP(pⱼ, xᵢ, yᵢ_margin, mᵢ)

Here P is the set of prototypes, m is the number of prototypes in that set, and D′ is the annotated image set of size |D′|. The inner sum ranges over prototypes j, and the outer sum ranges over annotated images i. The paper presents the aggregate as a mean across those dimensions. Its single-image definition only assigns a value to same-class pairs. The displayed aggregate formulas leave implicit how ineligible pairs enter the normalization, so the class condition is important when reading them.

Fine-scale activation precision uses the radiologist’s detailed border markings, and lesion-scale activation precision uses the broader lesion region. The authors derive 95% intervals for activation precision using the bootstrap procedure with 5000 resamples. For the conventional convolutional classifier, they substitute the normalized map for the correct class generated by Grad-CAM or Grad-CAM++. Both maps come from the same classifier’s predictions. Their comparison with prototype maps evaluates where the different procedures highlight evidence.

Margin prediction

The first baseline is original ProtoPNet, which uses the highest response for each prototype, the corresponding single-patch distance costs, and no fine-annotation penalty. The second classifier starts from the same VGG-16 family of convolutional layers and adds fully connected layers to account for the parameter count in IAIA-BL. The authors train it from ImageNet-pretrained weights for 250 epochs and report choosing the epoch with the highest test accuracy. They attach Grad-CAM and Grad-CAM++ separately for visualization. This yields a single set of predictive results and distinct localization results.

Overall margin classification AUROC on the Duke test set

The prototype method with annotation guidance performs close to the conventional classifier and ahead of original ProtoPNet.

Overall margin classification AUROC on the Duke test setIAIA-BL (this paper): 0.951IAIA-BL (this paper)0.951VGG-16: 0.947VGG-160.947Original ProtoPNet: 0.911Original ProtoPNet0.911
The numbers
System or settingAUROC
IAIA-BL (this paper)0.951
VGG-160.947
Original ProtoPNet0.911

The 95% confidence interval for the overall margin AUROC of pruned IAIA-BL is [0.905, 0.996]. The interval for VGG-16 is [0.898, 0.996], and the one for original ProtoPNet is [0.848, 0.974]. The paper describes IAIA-BL and VGG-16 as having comparable predictive performance. The ranking of their point estimates gives a poor basis for a claim that one would reliably classify margins better in a new cohort.

For IAIA-BL the one-versus-rest AUROCs are 0.96 for spiculated, 0.93 for indistinct, and 0.97 for circumscribed on the margin test set. Original ProtoPNet reaches 0.97 for spiculated, 0.87 for indistinct, and 0.93 for circumscribed on the same task. VGG-16 reaches 0.95, 0.94, and 0.95 for those respective classes. The class-level numbers show where the aggregate comparison comes from. Original ProtoPNet’s lower overall score coexists with a slightly higher point estimate for spiculation, while IAIA-BL has its highest point estimate for circumscribed margins.

Pruned IAIA-BL makes the correct margin classification on 83% of the 78 test images. Its overall Cohen’s kappa against the radiologist’s labels is 0.74, with a 95% interval of [0.60, 0.86]. VGG-16 also has a kappa of 0.74, with an interval of [0.60, 0.87]. Original ProtoPNet reaches 0.64, with an interval of [0.49, 0.78]. For IAIA-BL, agreement by margin type is 0.76 for circumscribed, 0.69 for indistinct, and 0.78 for spiculated. The authors compare the overall agreement with radiologist interobserver values reported elsewhere, including 0.61-0.65, 0.58, and 0.48. The comparison gives context for the difficulty of labeling margins. Those human agreement values were obtained in other studies.

Where the classifiers look

Fine-scale activation precision on annotated Duke test images

IAIA-BL places more of its strongest activations on the margin features marked by the radiologist.

Fine-scale activation precision on annotated Duke test imagesIAIA-BL (this paper): 0.41IAIA-BL (this paper)0.41Original ProtoPNet: 0.24Original ProtoPNet0.24VGG-16 with Grad-CAM: 0.21VGG-16 with Grad-CAM0.21VGG-16 with Grad-CAM++: 0.24VGG-16 with Grad-CAM++0.24
The numbers
System or settingActivation precision
IAIA-BL (this paper)0.41
Original ProtoPNet0.24
VGG-16 with Grad-CAM0.21
VGG-16 with Grad-CAM++0.24

At the fine scale, pruned IAIA-BL’s 95% interval is [0.39, 0.45]. Original ProtoPNet’s corresponding interval is [0.17, 0.31]. For the maps produced with Grad-CAM and Grad-CAM++, the fine-scale intervals are [0.05, 0.43] and [0.08, 0.45], respectively. The estimates for the conventional classifier’s fine-scale maps have substantial uncertainty. At the lesion scale, the picture is clearer. IAIA-BL achieves 0.94, compared with 0.51 for ProtoPNet, 0.45 for Grad-CAM and 0.53 for Grad-CAM++. Its lesion-scale interval is [0.92, 0.97].

The scale difference is informative. A strong response inside the box can still fall away from the border or from the specific margin feature a radiologist has marked. Fine-scale precision tests the more demanding alignment. The result shows a visible improvement in placement relative to the baselines and leaves considerable room for disagreement within the lesion. A system can score well on the broader measure while producing some local comparisons that a reader would want to reject.

For the paper’s visual comparison of class overlays, IAIA-BL and ProtoPNet combine maps of prototypes assigned to the expert’s margin class. Each map is weighted by the strength of the image’s match to that prototype. This is a way of showing a class’s responses together for comparison with the gradient maps. The individual-case explanation gives the reader the separate prototypes and matching image regions.

CAVₐ,ᵦ(xᵢ, yᵢ_margin) ∝
  Σⱼ:class(pⱼ)=yᵢ_margin sⱼ · [Upsample(gₚⱼ(f(xᵢ)))]ₐ,ᵦ

CAVₐ,ᵦ is the class activation visualization at image row a and column b for xᵢ and label yᵢ_margin. The proportionality symbol ∝ expresses the dependence on the weighted map sum before the visualization is rescaled. The sum runs over prototypes j assigned to that margin class. The weight sⱼ is the image’s pooled similarity to prototype pⱼ. The bracketed term is the pixel value of that prototype’s enlarged map at (a, b). The authors use minimum and maximum values to rescale the resulting visualization to the range from 0 to 1.

Malignancy prediction

The malignancy experiment compares three approaches on the same test cohort. IAIA-BL uses the frozen margin scores. The unrestricted VGG-16 learns to predict malignancy directly from the image. The third score comes from radiologists who estimated malignancy probabilities during data collection. The human estimates were gathered for a separate study and came from readers with access to more information than IAIA-BL received.

Malignancy prediction AUROC on the Duke test set

Radiologist estimates rank highest, and the unrestricted image classifier ranks ahead of IAIA-BL.

Malignancy prediction AUROC on the Duke test setIAIA-BL (this paper): 0.84IAIA-BL (this paper)0.84Unrestricted VGG-16: 0.87Unrestricted VGG-160.87Radiologist estimates: 0.91Radiologist estimates0.91
The numbers
System or settingAUROC
IAIA-BL (this paper)0.84
Unrestricted VGG-160.87
Radiologist estimates0.91

On the 75-image malignancy test set, IAIA-BL’s 95% interval is [0.74, 0.94]. The interval is [0.82, 0.93] for unrestricted VGG-16 and [0.85, 0.97] for radiologist estimates. The reported results establish that the margin scores carry information about the tissue diagnosis. They also show a lower point estimate for the margin-based classifier than for either comparator. AUROC here concerns how the scores rank malignant and benign cases. Those scores on their own do not establish the consequences of acting on the predicted probabilities at the clinical biopsy threshold.

What the ablations show

Annotation weight and pooling

The validation experiments vary the weight of the fine-annotation penalty and the fraction of features retained during pooling. These changes test two different choices about where the classifier gets its evidence. The penalty makes responses costly in certain locations. The pooling setting determines how many locations contribute to the similarity score. Testing them in combination helps show whether useful spatial guidance can coexist with competitive margin prediction.

At a pooling fraction of 5%, settings with fine-annotation coefficients of 0.001 and 0.002 are among those with the highest activation precision on the validation set. The highest validation AUROCs include the settings that use a coefficient of 0.0 with pooling at 2% or 5%, as well as a coefficient of 0.001 with pooling at 5%. The authors report worse localization without the penalty than with the 0.001 coefficient. They also report worse predictive performance for coefficients at or above 0.002 than for 0.001. The final choice of 0.001 and 5% comes from a setting that does well on both validation measures.

These comparisons show why the authors treat the loss as something to tune. Eliminating it leaves the classifier free to achieve a high validation AUROC with evidence that is poorly placed according to the expert’s markings. Increasing it can direct the responses more tightly and may hurt discrimination between margin classes. For the chosen setting, the results support using the markings to change what the classifier learns without sacrificing the level of prediction performance that made the prototypes useful in the first place.

The authors also compare their many-patch logic with the original single-patch costs and max pooling. In this implementation max pooling corresponds to the top 0.5% setting. Pooled evidence improved margin classification in the experiments the authors describe. Their explanation is that distributing a gradient over several good locations makes learning less sensitive to which location happens to be the single strongest match. The main test comparison with original ProtoPNet includes the change to annotation supervision as well. The gap between those systems therefore reflects a package of changes. The validation sweep supplies more focused evidence about the effect of pooling and annotation settings.

The source and diversity of the prototypes

The prototype collection makes repetition visible. The authors inspect the examples and remove near-duplicates from the principal version. The unpruned system has lesion-scale activation precision of 0.93, with a 95% interval of [0.91, 0.96], and fine-scale activation precision of 0.41, with an interval of [0.39, 0.43]. Those values remain close to the main pruned results. The main prediction discussion reports a 0.004 improvement in AUROC without pruning. The prototype appendix describes duplicate removal with a 0.001 decrease in AUROC. The paper reports these different amounts in its pruning discussions, so they support a modest reported effect without yielding a single consistent estimate of its size.

A separate variant limits projection to images with fine annotations. Those candidates have detailed markings, but they form a smaller pool from which to draw examples. The paper reports less variety among the prototypes for this setting. Its unpruned margin AUROC is 0.965, compared with 0.955 for unpruned IAIA-BL. The appendix notes that several prototypes in the restricted variant repeat examples and that another is removed because it connects more strongly to a different class than the class to which it was assigned. The higher AUROC reported for the unpruned variant and the smaller variety in its examples are separate observations. A collection can rank test cases well and still give readers a narrower range of comparisons.

Another example in the paper shows how to distinguish duplicate cases from duplicate evidence. A correctly classified circumscribed lesion activates prototypes drawn from different parts of the same training image. Although the source is shared, the displayed regions are different. The explanation is about a visual feature at a particular location. Looking only at the identity of the source mammogram would miss that distinction when evaluating the variety of the prototype collection.

Why keep context around the lesion

Before choosing the input crop for the Duke study, the authors compared versions of the publicly available CBIS-DDSM data with and without added context. In the preliminary spiculated-versus-other-margin task, the version with 100 pixels of context on each side of the region of interest reached an AUROC of 0.80. The version limited to the supplied region reached 0.64. One explanation the authors give is that the original boxes could have been too tight to convey the margin. The comparison informed their decision to include context around the Duke lesion crops.

This experiment adds a useful qualification to the attention results. When the evidence lies at the border, removing everything beyond a box can remove the feature being sought. Including the surrounding area gives the network access to a potentially informative transition from the lesion to nearby tissue. The penalty then encourages particular comparisons inside the crop. Context as part of the input and context as evidence for a margin class are different design choices, and the experiments address them through different changes.

What individual explanations expose

The qualitative examples show what the aggregate scores leave open. In a correctly classified indistinct case, the right side of the lesion activates an indistinct prototype. A sharply defined area on the left activates circumscribed prototypes. The explanation can represent both appearances within the same lesion, even though the final prediction resolves them into a single label. This also helps explain why a prototype’s strong local response does not imply that every segment of the mass border has that appearance.

The misclassified spiculated example exposes a different outcome. The network responds to a circumscribed portion at the top and misses spiculation at the bottom. The reason is inspectable even though the final prediction is wrong. The displayed comparison identifies which competing feature supplied the evidence and where the decisive feature was overlooked. That is a more specific account of the error than the confusion between two margin labels in the test results.

The training comparison supplies the complementary failure case. With original ProtoPNet, a prototype assigned to spiculation can highlight healthy tissue. Adding annotation guidance yields an example in which the map instead highlights the spicules marked by the radiologist. The first failure concerns a prototype’s meaning. The second, in the misclassified test image, concerns the system’s ability to detect a relevant feature when it is present. Pruning and spatial supervision can address some problems with the available cases, while the success of matching those cases on an unfamiliar image remains a separate question.

Limitations

Limits identified by the authors

The authors describe IAIA-BL as an aid for a radiologist examining an already detected mass. The input region is supplied, so experiments on lesion detection address a different task. The study also concentrates on margin description as the upstream task used for malignancy estimation. Mass shape was labeled in the dataset, but it does not enter the reported malignancy rule. The authors discuss how adding other BI-RADS features or information such as patient age might change prediction if more data were available.

The cohort covers the selected margin types and leaves out obscured and microlobulated masses for the stated reasons. The authors discuss extending the method to other findings, including clusters of microcalcifications, which bring additional morphology categories and variation in scale. They also describe a possible extension to digital breast tomosynthesis using a patch from a reconstructed slice or a prototype occupying part of the volume. These are directions the architecture suggests. The evaluation concerns the digital mammograms and mass margins studied here.

The comparison with radiologists on malignancy carries conditions the authors spell out. The radiologists gave research probability estimates even though their ordinary decisions use categorical recommendations. The separate study used consumer-grade displays without the specifications or calibration of clinical equipment, and the radiologists had more information than the classifier did. Their performance is a useful reference for the scores collected in that experiment, with a different input and reading setup. The authors also note that a wide range of probabilities can lead to the same biopsy recommendation.

The paper proposes a reader study to evaluate whether radiologists become more accurate with the explanations and how they judge the system’s trustworthiness. It suggests considering differences between breast imaging specialists and readers who face these cases less often. Such a study would examine what the paper’s retrospective measures leave open. A localized explanation might help a reader catch a missed spicule, but the improvement depends on whether the reader sees the explanation, understands it, and acts on it appropriately.

The authors also identify an opportunity to test the annotation method on datasets with known confounders. The examples of healthy tissue matching a prototype show what can go wrong and how the failure can become visible. Testing known confounders would allow an investigator to identify the misleading factor in advance and directly measure how much the penalty reduces reliance on it.

Limits visible in the evaluation

The main cohort comes from one health system. Separating patients in the test set protects against overlap at that level, while performance under new acquisition conditions remains unmeasured. The context-window comparison on CBIS-DDSM was a preliminary experiment about cropping. It does not evaluate whether the final Duke classifier retains its prediction accuracy or prototype relevance at another site. Where differences in equipment or image characteristics were part of the motivation, validation across those conditions would address a distinct question.

The targets stand on different kinds of evidence. A radiologist defines the reference margin type, while histopathology defines the malignancy outcome. Agreement with the annotator shows how closely the classifier matches that reader’s descriptions on the test images. Published interobserver kappa values come from separate studies, with their own case selection and reading conditions. The comparison cannot establish that the classifier would be a more reliable judge of margin type than another radiologist reading the same cases. A side-by-side assessment would need multiple readers interpreting a common set of images under common conditions.

The fine annotations also reflect one radiologist’s judgment about which regions are important. Activation precision measures concordance with those markings, and its interpretation depends on their coverage and specificity. A prototype can achieve high precision through a convincing response to a small marked feature even if the classifier misses another feature elsewhere. A response outside a marking can reflect spurious context, an activation map with limited spatial resolution, or a feature that was not covered by the annotation. Examining the matching crop and the image as a whole helps distinguish these possibilities.

There is a further distinction between where an activation is displayed and what contributed to computing the underlying feature. Upsampling gives a feature-grid score an image-size location. Convolutions computed that score from a neighborhood, which can include tissue around the displayed location. High activation precision shows that strong responses are placed in the intended region. It does not prove that the calculation excludes every form of context or confounding. The fine-annotation loss discourages certain maps, and the training objective continues to reward correct classification across the full crop.

The conventional margin classifier’s reported selection procedure also complicates the comparison. The authors say they selected the epoch with the highest test accuracy for VGG-16, whereas the IAIA-BL settings were chosen on validation data. Choosing an epoch using the test labels gives the baseline access to information that would normally be reserved for final evaluation. The resulting margin AUROCs describe the runs as reported, with different selection conditions. The paper’s margin accuracy interval also prints percent signs on values that do not match the scale of the stated 83% accuracy, so that interval is ambiguous as written.

The malignancy AUROC shows how the cases were ordered by risk. A clinical interpretation of the probability output would also require evidence about calibration and what happens around the biopsy threshold. A system can rank cases well even if the numerical probabilities systematically differ from the observed frequencies. The experiments do not estimate how many biopsies would be avoided or cancers missed if radiologists used IAIA-BL. The architecture makes the route to a score available for review. The benefit of that review belongs to an evaluation of the combined human and system decisions.

What came after

Interpretable Machine Learning: Fundamental Principles and 10 Grand Challenges cites IAIA-BL in a broader work on interpretability. The citation links the mammography study to a discussion framed around principles and open problems. The study offers a concrete instance of those questions. A practitioner can inspect a comparison used in the classifier’s calculation and judge whether the visual resemblance is medically relevant. The paper’s examples show that those judgments can come apart, even when the system explains its own computation faithfully.

The citation establishes a connection to that broader discussion. It gives no specific evidence of a follow-up mammography experiment, adoption of the fine-annotation loss, or independent validation of the prototype comparisons. The clinical question raised by IAIA-BL therefore remains open in this account. The retrospective experiment shows that a classifier can make useful margin predictions while exposing the comparisons behind them. A reader study would establish whether those comparisons help radiologists recognize favorable evidence, catch missing evidence, and make better decisions.

Cite

Cite as Alina Jade Barnett, Fides R. Schwartz, Chaofan Tao, Chaofan Chen, Yinhao Ren, Joseph Yuan-Chieh Lo and Cynthia D Rudin. 2021. IAIA-BL: A Case-based Interpretable Deep Learning Model for Classification of Mass Lesions in Digital Mammography. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2103.12308 · arXiv 2103.12308

@misc{barnett2021iaia,
  title = {{IAIA-BL: A Case-based Interpretable Deep Learning Model for Classification of Mass Lesions in Digital Mammography}},
  author = {Alina Jade Barnett, Fides R. Schwartz, Chaofan Tao, Chaofan Chen, Yinhao Ren, Joseph Yuan-Chieh Lo and Cynthia D Rudin},
  year = {2021},
  doi = {10.48550/arxiv.2103.12308},
  eprint = {2103.12308},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2103.12308}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barnett-2021-iaia-bl-case-based-interpretable/