Inferensys

Glossary

Lesion Segmentation

Lesion segmentation is the pixel-level delineation of a suspicious mass or calcification cluster from surrounding tissue in a medical image, enabling precise morphological analysis and size measurement.
Finance professional using AI FP&A copilot on laptop, board presentation visible on screen, home office work session.
PIXEL-LEVEL DELINEATION

What is Lesion Segmentation?

Lesion segmentation is the computational process of precisely delineating a suspicious abnormality from surrounding healthy tissue at the pixel level, enabling quantitative morphological analysis.

Lesion segmentation is the pixel-level classification task that partitions a medical image into distinct regions, isolating a suspicious mass, calcification cluster, or architectural distortion from the background parenchyma. Unlike object detection, which draws a bounding box, segmentation generates a precise binary mask defining the exact boundary of the abnormality, enabling quantitative radiomic analysis of shape, margin, texture, and size.

In mammography, deep convolutional neural networks—particularly U-Net and Mask R-CNN architectures—perform this task by learning hierarchical features from annotated datasets. The resulting segmentation mask feeds downstream computer-aided diagnosis (CADx) systems for malignancy probability estimation and provides objective, reproducible measurements critical for BI-RADS classification and surgical planning.

PIXEL-LEVEL DELINEATION

Key Characteristics of Lesion Segmentation

Lesion segmentation is the process of precisely delineating a suspicious mass or calcification cluster from surrounding breast tissue at the pixel level, enabling quantitative morphological analysis and accurate size measurement.

01

Semantic vs. Instance Segmentation

In mammography, semantic segmentation classifies every pixel as 'lesion' or 'background' without distinguishing individual masses. Instance segmentation goes further, assigning unique identifiers to each distinct lesion when multiple abnormalities appear in the same image. This distinction is critical for multi-focal disease assessment, where a patient may present with several independent masses requiring separate characterization. Modern architectures like Mask R-CNN and U-Net variants dominate this space, with U-Net's encoder-decoder skip connections proving particularly effective for preserving fine margin detail in high-resolution mammograms.

02

Dice Similarity Coefficient (DSC)

The Dice Similarity Coefficient is the primary overlap metric for evaluating segmentation accuracy. It measures the spatial agreement between the algorithm's predicted mask and the radiologist's ground-truth annotation, calculated as twice the intersection area divided by the sum of both areas. A DSC of 1.0 indicates perfect overlap; clinical-grade systems typically target >0.85 for mass segmentation. However, DSC alone can be misleading for small lesions, where a few pixels of disagreement disproportionately lower the score. Complementary metrics include Hausdorff distance for boundary accuracy and sensitivity/specificity at the pixel level.

03

Morphological Feature Extraction

Once a lesion is segmented, quantitative radiomic features can be extracted to characterize its morphology:

  • Margin sharpness: Quantifies the transition gradient at the lesion boundary, where abrupt transitions suggest malignancy
  • Spiculation index: Measures the presence and length of radiating lines extending from the mass margin
  • Circularity and compactness: Shape descriptors where irregular, non-elliptical contours correlate with invasive cancers
  • Texture heterogeneity: Analyzes pixel intensity variance within the segmented region using Gray-Level Co-occurrence Matrices (GLCM) These features feed downstream CADx classifiers for BI-RADS assessment.
04

Boundary Uncertainty and Partial Volume Effects

A fundamental challenge in lesion segmentation is the partial volume effect, where pixels at the lesion boundary represent a mixture of malignant and healthy tissue due to finite scanner resolution. This creates inherent ambiguity in ground-truth annotation, with inter-radiologist variability in boundary delineation often exceeding 2-3mm. Advanced approaches address this by modeling segmentation as a probabilistic task, outputting uncertainty maps alongside binary masks. Bayesian U-Nets with Monte Carlo dropout or ensembles of multiple models can quantify this boundary uncertainty, flagging ambiguous margins for closer radiologist review.

05

Multi-Modal Segmentation Fusion

Segmentation accuracy improves significantly when algorithms jointly process multiple imaging modalities. In Contrast-Enhanced Mammography (CEM), the recombined iodine image highlights areas of neoangiogenesis, providing functional information that complements the anatomical detail of low-energy images. Similarly, Digital Breast Tomosynthesis (DBT) slice data can be segmented in 3D before projecting results onto synthesized 2D views. Multi-modal fusion architectures typically employ separate encoder branches for each modality, merging features at the bottleneck before a shared decoder generates the final segmentation mask.

06

Temporal Segmentation for Interval Change

Comparing a current mammogram with a prior exam requires precise co-registration before segmentation differences can be analyzed. Deformable registration algorithms align the breast parenchyma across time points, accounting for differences in compression and positioning. The segmentation model then operates on the subtraction image, highlighting new or growing lesions while suppressing stable background tissue. This temporal approach is particularly valuable for detecting architectural distortion and subtle asymmetries that lack a discrete mass boundary, improving sensitivity to early-stage malignancies that present as gradual tissue changes.

LESION SEGMENTATION IN DEPTH

Frequently Asked Questions

Explore the critical technical concepts behind pixel-level lesion delineation, a foundational task for quantitative medical image analysis and AI-driven diagnostics.

Lesion segmentation is the process of classifying every pixel in a medical image to precisely delineate the boundary of a suspicious mass or calcification cluster from surrounding healthy tissue. Unlike object detection, which merely places a bounding box around a finding, segmentation generates a pixel-level mask that captures the exact morphology, margin characteristics, and spatial extent. This granular output is essential for calculating volumetric measurements, analyzing spiculation patterns, and performing radiomic feature extraction. While detection answers 'where is the lesion?', segmentation answers 'what is the precise shape and size of the lesion?'

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.