TensorBlue
COMPUTATIONAL_PATHOLOGY

Digital
Pathology
&
Oncology

WSI Analysis at Lab Scale

Whole-slide image analysis with QuPath. Develop and evaluate tumor-region, TIL and IHC analysis workflows with batch pipelines and deep-learning integration.

Versioned analysis scripts
Reviewer-visible overlays
Measured local performance

Research workflow planning. Each intended use requires its own evaluation and approval process.

"
Pathology labs must turn whole-slide images (1–20 GB per slide) into actionable, quantifiable findings at scale — tumor burden, margins, TIL density, PD-L1 scoring, grading
LEGACY_WORKFLOW_ISSUES
01
Slow & Manual
Non-reproducible workflows
02
Hard to Audit
No governance or versioning
MODEL_DEPLOYMENT_GAPS
03
Can't Ingest WSIs
Prototypes stall on I/O at scale
04
No LIMS Integration
Can't plug into lab workflows
Deterministic tile I/O → model inference → QC → report on multi-TB WSI cohorts with versioned scripts, audit logs, and batch governance

Plan a reproducible whole-slide analysis pilot

Reviewed October 7, 2026. This engineering guide describes project decisions; it does not establish diagnostic suitability or measured clinical benefit.

Define the analysis unit

Specify the tissue, stain, scanner, region of interest and measurement being studied. Define whether the output is a research feature, an annotation for review or part of a proposed clinical workflow. Tumor area within a selected tissue region is different from tumor area divided by the entire slide, including background. Record the denominator and exclusions in the output contract.

Check images before inference

Inspect focus, folds, pen marks, tissue completeness, stain variation and pixel-size metadata on a representative sample. Confirm that the image reader opens the required formats and resolutions. Keep rejected slides visible in the run report rather than quietly removing difficult cases from the cohort. Test both scanner and stain variation before extrapolating a result.

Keep patients together in evaluation

Hold out cases at the patient or specimen level so related sections and tiles do not cross training and evaluation splits. Agree an annotation protocol with domain reviewers and retain disagreements. Evaluate region overlap or cell detection alongside the downstream measurement error; a good tile classifier does not by itself establish a reliable slide-level score.

Reproduce the complete measurement

Record the image identifier, analysis resolution, stain settings, model hash, extension versions, thresholds and script revision. Verify coordinate and unit conversions when moving masks between tools. Include missing measurements and failed jobs in exports. Compare reruns on the same inputs; fixed random seeds alone do not guarantee identical results across engines or hardware.

Benchmark a representative batch

Measure read time, tissue selection, inference, overlay writing and export separately. Test cold-cache and warm-cache behavior and concurrent jobs against available memory and storage bandwidth. Report slide characteristics, hardware and failure rate with throughput. Choose worker limits from those measurements instead of promising one slides-per-hour number for every lab.

Hand off to reviewers and LIMS

Agree stable case identifiers, field names, units, revision handling and approval status with the receiving system. Preserve overlays so reviewers can inspect what was counted. Validate imports and corrected reruns on a small batch before scaling. A pilot handover should include the project configuration, scripts, evaluation report, exception log and operating instructions.

QuPath’s command-line documentation describes the script subcommand; its workflow scripting guide explains running scripts across projects. Pin your installed version and test against its documentation. Project execution can overwrite saved analysis, so verify behavior on a project copy first.

Medical imaging integration and evaluation · Healthcare workflow planning

QuPath
QuPath: versioned project configuration
Open-source bioimage analysis for research
Cross-platform WSI analysis workstation
Interactive ML & deep-learning hooks (DJL)
Scripting & batch pipeline automation
Cell detection & pixel classifiers
TMA dearraying & spatial analyses
Exportable tables for LIMS integration
PRIMARY_REPO
github.com/qupath/qupath
Core WSI analysis platform with scripting and ML integration
OPTIONAL_ML_BACKEND
github.com/TissueImageAnalytics/tiatoolbox
PyTorch WSI tooling for tiling, stain normalization, inference

Candidate Analysis Workflows

Pin tested versions
[A]
Tumor Detection & Burden
H&E; Solid Tumors
A
PIPELINE
Tissue mask → tiling → model inference → probability heatmap → tumor area % per slide
QUPATH_FEATURES
Pixel classifier, DL via DJL, overlay rendering, batch export
[B]
TIL Density & Spatial Metrics
Tumor-Infiltrating Lymphocytes
B
PIPELINE
Cell detection/classification → Voronoi/Delaunay spatial stats → TIL density per mm²
QUPATH_FEATURES
Object classifiers, cell segmentation, spatial analyses, batch tables
[C]
PD-L1 Scoring (IHC)
Immunohistochemistry
C
PIPELINE
Stain deconvolution → membrane positivity per tumor cell → CPS/TPS computation
QUPATH_FEATURES
Stain vectors, intensity thresholds, object measurements & scripts
[D]
TMA High-Throughput Scoring
Tissue Microarray
D
PIPELINE
TMA dearraying → per-core detection/quantification → export
QUPATH_FEATURES
Built-in TMA dearraying and batch processing
[E]
Serial Section Registration
H&E ↔ IHC
E
PIPELINE
Section registration → transfer ROIs → quantify markers in matched regions
QUPATH_FEATURES
External registration (TIAToolbox) + QuPath ROI operations
Technical Stack
Data • I/O • Performance
WSI Formats
Supports major vendors; tile-wise streaming with caching
Batching
Headless QuPath runs via CLI + script files for thousands of slides
Outputs
Overlay masks, detections, CSV tables, screenshots, project summaries
DEEP_LEARNING_INTEGRATION
In-QuPath
DJL backends (PyTorch/ONNX)
Model pack + script for tile scoring
DJL engines with model pack + script
External
TIAToolbox
Export tiles → inference → re-import masks/GeoJSON
QuPath exports → TIAToolbox inference → re-import
V
Versioned Scripts
QuPath project + git for SOPs + deterministic seeds
A
Audit Trail
Parameters + model hash in exported tables and logs
Q
QA Process
Blinded double-read, discordance dashboards, acceptance gates

Illustrative Research Blueprints

Planning examples, not completed client results or diagnostic performance guarantees.

1

Solid Tumor Burden at Cohort Scale

GOAL
Explore tumor-region quantification in a defined research cohort
BUILD
QuPath project → tissue mask (pixel classifier) → model via DJL → overlay + cleanup → batch export
EVALUATION PLAN
Measure throughput on representative slides and hardware; record versions, seeds and rerun differences
ARTIFACTS
CSV per slide/ROI • Overlays for QC • Run logs
2

PD-L1 IHC Scoring with Reviewer QA

GOAL
Standardized TPS/CPS with audit trail
BUILD
Stain deconv + membrane scoring + tumor cell gating • Reviewer verifies in QuPath • Discrepancies flagged
EVALUATION PLAN
Agree reviewer reference and acceptance criteria; measure score agreement and rescan rate
ARTIFACTS
CSV to LIMS • QC overlays • Reviewer concordance report
3

TIL Density + Spatial Heterogeneity

GOAL
Derive TIL density and tumor-border proximity features for survival modeling
BUILD
QuPath cell detection + classifier • Polygonized tumor regions • Spatial stats • Export features
EVALUATION PLAN
Measure job completion time; retain QC overlays and failed-slide reports
ARTIFACTS
Feature table to R/Python • Spatial heatmaps • Cell counts

Validation & Operations

VALIDATION_METRICS
Tumor segmentation
Dice / Jaccard, pixel AUC
Heatmap calibration & threshold sweeps
Cell detection
F1 / mAP
Class-wise counts, error analysis per stain
PD-L1
TPS/CPS agreement, ICC
ROI-specific audits; reviewer consensus
TIL
Density/mm², spatial proximity
Robustness to staining/section drift
Throughput
Slides/hr, P95 latency
Headless batch with tile cache
Robustness
Stain drift tests
Cross-site WSIs, scanner models
OPS_INTEGRATION
1
Storage
QuPath projects under git/LFS; WSIs on NAS/object storage
2
Scale-Out
Split project per cohort; headless jobs per node; consolidate tables
3
Security
Document image, label, log and backup access, retention and approved transfer boundaries
4
LIMS Handoff
CSV/JSON exports with case IDs; Python ETL to trial DBs
HEADLESS_BATCH_EXAMPLE
QuPath \
  script run_pipeline.groovy \
  --project my_project.qpproj

# Illustrative invocation: verify your installed CLI, paths and script
# Use Groovy/QuPath scripts to:
# - Open project
# - Iterate entries
# - Run detectors/classifiers
# - Save overlays
# - Export tables
From whole-slide images to quantifiable findings
✓
Pin QuPath and extension versions for each project
✓
Evaluate compatible deep-learning extensions
✓
Batch pipelines for lab-scale processing
✓
Optional TIAToolbox for PyTorch models
QuPath • TIAToolbox • Scripting • Batch Processing • LIMS Integration

Frequently Asked Questions

Can the system process whole-slide images at scale?

Batch processing can be designed around a defined cohort, image reader and analysis pipeline. Measure image reading, preprocessing, inference and export on representative slides and the proposed hardware. Slide dimensions, storage bandwidth, cache state and model complexity determine the achievable throughput.

Which scanner formats are supported?

Format support depends on the selected image reader, software version, scanner export and installed dependencies. Test representative files at the required resolutions, including pixel-size metadata and multi-series images, before confirming support for a project.