• Photonics Research
  • Vol. 9, Issue 2, 202 (2021)
Huanhao Li1、2、†, Chi Man Woo1、2、†, Tianting Zhong1、2, Zhipeng Yu1、2, Yunqi Luo3, Yuanjin Zheng3, Xin Yang4, Hui Hui4、5、*, and Puxiang Lai1、2、6、*
Author Affiliations
  • 1Department of Biomedical Engineering, The Hong Kong Polytechnic University, Hong Kong SAR, China
  • 2The Hong Kong Polytechnic University Shenzhen Research Institute, Shenzhen, China
  • 3School of Electrical and Electronics Engineering, Nanyang Technological University, Singapore, Singapore
  • 4CAS Key Laboratory of Molecular Imaging, Institute of Automation, Chinese Academy of Sciences, Beijing, China
  • 5e-mail: hui.hui@ia.ac.cn
  • 6e-mail: puxiang.lai@polyu.edu.hk
  • show less
    DOI: 10.1364/PRJ.412884 Cite this Article Set citation alerts
    Huanhao Li, Chi Man Woo, Tianting Zhong, Zhipeng Yu, Yunqi Luo, Yuanjin Zheng, Xin Yang, Hui Hui, Puxiang Lai. Adaptive optical focusing through perturbed scattering media with a dynamic mutation algorithm[J]. Photonics Research, 2021, 9(2): 202 Copy Citation Text show less

    Abstract

    Optical imaging through or inside scattering media, such as multimode fiber and biological tissues, has a significant impact in biomedicine yet is considered challenging due to the strong scattering nature of light. In the past decade, promising progress has been made in the field, largely benefiting from the invention of iterative optical wavefront shaping, with which deep-tissue high-resolution optical focusing and hence imaging becomes possible. Most of the reported iterative algorithms can overcome small perturbations on the noise level but fail to effectively adapt beyond the noise level, e.g., sudden strong perturbations. Reoptimizations are usually needed for significant decorrelation to the medium since these algorithms heavily rely on the optimization performance in the previous iterations. Such ineffectiveness is probably due to the absence of a metric that can gauge the deviation of the instant wavefront from the optimum compensation based on the concurrently measured optical focusing. In this study, a square rule of binary-amplitude modulation, directly relating the measured focusing performance with the error in the optimized wavefront, is theoretically proved and experimentally validated. With this simple rule, it is feasible to quantify how many pixels on the spatial light modulator incorrectly modulate the wavefront for the instant status of the medium or the whole system. As an example of application, we propose a novel algorithm, the dynamic mutation algorithm, which has high adaptability against perturbations by probing how far the optimization has gone toward the theoretically optimal performance. The diminished focus of scattered light can be effectively recovered when perturbations to the medium cause a significant drop in the focusing performance, which no existing algorithms can achieve due to their inherent strong dependence on previous optimizations. With further improvement, the square rule and the new algorithm may boost or inspire many applications, such as high-resolution optical imaging and stimulation, in instable or dynamic scattering environments.

    1. INTRODUCTION

    Optical focusing through or within scattering media has been long desired yet has been considered challenging until the invention of optical wavefront shaping [1,2]. As reported so far, wavefront shaping techniques can be categorized into optical phase conjugation (OPC) [36] and iterative wavefront shaping (including the transmission matrix measurement method) [79]. OPC can achieve rapid optical focusing (1  ms), but diffusive light can only be focused back to the original light source, and the system requires accurate alignment to fulfill rigorous phase conjugation. In comparison, iterative wavefront shaping can function more freely, even though more iterations and measurements are needed. With a much simpler setup to control the light in a larger field of view, iterative wavefront shaping allows arbitrary image transmission [10] and raster scanning of the focal point [11] through/inside scattering media. In this technology, photons are modulated by a spatial light modulator (SLM) before they are multiply scattered and become diffusive in the medium. A series of modulation patterns is displayed on the SLM under the control of an iterative optimization algorithm, and an optimal phase pattern is obtained when the feedback signal is maximized, indicating that the scattering-induced phase distortions are compensated as much as possible [1214]. This technology has broad applications in biomedicine, for instance, in deep tissue imaging [6,15], phototherapy [16], laser surgery, and photoacoustic imaging [8]. Moreover, wavefront shaping has been used to control the light transmission through a multimode fiber (MMF), in which speckles arise due to the intermodal interference and mode dispersion [17,18]. MMF-based biomedical applications, such as endoscopic imaging [19,20] and optogenetics [21,22], are therefore progressively developed. Demonstrations based on MMF for wavefront shaping are therefore of interest since all these applications might be affected by the perturbations to the MMF on different levels, including consistently environmental noises (e.g., temperature change, pressure) and sudden strong perturbations (e.g., mechanical disturbances or biological motions). Those perturbations are due to the regular and/or irregular motion of the scattering medium or the system. Such instability is also a major factor that impedes wavefront-shaping-assisted MMF from wider applications, since the modulated optical field through the MMF will accordingly decorrelate. The decorrelation essentially indicates that the transmission matrix (TM) of the MMF is highly susceptible to perturbations, such as bending, twisting, or temperature change [23,24].

    To combat against the instability, a carefully designed setup can be utilized to separate the target photon from the perturbations due to the instable medium [25]. On the other hand, an efficient optimization algorithm for wavefront shaping is also required. Various algorithms have been reported and discussed, such as the continuous sequential algorithm (CSA) [26,27], the stepwise sequential algorithm (SSA) [26], the partitioning algorithm (PA) [26], the genetic algorithm (GA) [9,2830], particle swarm optimization (PSO) [3133], the simulated annealing algorithm (SA) [34,35], and some artificial-intelligence-assisted algorithms [3638]. These methods have realized superior light focusing and even noise-resistance ability. But their optimization mechanisms originate from numerical optimization without specific consideration about the physics behind the strong scattering process. These methods heavily rely on (or learn from) the net performance accumulated from previous iterations, especially the GA, which needs a large pool containing many random phase/amplitude masks to initiate optimization. The “learning experience” is highly specific to the current status of the medium or the system, and hence the optimization can merely adapt and generalize to the subtle instability of the medium, e.g., on the environmental noise level [28]. Once the perturbations to the medium are further strengthened beyond the noise level, e.g.,  a sudden perturbation, the transmission matrix of the medium may be altered significantly, and the resultant optical focus probably fades or even disappears. In this regard, another optimization is inevitable since the modulation patterns optimized in previous steps (without perturbations) are now weakly correlated with the new optimization condition that matches the state of the perturbed medium. An adaptive optimization algorithm is therefore desired, aiming to avoid strong dependency on the optimization from previous iterations.

    Probably the fact that existing algorithms are less adaptive to perturbations is because of the absence of a practical metric that can directly relate the instant focusing status with the accuracy of the optimized wavefront. Such possibility is theoretically explored in this study based on the fully developed speckle patterns, which can be easily observed within or behind strong scattering media, such as an MMF or biological tissue. The intensity of a fully developed speckle pattern is governed by the negative exponential decay. As a result, phasors or elements in the corresponding TM of the medium follow a circular Gaussian distribution as discussed by Goodman [39]. Based on this plain assumption, we derive and define a metric called error rate (denoted as r), specific for the binary-amplitude modulation, to estimate how many pixels on the SLM are wrongly set based on the concurrently measured optical focusing: r is physically related to the focusing performance as measured by peak-to-background ratio (PBR) by a simple square rule. This metric can imply how far the optimization has gone towards the theoretically optimal phase compensation, namely, the ideal single-point focusing. Therefore, based on the real-time probed error rate instead of parameters inherited or accumulated from previous iterations, a novel algorithm called the dynamic mutation algorithm (DMA) is developed in this study as an application of the proposed practical metric. The optimization based on the error rate can automatically adapt strong perturbations: compared with other algorithms, the proposed DMA is advantageous, in both simulations and experiments, by its high adaptability and unique recovery ability against dynamic changes. Also, the diminished focus under perturbations (for example, twisting an MMF) can be effectively regained without additional operations, such as repeating the iterative optimization. With such a guiding metric, the new algorithm may inspire further optimization of optical focusing in dynamic media from a practical perspective and boost more applications of wavefront shaping in living biological tissue.

    2. PRINCIPLE

    The DMA is an optimization method based on real-time experimental data instead of results from previous iterations, leading to high adaptability to dynamic changes. The key of the algorithm is to estimate the error rate of the corresponding amplitude mask, which implies the extent that the measured results deviate from the theoretical one, and then guide the optimization towards the optimal solution. In this section, we will elucidate the concept of the error rate and the DMA, followed by how the error rate can be used to modify the amplitude masks to achieve adaptive focusing. The steps involved in the optimization will also be explained.

    A. Error Rate and Square Rule

    Beginning from the ideal focusing, the optimized wavefront, modulated by a binary-amplitude mask, is unique due to the deterministic transmission matrix of a medium (T), with elements tmn. For simplicity, the input optical field is considered a plane wave (with all phases set to zero) and modulated by a binary-amplitude-only SLM, i.e., digital micromirror devices (DMDs). Denoting the optimal wavefront Eop,1=[e1,,eN]T as the optimal modulation for optical focusing at the first output channel, the optical field (Uf,1) with the first output channel focused is governed by Uf,1=TEop,1=[t11t1Ntm1tmntmNtM1tMN][e1eneN]=[upeakubg,mubg,M],where upeak and ubg represent the optical field of the focus (with peak intensity) and the nonfocal regions (the background). Then, by dividing the N (N1) input channels into two parts with ratio r(0r1), i.e., rN and (1r)N, the peak intensity at the optical focusing (upeak) can be formulated as |upeak|2=|i=1Nt1iei|2=|p=1Nrt1pep+q=rN+1Nt1qeq|2=|rNt1pep+(1r)t1qeq|2,where is the operator of the ensembled average. Since the total input channels are randomly divided into two parts, the indices p and q indicate the reordered elements for two divisions: rN input channels, picked from the total N input channels, are reordered with index p; the rest of the (1r)N input channels are reordered with index q. Considering the binary-amplitude modulation, the optimal amplitude of the elements in Eop,1 is determined by the first row in T and element (ei) and only turned “on” if the real part of t1i, denoted as Ri, is greater than zero: ei={1,0,Ri>0others.In this regard, both t1pep and t1qeq positively contribute to the focusing with optimal modulation. Elements in T are governed by the circular Gaussian distribution [39], i.e., the real part (R) and imaginary part (I) of T are statistically independent and follow the probability distribution density f(x)=exp(x2/2σ2)/2πσ2, where σ is the standard deviation of the distribution. With Eq. (3), only elements in T with positive real parts (R>0) will be selected in the calculation. Since the imaginary part is independent of the real part, the selected elements with R>0 have the imaginary part (I) fulfilling <I<+. The terms t1pep and t1qeq from Eq. (2) can thus be expressed as Nt1pep=Nt1qeq=NR+NjI=N0+Rf(R)dR+Nj+If(I)dI=N0+R2πσ2eR22σ2dR+Nj+I2πσ2eI22σ2dI=N×σ2π+Nj×0=Nσ2π,where j=1. By substituting Eq. (4) into Eq. (2), the optimal peak intensity can be reduced to Ipeak=|upeak|2=|rNσ2π+(1r)Nσ2π|2=N2σ22π.Equation (5) is consistent with previously reported studies [40,41] with binary-amplitude modulation. Nevertheless, if the portions of the rN input channels are oppositely displayed, these input channels, with Ri<0, are “on” and negatively contribute t1pep=R+jI=0Rf(R)dR+j+If(I)dI=σ2π.Combining Eqs. (3), (5), and (6), the peak intensity with the rN incorrectly modulated input channel (Ipeak,r) is revised to Ipeak=|upeak,r|2=|rNσ2π+(1r)Nσ2π|2=(12r)2N2σ22π.In addition, the elements in the TM are statistically independent [40], and therefore the optimal modulation for the first output channel (even with rN the incorrect input channel) does not affect the statistics of the other channels. Following the central limited law, the variance of ubg is N/2 times (the number of “on” input channels) the variance of tmi,(m1), i.e., Var(tmi), so that the background intensity (Ibg) is expressed as Ibg=|ubg|2=Var(ubg)=N2Var(tmi)=N22σ2=Nσ2.Finally, a relative peak-to-background ratio (PBR), denoted as η, due to the r-ratio incorrect modulation, can be obtained by η=ηrη0=Ipeak,r/IbgIpeak/Ibg=(12r)2N/2πN/2π=(12r)2,where η0 (η0=N/2π) is the theoretical PBR and ηr [ηr=(1r)2N/2π] is the PBR with r-ratio of pixels incorrectly modulating the input wavefront. For simplicity, the relationship indicated by Eq. (9) is termed the “square rule” for binary-amplitude modulation. Practically, the square rule can be generalized to the case in which the r-ratio of pixels oppositely modulates the wavefront in any given modulating masks rather than only in the optimal mask. This generalization will be proved experimentally in Section 2.E.

    Mathematically, the relative PBR is essentially related to Pearson’s correlation coefficient (ρr) between the optimal mask (Eop,1) and a mask with r-ratio incorrect modulation (Er,1). Their elements, i.e., ei and er,i for Eop,1 and Er,1, respectively, obey the symmetric Bernoulli distribution, i.e., eBernoulli (p=0.5), so that both ei and er,i are 0.5 and eier,i=0.5(1r). By defining δf=ff, ρr can be formulated as ρr=δei×δer,iδei2δer,i2=4eier,i1=12r.With Eqs. (9) and (10), the ratio (r) of the oppositely modulating channels, termed the error rate, can be directly estimated from the experimental PBR (ηr) via a simple relationship if the range of the error rate is limited below 0.5: r=(1η)/2.Notably, the value of r can increase above 0.5, and the η will increase accordingly as indicated by Eq. (9), which is symmetric regarding r=0.5. For r>0.5, the focusing performance will be equivalently the reverse of the selection of Eq. (3): the element (ei) in the optimal mask is turned “on” for Ri<0, and the effective error rate becomes 1r. This is because turning the elements “on” for either Ri<0 or Ri>0 shares equivalent performance for optical focusing according to the symmetry of the circular Gaussian distribution. Therefore, considering Eq. (3), it is straightforward to use Eq. (11) (r0.5) to estimate the ratio of incorrectly modulating pixels.

    Experimentally, the estimated error rate (r) of any optimized pattern is obtained as follows: an N-element DMD is used to modulate the input wavefront, and then a “theoretical PBR” is calculated by η0=N/2π; the “experimental PBR” (ηex) is obtained from the instant speckle pattern, i.e., a focus at the target position; finally, the experimental error rate for each focusing optimization can be obtained by substituting Eq. (10) into Eq. (11): r=(1ηex/η0)/2=(12πηex/N)/2.

    B. Mutation Rate

    Benefitting from Eq. (9), the percentage of DMD elements with incorrect modulation in the mask can be directly estimated. An ideal solution, or mask, can be obtained if the incorrect elements are corrected. That said, the exact positions/indices of these elements are unknown. Inspired by the mutation process in the GA, having a suitable mutation rate to change the state of modulating elements regarding the error rate may be able to improve the optimization.

    In the GA, the mutation rate is usually preset in a decaying manner, and it gradually becomes smaller regardless of the actual optimization performance or status. In the proposed DMA, the mutation rate is adjusted dynamically according to the error rate so that the information about how the instable medium instantly affects the optimized mask can be considered. One more benefit of integrating the error rate is that, in every iteration, the number of elements to be mutated (Nμ) can be well controlled below the number of the wrongly modulating elements (Nr), i.e., NμNr. As an example to scale the mutation rate, the mutation rate [μ(s)] in the sth iteration can be simply set to be proportional to the instant error rate [r(s)] with a mutation constant (C) that is greater than unity [Eq. (13)]. To generate new DMD patterns in the sth iteration, a total number of Nμ(s) elements in the DMD mask generated in the (s1)th iteration are randomly selected and mutated by reversing the element state of on/off or equivalently following Eq. (14): μ(s)=r(s)/C,e(s)1e(s1).The function with respect to the mutation constant, Eq. (13), is to bound the mutation rate between 0.5/C and 0, if the error rates at the beginning and at the end of the optimization are assumed to be 0.5 and 0, respectively. The mutation constant is the only parameter needed to be set before optimization; a smaller mutation constant is suggested in instable environments to provide a larger range of mutation rates. The mutation rate is autotuned by the algorithm within the range in response to the actual situations, so as to increase the chance for the incorrect elements to be mutated and lead the optimization towards the theoretical result.

    C. DMA Workflow

    Block diagram showing the workflow of the dynamic mutation algorithm (DMA).

    Figure 1.Block diagram showing the workflow of the dynamic mutation algorithm (DMA).

    D. Experimental Setup

    (a) Experimental setup. L1, f=60 mm; L2 and L3, f=250 mm; L4, f=50 mm; DMD, 1920×1080 digital micromirror device; OBJ, 40× objective lens (NA = 0.65); MMF, 1 m multimode bare optical fiber (diameter = 200 μm, NA = 0.22). A fiber rotator was added in the fiber rotation experiment. C1 and C2 are the fiber collimators. (b) Speckle field before optimization. (c) Focus formed after optimization by the DMA (PBR = 120). The yellow lines indicate the profiles of the focus along the horizontal and vertical directions.

    Figure 2.(a) Experimental setup. L1, f=60  mm; L2 and L3, f=250  mm; L4, f=50  mm; DMD, 1920×1080 digital micromirror device; OBJ, 40× objective lens (NA = 0.65); MMF, 1 m multimode bare optical fiber (diameter = 200 μm, NA = 0.22). A fiber rotator was added in the fiber rotation experiment. C1 and C2 are the fiber collimators. (b) Speckle field before optimization. (c) Focus formed after optimization by the DMA (PBR = 120). The yellow lines indicate the profiles of the focus along the horizontal and vertical directions.

    In the following sections, the parameters of the investigated algorithms used for the simulation and experiment are set to be the same as follows. For the DMA, the mutation constant in Eq. (13) is set to 200. For the GA, the population size is 20 and the offspring size is 10. The initial mutation rate is 0.1, which decays exponentially to a final value at 0.001. For the CSA, there is no preset parameter, whose input modes are optimized one by one with a linear rastering manner [26,27]. These initial parameters related to specific algorithms are summarized in Table 1. All these algorithms are implemented for 10,000 measurements, and each measurement is set to spend 0.2 s.

    Initial Parameters Set for the DMA, GA, and CSA

    AlgorithmInitial Parameter
    DMAMutation constant = 200
    GA1. Population size = 202. Offspring size = 103. Initial mutation rate = 0.14. Final mutation rate = 0.0015. Decay constant = 200
    CSANone

    As an example, speckle before and after DMA optimization is shown in Fig. 2. Figure 2(b) shows the speckle field before optimization, where the PBR at the target position (central point) is around 3. After wavefront shaping optimization guided by the DMA, the focus has a PBR enhanced to 120 as shown in Fig. 2(c). The full width at half-maximum (FWHM) of the focus is 15.2 and 14.5 μm in the horizontal and vertical directions, respectively.

    E. Verification of the Square Rule

    Relative PBR error rate curves (η′−r curve). The curve based on the theoretical prediction following the derived square rule is plotted in dashed lines in both (a) and (b). In (a), the blue-diamond line shows the optimization based on the TM measured at r=0, and the instable effect is included without remeasuring the TM for other error rates; the red-diamond line is based on the simulation with a TM, whose real part distribution is subjected to a shift (the mean of the Gaussian distribution is shifted from 0 to 0.002 in the inset). In (b), the optimal mask for each investigated error rate is reobtained to eliminate the instable effect in experiments (blue-diamond line) and simulations (red-diamond line), matching well with the theoretical η′=(1–2r)2 curve. Relative PBR for each error rate was repeated for five executions, and the error bars show the standard deviation of the measurements.

    Figure 3.Relative PBR error rate curves (ηr curve). The curve based on the theoretical prediction following the derived square rule is plotted in dashed lines in both (a) and (b). In (a), the blue-diamond line shows the optimization based on the TM measured at r=0, and the instable effect is included without remeasuring the TM for other error rates; the red-diamond line is based on the simulation with a TM, whose real part distribution is subjected to a shift (the mean of the Gaussian distribution is shifted from 0 to 0.002 in the inset). In (b), the optimal mask for each investigated error rate is reobtained to eliminate the instable effect in experiments (blue-diamond line) and simulations (red-diamond line), matching well with the theoretical η=(12r)2 curve. Relative PBR for each error rate was repeated for five executions, and the error bars show the standard deviation of the measurements.

    Nevertheless, the instable medium (on the noise level) can still be governed by the square rule to some extent, but it fails to maintain accuracy. That is because the square rule is based on an unchanged and stable medium. Therefore, to experimentally recreate the square rule, at least, the time span between the generation of the optimal mask and mutated mask is limited within the decorrelation window of the medium. For example, an optimal mask is generated for every error rate investigation during the experiment. By doing so, the instable effect due to the practical medium can be almost eliminated, as shown in Fig. 3(b), where the ηr curve attained from experiments matches well with the theoretical curve as well as the ideal simulation curve. Therefore, the square rule functions well in a real-time representation, and in other words, the error rate can provide an effective instant metric to evaluate the distance to the ideal optimal optimization. That will provide a plain yet universal perspective to analyze the imperfect focusing performance for the scattering medium, even if it is heavily perturbed.

    3. RESULTS

    A. Simulation

    Simulations are done to evaluate the performance of the DMA, which is compared with two representative existing algorithms, i.e., the GA and the CSA. In addition to their popularity, the GA and CSA are selected because they share some similarities with the DMA. Both the DMA and GA have a mutation process and target optimization in instable environments. Meanwhile, the DMA and CSA are straightforward algorithms that do not rely much on previous results. Simulations with the DMA, GA, and CSA have been performed under various conditions of different levels of noise, and the results are compared based on the PBR throughout a fixed number of measurements (or iterations). Whenever the intensity of the target mode is measured, it is counted as one measurement, and the GA usually needs several measurements for one iteration. Each curve in the plots is an averaged result of 50 executions with a new transmission matrix generated to simulate the scattering process for every execution. N=64×64 input modes (modulating elements for binary-amplitude modulation) are used, and the output mode at the center is chosen for optimization.

    1. Influence of Noise Level

    In this section, the algorithms are compared under different levels of noise. Additive white Gaussian noise is added in every intensity measurement to mimic the instability of the optical system in the actual environment [28]. The Gaussian noises, with standard deviations of 30% and 60% of the initial average intensity I0, are set to represent the low-noise and high-noise situations, respectively.

    Simulation results of the DMA, GA, and CSA under different conditions: (a) noise-free; (b) low-noise: 0.3⟨I0⟩; (c) high-noise: 0.6⟨I0⟩; (c)–(f) 25% right shift of the transmission matrix (at the 5000th measurement) applied to noise-free, low-noise, and high-noise conditions.

    Figure 4.Simulation results of the DMA, GA, and CSA under different conditions: (a) noise-free; (b) low-noise: 0.3I0; (c) high-noise: 0.6I0; (c)–(f) 25% right shift of the transmission matrix (at the 5000th measurement) applied to noise-free, low-noise, and high-noise conditions.

    2. Influence of Transmission Matrix Change

    Apart from the noise caused by the instability of the optical system, optimization results can be greatly affected by the instability or slight movement of the scattering medium. To simulate this situation, a 25% right shift of the scattering medium was implemented at the 5000th measurement. The scattering medium was represented by an Moutputmodes×Ninputmodes transmission matrix. M×0.25N new elements, following the same circular Gaussian distribution, are generated and inserted to the left of the matrix. The right 25% of the original matrix elements are removed so that a new M×N transmission matrix to mimic the shift of the medium is formed. Different from the noise addition process, which only affects the intensity measurement, the shift also leads to changes in the transmission matrix. Simulations are done in noise-free, low-noise, and high-noise situations. The simulation parameters used for the algorithms here are the same as those mentioned in Section 3.A.1. Figures 4(d)–4(f) show how the DMA, GA, and CSA respond to the shift in the transmission matrix.

    As seen, right after the transmission matrix is changed, there is a sudden drop of PBR in all three algorithms. The GA fails to adapt to the sudden change of the TM shift for all three investigated noise conditions, which is associated with the mechanism of the GA: the offspring (amplitude masks) with lower cost (intensity) in the population is replaced, and the best offspring is always kept [28]. Also, the whole population is generated based on the medium status before the TM shift, whose dependency and correlation regarding the largely shifted TM are relatively low. Therefore, when it encounters a relatively large enhancement drop, it is hard to produce offspring with cost (i.e., the PBR) larger than the former best one, which makes the optimization trapped in a local maximum. In contrast, the DMA and CSA successfully recover the focus after the TM shift under the noise-free and low-noise conditions. Such achievement is probably due to their absence of a pool with a large population, whose information is strongly related to the status of the medium before the TM shift. Or equivalently, the population size of the DMA and CSA is 1, so the modulating mask can be instantly guided by the information from the sudden shift without constraints from the other masks in the pool. Under the high-noise condition, the DMA is the only algorithm that can adapt to the sudden change and bounce back to the original level after 5000 measurements. The CSA, limited by its weak noise-resisting ability, fails to tackle the high-noise conditions.

    As a comparison, the square rule, providing the DMD error rate from the instant PBR, shows its advances to deal with different levels of noise conditions and sudden changes. In the next section, experimental performance will be further discussed.

    B. Experiment

    1. Focusing Against Strong Noise

    Experimental results of the DMA (red solid curve), GA (black dashed curve), and CSA (green dotted curve) focusing performance against strong noise.

    Figure 5.Experimental results of the DMA (red solid curve), GA (black dashed curve), and CSA (green dotted curve) focusing performance against strong noise.

    2. Focusing Against Strong Perturbations

    With more apparent perturbations, e.g., a slight movement, a bending, or a small rotation to the MMF, the corresponding TM can be significantly changed and the speckle patterns decorrelated. If that occurs during the experiment, the optimization process is disrupted, and the resultant focal spot may be ruined. In this section, experiments were done to study how perturbations, with rotation to the MMF as an example, affect the optimization, and how different algorithms respond to such heavy instability. The same experimental setup was used with an additional fiber rotator, which can rotate the MMF with various angles.

    (a) Relationship between fiber rotation and PBR drop. (b) Measurement required to rebound for different degrees of fiber rotation. Each dot in (a) and (b) is averaged from five executions, and the error bars show the standard deviation of the measurements. The optimizations in (a) and (b) are realized by the DMA. (c) Experimental focusing performance of the DMA in response to 2.5°, 5°, and 7.5° fiber rotation.

    Figure 6.(a) Relationship between fiber rotation and PBR drop. (b) Measurement required to rebound for different degrees of fiber rotation. Each dot in (a) and (b) is averaged from five executions, and the error bars show the standard deviation of the measurements. The optimizations in (a) and (b) are realized by the DMA. (c) Experimental focusing performance of the DMA in response to 2.5°, 5°, and 7.5° fiber rotation.

    Focusing performance of the DMA, GA, and CSA in response to 5° fiber rotation.

    Figure 7.Focusing performance of the DMA, GA, and CSA in response to 5° fiber rotation.

    Focal spots at four different stages with different algorithms: before optimization (zeroth measurement), before fiber rotation (5000th measurement), right after 5° fiber rotation (5001st measurement), and after reoptimization (15,000th measurement). The 150 μm scale bar is applicable to all images in this figure.

    Figure 8.Focal spots at four different stages with different algorithms: before optimization (zeroth measurement), before fiber rotation (5000th measurement), right after 5° fiber rotation (5001st measurement), and after reoptimization (15,000th measurement). The 150 μm scale bar is applicable to all images in this figure.

    The recovery efficiency of the CSA may depend on when the perturbation occurs. In the experiment, as the perturbation is induced when the optimizing elements are near the edges of the DMD, the recovery speed is slow. More importantly, merely changing one element for each measurement in the CSA is not efficient to overcome the instability since the positive contribution from one element is probably below the noise level. In contrast, the GA cannot obtain further PBR after the rotation, as the optimization is trapped in the local maximum due to three reasons. First, the optimizing masks in the population library are merely based on the medium status before perturbations. Second, the decorrelation due to 5° rotation cannot be tolerated or generalized from that of the population generated via GA. Third, the mutation process in the GA is not adaptive to the sudden perturbations during optimization since the mutation rate in the GA is exponentially decayed regardless of the focus degrading. Collectively, the DMA can effectively battle those defects inherently embedded in the CSA and GA, which are also shared by most of the popular algorithms.

    4. DISCUSSION

    As seen, the simulation and experiment results have demonstrated the high adaptability of the DMA. It performs comparably with the GA in a noisy environment and overcomes the heavy perturbations with a robust recovery ability. Apart from this distinctive adaptability, the ease of implementation is another advantage of the DMA. For the GA, several key parameters, such as population size, offspring size, and mutation rates, need to be adjusted appropriately at the beginning [28]. However, in DMA, only one parameter is required to be set, which is the mutation constant, a number bounding the mutation rate. Benefitting from the error rate and the square rule, the optimization error in the modulating mask can be easily quantified, causing the whole optimization process to be straightforward. It is simply based on real-time measurements, and it is less likely to be affected by the improper selection of parameters. Also, the error-rate-based DMA does not strongly depend on the modulating mask in previous iterations, and therefore adaptability can be effectively achieved to deal with dynamic media. As an example of the square rule’s applications, the DMA does show its capability to adapt to strong and/or sudden perturbations benefitting from the use of the practical metric, the error rate. Note that the metric can also be incorporated into other optimization methods, such as the GA, to improve adaptability.

    Although only one of the numerical optimization methods, i.e., the GA, is chosen for demonstration in this study, others, such as the SA and PSO, are similar. Including in their pools a large population of masks, the mechanisms to generate new modulating patterns originate from the philosophy of numerical optimization: (1) the portion of the modulating elements to be mutated is preset or decays with certain rules; (2) the monitored PBR is used to produce an acceptance probability of the newly generated masks or to update the mask. These two mechanisms ensure the generalization to the noise, even on the scale of I0 [33], around a specific equilibrium of the medium. However, a sudden strong perturbation behaves differently since the equilibrium of the medium has been considerably changed, and the experience based on the previous equilibrium is “out-of-date” as discussed in the last section. Therefore, it can be considered that the physics-based square rule probably enhances the adaptability of the existing methods. Notably, if a new parameter is incorporated in those methods, other parameters probably need to be further tuned to match the function of the square rule, which is a nontrivial manipulation. Incorporation of other optimization algorithms with the square rule is therefore beyond the scope of this paper.

    5. CONCLUSION

    In this study, a simple square rule of binary-amplitude-modulation-based wavefront shaping optical focusing based on universal strong scattering media has been theoretically obtained. With this rule, the real-time error in the modulating mask can be simply calculated from the concurrently measured PBR of the optical focus. Based on such a real-time metric, a novel feedback-based wavefront shaping algorithm, the DMA, has been proposed. Both the simulation and experimental results have demonstrated its high adaptability and unique recovery ability that no other existing algorithms can achieve: focusing of diffused light can be regained without re-running the optimization even after a 60% drop of the PBR. This is due to the application of the square rule, which guides the optimization with universal physics knowledge about the strong scattering process instead of a random guess. Notably, the square rule assumes that the transmission matrix of a medium follows a circular Gaussian distribution. It can be easily fulfilled when the transmitted medium is a strong scattering medium: photons are multiply scattered, and most of these scattering events are independent [39]. Therefore, the square rule between the DMD error rate and the degraded focus can be generally applied to the process in a strong scattering regime. The algorithm is therefore particularly suitable to be used in heavily instable or motional scattering environments. Note that the DMA in this study merely serves as an example application to utilize the error rate and square rule to optimize the single-point focusing. On the other hand, MMF is used as the example of scattering media in this study, so that by applying rotation of certain degrees we can induce controllable, repeatable, and quantifiable perturbations to the resultant speckle patterns. This is necessary for the current phase of the proof of principle, although it is not ideal. With further improvement, we believe the study may boost or inspire many applications of wavefront shaping with instable media or even living biological tissue.

    References

    [1] I. M. Vellekoop, A. Mosk. Focusing coherent light through opaque strongly scattering media. Opt. Lett., 32, 2309-2311(2007).

    [2] E. N. Leith, J. Upatnieks. Holographic imagery through diffusing media. J. Opt. Soc. Am., 56, 523(1966).

    [3] Z. Yaqoob, D. Psaltis, M. S. Feld, C. Yang. Optical phase conjugation for turbidity suppression in biological samples. Nat. Photonics, 2, 110-115(2008).

    [4] Z. Yu, J. Huangfu, F. Zhao, M. Xia, X. Wu, X. Niu, D. Li, P. Lai, D. Wang. Time-reversed magnetically controlled perturbation (TRMCP) optical focusing inside scattering media. Sci. Rep., 8, 2927(2018).

    [5] Z. Yu, M. Xia, H. Li, T. Zhong, F. Zhao, H. Deng, Z. Li, D. Li, D. Wang, P. Lai. Implementation of digital optical phase conjugation with embedded calibration and phase rectification. Sci. Rep., 9, 1537(2019).

    [6] Y. Liu, P. Lai, C. Ma, X. Xu, A. A. Grabar, L. V. Wang. Optical focusing deep inside dynamic scattering media with near-infrared time-reversed ultrasonically encoded (TRUE) light. Nat. Commun., 6, 5904(2015).

    [7] S. Popoff, G. Lerosey, R. Carminati, M. Fink, A. Boccara, S. Gigan. Measuring the transmission matrix in optics: an approach to the study and control of light propagation in disordered media. Phys. Rev. Lett., 104, 100601(2010).

    [8] P. Lai, L. Wang, J. W. Tay, L. V. Wang. Photoacoustically guided wavefront shaping (PAWS) for enhanced optical focusing in scattering media. Nat. Photonics, 9, 126-132(2015).

    [9] Y. Luo, S. Yan, H. Li, P. Lai, Y. Zheng. Focusing light through scattering media by reinforced hybrid algorithms. APL Photon., 5, 016109(2020).

    [10] S. Popoff, G. Lerosey, M. Fink, A. C. Boccara, S. Gigan. Image transmission through an opaque material. Nat. Commun., 1, 81(2010).

    [11] S. Ohayon, A. Caravaca-Aguirre, R. Piestun, J. J. DiCarlo. Minimally invasive multimode optical fiber microendoscope for deep brain fluorescence imaging. Biomed. Opt. Express, 9, 1492-1509(2018).

    [12] I. M. Vellekoop. Feedback-based wavefront shaping. Opt. Express, 23, 12189-12206(2015).

    [13] A. P. Mosk, A. Lagendijk, G. Lerosey, M. Fink. Controlling waves in space and time for imaging and focusing in complex media. Nat. Photonics, 6, 283-292(2012).

    [14] Z. Li, Z. Yu, H. Hui, H. Li, T. Zhong, H. Liu, P. Lai. Edge enhancement through scattering media enabled by optical wavefront shaping. Photon. Res., 8, 954-962(2020).

    [15] R. Horstmeyer, H. Ruan, C. Yang. Guidestar-assisted wavefront-shaping methods for focusing light into biological tissue. Nat. Photonics, 9, 563-571(2015).

    [16] H. Ruan, T. Haber, Y. Liu, J. Brake, J. Kim, J. M. Berlin, C. Yang. Focusing light inside scattering media with magnetic-particle-guided wavefront shaping. Optica, 4, 1337-1343(2017).

    [17] N. Takai, T. Asakura. Statistical properties of laser speckles produced under illumination from a multimode optical fiber. J. Opt. Soc. Am. A, 2, 1282-1290(1985).

    [18] M. Plöschner, T. Tyc, T. Čižmár. Seeing through chaos in multimode fibres. Nat. Photonics, 9, 529-535(2015).

    [19] Y. Choi, C. Yoon, M. Kim, T. D. Yang, C. Fang-Yen, R. R. Dasari, K. J. Lee, W. Choi. Scanner-free and wide-field endoscopic imaging by using a single multimode optical fiber. Phys. Rev. Lett., 109, 203901(2012).

    [20] I. N. Papadopoulos, S. Farahi, C. Moser, D. Psaltis. High-resolution, lensless endoscope based on digital scanning through a multimode optical fiber. Biomed. Opt. Express, 4, 260-270(2013).

    [21] J. Yoon, M. Lee, K. Lee, N. Kim, J. M. Kim, J. Park, H. Yu, C. Choi, W. Do Heo, Y. Park. Optogenetic control of cell signaling pathway through scattering skull using wavefront shaping. Sci. Rep., 5, 13289(2015).

    [22] A. M. Aravanis, L.-P. Wang, F. Zhang, L. A. Meltzer, M. Z. Mogri, M. B. Schneider, K. Deisseroth. An optical neural interface: in vivo control of rodent motor cortex with integrated fiberoptic and optogenetic technology. J. Neural Eng., 4, S143-S156(2007).

    [23] O. Tzang, A. M. Caravaca-Aguirre, K. Wagner, R. Piestun. Adaptive wavefront shaping for controlling nonlinear multimode interactions in optical fibres. Nat. Photonics, 12, 368-374(2018).

    [24] T. Zhong, Z. Yu, H. Li, Z. Li, P. Lai. Active wavefront shaping for controlling and improving multimode fiber sensor. J. Innov. Opt. Health Sci., 12, 1942007(2019).

    [25] J. Yang, L. Li, J. Li, Z. Cheng, Y. Liu, L. V. Wang. Fighting against fast speckle decorrelation for light focusing inside live tissue by photon frequency shifting. ACS Photon., 7, 837-844(2020).

    [26] I. M. Vellekoop, A. Mosk. Phase control algorithms for focusing light through turbid media. Opt. Commun., 281, 3071-3080(2008).

    [27] J. Thompson, B. Hokr, V. Yakovlev. Optimization of focusing through scattering media using the continuous sequential algorithm. J. Mod. Opt., 63, 80-84(2016).

    [28] D. B. Conkey, A. N. Brown, A. M. Caravaca-Aguirre, R. Piestun. Genetic algorithm optimization for focusing through turbid media in noisy environments. Opt. Express, 20, 4840-4849(2012).

    [29] D. Wu, J. Luo, Z. Li, Y. Shen. A thorough study on genetic algorithms in feedback-based wavefront shaping. J. Innov. Opt. Health Sci., 12, 1942004(2019).

    [30] B. R. Anderson, P. Price, R. Gunawidjaja, H. Eilers. Microgenetic optimization algorithm for optimal wavefront shaping. Appl. Opt., 54, 1485-1491(2015).

    [31] H.-L. Huang, Z.-Y. Chen, C.-Z. Sun, J.-L. Liu, J.-X. Pu. Light focusing through scattering media by particle swarm optimization. Chin. Phys. Lett., 32, 104202(2015).

    [32] B.-Q. Li, B. Zhang, Q. Feng, X.-M. Cheng, Y.-C. Ding, Q. Liu. Shaping the wavefront of incident light with a strong robustness particle swarm optimization algorithm. Chin. Phys. Lett., 35, 124201(2018).

    [33] Z. Fayyaz, N. Mohammadian, M. Reza Rahimi Tabar, R. Manwar, K. Avanaki. A comparative study of optimization algorithms for wavefront shaping. J. Innov. Opt. Health Sci. Sci., 12, 1942002(2019).

    [34] L. Fang, H. Zuo, Z. Yang, X. Zhang, J. Du, L. Pang. Binary wavefront optimization using a simulated annealing algorithm. Appl. Opt., 57, 1744-1751(2018).

    [35] Z. Fayyaz, F. Salimi, N. Mohammadian, A. Fatima, M. R. R. Tabar, M. R. Avanaki. Wavefront shaping using simulated annealing algorithm for focusing light through turbid media. Proc. SPIE, 10494, 104946M(2018).

    [36] S. Cheng, H. Li, Y. Luo, Y. Zheng, P. Lai. Artificial intelligence-assisted light control and computational imaging through scattering media. J. Innov. Opt. Health Sci., 12, 1930006(2019).

    [37] R. Horisaki, R. Takagi, J. Tanida. Learning-based focusing through scattering media. Appl. Opt., 56, 4358-4362(2017).

    [38] A. Turpin, I. Vishniakou, J. D. Seelig. Light scattering control in transmission and reflection with neural networks. Opt. Express, 26, 30911-30929(2018).

    [39] J. W. Goodman. Speckle Phenomena in Optics: Theory and Applications(2007).

    [40] D. Akbulut, T. J. Huisman, E. G. van Putten, W. L. Vos, A. P. Mosk. Focusing light through random photonic media by binary amplitude modulation. Opt. Express, 19, 4017-4029(2011).

    [41] Y. Shen, Y. Liu, C. Ma, L. V. Wang. Sub-Nyquist sampling boosts targeted light transport through opaque scattering media. Optica, 4, 97-102(2017).

    [42] H. Yu, K. Lee, Y. Park. Ultrahigh enhancement of light focusing through disordered media controlled by mega-pixel modes. Opt. Express, 25, 8036-8047(2017).

    Huanhao Li, Chi Man Woo, Tianting Zhong, Zhipeng Yu, Yunqi Luo, Yuanjin Zheng, Xin Yang, Hui Hui, Puxiang Lai. Adaptive optical focusing through perturbed scattering media with a dynamic mutation algorithm[J]. Photonics Research, 2021, 9(2): 202
    Download Citation