Overview
DigiPathAI provides specialized models for colon cancer segmentation, trained on the DigestPath dataset. These models detect and segment cancerous regions in colorectal histopathology slides.DigestPath Dataset
The DigestPath dataset contains annotated whole slide images of colorectal cancer tissue. The model ensemble includes:Inception
Multi-scale feature extraction for diverse tissue patterns
DenseNet
Dense connections for efficient feature learning
DeepLabV3
Precise boundary segmentation with atrous convolution
Model Details
The colon cancer models are automatically managed by DigiPathAI:Models are stored in
~/.DigiPathAI/digestpath_models/ and include:digestpath_inception.h5digestpath_deeplabv3.h5digestpath_densenet.h5
Usage Example
Basic Colon Segmentation
Quick Mode (Single Model)
With Test-Time Augmentation
Parameters
| Parameter | Description | Default | Colon-Specific Notes |
|---|---|---|---|
mode | Tissue type | - | Must be set to 'colon' |
model | Architecture choice | 'dense' | Options: ‘dense’, ‘inception’, ‘deeplabv3’ |
quick | Single vs ensemble | True | Set to False for ensemble |
patch_size | Inference patch size | 256 | Recommended: 256 for colon |
stride_size | Sliding window stride | 128 | Smaller values = more overlap |
batch_size | Batch size for inference | 32 | Adjust based on GPU memory |
Output
The segmentation returns three files:- Probability Map - Continuous probability values (0-1)
- Binary Mask - Thresholded segmentation (threshold=0.3)
- Uncertainty Map - Model variance for quality assessment
Related
- Liver Cancer Segmentation - PAIP models
- Breast Cancer Segmentation - Camelyon models
- API Reference - Full parameter documentation