Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Focus shaping of high numerical aperture lens using physics-assisted artificial neural networks

Open Access Open Access

Abstract

We present a physics-assisted artificial neural network (PhyANN) scheme to efficiently achieve focus shaping of high numerical aperture lens using a diffractive optical element (DOE) divided into a series of annular regions with fixed widths. Unlike the conventional ANN, the PhyANN does not require the training using labeled data, and instead output the transmission coefficients of each annular region of the DOE by fitting weights of networks to minimize the delicately designed loss function in term of focus profiles. Several focus shapes including sub-diffraction spot, flattop spot, optical needle, and multi-focus region are successfully obtained. For instance, we achieve an optical needle with 10λ depth of focus, 0.41λ lateral resolution beyond diffraction limit and high flatness of almost the same intensity distribution. Compared to typical particle swarm optimization algorithm, the PhyANN has an advantage in DOE design that generates three-dimensional focus profile. Further, the hyperparameters of the proposed PhyANN scheme are also discussed. It is expected that the obtained results benefit various applications including super-resolution imaging, optical trapping, optical lithography and so on.

© 2021 Optical Society of America under the terms of the OSA Open Access Publishing Agreement

1. Introduction

Focus shaping of high numerical aperture (NA) lens has drawn considerable attention in many attractive applications, for example, super-resolution imaging [1,2], optical lithography [3], optical tweezers [4,5], optical magnetic recording [6] and so on. By virtue of vector diffraction theory (VDT) [7,8], the key problem to realize a specific focus shape is how to engineer the wavefront of incident beam at pupil plane of the optical lens that can yield the given targeted intensity profile. To this end, various approaches have been proposed to achieve full control over amplitude, phase and/or polarization of the light [926]. Among them, the forward design of focus shape requires physical perception, sweeping of parameters or the prior knowledge [9,10]. Nevertheless, the generated intensity profile is not always satisfactory or applicable to some special case only [11]. As a general method, the inverse design provides a better solution according to the desired intensity profile. Iterative algorithms are widely used in the inversion, such as the Gerchberg-Saxton (GS) algorithm [1215] and evolutionary algorithm [16,17]. However, in the implementation of GS algorithm, one need to preset the total targeted intensity profile and pad zeros during FFT if one need to see the delicate structure in focal plane [13]. Evolutionary algorithm such as particle swarm optimization algorithm (PSO) may be trapped in the local optimal point, especially in the high dimensional variables problem [27]. As a result, several non-iteration inversion methods have been proposed. Chen et al. demonstrate an inverse design for the complete shaping of the focal field, including amplitude, phase and polarization [19]. Further, Zhang et al. extend this non-iterative method to be suitable for high NA systems and further engineered uniform-intensity focal fields [20]. However, to obtain perfect polarization vortices, the authors require a vector beam generator that guarantees the realization of the targeted complete shaping of focal field. Based on the VDT, an analytical procedure for the inversion of electrical and magnetic field at the focus to obtain incident light beam distribution has been presented, but focal field is limited to the on-axis position [21]. In addition, other non-iterative inverse designed methods are also developed, which include reversing of the radiation field of dipole arrays [22,23] or a uniform line source [24], Euler transformation [25] and cosine synthesized filter [26].

Recently, deep learning has shown great potential in design of photonic structures [28], computational imaging [29], biomedical imaging [30], holography [31] and inverse scattering problems [32]. Moreover, a method of inverse designing optical needles with central zero-intensity points by ANNs has been developed in [33]. In the data-driven frameworks, the trained deep neural networks (DNNs) give state-of-the-art performance in solving nonlinear inverse problems. However, the training data with labels is crucial to the well performance of such training-based DNNs. It is thus impossible to acquire the desired solutions due to mismatch between the test data set and the training data set [2833]. To overcome this limitation, a scheme using untrained neural network (UNN) [34] has been demonstrated in quantitative phase microscopy [35] and phase imaging [36]. The significant advantage of this approach is that it does not need the training and iteratively optimizes weights of the neural network that generates the targeted phase profile as the input of the physical model.

In this paper, inspired by the UNN [3436], we propose an iterative scheme named as PhyANN which combines a physical model with conventional ANN to flexibly and efficiently shape the focus of high NA lens. In the physical model based on VDT, the focus intensity can be expressed by weighted sums of focal field contribution from a series of fixed annular region of DOE. In PhyANN, the used ANN is a generator transforming arbitrary inputs, maybe a constant, to transmission coefficients of the DOE, from which, we use the physical model to generate focus intensity profiles. The defined loss function with respect to the focus intensity is then employed to optimize weights and biases via gradient descent, eventually resulting in a desired solution that satisfies targeted focus profile.

The main merits of the proposed PhyANN are summarized as follows. First, compared to the iterative algorithm based on gradient descent, which is only suitable for derivable targeted function and could be trapped into bad local minima [37], the PhyANN has higher possibility to arrive the global minima due to the use of ANN [3840]. Secondly, the input of ANN in the PhyANN is an arbitrary constant rather than the focus intensity profile, which is different from that in Ref. [35] and [36]. The focus profile can be explicitly implemented by incorporating corresponding restriction term in the loss function, such as sidelobe and peak intensity. In this regard, the sub-diffraction spot with 0.41λ resolution, flattop spot with tunable radius, optical needles with 0.41λ resolution and high flatness, and multi-focus region with 0.45λ resolution are easily obtained. Thirdly, in contrast to direct deep learning method that directly regresses targeted parameters from focus intensity profiles [33], the PhyANN learns how to modulate the contribution of different annular zone of the DOE rather than how to approximately describe the well-known VDT.

This paper is organized as follows. In Section 2, the physical model based on VDT and the optimization problem are introduced. In Section 3, the pipeline of the proposed PhyANN is explicitly presented. In Section 4, the focus shaping examples including sub-diffraction spot, flattop spot, optical needle and multi-focus region are obtained using the PhyANN and the comparison with PSO algorithm is also provided. In Section 5, the hyperparameters of the PhyANN scheme are analyzed and discussed. Finally, conclusions are drawn in Section 6.

2. Physical model of the focal field generation

The schematic diagram of focus shaping is shown in Fig. 1. The radially polarized beam with uniform distribution is chosen as the incidence, which passes through a DOE located at the pupil plane and then focused by an aplanatic lens of high NA. Based on VDT [7,8], the radial and longitudinal electric field components at cylindrical coordinate (r, z) around the focus can be expressed by

$$\begin{array}{l} {E_r}({r,z} )= A\int_0^{{\theta _{\max }}} {T(\theta )\sin ({2\theta } ){J_1}({kr\sin \theta } )\textrm{exp} (ikz\cos \theta )\sqrt {\cos \theta } d\theta } \\ {E_z}({r,z} )= 2iA\int_0^{{\theta _{\max }}} {T(\theta ){{\sin }^2}(\theta ){J_0}({kr\sin \theta } )\textrm{exp} (ikz\cos \theta )\sqrt {\cos \theta } d\theta }. \end{array}$$
A is a constant and θmax is the maximum angle determined by the NA of the objective lens, given by arcsin(NA/n), where n = 1 is the refractive index of free space. J0 and J1 are zero-order and first-order Bessel function of the first kind, respectively. T(θ) denotes the transmission function of the DOE.

 figure: Fig. 1.

Fig. 1. Schematic illustration of the focusing geometry of high NA lens. (a) The radially polarized beam is modulated by a DOE and then focused by high NA lens. The inset is zoom in focus intensity profile. (b) The DOE with transmission coefficients, Tn, of each annular zone.

Download Full Size | PDF

Here, we set the DOE to be circular symmetry and θmax is divided into N equal parts, which corresponds to annular regions of the DOE in Fig. 1(b). The boundaries of the various region are given by θn, n = 1,2,…N, and thus the transmission function T(θ) is given by

$$T(\theta )= {T_n},\textrm{ }{\theta _{n - 1}} \le \theta \le {\theta _n},\textrm{ } - 1 \le {T_n} \le 1,\textrm{ }n = 1,2,\ldots ,N$$
where the phase of each annular zone is set with binary value of 0 or π for different ranges of angle θ. Consequently, the total electric field at cylindrical coordinate (r, z) (Er(r,z) or Ez(r,z)) is regarded as the linear combination of the electric field contributed by each annular zone with corresponding weights of transmission coefficient Tn. We adopt Ern(r,z) and Ezn(r,z) to represent the contribution of the nth annular zone to the radial and longitudinal electric field components, respectively, which are determined by
$$\begin{array}{l} {E_{rn}}(r,z) = A\int\limits_{{\theta _{n - 1}}}^{{\theta _n}} {\sin (2\theta ){J_1}(kr\sin \theta )\textrm{exp} (ikz\cos \theta )\sqrt {\cos \theta } d\theta } \\ {E_{zn}}(r,z) = 2iA\int\limits_{{\theta _{n - 1}}}^{{\theta _n}} {{{\sin }^2}(\theta ){J_0}(kr\sin \theta )\textrm{exp} (ikz\cos \theta )\sqrt {\cos \theta } d\theta } \end{array}.$$
With these equations, the total intensity at cylindrical coordinate (r, z) in the focal region can be written as
$$I(r,z) = {|{{E_r}(r,z)} |^2} + {|{{E_z}(r,z)} |^2} = {\left|{\sum\limits_{n = 1}^N {{T_n}{E_{rn}}(r,z)} } \right|^2} + {\left|{\sum\limits_{n = 1}^N {{T_n}{E_{zn}}(r,z)} } \right|^2}$$
In the physical model from Eq. (1) to Eq. (4), the DOE is divided into a series of annular regions with fixed width (Annular widths are fixed as long as the total number N is given), which means that the vector diffraction integrals in Eq.(3) are computed for one time only and then can be saved as a data base in the iterative optimization. Compared to the previous physical model of focus shaping that optimizes the width of annular region [11,15,16], this paper optimizes the transmission coefficients of each annular region and can avoid the computation of vector diffraction integral in each iteration. Hence, it is helpful for DOE design to analyze the contribution of each annular zone to the total intensity distribution. According to Eq.(3), we plot the normalized radial (Ern(r,z)) and longitudinal (Ezn(r,z)) electrical field components with respect to annular zone number n and radial coordinate r in Fig. 2 when NA = 0.95 and N = 25. In the focal plane (z = 0), the radial component of electric field (Fig. 2(a)) is null at focal point and the longitudinal component contributed by outer annular zones (Fig. 2(b)) is maximal around the focal point. Such phenomena can be easily explained by the Bessel function J1 and J0 in Eq.(3). For the electric field along the optical axis (r = 0), the radial component is zero in Fig. 2 (c) while the longitudinal component is symmetric about the longitudinal axis and has larger contribution from outer annular zones, which are reflected in Fig. 2(d) and Fig. 2(e).

 figure: Fig. 2.

Fig. 2. The focal field distribution when the NA = 0.95 and the total number of annular zones is N = 25. All the amplitudes are normalized by their maximums. (a) Radial component Er and (b) Longitudinal component Ez of electrical field at focal plane (z = 0) with respect to annular zone number n and radial coordinate r. (c) Radial component Er of electric field along longitudinal direction is zero due to the zero contribution from annular zones. (d) Amplitude and (e) phase of electric field component Ez contributed by each annular zone along longitudinal direction.

Download Full Size | PDF

Based on the different contribution of each annular zone to the focal field, the purpose of focus shaping is to acquire the proper transmission coefficient T1TN of each annular zone of the DOE, which can modulate the amplitude and phase of the incident beam to fulfill the targeted intensity I(r,z) in Eq.(4). Such process is cast into an inverse problem, which is to estimate the unknown transmission coefficient T1TN by minimizing the discrepancy between the computed and targeted intensity distribution:

$${\tilde{T}_n} = \arg \min f({T_n})$$
where f (Tn) is a loss function, we need to define. In fact, some other optimization targets should be also considered, such as side lobe and Strehl ratio (Central intensity of focal field), all of which are critical parameters for the application, such as superresolution imaging and optical trapping. Therefore, we define the loss function as
$$f({T_n}) = \left\|{\frac{{{I_g}({T_n})}}{{{I_g}({r = 0,z = 0} )}} - {I_t}} \right\|_2^2 + \alpha {\left[ {\max \left( {\frac{{{I_{SFOV}}}}{{{I_g}({r = 0,z = 0} )}}} \right) - {I_{SL}}} \right]^2} + \frac{\beta }{{SR}}.$$

In the loss function, ‖ · ‖2 represents Euclidean distance and thus the first term is a fidelity term measuring the closeness of an estimated intensity Ig to the targeted intensity. The second term restricts relative intensity of the maximum side lode to ISL. The third term uses Strehl Ratio (SR) as the loss function, which can maximize the intensity of the focal point, I(r = 0, z = 0). To be more specific, SR is defined as the ratio of the central intensity of the focal field with DOE to that of the focal field without DOE

$$SR = \frac{{{I_g}({r = 0,z = 0} )}}{{{I_{{T_n} = 1}}({r = 0,z = 0} )}}.$$

Usually the value of α and β (α>0, β > 0) is chosen empirically to balance the contribution of corresponding term to the total loss function. One typical method is to solve the minimization problem in Eq.(5) using direction optimization algorithm, for example, gradient decent method. In this work, a PhyANN scheme that combines the physical model with ANN is proposed in the following. We make our implementation of PhyANN as open software in Python, which can be found at https://github.com/shepherd-cc/FocusShaping.

3. ANN-based optimization method – PhyANN

As is known to all, a typical ANN method is to optimize its weight and bias parameters using a sufficiently large set of training data so that the ANN can represent a universal function that maps the transmission coefficient Tn to the targeted intensity distribution It, but it suffers from the limited generalization ability due to the mismatch between the test data set and the training data set [33]. Such learning-based ANN method is usually considered as a black box and thus tends to be more obscure [32]. Instead, a strategy to incorporate the knowledge of underlying physics as well as insight originated from objective function approaches into the ANN structure are the desired solution.

In this work, the pipeline of PhyANN is proposed in Fig. 3 by combining the resulting physical model of Eq.(4) with an ANN. Accordingly, the retrieval of transmission coefficients in Eq.(5) is converted to the retrieval of weights of ANN:

$${W^\ast } = \mathop {\arg \min }\limits_W \{{f({T_n})} \}$$

Compared to the conventional ANN, PhyANN does not need training data set. Instead, it uses the physical model of Eq.(4) to generate the intensity distribution Ig from the transmission coefficients Tn, and then employs the defined loss function of Eq.(6) to optimize the weights and biases via gradient descent. This forces the generated intensity Ig to converge to the focus profile with designated parameters as the iterative process proceeds.

 figure: Fig. 3.

Fig. 3. The architecture of PhyANN scheme. An arbitrary constant (a unity constant here) rather than focus intensity profile is the input to the neural network. The output of the neural network is the transmission coefficients of DOE, which modulates the incident beam of the physical model to generate the focus intensity Ig. The loss function is defined as summation of the mean square error between normalized Ig and targeted intensity It and other restriction term, which is employed to iteratively optimize the weights and biases via gradient descent.

Download Full Size | PDF

The ANN used here is a generator transforming arbitrary input to transmission coefficients, Tn. Without loss of generality, a constant of c = 1 is adopted in this work. Specifically, the ANN consists of an input layer with single neural node followed by rectified linear unit (ReLU), three hidden layers with 300 neural nodes followed by ReLU in each hidden layer and an output layer with N neural nodes followed by activation function tanh. The number of weights can be easily tuned by changing the number of layers and the neural nodes of each layer. The weights of ANN will be renewed with error backpropagation and gradient descent according to Eq.(8). Once the optimal weights W are obtained when the iteration is terminated according to the targeted loss function, the output Tn of ANN are the optimal transmission coefficients of annular regions.

In the simulation, a normal personal computer with the configuration of CPU: Intel Core i5-9400F 3.20G and RAM:16G is used for all the computation. We use TensorFlow 2.3 and Python 3.7.7 to construct such a pipeline of PhyANN. The optimizer we used is adaptive moment estimation (Adam) [41], a stochastic gradient descent method that is based on adaptive estimation of first-order and second-order moments. We use 0.001 as the learning rate, which is a good default setting for the tested machine learning problem [41].

4. Result

In the physical model, the radially polarized beam at operating wavelength 532 nm is passing through the DOE and focused by an aplanatic lens of NA = 0.95. Six DOEs that generate four different kinds of focus intensity profiles, including sub-diffraction spot, flattop spot, optical needle, and multi-focus region are inversely designed using the proposed PhyANN scheme. For comparison, typical PSO algorithm results are also provided [42]. It should be noted that the convergence speed of two approaches is dependent on their hyperparameters: for example, the number of hidden layers and node number of each layer for the PhyANN and particle population for PSO.

For PSO algorithm, the particle population indeed has an important impact on the performance when other characteristic parameters are the default values in [42]. More specifically, the optimization performance can be improved by increasing the particle population. However, the bigger particle population PSO algorithm chooses, the more time it takes per iteration. To fairly compare the proposed PhyANN with PSO algorithm, we choose the proper number of the hidden layer (three layers) and node number of each layer (300 nodes for each layer) for PhyANN, and obtain the DOE design results. Then, we delicately modify the particle population of PSO algorithm to ensure that the iterations and computation time are almost same as that in the proposed PhyANN. Finally, we compare the loss function value and the SR of the focus profiles. The optimization parameters and the comparisons are provided in Table 1. It is found that for DOE designs that generate two-dimensional focus profiles (subdiffraction spots and flattop spots), the loss functions and the optimized SR are comparable for both methods. For DOE designs that generate three-dimensional focus profiles (optical needles and multi-focus region), the PhyANN provides smaller loss function value and better SR than PSO algorithm (Table 1).

Tables Icon

Table 1. The characteristic parameters of the focus shaping examples using PhyANN and PSO algorithm

4.1 Inverse design of sub-diffraction spots

Generally, the resolution of optical microscopy is limited to 0.5λ/NA due to diffraction limit, which is described as the full width at half maximum (FWHM) of the focal spot. The sub-diffraction spot is of great importance to the resolution enhancement of optical microscopy. To achieve the sub-diffraction spot using the proposed PhyANN scheme, two targeted intensity points at r = [0, FWHM/2] along radial direction with corresponding normalized intensity It = [1, 0.5] is chosen in the loss function.

For the first case, the targeted FWHM of sub-diffraction spot is set as 0.41λ without sidelobe constraint and the optimized transmission coefficients of Tn are obtained as shown in Fig. 4(a). The generated intensity distribution in the focal plane (calculated from the generated Tn) is presented in Fig. 4(b). To be clear, the cross section along radial direction is also provided in Fig. 4(c). It is found that two targeted intensity points (red dots in Fig. 4(c)) exactly fall on the line, proving the effectiveness and accurateness of the proposed approach. But we should note the rising sidelobe due to the narrowing of main spot.

 figure: Fig. 4.

Fig. 4. Inverse design results of sub-diffraction focal spot for targeted FWHM = 0.41λ. The first row (a-c) is presented without sidelobe restriction (α = 0) while the second row (d-f) with sidelobe loss function (α = 0.5). (a) and (d) are the resulting transmission coefficient distributions of DOE, corresponding to which, the normalized intensity distributions of focal plane are plotted in (b) and (e). Their cross section (blue lines) along radial direction are shown in (c) and (f), respectively, where the target intensity points (the red dots) exactly fall on the lines.

Download Full Size | PDF

To alleviate the rising sidelobes, we include the sidelobe constraint in the loss function by setting α = 0.5 and ISL = 0.2. As expected, the relative intensity of maximum sidelobe has been restricted to 0.2 at the expense of reduce of peak intensity of focal field, which is reflected in Fig. 4(e) and Fig. 4(f). Consequently, the transmission coefficients Tn of annular regions in Fig. 4(d) have a complex combination to fulfill the restriction of the sidelobe, compared to the transmission coefficients in Fig. 4(a).

4.2 Inverse design of flattop spot

The flattop spot is attractive to many applications due to it relatively well-defined size, shape and uniform intensity distribution, which finds application in material processing, lithography and so on. Using the PhyANN scheme, we can easily achieve flattop spots with high flatness and tunable radius by selecting targeted points with uniform intensity. As examples, two flattop spots with their flattop radii of 0.17λ and 0.55λ are shown in Fig. 5(a)- Fig. 5(c) and Fig. 5(d)- Fig. 5(f), respectively. The transmission coefficients of Tn in Fig. 5(a) and Fig. 5(d) are [0.79, 0.97, 0.97, 0.94, 0.97, 1, 0.98, 0.98, 1, 1, 1, 1, 1, 1, 1, 1, 0.98, 1, 0.97, 1, 1, 0.53, −1, −1, −1] and [0.62, 0.96, 1, 1, 0.96, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.76, −0.3, −0.98, −1, −0.98, −0.8, 0.57, 1, 1], respectively.

 figure: Fig. 5.

Fig. 5. Inverse design results of flattop spots for targeted radii: (a-c) 0.17λ and (d-f) 0.55λ. (a) and (d) are the resulting transmission coefficient distributions of the DOE, corresponding to which, the normalized intensity distributions of focal plane are plotted in (b) and (e). Their cross section (blue lines) along radial direction are shown in (c) and (f), respectively, where the target intensity points (the red dots) exactly fall on the lines.

Download Full Size | PDF

4.3 Inverse design of sub-diffraction optical needle and multi-focus regions

In the previous two sub-sections, the focal field is shaped only in the focal plane (z = 0). However, focus shaping in three-dimensional (3D) volume is imperative for 3D microscopy imaging, optical lithography and Raman spectroscopy. Here, we demonstrate the proposed PhyANN scheme capable of shaping the focal spot in 3D volume by achieving sub-diffraction optical needles and multi-focus regions. More specifically, a data set of targeted points and the corresponding intensity are properly chosen according to characteristic parameters such as the length of optical needle, FWHM at a certain plane and so on.

As examples, an optical needle with 10λ depth of focus and a sub-diffraction resolution of 0.41λ and a multi-focus region with a sub-diffraction resolution of 0.45λ are introduced using the PhyANN scheme. The data sets of targeted points and the transmission coefficients of the designed DOE are shown in Table 2. The design results are plotted in Fig. 6(a)-Fig. 6(f). One can see that the resulting transmission coefficients of optical needle and multi-focus region in Fig. 6(a) and Fig. 6(d) have much more changes than that of focus shaping (Fig. 4 and Fig. 5) in the focal plane only, which attributes to the complexity of the 3D focal field shaping. In addition, it should be emphasized that the optical needle (Fig. 6(b)) designed by the PhyANN has quite high flatness of almost same intensity value, which is much better than that in [15,33]. This is because the generated intensity at the targeted position along z-axis is exactly same as the targeted unity intensity as shown in Fig. 6(c). Similarly, all of focus in the multi-focus region have almost same profile as shown in Fig. 6(e) and Fig. 6(f).

 figure: Fig. 6.

Fig. 6. Inverse design results of (a-c) optical needle with targeted needle length of 10λ and (d-f) multi-focus region. (a) and (d) are the resulting transmission coefficient distributions of the DOE, corresponding to which, the normalized intensity distributions at the meridian plane are plotted in (b) and (e). Their cross sections (blue lines) along radial direction are shown in (c) and (f), respectively, where the red dots represent the target intensity points.

Download Full Size | PDF

Tables Icon

Table 2. The data set of targeted points and transmission coefficients Tn for focus shaping

5. Discussion

In the previous section, the capability and efficiency of the proposed PhyANN approach have been demonstrated by designing different DOEs that generate subdiffraction spot, flattop spot, optical needle and multi-focus region, respectively. Compared to the typical PSO algorithm, the PhyANN has advantage in three-dimensional focus profile designs. In this section, we focus on the PhyANN and discuss the effect of various hyperparameters on the optimization process. For the learning rate, we use the default setting of 0.001 in the optimizer of Adam [41]. In the following, we discuss α and β, the number of hidden layers and number of nodes per layer in details.

The hyperparameters, α and β, play an important role in the optimization. By adjusting α, a compromise is achieved to suppress the sidelobes and satisfy the targeted characteristic parameters of the focus profile. The appropriate compromise highly depends on the choice of α. If α is too large, the generated focus profile does not fit the targeted characteristic parameters, while if α is too small, the sidelobe cannot be suppressed as expected. The role of β is similar to that of α, but a compromise is achieved to increase the SR and satisfy the targeted characteristic parameters of focus profile. In this regard, the strategy to choose α and β is as follows. By setting α = 0, we first initialize β as a large value (normally β = 1), and then decrease it until the generated focus profile fits the targeted characteristic parameters. This value is the right value of β we need. When β is determined, the value of α can be obtained according to the same strategy.

As an example, the optimization results of sub-diffraction focal spot with α = 0 is shown in Fig. 7(a) when different values of β are used. Among them, β = 1×10−3 is the value determined by the proposed strategy. It is found that the targeted intensity points match well with the focus intensity profile and the SR is maximized to 0.34 as shown in Table 1. The bigger value of β (blue line β = 1×10−1) leads to the unfit of the targeted points with the focus profile. The case for the smaller value (yellow line β = 1×10−5) has a smaller SR of 0.26, although the targeted intensity points match well with the focus intensity profile. For the subdiffraction spot design with sidelobe constraint, the best value of β = 1×10−3 is adopted. Figure 7(b) shows the different optimization results when α=0.01, α=0.5 and α=1. Similar phenomena can be found and α = 0.5 is determined by the proposed strategy. Therefore, the proposed strategy of how to choose the hyperparameters, α and β, is effective and important. Some other methods to determine such regularization parameters in a nonlinear optimization problem can be also found in [43,44].

 figure: Fig. 7.

Fig. 7. The performance of the PhyANN with different α and β, hidden layers or different nodes per layer. (a) The optimization results of subdiffraction spot (Fig. 4(a) to Fig. 4(c)) with different β. (b) The optimization results of subdiffraction spot with sidelobe constraint (Fig. 4(d) to Fig. 4(f)) with different α when β = 1e-3. The loss curve of (c) subdiffraction spot (Fig. 4(a) to Fig. 4(c)) and (d) optical needle (Fig. 6(a) to Fig. 6(c)) with different number of hidden layers when the number of nodes per layer is 300. The loss curve of (e) subdiffraction spot (Fig. 4(a) to Fig. 4(c)) and (f) optical needle (Fig. 6(a) to Fig. 6(c)) with different number of nodes per layer when the number of hidden layers is 3.

Download Full Size | PDF

Regarding the hyperparameters of the number of hidden layers and number of nodes per layer, we take the sub-diffraction spot (Fig. 4(a-c)) and optical needle (Fig. 6(a-c)) for examples to evaluate the performance of the PhyANN. The hyperparameters, α and β, are the best value determined by the proposed strategy. To avoid the loss of generality, we train 10 times for every situation and calculate the average value. When the number of nodes per layer is set as 300, the base-10 logarithm of loss function of PhyANN with different hidden layers is shown in Fig. 7 (c)-Fig. 7(d). As seen from Fig. 7 (c) and Fig. 7 (d), when the iteration process proceeds, the loss function for both cases promptly drop to a much smaller value and then gradually decrease to a stabilized value, which is attributed to the presence of the third term of the loss function, SR.

Further, with the increase of the numbers of hidden layers, the optimization process converges faster and has a smaller loss fucntion value. When the number of hidden layers is set as 3, the base-10 logarithm of loss function of PhyANN with different number of nodes per layer is shown in Fig. 7(e)-Fig. 7(f). It is also found that the optimization process converges fast at beginning and then go to a steady state. However, there is not much improvement when we increase numbers of nodes per layer. To sum up, more hidden layers or nodes per layers indicate better performance in the optimization. However, in practical, we should note that the more layers or nodes means the increasing computation cost. Therefore, we should make a tradeoff between computational cost and optimization performance according to the complexity of the problem we need to resolve.

6. Conclusion

In this work, we present an ANN-based iterative scheme, named as PhyANN, for DOE design to shape focus of a high NA objective lens. In contrast to the conventional ANN that requires a training process, the PhyANN reconstructs the DOE by combining a conventional ANN with a physical model of VDT that generates focus intensity profiles from the transmission function of the DOE. The defined loss function with respect to the focus intensity profile is employed to optimize weights and biases via gradient descent, eventually resulting in a desired solution that satisfies targeted focus profiles.

By delicately designing the loss function and then feedback to the ANNs, we achieve a sub-diffraction focal spot of FWHM = 0.41λ with the intensity of maximum sidelobe less than one fifth of the peak intensity. Flattop spots with different size are easily obtained by increasing the target points with unit intensity. Meanwhile, the proposed scheme shows the high freedom to shape the focus in 3D volume by achieving a sub-diffraction optical needle with a 10λ depth of focus and 0.41λ beyond diffraction limit resolution. A multi-focus region along longitudinal axis with lateral resolution of 0.45λ is also obtained. It should be mentioned that we can efficiently achieve the focus profile with the targeted characteristic parameters from second to tens of seconds. This is attributed to the architecture of the proposed PhyANN that incorporates knowledge of the underlying physics and insight originated from the designed loss function.

In the physical model based on VDT, the amplitude and phase hybrid modulation DOE is adopted and is divided into a series of annular regions with fixed widths, which allows us to optimize the transmission coefficients instead of the annular widths that is normally used in bibliography [1117]. As a result, the vector diffraction integral of Eq. (3) is computed for one time only and then can be saved as a data base. Further, the amplitude and phase hybrid modulation DOE means the extension of the degree of the freedom for generation of focus profiles. However, we should also note the implementation of the amplitude and phase hybrid modulation DOE is a little bit complicated than common phase-only case. Fortunately, some amplitude and phase hybrid modulation DOEs have been developed [45] and the emerging metasurface devices can also provide both amplitude and phase modulation of light beam in subwavelength scale using the prescribed nanostructures [16,46]. Therefore, it will not be a problem for the experimental implementation.

In addition, we have compared the proposed PhyANN with the typical PSO Algorithm. It is found that for DOE designs that generate the two-dimensional focus profiles (subdiffraction spots and flattop spots), the loss functions and the optimized SR are comparable for both methods when the almost the same computation time and iterations are set in the optimization process. For DOE designs that generate three-dimensional focus profiles (optical needle and multi-focus region), the PhyANN provides slightly better loss function value and better SR than PSO algorithm. It can be concluded that the proposed PhyANN can offer an alternative method to effectively design the annular pupil filter that generates the targeted focus profile. Such study provides not only an interesting opportunity for many applications such as super-resolution microscopy, optical tweezers, optical lithography and optical storage, but also a promising direction that combining underlying physics with ANN to solve nonlinear inverse problems.

Funding

National Natural Science Foundation of China (61905291, 61805288); Guangdong Basic and Applied Basic Research Foundation (2020A1515010626); The Open Project Program of Wuhan National Laboratory for Optoelectronics (2019WNLOKF020); Fundamental Research Funds for the Central Universities (19lgpy271).

Disclosures

The authors declare no conflicts of interest.

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

References

1. R. Schmidt, C. A. Wurm, S. Jakobs, J. Engelhardt, A. Egner, and S. W. Hell, “Spherical nanosized focal spot unravels the interior of cells,” Nat. Methods 5(6), 539–544 (2008). [CrossRef]  

2. E. L. Loh, R. Chen, K. Agarwal, and X. Chen, “Feature-based filter design for resolution enhancement of known features in microscopy,” J. Opt. Soc. Am. A 31(12), 2610–2617 (2014). [CrossRef]  

3. Z. Gan, Y. Cao, R. A. Evans, and M. Gu, “Three-dimensional deep sub-diffraction optical beam lithography with 9 nm feature size,” Nat. Commun. 4(1), 2061 (2013). [CrossRef]  

4. D. McGloin and J. P. Reid, “Forty years of optical manipulation,” Opt. Photonics News 21(3), 20 (2010). [CrossRef]  

5. M. E. J. Friese, T. A. Nieminen, N. R. Heckenberg, and H. Rubinsztein-Dunlop, “Optical alignment and spinning of laser-trapped microscopic particles,” Nature 394(6691), 348–350 (1998). [CrossRef]  

6. Y. Jiang, X. Li, and M. Gu, “Generation of sub-diffraction-limited pure longitudinal magnetization by the inverse Faraday effect by tightly focusing an azimuthally polarized vortex beam,” Opt. Lett. 38(16), 2957–2960 (2013). [CrossRef]  

7. E. Wolf, “Electromagnetic diffraction in optical systems .I. an integral representation of the image field,” Proc. R. Soc. Lond. A 253(1274), 349–357 (1959). [CrossRef]  

8. K. S. Youngworth and T. G. Brown, “Focusing of high numerical aperture cylindrical-vector beams,” Opt. Express 7(2), 77–87 (2000). [CrossRef]  

9. C. J. R. Sheppard, J. Campos, J. Escalera, and S. Ledesma, “Two-zone pupil filters,” Opt. Commun. 281(5), 913–922 (2008). [CrossRef]  

10. C. J. R. Sheppard and A. Choudhury, “Annular pupils, radial polarization, and superresolution,” Appl. Opt. 43(22), 4322–4327 (2004). [CrossRef]  

11. X. Hao, C. Kuang, T. Wang, and X. Liu, “Phase encoding for sharper focus of the azimuthally polarized beam,” Opt. Lett. 35(23), 3928–3930 (2010). [CrossRef]  

12. R. Gerchberg and A. Saxton, “A practical algorithm for the determination of phase from image and diffraction plane pictures,” Optik 35, 237–250 (1971).

13. K. Jahn and N. Bokor, “Intensity control of the focal spot by vectorial beam shaping,” Opt. Commun. 283(24), 4859–4865 (2010). [CrossRef]  

14. J. Hao, Z. Yu, H. Chen, Z. Chen, H. Wang, and J. Ding, “Light field shaping by tailoring both phase and polarization,” Appl. Opt. 53(4), 785–791 (2014). [CrossRef]  

15. H. M. Guo, X. Y. Weng, M. Jiang, Y. H. Zhao, G. R. Sui, Q. Hu, Y. Wang, and S. L. Zhuang, “Tight focusing of a higher-order radially polarized beam transmitting through multi-zone binary phase pupil filters,” Opt. Express 21(5), 5363–5372 (2013). [CrossRef]  

16. Z. Zhuang, R. Chen, Z. Fan, X. Pang, and J. Dong, “High focusing efficiency in subdiffraction focusing metalens”,” Nanophotonics 8(7), 1279–1289 (2019). [CrossRef]  

17. J. Lin, H. Zhao, Y. Ma, J. Tan, and P. Jin, “New hybrid genetic particle swarm optimization algorithm to design multi-zone binary filter,” Opt. Express 24(10), 10748–10758 (2016). [CrossRef]  

18. Y. Zhao, Q. Zhan, and Y. P. Li, “Design of DOE for beam shaping with highly NA focused cylindrical vector beam,” Proc. SPIE 5636, 56 (2005). [CrossRef]  

19. Z. Chen, T. Zeng, and J. Ding, “Reverse engineering approach to focus shaping,” Opt. Lett. 41(9), 1929–1932 (2016). [CrossRef]  

20. G. Zhang, X. Gao, Y. Pan, M. Zhao, D. Wang, H. Zhang, Y. Li, C. Tu, and H. Wang, “Inverse method to engineer uniform-intensity focal fields with arbitrary shape,” Opt. Express 26(13), 16782–16796 (2018). [CrossRef]  

21. J. Borne, D. Panneton, M. Piche, and S. Thibault, “Analytical inversion of the focusing of high-numerical-aperture aplanatic systems,” J. Opt. Soc. Am. A 36(10), 1642–1647 (2019). [CrossRef]  

22. J. Wang, W. Chen, and Q. Zhan, “Engineering of high purity ultra-long optical needle field through reversing the electric dipole array radiation,” Opt. Express 18(21), 21965–21972 (2010). [CrossRef]  

23. J. Wang, W. Chen, and Q. Zhan, “Three-dimensional focus engineering using dipole array radiation pattern,” Opt. Commun. 284(12), 2668–2671 (2011). [CrossRef]  

24. Y. Yu and Q. Zhan, “Optimization-free optical focal field engineering through reversing the radiation pattern from a uniform line source,” Opt. Express 23(6), 7527–7534 (2015). [CrossRef]  

25. J. Lin, K. Yin, Y. Li, and J. Tan, “Achievement of longitudinally polarized focusing with long focal depth by amplitude modulation,” Opt. Lett. 36(7), 1185–1187 (2011). [CrossRef]  

26. T. Liu, J. B. Tan, J. Liu, and J. Lin, “Creation of subwavelength light needle, equidistant multi-focus, and uniform light tunnel,” J. Mod. Opt. 60(5), 378–381 (2013). [CrossRef]  

27. J. J. Jamian, M. N. Abdullah, H. Mokhlis, M. W. Mustafa, and A. H. A. Bakar, “Global Particle Swarm Optimization for High Dimension Numerical Functions Analysis,” Journal of Applied Mathematics 2014, 1–14 (2014). [CrossRef]  

28. W. Ma, Z. Liu, and Z. A. Kudyshev, “Deep learning for the design of photonic structures,” Nat. Photonics. 15, 77–90 (2021). [CrossRef]  

29. A. Sinha, J. Lee, S. Li, and G. Barbastathis, “Lensless computational imaging through deep learning,” Optica 4(9), 1117–1125 (2017). [CrossRef]  

30. Z. Zong, Y. Wang, and Z. Wei, “A Review of Algorithms and Hardware Implementations in Electrical Impedance Tomography (Invited),” Prog. Electromagn. Res. 169, 59–71 (2020). [CrossRef]  

31. Y. Rivenson, Y. Zhang, H. Günaydın, D. Teng, and A. Ozcan, “Phase recovery and holographic image reconstruction using deep learning in neural networks,” Light: Sci. Appl. 7(2), 17141 (2018). [CrossRef]  

32. Z. Wei and X. Chen, “Physics-Inspired Convolutional Neural Network for Solving Full-Wave Inverse Scattering Problems,” IEEE Trans. Antennas Propag. 67(9), 6138–6148 (2019). [CrossRef]  

33. W. Xin, Q. Zhang, and M. Gu, “Inverse design of optical needles with central zero-intensity points by artificial neural networks,” Opt. Express 28(26), 38718–38732 (2020). [CrossRef]  

34. V. Lempitsky, A. Vedaldi, and D. Ulyanov, “Deep Image Prior,” in 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018, 9446–9454.

35. E. Bostan, R. Heckel, M. Chen, M. Kellman, and L. Waller, “Deep phase decoder: self-calibrating phase microscopy with an untrained deep neural network,” Optica 7(6), 559–562 (2020). [CrossRef]  

36. F. Wang, Y. Bian, H. Wang, M. Lyu, G. Pedrini, W. Osten, G. Barbastathis, and G. Situ, “Phase imaging with an untrained neural network,” Light: Sci. Appl. 9(1), 77 (2020). [CrossRef]  

37. M. M. Noel, “A new gradient based particle swarm optimization algorithm for accurate computation of global minimum,” Appl. Soft Comput. 12(1), 353–359 (2012). [CrossRef]  

38. A. Choromanska, M. Henaff, M. Mathieu, G. B. Arous, and Y. LeCun, “The loss surfaces of multilayer networks,” Proc. Artificial Intelligence and Statistics 192–204 (2015).

39. B. D. Haeffele and R. Vidal, “Global optimality in neural network training,” Proc. IEEE Conf. Computer Vision and Pattern Recognition, 4390–4398 (2017).

40. S. S. Du, J. D. Lee, H. Li, L. Wang, and X. Zhai, Gradient descent finds global minima of deep neural networks (2018). arXiv:1811.03804

41. D. Kingma and J. Ba, et al. Adam: a method for stochastic optimization. Preprint at https://arxiv.org/abs/1412.6980 (2014).

42. B. Birge, “PSOt - a particle swarm optimization toolbox for use with Matlab,” in Proceedings of the 2003 IEEE Swarm Intelligence Symposium. SIS'03 (Cat. No.03EX706), 2003, 182–186.

43. Y. W. Wen and R. H. Chan, “Parameter selection for total-variation based image restoration using discrepancy principle,” IEEE Trans. on Image Process. 21(4), 1770–1781 (2012). [CrossRef]  

44. G. M. P. van Kempen and L. J. van Vliet, “The influence of the regularization parameter and the first estimate on the performance of Tikhonov regularized non-linear image restoration algorithms,” J. Microsc. 198(1), 63–75 (2000). [CrossRef]  

45. Hwi Kim and Byoungho Lee “Phase and amplitude modulation of a two-dimensional subwavelength diffractive optical element on artificial distributed-index medium”, Proc. SPIE 4929, Optical Information Processing Technology, (16 September 2002);

46. N. Yu and F. Capasso, “Flat optics with designer metasurfaces,” Nat. Mater. 13(2), 139–150 (2014). [CrossRef]  

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (7)

Fig. 1.
Fig. 1. Schematic illustration of the focusing geometry of high NA lens. (a) The radially polarized beam is modulated by a DOE and then focused by high NA lens. The inset is zoom in focus intensity profile. (b) The DOE with transmission coefficients, Tn, of each annular zone.
Fig. 2.
Fig. 2. The focal field distribution when the NA = 0.95 and the total number of annular zones is N = 25. All the amplitudes are normalized by their maximums. (a) Radial component Er and (b) Longitudinal component Ez of electrical field at focal plane (z = 0) with respect to annular zone number n and radial coordinate r. (c) Radial component Er of electric field along longitudinal direction is zero due to the zero contribution from annular zones. (d) Amplitude and (e) phase of electric field component Ez contributed by each annular zone along longitudinal direction.
Fig. 3.
Fig. 3. The architecture of PhyANN scheme. An arbitrary constant (a unity constant here) rather than focus intensity profile is the input to the neural network. The output of the neural network is the transmission coefficients of DOE, which modulates the incident beam of the physical model to generate the focus intensity Ig. The loss function is defined as summation of the mean square error between normalized Ig and targeted intensity It and other restriction term, which is employed to iteratively optimize the weights and biases via gradient descent.
Fig. 4.
Fig. 4. Inverse design results of sub-diffraction focal spot for targeted FWHM = 0.41λ. The first row (a-c) is presented without sidelobe restriction (α = 0) while the second row (d-f) with sidelobe loss function (α = 0.5). (a) and (d) are the resulting transmission coefficient distributions of DOE, corresponding to which, the normalized intensity distributions of focal plane are plotted in (b) and (e). Their cross section (blue lines) along radial direction are shown in (c) and (f), respectively, where the target intensity points (the red dots) exactly fall on the lines.
Fig. 5.
Fig. 5. Inverse design results of flattop spots for targeted radii: (a-c) 0.17λ and (d-f) 0.55λ. (a) and (d) are the resulting transmission coefficient distributions of the DOE, corresponding to which, the normalized intensity distributions of focal plane are plotted in (b) and (e). Their cross section (blue lines) along radial direction are shown in (c) and (f), respectively, where the target intensity points (the red dots) exactly fall on the lines.
Fig. 6.
Fig. 6. Inverse design results of (a-c) optical needle with targeted needle length of 10λ and (d-f) multi-focus region. (a) and (d) are the resulting transmission coefficient distributions of the DOE, corresponding to which, the normalized intensity distributions at the meridian plane are plotted in (b) and (e). Their cross sections (blue lines) along radial direction are shown in (c) and (f), respectively, where the red dots represent the target intensity points.
Fig. 7.
Fig. 7. The performance of the PhyANN with different α and β, hidden layers or different nodes per layer. (a) The optimization results of subdiffraction spot (Fig. 4(a) to Fig. 4(c)) with different β. (b) The optimization results of subdiffraction spot with sidelobe constraint (Fig. 4(d) to Fig. 4(f)) with different α when β = 1e-3. The loss curve of (c) subdiffraction spot (Fig. 4(a) to Fig. 4(c)) and (d) optical needle (Fig. 6(a) to Fig. 6(c)) with different number of hidden layers when the number of nodes per layer is 300. The loss curve of (e) subdiffraction spot (Fig. 4(a) to Fig. 4(c)) and (f) optical needle (Fig. 6(a) to Fig. 6(c)) with different number of nodes per layer when the number of hidden layers is 3.

Tables (2)

Tables Icon

Table 1. The characteristic parameters of the focus shaping examples using PhyANN and PSO algorithm

Tables Icon

Table 2. The data set of targeted points and transmission coefficients Tn for focus shaping

Equations (8)

Equations on this page are rendered with MathJax. Learn more.

E r ( r , z ) = A 0 θ max T ( θ ) sin ( 2 θ ) J 1 ( k r sin θ ) exp ( i k z cos θ ) cos θ d θ E z ( r , z ) = 2 i A 0 θ max T ( θ ) sin 2 ( θ ) J 0 ( k r sin θ ) exp ( i k z cos θ ) cos θ d θ .
T ( θ ) = T n ,   θ n 1 θ θ n ,   1 T n 1 ,   n = 1 , 2 , , N
E r n ( r , z ) = A θ n 1 θ n sin ( 2 θ ) J 1 ( k r sin θ ) exp ( i k z cos θ ) cos θ d θ E z n ( r , z ) = 2 i A θ n 1 θ n sin 2 ( θ ) J 0 ( k r sin θ ) exp ( i k z cos θ ) cos θ d θ .
I ( r , z ) = | E r ( r , z ) | 2 + | E z ( r , z ) | 2 = | n = 1 N T n E r n ( r , z ) | 2 + | n = 1 N T n E z n ( r , z ) | 2
T ~ n = arg min f ( T n )
f ( T n ) = I g ( T n ) I g ( r = 0 , z = 0 ) I t 2 2 + α [ max ( I S F O V I g ( r = 0 , z = 0 ) ) I S L ] 2 + β S R .
S R = I g ( r = 0 , z = 0 ) I T n = 1 ( r = 0 , z = 0 ) .
W = arg min W { f ( T n ) }
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.