<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article"><?properties manuscript?><front><journal-meta><journal-id journal-id-type="nlm-journal-id">7708433</journal-id><journal-id journal-id-type="pubmed-jr-id">22734</journal-id><journal-id journal-id-type="nlm-ta">Opt Lett</journal-id><journal-id journal-id-type="iso-abbrev">Opt Lett</journal-id><journal-title-group><journal-title>Optics letters</journal-title></journal-title-group><issn pub-type="ppub">0146-9592</issn><issn pub-type="epub">1539-4794</issn></journal-meta><article-meta><article-id pub-id-type="pmid">25360912</article-id><article-id pub-id-type="pmc">4217128</article-id><article-id pub-id-type="manuscript">NIHMS625396</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title-group><article-title>Amplitude-masked photoacoustic wavefront shaping and application in flowmetry</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Tay</surname><given-names>Jian Wei</given-names></name><xref rid="FN1" ref-type="author-notes">*</xref><xref rid="FN2" ref-type="author-notes">&#x02020;</xref></contrib><contrib contrib-type="author"><name><surname>Liang</surname><given-names>Jinyang</given-names></name><xref rid="FN2" ref-type="author-notes">&#x02020;</xref></contrib><contrib contrib-type="author"><name><surname>Wang</surname><given-names>Lihong V.</given-names></name></contrib><aff id="A1">Optical Imaging Laboratory, Department of Biomedical Engineering, Washington University in St Louis, One Brookings Drive, St Louis, MO 63130</aff></contrib-group><author-notes><corresp id="FN1"><label>*</label>Corresponding author: <email>jian.tay@colorado.edu</email>;</corresp><fn id="FN2" fn-type="equal"><label>&#x02020;</label><p>Equal contribution</p></fn></author-notes><pub-date pub-type="nihms-submitted"><day>5</day><month>9</month><year>2014</year></pub-date><pub-date pub-type="ppub"><day>1</day><month>10</month><year>2014</year></pub-date><pub-date pub-type="pmc-release"><day>03</day><month>11</month><year>2014</year></pub-date><volume>39</volume><issue>19</issue><fpage>5499</fpage><lpage>5502</lpage><permissions><copyright-statement>&#x000a9; 2014 Optical Society of America</copyright-statement><copyright-year>2014</copyright-year></permissions><abstract><p id="P1">Optical-resolution photoacoustic flowmetry allows non-invasive single-cell flow measurements. However, its operational depth is limited by optical diffusion, which prevents focusing beyond shallow depths in scattering media, as well as reducing the measurement signal-to-noise ratio (SNR). To overcome this limitation, we used binary-amplitude wavefront shaping to enhance light focusing in the presence of scattering. Here, the transmission modes that contributed constructively to the intensity at the optical focus were identified and selectively illuminated, resulting in a 14-fold intensity increase and a corresponding increase in SNR. This technique can potentially extend the operational depth of optical-resolution photoacoustic flowmetry beyond 1 mm in tissue.</p></abstract></article-meta></front><body><p id="P2">Photoacoustic flowmetry (PAF) is a non-invasive measurement technique that has been demonstrated to be useful for single-cell sensing, such as the measurement of single red blood cell flow velocities in capillaries [<xref rid="R1" ref-type="bibr">1</xref>] and the detection of circulating tumor cells [<xref rid="R2" ref-type="bibr">2</xref>]. In PAF, photoacoustic (PA) signals, which are generated upon the absorption of pulsed laser light, are used. To resolve single cells, PAF requires a high spatial resolution, which is commonly achieved using optical focusing. However, at depths beyond one optical transport mean free path (diffusive regime), light propagating in optically scattering media becomes diffused, making direct focusing impossible. This limits the operational depth of PAF to ~1 mm in soft tissue [<xref rid="R3" ref-type="bibr">3</xref>]. Optical diffusion also reduces the amount of light arriving at the region of interest, reducing the measurement signal-to-noise ratio (SNR).</p><p id="P3">One solution to this problem is to use wavefront shaping, where a spatial light modulator (SLM) is used to shape the illuminating wavefront. The distortion of the optical wavefront due to scattering can then be corrected, refocusing light within the scattering medium [<xref rid="R4" ref-type="bibr">4</xref>]. The optimal phase pattern can be determined using either iterative optimization algorithms [<xref rid="R4" ref-type="bibr">4</xref>&#x02013;<xref rid="R7" ref-type="bibr">7</xref>], or by directly measuring the so-called transmission matrix [<xref rid="R8" ref-type="bibr">8</xref>&#x02013;<xref rid="R10" ref-type="bibr">10</xref>]. In these experiments, the optical intensity at the target is typically measured directly by using a CCD camera or photodiode [<xref rid="R5" ref-type="bibr">5</xref>,<xref rid="R6" ref-type="bibr">6</xref>,<xref rid="R9" ref-type="bibr">9</xref>]. However, these methods are impractical for biological applications. Recently, the feasibility of photoacoustic-guided wavefront shaping, where the optical intensities within a scattering medium were sensed remotely using PA signals, was demonstrated [<xref rid="R10" ref-type="bibr">10</xref>&#x02013;<xref rid="R12" ref-type="bibr">12</xref>]. In this Letter, we report on a proof-of-principle demonstration showing that wavefront shaping can similarly be used to extend the operational depth of PAF into the diffusive regime.</p><p id="P4">Most wavefront shaping implementations use liquid crystal SLMs to modulate the phase of the wavefront. However, for biological applications, the length of time required to obtain the optimized phase pattern is important. The optimized phase pattern must be obtained and displayed on the SLM within the speckle decorrelation time of the object, which is on the order of milliseconds for living tissue, depending on the probing depth [<xref rid="R13" ref-type="bibr">13</xref>]. Liquid-crystal SLMs have frame rates of ~100 fps, which are much too slow. For this reason, we chose to use digital micromirror devices (DMDs), which have switching speeds up to tens of kilohertz. DMDs are binary-amplitude SLMs; each element is a micromirror that can be toggled between on or off states.</p><p id="P5">In the past, computer holograms were used to convert amplitude to phase modulation [<xref rid="R9" ref-type="bibr">9</xref>]. However, due to low diffraction efficiency, only ~20% of the incident light was usable, making DMDs impractical as phase modulators. To overcome this limitation, we make use of amplitude-modulated wavefront shaping [<xref rid="R14" ref-type="bibr">14</xref>]. In this technique, the input optical modes which do not contribute constructively to the optical focus are rejected by turning off the corresponding DMD pixels. The remaining modes therefore add constructively to form an optical focus. Previously, these optical modes were identified using the continuous sequential (CS) algorithm, where the change in the optical intensity was measured by turning a group of pixels (segment) on one at a time. However, in this case, the signal arises from just a single DMD segment, resulting in a low measurement SNR [<xref rid="R15" ref-type="bibr">15</xref>], contributing to measurement errors. Here, we used Hadamard multiplexing [<xref rid="R8" ref-type="bibr">8</xref>,<xref rid="R10" ref-type="bibr">10</xref>] to utilize the full set of DMD pixels, thereby increasing the measurement SNR over the CS algorithm. Unlike previous implementations of Hadamard multiplexing which relied on phase-shifting holography to measure the transmission matrix [<xref rid="R8" ref-type="bibr">8</xref>,<xref rid="R9" ref-type="bibr">9</xref>], we will show that an optimal transmission pattern can be obtained by only measuring the optical intensity.</p><p id="P6">We start by explaining how our measurement procedure works. An optical field mode <italic>E<sup>out</sup></italic> beyond a scattering medium is related to the input optical field by</p><p id="P7">
<disp-formula id="FD1"><label>(1)</label><mml:math id="M1" display="block" overflow="scroll"><mml:msup><mml:mi>E</mml:mi><mml:mi mathvariant="italic">out</mml:mi></mml:msup><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>N</mml:mi></mml:munderover><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:msubsup><mml:mi>E</mml:mi><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>N</mml:mi></mml:munderover><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a6;</mml:mi><mml:mi>n</mml:mi></mml:msub></mml:mrow></mml:msup></mml:mrow><mml:mo>,</mml:mo></mml:math></disp-formula> where t<sub>n</sub> is an element of the transmission matrix, with amplitude <italic>A<sub>n</sub></italic> and phase &#x003a6;<italic><sub>n</sub></italic>, and 
<inline-formula><mml:math id="M2" overflow="scroll"><mml:msubsup><mml:mi>E</mml:mi><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is the optical field of the n-th input mode, where each mode represents the field contribution from each independently controlled DMD segment. N is therefore the total number of these segments. We have also assumed that 
<inline-formula><mml:math id="M3" overflow="scroll"><mml:mo>arg</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>E</mml:mi><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> and 
<inline-formula><mml:math id="M4" overflow="scroll"><mml:mo>|</mml:mo><mml:msubsup><mml:mi>E</mml:mi><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup><mml:mo>|</mml:mo><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula>. To perform the multiplexing, we used the concept of &#x0201c;virtual elements&#x0201d;, formed by linear combinations of the DMD micromirrors using the Hadamard basis, as introduced by Herbert et al. for ultrasound transducers [<xref rid="R15" ref-type="bibr">15</xref>]. The electric field &#x003b5;<italic><sub>m</sub></italic> generated by the m-th combination is then given by</p><p id="P8">
<disp-formula id="FD2"><label>(2)</label><mml:math id="M5" display="block" overflow="scroll"><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>N</mml:mi></mml:munderover><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>A</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a6;</mml:mi><mml:mi>n</mml:mi></mml:msub></mml:mrow></mml:msup></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>B</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a8;</mml:mi><mml:mi>m</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:math></disp-formula> where the elements H<sub>mn</sub> are taken row-wise from a Hadamard matrix of order <italic>N</italic>, and <italic>B<sub>m</sub></italic> and &#x003a8;<italic><sub>m</sub></italic> are the amplitude and phase of the resultant optical field. Each element H<sub>mn</sub> is either &#x02212;1/2 or +1/2.</p><p id="P9">To measure the transmission, we displayed binary patterns on the DMD. These patterns consist of 0&#x02019;s or 1&#x02019;s, corresponding to the micromirror turned off or on. Each DMD pattern is therefore equal to the combination of the first and subsequent virtual elements, i.e., the resulting electric field is equal to &#x003b5;<sub>1</sub>+&#x003b5;<italic><sub>m</sub></italic>, which automatically defines &#x003b5;<sub>1</sub> as the reference vector. Here, &#x003b5;<sub>1</sub> is simply the resultant vector when all the DMD pixels are turned on, i.e. <italic>H</italic><sub>1</sub><italic><sub>n</sub></italic> =1. The measured intensity when the m-th pattern is displayed is then given by</p><p id="P10">
<disp-formula id="FD3"><label>(3)</label><mml:math id="M6" display="block" overflow="scroll"><mml:msub><mml:mi>I</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mspace width="0.16667em"/><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x02217;</mml:mo></mml:msup><mml:msup><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>|</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msup><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>|</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:mn>2</mml:mn><mml:mo>Re</mml:mo><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi>B</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a8;</mml:mi><mml:mi>m</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo stretchy="false">}</mml:mo><mml:mo>,</mml:mo></mml:math></disp-formula> where we have set |<italic>B</italic><sub>1</sub>| =1 and &#x003a8;<sub>1</sub>=0 without loss of generality. Note that the first two terms are constant, and consequently the measurements can be differentiated by the sign of the third term. This sign depends on the phase angle &#x003a8;<italic><sub>m</sub></italic>, which is measured with respect to the vector &#x003b5;<sub>1</sub>. Noting that 
<inline-formula><mml:math id="M7" overflow="scroll"><mml:mo>Re</mml:mo><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi mathvariant="normal">&#x003b5;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo stretchy="false">}</mml:mo><mml:mo>=</mml:mo><mml:msubsup><mml:mi mathvariant="normal">&#x02211;</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>N</mml:mi></mml:msubsup><mml:msub><mml:mi>H</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>Re</mml:mo><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a6;</mml:mi><mml:mi>n</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo stretchy="false">}</mml:mo><mml:mo>=</mml:mo><mml:mo>Re</mml:mo><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi>B</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003a8;</mml:mi><mml:mi>m</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo stretchy="false">}</mml:mo></mml:math></inline-formula>, the optimized pattern can be obtained by multiplying the measured values of <italic>I<sub>m</sub></italic> by the inverse of the Hadamard matrix, then turning on only the segments that have positive values. This is equivalent to selecting the segments that have phase &#x003a6;<italic><sub>m</sub></italic> &#x02208;[&#x02212;&#x003c0;/2,&#x003c0;/2], measured relative to &#x003a8;<sub>1</sub>, and therefore interfere constructively at the focus.</p><p id="P17">So far, we have assumed that a single output mode is measured directly, e.g., by using a photodiode. In our experiments, <italic>I<sub>m</sub></italic> is measured indirectly using an ultrasonic transducer to detect PA signals generated from the target. Nevertheless, since the PA signals are linearly related to the total energy absorbed [<xref rid="R10" ref-type="bibr">10</xref>], this procedure is still valid. In this case, the peak-to-peak PA signal amplitude is proportional to the total optical fluence <italic>F<sub>m</sub></italic> (J/m<sup>2</sup>) absorbed within the ultrasound detection volume <italic>V</italic>:
<disp-formula id="FD4"><label>(4)</label><mml:math id="M8" display="block" overflow="scroll"><mml:msub><mml:mi>p</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>&#x0221d;</mml:mo><mml:mrow><mml:mo>&#x0222b;</mml:mo><mml:mrow><mml:msub><mml:mi mathvariant="normal">&#x003bc;</mml:mi><mml:mi>a</mml:mi></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mspace width="0.16667em"/><mml:mi>d</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:mrow><mml:mo>,</mml:mo></mml:math></disp-formula> where <italic>F<sub>m</sub></italic> = &#x0222b; <italic>I<sub>m</sub></italic>(<italic>t</italic>) <italic>dt</italic> is integrated over the laser pulse time, x and y are along the transducer&#x02019;s transverse plane, z is along the light propagation direction, and &#x003bc;<sub>a</sub> is the absorption coefficient.</p><p id="P11">The optical setup of our PAF system is shown schematically in <xref rid="F1" ref-type="fig">Fig. 1</xref>. We used a 523 nm pulsed laser beam (Nd:YLF, EdgeWave, BX-series), with a pulse energy of ~800 &#x003bc;J, and a repetition rate of 1 kHz. The beam was expanded to ~2 cm in diameter to fill the aperture of the DMD (Texas Instruments, D4100; 1024&#x000d7;768 pixels), giving a pulse energy density of ~200 &#x003bc;J/cm<sup>2</sup> at the DMD surface. We note that this was the strongest pulse energy that could be handled by the DMD before we started to observe malfunctioning pixels. An aperture was also used to block stray uncontrolled light from the DMD. The beam was then reduced to 5 mm and focused on to the sample using a 10&#x000d7; objective lens (NA = 0.25). A small portion of the beam was also directed to a photodiode and used to compensate for pulse-to-pulse energy fluctuations. To mimic a blood vessel within tissue, we placed a silicone tube (Silastic; 1 mm inner diameter) ~14 cm behind a ground-glass diffuser (Thorlabs, DG10-120) as the sample. The tube was submerged in water for acoustic coupling. The PA signal was detected using a 10 MHz ultrasonic transducer (Panametrics, A315S; f# = 2, &#x02212;6 dB bandwidth = 5.5 MHz), which had a 400 &#x003bc;m transverse focal diameter, measured as the FWHM of the transducer response profile. The speckle size after the diffuser was ~440&#x02013;660 &#x003bc;m, measured using the autocorrelation of a CCD image of the speckle field [<xref rid="R16" ref-type="bibr">16</xref>], giving a single speckle within the ultrasonic focus.</p><p id="P12">The experiment was carried out in two stages: the optimization as was described previously, and measurement of particle flow. During the optimization stage, we filled the tube with black ink to mimic homogeneous absorption in flowing blood. We divided the DMD into 1024 (32&#x000d7;32) independent segments, with each segment consisting of 32&#x000d7;24 micromirrors. The 1024 patterns required were generated from a Hadamard matrix of the corresponding order. Each pattern was displayed on the DMD, and the resulting PA signals were amplified 100&#x000d7; (Minicircuits, ZFL-500LN), and measured with an oscilloscope (Tektronix, DPO2024). Initially, no PA signal was detected using single-shot measurements, and averaging was required. The PA signal was averaged over 64 acquisitions, increasing the SNR to 3.9. The SNR was measured by calculating the ratio of the PA signal amplitude and the standard deviation of the noise&#x02014;acquired when no light was present. <xref rid="F2" ref-type="fig">Fig. 2(a)</xref> shows the first 100 PA signal amplitudes along with representative binary patterns. The measured PA signal amplitudes were then inverse Hadamard transformed to calculate the optimal pattern. We compared the PA signal from the optimal pattern with the PA signal generated by turning all the segments on (uniform), and from a randomized pattern with the same number of segments turned on. Note that the randomized pattern generates a PA signal that is ~2&#x000d7; smaller compared to the signal when all the DMD pixels are turned on. As shown in <xref rid="F2" ref-type="fig">Fig. 2(b)</xref>, the optimized PA signal amplitude was 14&#x000d7; larger compared to the randomized pattern, and 6.5&#x000d7; larger compared to the uniform pattern. At first glance, this result may appear counter-intuitive; an increase in optical intensity was obtained despite approximately half the micromirrors being turned off in the optimal pattern, resulting in half as much total incident light delivered on the sample. Nevertheless, the intensity was increased because we have selected the segments which added constructively at the transducer focus [<xref rid="R14" ref-type="bibr">14</xref>].</p><p id="P13">The expected intensity increase compared to the randomized pattern can be estimated by [<xref rid="R14" ref-type="bibr">14</xref>]</p><disp-formula id="FD5"><label>(5)</label><mml:math id="M9" display="block" overflow="scroll"><mml:mi mathvariant="normal">&#x003b7;</mml:mi><mml:mo>&#x02248;</mml:mo><mml:mn>1</mml:mn><mml:mo>+</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi mathvariant="normal">&#x003c0;</mml:mi></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mi>N</mml:mi><mml:mn>2</mml:mn></mml:mfrac><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:math></disp-formula><p id="P14"><italic>N</italic> =1024 in our experiment, and hence, the expected increase was ~163, assuming that only a single output mode was measured. The intensity increase is expected to be reduced proportionally by the number of modes within the detection volume [<xref rid="R10" ref-type="bibr">10</xref>]. The lower actual improvement obtained was most likely due to the poor SNR in the measurement stage, as well as uneven DMD illumination (the optical intensity varied by as much as 2&#x000d7; due to the high order laser output modes).</p><p id="P15">After optimization, the single-shot SNR was increased to ~8, easily sufficient to enable flow measurements. Thus, in the second stage, we replaced the black ink with an aqueous suspension of microspheres (Phosphorex, 1500KR, Red Polystyrene), which had an average diameter of 500 &#x003bc;m (variation ~10%), chosen to match the detection volume. We note that the microspheres were strongly absorbing, and generated broadband PA signals. The flow speed of the suspension through the tube was controlled using a syringe pump (Braintree Scientific, BSP-99M), set between 0.29 and 1.76 mm/s, which is comparable to capillary blood flows [<xref rid="R17" ref-type="bibr">17</xref>]. The speed of the particles in the suspension was measured using PA correlation spectroscopy [<xref rid="R1" ref-type="bibr">1</xref>]: first, a series of PA signals (A-lines), detected by the ultrasonic transducer as the particles traversed the generated optical focal spot, were amplified 100&#x000d7; as before, then measured using a 12-bit digitizer card (AlazarTech, ATS9350) at a sampling rate of 500 MS/s. Each A-line was recorded from the PA signal generated by a single laser pulse (single-shot) (see Media 1 and 2). The peak-to-peak amplitude of each PA A-line in the series was then calculated and used as one data point of the &#x0201c;slow-time&#x0201d; profile [<xref rid="R1" ref-type="bibr">1</xref>,<xref rid="R18" ref-type="bibr">18</xref>]. This &#x0201c;slow-time&#x0201d; profile refers to the millisecond-scale measurement time at each laser pulse, as opposed to the fast time, which is the microsecond-scale PA flight time in each A-line. This slow-time profile was then low-pass filtered numerically, with a cutoff frequency of 3 Hz. For comparison, <xref rid="F3" ref-type="fig">Fig. 3</xref> shows the measured slow-time PA profiles when the syringe pump was set to 0.58 mm/s, and with either the uniformly on or the optimal pattern displayed. As can be seen in <xref rid="F3" ref-type="fig">Fig. 3(a)</xref>, even with all the DMD micromirrors turned on, there was insufficient SNR for single-shot measurements. However, as shown in <xref rid="F3" ref-type="fig">Fig. 3(b)</xref>, after the optimization, the increased SNR allowed the particles to be clearly detected. We then calculated the normalized autocorrelation function <italic>G</italic>(&#x003c4;) of each slow-time profile, which is related to the flow speed by [<xref rid="R1" ref-type="bibr">1</xref>]</p><p id="P16">
<disp-formula id="FD6"><label>(6)</label><mml:math id="M10" display="block" overflow="scroll"><mml:mi>G</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="normal">&#x003c4;</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mo>exp</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mfrac><mml:mi mathvariant="normal">&#x003c4;</mml:mi><mml:msub><mml:mi mathvariant="normal">&#x003c4;</mml:mi><mml:mi>f</mml:mi></mml:msub></mml:mfrac></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mo>,</mml:mo></mml:math></disp-formula> where &#x003c4; is the slow time, and &#x003c4;<italic><sub>f</sub></italic> =<italic>r</italic><sub>0</sub>/<italic>v<sub>f</sub></italic> is the decay constant, given by the ratio of the detection spot size <italic>r</italic><sub>0</sub> and the particle flow speed <italic>v<sub>f</sub></italic>. The detection spot size 
<inline-formula><mml:math id="M11" overflow="scroll"><mml:msub><mml:mi>r</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:msubsup><mml:mi>r</mml:mi><mml:mi>p</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>U</mml:mi><mml:mi>S</mml:mi></mml:mrow><mml:mn>2</mml:mn></mml:msubsup></mml:mrow></mml:msqrt></mml:math></inline-formula> is given by the convolution of the particle diameter <italic>r<sub>p</sub></italic> and the generated optical spot size, which is assumed to be equal to the full-width at half maximum of the transducer detection sensitivity <italic>r<sub>US</sub></italic>. To obtain <italic>v<sub>f</sub></italic>, the slow-time profile of each particle was fitted to <xref rid="FD6" ref-type="disp-formula">Eq. (6)</xref>. As shown in <xref rid="F4" ref-type="fig">Fig. 4</xref>, the measured flow speeds and the preset speeds are in agreement. The variation in the measured speed is mainly due to the variation in particle size. In addition, the larger particles tended to sink and drag along the bottom of the tube.</p><p id="P18">In conclusion, we have demonstrated that the measurement SNR of PAF can be improved using wavefront shaping techniques. By using binary amplitude masking, an increase in intensity of 14&#x000d7; compared to the initial diffuse illumination was obtained. This intensity increase gave a corresponding increase in measurement SNR, readily allowing single particle flow speeds to be measured. This technique can potentially extend the operational depth of PA flowmetry beyond 1 mm. There are two main challenges that need to be overcome before our technique can be used with real tissue. First, the optimization took ~2 hours, due mainly to the averaging required to obtain the PA signal. Due to this, we used a ground glass diffuser as the scattering medium. However, this is not a fundamental limitation, as the DMD is capable of operating at 22 kHz. Therefore, with sufficient SNR, the measurement time could have been reduced to 47 ms, which is more practical for biological applications. Second, in this experiment, the speckles are relatively large. In deep tissue, the speckle size is comparable to the laser wavelength, giving approximately 0.5 million speckles within the detection volume. State-of-the-art DMDs currently have resolutions of ~2 million pixels and cannot provide adequate control. However, the number of detected (and therefore controlled) speckles could be reduced by using nonlinear PA signals [<xref rid="R7" ref-type="bibr">7</xref>] or by filtering the transducer response [<xref rid="R19" ref-type="bibr">19</xref>,<xref rid="R20" ref-type="bibr">20</xref>].</p></body><back><ack id="S1"><p>We would like to thank Yong Zhou for experimental assistance, Prof. James Ballard for assistance in proofreading the manuscript. This work was sponsored in part by the National Institutes of Health grants DP1 EB016986 (Director&#x02019;s Pioneer Award), R01 CA186567 (Director&#x02019;s Transformative Research Award), R01CA157277, and R01 CA159959. L. V. Wang has a financial interest in Microphotoacoustics, Inc. and Endra, Inc., which, however, did not support this work.</p></ack><ref-list><ref id="R1"><label>1</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Chen</surname><given-names>SL</given-names></name><name><surname>Xie</surname><given-names>Z</given-names></name><name><surname>Carson</surname><given-names>PL</given-names></name><name><surname>Wang</surname><given-names>X</given-names></name><name><surname>Guo</surname><given-names>LJ</given-names></name></person-group><article-title>In vivo flow speed measurement of capillaries by photoacoustic correlation spectroscopy</article-title><source>Opt Lett</source><volume>36</volume><fpage>4017</fpage><year>2011</year><pub-id pub-id-type="pmid">22002371</pub-id></element-citation></ref><ref id="R2"><label>2</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Galanzha</surname><given-names>EI</given-names></name><name><surname>Shashkov</surname><given-names>EV</given-names></name><name><surname>Kelly</surname><given-names>T</given-names></name><name><surname>Kim</surname><given-names>JW</given-names></name><name><surname>Yang</surname><given-names>L</given-names></name><name><surname>Zharov</surname><given-names>VP</given-names></name></person-group><article-title>In vivo magnetic enrichment and multiplex photoacoustic detection of circulating tumour cells</article-title><source>Nat Nanotechnol</source><volume>4</volume><fpage>855</fpage><lpage>860</lpage><year>2009</year><pub-id pub-id-type="pmid">19915570</pub-id></element-citation></ref><ref id="R3"><label>3</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname><given-names>LV</given-names></name><name><surname>Hu</surname><given-names>S</given-names></name></person-group><article-title>Photoacoustic Tomography: In Vivo Imaging from Organelles to Organs</article-title><source>Science</source><volume>335</volume><fpage>1458</fpage><lpage>1462</lpage><year>2012</year><pub-id pub-id-type="pmid">22442475</pub-id></element-citation></ref><ref id="R4"><label>4</label><element-citation publication-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><volume>32</volume><fpage>2309</fpage><lpage>2311</lpage><year>2007</year><pub-id pub-id-type="pmid">17700768</pub-id></element-citation></ref><ref id="R5"><label>5</label><element-citation publication-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><volume>281</volume><fpage>3071</fpage><lpage>3080</lpage><year>2008</year></element-citation></ref><ref id="R6"><label>6</label><element-citation publication-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><volume>20</volume><fpage>4840</fpage><lpage>4849</lpage><year>2012</year><pub-id pub-id-type="pmid">22418290</pub-id></element-citation></ref><ref id="R7"><label>7</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Tay</surname><given-names>JW</given-names></name><name><surname>Lai</surname><given-names>P</given-names></name><name><surname>Suzuki</surname><given-names>Y</given-names></name><name><surname>Wang</surname><given-names>LV</given-names></name></person-group><article-title>Ultrasonically encoded wavefront shaping for focusing into random media</article-title><source>Sci Rep</source><volume>4</volume><year>2014</year></element-citation></ref><ref id="R8"><label>8</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Popoff</surname><given-names>SM</given-names></name><name><surname>Lerosey</surname><given-names>G</given-names></name><name><surname>Carminati</surname><given-names>R</given-names></name><name><surname>Fink</surname><given-names>M</given-names></name><name><surname>Boccara</surname><given-names>AC</given-names></name><name><surname>Gigan</surname><given-names>S</given-names></name></person-group><article-title>Measuring the Transmission Matrix in Optics: An Approach to the Study and Control of Light Propagation in Disordered Media</article-title><source>Phys Rev Lett</source><volume>104</volume><fpage>100601</fpage><year>2010</year><pub-id pub-id-type="pmid">20366410</pub-id></element-citation></ref><ref id="R9"><label>9</label><element-citation publication-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><volume>20</volume><fpage>1733</fpage><lpage>1740</lpage><year>2012</year><pub-id pub-id-type="pmid">22274516</pub-id></element-citation></ref><ref id="R10"><label>10</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Chaigne</surname><given-names>T</given-names></name><name><surname>Katz</surname><given-names>O</given-names></name><name><surname>Boccara</surname><given-names>AC</given-names></name><name><surname>Fink</surname><given-names>M</given-names></name><name><surname>Bossy</surname><given-names>E</given-names></name><name><surname>Gigan</surname><given-names>S</given-names></name></person-group><article-title>Controlling light in scattering media non-invasively using the photoacoustic transmission matrix</article-title><source>Nat Photonics</source><volume>8</volume><fpage>58</fpage><lpage>64</lpage><year>2014</year></element-citation></ref><ref id="R11"><label>11</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kong</surname><given-names>F</given-names></name><name><surname>Silverman</surname><given-names>RH</given-names></name><name><surname>Liu</surname><given-names>L</given-names></name><name><surname>Chitnis</surname><given-names>PV</given-names></name><name><surname>Lee</surname><given-names>KK</given-names></name><name><surname>Chen</surname><given-names>YC</given-names></name></person-group><article-title>Photoacoustic-guided convergence of light through optically diffusive media</article-title><source>Opt Lett</source><volume>36</volume><fpage>2053</fpage><lpage>2055</lpage><year>2011</year><pub-id pub-id-type="pmid">21633446</pub-id></element-citation></ref><ref id="R12"><label>12</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lai</surname><given-names>P</given-names></name><name><surname>Wang</surname><given-names>L</given-names></name><name><surname>Tay</surname><given-names>JW</given-names></name><name><surname>Wang</surname><given-names>LV</given-names></name></person-group><article-title>Nonlinear photoacoustic wavefront shaping (PAWS) for single speckle-grain optical focusing in scattering media</article-title><comment>ArXiv14020816 Phys</comment><year>2014</year></element-citation></ref><ref id="R13"><label>13</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lev</surname><given-names>A</given-names></name><name><surname>Sfez</surname><given-names>B</given-names></name></person-group><article-title>In vivo demonstration of the ultrasound-modulated light technique</article-title><source>J Opt Soc Am A</source><volume>20</volume><fpage>2347</fpage><lpage>2354</lpage><year>2003</year></element-citation></ref><ref id="R14"><label>14</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Akbulut</surname><given-names>D</given-names></name><name><surname>Huisman</surname><given-names>TJ</given-names></name><name><surname>van Putten</surname><given-names>EG</given-names></name><name><surname>Vos</surname><given-names>WL</given-names></name><name><surname>Mosk</surname><given-names>AP</given-names></name></person-group><article-title>Focusing light through random photonic media by binary amplitude modulation</article-title><source>Opt Express</source><volume>19</volume><fpage>4017</fpage><lpage>4029</lpage><year>2011</year><pub-id pub-id-type="pmid">21369229</pub-id></element-citation></ref><ref id="R15"><label>15</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Herbert</surname><given-names>E</given-names></name><name><surname>Pernot</surname><given-names>M</given-names></name><name><surname>Montaldo</surname><given-names>G</given-names></name><name><surname>Fink</surname><given-names>M</given-names></name><name><surname>Tanter</surname><given-names>M</given-names></name></person-group><article-title>Energy-based adaptive focusing of waves: application to noninvasive aberration correction of ultrasonic wavefields</article-title><source>IEEE Trans Ultrason Ferroelectr Freq Control</source><volume>56</volume><fpage>2388</fpage><lpage>2399</lpage><year>2009</year><pub-id pub-id-type="pmid">19942526</pub-id></element-citation></ref><ref id="R16"><label>16</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Piederri&#x000e8;re</surname><given-names>Y</given-names></name><name><surname>Cariou</surname><given-names>J</given-names></name><name><surname>Guern</surname><given-names>Y</given-names></name><name><surname>Le Jeune</surname><given-names>B</given-names></name><name><surname>Le Brun</surname><given-names>G</given-names></name><name><surname>Lotrian</surname><given-names>J</given-names></name></person-group><article-title>Scattering through fluids: speckle size measurement and Monte Carlo simulations close to and into the multiple scattering</article-title><source>Opt Express</source><volume>12</volume><fpage>176</fpage><lpage>188</lpage><year>2004</year><pub-id pub-id-type="pmid">19471524</pub-id></element-citation></ref><ref id="R17"><label>17</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>St&#x000fc;cker</surname><given-names>M</given-names></name><name><surname>Baier</surname><given-names>V</given-names></name><name><surname>Reuther</surname><given-names>T</given-names></name><name><surname>Hoffmann</surname><given-names>K</given-names></name><name><surname>Kellam</surname><given-names>K</given-names></name><name><surname>Altmeyer</surname><given-names>P</given-names></name></person-group><article-title>Capillary Blood Cell Velocity in Human Skin Capillaries Located Perpendicularly to the Skin Surface: Measured by a New Laser Doppler Anemometer</article-title><source>Microvasc Res</source><volume>52</volume><fpage>188</fpage><lpage>192</lpage><year>1996</year><pub-id pub-id-type="pmid">8901447</pub-id></element-citation></ref><ref id="R18"><label>18</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Liang</surname><given-names>J</given-names></name><name><surname>Zhou</surname><given-names>Y</given-names></name><name><surname>Maslov</surname><given-names>KI</given-names></name><name><surname>Wang</surname><given-names>LV</given-names></name></person-group><article-title>Cross-correlation-based transverse flow measurements using optical resolution photoacoustic microscopy with a digital micromirror device</article-title><source>J Biomed Opt</source><volume>18</volume><fpage>096004</fpage><lpage>096004</lpage><year>2013</year><pub-id pub-id-type="pmid">24002191</pub-id></element-citation></ref><ref id="R19"><label>19</label><element-citation publication-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>Dove</surname><given-names>JD</given-names></name><name><surname>Ju</surname><given-names>H</given-names></name><name><surname>Murray</surname><given-names>TW</given-names></name><name><surname>Piestun</surname><given-names>R</given-names></name></person-group><article-title>Super-resolution photoacoustic imaging through a scattering wall</article-title><comment>ArXiv13105736 Phys</comment><year>2013</year></element-citation></ref><ref id="R20"><label>20</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Chaigne</surname><given-names>T</given-names></name><name><surname>Katz</surname><given-names>O</given-names></name><name><surname>Gateau</surname><given-names>J</given-names></name><name><surname>Boccara</surname><given-names>C</given-names></name><name><surname>Gigan</surname><given-names>S</given-names></name><name><surname>Bossy</surname><given-names>E</given-names></name></person-group><article-title>Improving photoacoustic-guided focusing in scattering media by spectrally filtered detection</article-title><comment>ArXiv:1310.7535 Phys</comment><year>2013</year></element-citation></ref></ref-list></back><floats-group><fig id="F1" orientation="portrait" position="float"><label>FIG 1</label><caption><p>Schematic representation of the optical system. BS: beam sampler, CL: collimating lenses, DMD: digital micromirror device, OL: 10&#x000d7; objective lens, PC: computer, PD: photodiode, and UST: ultrasonic transducer.</p></caption><graphic xlink:href="nihms625396f1"/></fig><fig id="F2" orientation="portrait" position="float"><label>FIG 2</label><caption><p>(a) PA signal amplitudes obtained during the measurement stage for the first 100 Hadamard patterns. Insets: 10-th and 59-th patterns (b) The PA signal generated by the optimized pattern (red, solid line) was increased by 14&#x000d7; over the randomized pattern (blue, dotted line), and 6.5&#x000d7; over the uniform pattern (green, solid line). The PA signals were normalized so the randomized signal amplitude is unity. Insets: Patterns displayed on DMD.</p></caption><graphic xlink:href="nihms625396f2"/></fig><fig id="F3" orientation="portrait" position="float"><label>FIG 3</label><caption><p>Slow-time PA profiles for (a) a uniform pattern (all on) and (b) the optimized pattern displayed on the DMD. The raw single-shot data (yellow) was filtered at 3 Hz (blue). The insets show the particles within the tube (Media 1 and 2, respectively). The position of the transducer focus is indicated by the white, dotted line. The position of the first particle is indicated by the red arrows. Note that the signal in (a) is similar to the noise level in (b).</p></caption><graphic xlink:href="nihms625396f3"/></fig><fig id="F4" orientation="portrait" position="float"><label>FIG 4</label><caption><p>Flow speed measured with different settings of the syringe pump, using the optimized DMD pattern. The error bars indicate the standard deviation. The variation is due to different particle sizes. The red line shows the expected relationship between the preset and measured flow speeds.</p></caption><graphic xlink:href="nihms625396f4"/></fig></floats-group></article>