Skip to content

FreqPath-Net: Frequency-Aware Spectral–Orthogonal Network for Histopathological Nuclei Segmentation

Notifications You must be signed in to change notification settings

huangjin520/FreqPath-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreqPath-Net

FreqPath-Net

Python PyTorchDataset GitHub Paper Website HuggingFace Model HuggingFace Dataset




FreqPath-Net
Graphical Abstract

📖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.

jin

🤗 Hugging Face Resources

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

Clone or load weights from Hugging Face

git lfs install
git clone https://huggingface.co/huangjin520/FreqPath-Net

Clone or load datasets from Hugging Face

git lfs install
git clone https://huggingface.co/datasets/huangjin520/FreqPath-Net-datasets

🚀 Quick start

1️⃣ Installation

Assuming 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 -q

All experiments use the PyTorch 1.8 framework in a Python 3.10 environment. Other versions of pytorch and Python are not fully tested.

📂 Data preparation

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

📂 Dataset tree

📂 DATASET
└── 📂 MoNuSeg
    ├── 📂 train
    │   ├── img
    │   └── mask
    ├── 📂 val
    │   ├── img
    │   └── mask
    └── 📂 test
        ├── img
        └── mask
Performance Comparison

Performance vs. Efficiency of FreqPath-Net compared with SOTA models.

FreqPath-Net
Figure: Comparison of nuclei segmentation performance.

Training

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.

📊 Evaluation

The FreqPath-Net model can be evaluated on validation set using the following:

python eval.py 

FreqPath-Net
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.

📬 Contact

For any questions or collaborations, please contact Jin Huang, Shengqian Wang or open an issue on GitHub.

Wuhan University Badge Wuhan University Name Wuhan Integrated Circuits


About

FreqPath-Net: Frequency-Aware Spectral–Orthogonal Network for Histopathological Nuclei Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages