Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Anti-scattering light focusing by fast wavefront shaping based on multi-pixel encoded digital-micromirror device

## Abstract

Speed and enhancement are the two most important metrics for anti-scattering light focusing by wavefront shaping (WS), which requires a spatial light modulator with a large number of modulation modes and a fast speed of response. Among the commercial modulators, the digital-micromirror device (DMD) is the sole solution providing millions of modulation modes and a pattern rate higher than 20 kHz. Thus, it has the potential to accelerate the process of anti-scattering light focusing with a high enhancement. Nevertheless, modulating light in a binary mode by the DMD restricts both the speed and enhancement seriously. Here, we propose a multi-pixel encoded DMD-based WS method by combining multiple micromirrors into a single modulation unit to overcome the drawbacks of binary modulation. In addition, to efficiently optimize the wavefront, we adopted separable natural evolution strategies (SNES), which could carry out a global search against a noisy environment. Compared with the state-of-the-art DMD-based WS method, the proposed method increased the speed of optimization and enhancement of focus by a factor of 179 and 16, respectively. In our demonstration, we achieved 10 foci with homogeneous brightness at a high speed and formed W- and S-shape patterns against the scattering medium. The experimental results suggest that the proposed method will pave a new avenue for WS in the applications of biomedical imaging, photon therapy, optogenetics, dynamic holographic display, etc.

## Introduction

As photons are propagating through a scattering medium, their trajectories are randomly changed, so they cannot be focused to a micrometer-scale spot, which fundamentally limits the application of optical imaging, photon therapy, and optogenetics1,2. By using a spatial light modulator (SLM), wavefront shaping (WS) can manipulate the incident wavefront so that the scattered photons will contribute a constructive interference and form a tight focus against the scattering medium3,4. The applications of WS include improving the spatial resolution of biomedical imaging5,6, optogenetics7, and cataract correction8, as well as enlarging the viewing angle in dynamic three-dimensional holography9.

Transmission matrix measurement and iterative WS are two methods to implement WS10. By measuring the transmission matrix of the scattering medium and solving an inverse problem, the transmission matrix method calculates the optimized incident wavefront to focus the scattered light against the scattering medium11. If the optical property of the scattering medium is changed during the measurement, this method will fail and is not useful on highly dynamic scattering media10,12. By measuring a feedback signal, the iterative WS method optimizes the incident wavefront step by step and gradually increases the light intensity at the desired focus. The feedback signals can be light intensity13,14, fluorescence5,15,16, photoacoustic signal17,18, etc. This method can adjust the incident wavefront with respect to the current status of the dynamic scattering medium and therefore has the potential to be applied in highly dynamic environments12,19.

To achieve high-enhancement light focusing within highly dynamic scattering media, high-speed iterative optimization and a large number of modulation modes are essential for the iterative WS method. On the one hand, a variety of iterative optimization algorithms have been proposed, including the continuous sequential optimization20,21, partitioning algorithm13, genetic algorithm (GA)19,22, particle swarm optimization23, Hadamard algorithm24, simulated annealing algorithm25, etc. Compared with the conventional transmission matrix methods that require an enumerate search, these methods19,20,21,22,23,24,25 significantly accelerate the process of optimizing the incident wavefront, but the speed of optimization is still not high enough to deal with the high dynamic media. In addition, these methods involve stochastic variables in the optimization and are sensitive to the initial condition and local minima, which constrains the enhancement of the focus. Therefore, it is desirable to have a new optimization method with a high speed and strong capability of global search.

On the other hand, the SLMs must have a high pattern rate and a large number of modulation modes to achieve a high enhancement of the focus against highly dynamic perturbations in the scattering medium. The SLMs can be categorized into three groups: continuous phase modulation26,27,28,29,30,31, binary amplitude modulation32,33,34, and polarization modulation35. Liquid crystal SLM (LC-SLM) is the most common choice for continuous phase modulation29,30,31. They generally have millions of pixels modulating the phase of the wavefront quasi-continuously. However, the typical pattern rate of LC-SLM is ~30 Hz, which is too slow to accelerate the iterative optimization. Within the group for binary amplitude modulation, microelectromechanical grating light valves have a high pattern rate (350 kHz) and can focus the light in milliseconds32; but, they have only ~1 k pixels, which compromises the enhancement of the focus. In contrast, digital-micromirror devices (DMD) take advantage of a high pattern rate and a large number of pixels33,34. For example, the DMD made by Texas Instruments (DLP9500) has two million pixels and a 23 kHz pattern rate, but the DMD modulates the light amplitude in a coarsely discretized binary manner, which slows down the speed of searching the optimized incident wavefront and degrades the enhancement of the focus. Therefore, methods that can circumvent these problems caused by the inflexible light modulation will convert DMD into an ideal device for anti-scattering light focusing.

Here, we propose a multi-pixel encoded DMD (mpDMD)-based WS method that combines multiple pixels in the DMD into a single modulation mode and encodes the multiple pixels together to solve the problems caused by the coarsely discretized modulation. The binary amplitude modulation in which the amplitude difference between two neighboring code values could vary dramatically degrades the modulation accuracy. Conversely, with a smooth change between consecutive code values, the proposed encoding strategy can guarantee a better accuracy. In addition to the new DMD encoding method, we adopted separable natural evolution strategies (SNES) to considerably accelerate the global search for iteratively optimizing the wavefront. We studied the optimized number of pixels for encoding and established a double-pixel encoding strategy to achieve the highest enhancement of the foci. We demonstrated that, compared with the conventional method modulating light with independent micromirrors, the proposed method increased the speed of optimization and the enhancement of foci by a factor of 179 and 16, respectively. Finally, we illustrated the potential of this method by optimizing the brightness of 10 foci simultaneously and forming W- and S-shape patterns in the noisy background.

## Results

### Principle of the mpDMD-SNES WS

As shown in Fig. 1, the proposed mpDMD-SNES WS method used the light intensity at the target point as feedback, treated multiple micromirrors as a single modulation mode to modulate the amplitude profile of incident light, and applied SNES to adjust the displayed pattern in the DMD to optimize the incident wavefront. As a result, the light transmitted through the scattering medium was gradually focused onto the target point with a high enhancement over a short optimization period.

Since each micromirror in the DMD modulates light independently, we set the Hamming distance between the neighboring code values to 1 in the multi-pixel encoding process to mimic a continuous modulation on the light amplitude. As shown in Fig. 1b, a single modulation mode with nbin micromirrors encoded a real number x between 0 and 1. The state of the ith (1 ≤ i ≤ nbin) micromirror could be calculated by Eq. (1):

$$g_i\left( x \right) = \left\{ {\begin{array}{*{20}{c}} {1,} & {x \in \left[ {c_i - l,\;c_i + l} \right]} \\ {0,} & {{\mathrm{else}}} \end{array}} \right.$$
(1)

where 1 is the ON state and 0 is the OFF state; $$c_i = \frac{{n_{{\mathrm{bin}}} + 2i}}{{4n_{{\mathrm{bin}}}}};\;l = 1/4$$.

Figure 1c shows how the SNES optimizes the incident wavefront. The SNES iteratively searches and updates the Gaussian parameters along the direction of the natural gradient. The Gaussian’s parameters allow the SNES to adaptively capture the structure of the feedback function. As a result, these parameters can be adjusted with respect to the amplitude of the feedback, and the incident wavefront is optimized. The natural gradient provides a direction along which the feedback amplitude increases as well, and it can prevent the oscillation in the process of convergence and escape the traps of local minima.

Given that the number of pixels in the DMD is N, the number of modulation modes is Ns = N/nbin. During optimization, the modulation amplitude of each mode is parameterized by the Gaussian parameters µ and σ. The M initial states for each mode are set according to the Gaussian function with µ+σsm. Here, sm (m = 1, 2, …, M) is a search point with a dimension of Ns, and its entries follow the standard normal distribution. Each search point corresponds to a particular binary pattern in the DMD. A photomultiplier tube (PMT) at the target point records the light intensity (I1, I2IM) with respect to each DMD pattern as the feedback for the SNES. We can sort the search points according to their feedback amplitudes in increasing order and multiply with weights um. The weights for the first M/2 search points are set to 0. For the rest of the weights as an arithmetic sequence, we can set their sum to 1. The natural gradients $$\nabla _\mu J$$ and $$\nabla _\sigma J$$ for the mean µ and standard deviation σ respectively can be calculated by Eq. (2).

$$\left\{ {\begin{array}{{ll}} {\nabla _\mu J = \mathop {\sum}\nolimits_{{\mathrm{m = 1}}}^M {u_m \cdot s_m} } \\ {\nabla _\sigma J = \mathop {\sum}\nolimits_{{\mathrm{m = 1}}}^M {u_m \cdot \left( {s_m^2{\mathrm{ - 1}}} \right)} } \end{array}} \right.$$
(2)

The optimization program updates µ and σ using Eq. (3).

$$\left\{ {\begin{array}{*{20}{c}} {\mu _{{\mathrm{i}} + {\mathrm{1}}} = \mu _i + {\it{\upeta }}_\mu \sigma _i \cdot \nabla _\mu J} \\ {\sigma _{{\mathrm{i + 1}}} = \sigma _i{\mathrm{exp}}\left( {\frac{{\eta _\sigma }}{2}\nabla _\sigma {\mathrm{J}}} \right)} \end{array}} \right.$$
(3)

Here, ημ and ησ are the learning rates for µ and σ, respectively. In each iteration, the program generates M new DMD patterns to efficiently search the best modulation focusing the light on the target point. The SNES needs only the Gaussian parameters rather than an entire memory space that saves the state of each mode for each search point. Therefore, the SNES is faster due to the less memory cost than the conventional methods.

### Performance verification by numerical simulation

To verify the performance of the mpDMD-SNES-based WS, we first carried out a numerical simulation. The number of pixels was P for the camera and N for the DMD. The target point was the center of the camera. The transmission matrix from the DMD in the initial state through the scattering medium to the camera was T. We assumed that the scattering medium was totally random so that each entry tpn in T followed an independent Gaussian distribution36. Then, we obtained the light intensity at the pixel p of the camera20

$$I_p = \left|\mathop {\sum}\nolimits_{n = 1}^N {t_{{pn}}A_n}\right| ^2$$
(4)

where An was the amplitude of the pixel n of DMD and could be 0 or 1. As DMD modulated the amplitude only, we neglected all phase information.

Figure 2a shows the diagrams of SNES and GA to implement the WS. In the simulation, we set nbin = 5 and M = 30. As the feedback optimizing the light intensity at the target point, the enhancement was defined as the mean ratio of the intensity of the focus to the intensity of the scattered light before optimization. The parameters of the SNES and GA are detailed in Methods section and both had optimized setting obtained based on literature37. We also analyzed the computation times of SNES and GA with respect to Ns after an average over 10,000 iterations (Fig. 2b). Both algorithms were run on a GPU. When the number of modulation modes in the DMD increased from 200 to 5,000, the computation times of SNES and GA increased from 0.38 ms and 14.58 ms to 10.42 ms and 265.10 ms, respectively. Comparing with the GA, the SNES reduced the computation time by a factor of 25. Finally, we studied the enhancement as a function of iterations in various architectures, including the GA with binary encoding, GA with multi-pixel encoding, and SNES with multi-pixel encoding. The corresponding enhancements were 43, 89, and 322, respectively. The enhancement was increased by a factor of 7.5 after the architecture was transformed from the GA with binary encoding to the SNES with multi-pixel encoding.

### Experimental set-up and characterization

Our WS system based on multi-pixel DMD encoding is shown in Fig. 3a. A collimated light beam from a 532 nm laser went through a beam expander (combined with lenses L1 and L2) and was reflected by a DMD. The iterative SNES method generated DMD patterns to modulate the amplitude profile of the light. The modulated light beam was focused by a lens L3, passed through a ground glass diffuser, and was projected by an objective lens. A beam splitter was in the front of the objective lens to divide the scattered beam into two. One beam was pointed towards a PMT behind a pinhole with a diameter of 50 µm at the target point for feedback; the other was pointed towards a camera conjugate to the pinhole, monitoring the image of the focus to calculate the enhancement. During the initialization, we captured 10 images by randomly manipulating the DMD, to find out the initial intensity of the focus, by averaging the values detected by the PMT over the ten images, which mitigated the stochastic effect of scattered light on the value of the enhancement.

Figure 3b illustrates the process of anti-scattering light focusing when nbin = 2, by showing the images of the focus before the optimization, and after 10, 100, and 1,000 iterations. The images’ corresponding enhancements were 1, 6.29, 20.64, and 70.89, respectively. Without any optimization, the focus at the center was overwhelmed in the background. As the number of iterations increased, the focus gradually got stronger. After 1000 iterations, the randomly scattered spots almost disappeared in the image.

We also tested the effect of nbin and Ns on the intensity of the focus, as shown in Fig. 4. All the data were averaged by 10 repetitions to reduce the randomness. The results first revealed that the maximum enhancement did not increase monotonously with nbin when the number of pixels N is fixed (Fig. 4a). While nbin (>2) was increasing, the maximum enhancement was decreasing, because the larger nbin had a trade-off with the Ns in the DMD for a higher encoding accuracy. Figure 4b illustrates the relation between the maximum of enhancements and Ns when nbin = 2. The more modulation modes the DMD had, the larger the maximum was. We also found that the intensity of the focus increased at the fastest speed when nbin = 2, from the optimization curves (Fig. 4c, d). Therefore, in the following experiments, we set nbin = 2 and Ns = 5000.

### Comparison between mpDMD-SNES and state-of-the-art WS method

We further compare our mpDMD-SNES WS method with the state-of-the-art, i.e., the binary-encoding DMD based, GA optimized (bDMD-GA) WS method, in terms of the enhancement and optimization speed (Fig. 5). The mpDMD-SNES WS method in the first 100 seconds kept improving the enhancement to 124, which was increased by a factor of 16 in comparison with the result of the bDMD-GA WS method (Fig. 5a). Setting the number of search points M = 30, one iteration of the mpDMD-SNES WS method took 35 ms, in contrast to 670 ms using the bDMD-GA WS method. The green dash line in Fig. 5a represents an enhancement of 7.76. The mpDMD-SNES WS method obtained this value after 0.56 s, faster by a factor of 179 than the bDMD-GA WS method spending 100 s. We also compared the images of the focus (Fig. 5b), optimized by two methods after 100 s. We observed a focus almost overwhelmed in the background by bDMD-GA WS method. Conversely, the focus by the mpDMD-SNES WS method was very bright and obvious.

In the end, we achieved and demonstrated multi-focus control with homogeneous brightness and formed W- and S-shape patterns against the scattering medium. The images of the foci after 3,000 iterations are shown in Fig. 6a for the bDMD-GA and Fig. 6b for the mpDMD-SNES WS methods. In addition, we compared the normalized intensity of each focus in the W- (Fig. 6c) and S-shape (Fig. 6d) patterns between the two methods. On one hand, the enhancement of the obscure foci optimized by the bDMD-GA WS method was quite low. On the other hand, the mpDMD-SNES WS method could project clear W- and S-shape patterns with homogeneous brightness and provide a way to homogeneously focus the scattered light onto multiple target points. The deviation of focal enhancements in the W- and S-shape patterns are 0.79 and 0.83, respectively, about 6% with respect to the mean enhancement in each pattern.

## Discussion

We have proposed mpDMD-SNES WS that is an iterative method and encodes multiple pixels of DMD to focus light against scattering media over a short optimization period. Encoding multiple neighboring pixels in the DMD enables a quasi-continuous light amplitude modulation, circumventing the obstacles created by the conventional binary amplitude modulation, which unambiguously improves the competitiveness of DMD for WS. Moreover, SNES as a global search algorithm has a faster speed to figure out the optimal DMD modulation than the other conventional methods like the “half-blind” GA method19,20,21,22,23,24,25. In our experiments, we compared the mpDMD-SNES WS method with the state-of-the-art bDMD-GA method. The mpDMD-SNES method could improve the enhancement of the focus and the speed of optimization by a factor of 16 and 179, respectively. This method furthermore achieved homogeneously focusing 10 spots against the scattering medium over a short optimization period and forming W- and S-shape patterns standing out from the noisy background.

The mpDMD-SNES WS method still has the space to be improved. The current limit on the optimization speed originated from the communication among devices and the computing power of the hardware. The light intensity recorded by the PMT as the feedback was digitized and transferred to the computer. After one iteration of optimization, the computer sent a new pattern to the DMD. This multi-step communication arrangement limited the speed of the optimization process, and consequently one iteration took 35 ms. If the feedback detector is directly connected to a SLM, with the help of a field programmable gate array (FPGA) running the optimization program, the runtime of one iteration could approach 30 µs, achieving the speed limit ultimately set by the maximum pattern rate of DMD. In other words, the process of optimization could be accelerated by three orders of magnitude.

We note that the mpDMD-SNES WS method is compatible with fluorescent markers38, photoacoustic feedback39, and a variety of other WS guide stars18,40,41. Their integration perhaps will surmount the difficulties caused by the perturbation of physiological motions in tissues and extend their capability to high-enhancement light focusing in deep tissues. In addition, mpDMD-SNES without guide stars still can be useful for many applications, such as holographic display15, in which manipulating light behind a scattering medium could help achieve an extremely large viewing angle and image size at the same time. Our work puts a new perspective on light focusing through or within dynamic scattering media and promises various applications, including optogenetics, photon therapy, and dynamic holographic display, etc.

## Materials and methods

### Details of the numerical simulation

The numerical simulation was conducted on a GPU (GeForce GTX 1660 Ti, NVIDIA). The SNES had parameters of ημ = 1 and ησ = 0.039, while the GA had crossover rate of 85%, mutation rate of 10% and elite rate of 20%, which were determined from literature for optimal performance37. The population size for SNES and GA are both 30. The simulations were repeated 10 times to reduce randomness.

### Experiment system

The system diagram is shown in Fig. 3a. The illumination source was a continuous-wave 532 nm laser (Verdi V5, Coherent, Inc.), producing collimated light beam for illumination. The amplitude modulator is a digital-micromirror device (DMD) with pixel size of 1024 × 768 (Texas Instruments, Inc.). A ground glass diffuser (DG10-120, Thorlabs, Inc.) was used as scattering medium, followed by an objective lens (LA1765-A, Thorlabs, Inc.). A beam splitter (BS004, Thorlabs, Inc.) was placed after the scattering medium to divide the scattered beam and relay onto the PMT (H10721-20, Hamamatsu) and the camera (PCO.edge 5.5, PCO, Corp.), respectively. The camera was located at the conjugate position of the PMT to monitor the image of the generated focus. A number of 10 patterns was generated and displayed on the DMD with corresponding images and PMT values collected to evaluate the initial focus intensity.

## Data availability

The relevant data supporting the findings of this study are available within the paper and from the corresponding author upon reasonable request.

## Code availability

The relevant scripts supporting this study are available from the corresponding author upon reasonable request.

## References

1. 1.

Yu, H. et al. Recent advances in wavefront shaping techniques for biomedical applications. Curr. Appl. Phys. 15, 632–641 (2015).

2. 2.

Yoon, S. et al. Deep optical imaging within complex scattering media. Nat. Rev. Phys. 2, 141–158 (2020).

3. 3.

Wei, X. M. et al. Harnessing a multi-dimensional fibre laser using genetic wavefront shaping. Light.: Sci. Appl. 9, 149 (2020).

4. 4.

Liu, Y. et al. Focusing light inside dynamic scattering media with millisecond digital optical phase conjugation. Optica 4, 280–288 (2017).

5. 5.

Boniface, A., Dong, J. & Gigan, S. Non-invasive focusing and imaging in scattering media with a fluorescence-based transmission matrix. Nat. Commun. 11, 6154 (2020).

6. 6.

Conkey, D. B. et al. Super-resolution photoacoustic imaging through a scattering wall. Nat. Commun. 6, 7902 (2015).

7. 7.

Ruan, H. W. et al. Deep tissue optical focusing and optogenetic modulation with time-reversed ultrasonically encoded light. Sci. Adv. 3, eaao5520 (2017).

8. 8.

Arias, A. & Artal, P. Wavefront-shaping-based correction of optically simulated cataracts. Optica 7, 22–27 (2020).

9. 9.

Yu, H. et al. Ultrahigh-definition dynamic 3D holographic display by active control of volume speckle fields. Nat. Photon. 11, 186–192 (2017).

10. 10.

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

11. 11.

Popoff, S. M. et al. 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).

12. 12.

Horstmeyer, R., Ruan, H. W. & Yang, C. Guidestar-assisted wavefront-shaping methods for focusing light into biological tissue. Nat. Photon. 9, 563–571 (2015).

13. 13.

Katz, O. et al. Focusing and compression of ultrashort pulses through scattering media. Nat. Photon. 5, 372–377 (2011).

14. 14.

Lib, O., Hasson, G. & Bromberg, Y. Real-time shaping of entangled photons by classical control and feedback. Sci. Adv. 6, eabb6298 (2020).

15. 15.

Kakkava, E. et al. Selective femtosecond laser ablation via two-photon fluorescence imaging through a multimode fiber. Biomed. Opt. Express 10, 423–433 (2019).

16. 16.

Kim, D. & Englund, D. R. Quantum reference beacon–guided superresolution optical focusing in complex media. Science 363, 528–531 (2019).

17. 17.

Inzunza-Ibarra, M. A. et al. Sub-acoustic resolution optical focusing through scattering using photoacoustic fluctuation guided wavefront shaping. Opt. Express 28, 9823–9832 (2020).

18. 18.

Sun, J. L. et al. Photoacoustic wavefront shaping with high signal to noise ratio for light focusing through scattering media. Sci. Rep. 9, 4328 (2019).

19. 19.

Wu, D. X. et al. A thorough study on genetic algorithms in feedback-based wavefront shaping. J. Innov. Opt. Health Sci. 12, 1942004 (2019).

20. 20.

Vellekoop, I. M. & Mosk, A. P. Phase control algorithms for focusing light through turbid media. Opt. Commun. 281, 3071–3080 (2008).

21. 21.

Li, H. H. et al. Adaptive optical focusing through perturbed scattering media with a dynamic mutation algorithm. Photon. Res. 9, 202–212 (2021).

22. 22.

Conkey, D. B. et al. Genetic algorithm optimization for focusing through turbid media in noisy environments. Opt. Express 20, 4840–4849 (2012).

23. 23.

Huang, H. L. et al. Light focusing through scattering media by particle swarm optimization. Chin. Phys. Lett. 32, 104202 (2015).

24. 24.

Chaigne, T. et al. Improving photoacoustic-guided optical focusing in scattering media by spectrally filtered detection. Opt. Lett. 39, 6054–6057 (2014).

25. 25.

Fang, L. J. et al. Binary wavefront optimization using a simulated annealing algorithm. Appl. Opt. 57, 1744–1751 (2018).

26. 26.

Vellekoop, I. M. & Mosk, A. P. Focusing coherent light through opaque strongly scattering media. Opt. Lett. 32, 2309–2311 (2007).

27. 27.

Luo, Y. Q. et al. Focusing light through scattering media by reinforced hybrid algorithms. APL Photon. 5, 016109 (2020).

28. 28.

Stern, G. & Katz, O. Noninvasive focusing through scattering layers using speckle correlations. Opt. Lett. 44, 143–146 (2019).

29. 29.

Yang, J. M. et al. Fighting against fast speckle decorrelation for light focusing inside live tissue by photon frequency shifting. ACS Photon. 7, 837–844 (2020).

30. 30.

Ye, X. N. et al. Enhancement of surface plasmon polariton excitation via feedback-based wavefront shaping. Opt. Lett. 43, 6021–6024 (2018).

31. 31.

Yu, Z. P. et al. Implementation of digital optical phase conjugation with embedded calibration and phase rectification. Sci. Rep. 9, 1537 (2019).

32. 32.

Tzang, O. et al. Wavefront shaping in complex media with a 350 kHz modulator via a 1D-to-2D transform. Nat. Photon. 13, 788–793 (2019).

33. 33.

Dudley, D., Duncan, W. M. & Slaughter, J. Emerging digital micromirror device (DMD) applications. Proceedings of SPIE, MOEMS Display and Imaging Systems; 28–29 January 2003 (SPIE, San Jose, CA, United States, 2003).

34. 34.

Liang, J. Y. et al. Random-access optical-resolution photoacoustic microscopy using a digital micromirror device. Opt. Lett. 38, 2683–2686 (2013).

35. 35.

Yu, P. P. et al. Tailoring arbitrary polarization states of light through scattering media. Appl. Phys. Lett. 113, 121102 (2018).

36. 36.

Goodman, J. W. Speckle Phenomena in Optics: Theory and Applications. 25–58 (Roberts and Company Publishers, 2007).

37. 37.

Mirjalili, S. Evolutionary Algorithms and Neural Networks: Theory and Applications. 43–55 (Springer, 2019).

38. 38.

Katz, O. et al. Noninvasive nonlinear focusing and imaging through strongly scattering turbid layers. Optica 1, 170–174 (2014).

39. 39.

Lai, P. X. et al. Photoacoustically guided wavefront shaping for enhanced optical focusing in scattering media. Nat. Photon. 9, 126–132 (2015).

40. 40.

Koukourakis, N. et al. Wavefront shaping for imaging-based flow velocity measurements through distortions using a Fresnel guide star. Opt. Express 24, 22074–22087 (2016).

41. 41.

Liu, Y. et al. Optical focusing deep inside dynamic scattering media with near-infrared time-reversed ultrasonically encoded (TRUE) light. Nat. Commun. 6, 5904 (2015).

## Acknowledgements

This work was supported by Shanghai Municipal of Science and Technology Project (No. 20JC1419500), Foundation of National Facility for Translational Medicine (Shanghai) (No. TMSK-2020-129), Shanghai Pujiang Program (No.20PJ1408700), National Natural Science Foundation of China (No. 62005007), and the Fundamental Research Funds for the Central Universities (Beihang University).

## Author information

Authors

### Contributions

J.Y., L.L. and Y.Z. conceived the main idea. J.Y., Q.H., L.L. conducted the experiment. J.Y., Y.Q., R.S. and B.S. analyzed the data. J.Y., Q.H., Y.Q. and Y.Z. drafted the manuscript.

### Corresponding authors

Correspondence to Linxian Liu or Yanyu Zhao.

## Ethics declarations

### Conflict of interest

The authors declare no competing interests.

## Rights and permissions

Reprints and Permissions

Yang, J., He, Q., Liu, L. et al. Anti-scattering light focusing by fast wavefront shaping based on multi-pixel encoded digital-micromirror device. Light Sci Appl 10, 149 (2021). https://doi.org/10.1038/s41377-021-00591-w