Abstract
eXtended Light Field Microscopy (XLFM) offers a promising pathway for high-speed, 3D volumetric imaging of neural activity. However, the computational complexity of reconstructing 3D volumes from 2D light field images remains a significant hurdle. We present XLFM-Former, a transformer-based framework that leverages hierarchical windowed attention and a novel self-supervised pre-training task, Masked View Modeling (MVM-LF), to achieve state-of-the-art reconstruction accuracy. By incorporating an Optical Rendering Consistency (ORC) loss, the model ensures physical fidelity to the underlying microscopy physics. XLFM-Former achieves a 7.7% PSNR improvement over existing models and maintains real-time processing speeds, facilitating high-fidelity neural imaging.
Introduction
Light Field Microscopy (LFM) is a powerful tool for neuroscientists, enabling the capture of 3D volumetric data in a single camera exposure. The eXtended Light Field Microscopy (XLFM) variant further enhances this by providing a larger field of view. Despite its potential, the reconstruction process—transforming "scrambled" 2D light field images into coherent 3D volumes—is traditionally slow and prone to artifacts. Classical methods like Richardson-Lucy deconvolution are computationally expensive, while standard deep learning approaches often fail to capture the complex angular relationships between views, leading to physically implausible reconstructions.
Methodology
The XLFM-Former framework introduces three key innovations to address these challenges:
1. XLFM-Former Architecture
The core of the model is a Swin Transformer. Unlike standard CNNs with limited receptive fields, the Swin Transformer uses hierarchical windowed attention to efficiently capture long-range dependencies across the large volumetric field-of-view. This architecture is better suited for the global information integration required in light field reconstruction.
2. Masked View Modeling (MVM-LF)
Inspired by self-supervised learning in natural language processing, the authors propose Masked View Modeling. In this approach, entire angular viewpoints within the light field are masked during pre-training. The model is then tasked with reconstructing these missing views. This forces the network to learn the intrinsic 3D geometry and the "stereo" relationships between different angles, which are crucial for resolving depth ambiguity.
3. Optical Rendering Consistency (ORC) Loss
To ensure that reconstructions are physically consistent, the framework employs a differentiable rendering layer. The predicted 3D volume is projected back into a synthetic light field using a known Point Spread Function (PSF). The model is penalized if this synthetic projection deviates from the original input, effectively using the physics of light propagation as a powerful regularizer.
Experimental Setup and Datasets
To evaluate the model, the researchers introduced the XLFM-Zebrafish benchmark, a large-scale dataset comprising 22,581 light field images. This dataset includes both free-swimming and immobilized zebrafish, providing a mix of dynamic and high-precision structural data. The model's generalizability was further tested on the H2B-Nemos dataset, which features different zebrafish lines and optical configurations.
Results
XLFM-Former demonstrates significant improvements in both accuracy and efficiency:
- Reconstruction Accuracy: The model achieved an average PSNR of 54.04 dB, a substantial lead over traditional architectures like U-Net.
- Real-Time Inference: Running at 48.44 FPS on an NVIDIA A100 GPU, the model exceeds the requirements for real-time biological monitoring (typically 30 FPS).
- Computational Efficiency: Compared to classical deconvolution, XLFM-Former is approximately 700x faster and requires 8x less memory.
- Robustness: The inclusion of ORC loss makes the model resilient to minor optical miscalibrations, maintaining high performance even with a ±10% error in PSF estimation.
Conclusion
XLFM-Former represents a significant advancement in light field microscopy reconstruction. By treating angular views as the fundamental unit of learning and enforcing physical consistency, the model bridges the gap between data-driven deep learning and optical physics. Future work will explore the model's performance in more complex scattering environments, such as the mouse brain, and the potential for integrating functional trace extraction directly into the reconstruction pipeline.
Summary updated