Post-operative tissue fragment puzzling using histopathological vision transformer alignment HiViTAlign
摘要
In routine histopathology, macroscopic surgical specimens are dissected into multiple microscopic tissue fragments that are processed and analyzed independently. This fragmentation disrupts spatial continuity, making it difficult to integrate local findings into a coherent global view of tumor extent, orientation, and resection margins. Especially for malignant disease or malignoma, this is an issue of particular relevance forwhere positive margins are associated with increased mortality. Reconstructing the original macroscopic tissue from histological whole-slide images (WSIs) is therefore of high clinical relevance. However, this task is challenging due to non-overlapping fragments, tissue deformation, artifacts, irregular or frayed boundaries, missing pieces, and the absence of ground-truth reassembly references. This study develops a reassembly strategy to automate and improve the manual post-operative tissue fragment reconstruction given these constraints.
ResultsThe authors present HiViTAlign, a histopathological vision transformer alignment pipeline reassembling microscopic tissue slides into a whole, which is a special variant of image registration. The task is formulated as a non-overlapping image registration problem in which adjacent fragments are identified and spatially aligned based on texture and shape cues rather than pixel overlap. The pipeline employs a three-stage coarse-to-fine vision transformer architecture to extract multi-scale features and predict translational transformation parameters between fragment pairs. To enable supervised training despite the lack of standardized datasets, a synthetic puzzle generator is introduced that produces pathology-inspired irregular fragments from masked WSI thumbnails. The model is trained in a multi-domain setting across three heterogeneous datasets: synthetic irregular fragments, regular grid tiles, and ex vivo pig organ WSIs, promoting robustness to morphological variability and staining differences. Pairwise registration achieved average mean absolute errors equivalent to
Although current accuracy remains insufficient for fully automated assessment especially for larger number of fragments, the framework establishes a proof-of-concept for automated tissue reassembly and supports semi-automated workflows by proposing likely fragment adjacencies. This method supports spatial interpretation of pathological specimens and lays groundwork for future integration with 3D tissue reconstruction. The implementation of HiViTAlign and synthetic fragment generator are available open-source.