---
title: "Quantifying the effects of data augmentation and stain color"
description: "How stain color augmentation and normalization affect pathology classifiers, with multicenter evidence, practical trade-offs, and clear limits."
canonical: "https://research.elamur.ai/free/en/papers/tellez-2019-quantifying-effects-data-augmentation-stain/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/tellez-2019-quantifying-effects-data-augmentation-stain/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology

# Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology

Paper · 2019 · David Tellez, Geert J. S. Litjens, Péter Bándi et al.

**Authors:** [David Tellez](https://md.research.elamur.ai/free/en/authors/david-tellez/), [Geert J. S. Litjens](https://md.research.elamur.ai/free/en/authors/geert-j-s-litjens/), Péter Bándi, Wouter Bulten, John‐Melle Bokhorst, [Francesco Ciompi](https://md.research.elamur.ai/free/en/authors/francesco-ciompi/) and [Jeroen A. W. M. van der Laak](https://md.research.elamur.ai/free/en/authors/jeroen-a-w-m-van-der-laak/) · **Year:** 2019 · **Venue:** Medical Image Analysis · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**625** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2969278648) · Medical Image Analysis · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [DOI 10.1016/j.media.2019.101544](https://doi.org/10.1016/j.media.2019.101544)
- [arXiv 1902.06543](https://arxiv.org/abs/1902.06543)
- [OpenAlex](https://openalex.org/W2969278648)

## Deep dive: Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology

How stain color augmentation and normalization affect pathology classifiers, with multicenter evidence, practical trade-offs, and clear limits. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A tissue image can look different depending on where it was prepared. The underlying biological structures may be similar, yet differences in staining can change the colors that a computational system receives. A classifier trained on images from one pathology laboratory can therefore encounter unfamiliar appearances when it is applied elsewhere. This paper asks how best to prepare such classifiers for that change: broaden the colors seen during training, standardize images toward a common appearance, or combine the two approaches.

The authors compare stain color augmentation and stain color normalization across histopathology data covering 4 organs and 9 laboratories. Augmentation creates artificial color variations during training so that a classifier has less reason to depend on a laboratory’s particular staining habits. Normalization transforms images toward a reference appearance, attempting to make training and deployment inputs more alike. The evaluation covers mitotic figures in breast tissue, tumor metastases in lymph nodes, epithelial tissue in the prostate, and tissue categories in colorectal cancer. For each task, classifier training uses images from Radboud University Medical Centre, while separate datasets test performance under different staining conditions.

The strongest and most consistent finding concerns augmentation. Perturbing stain colors substantially improves classification on unfamiliar datasets, including when normalization is already present. Changes to brightness and contrast alone do not provide the same benefit. The tested color transformations operate either in hue–saturation–value space or in a representation designed around histological stains. Neither approach has a substantial overall advantage, and the tested light and strong settings perform similarly, with a small preference toward light augmentation in the aggregate observations. Across organs, the reported average loss on internal test images remains less than 1%.

Normalization produces a more qualified result. The highest overall classification performance comes from a configuration without it. Neural approaches to normalization perform well and make classification less sensitive to the chosen augmentation setting, but they add processing time. Classical normalization methods do not outperform the grayscale comparison in the overall assessment. Most importantly, normalization without suitable color augmentation remains inadequate in this benchmark. Giving images a more uniform appearance does not, on its own, establish reliable performance under unfamiliar staining.

The paper also introduces a neural normalization procedure. A network receives strongly recolored tissue patches and learns to reconstruct their original appearance, using an auxiliary collection without classification labels. This turns normalization into an image reconstruction problem whose supervision comes from the images themselves. The practical recommendation is to prioritize stain color augmentation, consider neural normalization when greater consistency across augmentation settings is useful, and weigh that extra preprocessing against its computational cost. These conclusions are supported for patch classification; broader claims about segmentation, individual object detection, or complete slide analysis remain outside the experiments.

### Ideas worth borrowing

Treat acquisition conditions as an experimental variable. The paper makes laboratory origin part of the evaluation design instead of treating every tissue patch as interchangeable. Training on one laboratory and testing under other staining conditions exposes a failure that an internal split could leave mostly hidden. The reusable idea is to identify which part of data collection might change in use, then reserve genuinely different sources for testing. This is useful whenever a system can learn regularities tied to an institution, instrument, collection process, or preparation protocol rather than to the intended target.

Separate expanding experience from standardizing inputs. Augmentation and normalization address the same difficulty through different mechanisms. Augmentation broadens what the classifier encounters; normalization attempts to reduce differences before classification. Keeping those mechanisms separate makes their combination experimentally meaningful. A researcher can ask whether standardization adds value after variability has already been introduced, instead of assuming that both steps are automatically necessary. The same reasoning applies to preprocessing pipelines in which several plausible remedies target a shared source of error.

Generate reconstruction targets from existing data. The proposed normalization network learns from an altered image paired with its original version. Classification labels are unnecessary for that auxiliary task because the target image already exists. This is a useful way to exploit an unlabeled collection when a reversible or partly reversible nuisance transformation can be simulated. The crucial qualification is that the artificial corruption must support the intended learning problem. A network that removes a chosen transformation has demonstrated competence on that transformation; transfer to real acquisition differences still requires independent evaluation.

Test information removal against learned tolerance. Grayscale conversion offers a revealing comparison because it suppresses much of the disputed color information. If color were only a nuisance, removing it might be sufficient. Instead, the results indicate that retaining color and varying it during training can outperform discarding it. The general lesson is to distinguish a feature’s unstable expression from its possible usefulness. A system may benefit from learning which aspects of a signal remain informative under variation, instead of deleting the entire signal at the outset.

Evaluate interactions between pipeline components. A normalization method can behave differently depending on the augmentation used with it. The paper therefore evaluates combinations rather than assigning each technique a score in isolation. This helps identify both redundancy and dependence: a component may improve robustness to another setting without producing the best standalone result. The idea transfers to any pipeline in which preprocessing changes what downstream learning can exploit. A fair comparison should keep the downstream procedure stable while varying the components whose relationship is under investigation.

Measure operational cost alongside predictive performance. Normalization is a computation performed on image data, and whole-slide images make that cost consequential. The authors measure the additional processing time instead of treating preprocessing as free. This changes how the classification findings should guide engineering choices: a step that offers limited predictive benefit may still impose a substantial throughput burden. The reusable principle is to evaluate an intervention at the scale where it will run, while distinguishing a measurement of one component from the performance of the complete application.

### How Mova uses it

For Mova, the small transparent language system implemented in Rust, the useful connection is methodological. Tissue staining and language processing are different settings, and the paper does not establish that a particular text transformation would have the same effects as a color transformation. What it offers is a disciplined way to ask whether apparent competence depends on incidental properties of the input.

A possible Mova application would separate information that should determine an answer from presentation details that should not. If a task permits changes to surface form without changing its intended interpretation, those changes could become controlled tests. Mova could then compare a procedure trained on a narrow presentation style with one exposed to a broader range. This would borrow the paper’s experimental logic: make the suspected source of fragility explicit, perturb it deliberately, and evaluate on independently different inputs.

A second possible application concerns normalization. A transparent language pipeline may contain rules that place different written forms into a common representation. The paper suggests testing that choice alongside training-time variation rather than assuming that standardization solves the underlying generalization problem. A normalization rule can make inputs easier to compare, but it can also remove distinctions that matter. The grayscale comparison is especially useful as an analogy: eliminating a troublesome signal may also eliminate useful evidence carried by that signal.

For Mova, a concrete experiment could therefore compare a shared task procedure under several input treatments. One treatment would preserve the original input. Another would apply a documented normalization rule. A further treatment would expose the learning procedure to justified variations. A combined treatment would do both. The relevant question would be whether each treatment improves performance on a held-out source of variation, and whether that improvement comes with lost distinctions or extra processing.

The reconstruction idea is also potentially reusable, with care. If Mova had an auxiliary task in which a deliberately altered representation could be mapped back to an existing target, it could obtain training pairs without manually assigning a new label to every example. However, language changes can alter meaning, so there is no automatic counterpart to the paper’s color perturbations. Any such experiment would need an explicit account of what the transformation preserves and why reconstructing the target helps the eventual task.

These are proposed uses of the paper’s reasoning. No implemented Mova feature, completed experiment, or measured benefit follows from this connection. The immediate contribution is a research pattern: distinguish nuisance variation from task information, compare tolerance with normalization, retain an untreated baseline, and test under conditions that differ from training. Mova’s emphasis on transparency would make the assumptions behind each transformation especially important to document.

### The problem and its context

#### Why the same kind of tissue can look different

Computational pathology develops [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) methods for examining digitized tissue. The input is often a whole-slide image: a detailed scan of a thin tissue section. Before scanning, the tissue is stained so that its structures become visible. In the setting studied here, the staining uses hematoxylin and eosin, commonly abbreviated H&E.

These dyes contribute different visual information. Hematoxylin makes cell nuclei appear blue, while eosin produces pink shades in structures including cytoplasm, connective tissue, and muscle. A classifier can use the resulting image to recognize tissue organization or identify particular cells. However, the final color distribution also reflects how the tissue was processed. Changes along the staining procedure can make slides from different laboratories look different even when they contain comparable biological material.

This creates a difficult relationship between useful evidence and incidental appearance. Color helps reveal the structures of interest, but a laboratory-specific color pattern can become an unreliable cue. A classifier may perform well when the test material resembles its training material and then deteriorate when staining changes. The problem is therefore broader than making images visually consistent. It concerns which regularities the learning procedure relies on and whether those regularities survive a change of laboratory.

The paper focuses on convolutional neural networks, or CNNs. These networks process images through learned filters and produce predictions from the resulting representations. The authors describe inter-laboratory staining differences as a problem even for contemporary CNN approaches. Learning image features does not automatically make a classifier insensitive to changes in how the images were produced.

#### Augmentation as preparation for variation

Earlier work described in the paper uses data augmentation to simulate appearances that the training collection does not fully represent. During training, the same underlying image can be presented in altered forms. If the transformations preserve the classification target, this gives the learner more varied evidence about what should count as the same category.

The authors distinguish morphological transformations from color transformations. Morphological augmentation changes properties such as orientation, size, texture, or sharpness. Rotations and reflections are simple examples. Scaling changes apparent size. Elastic deformation changes shape. Added noise and blur simulate aspects of image acquisition, including reduced signal quality or imperfect focus.

Color augmentation has a different purpose. It changes image appearance while aiming to retain the spatial structures that support the label. Earlier approaches include adjustments to brightness, contrast, and hue. The paper also describes transformations designed around histological staining, such as independently perturbing stain channels, and approaches that alter principal components of pixel values.

The attraction of augmentation is that it leaves the eventual input pipeline relatively direct. A classifier learns to tolerate variability during training and can then receive an image without a separate procedure that forces its colors towards a reference. The difficulty is deciding what variations to create. An augmentation must cover relevant changes while preserving the evidence required for classification.

#### Normalization as reduction of variation

Stain normalization approaches the problem from the opposite direction. Instead of teaching a classifier to handle a broad range of appearances, it attempts to make image appearances more alike. Training and test images are transformed towards a chosen reference color distribution.

The paper describes several earlier families of normalization. Some use a mathematical representation of color to estimate the contribution of the underlying stains. Others incorporate tissue morphology, identifying structures associated with particular dyes to improve the estimated transformation. Further approaches use neural image generation or treat a laboratory’s characteristic colors as a style that can be transferred.

These approaches make an appealing promise: if the nuisance difference is removed before classification, the classifier can concentrate on the tissue. However, the authors emphasize that normalization is imperfect. A method can produce a result that does not match the intended reference appearance. A transformation may also interfere with features that the classifier would otherwise use.

This makes visual plausibility an insufficient criterion. A normalized patch can look reasonable without improving classification on unfamiliar data. Conversely, an unnormalized image may remain useful if the classifier has learned appropriate tolerance. The paper therefore evaluates normalization by its downstream consequences rather than treating a standardized appearance as an endpoint in itself.

#### Why a broader comparison was needed

According to the authors, previous studies commonly examined particular applications rather than systematically measuring the relationship between augmentation, normalization, and classification performance. Both techniques were widely used, but their relative necessity and their interaction remained insufficiently quantified.

The study addresses that gap by examining several tissue tasks under a shared experimental protocol. Its contribution is not simply another normalization method. It also asks whether an added normalization step is justified once color augmentation is present, whether histology-specific perturbations outperform more general color changes, and whether the strength of those changes matters.

The choice to train on a single institution is central. If training already included the full range of test appearances, the experiment would answer a different question. Here, the classifier must operate beyond the staining distribution on which its parameters were learned. External datasets therefore serve as a deliberate test of generalization under acquisition differences.

The study also includes a useful complication: the additional prostate dataset from Radboudumc has different staining and scanning conditions despite sharing the institutional origin of the training data. That makes clear that a center name is a practical indicator of variation instead of a complete explanation of it. Conditions can change within a laboratory, just as they can differ between laboratories.

The broader scientific question is whether robustness is better achieved by broadening exposure, reducing apparent variation, or using both. The paper answers that question empirically within a defined patch-classification setting, with enough diversity to challenge conclusions based on a single tissue application.

### The method, step by step

The experimental design has two connected parts. The first compares classifiers trained with different combinations of augmentation and normalization. The second develops a normalization network whose training signal comes from recovering original images after artificial recoloring. Keeping these parts distinct helps explain both the benchmark and the proposed technique.

Comparing stain handling under laboratory changes The steps in order.

#### Define the color-distribution problem

The authors describe training images as having a relatively homogeneous stain distribution. Test images are expected to span a wider range of appearances. Their notation represents augmentation as a transformation from the training distribution to a broader distribution:

```
φ_train ─f→ φ_augment
```

Here, φ_train denotes the color distribution associated with training images. The function f applies augmentation. The resulting distribution, φ_augment, represents the appearances generated by those transformations. The arrow expresses the intended effect of preprocessing instead of a classification prediction.

The desired coverage condition is:

```
(φ_augment ⊇ φ_train) ∧ (φ_augment ⊇ φ_test)
```

The symbol φ_test denotes the test color distribution. The relation ⊇ means that the augmented distribution should contain the relevant appearances of the distribution on its right. The symbol ∧ joins the conditions: augmentation should retain coverage of training appearances while also extending to the test appearances.

This formulation states the purpose of augmentation clearly. The classifier should encounter enough variation during training that a future staining pattern does not place it outside the range of appearances it has learned to handle. In practice, however, this is a design objective. The study does not prove that a finite collection of artificial transformations covers every real staining process.

Normalization aims to make the distributions converge toward a common reference:

```
(φ_train ─g→ φ_normal) ∧ (φ_test ─g→ φ_normal)
```

The function g is the normalization procedure. The symbol φ_normal denotes the reference color distribution. Both arrows describe transformations towards that reference, and ∧ indicates that the desired mapping applies to training and test images.

The distinction is operationally important. Augmentation introduces variation during learning. Normalization changes image appearance so that differences should become smaller before classification. Their effects can complement each other, but the formulation alone does not establish that either mapping works perfectly.

#### Prepare patches and keep source conditions separate

All classification experiments use RGB image patches with dimensions of 128x128 pixels. The patches come from annotated tissue regions, so each classification task has an existing target attached to the relevant image content.

For every task, the training source is Radboudumc. Its slides are divided into training, validation, and internal test subsets. The training subset supplies parameter updates. The validation subset supports decisions made during training, including which saved network parameters to retain. The internal test subset evaluates performance on images whose source conditions are closer to those used for learning.

Other datasets test unfamiliar appearances. Their images do not become classification training examples. This separation gives the external evaluations their meaning: they assess what happens after a classifier trained on one source encounters another collection, rather than what happens when the training collection has already incorporated those conditions.

The authors also create an auxiliary multi-organ collection. Patches from the Radboudumc datasets are combined in a randomized, balanced manner, and their task labels are removed. The retained collection contains 500K patches. Its purpose is to train normalization, so it needs tissue images but does not require labels identifying mitoses, metastases, epithelial tissue, or colorectal categories.

#### Build augmentation settings with increasing scope

The simplest setting, Basic, uses 90 degree rotations and horizontal or vertical reflections. These operations vary orientation while retaining the tissue content relevant to the patch label.

The Morphology setting extends that foundation. It adds scaling, elastic deformation, Gaussian noise, and Gaussian blur. These changes alter size, shape, texture, or image quality. The paper uses blur to represent an out-of-focus appearance and noise to vary the signal-to-noise relationship.

Brightness and contrast augmentation, abbreviated BC, adds changes to overall brightness and contrast on top of the morphological transformations. It therefore includes more than a standalone brightness adjustment. This nesting matters when interpreting the controlled comparisons: moving from one category to another introduces a group of transformations rather than changing every component independently.

The HSV settings extend BC with changes in hue and saturation. HSV stands for hue, saturation, and value, a representation that separates aspects of color appearance. The study tests light and strong configurations whose perturbations create different degrees of color variation.

The HED settings also extend BC but use stain-oriented transformations. HED refers to a color representation named for hematoxylin, eosin, and DAB. In the H&E application described by the authors, color deconvolution first separates stain-related channels using a fixed matrix. The channels are then perturbed, and the transformed result is converted back to RGB.

The paper does not assume that the more specialized representation must win. It compares HED against HSV directly through downstream classification. This makes it possible to ask whether a histology-oriented transformation offers a measurable advantage over a more general manipulation of color appearance.

#### Choose augmentation strengths

During training, transformation parameters are sampled randomly from specified ranges. The authors choose those ranges manually by inspecting the resulting images. This is a practical design choice, but it also means that the ranges are engineered settings rather than quantities inferred automatically from the external laboratories.

Scaling uses the interval [0.8, 1.2]. For elastic deformation, the reported α interval is [80, 120], while σ ranges over [9.0, 11.0]. Here, α and σ are the deformation parameters named by the paper. Their values determine the configured perturbation instead of a measured property of the tissue.

Gaussian noise uses σ within [0,0.1], and Gaussian blur also uses σ within [0,0.1]. Though the same symbol appears, it belongs to the respective operation in each case. Brightness has an intensity-ratio range of [0.65, 1.35], and contrast uses [0.5, 1.5].

For HSV-light, the hue and saturation intensity-ratio interval is [-0.1, 0.1]. HSV-strong uses [-1, 1]. The HED-light configuration uses [-0.05, 0.05], while HED-strong uses [-0.2, 0.2] for the HED channels.

These settings define the tested alternatives. The distinction between light and strong is therefore specific to the implementation and ranges in this experiment. It should not be treated as a universal scale shared by all augmentation procedures.

#### Compare several normalization strategies

Identity leaves the image unchanged. It is an essential baseline because it tests whether a normalization stage is necessary at all. Without that baseline, a comparison could identify the best normalizer while overlooking the possibility that normalization adds little value.

Grayscale converts RGB images into a representation that removes most color information. The motivation is that morphology may carry much of the signal needed for tissue classification. Its role is also diagnostic: it tests whether suppressing color altogether is preferable to retaining laboratory-dependent color variation.

The deconvolution-based approach follows Macenko and colleagues. It assumes that hematoxylin and eosin contributions can be separated linearly in optical-density space. Singular value decomposition identifies the dominant directions, allowing pixel values to be projected into a plane used to estimate stain vectors. Those vectors support decomposition into stain components and subsequent normalization.

The LUT-based approach follows Bejnordi and colleagues and uses tissue morphology to characterize staining. It detects nuclei, estimates stain-related distributions for a reference slide and a target slide, and matches those distributions. A look-up table (LUT) stores the resulting mapping between colors and is then applied to transform the target image.

The style-based comparison follows Bug and colleagues. It uses feature-aware normalization to shift and scale intermediate representations according to features extracted from the image. The feature extractor has been pretrained on ImageNet, while the remaining network is trained through reconstruction involving PCA-augmented pathology images. The authors use the original implementation and retrain it on their multi-organ collection.

The final approach is the authors’ reconstruction-based normalization network. It is evaluated alongside these alternatives rather than replacing the comparison with a demonstration of its own outputs.

#### Learn normalization by removing artificial recoloring

The proposed network receives a strongly recolored patch and predicts the patch’s original appearance. Its target is available automatically because the augmentation was applied to an existing image. No tissue-class label is required to construct this training pair.

The intended mapping is:

```
φ_augment ─G→ φ_normal
```

The symbol G denotes the neural network used for normalization. Its input appearances come from φ_augment, the distribution produced by color augmentation. Its outputs should follow φ_normal, the reference appearance represented by the original training images.

The authors explicitly recognize that augmentation is not generally invertible. Different source colors and transformation choices can lead to ambiguous altered appearances. The network therefore learns a partial many-to-one mapping instead of an exact mathematical inverse of every possible transformation.

For this auxiliary training, augmentation includes only color changes. It excludes Basic, Morphology, and BC transformations. Hue, saturation, and value channel ratios use [-1, 1], producing very strong changes that can sometimes collapse color information into a grayscale-like appearance.

That choice makes the reconstruction task more than a small numerical correction. When the input no longer retains an unambiguous color cue, the network may need to use tissue structure to produce a plausible original appearance. The authors hypothesize that it learns associations between structures and their usual colors. This is an interpretation of how the task may be solved, rather than a direct measurement of internal reasoning.

#### Preserve spatial structure in the normalization network

The architecture is inspired by U-Net. Its downward path uses 5 strided-convolution layers, with filter counts of 32, 64, 128, 256 and 512. The filters are 3x3, and the stride is 2. Batch normalization and leaky-ReLU activations accompany these operations.

The upward path also contains 5 layers. Each combines nearest-neighbor upsampling with convolution. The filter counts are 256, 128, 64, 32 and 3, again using 3x3 filters. Most upward operations include batch normalization and leaky-ReLU activation. The final convolution instead uses tanh and omits batch normalization.

Long skip connections carry information between corresponding parts of the downward and upward paths. Their purpose is important for this application: the network should change color while preserving tissue geometry. Direct routes for spatial information reduce the need to reconstruct every structural detail from a compressed representation.

The authors discuss the tendency of reconstruction systems trained with mean squared error to produce averaged outputs. They argue that their skip connections help avoid this problem because structural information remains available to the upward path. Their reported reconstructions do not exhibit visible blur in practice. This observation supports the architecture choice, though it is not a comprehensive quantitative test of structural preservation.

#### Train normalization and classification with separate objectives

The normalization network minimizes mean squared error between its output and the original image. It uses Adam optimization with mini-batches containing 64 samples. L2 regularization has a factor of 1e-6.

The learning rate begins at 1e-2. When validation loss fails to improve for 4 consecutive epochs, the rate is reduced by a factor of 10, continuing until 1e-5. The retained parameters are those associated with the lowest validation loss.

The patch classifiers have a separate architecture and objective. Their convolutional stack contains 9 layers with 3x3 filters. The filter-count sequence is 32, 64, 64, 128, 128, 256, 256, 512 and 512. Even-numbered layers use stride 2, and the stack includes batch normalization and leaky-ReLU activations.

After the convolutional stack, global average pooling summarizes the spatial representations. The classifier then applies 50% dropout and a dense layer with 512 units, followed by the final prediction layer. Binary tasks use 2 output units, while colorectal tissue classification uses 9. Softmax converts the outputs into class scores.

Classifier training minimizes cross-entropy. It uses Adam, class-balanced mini-batches of 64 samples, and the same stated learning-rate schedule and L2 factor as the normalization network. Holding this training protocol constant makes changes in stain handling easier to interpret.

### Experiments and results

#### Breast mitosis classification

The mitosis task asks whether a patch contains a mitotic figure at its center. A mitotic figure is a cell undergoing division, so the positive class depends on a particular cellular structure rather than a broad tissue region.

The internal collection, mitosis-rumc, comes from 14 H&E slides from patients with triple negative breast cancer. The slide allocation is training (6), validation (4), and internal test (4). The collection contains 1M patches in total.

The unfamiliar-data evaluation uses mitosis-tupac, drawn from the TUPAC Challenge. It contains 50 invasive breast cancer cases with manually annotated mitotic figures, from which the authors extract 300K patches. This comparison tests whether a classifier learned from the Radboudumc source can recognize the same target under the appearance conditions represented in the challenge data.

The paper evaluates this as patch classification. Although the scientific target is a mitotic figure, the reported experiment does not independently establish the performance of a complete detection system that searches a slide and localizes every such cell.

#### Lymph-node metastasis classification

The lymph task asks whether a patch contains metastatic tumor cells. The material comes from the Camelyon17 Challenge, whose relevant cohort contains 50 extensively annotated slides from 5 centers, with 10 slides associated with each center.

The Radboudumc portion supplies lymph-rumc. Its slides are allocated as training (4), validation (3), and internal test (3), producing 300K patches in total. The remaining 40 slides supply unfamiliar-source evaluation material.

From those remaining slides, the authors extract 1.2M patches and construct center-specific test datasets. The names are lymph-umcu, lymph-cwh, lymph-rh and lymph-lpe. Keeping the datasets separate allows the ranking procedure to consider performance across distinct sources rather than hiding all laboratory differences inside a single pooled score.

This task provides particularly direct evidence about changes between institutions because the same overall application is evaluated across several centers. At the same time, the slides remain the biological source of the patches. A large patch count should not be interpreted as an equally large collection of independent patients or laboratory procedures.

#### Prostate epithelium classification

The prostate task identifies patches containing epithelial tissue. Its internal collection uses 25 Radboudumc slides, divided into training (13), validation (6), and internal test (6). The authors extract 250K patches and call the dataset prostate-rumc.

An additional Radboudumc collection deliberately changes the acquisition conditions. Named prostate-rumc2, it contains 10 slides with different staining and scanning characteristics and supplies 75K patches. Its inclusion helps separate the underlying appearance problem from a simple assumption that different conditions always require different institutions.

The other test collection, prostate-cedar, uses publicly available images from 20 prostatectomy slides with epithelial annotations. The authors extract 65K patches from this material.

Together, these tests expose the classifier to both an altered acquisition process within the original institution and a separate image collection. The results therefore bear on robustness to appearance changes more broadly than a center label alone would suggest.

#### Colorectal tissue classification

The colorectal task differs from the binary tasks because the classifier distinguishes among 9 tissue categories. These categories span malignant tissue, supporting structures, normal glands, and several other tissue or material appearances.

The internal dataset, crc-rumc, uses 54 slides. The split is training (24), validation (15), and internal test (15), with 450K patches extracted overall. The class annotations include tumor, stroma, muscle, and lymphocytes. The remaining categories cover healthy glands, fat, blood cells, necrosis with debris, and mucus.

The crc-labpon test collection contains 74 slides from rectal carcinoma patients and uses the same category scheme. It supplies 35K patches. The other test collection, crc-heidelberg, contains 4K patches derived from publicly available colorectal material.

The Heidelberg annotations cover 6 tissue types instead of reproducing the full internal label scheme separately. Some material categories are combined. This makes the task a useful test of classification under a different collection, but it also means that the colorectal evaluations should not be read as perfectly interchangeable datasets with identical annotation structure.

#### Experimental scale and evaluation

The authors run 152 experimental configurations. Each is repeated 5 times with different random parameter initializations, producing 760 trained classifiers. For grayscale inputs, the augmentation comparison is restricted to Basic, Morphology, and BC because hue- or stain-channel perturbations are not part of that grayscale setup.

Performance is measured with area under the receiver-operating characteristic curve, abbreviated AUC. The receiver-operating characteristic tracks the relationship between detecting positives and accepting false positives as the decision threshold changes. Its area summarizes how well the scores separate positive from negative examples across thresholds.

For the multiclass task, the authors evaluate each label against the remaining labels and then take an unweighted average of the label-specific AUC values. Each label therefore contributes equally to that summary rather than receiving a weight proportional to its frequency.

Results are summarized across the repeated runs using a mean and standard deviation. These repetitions assess sensitivity to random initialization within the specified procedure. They do not represent retraining on newly sampled laboratories or replacing the entire slide collection.

The global comparison uses ranks. Within each test dataset, configurations are ordered according to AUC. Those ranking scores are then averaged across datasets. The overall ranking therefore summarizes consistency of relative standing; it is not an average AUC and does not directly state the size of a clinical performance gain.

The results discussion reports comparative findings without supplying individual dataset-specific AUC values in its narrative. Those findings should retain that precision. The evidence supports statements about which choices perform better in the benchmark, but it does not justify inventing numerical classification margins.

#### What improves classification

Color augmentation is the decisive ingredient in the reported results. The leading configurations include HSV or HED transformations. BC, although better than simpler non-color configurations in most comparisons, does not reach the same level of performance.

This distinction matters because brightness and contrast changes can look like substantial image variation. The experiment shows that they do not substitute for the tested changes in stain color. The relevant training diversity must include changes to the color relationships that differ across the test collections.

HSV and HED show no substantial overall performance separation. The same is broadly true of light and strong augmentation, though the authors observe a slight advantage for light settings. A specialized stain-space transformation is therefore not shown to be essential for strong results in this benchmark.

The authors also examine performance on internal test data. Stronger augmentation could reduce accuracy on familiar appearances by forcing the classifier to accommodate a wider input range. Here, the average internal performance reduction across organs is reported as less than 1%. That finding supports the practical usefulness of augmentation while remaining an aggregate statement rather than a guarantee for every task and setting.

#### What normalization adds

The highest overall classification result uses Identity normalization, meaning that the images are not normalized. This challenges the assumption that a stain-standardization step must precede successful classification across laboratories.

The finding does not make all normalization behavior irrelevant. Neural normalization produces more stable classification across augmentation choices. The authors specifically contrast a decline for Identity with HSV-light against the more consistently high performance associated with Network normalization.

The proposed Network approach and the Style comparison show no substantial performance difference overall. Both support the usefulness of neural image translation as a normalization mechanism, but the benchmark does not establish a clear classification advantage for the newly proposed procedure over that neural comparison.

The classical LUT and deconvolution procedures do not outperform Grayscale in the overall assessment. The authors suggest that these transformations may interfere with useful image features. That proposed explanation is plausible within the observed pattern, but the experiment does not isolate exactly which features are lost or altered.

Most importantly, normalization alone remains insufficient. Without color augmentation, the tested normalization techniques produce poor classification relative to the stronger augmented alternatives. Matching appearance approximately does not remove the need to train against residual variation.

#### Processing time at whole-slide scale

The authors measure additional normalization time for an RGB slide of 50000×50000 pixels. The measurement excludes input/output delays, so it concerns the normalization computation instead of the complete workflow.

Normalization time for a 50000×50000 RGB slide The proposed network is close to LUT processing time, while the other tested methods take longer.

**The numbers**

| System or setting | minutes |
| --- | --- |
| LUT | 21.8 |
| Network (this paper) | 26.0 |
| Deconvolution | 111.2 |
| Style | 217.8 |

LUT is the fastest normalization method in this timing comparison. The proposed network follows closely, while deconvolution and Style require longer processing. The star identifies the authors’ proposed approach; it does not indicate that it wins every metric.

These timings help explain the recommendation to consider omitting normalization when resources are constrained. A preprocessing stage must justify its cost through the benefit it brings to the actual task. Here, the best overall classification setting already demonstrates that strong performance is possible without that stage.

### What the ablations show

The paper’s main controlled evidence comes from combinations of augmentation categories and normalization procedures. This is a substantial comparison, but it is not a component-by-component removal study of every transformation. The distinction matters when assigning causes to an observed improvement.

#### Color changes contribute beyond morphology

The progression from Basic to Morphology to BC helps establish that increasingly varied training images can improve classification. More importantly, adding HSV or HED color changes improves results beyond BC. Because those color settings extend the preceding categories, the comparison identifies the additional contribution of the tested color perturbations within that training recipe.

This supports the authors’ interpretation that stain-related color variation is a major source of the external performance problem. Altering shape, orientation, sharpness, and brightness does not reproduce the benefit of explicitly changing color relationships.

The experiment does not establish that morphology is irrelevant. Morphological transformations remain part of the successful recipes. What it shows is that they do not, by themselves, account for the strongest performance under these staining differences.

#### Histology-specific color space is not essential here

HED uses a representation motivated by the dyes and their separation, whereas HSV provides a more general description of color. A substantial advantage for HED would have supported the need for that stain-specific construction.

Instead, the paper finds broadly similar classification performance. This suggests that, for these tasks and settings, exposing the classifier to meaningful color variation matters more than choosing between these particular representations.

The result has a useful engineering implication. A more specialized transformation should earn its added complexity through evidence. However, the comparison is limited to the implementations tested. It does not establish that every general color transformation is equivalent to every stain-aware method.

#### Intensity matters through its interaction with normalization

The light and strong variants produce similar aggregate performance, with a small preference toward light augmentation in the reported observations. That could suggest that exact intensity tuning is less important than ensuring that color variation is present at all.

The normalization interaction makes the conclusion more specific. Simpler normalization setups are more sensitive to augmentation strength, and the authors recommend stronger augmentation when normalization is omitted. When normalization is enabled, they recommend the light setting.

These recommendations fit the distributional reasoning. If preprocessing reduces some color variation, the classifier may need less additional expansion during training. If the original image colors are preserved, stronger augmentation can provide the broader exposure needed to handle unfamiliar appearances.

The experiment does not map a continuous response curve over every possible intensity. It compares selected ranges. Its evidence therefore supports practical choices among those configurations rather than an exact universal optimum.

#### Grayscale separates nuisance from useful information

Grayscale is especially informative because it removes much of the color signal instead of teaching the classifier to handle its variation. Its middling performance indicates that color contains information worth preserving in these tasks.

At the same time, poorly controlled color can hurt. The weak results for configurations without suitable color augmentation suggest that a classifier can rely on unstable color cues. Thus, the evidence supports a distinction between useful color information and a training procedure that handles that information poorly.

This is why augmentation is more than a cosmetic modification. It changes the conditions under which the classifier can profit from color. The learner must continue to recognize the target even when the original laboratory’s color relationships are altered.

#### Normalization changes sensitivity without guaranteeing the best score

Identity establishes that normalization is not required for the best overall result. Neural normalization nevertheless makes the downstream classifier less sensitive to some augmentation choices.

Those are different achievements. Winning a global ranking concerns the best observed configuration. Remaining strong across several settings concerns robustness to pipeline choices. The paper offers evidence for both patterns and does not require them to belong to the same configuration.

A practitioner choosing a pipeline should therefore ask which uncertainty matters. If the chosen augmentation can be tuned and validated carefully, the unnormalized route is strongly supported. If consistency across augmentation choices has operational value, neural normalization may offer a useful benefit despite its cost.

#### Color-space plots support the intended mechanisms

The authors also inspect the datasets in HSV space. They calculate mean pixel intensity and standard deviation along hue and saturation, then visualize how the datasets are positioned under different processing choices.

Normalization tends to bring the dataset summaries closer together. Augmentation spreads the internal training appearances across a broader region. These observations agree with the intended roles of the techniques: one contracts differences, while the other expands exposure.

The plots provide a mechanism check, but they do not replace classification evaluation. Dataset-level summaries cannot fully describe tissue texture, local color relationships, or the evidence used for a particular decision. A tighter cluster in color space is therefore evidence of standardization, not proof that standardization improves the task.

#### Reconstruction design has a narrower analysis

The proposed normalizer includes long skip connections, and the authors explain why these should help preserve spatial detail during color reconstruction. They also report that the reconstructed images are not visibly blurred.

However, the study does not compare that architecture against a matched version with the skip connections removed. It therefore supports the performance of the complete proposed design, while the causal contribution of each architectural choice remains less directly established.

The same restraint applies to the hypothesis that the network associates structures with their expected colors. The reconstruction task makes that explanation plausible, especially under severe recoloring, but the paper does not directly probe the learned associations.

### Limitations

#### Limits the authors explicitly identify

The authors state that computational constraints restrict the study to patch-based classification. They do not evaluate segmentation, instance detection, or whole-slide classification as separate experimental modalities.

This matters because a patch classifier receives a prepared unit of analysis. A complete application may also need to select relevant regions, locate objects, combine predictions over space, or aggregate evidence across a slide. The paper’s results establish how stain handling affects the tested patch decisions, not the performance of every larger system that might use those decisions.

The authors believe the conclusions should extend because stain-related generalization problems have similar causes across those applications. That is an interpretation offered in the discussion. It remains broader than the direct experimental evidence.

They also state that transformations are grouped to keep the experiment manageable. Scaling, elastic deformation, blur, and noise are not each evaluated independently. Consequently, the study cannot assign an individual effect to every member of a successful augmentation category.

A further stated restriction concerns parameter ranges. The light and strong settings represent selected choices rather than an exhaustive search. The authors expect wider exploration would leave the central conclusions intact, but that expectation is not itself an experimental result.

#### External testing has a defined scope

A careful reader should distinguish a diverse benchmark from universal coverage. The study includes several organs and laboratories, which strengthens the evidence beyond a single application. It still covers a finite set of staining and acquisition conditions.

All classifier training originates from Radboudumc. This deliberately creates a useful generalization test, but it also means the conclusion is conditioned on that source. The experiment does not rotate every laboratory through the role of training institution or demonstrate that every possible training source would produce the same ranking.

The auxiliary normalization collection also comes from the internal organ datasets. The proposed network therefore learns a reference appearance from those images. It is not trained to recover an independently established universal stain standard.

The prostate-rumc2 collection reinforces another boundary. Different staining and scanning conditions can occur within the same institution. Conversely, an institutional label alone does not specify the precise acquisition differences a system encounters. The benchmark tests real collection differences without fully decomposing every underlying cause.

#### Patch counts do not describe every source of uncertainty

The datasets contain many patches, but patches are extracted from a smaller collection of slides. Nearby tissue regions can share preparation conditions and biological characteristics. The number of patches therefore describes the scale of image sampling without independently quantifying the diversity of patients, staining procedures, or instruments.

The repeated training runs address another kind of uncertainty. Different random initializations reveal how much a fixed procedure varies when trained again on the same experimental material. They do not directly measure the uncertainty associated with acquiring new slides from an unseen laboratory.

This distinction does not undermine the reported comparison. It clarifies which variation the standard deviations represent. A small variation across repeated initializations would not, by itself, guarantee equally stable performance across future acquisition sources.

#### Artificial variation is an approximation

The augmentation framework assumes that the generated appearances cover the relevant test variation. The empirical results show that the chosen transformations are useful on the tested datasets. They do not prove complete coverage of real staining changes.

The parameter ranges are selected by visual examination. That procedure brings practical judgment to the design, but it does not estimate a laboratory-specific generative process. An artificial recoloring can help even if it is only an approximation of the real nuisance.

The successful HSV comparison suggests that exact physical simulation is unnecessary for good results here. It does not establish that physical or chemical details never matter. A different task might depend on subtle staining information that is affected differently by a coarse transformation.

The same concern applies to reconstruction-based normalization. Learning to remove severe artificial recoloring does not guarantee correct behavior under every naturally occurring shift. Its usefulness must be judged through the downstream tests, which are the paper’s main evidence.

#### Reconstruction accuracy and diagnostic preservation differ

The normalization objective compares output pixels with an original image. A low reconstruction loss rewards agreement with that target, but it is not a direct measure of whether every diagnostically relevant structure has been preserved.

The architecture is designed to retain spatial information, and the authors report sharp reconstructions. Nonetheless, visual sharpness alone cannot establish that a transformation leaves every important cue intact. This is particularly relevant because the authors themselves suggest that some normalization procedures may hide useful features.

The paper evaluates downstream classification, which provides an important check. Yet that check concerns the selected labels and datasets. It does not establish that normalized images are interchangeable with originals for every pathology judgment.

The proposed interpretation that tissue morphology guides recoloring also needs this qualification. If an image-to-image procedure uses structural regularities to choose colors, its output reflects learned expectations. The study demonstrates useful behavior in its benchmark without fully characterizing what happens for unusual structures or appearances.

#### AUC and ranking answer particular questions

AUC measures discrimination across thresholds. It does not specify the operating threshold that a deployed application should use. The study therefore does not directly report how a chosen decision policy would balance missed targets against false alarms in a complete clinical workflow.

For colorectal classification, the unweighted average gives each evaluated label equal influence. This is a reasonable summary choice, but it does not make all possible class-frequency patterns or practical error costs equivalent.

The global ranking also has a specific interpretation. It averages relative positions across test datasets. That makes it useful for comparing consistent standing, but it does not show the absolute size of the performance gaps.

A configuration could improve its rank through small gains on several datasets, while another could have a different pattern of gains and losses. Without the individual AUC values, the narrative comparisons should not be turned into numerical margins or claims of a uniform benefit on every collection.

#### Processing measurements have boundaries

The normalization timings exclude input/output delays. They therefore do not represent the elapsed time of reading a slide, normalizing it, running classification, and storing the outputs.

They also concern a specified slide size and the tested implementations. The relative measurements are informative about preprocessing overhead in that setup, but they do not establish universal speeds for every implementation or deployment environment.

The engineering conclusion remains useful: normalization has a measurable cost and should not be assumed necessary. The precise operational choice still depends on the complete pipeline and on whether the added consistency is valuable for the intended application.

#### Recommendations should retain their conditions

The authors recommend always using the tested kind of color augmentation in this setting. The evidence strongly supports that recommendation across their classification tasks. A careful reader should preserve the domain and experimental conditions when carrying it elsewhere.

Similarly, the finding that the best configuration omits normalization does not prove that normalization is useless. Neural normalization offers a different benefit in the comparison: less sensitivity to augmentation choice. Its value depends partly on whether that property is worth the added computation.

The most defensible conclusion is therefore conditional and practical. For these H&E patch-classification tasks, suitable color augmentation is the priority. Normalization is an optional component whose contribution should be measured, and neural reconstruction is a credible way to implement it when that component is desired.

### What came after

[WILDS: A Benchmark of in-the-Wild Distribution Shifts](https://md.research.elamur.ai/free/en/papers/koh-2020-wilds-benchmark-wild-distribution-shifts/) is a later citing work, dated 2020. Its title places it in the broader study of performance changes when evaluation conditions differ from training conditions. That is the central difficulty made concrete by the pathology experiments: a classifier can encounter the same intended task through a different acquisition process.

The connection is especially useful for thinking about [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/). Tellez and colleagues make the source of variation visible through laboratory-separated testing, preserve an untreated baseline, and compare interventions under a shared training protocol. Those choices turn a general concern about unfamiliar data into an empirical question with identifiable conditions.

The citation relationship supports describing WILDS as part of the later research conversation around distribution shifts. It does not establish that WILDS adopted the proposed normalization network, reproduced the augmentation settings, or confirmed the same ordering of techniques. No such specific inheritance is warranted by the available account of that later work.

The lasting idea is the experimental distinction between making inputs more uniform and making a learner more tolerant. The pathology results show why those strategies should be compared rather than conflated. Broader training variation can be decisive even when standardization is available, while a visually persuasive preprocessing method still needs to demonstrate its value on the downstream task.

## Cite

Cite as David Tellez, Geert J. S. Litjens, Péter Bándi, Wouter Bulten, John‐Melle Bokhorst, Francesco Ciompi and Jeroen A. W. M. van der Laak. 2019. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. Medical Image Analysis.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.media.2019.101544](https://doi.org/10.1016/j.media.2019.101544) · [arXiv 1902.06543](https://arxiv.org/abs/1902.06543)

```bibtex
@inproceedings{tellez2019quantifying,
  title = {{Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology}},
  author = {David Tellez, Geert J. S. Litjens, Péter Bándi, Wouter Bulten, John‐Melle Bokhorst, Francesco Ciompi and Jeroen A. W. M. {van der Laak}},
  booktitle = {Medical Image Analysis},
  year = {2019},
  doi = {10.1016/j.media.2019.101544},
  eprint = {1902.06543},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.media.2019.101544}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
