SEINE: Structure Encoding and Interaction Network for Nuclei Instance Segmentation

Ye Zhang, Linghan Cai, Ziyue Wang, Yongbing Zhang

TL;DR

SEINE (Structure Encoding and Interaction NEtwork) is a novel deep-learning framework designed to solve the persistent problem of "under-segmentation" in histopathology, where nuclei often blend into their surrounding tissue. By introducing an isotropic, contour-based structure encoding and a "structure-guided attention" mechanism, SEINE uses clearly defined nuclei as prototypes to accurately segment fuzzy or overlapping instances, achieving state-of-the-art performance across four major benchmarks.

What Problem Does This Paper Address?

In the world of digital pathology, segmenting individual nuclei is the "gold standard" for cancer diagnosis and treatment planning. However, two major hurdles remain for automated systems:

  1. Visual Ambiguity: Certain types of nuclei (like chromophobe nuclei) look remarkably similar to the surrounding cytoplasm and extracellular matrix. Standard models often fail to see the boundary, leading to "under-segmentation" where the nucleus is merged with the background.
  2. Structural Fragmentation: Many current methods lack a holistic "understanding" of what a nucleus looks like geometrically. This results in fragmented predictions where a single nucleus is split into multiple disconnected pieces.

Existing solutions often use "centroid-based" encodings (measuring distance to the center), but these are often anisotropic—meaning they change if the image is rotated—which confuses the neural network during training.

Methods

The authors propose SEINE, which moves away from center-based modeling toward a more robust, contour-centric approach. Its architecture consists of four key innovations:

  • Contour-based Structure Encoding (SE): Instead of measuring distance to a center point, SE calculates the distance from every pixel to the nearest nucleus contour. Pixels inside the nucleus get positive values; those outside get negative values. This approach is isotropic (rotation-invariant), ensuring the model sees the same structure regardless of the nucleus's orientation.
  • Structure-Guided Attention (SGA): This is a cross-attention mechanism that allows the network to perform "structure interaction." Essentially, the model uses features from clearly stained, easy-to-see nuclei as "prototypes" to help it understand the structure of fuzzy or "fuzzy" nuclei in the same image tile.
  • Semantic Feature Fusion (SFF): This module bridges the gap between the "Semantic Branch" (which asks what a pixel is) and the "Structure Branch" (which asks where it is in the geometry). By fusing these features, the model ensures that its geometric predictions are consistent with its classification of the tissue.
  • Position Enhancement (PE): To prevent fragmentation, this module predicts the distance to the centroid to provide a "location prior," helping the model suppress incorrect boundary predictions in the middle of a nucleus.

Datasets

The researchers evaluated SEINE on four diverse, publicly available datasets to ensure the model generalizes across different organs and cancer types:

  • ConSeP: Colorectal nuclei (41 H&E stained tiles).
  • MoNuSeg: A multi-organ dataset (30 tiles from 7 different organs).
  • PanNuke: A massive pan-cancer dataset containing over 2,000 visual fields across 19 different tissues.
  • TNBC: Triple-negative breast cancer dataset (50 tiles).

Key Insights and Ideas

  • Isotropy is a Superpower: The paper demonstrates that centroid-based methods (like HV or Dir encoding) suffer from high bias when images are rotated. By switching to a contour-based distance map, SEINE remains stable across rotations, leading to much more reliable training.
  • Learning by Example (SGA): The "aha moment" here is the realization that a single pathology slide usually contains both clear and blurry nuclei. By using an attention mechanism to "interaction" across these instances, the model can effectively "transfer" structural knowledge from the clear prototypes to the difficult-to-segment ones.
  • Unifying Geometry and Semantics: Most models treat "finding the boundary" and "identifying the nucleus" as separate tasks. SEINE shows that by mathematically unifying them into a single signed distance map (positive inside, negative outside), the model develops a much stronger internal representation of the biological structures.

Key Results

SEINE achieved State-of-the-Art (SOTA) results across all four datasets, outperforming established models like HoverNet, StarDist, and CDNet.

  • MoNuSeg: Achieved an Aggregated Jaccard Index (AJI) of 62.7%, a significant ~3% improvement over the previous best-performing methods.
  • PanNuke: Showed a notable jump in Panoptic Quality (PQ), reaching 61.6%.
  • Qualitative Improvement: Visual results show that SEINE is significantly better at separating overlapping nuclei and correctly identifying the boundaries of chromophobe nuclei that other models completely missed or merged with the background.

Limitations and Future Work

The authors note that while the multi-scale loss approach is effective, very small-scale feature maps in the earliest stages of the network may still struggle to capture the most intricate structural details.

Future research could explore applying this isotropic structure encoding to other 3D medical imaging tasks (like MRI or CT scans) where rotation invariance is equally critical. Additionally, while the code is open-source, the computational overhead of the SGA module's cross-attention on extremely high-resolution whole-slide images remains a practical consideration for deployment in clinical settings.

Summary updated

Abstract

Nuclei instance segmentation in histopathological images is crucial for biological analysis and cancer diagnosis. However, it faces two significant challenges: (1) poorly stained nuclei can lead to under-segmentation, as the background may be mistakenly identified as the foreground; and (2) deep textures within nuclei often result in fragmented instance predictions, as these textures can be misinterpreted as contours. To address these problems, this paper proposes a Structure Encoding and Interaction NEtwork, termed SEINE, which develops the nuclei structure modeling scheme and takes advantage of the similarity between nuclei structure to improve the integrality of instance segmentation. Specifically, SEINE introduces a contour-based structure encoding mechanism that integrates the correlation between nuclear structure and semantics, enabling a more accurate structural representation. Building on this encoding, we propose a structure-guided attention module, which uses clear nuclei as prototypes to guide the structural learning of unclear nuclei, thereby addressing the under-segmentation problem. Additionally, a position enhancement strategy applies a centroid distance constraint to reduce contour prediction errors, effectively mitigating fragmented instance segmentation. Extensive experiments demonstrate the effectiveness of SEINE, achieving state-of-the-art performance across four benchmark datasets.
BibTeX
@article{zhang2025seine,
  author = {Ye Zhang and Linghan Cai and Ziyue Wang and Yongbing Zhang},
  title = {{SEINE: Structure Encoding and Interaction Network for Nuclei Instance Segmentation}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2025},
  doi = {10.1109/jbhi.2025.3561595},
}

Loading related content...

Figure