SEINE: Structure Encoding and Interaction Network for Nuclei Instance Segmentation

Ye Zhang, Linghan Cai, Ziyue Wang, Yongbing Zhang

Abstract

Nuclei instance segmentation in histopathological images is of great importance for biological analysis and cancer diagnosis but remains challenging for two reasons. (1) Similar visual presentation of intranuclear and extranuclear regions of chromophobe nuclei often causes under-segmentation, and (2) current methods lack the exploration of nuclei structure, resulting in fragmented instance predictions. To address these problems, this paper proposes a structure encoding and interaction network, termed SEINE, which develops the structure modeling scheme of nuclei and exploits the structure similarity between nuclei to improve the integrality of each segmented instance. Concretely, SEINE introduces a contour-based structure encoding (SE) that considers the correlation between nuclei structure and semantics, realizing a reasonable representation of the nuclei structure. Based on the encoding, we propose a structure-guided attention (SGA) module that takes the clear nuclei as prototypes to enhance the structure learning for the fuzzy nuclei. To strengthen the structural learning ability, a semantic feature fusion (SFF) is presented to boost the semantic consistency of semantic and structure branches. Furthermore, a position enhancement (PE) method is applied to suppress incorrect nuclei boundary predictions. Extensive experiments demonstrate the superiority of our approaches, and SEINE achieves state-of-the-art (SOTA) performance on four datasets.

Introduction

In digital pathology, accurate nuclei segmentation is a critical prerequisite for cancer diagnosis and treatment planning. Despite advances in deep learning, two primary challenges persist:

  1. Visual Ambiguity: Certain nuclei, such as chromophobe nuclei, exhibit visual characteristics nearly identical to the surrounding cytoplasm. This often leads to "under-segmentation," where models fail to distinguish the nucleus from its background.
  2. Structural Fragmentation: Many existing methods lack a holistic geometric understanding of nuclei, resulting in fragmented predictions where a single nucleus is split into multiple disconnected components.

Furthermore, common "centroid-based" encodings (e.g., measuring horizontal and vertical distances to the center) are inherently anisotropic. This means their values change when an image is rotated, introducing bias and confusion during the training of neural networks.

The SEINE Framework

To overcome these limitations, the SEINE (Structure Encoding and Interaction NEtwork) framework shifts the focus from center-based modeling to a robust, contour-centric approach. The architecture incorporates four key innovations:

  • Contour-based Structure Encoding (SE): Instead of center-relative coordinates, SE calculates the signed distance from every pixel to the nearest nucleus contour. Pixels inside the nucleus are assigned positive values, while those outside are negative. This approach is isotropic (rotation-invariant), ensuring consistent structural representation regardless of orientation.
  • Structure-Guided Attention (SGA): This cross-attention mechanism facilitates "structure interaction." By using features from clearly defined, high-contrast nuclei as "prototypes," the model can better infer the structure of fuzzy or overlapping nuclei within the same image.
  • Semantic Feature Fusion (SFF): This module integrates the "Semantic Branch" (pixel classification) with the "Structure Branch" (geometric modeling). Fusing these features ensures that geometric predictions remain consistent with the identified tissue types.
  • Position Enhancement (PE): To mitigate fragmentation, this module predicts the distance to the centroid as a "location prior," helping the model suppress erroneous boundary predictions within a nucleus.

Isotropy and Structural Learning

A core insight of SEINE is that isotropy is essential for reliable training. Centroid-based methods (like HV or Dir encoding) suffer from high bias because their representations are dependent on the image's coordinate system. By adopting a contour-based distance map, SEINE achieves stability across rotations.

Comparison of anisotropic (centroid-based) vs. isotropic (contour-based) encodings under rotation.

As shown in the figure above, standard horizontal (b) and vertical (c) distance maps change significantly when the image is rotated 90 degrees. In contrast, the proposed contour-based encoding (d) remains consistent, providing a stable target for the network to learn. Additionally, the SGA module leverages the fact that pathology slides often contain a mix of clear and blurry nuclei, effectively "transferring" structural knowledge from easy-to-segment prototypes to difficult cases.

Experimental Results

SEINE was evaluated on four diverse benchmarks: ConSeP (colorectal), MoNuSeg (multi-organ), PanNuke (pan-cancer), and TNBC (triple-negative breast cancer). The model achieved state-of-the-art (SOTA) performance across all datasets, outperforming established models like HoverNet, StarDist, and CDNet.

  • MoNuSeg: Achieved an Aggregated Jaccard Index (AJI) of 62.7%, a ~3% improvement over previous benchmarks.
  • PanNuke: Reached a Panoptic Quality (PQ) of 61.6%.
  • Qualitative Performance: Visual analysis confirms that SEINE excels at separating overlapping nuclei and accurately defining boundaries for chromophobe nuclei that other models typically merge with the background.

Conclusion

SEINE introduces a novel approach to nuclei segmentation by unifying geometry and semantics through isotropic contour-based encoding. While the SGA module adds some computational overhead, its ability to resolve visual ambiguity through structure interaction represents a significant step forward. Future work may extend this isotropic encoding to 3D medical imaging (MRI/CT), where rotation invariance is equally vital for robust diagnostic tools.

Summary updated

Abstract

Nuclei instance segmentation in histopathological images is of great importance for biological analysis and cancer diagnosis but remains challenging for two reasons. (1) Similar visual presentation of intranuclear and extranuclear regions of chromophobe nuclei often causes under-segmentation, and (2) current methods lack the exploration of nuclei structure, resulting in fragmented instance predictions. To address these problems, this paper proposes a structure encoding and interaction network, termed SEINE, which develops the structure modeling scheme of nuclei and exploits the structure similarity between nuclei to improve the integrality of each segmented instance. Concretely, SEINE introduces a contour-based structure encoding (SE) that considers the correlation between nuclei structure and semantics, realizing a reasonable representation of the nuclei structure. Based on the encoding, we propose a structure-guided attention (SGA) module that takes the clear nuclei as prototypes to enhance the structure learning for the fuzzy nuclei. To strengthen the structural learning ability, a semantic feature fusion (SFF) is presented to boost the semantic consistency of semantic and structure branches. Furthermore, a position enhancement (PE) method is applied to suppress incorrect nuclei boundary predictions. Extensive experiments demonstrate the superiority of our approaches, and SEINE achieves state-of-the-art (SOTA) performance on four datasets. The code is available at https://github.com/zhangye-zoe/SEINE.
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},
}
Figure