bioRxiv Science⌕ 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

Prevention of Unc13a cryptic splicing is sufficient to preserve memory

TDP-43 dysfunction is thought to underlie frontotemporal dementia and limbic-predominant age-related TDP-43 encephalopathy, neurodegenerative dementias currently without effective therapy. Therapeutic strategies are designed to correct individual cryptic targets of TDP-43, such as UNC13A, whereby its cryptic splicing compromises synaptic function, yet the sufficiency of such an approach to prevent memory deficits is unclear. Using a forebrain neuron-specific TDP-43 knockout mouse model that recapitulates TDP-43 dysfunction occurring during early stages of human disorders, we found here that prevention of cryptic splicing to include that of Unc13a attenuated memory deficits. We show that genetic ablation of Unc13a cryptic exon solely in such TDP-43 knockout mice is sufficient to preserve cognition, supporting the clinical value of targeting UNC13A to mitigate memory deficits. Prevention of cryptic splicing of multiple targets of TDP-43 additionally attenuate neuron loss. For optimal outcomes in TDP-43 related dementias, these findings thus strongly support strategies designed to repress cryptic splicing of multiple targets of TDP-43, including UNC13A.

pathology↗

Social-Cognitive Dysregulation Model of Misophonia: Perspective from a Behavioural Study

Misophonia is increasingly conceptualized as more than a disorder of sound tolerance, with trigger over-reactivity shaped by the social meaning of sounds, inferred intentions, and representations of others actions. We tested a social-cognitive dysregulation model of misophonia in (N = 341) adults using behavioural measures of Theory of Mind and emotion recognition, alongside measures of reflective functioning, empathy, alexithymia, and mimicry. Dimensional associations with misophonia severity and its five different dimensions were examined while accounting for age, sex, sound sensitivity, and anxiety/depressive symptoms. Increased misophonia severity was associated with less accurate and slower mental-state inference and emotion recognition. ToM accuracy effects were evident for more complex, cognitive, and affective mentalizing, but not for simpler mentalizing or physical control judgments, while emotion-recognition accuracy differences emerged for positive but not negative stimuli. Greater severity was also characterized by reduced certainty and greater uncertainty about mental states, greater difficulty identifying one s own feelings, and elevated alexithymia, whereas global self-reported empathy was largely preserved. Misophonia severity further predicted a greater propensity to mimic trigger-producing actions or sounds; 41% of participants exceeding the S-Five clinical cutoff (> 87) endorsed mimicry, which was particularly associated with a subjective restoration of control. Findings remained robust following influential-case sensitivity analyses. These results reveal a selective disturbance in self-other representation spanning mentalizing, emotion decoding, emotional self-representation, and embodied regulatory processes. They position misophonia within a broader social-cognitive framework in which auditory-affective reactivity may intersect with altered inferential and sensorimotor processing, while stopping short of causal inference.

pathology↗

Lamin A/C depletion from myofibers and satellite cells in mice reveals selective muscle pathology

Mutations in the laminA/C gene (LMNA), which encodes the nuclear lamina proteins lamin A and lamin C (lamin A/C), have been linked to different human diseases affecting different tissues. Most LMNA mutations cause cardiomyopathy and muscular dystrophy, such as autosomal dominant Emery-Dreifuss muscular dystrophy. Recent studies to understand striated muscle laminopathies have taken advantage of Lmna conditional knockout mice to examine the effects of lamin A/C depletion in cardiomyocytes and cardiac fibroblasts. However, the role of lamin A/C in skeletal muscle has largely been uncharacterized using conditional knockout mice. We used different mouse lines to deplete lamin A/C from specific cell types in striated muscle. Lamin A/C depletion from fetal myofibers and cardiomyocytes led to no observable phenotype in the skeletal muscles despite leading to dramatic heart dilation and early lethality. Depletion of lamin A/C from both skeletal myofibers and satellite cells was lethal, with the most dramatic myopathic abnormalities observed in the intrinsic muscles of the tongue. The presence of lamin A/C in skeletal muscle satellite cells prevented the development of lethal myopathy when the proteins were deleted only from differentiated myofibers. Overall, our results provide a foundation for understanding the roles of lamin A/C in muscle maintenance and development, including the variable skeletal muscle involvement and much more invariant cardiomyopathy in patients with LMNA mutations.

pathology↗