Overview
DigiPathAI provides specialized models for liver cancer segmentation, trained on the PAIP (Pathology AI Platform) dataset. These models detect and segment viable tumor regions in hepatocellular carcinoma whole slide images.PAIP Dataset
The PAIP dataset contains annotated liver cancer histopathology slides from hepatocellular carcinoma cases. The model ensemble includes:Inception
Multi-scale feature extraction for liver tissue patterns
DenseNet
Dense connections for robust feature learning
DeepLabV3
Accurate tumor boundary delineation
Model Details
The liver cancer models are automatically managed by DigiPathAI:Models are stored in
~/.DigiPathAI/paip_models/ and include:paip_inception.h5paip_deeplabv3.h5paip_densenet.h5
Usage Example
Basic Liver Segmentation
Quick Mode (Single Model)
With Custom Paths
Parameters
| Parameter | Description | Default | Liver-Specific Notes |
|---|---|---|---|
mode | Tissue type | - | Must be set to 'liver' |
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 liver |
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 for comprehensive tumor analysis:- Probability Map - Continuous probability values indicating tumor likelihood
- Binary Mask - Thresholded segmentation (threshold=0.3) for viable tumor regions
- Uncertainty Map - Model variance for assessing prediction confidence
Clinical Applications
- Viable Tumor Quantification: Measure tumor area percentage
- Treatment Response: Compare pre/post-treatment tumor regions
- Research: Correlate tumor morphology with outcomes
- Quality Control: Use uncertainty maps to identify challenging regions
Related
- Colon Cancer Segmentation - DigestPath models
- Breast Cancer Segmentation - Camelyon models
- API Reference - Full parameter documentation