Inferensys

Glossary

Image Quality Control

An automated pre-processing pipeline that detects artifacts like tissue folds, pen marks, air bubbles, and out-of-focus regions to exclude non-diagnostic image content before analysis.
Control room desk with laptops and a large orchestration network display.
AUTOMATED PRE-PROCESSING PIPELINE

What is Image Quality Control?

An automated pre-processing pipeline that detects artifacts like tissue folds, pen marks, air bubbles, and out-of-focus regions to exclude non-diagnostic image content before analysis.

Image Quality Control (QC) is an automated computational pipeline that systematically detects and excludes non-diagnostic artifacts—such as tissue folds, pen marks, air bubbles, and out-of-focus regions—from whole-slide images (WSIs) before downstream analysis. This critical pre-processing step ensures that only viable tissue regions are passed to diagnostic or prognostic deep learning models, preventing corrupted data from skewing quantitative biomarker extraction.

Modern QC systems employ convolutional neural networks and vision transformers trained to classify image patches as either diagnostically valid or artifact-containing. By operating as a gatekeeper at the beginning of a computational pathology workflow, robust QC directly improves the reliability of subsequent tasks like tumor-infiltrating lymphocyte quantification, Ki-67 index calculation, and HER2 scoring, reducing false negatives caused by obscured tissue regions.

AUTOMATED ARTIFACT DETECTION

Key Characteristics of Image Quality Control

Automated quality control pipelines systematically detect and exclude non-diagnostic image content before analysis, ensuring only viable tissue regions are passed to downstream AI models.

01

Tissue Fold Detection

Identifies regions where tissue sections have folded over during slide preparation, creating dense, hyperchromatic areas that obscure cellular morphology. Convolutional neural networks analyze texture patterns and sharp intensity transitions characteristic of folds.

  • Detects sharp gradient transitions at fold boundaries
  • Differentiates folds from genuine dense cellular regions
  • Excludes folded areas from downstream analysis masks
02

Pen Mark Artifact Removal

Locates and masks surgical inking and pathologist annotations that appear as high-intensity, saturated regions on digitized slides. These foreign ink deposits can be misinterpreted as positive staining in IHC analysis.

  • Color deconvolution separates ink from biological stains
  • Spectral analysis distinguishes pen pigments from tissue chromogens
  • Prevents false-positive biomarker quantification
03

Air Bubble Segmentation

Detects circular, out-of-focus artifacts caused by trapped air during coverslipping. Morphological operations combined with focus quality metrics identify these regions that lack tissue information entirely.

  • Circularity and edge characteristics distinguish bubbles from luminal spaces
  • Excluded from tissue area calculations to prevent dilution bias
  • Critical for accurate tumor-stroma ratio computation
04

Focus Quality Assessment

Quantifies image sharpness across the slide to flag out-of-focus regions where diagnostic interpretation is unreliable. Laplacian variance and frequency-domain analysis measure local blur severity.

  • Patch-level focus scores generate a quality heatmap
  • Threshold-based rejection of regions below diagnostic sharpness
  • Prevents AI models from learning from degraded visual features
05

Tissue Detection and Masking

Segments actual tissue regions from the glass background to constrain all subsequent analysis to biologically relevant areas. Otsu thresholding in HSV color space robustly separates tissue from empty slide background.

  • Reduces computational load by ignoring background pixels
  • Prevents background noise from contaminating feature extraction
  • Essential first step in any WSI processing pipeline
06

Blurry Region Exclusion

Systematically identifies and excludes image patches that fail to meet minimum sharpness thresholds due to z-stack acquisition errors or tissue thickness variation. Ensures only diagnostically interpretable content reaches pathologists and AI models.

  • Brenner gradient and Tenengrad algorithms quantify local focus
  • Adaptive thresholding accounts for tissue-dependent focus expectations
  • Integrated into real-time WSI scanning quality feedback loops
IMAGE QUALITY CONTROL

Frequently Asked Questions

Answers to common questions about automated artifact detection and pre-processing pipelines that ensure only diagnostic-quality tissue regions are passed to downstream analysis algorithms.

Image quality control (QC) is an automated pre-processing pipeline that detects and excludes non-diagnostic content from whole-slide images (WSIs) before computational analysis. The system scans gigapixel tissue images to identify artifacts such as tissue folds, air bubbles, pen marks, blur, and out-of-focus regions. By segmenting the slide into diagnostically valid and invalid regions, the QC module prevents corrupted data from contaminating downstream tasks like tumor detection, Ki-67 Index quantification, or Tumor-Infiltrating Lymphocyte (TIL) scoring. Modern implementations use convolutional neural networks trained on artifact-annotated datasets to classify patches at multiple magnifications, generating a binary tissue-validity mask that gates all subsequent analysis. This step is critical because a single blurred region in a Whole-Slide Image can produce false-negative predictions in cancer detection models, undermining diagnostic accuracy.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.