Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.07.14.664649

Post-operative tissue fragment puzzling using histopathological vision transformer alignment HiViTAlign

Abstract

1In pathology, reconstructing adjacent tissue parts enables an overview of the macro environment of objects like tumors. Especially, malignoma are of interest to verify invasion and resection margins, as patients with positive margins face a higher mortality risk. Reassembling image fragments is widely used in other domains, but adjacent blocks in pathology are mostly analyzed separately missing global context. In this project, neighboring tissue of pig organ whole slide images (WSI) are reconstructed without a ground truth based on histological sections at the end of a complex work-up process. Histological tissue slices with artifacts, frayed or disrupted boundaries and sometimes missing pieces complicate the puzzling task. Thus, typical approaches such as direct feature comparison of tissue boundaries or estimating a tiles position based on an overview image or a known structures are not applicable. A new approach is presented using partial image registration where only parts of a fixed and a moving image are aligned for adjacency. In contrast to existing projects aligning subsequent tissue slices of the same block, WSIs from separated blocks will be reassembled for adjacency. The used three stage vision transformer extracts image features on various scales, compares neighboring tiles by shape, color and texture and predicts transformation parameters. Even though the pipeline is capable of handling rigid transformation such as rotation or reflection, only translation is currently supported due to the limited training set. Supervised training of the network can be realized using a puzzle generator creating irregular shaped fragments of masked whole slide images. The factorized trained neural network is embedded into a sophisticated histopathological vision transformer alignment (HiViTAlign) pipeline executing the following steps in roughly 10 seconds per reassembled tissue puzzle: First, extract the specimen and mask the background in each whole slide image. Second, compare tile boundaries using partial image registration. Third, calculate the adjacency by boundary proximity for each image pair. Fourth, determine a minimal spanning tree to optimize adjacency of pairwise registrations and transformations for tissue reconstruction. The python source code for HiViTAlign to start puzzling with WSIs or other objects is available at https://github.com/cpheidelberg/HiViTAlign. The generator for creating a dataset with irregular shaped tiles can be downloaded from https://github.com/cpheidelberg/ImagePuzzleGenerator. 2 Author summaryHistopathology as the microscopic analysis of tissue remains the gold standard for evaluating tumors, especially when assessing resection margins. However, the physical processing of tissue disrupts its original three dimensional structure, leaving pathologists with fragmented, two-dimensional slices that lack spatial context. This fragmentation makes it difficult to understand the full extent and orientation of tumors and to correlate pathology results with radiological imaging used in surgical planning. In this study, we present a computational pipeline for histopathological vision transformer alignment (HiViTAlign) that reassembles fragmented histological tissue sections, similar to solving a jigsaw puzzle. Using a deep learning model based on Vision Transformers, our method predicts how individual tissue fragments are spatially related and outputs transformation parameters for adjacency. While the pipeline is designed to accommodate a variety of rigid transformations (e.g., rotation and scaling), its current implementation, constrained by the limited diversity of the training dataset, focuses solely on predicting translational shifts between fragments. A custom dataset generator was developed to create realistic puzzles from whole slide images, assigning original coordinates to each fragment to enable supervised training. The full pipeline was evaluated on both synthetic datasets and real-world whole slide images, demonstrating its ability to reconstruct tissue cross-sections without requiring a reference image. This method may support more accurate spatial interpretation of pathological specimens and better integration with surgical imaging data. The open-source Python code, we developed, invites collaboration and innovation, reflecting our commitment to advancing computational pathology through technology and shared resources. Paper to be submitted to PLOS Computational Biology.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Blattgerste, C. A., Ferdous, T., Jessen, A., Legnar, M., Rohr, K., Scherl, C., Hesser, J., Weis, C.-A.. 2025-07-18. Post-operative tissue fragment puzzling using histopathological vision transformer alignment HiViTAlign. https://doi.org/10.1101/2025.07.14.664649

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

SilencioM: silencing connected interfering oligonucleotides against MAPT as a potential disease modifying therapeutic for tauopathies

Tauopathies are a diverse group of neurodegenerative diseases whose pathogenesis involves brain accumulation of misfolded, pathological tau (Microtubule Associated Protein Tau, MAPT). More than twenty tauopathies have been identified thus far that collectively impact millions of people worldwide, of which the most common is Alzheimer's disease (AD). Despite substantial efforts to develop drugs for tauopathies, no effective treatments currently exist, highlighting the urgent need for therapeutics to combat these prevalent and ruinous neurodegenerative diseases. Strategies that target tau are likely to have the greatest impact since tau is the proximal cause of their pathogenesis. Small interfering RNAs (siRNAs) have emerged as a powerful class of precision therapeutics that silence disease-causing genes through RNA interference with favorable safety profiles. Delivery challenges are rapidly being addressed, and siRNA-based approaches are poised to transform the therapeutic landscape of neurological diseases. In this study, we describe SilencioM (Silencing connected interfering oligonucleotides against MAPT) and show its efficacy in markedly reducing tau pathology after a single intracerebroventricular injection in PS19 mice, a mouse model of severe tauopathy. SilencioM targets human, primate, rat and mouse ortholog genes; thus, the same compound can proceed from efficacy studies to Investigational New Drug Application (IND)-enabling studies. SilencioM is simple to manufacture and is administered without encapsulation in lipid nanoparticles and without requirements for lipophilic conjugation, making it a promising candidate for further development as a novel therapeutic for tauopathies, including AD.

pathology↗

SilencioMA: A single compound that targets both MAPT and APP as a potential disease modifying therapeutic for Alzheimer's Disease

Alzheimer's Disease (AD) is the most common age-related neurodegenerative disease and the leading cause of dementia worldwide. AD pathogenesis involves aggregation of amyloid-beta (A{beta}), produced from amyloidogenic proteolytic processing of Amyloid Precursor Protein (APP), and accumulation of misfolded, pathological tau (Microtubule Associated Protein Tau, MAPT). Current efforts focus on developing disease modifying therapeutics (DMTs) against single targets: A{beta} or tau. However, DMTs that concurrently target both tau and A{beta} are likely to have the greatest impact since they target both culprits of AD pathogenesis. Here we describe the development of SilencioMA, a single compound that targets both MAPT and APP messenger RNAs (mRNAs) based on silencing connected interfering oligonucleotides against MAPT and APP. Cerebrospinal fluid (CSF) administration of SilencioMA reduces A{beta} and tau and pathology after a single intracerebroventricular injection in 5XFAD/PS19 mice, an animal model of severe amyloidosis and tauopathy. SilencioMA does not rely on lipid nanoparticles or lipophilic conjugates for CSF administration. At the same time its modular design permits conjugation of ligands that facilitate transcytosis through the blood brain barrier, allowing systemic administration. Our findings provide proof-of-concept for a strategy that targets the dual A{beta} and tau pathologies of AD, and establishes a compelling foundation for further development of SilencioMA as a next-generation DMT for AD.

pathology↗

TREM2-stimulated, PDGF-dependent macrophage-fibroblast crosstalk induces beneficial plaque remodeling in clonal hematopoiesis

Background: In Jak2V617F clonal hematopoiesis, inflammatory signaling suppresses macrophage TREM2 and promotes features of plaque instability, while therapeutic TREM2 agonism reverses plaque instability by increasing fibroblasts and fibrous cap formation. We tested whether macrophage-derived PDGFB and stromal cell PDGFR? signaling mediate this response. Methods: Low allele burden (LAB) Jak2V617F atherosclerosis models were combined with inducible Pdgfb deletion in CX3CR1-lineage monocytes/macrophages or Pdgfra deletion in Col1a2-lineage fibroblast-enriched stromal cells. Mice were treated with the TREM2 agonist 4D9. Plaque composition, macrophage-fibroblast interactions, and aortic stromal cell populations were analyzed. Human WT and JAK2V617F iPSC-derived macrophages were used for validation. Results: TREM2 activation with 4D9 increased macrophage PDGFB production and promoted fibrous cap formation in LAB Jak2V617F atherosclerosis. Deletion of Pdgfb in CX3CR1-lineage cells markedly attenuated the 4D9-mediated increase in fibrous cap area and lesional PDGFR?+ cells, establishing macrophage-derived PDGFB as a key signal for the stromal response. Consistently, Col1a2-lineage Pdgfra deletion abolished the 4D9-induced fibrous cap response without significantly altering lesion or necrotic core area. Single cell RNA-seq identified increased Fmod+ and CD26/Dpp4+ fibroblast populations associated with 4D9 treatment. Fmod+ fibroblasts represented an abundant matrix-associated population, whereas CD26+ fibroblasts showed greatest enrichment, prominent extracellular matrix, collagen organization, and matrix-remodeling programs that were enhanced by 4D9 and attenuated by Pdgfra deletion. The stromal response was also associated with reduced macrophage migration-related programs and predicted chemokine communication from CD26+ fibroblasts to macrophages which was verified by macrophage migration studies. Moreover, stromal Pdgfra deletion increased lesional CCR2+ and CCR5+ macrophages. Conclusions: In a CH model of inflammatory atherosclerosis, TREM2 activation promotes a macrophage PDGFB-stromal PDGFR? pathway that expands Fmod+ and CD26+ fibroblast populations and increases fibrous cap matrix formation. CD26+ fibroblasts impair macrophage chemotaxis in a DPP4-dependent manner, suggesting reciprocal macrophage-fibroblast communication that coordinates matrix remodeling and inflammatory cell trafficking in the plaque.

pathology↗