← Latest papers
💻 computer science

Label tree semantic losses for rich multi-class medical image segmentation

This paper proposes two novel tree-based semantic loss functions that leverage hierarchical label structures to improve multi-class medical image segmentation, demonstrating consistent performance gains over baselines in both fully supervised whole-brain parcellation and sparse annotation neurosurgical hyperspectral imaging tasks.

Original authors: Junwen Wang, Oscar MacCormac, William Rochford, Aaron Kujawa, Jonathan Shapey, Tom Vercauteren

Published 2026-05-22
📖 5 min read🧠 Deep dive

Original authors: Junwen Wang, Oscar MacCormac, William Rochford, Aaron Kujawa, Jonathan Shapey, Tom Vercauteren

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 you are trying to teach a computer to recognize every single part of a human brain or a surgical scene. In the past, computers were like strict teachers who treated every mistake the same way. If the computer confused a "left kidney" with a "right kidney," it got the same "failing grade" as if it confused a "kidney" with a "toaster."

But in medicine, not all mistakes are created equal. Confusing two similar brain regions is a small error; confusing a brain region with a completely different organ is a huge one.

This paper introduces a new way to teach computers that understands relationships. The authors built a "family tree" for medical labels, where similar things are grouped together, and they created two special "grading systems" (loss functions) that use this tree to give smarter feedback.

Here is a breakdown of their ideas using simple analogies:

1. The Problem: The "One-Size-Fits-All" Grading System

Currently, most medical AI is trained using a standard grading system. If the AI guesses "Class A" when the answer is "Class B," it gets penalized. If it guesses "Class A" when the answer is "Class Z" (which is totally different), it gets the exact same penalty.

This is like a teacher giving a student the same "F" for spelling "cat" as "dog" (a small mistake) and for spelling "car" as "airplane" (a huge mistake). As medical images get more detailed with hundreds of tiny, similar classes, this old system becomes inefficient because it doesn't understand that some errors are "closer" to the truth than others.

2. The Solution: The "Family Tree" of Labels

The authors organized all the medical labels (like different parts of the brain or types of tissue) into a hierarchy, or a family tree.

  • The Root: The top of the tree is a broad category (e.g., "Brain").
  • The Branches: These split into major groups (e.g., "Left Hemisphere," "Right Hemisphere").
  • The Leaves: These are the specific, tiny details (e.g., "Left Temporal Lobe").

They created two new ways to grade the AI based on this tree:

A. The "Travel Cost" Grader (Wasserstein Distance Loss)

Imagine the label tree is a map of a city.

  • If the AI makes a mistake, the computer calculates the distance it has to travel on the map to get from the wrong answer to the right answer.
  • If the AI confuses two neighboring neighborhoods (like "Left Temporal Lobe" and "Right Temporal Lobe"), the "travel cost" is short, so the penalty is small.
  • If the AI confuses a neighborhood with a completely different city (like "Brain" and "Liver"), the "travel cost" is huge, so the penalty is severe.
  • The Result: The AI learns that it's okay to make small, "close" mistakes, but it must avoid big, "far" mistakes.

B. The "Family Responsibility" Grader (Tree-Weighted Cross-Entropy)

Imagine the AI is a student taking a test.

  • In the old system, the student only gets graded on the final answer (the specific leaf of the tree).
  • In this new system, the student is also graded on the steps they took to get there. Did they correctly identify the "Brain" branch? Did they correctly identify the "Left Hemisphere" branch?
  • Even if the student gets the tiny leaf wrong, if they got the big branches right, they get partial credit. This encourages the AI to learn the "big picture" structure of the anatomy, which helps it make better guesses on the tiny details.

3. Handling "Missing" Information (Sparse Annotations)

In the real world, doctors don't have time to label every single pixel in a medical image. They often only label the important parts and leave the rest blank.

  • The Old Trap: If a pixel isn't labeled, old AI systems assume it's "background" (nothing). This is dangerous because that blank space might actually be a tumor the doctor just forgot to mark.
  • The New Trick: The authors combined their "Family Tree" grading with a "Detective" system. The AI is told: "If you aren't 100% sure a pixel belongs to one of the labeled families, flag it as 'Unknown' (Out-of-Distribution) instead of guessing it's background." This prevents the AI from confidently mislabeling unmarked areas.

4. What They Found (The Results)

The authors tested these new grading systems on two very different tasks:

  1. Brain MRI (Whole Brain Parcellation): Breaking down a 3D brain scan into 100+ tiny regions.
    • Result: The "Travel Cost" grader (Wasserstein) was the winner. It significantly improved the AI's ability to correctly identify small, hard-to-see brain structures compared to standard methods.
  2. Surgical Camera (Hyperspectral Imaging): Identifying tissues during brain surgery using a special camera that sees colors invisible to the human eye.
    • Result: The "Family Responsibility" grader (Tree-Weighted) worked best here, especially when the training data was sparse (incomplete). It helped the AI distinguish between "normal" and "abnormal" tissue more accurately.

Summary

The paper argues that by teaching AI to understand the relationships between medical labels (using a family tree structure) rather than treating every label as an isolated island, we can build smarter, more robust medical imaging tools. These tools make fewer catastrophic errors and are better at handling the messy, incomplete data that real doctors work with.

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 →