Dataset
Pathology whole-slide image and report datasets for AI training
A pathology dataset is a collection of digitized glass slides, stored as whole-slide images in formats such as SVS, NDPI, MRXS or DICOM, each paired with the surgical pathology report and tied to its specimen part, block, stain and scanner. SourceX sources these to a buyer's specification from established hospital pathology departments, independent and reference laboratories, and digital pathology archives. Each dataset is de-identified before delivery, including slide labels and file metadata, and licensed for an agreed permitted use. Buyers should confirm the de-identification method and jurisdiction with counsel.
Dataset manifest
Sourced to your spec- What it is
- Whole-slide images linked to the pathology report by case, specimen part, block and stain, with scanner metadata
- Typical systems
- Scanner files such as Aperio SVS, Hamamatsu NDPI, 3DHISTECH MRXS and Philips iSyntax; reports from laboratory information systems such as Epic Beaker
- Typical history
- Specified by the buyer in cases, slides and years; ask which years were scanned at sign-out and which exist only as glass
- Modality
- Pyramidal images at 20x or 40x equivalent, report text, synoptic fields and specimen records
- Delivery formats
- Agreed per order; native scanner files or DICOM, reports as JSON or text, a manifest linking slide to block, part and case
- Preparation
- De-identified before delivery: label and macro images, filenames, file metadata and report text; method recorded per source
- Licensing
- Permitted use agreed per license; consent, tissue-use terms and the institution's right to license reviewed per source
- Availability
- Sourced to your spec from laboratories that hold slides and reports; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| slide_id | string | Pseudonymous ID for one scanned slide, unrelated to the barcode or accession number. |
| case_key | string | Replacement for the accession number, shared by every part, block and slide of the case. |
| specimen_part | object | The part letter with its anatomic site, laterality and procedure, such as biopsy, excision or resection. |
| block | object | Block ID, what the block key says it holds, and preparation: paraffin, frozen section or cytology. |
| stain | object | H&E, special stain or immunostain with antibody name, the level or recut number and the staining program. |
| scan | object | Site, scanner model, objective, microns per pixel, focal planes, scan purpose and glass age at scanning. |
| image_file | object | File format, pixel dimensions, pyramid levels, compression and which associated images remain in the file. |
| report_part_diagnosis | string | The final diagnosis text for this slide's specimen part, as signed out. |
| report_sections | object | Clinical history, gross description with the block key, microscopic description and comment, scrubbed. |
| synoptic | object | Checklist fields for cancer resections: histologic type, grade, margins, stage categories and invasion findings. |
| slide_label | object | The finding assigned to this slide and what it rests on: block key, annotation, stain result or the case alone. |
| addenda | array | Addenda and amendments with day offsets, type and text, each tied to the block and stain slides it covers. |
| molecular | object | Linked biomarker or sequencing results for the same block, where held and in scope, with the assay named. |
| label_scrub | object | What was done to the label image, macro image, filename, file metadata, report text and dates. |
Field names from the table above; values are masked placeholders.
Example record
{
"slide_id": "sl_5d02e9",
"label_scrub": { "method": "expert_determination", "label_image": "removed", "macro_image": "cropped_to_tissue",
"filename": "replaced", "file_metadata": "scan_date_and_barcode_removed",
"report_text": "scrubbed_and_sampled", "dates": "day_offsets_per_case" },
"case_key": "case_19af",
"specimen_part": { "part": "A", "site": "colon, sigmoid", "procedure": "segmental resection",
"patient_age_band": "60-69", "sex": "F" },
"block": { "id": "A4", "block_key_text": "A3-A5: tumor, full thickness", "prep": "ffpe" },
"stain": { "type": "he", "level": 1, "recut": false, "stainer_program": "[PROGRAM ID]" },
"scan": { "site": "lab_03", "scanner": "[MANUFACTURER MODEL]", "objective": "40x", "mpp": 0.26,
"focal_planes": 1, "purpose": "routine_signout", "glass_age_days_at_scan": 2 },
"image_file": { "format": "svs", "width_px": 119520, "height_px": 86240, "pyramid_levels": 4,
"compression": "jpeg", "associated_images_kept": ["thumbnail"] },
"report_part_diagnosis": "A. Sigmoid colon, segmental resection: Invasive adenocarcinoma, moderately differentiated, invading through the muscularis propria into pericolic tissue. Margins negative. Metastatic carcinoma in 2 of 17 lymph nodes.",
"report_sections": { "clinical_history": "Sigmoid mass on colonoscopy.",
"gross_description": "[SCRUBBED TEXT WITH BLOCK KEY A1-A12]" },
"synoptic": { "histologic_type": "adenocarcinoma", "grade": "G2", "pt": "pT3", "pn": "pN1b",
"margins": "uninvolved", "lymphovascular_invasion": "present" },
"slide_label": { "finding": "invasive_adenocarcinoma_present", "basis": "block_key", "level": "block",
"note": "Report does not say which node blocks (A8-A12) are positive." },
"addenda": [
{ "day_offset": 6, "type": "immunohistochemistry", "block": "A4",
"result": "Mismatch repair proteins MLH1, PMS2, MSH2 and MSH6 retained.",
"stain_slides": ["sl_5d0301", "sl_5d0302", "sl_5d0303", "sl_5d0304"] }
],
"molecular": { "linked": false, "reason": "not_ordered" }
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Pretrain pathology foundation models
Tiles from many sites, scanners and stains give self-supervised models the range they meet in practice.
Train slide-level classifiers
Block-level labels supervise detection, subtyping and grading without counting a benign margin slide as cancer.
Draft pathology reports
Slides paired with part diagnoses and synoptic fields supervise vision-language models that write findings as pathologists sign them out.
Predict biomarkers from H&E
An H&E slide with immunostain or molecular results from the same block is a matched input and label.
Test generalization across sites
Holding out whole laboratories or scanner models shows whether a model learned tissue or learned the site.
Use-case guides: Private evaluation sets, Document AI, enterprise search and RAG, Healthcare administration AI
What makes this data valuable
Slide, block, part and case linked
A manifest from each image to its block, part and case lets a diagnosis reach the right slide.
Block key parsed
Block contents taken from the gross description separate tumor blocks from margins, nodes and normal tissue.
Scan purpose recorded
Routine sign-out scans and retrospective project scans are flagged, with the glass's age at scanning.
Scanner and site on every slide
Scanner model, site and microns per pixel per slide let you balance, stratify and hold out.
Addenda carried forward
Immunostain addenda, molecular results and amended diagnoses are linked, so labels reflect the final report.
Immunostains tied to their block
Each immunostain slide names its antibody and the H&E block it was cut from.
Document stack
Pathology dataset
Scanner and stain can shift the image more than diagnosis does
Two sections cut from one tumor block, stained in two laboratories and scanned on two scanner models, can differ more in color and contrast than tumor and normal tissue do on one slide. Each scanner has its own optics, sensor, focus method, color handling and compression. Hematoxylin and eosin intensity moves with the reagent lot, the staining instrument and its program, and section thickness and fixation change the picture again. A model can therefore learn to recognize the laboratory. If one site contributed most of the cancers, it scores well for the wrong reason and fails at a new site. So the spec should fix the mix: how many sites, which scanner models at each, the magnification, and the diagnosis distribution per site and scanner. Ask that whole sites be held out for testing. Record resolution in microns per pixel, because a nominal 40x does not give the same pixel size on every scanner.
Ask why each slide was scanned. A laboratory that signs out digitally typically scans every slide of every case as it is made: benign biopsies, deeper levels, immunostains, and slides with tissue folds or an out-of-focus strip. That is the distribution a deployed model meets. A retrospective project pulls glass from the archive. Someone chose the cases, and often one slide per case. The glass may be years old, with faded stain and a pathologist's ink dots on the coverslip. Both kinds are useful, and they should not be mixed unknowingly. Ask for the scan purpose and the interval between slide preparation and scanning as fields on every slide.
The report describes the case, the image shows one slide
A surgical pathology report is written for a case, with a diagnosis for each specimen part: A, B, C. A part is submitted in one block or in many, and each block is cut into one or more slides. A colon resection can fill a dozen blocks: tumor, margins, normal mucosa, lymph nodes. The line "invasive adenocarcinoma, 2 of 17 lymph nodes positive" is true of the part. It is false of the margin slide, the normal mucosa slide and most of the node slides. Pairing every slide with the case diagnosis mislabels those slides. What turns a part diagnosis into a block label is the block key in the gross description, such as "A3 to A5, tumor; A6, proximal margin". It is free text, written differently by each person who grosses specimens. For a small biopsy with one block, the part diagnosis is usually a fair slide label, so say which specimen types you need.
The report also keeps changing after first sign-out. Immunostains ordered on a block are separate slides, with results in the report body or an addendum. Molecular results come later, sometimes from another laboratory as a PDF. An amended report can change the diagnosis. A frozen section read during surgery can differ from the final diagnosis on the same tissue. A slide tied only to the first signed text carries a stale label. Ask for a manifest that links slide to block to part to case, gives the stain and antibody for each slide, and carries every addendum. Ask also what each slide's label rests on: the block key, a pathologist's annotation, a stain result or the case alone. Case-level labels still support weakly supervised training, but you should know that is what you are getting.
What to check before licensing
- Get in writing which de-identification method was applied to report text, slide images and file metadata, and have counsel confirm it fits the jurisdictions involved.
- Open sample files in a slide reader and list every associated image and metadata field. Label and macro images, barcode values, scan dates and original filenames should be gone or replaced.
- For multi-file formats such as MRXS, check the folder beside the main file too. Its Slidedat.ini file holds the slide metadata, and the image of the barcode area is stored in that folder's data files.
- Ask the institution how patient consent or a waiver covers use of slides and reports for commercial model training, and what its tissue-use policy and ethics review say. Have counsel read them.
- If molecular results are linked, ask whether they are limited to tumor biomarkers or include germline findings, and have counsel check genetic privacy rules.
- On sample cases with several parts, trace each slide to its block and part, read the block key, and count slides whose label is the case diagnosis alone.
- Ask for a table of slides by site, scanner model, stain, scan purpose and diagnosis category, and look for diagnoses that come mostly from one site.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Which whole-slide image formats can be delivered?
Usually the format the scanner wrote. That means SVS for Aperio scanners, NDPI for Hamamatsu, MRXS for 3DHISTECH and iSyntax for Philips, or DICOM where the laboratory archives in it. If you want one format, ask whether conversion re-encoded the image tiles, since a second lossy compression changes pixels.
How are whole-slide images de-identified?
Slides are de-identified before delivery under a method recorded for each source. The slide label photographed by the scanner, the macro image, filenames, barcode values and dates inside the file can all carry accession numbers or names, and so can handwriting on the glass. No method is perfect, so confirm the method and jurisdiction with your counsel.
Does every slide come with its own diagnosis?
No. The report gives a diagnosis for each specimen part, and a part can span many blocks and slides. A slide gets its own label only through the block key, a pathologist's annotation or a stain result. Ask for a field stating what each label rests on, and decide whether case-level labels suit your training method.
Should I specify scanners and sites?
Yes. Scanner model, staining and tissue preparation change image appearance enough that a model can learn the site in place of the disease. State the number of sites, the scanner models, the magnification and the stain types you need, ask for the diagnosis mix per site, and reserve a whole site for testing if you can.
Are immunostains and molecular results included?
They can be, where the laboratory holds them and the license covers them. Immunostain slides should name the antibody and the block they were cut from. Molecular results are often issued later, sometimes by another laboratory, so ask how they were matched to the case. Linked genomic data raises privacy questions your counsel should review.
How should I size a pathology dataset?
Size it in cases and slides per case, by organ, specimen type and diagnosis, not in total images or terabytes. A resection case with every slide scanned is a different asset from one selected slide per case. Whole-slide files are large, so ask for the total size and agree the transfer method before delivery.
Related datasets
- De-identified medical imaging studies with reports
De-identified DICOM studies paired with radiologist reports, prior exams and study metadata
- Clinical laboratory orders and results
Order-to-result laboratory records with specimen, method, units, reference ranges, flags, reflex tests and microbiology
- Genomics and multi-omics data with sample metadata
Sequencing, expression and mass spectrometry runs, raw and processed, each with sample, preparation, batch and pipeline metadata
- De-identified EHR and patient chart records
Longitudinal patient charts: encounters, problems, orders, results, medications, vitals and notes under one patient key
- De-identified clinical notes
Clinician-written notes as text, with note type, author role, specialty, encounter key and signing time
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.