Adaptive optics (AO) restore ideal imaging performance in complex samples by measuring and correcting optical aberrations, but often require custom-built microscopes with carefully aligned wavefront sensing/shaping devices and can be susceptible to sample motion. Here we describe NeAT, a computational framework using neural fields for AO two-photon fluorescence microscopy. NeAT estimates wavefront aberration and recovers sample structure from a 3D image stack without requiring external datasets for training. Incorporating motion correction in learning and correcting conjugation errors commonly found in commercial microscopes, NeAT is designed for deployment in biological laboratories for in vivo imaging. We validate NeAT's performance using a custom-built microscope with a wavefront sensor under varying signal-to-noise ratios, aberration, and motion conditions. With a commercial microscope, we demonstrate real-time aberration correction for in vivo morphological and functional imaging in the living mouse brain, with NeAT improving signal and accuracy of glutamate and calcium imaging of synapses and neurons.
Read full abstract