Reza Ahmadi Lashaki was staring at a mammogram where the tumor’s edge blurred into healthy tissue like smoke into fog—impossible to pin down. That moment sparked a collaboration across four universities to build an AI that could do what human eyes struggle with: see cancer clearly, no matter the scan type. Breast cancer affects millions, and treatment hinges on one fragile step—accurately outlining the tumor. If the boundary is wrong, surgery might miss dangerous cells or remove too much healthy tissue. Now, a new AI model is changing the game across four key imaging types: mammography, MRI, ultrasound, and histopathology.

Most AI tools are trained for just one kind of scan. But tumors look different depending on how you image them. A shadow on a mammogram isn’t the same as a glowing hotspot on an MRI. The team’s breakthrough was building a model that adapts across all four. At its heart is a smart decoder called SECA—Swin-Enhanced Cross Attention—that doesn’t just guess where the tumor ends. It learns which details from the big picture should guide the fine lines of the outline. Think of it like a sketch artist who first sees the face from afar, then zooms in, but never forgets the original impression.

The model also tackles another problem: tumors come in all shapes and sizes. Some are tiny dots; others spread like roots. The team wove in a multi-scale decoder, inspired by Inception modules, so the AI can analyze the same image at different zoom levels all at once. A small lump and a large, spiky mass get equal attention. And because tumors take up just a sliver of most images, the team trained the AI with a hybrid loss function—mixing Dice, Focal, and Boundary losses—to focus on the hard-to-spot edges and avoid missing small but dangerous patches.

They tested the model on four major public datasets: CBIS-DDSM for mammograms, BreastDM for MRI, BCSS for tissue slides, and the Breast Ultrasound Images dataset. In every case, the AI outperformed existing methods, delivering sharper, more consistent outlines. For doctors, this means faster readings, fewer second opinions, and treatment plans built on clearer data. For patients, it could mean fewer repeat scans and more precise surgeries.

This isn’t just another lab experiment. By proving it works across real-world datasets and imaging types, the model is one step closer to helping clinics everywhere. As AI tools like this move toward hospitals, they carry the promise of leveling the playing field—bringing expert-level precision to every patient, no matter where they are.