Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.08.07.743572

ZenReg: A modular Python platform for fast and memory-efficient N-dimensional microscopy image registration

Abstract

Motion artifacts are almost unavoidable in functional time-lapse and structural volumetric multiphoton microscopy. They arise from respiration, heartbeat, locomotion, awake behavior, instrument heating, mechanical vibration, and slow drift, while the recorded signal is often photon-limited, blurred by scattering, and biologically time varying. Consequently, motion correction is frequently an essential prerequisite for quantitative bioimage analysis rather than a merely cosmetic preprocessing operation. Edge- and landmark-centric registration strategies are often poorly matched to these data because useful structures may be sparse, diffuse, out-of-focus, or changing in fluorescence intensity. We present ZenReg, an open-source Python platform that formulates common 2D+t, 3D, and 3D+t microscopy registration tasks as modular, geometry-preserving alignment problems. ZenReg combines FFT- and intensity-based translational registration, projection-based rotation estimation, piecewise translational motion correction, and dense or sparse six-degree-of-freedom volume registration within one canonical microscopy stack model. Disk-backed arrays support chunked processing of large or remote image stacks, and every run can produce registered images together with shift tables, correlation metrics, summary plots, and machine-readable settings. In synthetic benchmarks with known ground truth, ZenReg recovered global 2D and 3D translations with subpixel accuracy across moderate noise and drift regimes. High-noise and large-drift tests separated the registration models: FFT-based methods failed abruptly once image information or shared support became insufficient, intensity-based translational alignment degraded more gradually under severe noise, and piecewise translational correction improved spatially varying local motion where a single global transform was inadequate. In real biological data, ZenReg increased mean template correlation in a 3000-frame calcium-imaging movie from 0.334 to 0.487 and recovered imposed continuous three-photon volume motion with a mean translational error of 0.055 px or, for six-degree-of-freedom rigid motion, a mean shift error of 0.068 px and a mean rotation error of 0.015 degrees. By coupling modular registration backends to transparent sidecar outputs, ZenReg turns motion correction into an inspectable, memory-aware, and FAIR-oriented component of reproducible bioimage analysis.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Musacchio, F., Fuhrmann, M.. 2026-08-15. ZenReg: A modular Python platform for fast and memory-efficient N-dimensional microscopy image registration. https://doi.org/10.64898/2026.08.07.743572

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

KEEP EXPLORING

Related preprints

Functional validation of allele-specific LMNB1 silencing in patient-derived astrocytes as a therapeutic option for Autosomal Dominant Leukodystrophy

Adult-onset Autosomal Dominant Leukodystrophy (ADLD) is a rare fatal leukodystrophy caused by increased LMNB1 gene dosage, most commonly resulting from duplication of the LMNB1 locus. Because ADLD is a gene dosage disorder, selective reduction of pathological LMNB1 expression represents a rational therapeutic strategy. Although allele-specific RNA interference has previously been shown to lower LMNB1 levels in patient-derived fibroblasts and directly reprogrammed neurons, its therapeutic effects have not been evaluated in disease-relevant human glial cells or using functional efficacy endpoints. Here, we established human induced pluripotent stem cell-derived astrocytes from ADLD patients as a human glial model in which to validate allele-specific LMNB1 silencing across molecular, cellular, and functional readouts. ADLD astrocytes recapitulated increased LMNB1 expression and characteristic nuclear abnormalities and displayed transcriptional alterations affecting extracellular matrix organization, calcium homeostasis, metabolism and RNA processing. Functionally, these cells also exhibited functional phenotypes suitable for therapeutic evaluation: astrocyte-conditioned medium impaired the viability of both murine and human oligodendroglial cultures, while conditioned-medium and direct astrocyte-seeding paradigms revealed impaired post-lesion myelin recovery in lysolecithin-treated cerebellar organotypic slices. Allele-specific LMNB1 silencing restored physiological LMNB1 levels, corrected nuclear abnormalities, attenuated astrocyte-mediated oligodendroglial toxicity, improved post-lesion myelin recovery, and was associated with selective transcriptional programs associated with extracellular support and cholesterol metabolism. Together, these findings provide molecular, cellular, and functional validation of allele-specific LMNB1 dosage correction in patient-derived human astrocytes and offer key support for LMNB1-lowering strategies in disease-relevant human glial cells.

neuroscience↗

Perceptual integration of multisensory haptic, visual, and auditory feedback for roughness discrimination in augmented reality

Understanding how our different senses interact to shape our perception is essential to design realistic and immersive virtual and augmented reality (VR/AR) experiences. The present study investigated how roughness perception can be modulated through haptic, visual, and auditory cues in AR using a vibrotactile wristband. Participants compared virtual textures varying in vibration frequency/amplitude, visual grain size, and friction sound. Results revealed strong linear relationships between stimulus parameters and perceived roughness, with haptic frequency and visual cues driving the highest discrimination performance. Adding non-informative sensory feedback reduced perceptual sensitivity, acting as noise. Individual differences emerged: participants who rated haptic as the easiest modality showed greater sensitivity to haptic variations, while visual-reliant participants performed better with visual cues. We conclude that roughness in AR can be systematically manipulated, but is vulnerable to perceptual interference from irrelevant inputs, where our work provides actionable insights for implementing optimized and adaptive AR/VR interfaces.

neuroscience↗

Structural and functional MRI signatures of Gambling Disorder: a case-control study

Gambling disorder (GD) is a behavioural addiction that may help identify addiction-related neural features without the direct neurobiological effects of a primary substance of dependence. We examined regional grey matter volume (GMV) and resting-state functional connectivity (rsFC) in the same well-characterised sample. Eighteen men with GD and 21 matched healthy controls underwent high-resolution structural and resting-state functional MRI. GMV was quantified across 214 cortical and subcortical regions, and seed-based rsFC analyses focused on striatal subdivisions and mesocorticolimbic regions. Group differences were evaluated using permutation testing and cluster-corrected mixed-effects modelling. GD was associated with lower GMV in the ventromedial prefrontal cortex, orbitofrontal regions and other cortical and subcortical areas, alongside higher GMV in a subset of limbic and default-mode regions. Participants with GD also showed lower connectivity between the limbic striatum and the hippocampus, thalamus and putamen. In exploratory analyses, somatomotor connectivity was positively associated with gambling severity (Problem Gambling Severity Index: Spearman's rho = 0.71, p = 0.003, false-discovery-rate-adjusted q = 0.016). Structural and functional findings overlapped spatially in regions associated with valuation, memory, reward and habit formation, but regional GMV did not mediate group differences in rsFC. These findings are broadly consistent with corticostriatal models of GD and identify candidate circuit-level differences for independent replication. Larger, more diverse and longitudinal samples are required to establish their reproducibility, temporal direction and clinical relevance.

neuroscience↗