When a patient has a tumor biopsied or removed, the tissue gets sliced super thin, dyed with special stains, and placed on a glass slide under a microscope. Doctors have used these pink and purple slides—called H&E slides—for over 100 years to diagnose cancer. But researchers at Stanford Medicine just figured out how to pull much more information from these same slides using artificial intelligence.
They built a tool called CANVAS, which can predict something remarkable: how cancer cells talk to each other and what treatments might actually work for each patient. The team analyzed more than 18 million cells from 457 patients with non-small cell lung cancer, the most common type of lung cancer worldwide.
"A tumor is a very complex ecosystem," said Ruijiang Li, Ph.D., who led the research as senior author. "But time and money limit the number of samples that can be analyzed with experimental techniques. We wanted to develop a tool capable of inferring this spatial complexity from existing resources like pathology slides."
The team trained CANVAS by pairing standard microscope slides with detailed maps made using another technique called CODEX, developed in the lab of pathology professor Garry Nolan, Ph.D. CODEX can detect dozens of proteins and cell types within a tumor, creating a spatial map of cellular relationships—but it's slow and expensive. By learning patterns from thousands of these matched pairs, CANVAS can now predict those same maps from regular slides alone.
The research identified 10 distinct cellular "neighborhoods" in lung cancer—areas where cancer cells, immune cells, and other cells cluster and interact in specific ways. One neighborhood stood out: it was rich with immune cells called neutrophils, and patients whose tumors had this neighborhood tended to do worse and didn't respond as well to immunotherapy drugs.
After training on lung cancer samples, the team tested CANVAS on archived slides from more than 5,000 patients across nine different cancer types. The tool successfully confirmed the 10 cellular neighborhoods and linked their presence or absence to how patients fared.
The implications are significant. Every cancer patient already has these microscope slides made—they're part of standard care. If doctors could analyze them with CANVAS, they might predict which patients will benefit from immunotherapy and which won't, helping guide treatment decisions without additional biopsies or expensive tests.
"MUSK is particularly good at recognizing morphology patterns from slides," Li said. "CANVAS uses those patterns to infer cellular neighborhoods—multicellular patterns in a complex tumor ecosystem."
The research was published in the journal Cell on June 16, 2026. The lead authors were postdoctoral scholar Yuchen Li and research scientist Zhi Li.
