Introduction

Neurons, the fundamental units of the nervous system, are constantly engaged in diverse computations through their delicate dendritic and axonal processes [1]. The shape of the dendritic spines has a great influence on synaptic computation, and their morphological changes are frequently observed during synaptic plasticity [2, 3]. Optical microscopy has long been an indispensable tool for visualizing neuronal structures and functions [4,5,6], but traditional imaging systems with their limited resolution and imaging depth are insufficient for detailed visualization of various synaptic spines and in vivo morphological changes of neurons. The emergence of two-photon excitation microscopy (2PEM) has provided significant benefits for in vivo imaging, such as inherent optical sectioning, reduced photodamage to living samples, and deeper penetration into thick tissues [7, 8]. To improve the imaging resolution beyond the diffraction limit, 2PEM was subsequently combined with structured illumination microscopy, leading to the development of new hybrid microscopic techniques such as two-photon multifocal structured illumination microscopy (2P-MSIM) [9] and two-photon instant structured illumination microscopy (2P-ISIM) [10, 11]. Generally, these techniques follow the principle of image scanning microscopy (ISM) that combines the resolving ability of a pinhole with the fast detection aptitude of widefield imaging [12, 13], making it beneficial for imaging deep tissues such as Caenorhabditis and mouse liver tissue [9]. A microlens array is often used to generate the two-photon focus array. Although this strategy with low energy consumption and good uniformity can endure the use of the high-energy laser beam, the number of foci and the distance between foci are unaltered once the microlens array is integrated into the system. Moreover, obtaining super-resolution images in deep tissues using 2P-MSIM can pose challenges due to multiple scattering and aberrations, which can degrade the imaging depth and spatial resolution.

Adaptive optics (AO) is an effective method to recover spatial resolution and signal-to-noise ratio (SNR) in deep tissues and complex environments [14,15,16,17,18,19,20]. This is particularly important in two-photon super-resolution microscopy studies where increasing imaging depth leads to optical aberrations caused by tissue heterogeneities and differences in refractive index. Therefore, correcting optical aberrations that adversely impact both the image quality as well as the resolution using AO can surpass the hurdle of studying neuronal processes and synapses in the subcellular context with fine-structural details. Generally, a deformable mirror (DM) or a spatial light modulator (SLM) is placed in the excitation path to recover the focal volume and peak intensity [21, 22]. The reflecting surface of DM is a continuous membrane controlled by a few actuators that can correct the relatively low-order aberrations and avoid loss of energy induced by diffraction effects from segments. The SLM, another widely used AO corrector in the excitation path, uses aligned nematic crystals to correct aberrations but has limitations with regard to polarized light and wavelength sensitivity. Additionally, AO correction in the emission path is also indispensable for obtaining super-resolution images in deep tissues [11].

In this work, we developed a novel adaptive optical two-photon multifocal structured illumination microscopy (AO 2P-MSIM) system for high-quality super-resolution imaging, introducing AO for the first time into 2P-MSIM. The system differs from conventional methods by incorporating a single high-speed SLM instead of a microlens array and galvanometer scanners, offering greater flexibility in generating and shifting focus arrays (e.g., a single focus scanning for AO correction and a focal array scanning for super-resolution imaging). The SLM also facilitates the correction of laser path aberrations ensuring that the focal shape and peak intensity are maintained in deep tissues. Moreover, to further improve the AO correction efficiency during the acquisition of super-resolution images, a DM was placed in the fluorescence path so that the aberration-contaminated signals, adversely impacting the attainable resolution can be reverted. Eventually, the judiciously constructed AO 2P-MSIM system with super-resolution imaging and optical sectioning credentials was successfully applied not only to observe neurons in mouse brain slices with nanoscale resolution but also to demonstrate the nanoscale neuronal dynamics in living zebrafish larvae.

Results

AO 2P-MSIM system

A rationally constructed AO 2P-MSIM system was set up for super-resolution imaging studies (Fig. 1). In the aberration detection process (purple rectangle), a flip mirror was aptly placed to divert fluorescence emission to a Shack–Hartmann wavefront sensor (SHS). The SLM loaded phase pattern was instrumental in generating a single focus within the specimen and the related aberration wavefront was detected by the SHS, while the fluorescence emission was directed by the DM (working as a flat mirror). For 2P-MSIM imaging with AO correction (green rectangle), a corrective phase pattern was superposed with a pre-designed phase pattern for a multifocal array to generate the AO-corrected laser focus array. Meanwhile, the DM loaded corrective voltages compensated the aberrations in the fluorescence path. Finally, the AO-corrected images of 2P-MSIM were captured by an electron multiplying charge-coupled device (EMCCD).

Fig. 1
figure 1

Schematic diagram of AO 2P-MSIM system. Schematic diagram of AO 2P-MSIM system. 1: SLM; 2: objective; 3: DM; 4: SHS; 5: EMCCD. The flip mirror can be switched between the EMCCD and SHS. L1–L9: lenses. F1 and F2: filters. Purple rectangle: Wavefront detection. The SLM loads phase pattern for a single focus to exciting specimen; The SHS detects aberration wavefront, while the DM is set to a flat mirror. Green rectangle: Super-resolution imaging with AO correction. The SLM loads phase patterns for an AO-corrected laser focus array; The DM loads corrective voltages to compensate for the fluorescence aberrations; The EMCCD captures corrected images. Scale bar, 5 μm

In order to make the system design more compact and to overcome the artifacts caused by the mechanical inertia of galvanometer scanners, the shifting of focus arrays was controlled in such a way that it could cover the full field of view (Figure S1). To correct aberrations with AO, the fluorescence signal of two-photon excitation was considered as a nonlinear guide star [21, 23], since two-photon excitation usually occurs only within a very small area around the focus. Once the aberrations were estimated from the detected wavefront by the SHS, the corrective phase pattern and voltages were applied to the SLM and DM simultaneously to correct the aberrations in the laser and fluorescence paths, respectively. It is worth mentioning here that before measuring and correcting sample-induced aberrations, the imaging system must be calibrated to compensate for its own aberrations. Next, yellow-green fluorescent beads (diameter 1 μm), placed on a coverslip surface were used to evaluate the performance of system correction (Figure S2). The shape of the guide star showed significant asymmetry without any system correction. Even though a significant improvement in the signal intensity was achieved only through the excitation path-related system correction, it was hardly useful for the betterment of shape. On the other hand, the shape of the guide star was perfectly restored with the system correction in the emission path. Therefore, it is mandatory to have system corrections in both the excitation and emission paths for attaining the optimal intensity and shape of the guide star. In this context, SLM and DM can be simultaneously used for effective AO correction. Very little aberration (as measured by SHS) was observed after the full system correction, which reiterated the robustness of the system correction.

Following the optimization of system correction, a series of raw images of the Thy1-YFP mouse brain slice were captured at 106 μm depth (Figure S3) with and without sample correction. Widefield (WF) images with or without sample corrections (represented as Full AO WF images and Sys AO WF, respectively) were reconstructed by directly summing the corresponding raw data. Furthermore, using the multifocal structured illumination microscopy (MSIM) principle, a series of raw images were filtered, pinholed, and scaled to obtain the intermediate images (pixel reassignment) with and without sample correction (Full AO PR and Sys AO PR, respectively). Finally, by further deconvoluting PR images, the corresponding Sys AO MSIM (with system correction but no sample correction) and Full AO MSIM (with both system correction and sample correction) images were obtained. According to the comparison of intensity profiles, AO’s contribution to resolution enhancement and SNR improvement provides a foundation for the next super-resolution reconstruction. To improve imaging performance, AO correction, pixel reassignment, and deconvolution all work together. As shown in Figure S4, the SNR and resolution of the pixel reassignment image are significantly higher than those of widefield images. Direct deconvolution processing has very limited resolution improvement on widefield images, and it can also produce non-negligible artifacts due to the sensitivity of deconvolution algorithms to noise. Using deconvolution algorithms on the basis of pixel reassignment can significantly improve resolution. When comparing deconvolution algorithms, the image enhancement obtained by Richardson–Lucy deconvolution (utilized in our MSIM processing) and Blind deconvolution are nearly identical. In contrast, the Wiener filter may result in unreliable improvements in image resolution due to noticeable artifacts.

We assessed the AO 2P-MSIM system by measuring the point spread functions (PSFs) in increasingly aberrated environments, using fluorescent beads with 100 nm diameter. First, the optimum resolution was estimated by imaging beads on a coverslip surface (Figure S5). With system AO correction, the shapes of the bead are almost symmetrical in both lateral and axial directions. We measured the full width at half maximum (FWHM) of the intensity profiles on the widefield images, and the mean value for 32 beads was 349 ± 21 nm (lateral) and 741 ± 64 nm (axial), respectively. After MSIM reconstruction, we obtained a lateral FWHM of 142 ± 11 nm and an axial FWHM of 493 ± 41 nm. Next, we embedded the beads in agarose and measured the system resolution at various depths within the sample (Figure S6). As anticipated, without AO correction, PSFs were enlarged both in the lateral and axial directions due to the increasing aberrations. The average wavefronts detected at different depths (10, 100, 300, and 500 μm from the coverslip) further revealed that if only system AO correction is done without any sample correction, it resulted in the gradual increase in aberrations with increasing depth (Figure S7). However, employing both system AO correction as well as sample AO correction concurrently demonstrated the negligible change in aberrations upon increasing depth which highlighted the improvements in AO performance. As shown in Table S1, AO correction can improve the spatial resolutions throughout the 500-µm imaging depth. Comparing the Sys AO WF and Full AO MSIM images, it was evident that the AO 2P-MSIM system with combined aberration correction (both system and sample corrections) recovered the lateral resolution from 423 ± 24 nm to 153 ± 9 nm and axial resolution from 1379 ± 120 to 735 ± 74 nm at a 500-µm depth. The PSFs were well restored by detecting wavefronts with SHS and reducing aberrations with both SLM and DM.

Application of AO 2P-MSIM in biological samples

We next implemented the AO 2P-MSIM to biological specimens wherein a fixed brain slice from a Thy1-YFP mouse was imaged (Fig. 2). Since neuron bodies possessed bright fluorescent signal, the guide star for AO correction was generated from a neuron body. Around 319 μm below the coverslip, neurons were imaged across a total depth of 12 μm which has been shown as the maximum intensity projection (MIP) image with depth coding (Fig. 2A). At a depth of approximately 316 μm, the adverse effect of optical aberrations on imaging made the two-photon excitation imaging results very blurred (Fig. 2B). Widefield images with sample AO correction showed blurry but detectable dendritic structures (Fig. 2B, middle). However, AO correction (for sample-induced aberrations) followed by the MSIM reconstruction resulted in easily detectable high-resolution dendritic structures (e.g., dendrite and dendritic spines, white arrows) (Fig. 2B, bottom). In contrast to the widefield images that showed uniform strips, the fine structure of dendrites was clearly visualized using aberration-corrected 2P-MSIM, as previously reported [24, 25]. Subsequently, the improvements in spatial resolution were characterized through the quantification of spatial frequency space (Fig. 2C). Compared to the widefield images with approximately 300 nm resolution, the sample AO correction being coupled with MSIM reconstruction provided a spatial resolution as high as approximately 150 nm, which was instrumental in resolving the fine dendritic structural features. As shown in Fig. 2D, dendritic spines and spine necks (white arrows) can be clearly observed from the Full AO MSIM images, but not from the widefield images. The corresponding intensity profiles are shown as the yellow (Sys AO WF), blue (Full AO WF), and red (Full AO MSIM) lines (Fig. 2E). Spine heads and spine necks were effectively sharpened by the combined effect of AO correction and MSIM reconstruction (approximately 144 nm of spine neck). The wavefronts without and with AO correction for sample-induced aberrations demonstrated that AO correction could certainly reduce aberrations in deep tissues (Fig. 2F). It should be noted that because complex in-situ aberrations exist at every single position, the average correction can only moderately compensate for field of view aberrations. However, it was still capable of significantly improving the results. This is a grudging compromise between imaging speed and correction accuracy. We further characterized the detailed structure of the neurons by super-resolution imaging with full AO correction (Figure S8). Visualization of various branched and unbranched dendritic spines using AO 2P-MSIM system also opened up the possibility of deciphering their individual roles in dendritic computations [25, 26].

Fig. 2
figure 2

AO 2P-MSIM improves spatial resolution in a brain slice. AO 2P-MSIM imaging in a Thy1-YFP brain slice at 325-313-μm depth. A Maximum intensity projection (MIP) of full AO WF and full AO MSIM image stacks (1-μm Z step). B Higher magnification views of the top boxed region in (A) at 316-μm depth are shown. Sys AO WF and Full AO WF indicate widefield images without and with sample AO correction, respectively, and Full AO MSIM indicates the MSIM reconstructed image with sample AO correction. White arrows indicate obvious resolution improvement. C Lateral resolution improvement after AO correction and MSIM reconstruction is quantified in spatial frequency space. D Higher magnification views of the bottom boxed region in (A) at 321 μm and 322 μm are shown. White arrows indicate the dendritic spines. E Line profiles across the dendritic spine neck corresponding to (D). The signal was normalized to the AO condition (0 to the maximum intensity of the Full AO WF image). F Wavefronts detected by SHS before and after sample AO correction are shown. Scale bar, 2 μm

While the signal of endogenous fluorophores may not be strong enough for wavefront detection by SHS, additional fluorophores or dyes can be expressed or loaded as guide stars to improve the imaging depth [11, 23]. We adopted this approach on living zebrafish larvae of 5 days post fertilization (dpf) (Fig. 2). The map of the imaging location is shown in Figure S9A. Essentially, the zebrafish larvae (mnx1: mGFP) were labeled with a bright cell-permeable fluorescent dye CellTracker Red to enable the effective wavefront measurement at 183 μm depth. Therefore, it was possible to track the wavefront measurement during the in vivo AO 2P-MSIM imaging of the zebrafish larvae motoneurons expressing mGFP. The AO 2P-MSIM images, where both the sample-induced aberrations and the system-induced aberrations were corrected through AO (denoted as Full AO MSIM), revealed significant improvements in the resolution and signal intensity than the widefield images either with only system AO correction or both system and sample AO corrections (Fig. 2A). The reconstruction of the AO 2P-MSIM images with both sample AO correction as well as system AO correction was able to resolve the super-resolution fine structures of an intertwined axonal network within the spinal cord (Fig. 3B). The Full AO MSIM image was able to provide the optical sectioning and desired resolution for studying the neural structures, as confirmed by the intensity profiles (Fig. 3C). The apparent improvements in imaging quality were shown in Fig. 3D, wherein a ring structure rather than a spherical structure can be clearly identified upon full (system + sample) AO correction followed by MSIM processing. We pre-measured the aberrations of the field of view and evaluated the effect of sample AO correction on compensating the average aberrations (Fig. 3E). Furthermore, we also observed that the sample AO correction in combination with MSIM reconstruction can provide a clearer view of the extended axons of spinal motoneurons (Figure S9B).

Fig. 3
figure 3

AO 2P-MSIM imaging of dense motoneurons in living mnx1:mGFP zebrafish. In vivo AO 2P-MSIM imaging of dense mnx1:mGFP zebrafish motoneurons in the spinal cord. A Sys AO WF, Full AO WF, and Full AO MSIM images in the same field of view. The signal from the Sys AO WF image was artificially increased (2-fold) for better visualization. B Higher magnification views of the top boxed region in (A) are shown. C Line profiles across an axonal structure corresponding to (B). D Higher magnification views of the bottom boxed region in (A) are shown. White arrows indicate a ring structure revealed with significant resolution improvement after sample-induced AO correction and MSIM reconstruction. E Wavefronts before and after sample correction are shown. Scale bar, 2 μm

Axons, extending to form the synaptic contacts, play a crucial part in establishing circuits for the development of neuronal networks [27, 28]. It is critical, yet difficult, to track the fine structural changes in the neuronal networks during synapse formation in order to understand how the thin filopodia can lead the axonal process [6]. As shown in Figure S10, the distribution of motor neurons is very rich in the connection between the brain and the spinal cord. Neurons were imaged at different depths from the surface of zebrafish and the obtained widefield and super-resolution images with full AO correction were compared (Figure S10B). The FWHM, calculated at 332 μm depth for the filopodia of a neuron was about 154 nm. This in vivo AO 2P-MSIM imaging was also effectively employed to visualize the delicate structure and dynamic changes of the motoneurons in 2-dpf-old zebrafish larvae for approximately 120 min (Fig. 4). Motoneurons at 210–230 μm depth were observed by using time-lapse diffraction-limited widefield imaging with/without sample-induced AO correction and MSIM reconstruction (Fig. 4A). Moreover, the improvement in spatial resolution gained through the combined effect of aberration corrections and MSIM processing was also confirmed by the recovery of spatial frequency components as shown in the spatial frequency space (Fig. 4B), which enabled the scope of resolving fine structures of the zebrafish motoneurons underneath the skin at 218 μm depth. To further illustrate the combined effect of AO-mediated correction and MSIM reconstruction on the imaging quality, a portion of Fig. 4A, marked with purple arrows (showing a protrusion on the axon) was magnified. The magnified views of the selected area suggested that compared to the blurry widefield images (Fig. 4C, top) the judiciously constructed AO 2P-MSIM system can provide the scope of much clearer visualization of the in vivo neuronal dynamics (Fig. 4C, bottom) and hence, the system can be successfully employed to monitor the dynamic morphological changes of the selected protrusion on the axon. Especially, the delicate structural components connecting the protrusion with the axon were conspicuous when AO 2P-MSIM was implemented which was not visible with the Sys AO WF and Full AO WF images. Additionally, to assess the improvement of axial resolution in biological specimens, AO 2P-MSIM was utilized to image mitochondria in zebrafish larvae expressing EGFP (Figure S11). The results showed a lateral resolution of 163 nm and an axial resolution of 783 nm at a depth of 300 μm.

Fig. 4
figure 4

Time-lapse AO 2P-MSIM imaging of motoneurons extended from the spinal cord. Time-lapse AO 2P-MSIM imaging of mnx1:mGFP zebrafish motoneurons extended from the spinal cord at 210-230-μm depth. A Representative MIPs of the Sys AO WF, Full AO WF, and Full AO MSIM images. Arrows point to highly dynamic structures. Scale bar, 5 μm. B Lateral resolution improvement by AO correction and MSIM reconstruction is quantified in spatial frequency space calculated from images of the motoneurons at 218-μm depth (0 min). C Higher magnification views of time-lapse AO off WF and AO on MSIM images for the region pointed by purple arrows in (A). Scale bar, 2 μm

Discussion

To expedite the super-resolution imaging in deep tissues, the rationally designed AO 2P-MSIM method mainly worked on combining the following three aspects: (1) improving the signal recovery ability through AO correction for the system- and sample-induced aberrations; (2) upholding the super-resolution imaging credential of MSIM; and (3) enabling the deep penetrating capacity of two-photon excitation. Although MSIM cannot achieve the ultra-high spatial resolution akin to stimulated emission depletion microscopy (STED), stochastic optical reconstruction microscopy (STORM), or photo-activated localization microscopy (PALM) due to constraint in its basic principle, the possibility of achieving super-resolution images at a deeper imaging depth makes it an excellent choice for exploring it in the nanoscopic imaging of neurons.

In the AO 2P-MSIM system, a SLM is triggered to load phase patterns in sync with electron multiplying charge-coupled device (EMCCD) frames. Multi-focal arrays traversed the entire field of view pixel by pixel during the MSIM scanning process, and the corresponding signal was recorded in a series of raw images. However, in external trigger mode, EMCCD frame rates are limited by the area size, such as 512 × 512 pixels at 50 Hz and 1024 × 1024 pixels at 26 Hz. Thus, in the AO 2P-MSIM system, 512 × 512 pixels were used, and the imaging area of the EMCCD is approximately 65 μm. Furthermore, the field of view used in experiments is approximately 50 μm to ensure that all fluorescence signals are collected by the EMCCD. In future, a faster and more sensitive image detector (and possibly a higher-speed SLM) can be introduced to further improve our AO 2P-MSIM system towards achieving better imaging quality while studying the neuronal dynamics with nanoscopic resolution. Deep learning can further improve the optical performance of the super-resolution microscopy, such as resolution enhancement [29] and faster acquisition speed by undersampling [30]. Furthermore, a “hybrid” synchronization of the SLM and EMCCD can be potentially used to break the limitation of EMCCD rate in imaging speed. As shown in Figure S12, multifocal arrays traverse the entire field of view according to raster-scanning. Normally, the synchronization for scanning and imaging can be achieved if both SLM and EMCCD are tuned at the same rate. In a multiplexing trigger mode, the series pattern loaded onto the SLM at n-fold rate than EMCCD. Essentially, in our 2P-MSIM system, the scanning of multi-focal arrays with SLM at a frame rate of 360 Hz enabled the image collection by EMCCD at a frame rate of 80 Hz which led to an overall imaging speed of approximately 2 s, making the system as fast as the previously reported 2P-MSIM and 2P-ISIM systems [9, 10]. As shown in Figure S13, the multiplexing trigger mode can overcome the EMCCD rate limitation in imaging speed. It may, however, result in a decrease in image contrast. The entire field of view is scanned in one exposure cycle in 2P-ISIM. It should be noted that our 2P-MSIM is capable of recording both the fluorescence signal generated by the sample (during the excitation dwell time) and the instrument noise (during the non-dwell time) individually in separate images, allowing for easy post-processing noise reduction, whereas such noise reductions are not possible in 2P-ISIM systems. The foci in the 2P-MSIM system should be sufficiently sparse to avoid possible fluorescent crosstalk caused by parallel excitation in highly scattered or deep tissues. Sparse foci, on the other hand, necessitate a lengthy scan time to cover the entire field of view. Based on imaging depth and biological sample characteristics, it is critical to strike a balance between crosstalk and acquisition time. Furthermore, the number of laser foci is limited due to the damage threshold levels and the SLM’s modulation efficiency, resulting in a limited field of view.

Conclusions

The advanced AO 2P-MSIM system was developed by judiciously integrating SLM in the laser path and DM in the fluorescence path so that the aberrations arisen out of both the excitation as well as emission can be corrected respectively. Designing this AO-based super-resolution microscopic system with dual-path (both excitation and emission path) aberration correction aptitude revealed much better imaging performance compared to the systems enduring only SLM-mediated aberration correction in the excitation path. Moreover, the DM correction in the emission path is key to realizing super-resolution imaging in deep tissues as it can salvage the SNR and resolution from serious degeneration caused by optical aberrations. In this method, SLM has been introduced for the excitation path AO correction based on couple of important considerations. Primarily, SLM has higher correction precision than DM which can enable better realization of the corrected multifocal array in MSIM imaging. More importantly, introducing a single SLM can solve the dual purpose by simultaneously enabling both MSIM imaging and AO correction, which vouched for a more compact and flexible AO 2P-MSIM system. The possibility of achieving super-resolution images at a deeper imaging depth makes AO 2P-MSIM an excellent choice for exploring it in the super-resolution imaging of neurons.

Methods

Adaptive optical two-photon MSIM system set-up

The AO 2P-MSIM system (Fig. 1) mainly comprised three light paths for two-photon near-infrared (NIR) excitation (red), visible fluorescence detection (dark green), and wavefront measurement (light green). The intensity of the pulsed light from the laser source (either a 920 nm femtosecond laser (Spark Lasers, ALCOR 920) or a 1036 nm femtosecond laser (YSL, Femto YL™)) was controlled by a 1/2 λ wave plate (Thorlabs, AHWP05M-980) and a polarizing beam splitter (PBS) cube (Thorlabs, CCM1-PBS252). Then, the laser beam was expanded by a pair of NIR achromatic lenses (L1 and L2, focal lengths f 1 = 25 mm and f 2 = 80 mm, respectively) to a 1/e 2 diameter of 11 mm before being reflected to a NIR-responsive high-speed phase-only spatial light modulator (SLM NIR, Meadowlark, HSP1920-1152) at 10°. Another 1/2 λ wave plate (Thorlabs, AHWP05M-980) was placed between the PBS cube and the expanding lenses to facilitate the desired polarization alignment of the SLM. Another two pairs of NIR achromatic relay lenses (L3 and L4, L5 and L6, f 3 = 300 mm, f 4 = 400 mm, f 5 = 180 mm, and f 6 = 300 mm, respectively) were used to create a magnified image of the SLM at the rear pupil plane of the objective (Nikon, CFI Apo LWD 25XW, 1.1 NA and 2 mm WD). The SLM loaded the phase patterns to generate and shift a diffraction-limited focal spot/multifocal array for two-photon excitation. An iris (Thorlabs, ID25) was placed in the focal plane of L3 to filter unnecessary diffraction orders. Approximately 50% laser power was retained at the rear pupil plane of the objective.

The fluorescence signal collected by the objective was modified to a 1/e 2 beam diameter of 13.2 mm by relay lenses 6, 5, 4, and 7 (f 7 = 500 mm), and reflected by a dichroic mirror (Thorlabs, DMLP805R) to a deformable mirror (DM, Imagine Optic, 52 actuators, ± 50-µm stroke, 15-mm pupil). The fluorescence beam reflected from the DM was focused by a lens (L8, f 8 = 600 mm) onto an EMCCD (Andor, Life 888, 1,024 pixels × 1,024 pixels; 13 μm × 13 μm) to obtain the image of the excited specimen. To measure the wavefront for AO correction, we diverted the fluorescence signal to the SHS (Imagine Optic, HASO3-First, 40 × 32 microlenses) using a flip mirror (Thorlabs, PFR10-P01) and another achromatic lens (L9, f 9 = 150 mm). Two emission filters F1 (TF1, FESH0850, Thorlabs) and F2 (ET525/50 Chroma), Table S2) were placed after L8 to isolate fluorescence before being collected on the EMCCD and the SHS.

It is worth noting that the above-mentioned pairs of relay lenses (L3 and L4; L5 and L6; L4 and L7; and L8 and L9) were placed in 4f imaging configurations, thereby ensuring that the SLM, the rear pupil plane of the objective, the DM, and the SHS are conjugated.

Single focal spot and multifocal array generation and scanning

Weighted Gerchberg-Saxton (WGS) algorithm was utilized to calculate the phase pattern loaded onto the SLM [31], generating a single focal spot or a multifocal array. The spot or array was shifted by adding a series of linear grating phases to the predetermined phase pattern (the detailed principle was shown in the Supplemental information). By changing phase patterns loaded onto the SLM sequentially, the focus or focal array was scanned to cover the full imaging field (Figure S1). For guide star generation, a single focal spot was shifted to excite fluorophore. For the 2P-MSIM imaging, varied multifocal arrays were adopted depending on different samples (Table S2).

Data acquisition and wavefront correction

For all imaging, the detailed acquisition parameters were provided in Table S2. For all measurements, the electron multiplication gain of the EMCCD was set to 100–180. In external trigger mode, a small region of interest (512 × 512 pixels) was chosen. For wavefront correction, the image exposure on the SHS was set from 1.5 to 2 s, depending on the sample brightness. The control electronics and timing and the detailed processes of AO correction were described in the Supplemental information.

Data processing and deconvolution

The theory of 2P-MSIM was described in the Supplemental information. Super-resolution 2P-MSIM images were obtained by postprocessing the raw images, which included pinholing the detected spots, magnifying the images while maintaining the size of the pinholed spots, integrating the scaled images over all positions, and deconvoluting the resulting image. The final super-resolution image has half the pixel size of the original raw images. We carried out the postprocessing mainly based on a freely available code from the website (http://code.google.com/p/msim/) [9]. The deconvolution was operated in ImageJ (Deconvolution lab, Richardson–Lucy deconvolution). The modeled point spread function of system was calculated as previously described [11], with numerical aperture (1.1), refractive index (1.33), and wavelength (1036 nm or 920 nm for excitation and 540 nm for emission).

Preparation and staining of live zebrafish larvae

Zebrafish of Tg(mnx1:mGFP) and Tg(Xla.Eef1a1:mlsEGFP) were purchased from China Zebrafish Resource Center as eggs and raised in E3 solution (containing 0.003% N-phenylthiourea, Sigma) to inhibit pigmentation after 20 hpf. Before experiments, 2–5-dpf-old larvae were labeled with CellTracker Red CMTPX (1.1 µg/mL, ThermoFisher Scientific, C34552) for 4 h at room temperature in the dark. After that, larvae were washed in E3 resolution twice for 10 min, anesthetized with 600 µM Tricaine (Sigma, Cat. # E10521), and then mounted for imaging in 1% low-melting-point agarose (NuSieve GTG, Cat. # 50,080).