Inferensys

Glossary

Intensity Discretization

Intensity discretization is the process of converting continuous voxel intensity values into a finite number of discrete gray levels, a critical preprocessing step for calculating texture matrices in radiomics.
SRE continuously monitoring AI systems on multiple screens, real-time dashboards visible, dark mode NOC setup.
IMAGE PREPROCESSING

What is Intensity Discretization?

Intensity discretization is the essential preprocessing step that bins continuous voxel intensity values into a finite number of discrete gray levels, enabling the calculation of texture matrices.

Intensity discretization is the process of converting the continuous Hounsfield Unit or signal intensity values within a medical image into a finite set of discrete integer bins. This quantization step is mandatory before calculating second- and higher-order texture features, as matrices like the Gray-Level Co-occurrence Matrix (GLCM) and Gray-Level Run Length Matrix (GLRLM) require a defined, finite number of gray levels to index rows and columns. Without discretization, the probability of identical intensity pairs occurring is statistically negligible, rendering texture analysis mathematically impossible.

The primary parameter governing this process is the bin width or the fixed bin count, which directly controls the granularity of the resulting texture. A bin width that is too narrow preserves noise and produces a sparse, non-informative matrix, while a bin width that is too wide erases subtle textural variations. The Image Biomarker Standardisation Initiative (IBSI) provides strict guidelines for discretization to ensure the reproducibility of radiomic features across different scanners and institutions, often recommending a fixed bin number approach to normalize the dynamic range.

INTENSITY DISCRETIZATION

Frequently Asked Questions

Clear answers to common questions about binning continuous voxel intensities into discrete gray levels for robust texture matrix calculation.

Intensity discretization is the process of binning the continuous Hounsfield Unit or signal intensity values of every voxel in a medical image into a finite number of discrete gray levels. This step is critical because texture matrices like the Gray-Level Co-occurrence Matrix (GLCM) and Gray-Level Run Length Matrix (GLRLM) require a finite, integer-based intensity range to construct a manageable grid of spatial relationships. Without discretization, the number of possible intensity values would be too large, resulting in a sparse, non-informative matrix that fails to capture the underlying textural phenotype of the tissue. The process effectively reduces image noise while preserving the biological heterogeneity necessary for predictive modeling. The Image Biomarker Standardisation Initiative (IBSI) mandates strict reporting of discretization parameters to ensure the reproducibility of radiomic signatures across different scanners and institutions.

FOUNDATIONAL PREPROCESSING

Key Characteristics of Intensity Discretization

Intensity discretization is the critical bridge between continuous voxel data and discrete texture matrices. The choice of binning strategy directly controls the statistical robustness, rotational invariance, and noise sensitivity of every downstream radiomic feature.

01

Fixed Bin Number (FBN) Discretization

Partitions the intensity range of the Region of Interest (ROI) into a fixed number of bins, ensuring every scan has the same matrix size regardless of absolute intensity values.

  • Mechanism: Divides the ROI's min-to-max intensity range into N equal-width bins.
  • Key Advantage: Guarantees consistent matrix dimensions for Gray-Level Co-occurrence Matrix (GLCM) and Gray-Level Run Length Matrix (GLRLM) calculations.
  • Critical Limitation: Loses direct physical meaning of intensity; a bin in one scan does not correspond to the same Hounsfield Unit range in another.
  • IBSI Guideline: The Image Biomarker Standardisation Initiative (IBSI) recommends a default of 32 or 64 bins for FBN to balance texture granularity and statistical noise.
32 bins
IBSI Default FBN
02

Fixed Bin Width (FBW) Discretization

Uses a constant intensity interval per bin, preserving the absolute physical meaning of voxel values across different scans and patients.

  • Mechanism: Bins are defined by a fixed width in original intensity units (e.g., 25 Hounsfield Units for CT).
  • Key Advantage: Maintains absolute intensity calibration, making features directly comparable across different scanners and acquisition protocols.
  • Trade-off: Produces a variable number of bins depending on the dynamic range of each ROI, leading to inconsistent matrix sizes.
  • Application: Essential for ComBat Harmonization workflows where preserving physical intensity scales is required to correct for scanner-specific effects.
25 HU
Typical CT Bin Width
03

Impact on Texture Matrix Sparsity

The discretization parameter directly controls the sparsity and statistical reliability of second-order texture matrices.

  • Too Few Bins: Over-averages fine textures, collapsing distinct tissue patterns into the same gray level and reducing Entropy sensitivity.
  • Too Many Bins: Creates a sparse Gray-Level Co-occurrence Matrix (GLCM) with many zero entries, making features like Cluster Prominence statistically unstable.
  • Optimal Range: Empirical studies show 16–128 gray levels provide a stable plateau for most radiomic features before matrix sparsity degrades reproducibility.
  • IBSI Benchmarking: The IBSI provides reference values for texture features at specific bin counts to validate software implementations.
04

Intensity Rescaling and Outlier Handling

Pre-discretization intensity normalization is required to handle outliers and standardize the input range before binning.

  • Outlier Filtering: Voxels outside a defined percentile range (e.g., 0.5%–99.5%) are often clamped to prevent extreme values from distorting the bin distribution.
  • Rescaling Methods: Common approaches include Z-Score Normalization and min-max scaling to a fixed range before applying FBN discretization.
  • Absolute vs. Relative: FBW discretization operates on absolute intensities and typically requires no rescaling, preserving the native physical units of the modality.
  • Reproducibility: Inconsistent outlier handling is a primary source of Intraclass Correlation Coefficient (ICC) degradation in multi-center studies.
05

Discretization and Rotational Invariance

The binning strategy interacts with the directional nature of texture matrices to influence feature rotational invariance.

  • Gray-Level Run Length Matrix (GLRLM) and Gray-Level Size Zone Matrix (GLSZM) are computed at multiple angular offsets and then averaged.
  • Discretization Granularity: Coarser binning reduces sensitivity to minor intensity fluctuations caused by anisotropic voxel interpolation during rotation.
  • IBSI Compliance: The IBSI mandates specific interpolation and discretization sequences to ensure that rotationally averaged features are reproducible across software platforms.
  • Practical Impact: Features like Short Run Emphasis (SRE) and Zone Percentage (ZP) show higher test-retest reliability when discretization is applied before rotational aggregation.
DISCRETIZATION STRATEGY COMPARISON

Fixed Bin Number vs. Fixed Bin Width

Comparison of the two primary approaches for mapping continuous Hounsfield Unit or voxel intensity values into discrete gray levels for texture matrix computation.

FeatureFixed Bin NumberFixed Bin Width

Discretization Logic

Divides intensity range into a constant number of bins regardless of absolute intensity range

Divides intensity range into bins of constant absolute width (e.g., 25 HU)

Bin Count

Constant (e.g., 32, 64, 128 bins)

Variable; depends on image intensity range

Bin Width

Variable; adapts to image intensity range

Constant; user-defined absolute intensity unit

Sensitivity to Outliers

High; extreme voxel values compress the effective resolution of central intensities

Low; outliers occupy dedicated bins without compressing central intensity resolution

Inter-Scan Reproducibility

Lower; feature values shift when intensity range varies between scans

Higher; consistent binning preserves texture feature stability across different scanners

IBSI Compliance

Not recommended for standardized radiomics

Recommended by IBSI for standardized feature extraction

Optimal Use Case

Exploratory analysis with narrow, consistent intensity ranges

Multi-center trials and clinical translation requiring harmonized features

Typical Parameter Value

32 or 64 discrete gray levels

25 Hounsfield Units (CT) or 0.5 standard deviations (MRI)

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.