Pathologist’s Brief
Briefing · Digital pathology

WSI-Babel-Shark extracts slide identifiers from variable whole-slide image labels

Quick answer

WSI-Babel-Shark combines data matrix decoding with text recognition to recover slide metadata. It reconstructed complete identifiers in 258 of 267 evaluable images, but failed extractions were excluded and manual review remains necessary.

Black-and-white photo of slide trays, a scanner and a monitor displaying cropped slide-label regions.
AI-generated illustration, Pathologist’s Brief
On this page
  1. Reporting
  2. Interpretation
  3. Limits and disclosures
  4. Opinion
  5. Frequently asked questions

#Reporting

Missing, damaged or inconsistent barcodes make it difficult to link whole-slide images to laboratory cases. Manual transcription of case, block and stain details is error-prone and does not scale well for archives.

Aliyari et al. describe WSI-Babel-Shark in Journal of Pathology Informatics, 24 September 2026. This open-source, containerised pipeline combines data matrix decoding, region-based text recognition and rule-based metadata parsing. It prioritises data matrix decoding and uses text recognition as a fallback when required.

A layout classifier assigns labels to 10 predefined layout groups, guiding selection of the appropriate text regions. Open-set rejection allows it to flag unseen layouts rather than force them into a known group. New layouts require their own region templates.

Classifier development used 1836 label images with a stratified training and test split. A separate set of 61 unseen labels tested rejection of unfamiliar layouts. Independent end-to-end evaluation used 270 whole-slide images, while 110 slides from the earlier WSI-Babel-Fish test set assessed backward compatibility. All datasets originated from the same institution.

The classifier achieved 97.4% overall accuracy and rejected all unseen labels in the open-set evaluation. This measures layout recognition, rather than correctness of every extracted identifier.

Data matrix decoding recovered metadata for 236 slides. Of 34 slides requiring fallback extraction, 31 yielded metadata and 3 failed. These failures were excluded from subsequent quantitative analysis, leaving 267 evaluable slides. Complete SlideID reconstruction, requiring every necessary field to be correct, succeeded in 258 of 267 slides (96.6%).

In a separate comparison, text recognition was also applied to the 236 slides with decoded data matrix metadata. Complete agreement across evaluated fields occurred in 230 slides (97.5%); field-level concordance ranged from 98.3% to 100.0%. Agreement with encoded metadata is a different endpoint from complete SlideID reconstruction.

Reprocessing the WSI-Babel-Fish dataset preserved compatibility with its label structures. The complete information set was correct in 105 of 110 slides, with field-level performance comparable to the earlier framework.

#Interpretation

For a laboratory digitising its archives or offering a scanning service, metadata extraction is part of image traceability. An image needs the correct case, specimen, block and stain information to link reliably with laboratory records and support later analysis.

The practical benefit is a fallback when a barcode cannot supply that information, together with a way to reject unfamiliar layouts. The results do not remove the need to check flagged slides or configure new label formats. The pipeline flags slides whose metadata cannot be reconstructed reliably, so that they can be reviewed manually.

The extraction problems reported included faint print, partial label damage, glare, handwritten markings, mixed-format stain annotations and confusion between similar characters or digits. Case number and year were correct in all evaluable slides, but errors remained in other fields. It is therefore worth reviewing the full identifier even when the case number looks correct.

#Limits and disclosures

The evaluation covered institutional label formats from only the scanner platforms represented in the study. The authors call for validation across other institutions, workflows and scanners. Parsing rules may need adjustment for different identifier conventions.

Unseen layouts still require manual creation of region templates during initial configuration. Performance depends on label printing and image quality. Direct integration with laboratory information or picture archiving systems is not yet provided, and such integration was not evaluated.

No funding was received. The authors declared no competing interests.

#Opinion

Pathologist's Brief views the explicit fallback and manual-review route as useful features for archive digitisation. A laboratory considering this approach should assess its own label conventions and review workload before treating metadata extraction as an unattended service.

Frequently asked questions

Does layout accuracy show that every slide identifier is correct?

No, layout accuracy measures recognition of the label format rather than correctness of all metadata. The separate end-to-end assessment required every necessary SlideID field to be right. Some slides still contained extraction errors, while failed extractions were excluded from that analysis, so the endpoints need to be read separately.

What happens when a laboratory introduces a new label layout?

A new layout needs a manually created region template before routine extraction. Open-set recognition can reject unfamiliar formats instead of assigning them to a known group. The authors also note that parsing rules may need adjustment when a laboratory uses different identifier conventions, so initial configuration still requires user involvement.

Was connection to a laboratory information system tested?

No, direct integration with institutional information systems was not evaluated. The pipeline exports metadata for downstream processing, but direct laboratory information or picture archiving system integration is not yet provided. Its extraction results therefore do not establish that bidirectional communication or routine record linkage will work within a particular laboratory.

Source

https://doi.org/10.1016/j.jpi.2026.100722 ↗

For education and professional reference. This does not give patient-specific advice or replace professional judgement, local protocols or consultation. Editorial standards.