Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis

  • Problem Whole slide images are gigapixel files, and labelled training data and stain variation across laboratories make a generalizable segmentation model hard to build.
  • Method A tissue mask limits patch extraction to tissue, and an ensemble of three fully convolutional networks, trained with a hybrid Dice and cross-entropy loss, averages tumour probabilities into a slide heatmap that feeds lymph node and tumour burden analyses.
  • Results Ensemble-A reached a FROC score of 0.83 on the CAMELYON16 test set (n=139), and RF-Ensemble reached a Cohen's kappa of 0.9090 on CAMELYON17 testing.

Figure 1: Deep learning based framework for segmentation and analysis of whole slide images

Fig. 1 : Deep learning based framework for segmentation and analysis of whole slide images.

Original paper · CC BY 4.0 · Mahendra Khened, Avinash Kori, Haran Rajkumar, Balaji Srinivasan, Ganapathy Krishnamurthi · A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis · Original paper figure · Extracted the figure area from page 4 of the original PDF.

Why whole-slide segmentation is hard

A whole slide image digitizes a glass slide at 0.25 micrometres per pixel, which corresponds to 40X magnification, so a 20mm by 15mm slide becomes an image of about 80,000 by 60,000 pixels. A network cannot take such an image in one pass, so the image has to be cut into patches, and the slide-level result must be rebuilt from patch-level predictions.

Labelled data is also scarce, because pathologist annotation is costly and many groups have limited access to data from varied sites. Stain colours differ between laboratories, so a model that works on one site's slides may not generalize to another, which the authors treat as a central difficulty. Human review is itself uneven: pathologists disagreed with one another on breast biopsy diagnoses 24.7% of the time on average.

From slide to tumour heatmap

The pipeline starts by finding the tissue on a low-resolution copy of the slide. The colour space is converted to HSV, Otsu thresholding is applied to the saturation channel, and binary morphological operations clean the mask. Patch centres are placed on a uniform sampling grid inside the tissue mask. Each grid point is scaled back to the highest resolution, and a fixed-size patch is cut around it, so background glass is never processed.

Each network is an encoder-decoder. The encoder reduces the patch to low resolution feature maps, and the decoder returns to input resolution for pixel-wise classification. The two U-Net variants use DenseNet-121 or Inception-ResNet-V2 as the encoder, with the decoder's up-sampled features joined to encoder features through skip connections.

The third member, DeeplabV3Plus, uses an Xception backbone and atrous convolutions, and adds low-level encoder features to the decoder.

At inference the three tumour posterior probability maps are averaged, which gives the ensemble's tumour heatmap. Patches overlap by 50 percent in the reference inference setting, so each pixel is seen up to four times and its probability is averaged over those views, which smooths block edges in the heatmap.

Training with a hybrid loss

Each training batch holds equal numbers of tumour and non-tumour patches, which counters the class imbalance in whole slide images. Patch centres are stored once and then shifted at random within a 128 pixel radius during training, and the 256x256 patches are cut from the highest resolution image at that point.

The loss is a weighted sum of a cross-entropy term and two Dice-based terms, one for tumour pixels and one for background pixels, so that the small tumour class contributes through an overlap measure. \[ \mathrm{Loss} = \alpha\, CL + \beta\, DL_{BG} + \gamma\, DL_{FG} \] The weights are set to alpha equal to 0.5, beta equal to 0.25 and gamma equal to 0.25, chosen empirically, and the networks are optimized with the ADAM optimizer.

The DenseNet-121 and Inception-ResNet-V2 members start from ImageNet weights and the DeeplabV3Plus member from PASCAL VOC weights. For the first two epochs the encoders of the two U-Net members are frozen so only their decoders learn, and both parts train for the remaining epochs. The three models are trained independently on different cross-validation folds.

How the uncertainty maps are built

Aleatoric uncertainty is estimated for each model as the variance of its output across test time augmentations, which here are rotation, vertical flip and horizontal flip. The variance is taken over the augmented outputs of the same network, so it reflects how the prediction changes under input transformations for one model.

Epistemic uncertainty is estimated from the spread of predictions across the three different architectures, rather than across weights of one network. Epistemic uncertainty is the part attributed to model parameters, and the authors approximate it through architectural diversity rather than through Bayesian dropout sampling.

Lesion detection on CAMELYON16

Lesion detection uses the FROC curve, which plots sensitivity against the average number of false positives per slide. The reported score is the mean sensitivity at 1/4, 1/2, 1, 2, 4 and 8 false positives per slide. The evaluation uses the CAMELYON16 test set of 139 slides.

The authors attribute the gain to averaging, which lowers the probability in uncertain regions and so removes false positives.

Ensemble-B uses three DenseNet-121 models trained on different folds with 1024 patches and 512 stride. Its FROC score is 0.85, against 0.73, 0.72 and 0.77 for the three single-fold members. Because those differences are small, Ensemble-A was chosen for the CAMELYON17 run to save computation.

pN-staging on CAMELYON17

The listed features include the largest region's axis length and area, the tumour-to-tissue ratio, and region-level statistics such as maximum, mean, variance, skewness and kurtosis.

Because negative slides dominate the training set, the features are balanced with SMOTETomek, which first oversamples minority classes with SMOTE and then removes Tomek link pairs as noise.

The 100 CAMELYON17 training patients were split into 43 for training and 57 for validation. Without balancing, the Random Forest classifiers reached 90.18% accuracy and a Cohen's kappa of 0.9164 on the validation set, with 100 trees. The confusion matrix showed ITC cases being misclassified as negative. Balancing raised the 5-fold cross-validation accuracy by a margin of about 5%, from 87 to 92 for the partial training set and from 89.89 to 94.83 for the complete set.

RF-Ensemble combines the four Random Forest classifiers by majority vote, and a tie goes to the higher metastasis category. On the 500-slide CAMELYON17 testing set, RF-Ensemble reached a Cohen's kappa of 0.9090 and ranked third on the public leaderboard, behind 0.9570 and 0.9386.

Colon segmentation on DigestPath

Of the 660 training tissue images, 635 were used for training, and 25 were held out for model selection. A total of 80,000 patches were extracted from the training data, and each model was trained with 256x256 patches and a batch size of 32.

On the 212-image DigestPath 2019 testing set, the proposed approach obtained a Dice of 0.78, placing fourth in the challenge table behind kuanguang at 0.807, zju realdoctor at 0.792 and TIA Lab at 0.787.

Liver segmentation and tumour burden on PAIP

Inference on the PAIP validation set of 10 slides uses non-overlapping 1024x1024 patches, and the probability maps are thresholded at 0.5. The threshold was chosen on the validation set, and lower thresholds produced false positives while higher ones under-segmented. On that validation set the ensemble reached a Jaccard score of 0.701621, above DeepLabV3Plus at 0.681786, Inception-ResNet-V2 FCN at 0.685771 and DenseNet-121 FCN at 0.679107.

Tumour burden is the ratio of the viable tumour area to the whole tumour area, and the whole tumour region is the outer boundary enclosing viable nests, necrosis and capsule. Training a second network for the whole tumour gave sub-optimal results, so the whole tumour is approximated as the intersection of the smallest convex hull of the viable tumour with the tissue mask.

On the 40-slide PAIP 2019 testing set, the proposed method scored 0.750 on Task 1 (viable tumour segmentation) and 0.6337 on Task 2 (viable tumour burden). The top Task 2 entry, FNLCR, reached 0.752. The authors describe the convex hull approximation as comparable to the deep learning methods used by the other participants for the whole tumour.

What the uncertainty maps show

Aleatoric uncertainty is high inside tumour regions, which the authors link to loss of neighbouring context at patch borders. This means the aleatoric analysis needs larger contiguous regions than a single 256x256 patch. Epistemic uncertainty concentrates on the boundary around the tumour tissue, and the combined map averages the aleatoric maps of the three models with the epistemic map.

In the uncertainty illustration, the individual models reach Dice values of 0.91 for DenseNet-121, 0.89 for Inception-ResNet-V2 and 0.88 for DeepLabv3Plus, while the ensemble reaches 0.94. The authors describe this as a gain of about 0.04 to 0.06 in Dice over the individual models, on the single held-out case shown.

Limitations

The convex hull method fails when viable tumour is scattered into small disjoint regions far from the main tumour, and when the whole tumour is larger than the convex hull of the viable tumour.

Patch-based aleatoric uncertainty is high inside tumour regions because neighbouring context is lost at patch borders, and the uncertainty analysis was run at 256x256 because of computational constraints. The PAIP 2019 and CAMELYON uncertainty analyses are placed in a supplementary section.

Patch overlap with 50 percent stride improves heatmap smoothness but increases inference time by a factor of 4.

Open-source application

The framework and its documentation are released through GitHub and PyPi. An open-source application runs the segmentation algorithm on whole slide images and computes the uncertainties, and its modular structure lets researchers add their own pipelines or use the segmentation through an API. The slide viewer is built on OpenSlide and OpenSeadragon.

Paper info

Authors
Mahendra Khened, Avinash Kori, Haran Rajkumar, Balaji Srinivasan, Ganapathy Krishnamurthi
Venue
arXiv · Preprint
First published
2020-1-1
Added
2026-11-6
Updated
2020-11-18
Version
v2
arXiv
2001.00258
Category
eess.IV · cs.CV · cs.LG · q-bio.TO
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Histopathology tissue analysis is considered the gold standard in cancer diagnosis and prognosis. Given the large size of these images and the increase in the number of potential cancer cases, an automated solution as an aid to histopathologists is highly desirable. In the recent past, deep learning-based techniques have provided state of the art results in a wide variety of image analysis tasks, including analysis of digitized slides. However, the size of images and variability in histopathology tasks makes it a challenge to develop an integrated framework for histopathology image analysis. We propose a deep learning-based framework for histopathology tissue analysis. We demonstrate the generalizability of our framework, including training and inference, on several open-source datasets, which include CAMELYON (breast cancer metastases), DigestPath (colon cancer), and PAIP (liver cancer) datasets. We discuss multiple types of uncertainties pertaining to data and model, namely aleatoric and epistemic, respectively. Simultaneously, we demonstrate our model generalization across different data distribution by evaluating some samples on TCGA data. On CAMELYON16 test data (n=139) for the task of lesion detection, the FROC score achieved was 0.86 and in the CAMELYON17 test-data (n=500) for the task of pN-staging the Cohen's kappa score achieved was 0.9090 (third in the open leaderboard). On DigestPath test data (n=212) for the task of tumor segmentation, a Dice score of 0.782 was achieved (fourth in the challenge). On PAIP test data (n=40) for the task of viable tumor segmentation, a Jaccard Index of 0.75 (third in the challenge) was achieved, and for viable tumor burden, a score of 0.633 was achieved (second in the challenge). Our entire framework and related documentation are freely available at GitHub and PyPi.

Quote from the paper

Mahendra Khened, Avinash Kori, Haran Rajkumar, Balaji Srinivasan, Ganapathy Krishnamurthi (2020). A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis. arXiv:2001.00258v2. https://arxiv.org/abs/2001.00258v2

BibTeX
@misc{khened2020generalized,
  title = {{A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis}},
  author = {Mahendra Khened and Avinash Kori and Haran Rajkumar and Balaji Srinivasan and Ganapathy Krishnamurthi},
  year = {2020},
  eprint = {2001.00258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.00258v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up