<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Phys.</journal-id>
<journal-title>Frontiers in Physics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Phys.</abbrev-journal-title>
<issn pub-type="epub">2296-424X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">884053</article-id>
<article-id pub-id-type="doi">10.3389/fphy.2022.884053</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Physics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Sensorless Wavefront Correction in Two-Photon Microscopy Across Different Turbidity Scales</article-title>
<alt-title alt-title-type="left-running-head">Sohmen et al.</alt-title>
<alt-title alt-title-type="right-running-head">Wavefront Correction Across Turbidity Scales</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Sohmen</surname>
<given-names>Maximilian</given-names>
</name>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1695897/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>May</surname>
<given-names>Molly A.</given-names>
</name>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Barr&#xe9;</surname>
<given-names>Nicolas</given-names>
</name>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Ritsch-Marte</surname>
<given-names>Monika</given-names>
</name>
<uri xlink:href="https://loop.frontiersin.org/people/854155/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Jesacher</surname>
<given-names>Alexander</given-names>
</name>
</contrib>
</contrib-group>
<aff>
<institution>Institute of Biomedical Physics</institution>, <institution>Medical University of Innsbruck</institution>, <addr-line>Innsbruck</addr-line>, <country>Austria</country>
</aff>
<author-notes>
<corresp id="c001">&#x2a;Correspondence: Maximilian Sohmen, <email>maximilian.sohmen@i-med.ac.at</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Optics and Photonics, a section of the journal Frontiers in Physics</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1273310/overview">Rapha&#xeb;l Turcotte</ext-link>, Albert Einstein College of Medicine, United States</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1689744/overview">David Sinefeld</ext-link>, Jerusalem College of Technology, Israel</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1369192/overview">Naoya Matsumoto</ext-link>, Hamamatsu Photonics, Japan</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>05</day>
<month>05</month>
<year>2022</year>
</pub-date>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<volume>10</volume>
<elocation-id>884053</elocation-id>
<history>
<date date-type="received">
<day>25</day>
<month>02</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>11</day>
<month>04</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2022 Sohmen, May, Barr&#xe9;, Ritsch-Marte and Jesacher.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Sohmen, May, Barr&#xe9;, Ritsch-Marte and Jesacher</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<p>Adaptive optics (AO) is a powerful tool to increase the imaging depth of multiphoton scanning microscopes. For highly scattering tissues, sensorless wavefront correction techniques exhibit robust performance and present a straight-forward implementation of AO. However, for many applications such as live-tissue imaging, the speed of aberration correction remains a critical bottleneck. Dynamic Adaptive Scattering compensation Holography (DASH)&#x2014;a fast-converging sensorless AO technique introduced recently for scatter compensation in nonlinear scanning microscopy&#x2014;addresses this issue. DASH has been targeted at highly turbid media, but to-date it has remained an open question how it performs for mild turbidity, where limitations imposed by phase-only wavefront shaping are expected to impede its convergence. In this work, we study the performance of DASH across different turbidity regimes, in simulation as well as experiments. We further provide a direct comparison between DASH and a novel, modified version of the Continuous Sequential Algorithm (CSA) which we call Amplified CSA (a-CSA).</p>
</abstract>
<kwd-group>
<kwd>multiphoton microscopy</kwd>
<kwd>adaptive optics</kwd>
<kwd>scatter compensation</kwd>
<kwd>wavefront sensing</kwd>
<kwd>brain imaging</kwd>
<kwd>aberration and wavefront analysis</kwd>
</kwd-group>
<contract-num rid="cn001">P32146-N36 M 3060-NBL I3984</contract-num>
<contract-sponsor id="cn001">Austrian Science Fund<named-content content-type="fundref-id">10.13039/501100002428</named-content>
</contract-sponsor>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Dynamic wavefront correction is a powerful approach for extending the imaging depth of nonlinear microscopy in scattering tissues such as the mouse brain. However, to make the benefits of this technology accessible to an even broader range of applications, some remaining limitations need to be overcome. A particular problem is posed by the speed at which an aberration-compensating pattern can be retrieved, as imaging into live specimens requires to outpace the decorrelation time imposed by the constantly changing tissue.</p>
<p>To this end, we have recently introduced &#x201c;Dynamic Adaptive Scattering compensation Holography&#x201d; (DASH), a fast-converging indirect wavefront sensing algorithm for scatter correction in nonlinear scanning microscopy [<xref ref-type="bibr" rid="B1">1</xref>]. DASH employs a programmable phase-diffractive element to shape two beams simultaneously: a test beam, whose wavefront is varied in each step to explore possible signal improvements, and a corrected beam, whose wavefront is continuously improved using the information gained from interference with the test beam. DASH employs phase-only wavefront shaping, which bears the advantage of power efficiency. On the other hand, discarding amplitude information introduces errors in the resulting wavefronts. In this work we investigate the impact of these errors on the correction performance of DASH for different regimes of turbidity. Furthermore, we compare DASH to an alternative approach, which does not suffer from the &#x201c;phase-only&#x201d; restriction: a modified version of the Continuous Sequential Algorithm (CSA) [<xref ref-type="bibr" rid="B2">2</xref>], which follows a pixel-by-pixel testing approach. Our modification to CSA consists in amplifying the intensity of the tested pixel relative to all other pixels, which increases signal contrast. This amplification allows the application of CSA in situations with low signal-to-noise ratio (SNR), as often encountered in practice. We refer to our modified CSA algorithm as <italic>Amplified</italic> Continuous Sequential Algorithm, or a-CSA.</p>
<p>This work is structured as follows: In <xref ref-type="sec" rid="s2">Section 2</xref> we discuss how turbidity can be quantified, how a scattering medium of specific turbidity can be modelled numerically, and how in a two-photon imaging experiment a scattering volume of &#x201c;tunable&#x201d; mean free path can be emulated by a phase-mask displayed on a spatial light modulator (SLM). In <xref ref-type="sec" rid="s3">Section 3</xref>, the principles behind DASH and a-CSA are explained. In <xref ref-type="sec" rid="s4">Section 4</xref>, we detail the implementation of a-CSA and DASH in our numerical simulations (<xref ref-type="sec" rid="s4-2">Section 4.2</xref>), our experiment (<xref ref-type="sec" rid="s4-3">Section 4.3</xref>), and present a comparison of algorithm performance for two-photon excited fluorescence (TPEF) imaging of a homogeneous &#x201c;dye-slide&#x201d; sample in different regimes of turbidity (<xref ref-type="sec" rid="s4-4">Section 4.4</xref>) as well as mouse brain (<xref ref-type="sec" rid="s4-5">Section 4.5</xref>). In <xref ref-type="sec" rid="s4-6">Section 4.6</xref>, implications of a low SNR on algorithm performance are discussed.</p>
</sec>
<sec id="s2">
<title>2 Quantifying Turbidity</title>
<p>It is essential for the present work to define what we mean when speaking of &#x201c;low&#x201d; or &#x201c;high&#x201d; turbidity. The scattering properties of materials and tissues are often quantified using the scattering mean free path <italic>l</italic>
<sub>
<italic>s</italic>
</sub>, i.e., the expectation value of a photon&#x2019;s free travelling path before it is scattered. This is mirrored in the Beer-Lambert law, <inline-formula id="inf3">
<mml:math id="m3">
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.3333em" class="nbsp"/>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>L</mml:mi>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>, where &#x7c;<italic>U</italic>
<sub>0</sub>(<italic>L</italic>)&#x7c;<sup>2</sup> represents the intensity of the <italic>unscattered</italic> (&#x201c;ballistic&#x201d;) light after travelling (under free-space propagation) to distance <italic>L</italic>, and &#x7c;<italic>U</italic>
<sub>0</sub>(0)&#x7c;<sup>2</sup> the incident light intensity. The transport mean free path <italic>l</italic>
<sub>
<italic>t</italic>
</sub> takes scattering anisotropy into account: <italic>l</italic>
<sub>
<italic>t</italic>
</sub> &#x3d; <italic>l</italic>
<sub>
<italic>s</italic>
</sub>/(1 &#x2212; <italic>g</italic>), where <italic>g</italic> &#x3d; &#x2329;&#x2009;cos&#x2009;<italic>&#x3b8;</italic>&#x232a; is the expectation value of the cosine of the scattering angle <italic>&#x3b8;</italic>. For instance, in a material which predominantly scatters into the forward direction (causing small scattering angles), <italic>l</italic>
<sub>
<italic>t</italic>
</sub> is much larger than <italic>l</italic>
<sub>
<italic>s</italic>
</sub>. Conversely, in an isotropic scatterer <italic>l</italic>
<sub>
<italic>t</italic>
</sub> &#x3d; <italic>l</italic>
<sub>
<italic>s</italic>
</sub>. Typical values of <italic>l</italic>
<sub>
<italic>s</italic>
</sub> for brain tissue range between a few tens to hundreds of micrometers [<xref ref-type="bibr" rid="B5">5</xref>&#x2013;<xref ref-type="bibr" rid="B7">7</xref>].</p>
<p>Our goal is to model the effect of a (in general <italic>three-dimensional</italic>, 3D) scattering medium on a light field propagating in positive <italic>z</italic>-direction by a <italic>two-dimensional</italic> (2D) phase mask, located at axial position <italic>z</italic> &#x3d; <italic>z</italic>
<sub>scat</sub>, with transmission function <inline-formula id="inf4">
<mml:math id="m4">
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:math>
</inline-formula>. Here, &#x3a6;(<bold>
<italic>&#x3c1;</italic>
</bold>) denotes the scattering-related phase shifts experienced by a field point at the 2D lateral coordinate <bold>
<italic>&#x3c1;</italic>
</bold>. The field after the phase mask is denoted by <italic>U</italic>
<sub>scat</sub>(<bold>
<italic>&#x3c1;</italic>
</bold>). Note that this is the full field, not just a &#x201c;scattered field&#x201d; amplitude. Assuming that the phase mask is suitably chosen to describe a medium with predominantly forward scattering and without absorption, we choose the normalisation <italic>&#x222b;</italic>&#x7c;<italic>U</italic>
<sub>scat</sub>(<bold>
<italic>&#x3c1;</italic>
</bold>)&#x7c;<sup>2</sup> d<bold>
<italic>&#x3c1;</italic>
</bold> &#x3d; 1 &#x3d; <italic>&#x222b;</italic>&#x7c;<italic>U</italic>
<sub>0</sub>(<bold>
<italic>&#x3c1;</italic>
</bold>)&#x7c;<sup>2</sup> d<bold>
<italic>&#x3c1;</italic>
</bold>.</p>
<p>The ballistic contribution at depth <italic>L</italic> inside the medium&#x2014;emulated by the phase mask on the SLM&#x2014;can be calculated using the overlap integral (OI)<disp-formula id="e1">
<mml:math id="m5">
<mml:mtext>OI</mml:mtext>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>scat</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="&#x7c;" close="&#x7c;">
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>scat</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:msubsup>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="&#x7c;" close="&#x7c;">
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="&#x7c;" close="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>i.e., the &#x201c;projection&#x201d; of the field with imprinted phase mask onto the unscattered (incident) field. This equality (Eq. <xref ref-type="disp-formula" rid="e1">1</xref>) is most intuitive if the integral is evaluated in the plane of the 2D scattering mask, but for freely propagated fields the OI in fact stays constant in all transverse planes at <italic>z</italic> &#x2265; <italic>z</italic>
<sub>scat</sub>. Using the Lambert-Beer law, the OI can also be written as<disp-formula id="e2">
<mml:math id="m6">
<mml:mtext>OI</mml:mtext>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>L</mml:mi>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:math>
<label>(2)</label>
</disp-formula>
<italic>l</italic>
<sub>
<italic>s</italic>
</sub> appears here, since every single scattering event reduces the ballistic contribution. Note that this relation (Eq. <xref ref-type="disp-formula" rid="e2">2</xref>) implicitly assumes that cases of successive scattering events which exactly compensate each other (thus, re-populating the forward-directed incident field, i.e., contributing to the OI and&#x2014;erroneously&#x2014;to the estimated ballistic part) are statistically unlikely and can be ignored.</p>
<p>Combining Eqs <xref ref-type="disp-formula" rid="e1">1</xref>, <xref ref-type="disp-formula" rid="e2">2</xref> we can quantify a computed phase mask in terms of the corresponding &#x201c;thickness&#x201d; expressed in units of the scattering mean free path <italic>l</italic>
<sub>
<italic>s</italic>
</sub>:<xref ref-type="fn" rid="fn1">
<sup>1</sup>
</xref>
<disp-formula id="e3">
<mml:math id="m7">
<mml:mi>L</mml:mi>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>ln</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mtext>OI</mml:mtext>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>ln</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="&#x7c;" close="&#x7c;">
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="&#x7c;" close="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="normal">i</mml:mi>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.3333em" class="nbsp"/>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(3)</label>
</disp-formula>For the case of dominant forward scattering and negligible absorption, this relation allows us to compute a 2D phase mask &#x3a6;(<bold>
<italic>&#x3c1;</italic>
</bold>) that leads to a speckle pattern in the object plane which is in many ways similar to that of a voluminous 3D scatter medium of the same scattering mean free path <italic>l</italic>
<sub>
<italic>s</italic>
</sub>. In the experiments described later in this work, we will exploit this fact to simulate different regimes of turbidity by displaying computed 2D scatter masks of specific <italic>l</italic>
<sub>
<italic>s</italic>
</sub> on an SLM. Of course the equivalence between a 3D and a 2D scatterer&#x2014;even if they exhibit the same <italic>l</italic>
<sub>
<italic>s</italic>
</sub>&#x2014;does not encompass all physical properties; for instance, the isoplanatic patch (i.e., the &#x201c;corrected field of view&#x201d;) obtained through an AO wavefront correction will be smaller for a 3D than for a 2D scatterer. However, concerning the aspects studied in this work (e.g., the algorithm convergence at a single field point), a 3D and a 2D scatterer of same <italic>l</italic>
<sub>
<italic>s</italic>
</sub> can be regarded as equivalent.</p>
<p>We denote the RMS value of a scattering phase mask by <italic>a</italic>
<sub>scat</sub> (see Algorithm 4, Supplementary Material). If the phase values of the mask are normal-distributed or, for any distribution, if <italic>a</italic>
<sub>scat</sub> is sufficiently small [<xref ref-type="bibr" rid="B2">2</xref>], the relation between the scatterer thickness and <italic>a</italic>
<sub>scat</sub> is simply <inline-formula id="inf6">
<mml:math id="m9">
<mml:mi>L</mml:mi>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>scat</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:math>
</inline-formula>.</p>
</sec>
<sec id="s3">
<title>3 Approaches for Sensorless AO in Nonlinear Microscopy</title>
<p>Most indirect (or sensorless) AO schemes construct an aberration compensation phase mask from measurements of the TPEF signal for many different test patterns or &#x201c;modes&#x201d; <italic>M</italic>
<sub>
<italic>n</italic>
</sub> displayed on an SLM, <italic>n</italic> &#x2208; {1,&#x2026;, <italic>N</italic>} denoting the mode index. These test patterns can be pre-defined, for instance as a set of Zernike [<xref ref-type="bibr" rid="B7">7</xref>] or Hadamard modes [<xref ref-type="bibr" rid="B8">8</xref>, <xref ref-type="bibr" rid="B9">9</xref>], or directly derived from the signal of previous test patterns, such as in genetic algorithms [<xref ref-type="bibr" rid="B10">10</xref>]. The phase patterns are commonly imaged into the back focal plane (BFP) of the objective lens, where&#x2014;by the Fourier transform property of the lens&#x2014;the test patterns have a homogeneous effect on the point-spread function (PSF) over the entire focal plane. However, there exist also sample-conjugated schemes, where the SLM is imaged directly into the sample space [<xref ref-type="bibr" rid="B11">11</xref>&#x2013;<xref ref-type="bibr" rid="B14">14</xref>].</p>
<p>A particular case is the &#x201c;traditional adaptive optics&#x201d; regime, where the given phase aberration &#x3a6;(<bold>
<italic>&#x3c1;</italic>
</bold>) can be approximated by a weighted sum of the available test modes, <inline-formula id="inf7">
<mml:math id="m10">
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.3333em" class="nbsp"/>
<mml:msub>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, and each <italic>a</italic>
<sub>
<italic>n</italic>
</sub> has a rather small phase magnitude (up to about 1 rad RMS over the pupil). Here, <bold>
<italic>&#x3c1;</italic>
</bold> is the 2D coordinate vector in the BFP. In this case, the TPEF signal <italic>S</italic> generated in the focus has a smooth dependence on the mode magnitudes <italic>a</italic>
<sub>
<italic>n</italic>
</sub>, allowing to approximate it by a simple function such as a multi-dimensional Lorentzian or parabola, e.g., <italic>S</italic> &#x221d; 1 &#x2212; <italic>&#x2211;</italic>
<sub>
<italic>n</italic>
</sub> <italic>&#x2211;</italic>
<sub>
<italic>m</italic>
</sub> <italic>&#x3b1;</italic>
<sub>
<italic>nm</italic>
</sub> <italic>a</italic>
<sub>
<italic>n</italic>
</sub> <italic>a</italic>
<sub>
<italic>m</italic>
</sub>. In many cases, the cross-talk matrix <italic>&#x3b1;</italic> can be diagonalized by choice of an adequate mode basis [<xref ref-type="bibr" rid="B15">15</xref>]. Then, <italic>N</italic> &#x2b; 1 measurements can be sufficient to characterize the phase aberration [<xref ref-type="bibr" rid="B16">16</xref>], although usually 2<italic>N</italic> &#x2b; 1 or even 3<italic>N</italic> measurements are taken. It is important to note that this particular case does not necessarily coincide with low turbidity (i.e., a small value of <italic>L/l<sub>s</sub>
</italic>), since a large number of modes, even if their individual magnitudes are small, can still sum up to a large total aberration.</p>
<p>Outside the traditional regime, in what is often called the &#x201c;scattering&#x201d; regime, it is usually required to take many more measurements to find a suitable corrective phase mask. Typically, in the scattering regime the complexity of the aberration is beyond the capabilities of the correction device, meaning that the number of scattering modes is larger than the number of correctable ones. Additional reasons which can hinder full aberration compensation include an SNR too small to measure the contributions of less significant modes, or simply lack of time to measure all of the (many) scattering modes. Nevertheless, it has been shown that even correcting only a limited number of scattering modes can suffice to restore a diffraction-limited focus, which in this context can be understood as an intensity-enhanced speckle [<xref ref-type="bibr" rid="B17">17</xref>].</p>
<p>There exist several approaches for sensorless AO which can operate in the scattering regime [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>, <xref ref-type="bibr" rid="B10">10</xref>, <xref ref-type="bibr" rid="B18">18</xref>&#x2013;<xref ref-type="bibr" rid="B21">21</xref>]. Two of them, which we have identified as fast converging in numerical simulations, are studied in this work and outlined in <xref ref-type="fig" rid="F1">Figure 1</xref>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Sensorless AO methods for nonlinear microscopy. a-CSA uses a superpixel basis, DASH a plane-wave basis of test modes on a fluorescent target. Respective examples of a test mode (bottom) and the compensation pattern at the corresponding step are shown on the left and right. For a-CSA the order of tested modes is by increasing distance to the pupil center, for DASH the order is by increasing spatial frequency. During phase-stepping, the relative phase <italic>&#x3d5;</italic>
<sub>
<italic>p</italic>
</sub> of the test mode with respect to the compensation pattern is varied (see main text).</p>
</caption>
<graphic xlink:href="fphy-10-884053-g001.tif"/>
</fig>
<p>The first approach, known as continuous sequential algorithm (CSA) [<xref ref-type="bibr" rid="B2">2</xref>], operates on a single-pixel basis: sequentially, each pixel&#x2019;s phase is adjusted to maximize the signal. Although a basis of single pixels appears advantageous due to its intrinsic orthogonality, the approach is usually impractical because the interference contrast from single-pixel phase modulation is typically buried in noise. This inspired alternative approaches, such as hybrid methods using larger &#x201c;superpixels&#x201d;, each of them featuring an internal spatial phase pattern [<xref ref-type="bibr" rid="B20">20</xref>, <xref ref-type="bibr" rid="B22">22</xref>]. However, we point out that the SNR problem of CSA can also be remedied by simply amplifying the intensity in the test superpixel, as this increases the interference contrast. This variant, which we call a-CSA (&#x201c;amplified CSA&#x201d;), requires the laser power on each superpixel to be controllable. Then, as we show in <xref ref-type="sec" rid="s4-3">Section 4.3</xref>, a-CSA can work in experiments where only a comparably small number of modes needs to be corrected.</p>
<p>The mode basis of the second approach, DASH, is a set of plane waves which are, in a sense, Fourier-related to the single-pixel basis. Importantly, for this approach the SNR is uncritical, as the power fraction contained in each plane wave can be adapted directly via the SLM hologram. This makes this method more practical than CSA. However, to shape test beam and corrected beam without introducing artefacts, the SLM would be required to manipulate both, the spatial phase and amplitude distribution of the incident laser beam, just as for a-CSA. In DASH, the amplitude part is disregarded and only the phase part is included in the hologram, ensuring high power efficiency but inevitably leading to errors in the generated wavefronts and undesired diffraction orders. An example of the effects of phase-only shaping is given in <xref ref-type="fig" rid="F2">Figure 2</xref>. The left image shows a target arrangement of 256 spots with random phases we wish to create in the focal plane using an SLM in the Fourier plane. Discarding the amplitude part of the synthetic hologram (a superposition of the corresponding 256 plane waves) leads to the image on the right. The standard deviation of the phases at the target sites is about 0.25&#x2009;rad, corresponding to about 4% of the wavelength, and the relative amplitude error at the target sites is about 20%. Additionally, we see that weak &#x201c;ghost spots&#x201d; appear outside the target square.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Artefacts related to phase-only light shaping. Field modulus of a target pattern (left) and the simulated pattern reconstructed by phase-only wavefront shaping in the Fourier plane (right), illustrating introduced artefacts.</p>
</caption>
<graphic xlink:href="fphy-10-884053-g002.tif"/>
</fig>
<p>In line with our earlier works [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B14">14</xref>], we will in the following for both a-CSA and DASH denote by <italic>f</italic> the fraction of the total pupil intensity which is contained in the test mode.</p>
</sec>
<sec id="s4">
<title>4 Comparison of Algorithm Performance</title>
<p>In this section we compare the performance of DASH and a-CSA over different scales of turbidity in numerical simulations and experiment.</p>
<sec id="s4-1">
<title>4.1 General Recipe</title>
<p>The procedure for our systematic comparison between DASH and a-CSA is as follows.<list list-type="simple">
<list-item>
<p>1) Both algorithms are initialised with an empty correction mask.</p>
</list-item>
<list-item>
<p>2) We calculate a scattering phase mask that emulates a certain degree of turbidity and is kept constant throughout each algorithm run. In the simulations, this scattering mask is simply added to the BFP-conjugate wavefront during image propagation; in the experiment, it is displayed on our SLM.</p>
</list-item>
<list-item>
<p>3) We imprint a test mode on the excitation beam and carry out a phase-stepping procedure, i.e., measure the TPEF signal generated in the object plane for <italic>P</italic> different global phase offsets <italic>&#x3d5;</italic>
<sub>
<italic>p</italic>
</sub> &#x3d; 2<italic>&#x3c0; p</italic>/<italic>P</italic> (with <italic>p</italic> &#x3d; 1 &#x2026; <italic>P</italic>) applied to the test mode. <xref ref-type="fn" rid="fn2">
<sup>2</sup>
</xref> From the phase-stepping procedure, we extract the parameters for which the test mode maximizes the TPEF signal.</p>
</list-item>
<list-item>
<p>4) We directly update our correction mask by including the tested mode with the retrieved optimal parameters. In the simulations, this correction mask is added to the wavefront incident on the scatterer; in the dye-slide experiment, it is displayed on our SLM, on top of the scattering mask.</p>
</list-item>
<list-item>
<p>5) We now go back to step 3, test the next mode, update the correction mask, and so forth, until the correction mask contains the full number of test modes with their optimal contributions.</p>
</list-item>
<list-item>
<p>6) Once the full set of modes has been tested, we can start again from the first test mode for another correction run. We typically run 3 full iterations, which has shown to ensure algorithm convergence in most cases.</p>
</list-item>
</list>
</p>
<p>Detailed algorithm descriptions are provided in the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.<xref ref-type="fn" rid="fn3">
<sup>3</sup>
</xref>
</p>
</sec>
<sec id="s4-2">
<title>4.2 Numerical Model</title>
<p>In our numerical model, we consider aberrations defined on a square grid of 64 &#xd7; 64 pixels accounting for <inline-formula id="inf8">
<mml:math id="m11">
<mml:msubsup>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>scat</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
</mml:math>
</inline-formula> 4096 scattering modes. The aberration phase masks are calculated by adding cosines of all spatial frequencies supported by the grid size with uniformly distributed random phases. The amplitudes of the cosines follow a Gaussian weighting with standard deviation <italic>&#x3c3;</italic>, such that cosines with higher spatial frequencies are increasingly attenuated, as expected for most scattering scenarios found in nature. By varying <italic>&#x3c3;</italic> we can hence tune the spatial frequency content of the model scatterer. For details on our specific implementation of calculating the scatter mask, the reader is referred to our <xref ref-type="sec" rid="s11">Supplementary Material</xref> (<xref ref-type="sec" rid="s11">Supplementary Algorithm S4</xref>).</p>
<p>The simulated SLM for (square) correction patterns features 32 &#xd7; 32 pixels. Both the scattering mask as well as the simulated SLM are located in the BFP, in Fourier relation to the object plane, and have a side length measuring 2<italic>k</italic>
<sub>0</sub> NA, where <italic>k</italic>
<sub>0</sub> is the vacuum wavevector of light and NA &#x3d; 0.7 the numerical aperture. Each set of modes is tested repeatedly for 3 iterations. In our experiments, the SLM illumination does not feature an ideal, flat-top intensity profile, but exhibits a (weak) Gaussian shape of e<sup>&#x2212;1/2</sup> distance approximately equal to the pupil radius. To reflect the experimental situation, also in our simulations we assume a light intensity distribution across the BFP which is symmetrically Gaussian and of corresponding width. The fluorescent sample is assumed to be a homogeneous, absorption-free fluorescent layer of <italic>d</italic>
<sub>
<italic>s</italic>
</sub> &#x3d; 10&#xa0;&#x3bc;m thickness.<xref ref-type="fn" rid="fn4">
<sup>4</sup>
</xref> We model this sample volume by grid points on <italic>N</italic>
<sub>
<italic>s</italic>
</sub> distinct 2D planes with axial interspaces of <italic>d</italic>
<sub>
<italic>s</italic>
</sub>/(<italic>N</italic>
<sub>
<italic>s</italic>
</sub> &#x2212; 1), and the nominal focus plane located at its center. Normally, we set <italic>N</italic>
<sub>
<italic>s</italic>
</sub> &#x3d; 6 layers (interspaced by 2&#xa0;&#x3bc;m), since a larger number of planes does not notably improve the accuracy of results and we have checked that the exact choice of <italic>N</italic>
<sub>
<italic>s</italic>
</sub> is uncritical for our conclusions. To simulate the PMT counts, we simply propagate the light field into the <italic>N</italic>
<sub>
<italic>s</italic>
</sub> planes, calculate the squared intensity on each grid point, and take the sum over all points.</p>
<p>In <xref ref-type="sec" rid="s4-4">Section 4.4</xref>, we show simulation results at high-SNR conditions, for which photon shot noise can be neglected. For scenarios with low SNR, as discussed in <xref ref-type="sec" rid="s4-6">Section 4.6</xref>, we simulate shot noise by varying the summed PMT counts according to Poisson statistics.</p>
</sec>
<sec id="s4-3">
<title>4.3 Experimental Procedure</title>
<p>We compare DASH and a-CSA experimentally in a home-built TPEF microscope featuring a phase-only SLM (Meadowlark HSP1920-500-1200-HSP8, 1920 &#xd7; 1152 pixels of side length 9.2&#xa0;&#x3bc;m) located in a BFP-conjugate plane of the excitation path. This SLM serves two purposes in parallel: First, by displaying a &#x201c;scattering&#x201d; phase mask of defined scattering mean free path <italic>l<sub>s</sub>
</italic> (see <xref ref-type="sec" rid="s2">Section 2</xref>) it allows to emulate the effect of a scattering medium in the light path. Second, by running our sensorless wavefront correction schemes and displaying the retrieved phase compensation patterns <italic>on top</italic> of the given scattering mask, we can test and compare the algorithm performances.</p>
<p>A sketch of the setup is shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. For excitation, we use a mode-locked Ti:sapphire laser (MaiTai DeepSee, Spectra Physics) with emission maximum set to 800&#xa0;nm wavelength. The epi-TPEF is collected by a water-dipping objective (Olympus XLUMPLFLN20XW, NA &#x3d; 1) and directed towards a photomultiplier tube (PMT, Hamamatsu H10769A-40) using a dichroic beamsplitter (AHF Analysentechnik, HC665LP) and an additional emission filter in front of the PMT (AHF, ET680SP-2P8). In our measurements, to operate with a more homogeneous pupil illumination, we artificially reduce the NA to about 0.7 using an aperture in a pupil-conjugate plane (not shown in <xref ref-type="fig" rid="F3">Figure 3</xref>).</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Experimental setup. SLM &#x3d; spatial light modulator; PMT &#x3d; photomultiplier tube. Inset: Exemplary test phase mask for a-CSA. Every superpixel except the one under test is superposed by a shallow blazed grating to diffract the desired fraction of light intensity off the optical axis where it is blocked by an iris aperture. This enables amplitude tunability while using a standard, phase-only SLM.</p>
</caption>
<graphic xlink:href="fphy-10-884053-g003.tif"/>
</fig>
<p>For our systematic comparison, the sample consists of a thin layer of rhodamine solution sandwiched between a glass slide and a coverslip of 1&#xa0;mm and 170&#xa0;&#x3bc;m thickness, respectively. Before each algorithm run, we perform an initial precorrection run to compensate for optical-system wavefront distortions such as the spherical aberrations introduced by the coverslip. Starting from this precorrection, the wavefront correction algorithms afterwards only have to correct for the artificial scatterer displayed on our SLM, ensuring compatibility with the numerically simulated correction runs.</p>
<p>For DASH, we typically set the intensity in the test mode to 30% of the total intensity (i.e., <italic>f</italic> &#x3d; 0.3, see <xref ref-type="sec" rid="s11">Supplementary Material</xref>). For a-CSA, we amplify the relative power in the test-superpixel by superposing <italic>all other</italic> a-CSA-superpixels (consisting of many physical SLM pixels) with a blazed grating of defined modulation depth [<xref ref-type="bibr" rid="B24">24</xref>]. Thus, for all except the test-superpixel, power is diffracted away from the optical axis and cut by an aperture as indicated in <xref ref-type="fig" rid="F3">Figure 3</xref>. It is important that the mean phase of the blazed grating is nought to prevent an effect on the zero-order beam, which carries the phase mask.<xref ref-type="fn" rid="fn5">
<sup>5</sup>
</xref> Our blazed gratings have a period of 4 SLM-pixels and a modulation depth of approximately <italic>&#x3c0;</italic>&#x2009;rad, resulting in (1 &#x2212; <italic>&#x3b2;</italic>) &#x223c; 50% of the laser power being dumped (measured value) and a power fraction <italic>f</italic> &#x2248; 1/(<italic>&#x3b2;N</italic>
<sup>2</sup>) in the case of <italic>N</italic>&#xd7;<italic>N</italic> superpixels. Naturally, dumping power on the iris also decreases the total TPEF signal, wherefore we have to compensate by increasing the total laser power. Since in practice the available power is necessarily finite, this approach for amplitude modulation is only applicable in regimes of turbidity which do not require too many (i.e., too small) a-CSA-superpixels.</p>
<p>For compatibility, we conduct our experiments with the same number of test modes as in the simulations for the different regimes, i.e., 16, 64, and 256 modes for low, medium, and high turbidity, respectively. Our SLM holograms measure 560 &#xd7; 560 SLM-pixels and entirely fill the reduced objective pupil. For a-CSA this means that we form 4 &#xd7; 4 square superpixels (each 140 &#xd7; 140 SLM-pixels) for the low turbidity, 8 &#xd7; 8 superpixels (each 70 &#xd7; 70 SLM-pixels) for the medium turbidity, and 16 &#xd7; 16 superpixels (each 35 &#xd7; 35 SLM-pixels) for the high turbidity scenario. Analogous to the simulation, DASH and a-CSA are executed for three full iterations. The results are summarized in <xref ref-type="fig" rid="F4">Figure 4</xref>.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Scatter correction in different turbidity regimes. The three scenarios A&#x2013;C correspond to an increasing degree of scattering with <bold>(A)</bold> <italic>L/l<sub>s</sub>
</italic> &#x003D; 1, &#x03C3; &#x003D; 1, <bold>(B)</bold> <italic>L/l<sub>s</sub>
</italic> &#x003D; 3, &#x03C3; &#x003D; 3, and <bold>(C)</bold> <italic>L/l<sub>s</sub>
</italic> &#x003D; 5, &#x03C3; &#x003D; 5, respectively. The left column shows examples of the phase aberration applied in the objective BFP and the resulting TPEF intensity distribution in the focal plane before correction. The plots in the center and right column show how the TPEF signal improves during correction in simulation (center) and experiment (right). Here, solid curves represents the mean value over 5 repeated runs in the simulation or experiment, each initialised with a different random scatterer, and the ribbons represent the respective standard error of the mean. In particular, each plot point shown is the result of <italic>P</italic> measured phase steps, where <italic>p</italic> &#x3d; 3 (<italic>p</italic> &#x3d; 5) in the simulation (experiment). For the simulations (center), insets show a final SLM compensation pattern (respective top) and the corresponding object-plane intensity distribution (respective bottom) after running the optimization algorithms. For the experimental data (right), kinks in the a-CSA curves (blue asterisks) are caused by the circular, underfilled pupil (see main text).</p>
</caption>
<graphic xlink:href="fphy-10-884053-g004.tif"/>
</fig>
</sec>
<sec id="s4-4">
<title>4.4 Results Systematic Comparison</title>
<p>For our systematic comparison, we study three different scenarios (A, B, C) concerned with increasing levels of turbidity.</p>
<p>In Scenario A we study low turbidity, with an effective scatterer thickness of a single scattering mean free path, <italic>L/l<sub>s</sub>
</italic> &#x003D; 1, and a spatial frequency distribution of the scatterer chosen accordingly narrow, &#x03C3; &#x003D; 1. An example of such a scatter mask is shown on the top left of <xref ref-type="fig" rid="F4">Figure 4A</xref>. In the focal plane, such a mild scatterer typically leads to an intensity distribution which is still spatially confined and only moderately deviates from the aberration-free focus, as shown in <xref ref-type="fig" rid="F4">Figure 4A</xref>, bottom left. Here, the intensity scale is normalized to the peak intensity of the aberration-free focus, such that the maximum value (typically around 0.4 for Scenario A) equals the respective Strehl ratio. In this low-turbidity case it is expected that only a small number of modes is needed for adequate compensation, wherefore we correct 4 &#xd7; 4 &#x3d; 16 modes. The plots in the center and right column of <xref ref-type="fig" rid="F4">Figure 4A</xref> show the TPEF signal enhancement simulated numerically (center) and measured experimentally (right), respectively, for a-CSA (blue) and DASH (orange). Specifically, we plot the TPEF signal measured when the established compensation pattern is applied at the respective measurement number.<xref ref-type="fn" rid="fn6">
<sup>6</sup>
</xref> In the numerical simulations (<xref ref-type="fig" rid="F4">Figure 4A</xref>, center), we observe that for a-CSA the signal initially increases fast, but then flattens off from the second iteration onwards. DASH, in contrast, exhibits a less monotonic signal evolution than a-CSA, first increasing more slowly, but ultimately surpassing the final signal level of a-CSA. We attribute the signal flattening and lesser total performance of a-CSA to the fact that its compensation patterns are inherently displayed at the native resolution of the test-mode basis (i.e., 4 &#xd7; 4 superpixels in Scenario A) and therfore do not exploit the full resolution supported by the SLM (32 &#xd7; 32 pixels in the simulation). This coarser spatial discretization leads to increased diffraction losses compared to DASH (which always exploits the full SLM resolution, regardless of the number of tested modes) during the course of the optimisation. Additionally, we observe that for DASH the steepest changes in signal usually occur at the beginning of each iteration. This is due to the fact that we intentionally sort our test modes in ascending order with regard to the angle between their propagation direction and the optical axis. Since small scattering angles are typically more dominant in fluorescence imaging settings, this tends to speed up the algorithm convergence. Both methods achieve comparable final Strehl ratios around 0.75 and 0.85 for a-CSA and DASH, respectively (see <xref ref-type="sec" rid="s11">Supplementary Material</xref>). Our experimental measurements (<xref ref-type="fig" rid="F4">Figure 4A</xref>, right) show the same general trends. When comparing absolute values of signal enhancement, it is important to keep in mind the critical dependence on the sample thickness: in our simulations, e.g., we observe for increasing the thickness as 0 &#x2192; 4&#xa0;&#x3bc;m &#x2192; 10&#xa0;&#x3bc;m (at constant fluorophore density) a tendency of decreasing final enhancements of 2.14 &#x2192; 1.32 &#x2192; 1.29 in case of a-CSA and 2.9 &#x2192; 1.8 &#x2192; 1.5 in case of DASH. Given that in our experiments the sample layer thickness is controllable and measurable only with limited accuracy, it seems fair to claim good agreement between the observed values in simulation and experiment.</p>
<p>In Scenario B, we assume medium turbidity with <italic>L/l<sub>s</sub>
</italic> &#x003D; 3 and an intermediate contribution of modes of higher spatial frequency, &#x03C3; &#x003D; 3. We increase the number of correctable modes to 64 to account for this greater spatial frequency content. Before correction, the typical Strehl ratios in this scenario are on the order of 5% (<xref ref-type="fig" rid="F4">Figure 4B</xref>, bottom left). Our numerical simulations (<xref ref-type="fig" rid="F4">Figure 4B</xref>, center) indicate that again, a-CSA initially improves faster than DASH, but levels off at a lower final signal. The total signal enhancement achievable by both correction algorithms is higher than for the low-turbidity case; the final Strehl ratios are around 0.4 for a-CSA and 0.6 for DASH. We suspect that the initial delay of DASH in comparison to a-CSA is related to the appearance of higher diffraction orders (&#x201c;ghost foci&#x201d; as shown in <xref ref-type="fig" rid="F2">Figure 2</xref>) stemming from the phase-only field shaping of DASH. This is one of several reasons which lead us to believe that the use of a complex field-shaping technique might bear great potential for improvement of algorithm performance in the future. In our experimental measurements (<xref ref-type="fig" rid="F4">Figure 4B</xref>, right), we observe similar behaviour. Initially, a-CSA improves faster than DASH, but ultimately DASH delivers higher signal enhancement. For a-CSA, we observe a kink in the signal enhancement at the transition between two iterations (marked by the blue asterisk in <xref ref-type="fig" rid="F4">Figure 4</xref>), which is not present in the simulations. We attribute this kink to the circular pupil in our experiment which cuts power from superpixels located near the corners of the square SLM pattern. Since we step through the a-CSA superpixels in order of their distance to the pupil center, this effect is most dominant towards the end of each iteration.</p>
<p>In Scenario C, we assume high turbidity, with <italic>L/l<sub>s</sub>
</italic> &#x003D; 5 and &#x03C3; &#x003D; 5, where without correction typical Strehl ratios are on the order of 1%. In this scenario, we correct 256 modes. In the numerical simulations (<xref ref-type="fig" rid="F4">Figure 4C</xref>, center), we observe that the initial speed advantage of a-CSA compared to DASH decreases, but the final enhancements achievable with both algorithms are even higher than in Scenario B. Comparing between the two algorithms, our simulations again deliver a better performance for DASH than for a-CSA. Final Strehl ratios are around 0.35 for a-CSA and 0.45 for DASH. These trends are well supported by our experimental data (<xref ref-type="fig" rid="F4">Figure 4C</xref>, right).</p>
<p>Graphical animations of our simulated correction runs are provided as GIF files (see <xref ref-type="sec" rid="s11">Supplementary Material</xref>). These animations show the phase patterns displayed on the SLM during the correction algorithm as well as the evolution of the focal plane intensity distribution.</p>
</sec>
<sec id="s4-5">
<title>4.5 Experimental Comparison for a Biological Sample</title>
<p>Both DASH and a-CSA can offer striking quality improvements for imaging through turbid media, such as in microscopy of layers deep inside tissue. To demonstrate this, we use our TPEF scanning microscope to image microglia expressing green fluorescent protein (CX<sub>3</sub>Cr-1<sup>GFP</sup>, cf. Ref. [<xref ref-type="bibr" rid="B1">1</xref>]), located 200&#xa0;&#x3bc;m deep inside the corpus striatum of a mouse brain slice fixed via perfusion. For this, we adjust our wavelength to the excitation maximum at 900&#xa0;nm, retrieve a precorrection for optical system aberrations by focussing on microglia directly below the coverslip, and subsequently move the objective focus mechanically 200&#xa0;&#x3bc;m down into the brain tissue.</p>
<p>
<xref ref-type="fig" rid="F5">Figure 5A</xref>&#x2009; shows an example image of a microglia cell in the deep layer, recorded with only the precorrection applied. Light scattering in the brain tissue above leads to rather low contrast between structures in <xref ref-type="fig" rid="F5">Figure 5A</xref>, as illustrated by the plot of signal intensity along the black dashed line, shown in the inset. <xref ref-type="fig" rid="F5">Figures 5B&#x2013;D</xref> show the same microglia cell after running one out of three AO correction algorithms, respectively, each for 3 iterations of 256 modes. <xref ref-type="fig" rid="F5">Figure 5B</xref> shows the cell after application of the correction mask shown the upper left inset, which has been obtained by performing a-CSA with power-overhead in the test mode (<italic>f</italic> &#x223c; 2/256) on top of the precorrection. The improvement in signal is on the order of a factor of 2&#x2013;3 across the cell body, and processes extending from the cell into its surrounding are starting to become visible, especially when a logarithmic color map is applied (upper right inset). In <xref ref-type="fig" rid="F5">Figure 5C</xref>, the cell is shown after performing regular CSA (i.e., without power overhead in the test mode, <italic>f</italic> &#x3d; 1/256) on top of the precorrection. The measured modulation SNR was insufficent for algorithm convergence; as is apparent, the signal quality did not improve compared to the precorrection alone (<xref ref-type="fig" rid="F5">Figure 5A</xref>), or even became slightly worse. <xref ref-type="fig" rid="F5">Figure 5D</xref> shows the cell after performing DASH (3 iterations of 256 modes, <italic>f</italic> &#x3d; 0.3) on top of the precorrection. The signal intensity across the cell body is increased by a factor of about 5; the contrast between structures is clearly enhanced, allowing to distinguish processes extending from the cell body into the surrounding tissue.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Image enhancement for a biological sample. Murine striatal microglia expressing green fluorescent protein, 200&#xa0;&#x3bc;m deep inside fixed brain tissue. Image <bold>(A)</bold> was recorded without AO scattering correction. <bold>(B</bold>&#x2013;<bold>D)</bold> show the same cell after correction (3 iterations of 256 modes) for scattering in the tissue above: <bold>(B)</bold> &#x3d; a-CSA, <bold>(C)</bold> &#x3d; regular CSA, <bold>(D)</bold> &#x3d; DASH. Upper left insets (if present) show the applied scatter compensation mask; lower left insets show the TPEF along the black, dashed line. Main panels are in (blue) linear color scale, upper right insets show the same image data as the respective main panels in logarithmic (red) color scale. The size of the scalebar in <bold>(A)</bold> corresponds to 10&#xa0;&#x3bc;m.</p>
</caption>
<graphic xlink:href="fphy-10-884053-g005.tif"/>
</fig>
<p>Note that for taking the images of <xref ref-type="fig" rid="F5">Figure 5</xref> we have started from the precorrection of <xref ref-type="fig" rid="F5">Figure 5A</xref> simply for illustration purposes, to disentangle the correction of (mild) optical system aberrations from the correction of scattering inside the brain tissue, and for compatibility with the dye-slide simulations and experiments. This, however, is not an experimental necessity; typically, images of a similar quality as shown in <xref ref-type="fig" rid="F5">Figures 5B, D</xref> can also be obtained by performing DASH or a-CSA without any precorrection.</p>
</sec>
<sec id="s4-6">
<title>4.6 Low-SNR Scenarios</title>
<p>The practicality of every sensorless wavefront correction scheme depends on its robustness with respect to noise. It has already been shown that DASH performs well in this regard in comparison to alternative methods [<xref ref-type="bibr" rid="B1">1</xref>]. Let us now compare performances at low SNR conditions. The key for all such methods is being able to discern the TPEF signal modulation&#x2014;caused by phase-stepping of the test beam&#x2014;on top of the noise floor, since this modulation carries the relevant information. For this, the test mode must contain a significant percentage of the total light power. In the following, we use numerical simulations to compare which SNR each of the three methods DASH,<xref ref-type="fn" rid="fn7">
<sup>7</sup>
</xref> a-CSA, and regular CSA<xref ref-type="fn" rid="fn8">
<sup>8</sup>
</xref> requires to operate successfully. To this aim, we simulate shot noise in the PMT readout and then repeatedly execute the methods starting from a decreasing initial signal level. We stop repeating once the signal enhancement <italic>&#x3b7;</italic> achieved by a method (after 3 full iterations) drops below a certain threshold <italic>&#x3b7;</italic>
<sub>th</sub>. We set this threshold to <inline-formula id="inf5">
<mml:math id="m8">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>th</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.75</mml:mn>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>max</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula>, where <italic>&#x3b7;</italic>
<sub>max</sub> is the enhancement for the noise-free case (i.e., simulations as in <xref ref-type="sec" rid="s4-4">Section 4.4</xref>). The exact choice of the threshold prefactor (0.75 in our case) is largely arbitrary and uncritical for our conclusions. We assume the same sample and investigate the same three turbidity scenarios A, B, C as discussed above.</p>
<p>Our simulations show that for weak scattering (A) and correction of <italic>N</italic>
<sup>2</sup> &#x3d; 16 modes, DASH signal enhancement crosses threshold when the photon level (before correction) exceeds around 100 photons. a-CSA delivers comparable performance when the test-superpixel contains about 10 times more laser power than any of the other superpixels, corresponding to around 40% of the total power. Regular CSA only crosses threshold for signal levels from around 1000 detected photons onwards, i.e., about 10 times higher than required for DASH.</p>
<p>For medium turbidity (B) and <italic>N</italic>
<sup>2</sup> &#x3d; 64 modes, DASH crosses threshold at about 100 photons collected per measurement (before correction). Comparable performance can be achieved using a-CSA if the test-superpixel amplification factor is around 50, again representing roughly 40% of the total laser power. Regular CSA crosses threshold at around 3&#xa0;k photons.</p>
<p>Finally, for high turbidity (C) and <italic>N</italic>
<sup>2</sup> &#x3d; 256 modes, DASH crosses threshold at around 400 counted photons (before correction). Again, comparable performance can be achieved using a-CSA with a test-superpixel amplification factor around 50. Regular CSA, in contrast, requires about 15&#xa0;k photons.</p>
<p>These results are summarized in <xref ref-type="table" rid="T1">Table 1</xref>. Of course, in practice the required signal levels will also depend on the nature of the sample, wherefore these numbers can only serve as a rough orientation. For example, increasing the sample thickness will make it increasingly difficult to obtain a successful correction.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Photon counts (before correction) required at low SNR for comparable performance as in the noise-free case.</p>
</caption>
<table>
<tbody valign="top">
<tr>
<td align="left"/>
<td align="center">
<bold>Low turbidity (A)</bold>
</td>
<td align="center">
<bold>Medium turbidity (B)</bold>
</td>
<td align="center">
<bold>High turbidity (C)</bold>
</td>
</tr>
<tr>
<td align="left">DASH</td>
<td align="center">100</td>
<td align="center">100</td>
<td align="center">400</td>
</tr>
<tr>
<td align="left">CSA</td>
<td align="center">1&#xa0;&#x2009;k</td>
<td align="center">3&#xa0;&#x2009;k</td>
<td align="center">15&#x2009;&#xa0;k</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Regular CSA requires much higher signal levels than DASH; a-CSA requires substantial power in the test-superpixel (see main text).</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Nevertheless, from our results we can draw three main conclusions. First, as expected, regular CSA requires a much higher SNR than DASH to operate successfully. Achieving a higher SNR requires sending more optical power into the sample volume, making regular CSA unfavourable, e.g., for imaging of fragile specimens. Second, it is possible to successfully operate a-CSA at the same SNR conditions as DASH, if a sufficient amplification of the test-superpixel can be provided. However, it needs to be stressed that if the amplification is realized using a superpixel method (as in <xref ref-type="sec" rid="s4-3">Section 4.3</xref>), discarding light from other pixels, this high performance of a-CSA comes at the price of wasting much optical power. For instance, if the hologram features <italic>N</italic>&#xd7;<italic>N</italic> superpixels and the test-superpixel is supposed to contain a fraction <italic>f</italic> of the total pupil intensity, the incident laser power must be increased by a factor of (<italic>N</italic>
<sup>2</sup> &#x2212; 1)<italic>f</italic>/(1 &#x2212; <italic>f</italic>) to keep the total optical power in the objective pupil constant. Even for a moderate number of modes of 64, i.e., <italic>N</italic> &#x3d; 8, achieving <italic>f</italic> &#x3d; 0.3 requires a total power increase by a factor of 27. This steep scaling with <italic>N</italic> in practice quickly becomes unfavorable for application of a-CSA in deep tissue imaging, where typically many correctable modes are needed. Third, for DASH, in contrast, such problems do not arise, since the power in the test mode is independent of <italic>N</italic> and can be tuned conveniently through the depth of the corresponding grating on the SLM.</p>
</sec>
</sec>
<sec id="s5">
<title>5 Discussion and Summary</title>
<p>In this work, we have devised a method to compute a 2D phase mask whose effect on a light field is in many ways equivalent to that of a voluminous scatter medium of corresponding transport mean free path. This enables software-controlled systematic studies where the degree of scattering is controlled precisely, tunable over a large range, and manual exchange of physical scatter materials is not needed.</p>
<p>We have used this method to investigate the performance of DASH for different scales of turbidity, ranging from the &#x201c;traditional AO&#x201d; regime to the regime of multiply-scattered photons, and compared it to an alternative approach which we call Amplified Continuous Sequential Algorithm (a-CSA). a-CSA operates on a square-superpixel mode basis and is shown to work also in low-SNR situations (unlike regular CSA) due to an increased relative power in the test mode. In practice, this amplification of the test superpixel can be achieved by attenuating all other superpixels, e.g., by adding phase gratings of defined modulation amplitude. While easy to implement, this approach works only for a limited number of correctable modes due to its inefficient use of light power, and only for a-CSA superpixels consisting of a sufficient number of physical SLM pixels.</p>
<p>We found in both numerical simulations and experiments that for low turbidity DASH initially improves more slowly than a-CSA, pointing to effects of the phase-only light shaping principle behind DASH. This initial speed disadvantage of DASH disappears for increasing turbidity. Furthermore, we observed that independent of the degree of turbidity, from the end of the second iteration onwards, DASH outperforms a-CSA. We attribute this performance advantage to the fact that DASH can always exploit the full resolution of the SLM, hence minimizes diffraction losses compared to superpixel methods such as a-CSA.</p>
<p>As an overall tendency, we observed that the signal enhancement achievable using DASH or a-CSA grows for increasing degrees of turbidity, highlighting the potential benefits these algorithms promise for nonlinear imaging in highly scattering environments.</p>
<p>We have illustrated the practical improvements these methods can yield for two-photon microscopy by the example of GFP-microglia 200&#xa0;&#x3bc;m deep inside mouse brain tissue. Furthermore, we emphasize that a-CSA and DASH were performed using identical hardware on the same experimental setup. Therefore, depending on the task, it is possible to execute either (or a combination) of both routines on a pure software level.</p>
<p>A critical challenge for wavefront correction in highly scattering samples remains the size of the corrected field of view (&#x201c;isoplanatic patch&#x201d;, IP). For fixed brain tissue, as shown in <xref ref-type="fig" rid="F5">Figure 5</xref>, IP diameters are on the order of 20&#x2013;30&#xa0;&#x3bc;m, whereas live brain tissue tends to scatter photons at larger angles, decreasing the IP size to just a few &#x3bc;m [<xref ref-type="bibr" rid="B14">14</xref>]. Several strategies have been proposed to increase IPs, including multi-conjugated AO [<xref ref-type="bibr" rid="B25">25</xref>&#x2013;<xref ref-type="bibr" rid="B27">27</xref>] or the application of individual corrections for many sample points [<xref ref-type="bibr" rid="B13">13</xref>, <xref ref-type="bibr" rid="B14">14</xref>, <xref ref-type="bibr" rid="B21">21</xref>]. Whether a-CSA and DASH may benefit from such strategies in terms of the IP size is an interesting question for future studies.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<title>Data Availability Statement</title>
<p>The raw data supporting the conclusion of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec id="s7">
<title>Author Contributions</title>
<p>All authors contributed to conceiving the experiment. MS conducted the experiments. MS and AJ wrote the manuscript. AJ performed the numerical simulations. NB contributed to <xref ref-type="sec" rid="s2">Section 2</xref> and the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>The authors acknowledge funding from the Austrian Science Fund (FWF) under the Grants Nos. P32146-N36, M 3060-NBL, I3984.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ack>
<p>We would like to thank Kai K. &#x2009;Kummer and Jeiny Luna Choconta, Institute for Physiology (Med. Univ. Innsbruck), for preparing the biological samples.</p>
</ack>
<sec id="s11">
<title>Supplementary Material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fphy.2022.884053/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fphy.2022.884053/full&#x23;supplementary-material</ext-link>
</p>
<supplementary-material xlink:href="Video2.AVI" id="SM1" mimetype="application/AVI" xmlns:xlink="http://www.w3.org/1999/xlink"/>
<supplementary-material xlink:href="Video3.AVI" id="SM2" mimetype="application/AVI" xmlns:xlink="http://www.w3.org/1999/xlink"/>
<supplementary-material xlink:href="DataSheet1.PDF" id="SM3" mimetype="application/PDF" xmlns:xlink="http://www.w3.org/1999/xlink"/>
<supplementary-material xlink:href="Video1.AVI" id="SM4" mimetype="application/AVI" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<fn-group>
<fn id="fn1">
<label>1</label>
<p>We note that the relation (Eq. <xref ref-type="disp-formula" rid="e3">3</xref>) is consistent with the considerations made in Ref. [<xref ref-type="bibr" rid="B2">2</xref>] (see Eq. 4 therein), which lead to the derivation of the scatteringphase theorem.</p>
</fn>
<fn id="fn2">
<label>2</label>
<p>In the experiment we typically set <italic>p</italic> &#x3d; 5; in the simulations, especially for the noise-free case, we find that <italic>P</italic> can be reduced to 3 for faster computation without loss of performance.</p>
</fn>
<fn id="fn3">
<label>3</label>
<p>This also includes a minor modification to the DASH algorithm compared to Ref. [<xref ref-type="bibr" rid="B1">1</xref>].</p>
</fn>
<fn id="fn4">
<label>4</label>
<p>NB that a thin 3D fluorescent sample layer as assumed here leads to smaller signal enhancements and slower algorithm convergence than an (infinitely thin) 2D layer. In the limit of a homogeneous 3D sample volume with thickness much larger than the Rayleigh range of the focused beam, the second-order nonlinearity of TPEF imaging is insufficient for providing any signal enhancement at all [<xref ref-type="bibr" rid="B23">23</xref>].</p>
</fn>
<fn id="fn5">
<label>5</label>
<p>Note that by encoding our phase masks in the zero order and dumping power in higher orders we avoid dispersion of the femtosecond laser pulses.</p>
</fn>
<fn id="fn6">
<label>6</label>
<p>Note that these curves are often similar, but in general not identical to the signal collected during an algorithm run, as the latter results from an interference between a partly compensated and a test beam.</p>
</fn>
<fn id="fn7">
<label>7</label>
<p>For DASH we slightly increase the power in the test beam compared to before (<italic>f</italic> &#x3d; 0.3 &#x2192; 0.35), which has proven helpful in low-SNR situations [<xref ref-type="bibr" rid="B1">1</xref>].</p>
</fn>
<fn id="fn8">
<label>8</label>
<p>CSA without controlling the power in individual pixels, as in Ref. [<xref ref-type="bibr" rid="B2">2</xref>].</p>
</fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>May</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Kummer</surname>
<given-names>KK</given-names>
</name>
<name>
<surname>Kress</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Ritsch-Marte</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Jesacher</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Jesacher</surname>
<given-names>A</given-names>
</name>
</person-group>. <article-title>Fast Holographic Scattering Compensation for Deep Tissue Biological Imaging</article-title>. <source>Nat Commun</source> (<year>2021</year>) <volume>12</volume>:<fpage>1</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1364/ntm.2021.ntu1c.1</pub-id>
</citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vellekoop</surname>
<given-names>IM</given-names>
</name>
<name>
<surname>Mosk</surname>
<given-names>AP</given-names>
</name>
</person-group>. <article-title>Phase Control Algorithms for Focusing Light through Turbid media</article-title>. <source>Opt Commun</source> (<year>2008</year>) <volume>281</volume>:<fpage>3071</fpage>&#x2013;<lpage>80</lpage>. <pub-id pub-id-type="doi">10.1016/j.optcom.2008.02.022</pub-id>
</citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Oheim</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Beaurepaire</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Chaigneau</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Mertz</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Charpak</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Two-photon Microscopy in Brain Tissue: Parameters Influencing the Imaging Depth</article-title>. <source>J Neurosci Methods</source> (<year>2001</year>) <volume>111</volume>:<fpage>29</fpage>&#x2013;<lpage>37</lpage>. <pub-id pub-id-type="doi">10.1016/s0165-0270(01)00438-1</pub-id>
</citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chaigneau</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Wright</surname>
<given-names>AJ</given-names>
</name>
<name>
<surname>Poland</surname>
<given-names>SP</given-names>
</name>
<name>
<surname>Girkin</surname>
<given-names>JM</given-names>
</name>
<name>
<surname>Silver</surname>
<given-names>RA</given-names>
</name>
</person-group>. <article-title>Impact of Wavefront Distortion and Scattering on 2-photon Microscopy in Mammalian Brain Tissue</article-title>. <source>Opt Express</source> (<year>2011</year>) <volume>19</volume>:<fpage>22755</fpage>&#x2013;<lpage>74</lpage>. <pub-id pub-id-type="doi">10.1364/OE.19.022755</pub-id>
</citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jacques</surname>
<given-names>SL</given-names>
</name>
</person-group>. <article-title>Optical Properties of Biological Tissues: a Review</article-title>. <source>Phys Med Biol</source> (<year>2013</year>) <volume>58</volume>:<fpage>R37</fpage>&#x2013;<lpage>R61</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/58/11/r37</pub-id>
</citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Z</given-names>
</name>
<name>
<surname>Ding</surname>
<given-names>H</given-names>
</name>
<name>
<surname>Popescu</surname>
<given-names>G</given-names>
</name>
</person-group>. <article-title>Scattering-phase Theorem</article-title>. <source>Opt Lett</source> (<year>2011</year>) <volume>36</volume>:<fpage>1215</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1364/ol.36.001215</pub-id>
</citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Booth</surname>
<given-names>MJ</given-names>
</name>
<name>
<surname>Neil</surname>
<given-names>MAA</given-names>
</name>
<name>
<surname>Wilson</surname>
<given-names>T</given-names>
</name>
</person-group>. <article-title>New Modal Wave-Front Sensor: Application to Adaptive Confocal Fluorescence Microscopy and Two-Photon Excitation Fluorescence Microscopy</article-title>. <source>J Opt Soc Am A</source> (<year>2002</year>) <volume>19</volume>:<fpage>2112</fpage>&#x2013;<lpage>20</lpage>. <pub-id pub-id-type="doi">10.1364/JOSAA.19.002112</pub-id>
</citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Conkey</surname>
<given-names>DB</given-names>
</name>
<name>
<surname>Caravaca-Aguirre</surname>
<given-names>AM</given-names>
</name>
<name>
<surname>Piestun</surname>
<given-names>R</given-names>
</name>
</person-group>. <article-title>High-speed Scattering Medium Characterization with Application to Focusing Light through Turbid media</article-title>. <source>Opt Express</source> (<year>2012</year>) <volume>20</volume>:<fpage>1733</fpage>&#x2013;<lpage>40</lpage>. <pub-id pub-id-type="doi">10.1364/oe.20.001733</pub-id>
</citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Blochet</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Bourdieu</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Gigan</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Focusing Light through Dynamical Samples Using Fast Continuous Wavefront Optimization</article-title>. <source>Opt Lett</source> (<year>2017</year>) <volume>42</volume>:<fpage>4994</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1364/OL.42.004994</pub-id>
</citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Conkey</surname>
<given-names>DB</given-names>
</name>
<name>
<surname>Brown</surname>
<given-names>AN</given-names>
</name>
<name>
<surname>Caravaca-Aguirre</surname>
<given-names>AM</given-names>
</name>
<name>
<surname>Piestun</surname>
<given-names>R</given-names>
</name>
</person-group>. <article-title>Genetic Algorithm Optimization for Focusing through Turbid media in Noisy Environments</article-title>. <source>Opt Express</source> (<year>2012</year>) <volume>20</volume>:<fpage>4840</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1364/oe.20.004840</pub-id>
</citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Paudel</surname>
<given-names>HP</given-names>
</name>
<name>
<surname>Taranto</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Mertz</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Bifano</surname>
<given-names>T</given-names>
</name>
</person-group>. <article-title>Axial Range of Conjugate Adaptive Optics in Two-Photon Microscopy: Erratum</article-title>. <source>Opt Express</source> (<year>2015</year>) <volume>23</volume>:<fpage>27635</fpage>. <pub-id pub-id-type="doi">10.1364/OE.23.027635</pub-id>
</citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tao</surname>
<given-names>X</given-names>
</name>
<name>
<surname>Lam</surname>
<given-names>T</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Q</given-names>
</name>
<name>
<surname>Reinig</surname>
<given-names>MR</given-names>
</name>
<name>
<surname>Kubby</surname>
<given-names>J</given-names>
</name>
</person-group>. <article-title>Three-dimensional Focusing through Scattering media Using Conjugate Adaptive Optics with Remote Focusing (CAORF)</article-title>. <source>Opt Express</source> (<year>2017</year>) <volume>25</volume>:<fpage>10368</fpage>&#x2013;<lpage>83</lpage>. <pub-id pub-id-type="doi">10.1364/OE.25.010368</pub-id>
</citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Papadopoulos</surname>
<given-names>IN</given-names>
</name>
<name>
<surname>Jouhanneau</surname>
<given-names>JS</given-names>
</name>
<name>
<surname>Takahashi</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Kaplan</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Larkum</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Poulet</surname>
<given-names>J</given-names>
</name>
<etal/>
</person-group> <article-title>Dynamic Conjugate F-SHARP Microscopy</article-title>. <source>Light Sci Appl</source> (<year>2020</year>) <volume>9</volume>:<fpage>110</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1038/s41377-020-00348-x</pub-id>
</citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>May</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Kummer</surname>
<given-names>KK</given-names>
</name>
<name>
<surname>Edenhofer</surname>
<given-names>M-L</given-names>
</name>
<name>
<surname>Choconta</surname>
<given-names>JL</given-names>
</name>
<name>
<surname>Kress</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Ritsch-Marte</surname>
<given-names>M</given-names>
</name>
<etal/>
</person-group> <article-title>Simultaneous Scattering Compensation at Multiple Points in Multi-Photon Microscopy</article-title>. <source>Biomed Opt Express</source> (<year>2021</year>) <volume>12</volume>:<fpage>7377</fpage>&#x2013;<lpage>87</lpage>. <pub-id pub-id-type="doi">10.1364/boe.441604</pub-id>
</citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Kubby</surname>
<given-names>JA</given-names>
</name>
</person-group>. <source>Adaptive Optics for Biological Imaging</source>. <publisher-loc>Boca Raton, FL</publisher-loc>: <publisher-name>CRC Press</publisher-name> (<year>2013</year>).</citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Booth</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Wave Front Sensor-Less Adaptive Optics: a Model-Based Approach Using Sphere Packings</article-title>. <source>Opt Express</source> (<year>2006</year>) <volume>14</volume>:<fpage>1339</fpage>&#x2013;<lpage>52</lpage>. <pub-id pub-id-type="doi">10.1364/OE.14.001339</pub-id>
</citation>
</ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vellekoop</surname>
<given-names>IM</given-names>
</name>
<name>
<surname>Mosk</surname>
<given-names>AP</given-names>
</name>
</person-group>. <article-title>Focusing Coherent Light through Opaque Strongly Scattering media</article-title>. <source>Opt Lett</source> (<year>2007</year>) <volume>32</volume>:<fpage>2309</fpage>&#x2013;<lpage>11</lpage>. <pub-id pub-id-type="doi">10.1364/OL.32.002309</pub-id>
</citation>
</ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tang</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Germain</surname>
<given-names>RN</given-names>
</name>
<name>
<surname>Cui</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Superpenetration Optical Microscopy by Iterative Multiphoton Adaptive Compensation Technique</article-title>. <source>Proc Natl Acad Sci U.S.A</source> (<year>2012</year>) <volume>109</volume>:<fpage>8434</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1119590109</pub-id>
</citation>
</ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Papadopoulos</surname>
<given-names>IN</given-names>
</name>
<name>
<surname>Jouhanneau</surname>
<given-names>J-S</given-names>
</name>
<name>
<surname>Poulet</surname>
<given-names>JFA</given-names>
</name>
<name>
<surname>Judkewitz</surname>
<given-names>B</given-names>
</name>
</person-group>. <article-title>Scattering Compensation by Focus Scanning Holographic Aberration Probing (F-SHARP)</article-title>. <source>Nat Photon</source> (<year>2017</year>) <volume>11</volume>:<fpage>116</fpage>&#x2013;<lpage>23</lpage>. <pub-id pub-id-type="doi">10.1038/nphoton.2016.252</pub-id>
</citation>
</ref>
<ref id="B20">
<label>20.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rodr&#xed;guez</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>A</given-names>
</name>
<name>
<surname>Rivera</surname>
<given-names>JA</given-names>
</name>
<name>
<surname>Mohr</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Liang</surname>
<given-names>Y</given-names>
</name>
<name>
<surname>Natan</surname>
<given-names>RG</given-names>
</name>
<etal/>
</person-group> <article-title>An Adaptive Optics Module for Deep Tissue Multiphoton Imaging <italic>In Vivo</italic>
</article-title>. <source>Nat Methods</source> (<year>2021</year>) <volume>18</volume>:<fpage>1259</fpage>&#x2013;<lpage>64</lpage>. <pub-id pub-id-type="doi">10.1038/s41592-021-01279-0</pub-id>
</citation>
</ref>
<ref id="B21">
<label>21.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Blochet</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Akemann</surname>
<given-names>W</given-names>
</name>
<name>
<surname>Gigan</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Bourdieu</surname>
<given-names>L</given-names>
</name>
</person-group>. <source>Fast Wavefront Shaping for Two-Photon Brain Imaging with Large Field of View Correction</source>. <comment>bioRxiv</comment> (<year>2021</year>).</citation>
</ref>
<ref id="B22">
<label>22.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hu</surname>
<given-names>Q</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Antonello</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Hailstone</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Wincott</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Turcotte</surname>
<given-names>R</given-names>
</name>
<etal/>
</person-group> <article-title>A Universal Framework for Microscope Sensorless Adaptive Optics: Generalized Aberration Representations</article-title>. <source>APL Photon</source> (<year>2020</year>) <volume>5</volume>:<fpage>100801</fpage>. <pub-id pub-id-type="doi">10.1063/5.0022523</pub-id>
</citation>
</ref>
<ref id="B23">
<label>23.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Katz</surname>
<given-names>O</given-names>
</name>
<name>
<surname>Heidmann</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Fink</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Gigan</surname>
<given-names>S</given-names>
</name>
</person-group>. <article-title>Non-invasive Single-Shot Imaging through Scattering Layers and Around Corners via Speckle Correlations</article-title>. <source>Nat Photon</source> (<year>2014</year>) <volume>8</volume>:<fpage>784</fpage>&#x2013;<lpage>90</lpage>. <pub-id pub-id-type="doi">10.1038/nphoton.2014.189</pub-id>
</citation>
</ref>
<ref id="B24">
<label>24.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bagnoud</surname>
<given-names>V</given-names>
</name>
<name>
<surname>Zuegel</surname>
<given-names>JD</given-names>
</name>
</person-group>. <article-title>Independent Phase and Amplitude Control of a Laser Beam by Use of a Single-Phase-Only Spatial Light Modulator</article-title>. <source>Opt Lett</source> (<year>2004</year>) <volume>29</volume>:<fpage>295</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1364/ol.29.000295</pub-id>
</citation>
</ref>
<ref id="B25">
<label>25.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kam</surname>
<given-names>Z</given-names>
</name>
<name>
<surname>Kner</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Agard</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Sedat</surname>
<given-names>JW</given-names>
</name>
</person-group>. <article-title>Modelling the Application of Adaptive Optics to Wide-Field Microscope Live Imaging</article-title>. <source>J Microsc</source> (<year>2007</year>) <volume>226</volume>:<fpage>33</fpage>&#x2013;<lpage>42</lpage>. <pub-id pub-id-type="doi">10.1111/j.1365-2818.2007.01751.x</pub-id>
</citation>
</ref>
<ref id="B26">
<label>26.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Simmonds</surname>
<given-names>RD</given-names>
</name>
<name>
<surname>Booth</surname>
<given-names>MJ</given-names>
</name>
</person-group>. <article-title>Modelling of Multi-Conjugate Adaptive Optics for Spatially Variant Aberrations in Microscopy</article-title>. <source>J Opt</source> (<year>2013</year>) <volume>15</volume>:<fpage>094010</fpage>. <pub-id pub-id-type="doi">10.1088/2040-8978/15/9/094010</pub-id>
</citation>
</ref>
<ref id="B27">
<label>27.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wu</surname>
<given-names>T-w.</given-names>
</name>
<name>
<surname>Cui</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>Numerical Study of Multi-Conjugate Large Area Wavefront Correction for Deep Tissue Microscopy</article-title>. <source>Opt Express</source> (<year>2015</year>) <volume>23</volume>:<fpage>7463</fpage>&#x2013;<lpage>70</lpage>. <pub-id pub-id-type="doi">10.1364/oe.23.007463</pub-id>
</citation>
</ref>
</ref-list>
</back>
</article>