📖Title: FreqPath-Net: Frequency-Aware Spectral–Orthogonal Network for Histopathological Nuclei Segmentation
📚 Status: Submitted to IEEE Transactions on Medical Imaging (TMI), 2025*
📜Abstract:
Nuclei segmentation is a fundamental but challenging task in computational pathology due to diverse morphologies, blurred boundaries, and staining variations. Despite remarkable progress, existing models often suffer from structural instability under morphological and staining variations. We attribute this instability to disrupted frequency–spatial consistency and address it through FreqPath-Net, which enforces frequency–spatial consistency for robust nuclei segmentation. By operating directly in the frequency domain, FreqPath-Net achieves morphology-invariant and stain-robust feature representations. The Spectral Wavelet Attention Module (SWAM) adaptively enhances high-frequency boundary cues while maintaining low-frequency consistency, addressing boundary blurring and detail loss. Furthermore, the Orthogonal Direction-Constrained Frequency Module (ODFM) captures global spectral patterns and enforces directional consistency, effectively preserving boundary orientation and structural integrity by leveraging frequency–spatial consistency. Extensive experiments on twelve nuclei segmentation benchmarks show that FreqPath-Net consistently outperforms state-of-the-art methods. On the PanNuke dataset, FreqPath-Net attains an mIoU of 85.41%, exceeding the previous best by 1.34% across diverse organs. The code is available at FreqPath-Net.
All processed datasets and pretrained weights are publicly available on Hugging Face, enabling instant reproducibility.
| Type | Link | Description |
|---|---|---|
| 🤗 Datasets | huangjin520/FreqPath-Net-datasets | Standardized nuclei segmentation benchmarks (train / val / test → img / gt) used in our experiments |
| 🤗 Model Weights | huangjin520/FreqPath-Net | Pretrained .pt checkpoints and configuration files for direct evaluation and fine-tuning |
git lfs install
git clone https://huggingface.co/huangjin520/FreqPath-Netgit lfs install
git clone https://huggingface.co/datasets/huangjin520/FreqPath-Net-datasetsAssuming that you have installed PyTorch and TorchVision, if not, please follow the officiall instruction to install them firstly. Intall the dependencies using cmd:
python -m pip install -r requirements.txt --user -qAll experiments use the PyTorch 1.8 framework in a Python 3.10 environment. Other versions of pytorch and Python are not fully tested.
We conduct extensive experiments on 12 nuclei segmentation datasets and 6 other medical modality datasets to valid our model.
| Category | Dataset | Modality / Description |
|---|---|---|
| 🧬 Nuclei (12) | CPM17 · Kumar · MoNuSeg · PUMA · BBBC020 · DSB18 · CoNSeP · CPM15 · CryoNuSeg · PanNuke · TNBC · NuInsSeg | H&E stained histopathology, 7.5k–500k nuclei |
| 🧫 WSI (2) | BACH2018 · In-house WSIs | Whole-slide H&E images |
| 🩺 Other Modalities (6) | BUSI-WHU · PSFH · Brain Tumor MRI · Dataset-B · LIDC-IDRI · GlaS | Ultrasound, MRI, CT, H&E |
|
Performance vs. Efficiency of FreqPath-Net compared with SOTA models. |
Figure: Comparison of nuclei segmentation performance.
The FreqPath-Net model can be trained on training set using the following:
python train_FreqPath-Net.py
The parameters of the model have been carefully designed. FreqPath-Net - Hardware: an NVIDIA RTX A6000 GPU and an Intel Core i9-10900X CPU.
The FreqPath-Net model can be evaluated on validation set using the following:
python eval.py
Figure: (a) Workflow of the FreqPath-Net-based WSI analysis pipeline. (b) Tumor burden heatmaps on the public BACH2018 dataset; red contours indicate cancer regions. (c) Predicted nuclei masks on in-house WSIs without ground truth.
For any questions or collaborations, please contact Jin Huang, Shengqian Wang or open an issue on GitHub.









