Introduction

Bessel beams maintain their shape and size over long distances, even when encountering obstacles or diffraction effects, owing to their non-diffracting nature1. When combined with two-photon excitation using a near-infrared femtosecond laser, they enable a narrow focus with an extended depth of field2. Consequently, two-photon microscopy with Bessel illumination beam has been widely adopted for biological imaging, including studies of neuronal networks, cellular dynamics, and tissue morphology. It excels in imaging thick samples—such as brain slices or intact organs—where conventional microscopy struggles due to light scattering and limited penetration depth3,4,5,6.

Biological tissue is a complex, heterogeneous medium with spatially varying refractive indices. As illumination light propagates through tissue, refractive index inhomogeneities induce wavefront aberrations, distorting the light path. These aberrations cause significant dispersion and attenuation of light intensity, worsening with penetration depth. Ultimately, they impair two-photon excitation efficiency, degrading both the illumination field of view and fluorescence image quality7.

Adaptive optics (AO), initially developed to compensate for atmospheric turbulence in astronomical telescopes8,9, is the most effective method for mitigating wavefront aberrations in optical systems. AO employs a wavefront sensor to detect distortions and a corrector (e.g., deformable mirror) to compensate for them. Accurate wavefront sensing is thus pivotal for AO implementation, posing a key challenge in fluorescence microscopy.

Two primary approaches exist for detecting tissue-induced aberrations: (1) Indirect Sensing10,11,12. This sensorless method iteratively optimizes the wavefront corrector based on fluorescence intensity feedback. While simple, it is limited to low-order aberrations and suffers from slow convergence. (2) Direct Sensing13,14,15. A fluorescent “guide star” (a point-like emitter) is generated within the sample, and its emitted light is analyzed by a wavefront sensor. This method enables high-speed, high-precision detection of high-order aberrations, making it more suitable for practical applications.

In two-photon microscopy with Gaussian illumination, direct wavefront sensing is straightforward because the Gaussian focus itself acts as a guide star. However, under Bessel-beam illumination, two-photon fluorescence produces an elongated “line target” along the optical axis, which cannot serve as a guide star. Current workarounds include introducing an auxiliary Gaussian beam (as in lattice light-sheet microscopy16 or modifying the optical setup to generate a Gaussian beam by adjusting optical components17. While feasible, these approaches complicate system design and alignment. Developing a streamlined method for direct aberration sensing in Bessel two-photon microscopy remains an open challenge. Overcoming this hurdle could lower the application barriers of adaptive optics in Bessel two-photon microscopy, thereby providing convenience for the system optical design.

Methods

We present a compact method for generating guide stars to enable direct wavefront sensing in Bessel two-photon microscopy. Our approach utilizes a spatial light modulator (SLM) to generate Bessel beams and facilitate switching between Bessel and Gaussian beam modes. Figure 1 illustrates the working principle of the method, where we have simplified the schematic by omitting the 4f lens system (for beam expansion and aperture conjugation) and scanning devices. For clarity, the SLM is depicted as a transmissive element, though in practice it operates reflectively. The key innovation lies in positioning the SLM at a fixed displacement distance s from the back focal plane of lens L. This specific configuration enables the crucial switching mechanism between Bessel and Gaussian beam modes.

Fig. 1
figure 1

Principle of switching between Bessel beam and Gauss beam.

As illustrated in Fig. 1a, the incident near-infrared femtosecond laser is modulated by the SLM with an axicon phase profile ΦB to generate a Bessel beam. The lens L and objective lens IO form a 4f imaging system, ensuring the illumination beam maintains its Bessel profile in the sample plane. The SLM is positioned at a distance of s + f (rather than f, the focal length of lens L) from lens L. This configuration causes only a slight displacement of the Bessel beam from IO’s focal plane while preserving its characteristic intensity profile. As shown in Eq. (1), the axicon phase ΦB is described by concentric rings in the SLM’s pixel coordinates (x, y), where the ring width parameter r0 (where the phase changes from 0 to 2 π) determines both the transverse width and propagation length of the resulting Bessel beam. And mod(a, b) denotes the modulo operation of a by b.

$${\Phi _B}(x,y)=\bmod \left( {2\pi \sqrt {{x^2}+{y^2}} /{r_0},2\pi } \right)$$
(1)

For wavefront sensing, the SLM phase pattern switches to a thin lens profile ΦL, as shown in Eq. (2) (where k = 2π/λ, and λ represents the wavelength of the laser). In this mode, the SLM effectively becomes a lens with focal length s, forming a 4f system with lens L. This produces a Gaussian beam at the objective’s entrance pupil, which IO focuses to create a point-like guide star in the sample, as shown in Fig. 1b. The two-photon fluorescence from this guide star is collected by IO, reflected by the dichroic mirror (DM), and directed to the wavefront sensor (WFS). Due to the two-photon excitation process, the fluorescence wavelength (slightly > λ/2) differs sufficiently from the illumination laser wavelength for effective spectral separation by the DM.

$${\Phi _L}(x,y)=\bmod \left( { - \frac{k}{{2s}}({x^2}+{y^2}),2\pi } \right)$$
(2)

This approach enables seamless switching between Bessel and Gaussian illumination modes using only phase modulation from the SLM, eliminating the need for mechanical movement or additional optical components.

Results

To verify the proposed method, we set up an experimental apparatus (Bessel two-photon light sheet microscopy) as shown in Fig. 2. The whole setup can be divided into three optical paths. (1) Illumination path: femtosecond laser is expanded by beam expander (BE), then reflected by a spatial light modulator (SLM) with small angle (less than 10°). SLM is modulated with axicon phase ΦB or thin lens phase ΦL to generate Bessel beam or Gauss focus. Then transmitted with two 4 F systems (L1–L2 and L3–IO) to form Bessel illumination or Gauss guide star in the sample. (2) Imaging path: The two-photon fluorescence excited by illumination light is collected by the detection objective DO (perpendicular to IO), and captured by Camera passing through Filter and lens L4. (3) Aberration sensing path: The two-photon fluorescence of guide star is collected by IO and propagates backward along the illumination path. After being de-scanned by galvo scanner (GS), it is reflected by the dichroic mirror (DM) and ultimately enters the wavefront sensor (WFS) for aberration detection. Note: Mirror M3 and GS effectively form a “climbing frame” in the Y-direction. This design enables GS to scan around the Z-axis, allowing the Bessel illumination beam along the X-direction to create a light sheet illumination in the XY plane of the sample. Figure 2b shows a top view photo of the experimental setup along the Y-direction, M3 is physically obscured by GS and is not labeled in the photo.

Fig. 2
figure 2

(a) Optical layout and (b) photon of Experimental apparatus.

The details of the optical devices are as follows: The illumination laser is a femtosecond laser with 920 nm wavelength, 100 fs pulse width and 80 MHz repetition rate. SLM is a Meadowlark liquid crystal spatial light modulator with 12.8 mm aperture and 512 × 512 pixels. The focal lengths of lens L1 ~ L6 are 200 mm, 80 mm, 180 mm, 200 mm, 200 mm and 300 mm respectively. DM transmits light bands above 700 nm and reflects light bands below 700 nm. GS (GVS011, Thorlabs) has a maximum scan angle of ± 20°. The focal lengths of IO and DO are both 5 mm, and numerical aperture both 0.8. The cutoff wavelength of the short-pass Filter (FESH0700, Thorlabs) is 700 nm. Camera is an Andor sCMOS with 2048 × 2048 pixels and 6.5 μm pixel size. WFS is a custom Shark-Hartmann wavefront sensor with 6.1 mm aperture. SC is a custom sample chamber. The distance between SLM and L1, L1 and GS, GS and L2, L2 and L3, L3 and IO, DO and L4, GS and L5, L5 and L6, L6 and WFS are 500 mm, 200 mm, 80 mm, 260 mm, 185 mm, 205 mm, 200 mm, 500 mm, 300 mm, respectively.

Our design eliminates the conventional annular mask typically required to block non-diffracted light in SLM-generated Bessel beams17. Experimental results demonstrate that when using a high-efficiency (> 90%) dielectric mirror-coated SLM, non-diffracted light has negligible impact on two-photon excitation.

With this optical configuration, when the SLM modulates the axicon phase ΦB (Eq. (1), parameter r₀ = 200 μm), the illumination forms a Bessel beam in the sample. Using Rhodamine 6G solution for evaluation, the excited two-photon fluorescence captured by the camera shows a beam thickness of 0.89 μm and length of 94.25 μm, as shown in Fig. 3a. The WFS-captured fluorescence reveals non-point-like spots elongated in different directions (minimal near the optical axis, increasing with off-axis distance), as shown in Fig. 3b. This occurs because the fluorescence originates from an axial line source rather than a point source. The severe elongation of peripheral spots (extending beyond microlens boundaries) and their low SNR make the WFS inoperable. This aberration-free scenario (using homogeneous refractive index solution) demonstrates that even ideal Bessel beams cannot serve as WFS guide stars - particularly problematic for biological samples.

Fig. 3
figure 3

The Bessel fluorescence captured by the Camera (a) and WFS (b). Scale bar: 10 μm.

When the SLM instead modulates the thin lens phase ΦL (Eq. (2), parameter s = 300 mm), it effectively becomes a 300 mm lens. Combined with L1 (200 mm focal length, 500 mm spacing), they form a 4f system that delivers Gaussian illumination to the objective. The resulting two-photon fluorescence measures 0.87 μm thick and 3.9 μm long, as shown in Fig. 4a. The WFS spots appear as uniform spots suitable for wavefront sensing, as shown in Fig. 4b. The measured wavefront (PV = 0.24λ, RMS = 0.03λ < λ/30) confirms both the Gaussian beam’s suitability as a guide star and the apparatus’s negligible system aberrations, as shown in Fig. 4c.

Fig. 4
figure 4

The Gauss fluorescence captured by the Camera (a) and WFS (b). (c) Measured wavefront. Scale bar in (a): 5 μm. Color bar in (c): − 0.15 ~ 0.05 λ.

To evaluate our method’s performance, we inserted an astigmatic film (commercially obtained astigmatic correction lens specifically designed for professional ophthalmic testing) at IO’s rear pupil (between L3 and IO in Fig. 2). With ΦL modulation, the WFS-measured Zernike coefficients (Noll’s sequence) show dominant astigmatism (modes 4–5) with other modes below the 1/14λ measurement error, as shown in Fig. 5a. The reconstructed wavefront shows PV = 4.36λ and RMS = 0.74λ, as shown in Fig. 5b. We also independently measured the aberration of this lens using a ZYGO interferometer and confirmed that it contains almost only astigmatic aberration.

Fig. 5
figure 5

The phase of the astigmatic film detected with Gauss beam: (a) Zernike coefficients; (b) Wavefront.

Further validation used 100 nm fluorescent beads (Invitrogen, F8803) in 1.5% agarose, imaged under three conditions: (a) no aberration, (b) with aberration (no correction), (c) with aberration and AO correction, as shown in Fig. 6. 3D projection videos in three scenarios can more intuitively demonstrate the effect of AO correction, visible in supplementary video 1–3. AO correction is done by our wavefront sensing method and focal correction method16 (see more details in Supplementary Fig. S1).

Fig. 6
figure 6

Images of fluorescent beads under the same exposure time: (a) without aberration; (b) with aberration and no AO; (c) with aberration and AO. The images in the bottom row are zoomed-in views of the red-boxed region in the top row. Scale bars: 1.0 μm.

As shown in Fig. 7a, lateral profiles of the arrow-marked bead show similar FWHM values (477 nm, 540 nm, 483 nm respectively, at 162.5 nm/pixel magnification). While aberration in illumination path minimally affects lateral resolution of light sheet microscopies, AO improves SNR by 7.3× by reducing illumination dispersion and intensity loss. Axial sectioning (0.1 μm steps) reveals aberration in illumination path has greater impact on axial resolution, as shown in Fig. 7b: FWHM values of 578 nm (no aberration), 2.5 μm (uncorrected), and 573 nm (corrected). The 4.4× resolution improvement after AO demonstrates our method’s accuracy in detecting and compensating illumination-path aberrations.

Fig. 7
figure 7

Profiles of the fluorescent bead identified by red arrows in Fig. 6: (a) Lateral; (b) Axial.

In summary, we present a straightforward yet effective method for generating guide stars to enable direct wavefront sensing in Bessel two-photon microscopy, establishing the foundation for implementing adaptive optics to compensate for sample-induced aberrations in such systems. Although our validation experiments were conducted specifically in the illumination path of a Bessel two-photon light sheet microscope, the proposed guide star generation method can equally be applied to measure aberrations in the detection path. Furthermore, this approach is readily adaptable to other microscopes using SLM-modulated Bessel beam illumination and is not limited to two-photon applications.