← Latest papers
⚡ electrical engineering

BreastMammo and DenseMammo: Benchmarks for Mammography Domain Generalization

This paper introduces the BreastMammo and DenseMammo datasets and proposes a foreground-only histogram matching framework that significantly outperforms existing domain generalization methods in breast density classification by effectively resolving vendor-specific domain shifts across multiple clinical sites.

Original authors: Hongyi Pan, Gorkem Durak, Halil Ertugrul Aktas, Andrea Mia Bejar, Mustafa Ege Seker, Nebile Alibeyoglu, Rumeysa Guclu, Rana Gunoz Comert Bozkurt, Sibel Ozkan Gurdal, Neslihan Cabioglu, Beyza Ozcinar
Published 2026-08-12
📖 8 min read🧠 Deep dive

Original authors: Hongyi Pan, Gorkem Durak, Halil Ertugrul Aktas, Andrea Mia Bejar, Mustafa Ege Seker, Nebile Alibeyoglu, Rumeysa Guclu, Rana Gunoz Comert Bozkurt, Sibel Ozkan Gurdal, Neslihan Cabioglu, Beyza Ozcinar, Ravza Yilmaz, Vahit Ozmen, Erkin Aribal, Sukru Mehmet Erturk, Yalda Zafari, Mohamed Mabrok, Kayhan Batmanghelich, Mohammad Yaqub, Ziyue Xu, Ulas Bagci

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where doctors have a super-powered pair of glasses that can see through the human body to spot trouble before it becomes a crisis. This is the promise of Artificial Intelligence (AI) in medicine, specifically in looking at mammograms—special X-ray pictures of the breast. For years, scientists have been training these AI "glasses" to spot breast cancer, but they've hit a frustrating wall. You see, every hospital uses different X-ray machines from different companies, kind of like how every brand of camera takes photos with slightly different colors and lighting. An AI trained on photos from one brand often gets confused when it sees photos from another. It's like teaching a student to recognize a cat only using pictures from a specific art style; when you show them a photo taken in a different style, they might not realize it's the same cat. This confusion is called "domain shift," and it's a huge problem because it means an AI that works perfectly in one hospital might fail in the next, potentially missing a diagnosis.

This paper introduces a clever new way to fix that confusion. The researchers created two brand-new sets of mammogram data, named BreastMammo and DenseMammo, which act like a giant, diverse practice test for AI. But the real magic isn't just the data; it's a new technique they invented to teach the AI how to ignore the "camera style" and focus only on the "cat." They call this foreground-only histogram matching. Think of it like a photo editor that knows exactly which parts of the picture are the actual breast tissue and which parts are just empty black space. Instead of trying to fix the whole image (including the useless black background), the AI only adjusts the brightness and contrast of the tissue itself to match a standard look. By doing this, the AI learns to recognize the shape and texture of the tissue regardless of which machine took the picture. The results are promising: when they tested this method on data from hospitals they had never seen before, the AI got much better at spotting dense tissue and distinguishing between benign and malignant cases, outperforming other popular methods that tried to fix the problem in different ways.

The Problem: The "Camera Filter" Issue

Imagine you are trying to teach a robot to identify apples. You show it thousands of pictures of red apples taken in a sunny kitchen. The robot learns perfectly. But then, you take it to a different kitchen where the lights are dim and yellow, and the apples look orange. The robot panics. "Is this an apple?" it asks. "It doesn't look like the apples I know!"

In the world of mammography, this is exactly what happens. Hospitals use different X-ray machines (from vendors like GE, Hologic, or Siemens), and each machine processes the image slightly differently. One might make the tissue look very bright and high-contrast, while another makes it look softer and grayer. When an AI model is trained on data from just one or two hospitals, it learns to recognize the "style" of those machines as much as the actual disease. If you then send that model to a third hospital with a different machine, it gets confused. The paper calls this domain shift. It's a major hurdle because it means we can't just build one "perfect" AI and use it everywhere; we need a way to make the AI immune to these camera differences.

The New Data: A Massive Practice Library

To solve this, the researchers first needed better practice materials. They introduced two new datasets:

  1. BreastMammo: This is a collection of 894 images from 447 patients. These are "diagnostic" images, meaning they were taken when a patient already had a symptom or a lump. Each patient has two views of one breast (a top-down view and a side view). The images are labeled with whether the lump was benign (harmless) or malignant (cancerous), and they include the patient's breast density category.
  2. DenseMammo: This is a larger "screening" dataset with 2,480 images from 620 patients. These are routine check-ups for people without symptoms. Each patient here has a full set of four views (both breasts, two angles each).

Both datasets are carefully curated with expert labels for breast density (categories A through D) and are available for other scientists to use. The goal was to create a standardized "test track" where everyone could race their AI models under the same rules.

The Solution: The "Tissue-Only" Filter

The researchers realized that previous attempts to fix the "camera style" problem were making mistakes. Some methods tried to blend the "features" of different images together, which is like mixing paint colors to create a new shade. The problem is, this can accidentally blur the tiny, important details of the tissue texture. Other methods tried to swap the "frequency" of the image (like changing the bass and treble on a song), but this often messed up the background, adding weird noise to the empty black parts of the X-ray.

The team proposed a new approach: Foreground-Only Histogram Matching.

Here is how it works, using a simple analogy:
Imagine you have a black-and-white photo of a forest (the breast tissue) on a piece of paper. The paper has a huge black border around it (the empty space in the X-ray).

  • Old methods tried to adjust the brightness of the entire piece of paper, including the black border. This is bad because the border is just empty space; changing it doesn't help you see the trees better, and it might even make the trees look weird.
  • The new method puts a mask over the black border. It says, "Ignore this part. We only care about the trees." It then looks at the "histogram" (a chart showing how many pixels are dark, light, or in between) of just the trees. It then adjusts the brightness of the trees in the source photo so they match the brightness of the trees in a reference photo.

Crucially, they don't just swap the styles; they create a smooth gradient. They generate new "synthetic" images that are a mix of the original and the new style. They create four versions of every image, blending the styles at 25%, 50%, 75%, and 100%. This teaches the AI that the same tissue can look slightly different depending on the machine, but it's still the same tissue.

The Results: Does It Work?

The researchers tested their new system using a powerful AI model called Swin Transformer. They ran two types of tests:

1. The Internal Test (The Practice Run)
They trained the AI on their own new datasets (BreastMammo and DenseMammo) and checked how well it did on the same data using a 5-fold cross-validation (a rigorous way of splitting data to ensure the model isn't just memorizing).

  • The Result: The Swin Transformer model achieved a peak AUC of 98.32% on the DenseMammo dataset for density classification. This is a very high score, indicating the model is extremely good at the task when it knows the data well.
  • They also found that using higher resolution images (512x512 pixels) didn't actually help much compared to the standard size (224x224), likely because the AI was already trained on standard sizes.

2. The External Test (The Real World Challenge)
This is the most important part. They took the AI trained on their data and tested it on two completely different datasets from other hospitals: TNMammo and LUMINA. These datasets use different machines and different styles, representing the "domain shift" problem.

  • Without their method: The AI struggled. On TNMammo, the AUC was 83.46%. On LUMINA, it was 81.72%.
  • With their method: The AI improved significantly. On TNMammo, the AUC jumped to 86.38%. On LUMINA, it rose to 86.13%.
  • Comparison: They compared their method to other popular techniques like MixStyle (which blends features) and DFT (which swaps frequency patterns). Their "foreground-only" method consistently beat these other approaches.

Why It Matters

The paper suggests that by focusing strictly on the tissue and ignoring the empty background, the AI learns a "universal" way to see the breast that works across different machines. The authors argue that trying to fix the whole image (including the background) introduces noise and confusion, whereas their targeted approach preserves the delicate textures needed for diagnosis.

In the end, this isn't just about getting a higher score on a test. It's about building AI that can be trusted in any hospital, anywhere in the world. If an AI can learn to ignore the "camera filter" and focus on the "cat," it can help doctors everywhere detect breast cancer earlier and more accurately, regardless of the equipment they have. The researchers have made their data and code available to the public, hoping that this "tissue-only" trick will become a standard tool for building better, more reliable medical AI.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →