원시데이터 수집 시스템
선정목록으로

Freeform surface topology prediction for prescribed illumination via semi-supervised learning

간접 관련 필름·전자재료 · (13) 프리즘 필름 (3) 자동차 인테리어 소재

기본 정보

저자
  1. Jeroen Cerpentier — KU Leuven, Department of Electrical Engineering (ESAT), Gebroeders de Smetstraat 1, 9000 Gent, Belgium
  2. Youri Meuret — KU Leuven, Department of Electrical Engineering (ESAT), Gebroeders de Smetstraat 1, 9000 Gent, Belgium
DOI
10.1364/oe.510808
저널
Optics Express
발행년도
2024
발행기관
Optica Publishing Group
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1364/oe.510808
토픽
Optical Coatings and Gratings
OpenAlex ID
W4391354022

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
(3) 자동차 인테리어 소재
R&D 측면
분석·모델링
확신도
0.70
근거 용어
freeform optical design, illumination design, refractive element, machine learning, irradiance distribution
판단 근거
본 논문은 머신러닝을 이용해 특정 조도 분포를 생성하는 자유형(freeform) 광학 표면 형상을 예측하는 설계 프레임워크를 다룹니다. 이는 코오롱인더스트리의 광학 필름(13) 설계 및 자동차 헤드라이트(3)와 같은 조명 시스템의 광학 설계 최적화에 응용될 수 있는 기술입니다.
R&D 활용 포인트
광학 필름의 미세 구조 설계나 자동차용 조명 부품의 광학 성능 최적화를 위한 AI 기반 설계 모델링 기술로 활용 가능합니다.
평가 입력
본문 55,820자 중 30,032자 발췌

초록

Despite significant advances in the field of freeform optical design, there still remain various unsolved problems. One of these is the design of smooth, shallow freeform topologies, consisting of multiple convex, concave and saddle shaped regions, in order to generate a prescribed illumination pattern. Such freeform topologies are relevant in the context of glare-free illumination and thin, refractive beam shaping elements. Machine learning techniques already proved to be extremely valuable in solving complex inverse problems in optics and photonics, but their application to freeform optical design is mostly limited to imaging optics. This paper presents a rapid, standalone framework for the prediction of freeform surface topologies that generate a prescribed irradiance distribution, from a predefined light source. The framework employs a 2D convolutional neural network to model the relationship between the prescribed target irradiance and required freeform topology. This network is trained on the loss between the obtained irradiance and input irradiance, using a second network that replaces Monte-Carlo raytracing from source to target. This semi-supervised learning approach proves to be superior compared to a supervised learning approach using ground truth freeform topology/irradiance pairs; a fact that is connected to the observation that multiple freeform topologies can yield similar irradiance patterns. The resulting network is able to rapidly predict smooth freeform topologies that generate arbitrary irradiance patterns, and could serve as an inspiration for applying machine learning to other open problems in freeform illumination design.

본문 55,820자

본문 펼치기
## Freeform surface topology prediction for prescribed illumination via semi-supervised learning Jeroen Cerpentier <sup>1</sup> and Youri Meuret <sup>1,</sup> <sup>*</sup> 1KU Leuven, Department of Electrical Engineering (ESAT), Light & Lighting Laboratory, B-9000 Gent, Belgium *Corresponding author: youri.meuret@kuleuven.be Abstract Despite significant advances in the field of freeform optical design, there still remain various unsolved problems. One of these is the design of smooth, shallow freeform topologies, consisting of multiple convex, concave and saddle shaped regions, in order to generate a prescribed illumination pattern. Such freeform topologies are relevant in the context of glare-free illumination and thin, refractive beam shaping elements. Machine learning techniques already proved to be extremely valuable in solving complex inverse problems in optics and photonics, but their application to freeform optical design is mostly limited to imaging optics. This paper presents a rapid, standalone framework for the prediction of freeform surface topologies that generate a prescribed irradiance distribution, from a predefined light source. The framework employs a 2D convolutional neural network to model the relationship between the prescribed target irradiance and required freeform topology. This network is trained on the loss between the obtained irradiance and input irradiance, using a second network that replaces MonteCarlo raytracing from source to target. This semi-supervised learning approach proves to be superior compared to a supervised learning approach using ground truth freeform topology/irradiance pairs; a fact that is connected to the observation that multiple freeform topologies can yield similar irradiance patterns. The resulting network is able to rapidly predict smooth freeform topologies that generate arbitrary irradiance patterns, and could serve as an inspiration for applying machine learning to other open problems in freeform illumination design. 1 ### 1 Introduction Optical systems to control the propagation of light play a major role in science and technology, and their importance will not diminish in the near future [1, 2, 3]. For decades, optical engineers have relied on systems with multiple (a)spherical surfaces, which have rotational symmetry [4, 5]. Recent advances in manufacturing technology however, allow the fabrication of freeform optical surfaces with completely arbitrary shape, thereby offering greater flexibility for controlling the propagation of light [6, 7]. Freeform optics are widely used in imaging systems to guide the light of points in object space effectively to corresponding points in image space [8, 9, 10, 11]. Also in the field of illumination design, freeform components are extensively used to map the emitted light distribution from a source into a desired target pattern, while maintaining the luminous flux [12, 13, 14]. The demand for such freeform illumination systems is rapidly growing, due to their application in fast-evolving fields such as optical lithography, automotive headlights and laser beam shaping [15, 16]. Illumination optics are determined by the light source under consideration and the targeted light pattern. Their design typically comes down to calculating one or more optical surfaces that manipulate the incoming rays, in order to produce a certain prescribed irradiance distribution. Freeform illumination design methods can be separated in two categories: zero ´etendue algorithms and algorithms for extended light sources [15]. Zero-´etendue methods are based on the assumption that the source is ideal, e.g. a point source or a collimated laser beam. Freeform design for zero-´etendue sources has matured significantly, and various accurate calculation methods exist, such as the ray-mapping and Monge-Amp`ere methods [17, 18, 19, 20]. Unfortunately, the ´etendue of real light sources can seldom be neglected in practice. When applying zero-´etendue algorithms for such extended light sources, the resulting pattern becomes blurry, and more dedicated design procedures are needed [21, 22]. To solve this problem, wavefront tailoring and deconvolution-based algorithms have been proposed [23, 24, 25, 26]. Although these methods function well under certain specific conditions, e.g. single-chip LED emitters, they remain unsuitable for arbitrary extended light sources. Alternatively, a solution can be obtained through optimization of the parameterized freeform surface(s) [27, 28, 29, 30, 31]. These iterative methods however, are typically computationally intensive and require a significant amount of convergence time. So, as opposed to zero-´etendue algorithms, the search for fast and effective freeform algorithms with extended light sources is still ongoing. 2 a Thickness (mm) 2.5 Target plane (far-field) c 1.25 0 Light source + freeform illumination lens Light source Control points Thickness (mm) 0.8 0.4 0 Freeform topology b Thickness (mm) 2.5 1.25 0 d Freeform lens array Figure 1: ( a ) Convex freeform illumination lens that generates a prescribed (far-field) target pattern from a given light source. ( b ) The light patterns generated by each of the four individual sub-lenses of a discontinuous lens array result together in the prescribed target pattern. ( c ) A smooth, continuous freeform surface _topology_ that consists of multiple convex, concave and saddle-shaped regions avoids strong C2 surface discontinuities. ( d ) Such a freeform surface topology can be described as a NURBS surface that is controlled by a matrix of control points. Remark : in (a) and (b) the illumination component and illumination pattern are not drawn to scale for illustration purposes. Aside from the considered light source and targeted light distribution, there is another aspect that is of practical importance in the design of freeform components for illumination purposes: the resulting freeform shape. Most freeform design methods result in overall convex or concave freeform surface shapes (Fig. 1a). This can lead to visual discomfort glare when combined with high-brightness light sources [32]. A possible approach to address this important issue in lighting, is working with freeform lens arrays, where each lens element illuminates (part of) the complete target pattern. In doing so, the light flux towards each point of the target pattern is spread over the entire lens surface, similar to the case of a light diffuser. This results in a reduced brightness perception when looking towards the illumination 3 optic, in comparison with a single-channel freeform lens [33]. Unfortunately, such freeform lens arrays have C2 discontinuities in between the individual lens elements. These discontinuities complicate manufacturing and lead to unwanted straylight [34]. Such problems could be avoided with smooth, continuous freeform surfaces that combine multiple convex, concave and saddle shaped regions, for which we introduce the term <u>freeform</u> <u>topologies</u> (Fig. 1c). For collimated light sources, such an oscillating freeform topology can be used to generate broad illumination patterns with much thinner optical elements, compared with overall convex or concave freeform surfaces. Designing such smooth and shallow, oscillating freeform topologies is challenging however. Within the domain of laser beam shaping, continuous phase plates (CPP) rely on a similar surface topology, but these are mainly used for converging laser beams, and current design methods do not enable tailoring of arbitrary irradiance shapes [35, 36]. On the other hand, such topologies could be constructed by crafting a continuous curvature between the individual convex and concave lenslets of a freeform lens array. Such a multi-stage method will likely exhibit limited generalization to create a wide range of different, complex irradiance patterns. To this day, a direct design method for freeform topologies that are capable of generating arbitrary irradiance patterns remains unpublished. To reduce the time and complexity of optical design, researchers have recently started to use machine learning techniques. Applying deep learning to solve inverse problems in photonics and optics has only recently arisen, but the potential is indisputable [37, 38, 39]. It may arguably become one of the main catalysts in designing complex optical configurations in the near future [40]. In the field of computational holography for example, mature machine learning methods are already state-of-the-art [41, 42]. Deep learning architectures for freeform design have also been presented in past research, but so far mainly within the domain of imaging optics, in order to find starting points close to a final solution [43, 44, 45, 46]. Within illumination design, one fully trained network has been demonstrated and the approach was restricted to creating very basic shapes [47]. The authors of this work also underlined the need for more advanced procedures. One of the main challenges to realize a fully trained network for freeform illumination design via supervised or unsupervised learning is the lack of a fast forward operator to link the input and output parameters. Monte-Carlo (MC) raytracing is typically used to evaluate the performance of freeform optics for a given light source. Taking into account the complex shape that freeform surfaces can adopt, tens of thousands to even millions of rays are needed to model the resulting irradiance pattern with limited statistical noise. 4 This paper presents a deep learning framework for solving the inverse problem of finding a refractive freeform surface topology in order to obtain a prescribed irradiance distribution from a predefined light source. The framework integrates supervised learning for modeling the raytracing on one hand, and semi-supervised learning for freeform surface prediction on the other hand. This double approach alleviates the computational burden to train the freeform surface prediction fully via Monte-Carlo raytracing. We demonstrate that rapid convergence can be obtained by considering the deviation of the irradiance resulting from a predicted freeform surface with the target irradiance as a loss function during training. This approach is different from the more typical method of considering the mean average error of the predicted freeform surface shape compared to the ground truth, which proves to have inferior convergence. This behavior is linked to the observation that two or more distinct freeform topologies can result in visually identical illumination patterns. The deep learning framework rapidly provides a suitable freeform design as is illustrated for various target patterns. As such, we demonstrate that deep learning does not only serve as a tool to enhance typical optimization procedures, but that it can be used as a fast, standalone method in freeform illumination design. ### 2 Methods Problem statement Consider a thin refractive element, consisting of a planar entrance surface, orthogonal to the optical axis (z-axis) and a freeform surface at the exit. A smooth (C2 continuous) freeform topology can be represented as a non-uniform rational basis spline (NURBS) surface with _a × b_ equidistant control points (Fig. 1d). When the x- and y-coordinates of these control points are predefined, only the z-coordinate is a free parameter that samples the local height of the freeform surface. With this parameterization, the freeform component is fully characterized by an _a × b_ matrix ( _F_ ). By restricting all z-coordinates to a certain interval [0, _t_ ], the thickness of the refractive element can be limited. Light rays can be propagated from the source through the optical surfaces towards a detector surface. By binning the radiant flux of light rays on this detector, in an _m × n_ spatial receiver grid, the irradiance distribution on the detector ( _I_ ) can be sampled. The propagation of the light through the optical system via raytracing thus corresponds with the mapping _{F_ _∈_ [0 _, t_ ] <sup>_a×b_</sup> _} →{I_ _∈_ R <sup>_m_</sup> + <sup>_×n_</sup> _}._ (1) 5 a MC raytracing Freeform topology Control points b 1- SSIM U-net Ground truth 1- SSIM Predicted ... MLP Reshape 2D Model 1 SRCNN Maxpooling ... Transforms CNN encoder Head Figure 2: (a) Illustration of the U-net-SRCNN model for predicting the obtained irradiance on the target plane for a certain freeform surface. The model is trained by considering pairs of freeform topologies and the corresponding simulated far-field irradiance distributions, via MC raytracing. Training loss is evaluated using the SSIM loss between the MC-simulated ground truth _I_ and the U-net-SRCNN-predicted _I_ <sup>ˆ</sup> . (b) Illustration of the model to predict a freeform grid _F_ <sup>ˆ</sup> from an input irradiance _I_ . Training is achieved by considering the SSIM loss between the input irradiance _I_ and _I_ ˆ, which is the predicted irradiance of _F_ ˆ by the first model. The problem that is tackled in this work is modeling the inverse relation _{I_ _∈_ R <sup>_m_</sup> + <sup>_×n_</sup> _} →{F_ _∈_ [0 _, t_ ] <sup>_a×b_</sup> _}_ (2) i.e. for any random irradiance distribution _I_ on the target plane, predict the _F_ that results in _I_ via raytracing. Framework structure Our deep learning framework consists of two different architectures (Fig. 2a, 2b). The first deep learning architecture is a 6 U-net that models the irradiance distribution on the receiver as a result of propagating light rays through the optical system. This architecture implements the mapping relation in Eq. 1 which is typically obtained with MC raytracing. U-nets are commonly used segmentation structures and are ideal for modeling 2D-to-2D mappings. They are widely used in medical imaging and for image deconvolution [48, 49]. However, when tracing rays through arbitrary freeform surfaces, the resulting irradiance distribution often contains highly detailed features. U-nets generally predict images with relative low resolution, causing these high resolution features to vanish during prediction. To attain more detailed irradiance prediction, a super resolution CNN (SRCNN) is appended [50]. From a practical point of view, an input of _a × b_ freeform control points is thus encoded into a set of feature maps, representing the local properties of the freeform surface. These local properties are then reconstructively upsampled and combined into an _m_ _×_ _n_ irradiance distribution. The full model, visualized in Fig. 2a, is trained on structural similarity index measure (SSIM) loss in a supervised manner [51]: <u>(2</u> _<u>µxµy</u>_ <u>+</u> _<u>C</u>_ <u>1)(2</u> _<u>σxy</u>_ <u>+</u> _<u>C</u>_ <u>2)</u> SSIM( _x, y_ ) = ( _µ_ <sup>2</sup> _x_ + _µ_ <sup>2</sup> _y_ + _C_ 1)( _σx_ <sup>2</sup> + _σy_ <sup>2</sup> + _C_ 2) where _x_ and _y_ represent the horizontal and vertical directions within an image, and _µ_ and _σ_ the variance. Furthermore, _σxy_ is the covariance of both directions, and _C_ 1 and _C_ 2 are constants that stabilize the nominator and denominator in the calculation. The training data is generated using MC raytracing in the defined optical setting, producing a set of freeform-irradiance pairs ( _F_, _I_ ). Moreover, data augmentation is performed by considering the inverse rotational symmetry of _F_ and _I_ . In particular, since the freeform topology is characterized by a square grid, its rotation results in a reverse rotation of the corresponding irradiance distribution. In short: rot(90 _, F_ ) _→_ rot( _−_ 90 _, I_ ) _._ (3) By considering this symmetry, each freeform surface can be rotated clockwise 3 times, resulting in 3 augmented freeform-irradiance pairs for training the models. The second network architecture is designed to model the mapping relation of Eq. 2 and is schematically shown in Fig. 2b, together with the considered learning strategy. This architecture consists of a typical CNN encoder network, containing a 2D maxpooling head and multi-layer perceptron regressor (MLP). As visualized in Fig. 2b, the CNN thus encodes an 7 irradiance distribution into a set of feature maps, of which the maximal element is chosen via maxpooling. Based on these pooled features, the freeform control points are then regressed in the MLP layer, thus predicting the surface parameters _F_ <sup>ˆ</sup> for an input irradiance _I_ [52]. To ensure the prediction of a freeform surface topology that yields an irradiance distribution resembling the input irradiance, it is required to capture both the local and global characteristics of the input irradiance distributions _I_ in the training phase. This is achieved by using a three-channel input into the network, consisting of _I_, along with its exponential and logarithmic transformations. The integration of such transforms with CNNs has proven beneficial in past research, e.g. for the enhancement of feature extraction in low-light areas within images [53]. This is due to the increased value range in low-irradiance areas after applying a logarithmic transform, and the opposite effect follows from an exponential transform. Supplying these transforms along with the original images then allows the model to simultaneously process low-, mediumand high-irradiance areas of the input distribution. The pretrained U-net-SRCNN model is used in the training phase of this second network for two different tasks. First of all, it is used to produce a large set of input irradiance distributions for the learning phase of the second model, without needing to run a huge amount of MC raytracing simulations. The advantage of this approach compared to using completely arbitrary irradiance distributions, is that these distributions are a result of the considered freeform topology parameterization, and can thus in principle be obtained with the considered freeform component. Secondly, the pretrained raytracing model is used during the actual training phase to produce a pseudo-labeled irradiance _I_ <sup>ˆ</sup> for any predicted _F_ <sup>ˆ</sup> [54]. The assumption is that these generated pseudo-labels serve as legitimate irradiance distributions, reflecting the MC raytraced results. Their goal is to compare them with the input irradiance distributions during the training phase of model 2. So with _m_ 1 and _m_ 2 representing model 1 and model 2 respectively, the trainable loss _L_ is evaluated as: _L{I, m_ 2( _I_ ) _}_ = 1 _−_ SSIM _{I, m_ 1[ _m_ 2( _I_ )] _}_ = 1 _−_ SSIM _{I, m_ 1( _F_ <sup>ˆ</sup> ) _},_ (4) with _m_ 1( _F_ <sup>ˆ</sup> ) the generated pseudo-labeled irradiance to be compared with the ground truth _I_ . By including the (frozen) raytracing model in the training phase of the freeform prediction architecture, the emphasis of model 2 is on replicating the ground truth irradiance distribution, as opposed to replicating the ground truth freeform surface, which is not considered in the training of the second model. 8 This approach is somehow related to the unsupervised learning strategy that was adopted in computational holography, in favor of supervised learning using an extensive set of random phase masks paired with their simulated amplitude pattern [42]. A main difference is that computational holography can rely on an analytic forward/backward operator for the complex field at the image plane. For the considered case, the role of this analytic operator is taken over by the pretrained U-net-SRCNN model. ### 3 Results Optical simulation setting The framework is applied in a specific optical setting, to illustrate its usage and performance. A planar light source of 3 _×_ 3 mm square, with a lambertian radiation pattern, is illuminating a refractive element of 10 _×_ 10 mm square at a distance of 40 mm, with a planar entrance surface and freeform exit surface. The refractive index of the component is 1.5, and a maximum thickness of _t_ = 0 _._ 8 mm is considered. This component redirects the incident light towards a square receiver plane at a distance of _drec_ = 500 mm and with a side length _srec_ = 1000 mm, i.e. in the far-field of the lens (see Fig. 2a). Only rays that intersect with the refractive element are traced towards the receiver plane. The freeform surface is characterized by a matrix of 11 _×_ 11 equidistant control points of the corresponding, third degree NURBS surface [55]. In order to produce irradiance patterns that cover the entire target plane, freeform surface topologies with multiple hills and valleys are necessary. This is a consequence of the shallow lens thickness and the fact that large surface slopes are needed to realize the required deflection angles. This is only possible by combining multiple positive and negative surface slopes. The dataset for supervised learning of the U-net is generated in the commercial software LightTools [56], which allows MC raytracing through freeform (NURBS) lens surfaces. To start, 25000 random freeform topologies are generated by selecting an arbitrary z-coordinate within the chosen interval for each lens surface control point. The corresponding irradiance distribution _I_ for each freeform topology _F_ is then calculated by tracing 15000 rays from the light source towards the receiver plane with a spatial receiver grid of 50 _×_ 50 bins. To reduce roughness in distributions that are spread out across the entire receiver surface area, a small smoothing kernel of 3 _×_ 3 is implemented. Training is executed on the resulting _{F, I}_ pairs, using a 90-10 train-validation split. More details on the architectures and training procedure in this specific setting are added in Appendix A. 9 a b L1 loss 0.2 0.1 0 MC raytracing Predic�ons Simulated with MC ray-tracing SSIM 98.7 SSIM 99.3 SSIM 85.1 1 million rays Normalized irradiance U-net prediction SSIM 97.2 1.0 0.5 0 15000 rays SSIM 94.7 Figure 3: (a) MC raytracing simulated irradiance versus predicted irradiance by the U-net-SRCNN model. The bottom image represents a low SSIM outlier in the validation set. (b) Comparison of pixel-wise errors: the irradiance simulated using 1 million rays is compared with the originally simulated irradiance using 15000 rays (left), and the U-net prediction, as shown on the right. Additionally, SSIM values are calculated for each comparison. Since the focus of this study lies in irradiance shapes, each irradiance was individually normalized. Irradiance prediction Fig. 3a shows quantitative and visual results for the U-net-SRCNN model. The predicted irradiance distribution by the model is compared with the corresponding Monte-Carlo raytracing result for three different cases, together with the SSIM loss. The bottom figure shows an outlier in terms of SSIM, compared to the average SSIM of the complete validation set, which is 98.3%. The average 1.7% error is likely due to the simulation noise in the considered raytracing simulations, since 15000 MC rays are traced towards a 50 _×_ 50 receiver grid; following a typical _√_ 1 _/_ _N_ approximation with _N_ = 15000 _/_ 50 _/_ 50, the noise per bin is estimated at 41%. A more extensive simulated rayset would be required to suppress these noise effects, but this turned out to be unnecessary. Indeed, in Fig. 3b, the validation irradiance for a random SSIM outlier is compared with the MC simulated irradiance for the same freeform lens but with a rayset 10 of 1 million rays. Taking the absolute pixel-wise deviation of the predicted irradiance by the U-net with the newly raytraced irradiance as a measure, and by comparing it with the pixel-wise deviation between the original and newly raytraced samples, the differences are smaller when comparing the predicted irradiance with the simulated sample with 1 million rays, even though the model has been trained on the original, noisy samples. This thus demonstrates that the model is not solely capable of reproducing raytracing, but it also denoises the samples that it was trained on. It is important to note that in recent research, U-net CNNs have already been suggested to be useful for fast irradiance evaluation of freeform components [57]. However, this previous architecture considered only 49 control points with an inference time of 67 ms, which is around 6 times slower than our proposed architecture. For the proposed semi-supervised learning approach, inference speed of this U-net is crucial to ensure efficient training. Furthermore, the raysets for MC raytracing were also large (2 _×_ 10 <sup>6</sup> ), leading to a time-consuming data generation process. Given that the proposed model is capable of generating accurate irradiance distributions, it can be used as a rapid alternative for the MC raytracing simulations. Following this logic, a synthetic dataset of 3.4 million freeform _F_ - irradiance _I_ pairs was generated within minutes. This enables learning on a large synthetic dataset of input irradiance distributions that are a result of the considered freeform topology, enhancing generalization and reducing overfitting for the more complex, reverse freeform prediction task. The 3.4 million irradiance samples were again separated in a 90-10 train-validation split. Freeform prediction on validation data. Fig. 4a shows quantitative and visual results for the freeform prediction model. Inference is done in 11 ms for a single sample, and can be further enhanced with a GPU-specific inference optimizer, such as NVIDIA’s TensorRT module. The predicted results are studied for three validation cases, where in each case, a ground truth freeform _F_ - irradiance _I_ pair is compared with the predicted freeform control points _F_ <sup>ˆ</sup> by the CNN encoder network and the resulting irradiance distribution with this predicted freeform ( _I_ <sup>ˆ</sup> _sim_ ). The resulting irradiance distribution has been simulated with MC raytracing using an extensive rayset of 1 million rays, rather than with the U-net model used in the training. This assures a fair assessment of the capabilities of the model to predict an _F_ <sup>ˆ</sup> that results in a prescribed _I_ via raytracing. A quantitative assessment of the freeform prediction accuracy is provided by again considering the SSIM between the input _I_ and the raytraced irradiance distribution _I_ ˆ _sim_ . The visual similarity between _I_ and _I_ ˆ _sim_ illustrates the performance 11 a b Normalized error (%) 0 0.35 0.7 _sim_ Ground truth 0 0.35 0.7 Predicted Normalized error (%) 0 0.35 0.7 SSIM 99.7 SSIM 93.8 _(i)_ _(ii)_ Thickness (mm) Thickness (mm) 0.8 0.4 0 0.8 0.4 0 0 0.4 0.8 Thickness (mm) 0 0.4 0.8 Thickness (mm) SSIM 99.0 Figure 4: (a) Freeform prediction results for three validation cases. Ground truth ( _F, I_ ) against the predicted freeform matrix ( _F_ <sup>ˆ</sup> ) and corresponding MC simulated irradiance ( _I_ <sup>ˆ</sup> _sim_ ) using 1 million rays. (b) ( _i_ ) Pixel-wise error for the normalized predicted freeform surface control points _|F −_ _F|_ <sup>ˆ</sup> as well as the interpolated NURBS surfaces. ( _ii_ ) Pixel-wise error for the simulated irradiances. Notice the significant difference in freeform surface topology ( _i_ ) while producing an almost identical irradiance distribution ( _ii_ ). of the developed framework. However, one also notices the visual discrepancy between _F_ and _F_ <sup>ˆ</sup> . Fig. 4b considers this discrepancy more in detail for one specific case, and shows that the pixel-wise deviation for the freeform control points and the interpolated NURBS topologies is much higher than for the irradiance distributions, a feature that is witnessed for most of the validation cases. This observation supports the hypothesis that radically different freeform surface topologies can produce visually identical irradiance distributions. Therefore, training for SSIM on the pseudo-labeled U-net irradiance versus the targeted irradiance is a more logical approach than training for mean average error of the predicted freeform surface compared to the ground truth. Freeform prediction on custom targets. The model performance is also verified in terms of predicting freeform topologies that produce prescribed irradiance distributions, which are neither in the training nor in the validation set. This is the main target of the developed framework. Fig. 5a shows an overview of the results for three chosen irradiance patterns ( _It_ ). The predicted freeform surface topology ( _F_ <sup>ˆ</sup> ) and corresponding raytraced irradiance pattern ( _I_ <sup>ˆ</sup> _sim_ ) are given, together with the SSIM of the simulated pattern with respect to the prescribed irradiance. The results indicate 12 _t_ _sim_ SSIM 97.9 SSIM 99.7 SSIM 96.8 SSIM 96.8 SSIM 96.8 SSIM 97.8 SSIM 95.6 SSIM 95.1 Largest SSIM Thickness (mm) 0.8 0.4 0 Thickness (mm) a 0 Thickness (mm)0.4 0.8 b 0 0.4 0.8 Figure 5: Freeform prediction results for certain custom target irradiances _It_ . (a) _It_ against the predicted freeform surface topologies _F_ <sup>ˆ</sup> and the MC raytraced irradiance _I_ <sup>ˆ</sup> _sim_, resulting from _F_ <sup>ˆ</sup> . (b) Rotate test-time augmentation on the triangular target. The results illustrate the existence of various freeform surface topologies that produce almost visually identical irradiance distributions. that the model is capable of producing fairly complicated freeform surface topologies that match the target irradiance distributions. Still, one could wonder if the model produces the best freeform topology prediction in terms of SSIM, since there is no raytraced ground truth in this case. As a test, a _rotate_ _test-time_ _augmentation_ is applied by considering all 90 <sup>_◦_</sup> -rotations of the target pattern. The obtained freeform topologies with the resulting MC-simulated irradiance and corresponding SSIM values are shown in Fig. 5b. These results re-affirm that multiple freeform topologies can result in nearly-identical irradiance patterns and the model finds one of these topologies. In other words, the inverse problem is ill-posed, at least within the limitations of MC raytracing. From a practical point-of-view however, such rotational test-time augmentations, or similar alternatives, could prove interesting to generate multiple solutions, out of which the best performing, most smooth or most oscillating option could be selected, depending on the specific application. Training performance. Finally, the efficiency of the proposed training approach is assessed through a comparative analysis with two alternative methodologies. (a) Training in a supervised manner, on L1 loss between _F_ and _F_ <sup>ˆ</sup>, using 13 RAM Target Target _sim_ RAM _sim_ SSIM 21.8 SSIM 75.8 SSIM 89.9 SSIM 95.8 SSIM 91.7 SSIM 99.7 0 0.5 1 Normalized activation 0 0.5 1 Normalized activation Figure 6: Performance comparison of three different learning approaches. Regression activation maps (RAM, normalized) and the produced irradiance ( _I_ <sup>ˆ</sup> _sim_ ) of the predicted freeform topology _I_ <sup>ˆ</sup> are shown, both for a target irradiance from the validation set and a custom target irradiance. the full synthetic dataset. (b) Training on the SSIM loss with pseudo-labeled irradiances, but using the 25000 MC raytraced irradiance samples instead of the predicted irradiances by the U-net-SRCNN model. Fig. 6 considers two target distributions to illustrate the main performance differences: an irradiance distribution from the validation set linked to an actual freeform topology, and a custom prescribed irradiance. For both cases, the regression activation maps (RAM) and resulting raytraced irradiances _I_ <sup>ˆ</sup> _sim_ from the predicted freeform topologies are shown for method (a) and (b), compared to the proposed approach. Regression activation maps are included since they provide a detailed representation of how a model localizes discriminative regions affecting the regression outcome [58]. Comparing RAM for the first target pattern, it is visible that method (a) fails to 14 a b Freeform element Radiance meter 10 mm 500 mm (i) (ii) (iii) Target LightTools Framework 2.05 mm 0.72 mm SSIM 81.7 SSIM 92.6 Figure 7: (a) Comparison between freeform surfaces generated by LightTools and the proposed framework, in terms of (i) freeform surface shape, (ii) resulting irradiance distribution at receiver plane and (iii) radiance distribution at freeform component. (b) The spatial spreading of the radiance distribution at the illumination component, towards a specific receiver direction, can be sampled with a radiance meter in the LightTools software. The size of the freeform element was not drawn at scale for illustration purposes. produce confident feature maps at relevant locations. In comparison, model (b) manages to locate the core of the supplied irradiance as the most relevant area, but some noise remains. The proposed training method clearly delivers the most accurate localization, with activation maps that overlap with the target distribution. This results in the highest SSIM value for the corresponding raytraced irradiance. Similar results can be seen for the custom target distribution. In this case, the benefit of relying on synthetic data over the base MC raytraced data (method b) is visually clear when looking at the obtained irradiance distribution. Comparison with state-of-the-art A goal of this study was to produce freeform surface topologies that differ from classical freeform surfaces with an overall convex/concave shape. To illustrate this capacity, a generated freeform topology is compared with the solution that is calculated by the LightTools Freeform Design Feature tool, using also 11 _×_ 11 control points. In both cases, a large uniform triangle is considered as target irradiance pat 15 tern. Fig. 7a shows the comparison between the resulting NURBS surfaces in both cases. Notice the expected concave shape in the LightTools generated freeform surface versus the varying freeform topology generated by our framework. This results in a 2.8 _×_ smaller surface height. The resulting irradiance distributions are shown in (ii). In both cases, the limited amount of control points results in clear visual deviations from the target pattern; however, the SSIM of the solution that is generated by LightTools is approx. 10% lower than the solution by the proposed method. The oscillating shape of the topology might raise concerns about TIR losses; however, with fresnel losses enabled in the raytracing simulation, the transmission efficiency is 91.7%, being only 0.6% lower compared to the efficiency of the classical freeform surface (92.3%). Finally, it is verified that the freeform surface topology, results in a more spread out light distribution from the exit surface towards each point of the target pattern. To do this, both freeform components are simulated in LightTools, and a small radiance meter is positioned at the receiver surface, with its field-of-view aimed at the freeform exit surface. In this way, the radiance at the exit from the illumination component is sampled from a specific receiver direction. In the case of the concave lens, light is only propagating from a specific position/area on the freeform surface, towards a corresponding position in the target pattern. There is thus a one-toone mapping of the freeform surface to the target pattern. In the case of the freeform surface topology however, light is propagating from multiple positions/areas on the freeform surface, towards each position in the target pattern, as is illustrated in (iii). This spatial spreading of the radiance distribution over the entire illumination component is an effective approach to avoid visual discomfort glare. ### 4 Discussion This paper presents a semi-supervised learning framework for predicting refractive freeform topologies that produce a certain target irradiance. In contrast to prior work on machine learning for freeform design that predominantly relies on 1D multi-layer perceptron-like networks with contextual information, this study employs 2D convolutional neural networks (CNN) to model the relationship between the obtained irradiance and freeform topology. To train the network, a U-net is used for modeling the Monte-Carlo raytracing of light from a predefined light source, in order to generate pseudolabeled irradiance distributions that are compared with the input target 16 irradiances. We demonstrate that this semi-supervised learning approach for freeform topology prediction is superior compared to a supervised learning approach using ground truth freeform topology/irradiance pairs. The resulting framework offers an end-to-end solution for rapid, smooth freeform topology design to produce an arbitrary prescribed target irradiance. The framework is trained within a specific optical setting, using a restricted parameterization for the freeform lens topology. This implies that the model is only capable of predicting freeform components within this parameterization and for the considered illumination setting. Despite these limitations, the proposed framework offers significant opportunities regarding the design and implementation of novel freeform optics. The freeform components that are introduced in this paper, with their smooth oscillating surface topology and resulting limited thickness, could serve as a novel beam shaping technology. Current freeform micro-optical components always consist of a periodic array of multiple individual lenses or mirrors [59, 60], and while the fabrication of such components has evolved significantly over the past years, the inevitable grooves in between the different lens/mirror elements still pose significant manufacturing challenges in order to avoid stray light [61]. The smooth surface topologies that result from the proposed network avoid such strong surface C2 discontinuities. The resulting beam shaping components can be used to generate non-paraxial target distributions, when illuminated with (nearly) planar incident wavefronts from LEDs or lasers. The proposed framework and training method could be extended to other, more general freeform illumination design problems. A straightforward extension would be a surface topology parameterization with more control points. This requires up-scaling of the model, for which larger CNN variants, or even transformers, could be used. Along with the extension of the model, more data will also be required as well as upscaling of the irradiance resolution. A larger set of control points could allow the generation of even more complex irradiance targets, as well as the representation and design of larger/thinner optical components with more convex/concave/saddleshaped regions. However, it should be clear that the level of detail is also limited by the size of the light source in comparison to the distance to the freeform component, when only one freeform surface is considered. A more interesting expansion from a practical point of view, could therefore be the extension of the framework to arbitrary (extended) light sources and multiple freeform surfaces. This may be realized by using the spatial distribution of the light source as an additional input. Predicting multiple freeform surfaces could be achieved by increasing the final MLP output head size. Of 17 course, this would also require a significant increase in the amount of training data. For the implementation of a flexible machine learning model for general freeform illumination, it is clear that computation power will be a must. While the presented semi-supervised learning strategy proves superior to a supervised learning strategy, for the prediction of shallow freeform surface topologies, it remains to be seen if this would also be the most effective strategy for the design of overall convex-concave freeform surfaces. The training of such a framework would certainly require a more specific surface parameterization that enforces concaveness or convexness. Alternatively, contextual data about the freeform shape could be added in the training phase of the 2D-CNN, e.g. by concatenating an encoded prompt about the surface shape in the final linear layer of the network. Whatever the outcome, also in this case, the use of an additional network for modeling the raytracing will result in much faster and more effective training. The discussion above makes clear that the investigation of advanced machine learning techniques for the design of freeform illumination optics has only been started. In this respect, the proposed framework can serve as a demonstration that deep learning allows rapid and standalone freeform optical design. ### Appendix A: Framework specifications Raytracing model (U-net) The raytracing model receives an 11 _×_ 11 matrix of control points that unambiguously determine a freeform surface topology. This matrix is interpolated to match the convolution kernels (bilinear, 50 _×_ 50). The resulting matrix then passes through a U-net encoder-decoder structure, with the encoder being the state-of-the-art ConvNeXt [62] (Fig. 8a). These feature maps are then decoded into a corresponding illuminance distribution via convolutions. This U-net output is a 25 _×_ 25 pixel irradiance, which is upscaled to the irradiance resolution of 50 _×_ 50 pixels via bilinear interpolation. Consequently, the upscaled images are passed through a trainable SRCNN architecture [50] with kernel sizes of 7, 5 and 3, respectively. Such SRCNN uses non-linear, e.g. ReLU, activations and convolutions to enhance image resolution by filling in some of the high-frequency image details. Freeform prediction model The main component of the freeform prediction architecture is a CNN encoder, which again is ConvNeXt [62]. The 18 a b _log_ _<u>exp</u>_ ConvNeXt-Unet ConvNeXt encoder Input Figure 8: ( a ) U-net-SRCNN model with visualization of how the control points are interpolated and how the SRCNN constructs the final irradiance distribution. (b) The freeform prediction model, with highlights on the input transformations and the MLP structure that predicts the freeform surface control points. model takes a 3-channel image as input, consisting of: _{I,_ log( _I_ ) _,_ exp( _I_ ) _}._ (5) Using the logarithmic and exponential transforms of _I_ allows the model to explore the global and local properties more easily (Fig. 8b). The model head contains a 2D maxpooling layer, which is a 2 _×_ 2 filter that runs over all the extracted feature maps, maintaining the maximal value as the output. This significantly reduces overfitting. The maxpooling output is passed through a non-linear mapping multi-layer perceptron that outputs 121 variables, with GELU activation. The output is then reshaped into a 11 _×_ 11 grid _F_ <sup>ˆ</sup> of freeform topology control points. Training setup All models in the proposed method use ImageNet-21k pretrained weights [63], although the contribution of these is likely limited. Training is done using exponential learning rate decay with linear warm-up. Training and testing was performed on an NVIDIA RTX 3070 GPU with 8GB VRAM. A full overview of the training, as well as the used encoder variant, is shown in Table 1. For the freeform prediction models, the training procedure is given for each of the methods discussed in the training performance section. 19 U-net-SRCNN Freeform prediction <u>Method</u> <u>(a)</u> <u>Method</u> <u>(b)</u> <u>Proposed</u> <u>method</u> Optimizer AdamW[64] AdamW[64] AdamW[64] AdamW[64] Base learning rate 1e-4 6e-4 2e-4 6e-4 Weight decay 0.05 0.05 0.05 0.05 Warmup epochs 3, linear 5, linear 1, linear 5, linear Learning rate scheduler cosine decay cosine decay cosine decay cosine decay Training epochs 50 20 25 20 Batch size 512 196 512 196 Augmentations randomflip[Eq. 3] randomflip[Eq. 3] randomflip[Eq. 3] randomflip[Eq. 3] Encoder variant _ConvNeXt-base_ [62] _ConvNeXt-large_ [62] _ConvNeXt-tiny_ [62] _ConvNeXt-large_ [62] Drop path rate 0.05 0.1 0 0.1 Full data size 25000 3.4 million 25000 3.4 million Table 1: Full training set-up for all the considered models. Acknowledgements Agentschap Innoveren en Ondernemen (HBC.2020.2713). 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] Caulfield, H. J. & Dolev, S. Why future supercomputing requires optics. _Nature_ _Photonics_ 4, 261–263 (2010). [2] Capasso, F. The future and promise of flat optics: a personal perspec tive. _Nanophotonics_ 7, 953–957 (2018). [3] Nikolov, D. K. _et_ _al._ Metaform optics: bridging nanophotonics and freeform optics. _Science_ _Advances_ 7, eabe5112 (2021). [4] Duerr, F. & Thienpont, H. Freeform imaging systems: Fermat’s prin ciple unlocks “first time right” design. _Light:_ _Science_ _&_ _Applications_ 10, 95 (2021). [5] Volatier, J.-B. & Druart, G. Differential method for freeform optics applied to two-mirror off-axis telescope design. _Optics_ _letters_ 44, 1174– 1177 (2019). [6] Reimers, J., Bauer, A., Thompson, K. P. & Rolland, J. P. Freeform spectrometer enabling increased compactness. _Light:_ _Science_ _&_ _Appli-_ _cations_ 6, e17026–e17026 (2017). 20 [7] Zhang, B., Jin, G. & Zhu, J. Towards automatic freeform optics design: coarse and fine search of the three-mirror solution space. _Light:_ _Science_ _&_ _Applications_ 10, 65 (2021). [8] Jahn, W., Ferrari, M. & Hugot, E. Innovative focal plane design for large space telescope using freeform mirrors. _Optica_ 4, 1188–1195 (2017). [9] Li, J. _et_ _al._ Two-photon polymerisation 3d printed freeform microoptics for optical coherence tomography fibre probes. _Scientific_ _reports_ 8, 14789 (2018). [10] Yang, T., Jin, G.-F. & Zhu, J. Automated design of freeform imaging systems. _Light:_ _Science_ _&_ _Applications_ 6, e17081–e17081 (2017). [11] Yang, T., Zhu, J., Wu, X. & Jin, G. Direct design of freeform surfaces and freeform imaging systems with a point-by-point three-dimensional construction-iteration method. _Optics_ _express_ 23, 10233–10246 (2015). [12] Wu, R. _et_ _al._ Precise light control in highly tilted geometry by freeform illumination optics. _Optics_ _Letters_ 44, 2887–2890 (2019). [13] Wei, S., Zhu, Z., Fan, Z. & Ma, D. Least-squares ray mapping method for freeform illumination optics design. _Optics_ _express_ 28, 3811–3822 (2020). [14] Heemels, A. N., Adam, A. J. & Urbach, H. P. Limits of realizing irradiance distributions with shift-invariant illumination systems and finite ´etendue sources. _JOSA_ _A_ 40, 1289–1302 (2023). [15] Wu, R. _et_ _al._ Design of freeform illumination optics. _Laser_ _&_ _Photonics_ _Reviews_ 12, 1700310 (2018). [16] Ibrahim, K. A., Mahecic, D. & Manley, S. Characterization of flat fielding systems for quantitative microscopy. _Optics Express_ 28, 22036– 22048 (2020). [17] Desnijder, K., Hanselaer, P. & Meuret, Y. Ray mapping method for off axis and non-paraxial freeform illumination lens design. _Optics_ _letters_ 44, 771–774 (2019). [18] Wu, R. _et_ _al._ Freeform illumination design: a nonlinear boundary problem for the elliptic monge–amp´ere equation. _Optics_ _letters_ 38, 229–231 (2013). 21 [19] Madrid-S´anchez, A., Duerr, F., Nie, Y., Thienpont, H. & Ottevaere, H. Freeform optics design method for illumination and laser beam shaping enabled by least squares and surface optimization. _Optik_ 269, 169941 (2022). [20] Prins, C., ten Thije Boonkkamp, J., Van Roosmalen, J., Jzerman, W. & Tukker, T. W. A monge–amp`ere-solver for free-form reflector design. _SIAM_ _Journal_ _on_ _Scientific_ _Computing_ 36, B640–B660 (2014). [21] B¨osel, C. & Gross, H. Compact freeform illumination system design for pattern generation with extended light sources. _Applied_ _optics_ 58, 2713–2724 (2019). [22] Birch, D. A. & Brand, M. Design of freeforms to uniformly illuminate polygonal targets from extended sources via edge ray mapping. _Applied_ _Optics_ 59, 6490–6496 (2020). [23] Dross, O. _et_ _al._ Review of sms design methods and real world appli cations. In _Nonimaging_ _optics_ _and_ _efficient_ _illumination_ _systems_, vol. 5529, 35–47 (SPIE, 2004). [24] Sorgato, S., Chaves, J., Thienpont, H. & Duerr, F. Design of illumina tion optics with extended sources based on wavefront tailoring. _Optica_ 6, 966–971 (2019). [25] Byzov, E. V., Kravchenko, S. V., Moiseev, M. A., Bezus, E. A. & Doskolovich, L. L. Optimization method for designing double-surface refractive optical elements for an extended light source. _Optics_ _Express_ 28, 24431–24443 (2020). [26] Wei, S., Zhu, Z., Li, W. & Ma, D. Compact freeform illumination optics design by deblurring the response of extended sources. _Optics_ _Letters_ 46, 2770–2773 (2021). [27] Liu, Z., Liu, P. & Yu, F. Parametric optimization method for the design of high-efficiency free-form illumination system with a led source. _Chinese_ _Optics_ _Letters_ 10, 112201–112201 (2012). [28] Fournier, F. & Rolland, J. Optimization of freeform lightpipes for light emitting-diode projectors. _Applied_ _optics_ 47, 957–966 (2008). [29] Mao, X., Li, H., Han, Y. & Luo, Y. Two-step design method for highly compact three-dimensional freeform optical system for led surface light source. _Optics_ _Express_ 22, A1491–A1506 (2014). 22 [30] Situ, W., Han, Y., Li, H. & Luo, Y. Combined feedback method for designing a free-form optical system with complicated illumination patterns for an extended led source. _Optics_ _express_ 19, A1022–A1030 (2011). [31] Li, L. & Hao, X. Optimizing triangle mesh lenses for non-uniform illumination with an extended source. _Optics_ _Letters_ 48, 1726–1729 (2023). [32] Desnijder, K. _et_ _al._ Design of a freeform, luminance spreading illumi nation lens with a continuous surface. In _Illumination_ _Optics_ _V_, vol. 10693, 89–99 (SPIE, 2018). [33] Desnijder, K., Ryckaert, W., Hanselaer, P. & Meuret, Y. Luminance spreading freeform lens arrays with accurate intensity control. _Optics_ _Express_ 27, 32994–33004 (2019). [34] Zhu, W.-L., Duan, F., Zhang, X., Zhu, Z. & Ju, B.-F. A new diamond machining approach for extendable fabrication of micro-freeform lens array. _International_ _Journal_ _of_ _Machine_ _Tools_ _and_ _Manufacture_ 124, 134–148 (2018). [35] Neauport, J. _et al._ Design and optical characterization of a large contin uous phase plate for laser integration line and laser megajoule facilities. _Applied_ _optics_ 42, 2377–2382 (2003). [36] Yang, C., Yan, H., Wang, J. & Zhang, R. A novel design method for continuous-phase plate. _Optics_ _Express_ 21, 11171–11180 (2013). [37] Shen, Y. _et_ _al._ Deep learning with coherent nanophotonic circuits. _Nature_ _photonics_ 11, 441–446 (2017). [38] Wiecha, P. R., Arbouet, A., Girard, C. & Muskens, O. L. Deep learning in nano-photonics: inverse design and beyond. _Photonics_ _Research_ 9, B182–B200 (2021). [39] Xu, Y., Zhang, X., Fu, Y. & Liu, Y. Interfacing photonics with artifi cial intelligence: an innovative design strategy for photonic structures and devices based on artificial neural networks. _Photonics_ _Research_ 9, B135–B152 (2021). [40] Gao, L., Chai, Y., Zibar, D. & Yu, Z. Deep learning in photonics: Introduction. _Photonics_ _Research_ 9, DLP1–DLP3 (2021). 23 [41] Eybposh, M. H., Caira, N. W., Atisa, M., Chakravarthula, P. & P´egard, N. C. Deepcgh: 3d computer-generated holography using deep learning. _Optics_ _Express_ 28, 26636–26650 (2020). [42] Shimobaba, T. _et_ _al._ Deep-learning computational holography: A re view. _Frontiers_ _in_ _Photonics_ 3, 8 (2022). [43] Nie, Y., Zhang, J., Su, R. & Ottevaere, H. Freeform optical system de sign with differentiable three-dimensional ray tracing and unsupervised learning. _Optics_ _Express_ 31, 7450–7465 (2023). [44] Mao, B. _et_ _al._ Freeformnet: fast and automatic generation of multiple solution freeform imaging systems enabled by deep learning. _Photonics_ _Research_ 11, 1408–1422 (2023). [45] Chen, W., Yang, T., Cheng, D. & Wang, Y. Generating starting points for designing freeform imaging optical systems based on deep learning. _Optics_ _Express_ 29, 27845–27870 (2021). [46] Yang, T., Cheng, D. & Wang, Y. Direct generation of starting points for freeform off-axis three-mirror imaging system design using neural network based deep-learning. _Optics_ _express_ 27, 17228–17238 (2019). [47] Gannon, C. & Liang, R. Using machine learning to create high-efficiency freeform illumination design tools. _arXiv_ _preprint_ _arXiv:1903.11166_ (2018). [48] Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional net works for biomedical image segmentation. In _Medical_ _Image_ _Comput-_ _ing_ _and_ _Computer-Assisted_ _Intervention–MICCAI_ _2015:_ _18th_ _Interna-_ _tional_ _Conference,_ _Munich,_ _Germany,_ _October_ _5-9,_ _2015,_ _Proceedings,_ _Part_ _III_ _18_, 234–241 (Springer, 2015). [49] Yanny, K., Monakhova, K., Shuai, R. W. & Waller, L. Deep learning for fast spatially varying deconvolution. _Optica_ 9, 96–99 (2022). [50] Dong, C., Loy, C. C., He, K. & Tang, X. Image super-resolution using deep convolutional networks. _IEEE_ _transactions_ _on_ _pattern_ _analysis_ _and_ _machine_ _intelligence_ 38, 295–307 (2015). [51] Wang, Z., Bovik, A. C., Sheikh, H. R. & Simoncelli, E. P. Image quality assessment: from error visibility to structural similarity. _IEEE_ _transactions_ _on_ _image_ _processing_ 13, 600–612 (2004). 24 [52] Lee, C., Song, G., Kim, H., Ye, J. C. & Jang, M. Deep learning based on parameterized physical forward model for adaptive holographic imaging with unpaired data. _Nature_ _Machine_ _Intelligence_ 1–11 (2023). [53] Shen, L. _et_ _al._ Msr-net: Low-light image enhancement using deep con volutional network. _arXiv_ _preprint_ _arXiv:1711.02488_ (2017). [54] Lee, D.-H. _et al._ Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In _Workshop_ _on_ _challenges_ _in_ _representation_ _learning,_ _ICML_, vol. 3, 896 (Atlanta, 2013). [55] Piegl, L. & Tiller, W. _The_ _NURBS_ _book_ (Springer Science & Business Media, 1996). [56] Lighttools 8.7.0, synopsys optical solutions, mountain view, california 2019. [57] Tang, H., Feng, Z., Cheng, D. & Wang, Y. Fast irradiance evaluation of freeform illumination lenses based on deep learning. In _AOPC_ _2022:_ _Novel_ _Optical_ _Design;_ _and_ _Optics_ _Ultra_ _Precision_ _Manufacturing_ _and_ _Testing_, vol. 12559, 108–113 (SPIE, 2023). [58] Wang, Z. & Yang, J. Diabetic retinopathy detection via deep convolu tional networks for discriminative localization and visual explanation. _arXiv_ _preprint_ _arXiv:1703.10757_ (2017). [59] Aderneuer, T. _et_ _al._ Surface topology and functionality of freeform microlens arrays. _Optics_ _Express_ 29, 5033–5042 (2021). [60] Bec, J., Li, C. & Marcu, L. Broadband, freeform focusing microoptics for a side-viewing imaging catheter. _Optics letters_ 44, 4961–4964 (2019). [61] Kumar, S., Tong, Z. & Jiang, X. Advances in the design and man ufacturing of novel freeform optics. _International_ _Journal_ _of_ _Extreme_ _Manufacturing_ 4, 032004 (2022). [62] Liu, Z. _et_ _al._ A convnet for the 2020s. In _Proceedings_ _of_ _the_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_, 11976–11986 (2022). [63] Ridnik, T., Ben-Baruch, E., Noy, A. & Zelnik-Manor, L. Imagenet-21k pretraining for the masses. _arXiv_ _preprint_ _arXiv:2104.10972_ (2021). 25 [64] Loshchilov, I. & Hutter, F. Decoupled weight decay regularization. _arXiv_ _preprint_ _arXiv:1711.05101_ (2017). 26

섹션 본문 45문단 · 38,782자

(제목 없음)

1Despite significant advances in the field of freeform optical design, there still remain various unsolved problems.One of these is the design of smooth, shallow freeform topologies, consisting of multiple convex, concave and saddle shaped regions, in order to generate a prescribed illumination pattern.Such freeform topologies are relevant in the context of glare-free illumination and thin, refractive beam shaping elements.Machine learning techniques already proved to be extremely valuable in solving complex inverse problems in optics and photonics, but their application to freeform optical design is mostly limited to imaging optics.This paper presents a rapid, standalone framework for the prediction of freeform surface topologies that generate a prescribed irradiance distribution, from a predefined light source.The framework employs a 2D convolutional neural network to model the relationship between the prescribed target irradiance and required freeform topology.This network is trained on the loss between the obtained irradiance and input irradiance, using a second network that replaces Monte-Carlo raytracing from source to target.This semi-supervised learning approach proves to be superior compared to a supervised learning approach using ground truth freeform topology/irradiance pairs; a fact that is connected to the observation that multiple freeform topologies can yield similar irradiance patterns.The resulting network is able to rapidly predict smooth freeform topologies that generate arbitrary irradiance patterns, and could serve as an inspiration for applying machine learning to other open problems in freeform illumination design.

Introduction

2Optical systems to control the propagation of light play a major role in science and technology, and their importance will not diminish in the near future [1,2,3].For decades, optical engineers have relied on systems with multiple (a)spherical surfaces, which have rotational symmetry [4,5].Recent advances in manufacturing technology however, allow the fabrication of freeform optical surfaces with completely arbitrary shape, thereby offering greater flexibility for controlling the propagation of light [6,7].Freeform optics are widely used in imaging systems to guide the light of points in object space effectively to corresponding points in image space [8,9,10,11].Also in the field of illumination design, freeform components are extensively used to map the emitted light distribution from a source into a desired target pattern, while maintaining the luminous flux [12,13,14].The demand for such freeform illumination systems is rapidly growing, due to their application in fast-evolving fields such as optical lithography, automotive headlights and laser beam shaping [15,16].

3Illumination optics are determined by the light source under consideration and the targeted light pattern.Their design typically comes down to calculating one or more optical surfaces that manipulate the incoming rays, in order to produce a certain prescribed irradiance distribution.Freeform illumination design methods can be separated in two categories: zero étendue algorithms and algorithms for extended light sources [15].Zero-étendue methods are based on the assumption that the source is ideal, e.g. a point source or a collimated laser beam.Freeform design for zero-étendue sources has matured significantly, and various accurate calculation methods exist, such as the ray-mapping and Monge-Ampère methods [17,18,19,20].Unfortunately, the étendue of real light sources can seldom be neglected in practice.When applying zero-étendue algorithms for such extended light sources, the resulting pattern becomes blurry, and more dedicated design procedures are needed [21,22].To solve this problem, wavefront tailoring and deconvolution-based algorithms have been proposed [23,24,25,26].Although these methods function well under certain specific conditions, e.g.single-chip LED emitters, they remain unsuitable for arbitrary extended light sources.Alternatively, a solution can be obtained through optimization of the parameterized freeform surface(s) [27,28,29,30,31].These iterative methods however, are typically computationally intensive and require a significant amount of convergence time.So, as opposed to zero-étendue algorithms, the search for fast and effective freeform algorithms with extended light sources is still ongoing.Aside from the considered light source and targeted light distribution, there is another aspect that is of practical importance in the design of freeform components for illumination purposes: the resulting freeform shape.Most freeform design methods result in overall convex or concave freeform surface shapes (Fig. 1a).This can lead to visual discomfort glare when combined with high-brightness light sources [32].A possible approach to address this important issue in lighting, is working with freeform lens arrays, where each lens element illuminates (part of) the complete target pattern.In doing so, the light flux towards each point of the target pattern is spread over the entire lens surface, similar to the case of a light diffuser.This results in a reduced brightness perception when looking towards the illumination optic, in comparison with a single-channel freeform lens [33].Unfortunately, such freeform lens arrays have C2 discontinuities in between the individual lens elements.These discontinuities complicate manufacturing and lead to unwanted straylight [34].Such problems could be avoided with smooth, continuous freeform surfaces that combine multiple convex, concave and saddle shaped regions, for which we introduce the term freeform topologies (Fig. 1c).For collimated light sources, such an oscillating freeform topology can be used to generate broad illumination patterns with much thinner optical elements, compared with overall convex or concave freeform surfaces.Designing such smooth and shallow, oscillating freeform topologies is challenging however.Within the domain of laser beam shaping, continuous phase plates (CPP) rely on a similar surface topology, but these are mainly used for converging laser beams, and current design methods do not enable tailoring of arbitrary irradiance shapes [35,36].On the other hand, such topologies could be constructed by crafting a continuous curvature between the individual convex and concave lenslets of a freeform lens array.Such a multi-stage method will likely exhibit limited generalization to create a wide range of different, complex irradiance patterns.To this day, a direct design method for freeform topologies that are capable of generating arbitrary irradiance patterns remains unpublished.

4To reduce the time and complexity of optical design, researchers have recently started to use machine learning techniques.Applying deep learning to solve inverse problems in photonics and optics has only recently arisen, but the potential is indisputable [37,38,39].It may arguably become one of the main catalysts in designing complex optical configurations in the near future [40].In the field of computational holography for example, mature machine learning methods are already state-of-the-art [41,42].Deep learning architectures for freeform design have also been presented in past research, but so far mainly within the domain of imaging optics, in order to find starting points close to a final solution [43,44,45,46].Within illumination design, one fully trained network has been demonstrated and the approach was restricted to creating very basic shapes [47].The authors of this work also underlined the need for more advanced procedures.One of the main challenges to realize a fully trained network for freeform illumination design via supervised or unsupervised learning is the lack of a fast forward operator to link the input and output parameters.Monte-Carlo (MC) raytracing is typically used to evaluate the performance of freeform optics for a given light source.Taking into account the complex shape that freeform surfaces can adopt, tens of thousands to even millions of rays are needed to model the resulting irradiance pattern with limited statistical noise.This paper presents a deep learning framework for solving the inverse problem of finding a refractive freeform surface topology in order to obtain a prescribed irradiance distribution from a predefined light source.The framework integrates supervised learning for modeling the raytracing on one hand, and semi-supervised learning for freeform surface prediction on the other hand.This double approach alleviates the computational burden to train the freeform surface prediction fully via Monte-Carlo raytracing.We demonstrate that rapid convergence can be obtained by considering the deviation of the irradiance resulting from a predicted freeform surface with the target irradiance as a loss function during training.This approach is different from the more typical method of considering the mean average error of the predicted freeform surface shape compared to the ground truth, which proves to have inferior convergence.This behavior is linked to the observation that two or more distinct freeform topologies can result in visually identical illumination patterns.The deep learning framework rapidly provides a suitable freeform design as is illustrated for various target patterns.As such, we demonstrate that deep learning does not only serve as a tool to enhance typical optimization procedures, but that it can be used as a fast, standalone method in freeform illumination design.

Problem statement

5Consider a thin refractive element, consisting of a planar entrance surface, orthogonal to the optical axis (z-axis) and a freeform surface at the exit.A smooth (C2 continuous) freeform topology can be represented as a non-uniform rational basis spline (NURBS) surface with a × b equidistant control points (Fig. 1d).When the x-and y-coordinates of these control points are predefined, only the z-coordinate is a free parameter that samples the local height of the freeform surface.With this parameterization, the freeform component is fully characterized by an a × b matrix (F).By restricting all z-coordinates to a certain interval [0, t], the thickness of the refractive element can be limited.

6Light rays can be propagated from the source through the optical surfaces towards a detector surface.By binning the radiant flux of light rays on this detector, in an m × n spatial receiver grid, the irradiance distribution on the detector (I) can be sampled.The propagation of the light through the optical system via raytracing thus corresponds with the mapping The problem that is tackled in this work is modeling the inverse relation

7i.e. for any random irradiance distribution I on the target plane, predict the F that results in I via raytracing.

Framework structure

8Our deep learning framework consists of two different architectures (Fig. 2a, 2b).The first deep learning architecture is a U-net that models the irradiance distribution on the receiver as a result of propagating light rays through the optical system.This architecture implements the mapping relation in Eq. 1 which is typically obtained with MC raytracing.U-nets are commonly used segmentation structures and are ideal for modeling 2D-to-2D mappings.They are widely used in medical imaging and for image deconvolution [48,49].However, when tracing rays through arbitrary freeform surfaces, the resulting irradiance distribution often contains highly detailed features.U-nets generally predict images with relative low resolution, causing these high resolution features to vanish during prediction.To attain more detailed irradiance prediction, a super resolution CNN (SRCNN) is appended [50].From a practical point of view, an input of a × b freeform control points is thus encoded into a set of feature maps, representing the local properties of the freeform surface.These local properties are then reconstructively upsampled and combined into an m × n irradiance distribution.

9The full model, visualized in Fig. 2a, is trained on structural similarity index measure (SSIM) loss in a supervised manner [51]:

10where x and y represent the horizontal and vertical directions within an image, and µ and σ the variance.Furthermore, σ xy is the covariance of both directions, and C 1 and C 2 are constants that stabilize the nominator and denominator in the calculation.The training data is generated using MC raytracing in the defined optical setting, producing a set of freeform-irradiance pairs (F, I).Moreover, data augmentation is performed by considering the inverse rotational symmetry of F and I.In particular, since the freeform topology is characterized by a square grid, its rotation results in a reverse rotation of the corresponding irradiance distribution.In short:

11By considering this symmetry, each freeform surface can be rotated clockwise 3 times, resulting in 3 augmented freeform-irradiance pairs for training the models.

12The second network architecture is designed to model the mapping relation of Eq. 2 and is schematically shown in Fig. 2b, together with the considered learning strategy.This architecture consists of a typical CNN encoder network, containing a 2D maxpooling head and multi-layer perceptron regressor (MLP).As visualized in Fig. 2b, the CNN thus encodes an irradiance distribution into a set of feature maps, of which the maximal element is chosen via maxpooling.Based on these pooled features, the freeform control points are then regressed in the MLP layer, thus predicting the surface parameters F for an input irradiance I [52].To ensure the prediction of a freeform surface topology that yields an irradiance distribution resembling the input irradiance, it is required to capture both the local and global characteristics of the input irradiance distributions I in the training phase.This is achieved by using a three-channel input into the network, consisting of I, along with its exponential and logarithmic transformations.The integration of such transforms with CNNs has proven beneficial in past research, e.g. for the enhancement of feature extraction in low-light areas within images [53].This is due to the increased value range in low-irradiance areas after applying a logarithmic transform, and the opposite effect follows from an exponential transform.Supplying these transforms along with the original images then allows the model to simultaneously process low-, mediumand high-irradiance areas of the input distribution.

13The pretrained U-net-SRCNN model is used in the training phase of this second network for two different tasks.First of all, it is used to produce a large set of input irradiance distributions for the learning phase of the second model, without needing to run a huge amount of MC raytracing simulations.The advantage of this approach compared to using completely arbitrary irradiance distributions, is that these distributions are a result of the considered freeform topology parameterization, and can thus in principle be obtained with the considered freeform component.Secondly, the pretrained raytracing model is used during the actual training phase to produce a pseudo-labeled irradiance Î for any predicted F [54].The assumption is that these generated pseudo-labels serve as legitimate irradiance distributions, reflecting the MC raytraced results.Their goal is to compare them with the input irradiance distributions during the training phase of model 2. So with m 1 and m 2 representing model 1 and model 2 respectively, the trainable loss L is evaluated as:

14with m 1 ( F) the generated pseudo-labeled irradiance to be compared with the ground truth I.By including the (frozen) raytracing model in the training phase of the freeform prediction architecture, the emphasis of model 2 is on replicating the ground truth irradiance distribution, as opposed to replicating the ground truth freeform surface, which is not considered in the training of the second model.

15This approach is somehow related to the unsupervised learning strategy that was adopted in computational holography, in favor of supervised learning using an extensive set of random phase masks paired with their simulated amplitude pattern [42].A main difference is that computational holography can rely on an analytic forward/backward operator for the complex field at the image plane.For the considered case, the role of this analytic operator is taken over by the pretrained U-net-SRCNN model.

Optical simulation setting

16The framework is applied in a specific optical setting, to illustrate its usage and performance.A planar light source of 3 × 3 mm square, with a lambertian radiation pattern, is illuminating a refractive element of 10 × 10 mm square at a distance of 40 mm, with a planar entrance surface and freeform exit surface.The refractive index of the component is 1.5, and a maximum thickness of t = 0.8 mm is considered.This component redirects the incident light towards a square receiver plane at a distance of d rec = 500 mm and with a side length s rec = 1000 mm, i.e. in the far-field of the lens (see Fig. 2a).Only rays that intersect with the refractive element are traced towards the receiver plane.The freeform surface is characterized by a matrix of 11 × 11 equidistant control points of the corresponding, third degree NURBS surface [55].In order to produce irradiance patterns that cover the entire target plane, freeform surface topologies with multiple hills and valleys are necessary.This is a consequence of the shallow lens thickness and the fact that large surface slopes are needed to realize the required deflection angles.This is only possible by combining multiple positive and negative surface slopes.

17The dataset for supervised learning of the U-net is generated in the commercial software LightTools [56], which allows MC raytracing through freeform (NURBS) lens surfaces.To start, 25000 random freeform topologies are generated by selecting an arbitrary z-coordinate within the chosen interval for each lens surface control point.The corresponding irradiance distribution I for each freeform topology F is then calculated by tracing 15000 rays from the light source towards the receiver plane with a spatial receiver grid of 50 × 50 bins.To reduce roughness in distributions that are spread out across the entire receiver surface area, a small smoothing kernel of 3 × 3 is implemented.Training is executed on the resulting {F, I} pairs, using a 90-10 train-validation split.More details on the architectures and training procedure in this specific setting are added in Appendix A.

Irradiance prediction

18Fig. 3a shows quantitative and visual results for the U-net-SRCNN model.The predicted irradiance distribution by the model is compared with the corresponding Monte-Carlo raytracing result for three different cases, together with the SSIM loss.The bottom figure shows an outlier in terms of SSIM, compared to the average SSIM of the complete validation set, which is 98.3%.The average 1.7% error is likely due to the simulation noise in the considered raytracing simulations, since 15000 MC rays are traced towards a 50 × 50 receiver grid; following a typical 1/ √ N approximation with N = 15000/50/50, the noise per bin is estimated at 41%.A more extensive simulated rayset would be required to suppress these noise effects, but this turned out to be unnecessary.Indeed, in Fig. 3b, the validation irradiance for a random SSIM outlier is compared with the MC simulated irradiance for the same freeform lens but with a rayset of 1 million rays.Taking the absolute pixel-wise deviation of the predicted irradiance by the U-net with the newly raytraced irradiance as a measure, and by comparing it with the pixel-wise deviation between the original and newly raytraced samples, the differences are smaller when comparing the predicted irradiance with the simulated sample with 1 million rays, even though the model has been trained on the original, noisy samples.This thus demonstrates that the model is not solely capable of reproducing raytracing, but it also denoises the samples that it was trained on.It is important to note that in recent research, U-net CNNs have already been suggested to be useful for fast irradiance evaluation of freeform components [57].However, this previous architecture considered only 49 control points with an inference time of 67 ms, which is around 6 times slower than our proposed architecture.For the proposed semi-supervised learning approach, inference speed of this U-net is crucial to ensure efficient training.Furthermore, the raysets for MC raytracing were also large (2 × 10 6 ), leading to a time-consuming data generation process.

19Given that the proposed model is capable of generating accurate irradiance distributions, it can be used as a rapid alternative for the MC raytracing simulations.Following this logic, a synthetic dataset of 3.4 million freeform F -irradiance I pairs was generated within minutes.This enables learning on a large synthetic dataset of input irradiance distributions that are a result of the considered freeform topology, enhancing generalization and reducing overfitting for the more complex, reverse freeform prediction task.The 3.4 million irradiance samples were again separated in a 90-10 train-validation split.

20Freeform prediction on validation data.Fig. 4a shows quantitative and visual results for the freeform prediction model.Inference is done in 11 ms for a single sample, and can be further enhanced with a GPU-specific inference optimizer, such as NVIDIA's TensorRT module.The predicted results are studied for three validation cases, where in each case, a ground truth freeform F -irradiance I pair is compared with the predicted freeform control points F by the CNN encoder network and the resulting irradiance distribution with this predicted freeform ( Îsim ).The resulting irradiance distribution has been simulated with MC raytracing using an extensive rayset of 1 million rays, rather than with the U-net model used in the training.This assures a fair assessment of the capabilities of the model to predict an F that results in a prescribed I via raytracing.A quantitative assessment of the freeform prediction accuracy is provided by again considering the SSIM between the input I and the raytraced irradiance distribution Îsim .The visual similarity between I and Îsim illustrates the performance of the developed framework.However, one also notices the visual discrepancy between F and F. Fig. 4b considers this discrepancy more in detail for one specific case, and shows that the pixel-wise deviation for the freeform control points and the interpolated NURBS topologies is much higher than for the irradiance distributions, a feature that is witnessed for most of the validation cases.This observation supports the hypothesis that radically different freeform surface topologies can produce visually identical irradiance distributions.Therefore, training for SSIM on the pseudo-labeled U-net irradiance versus the targeted irradiance is a more logical approach than training for mean average error of the predicted freeform surface compared to the ground truth.

21Freeform prediction on custom targets.The model performance is also verified in terms of predicting freeform topologies that produce prescribed irradiance distributions, which are neither in the training nor in the validation set.This is the main target of the developed framework.Fig. 5a shows an overview of the results for three chosen irradiance patterns (I t ).

22The predicted freeform surface topology ( F) and corresponding raytraced irradiance pattern ( Îsim ) are given, together with the SSIM of the simulated pattern with respect to the prescribed irradiance.that the model is capable of producing fairly complicated freeform surface topologies that match the target irradiance distributions.Still, one could wonder if the model produces the best freeform topology prediction in terms of SSIM, since there is no raytraced ground truth in this case.As a test, a rotate test-time augmentation is applied by considering all 90 • -rotations of the target pattern.The obtained freeform topologies with the resulting MC-simulated irradiance and corresponding SSIM values are shown in Fig. 5b.These results re-affirm that multiple freeform topologies can result in nearly-identical irradiance patterns and the model finds one of these topologies.In other words, the inverse problem is ill-posed, at least within the limitations of MC raytracing.From a practical point-of-view however, such rotational test-time augmentations, or similar alternatives, could prove interesting to generate multiple solutions, out of which the best performing, most smooth or most oscillating option could be selected, depending on the specific application.

23Training performance.Finally, the efficiency of the proposed training approach is assessed through a comparative analysis with two alternative methodologies.

24(a) Training in a supervised manner, on L1 loss between F and F, using the full synthetic dataset.

25(b) Training on the SSIM loss with pseudo-labeled irradiances, but using the 25000 MC raytraced irradiance samples instead of the predicted irradiances by the U-net-SRCNN model.

26Fig. 6 considers two target distributions to illustrate the main performance differences: an irradiance distribution from the validation set linked to an actual freeform topology, and a custom prescribed irradiance.For both cases, the regression activation maps (RAM) and resulting raytraced irradiances Îsim from the predicted freeform topologies are shown for method (a) and (b), compared to the proposed approach.Regression activation maps are included since they provide a detailed representation of how a model localizes discriminative regions affecting the regression outcome [58].Comparing RAM for the first target pattern, it is visible that method (a) fails to produce confident feature maps at relevant locations.In comparison, model (b) manages to locate the core of the supplied irradiance as the most relevant area, but some noise remains.The proposed training method clearly delivers the most accurate localization, with activation maps that overlap with the target distribution.This results in the highest SSIM value for the corresponding raytraced irradiance.Similar results can be seen for the custom target distribution.In this case, the benefit of relying on synthetic data over the base MC raytraced data (method b) is visually clear when looking at the obtained irradiance distribution.

27Comparison with state-of-the-art A goal of this study was to produce freeform surface topologies that differ from classical freeform surfaces with an overall convex/concave shape.To illustrate this capacity, a generated freeform topology is compared with the solution that is calculated by the LightTools Freeform Design Feature tool, using also 11 × 11 control points.In both cases, a large uniform triangle is considered as target irradiance pat-tern.Fig. 7a shows the comparison between the resulting NURBS surfaces in both cases.Notice the expected concave shape in the LightTools generated freeform surface versus the varying freeform topology generated by our framework.This results in a 2.8× smaller surface height.The resulting irradiance distributions are shown in (ii).In both cases, the limited amount of control points results in clear visual deviations from the target pattern; however, the SSIM of the solution that is generated by LightTools is approx.10% lower than the solution by the proposed method.The oscillating shape of the topology might raise concerns about TIR losses; however, with fresnel losses enabled in the raytracing simulation, the transmission efficiency is 91.7%, being only 0.6% lower compared to the efficiency of the classical freeform surface (92.3%).

28Finally, it is verified that the freeform surface topology, results in a more spread out light distribution from the exit surface towards each point of the target pattern.To do this, both freeform components are simulated in LightTools, and a small radiance meter is positioned at the receiver surface, with its field-of-view aimed at the freeform exit surface.In this way, the radiance at the exit from the illumination component is sampled from a specific receiver direction.In the case of the concave lens, light is only propagating from a specific position/area on the freeform surface, towards a corresponding position in the target pattern.There is thus a one-toone mapping of the freeform surface to the target pattern.In the case of the freeform surface topology however, light is propagating from multiple positions/areas on the freeform surface, towards each position in the target pattern, as is illustrated in (iii).This spatial spreading of the radiance distribution over the entire illumination component is an effective approach to avoid visual discomfort glare.

Discussion

29This paper presents a semi-supervised learning framework for predicting refractive freeform topologies that produce a certain target irradiance.In contrast to prior work on machine learning for freeform design that predominantly relies on 1D multi-layer perceptron-like networks with contextual information, this study employs 2D convolutional neural networks (CNN) to model the relationship between the obtained irradiance and freeform topology.To train the network, a U-net is used for modeling the Monte-Carlo raytracing of light from a predefined light source, in order to generate pseudolabeled irradiance distributions that are compared with the input target irradiances.We demonstrate that this semi-supervised learning approach for freeform topology prediction is superior compared to a supervised learning approach using ground truth freeform topology/irradiance pairs.The resulting framework offers an end-to-end solution for rapid, smooth freeform topology design to produce an arbitrary prescribed target irradiance.The framework is trained within a specific optical setting, using a restricted parameterization for the freeform lens topology.This implies that the model is only capable of predicting freeform components within this parameterization and for the considered illumination setting.Despite these limitations, the proposed framework offers significant opportunities regarding the design and implementation of novel freeform optics.

30The freeform components that are introduced in this paper, with their smooth oscillating surface topology and resulting limited thickness, could serve as a novel beam shaping technology.Current freeform micro-optical components always consist of a periodic array of multiple individual lenses or mirrors [59,60], and while the fabrication of such components has evolved significantly over the past years, the inevitable grooves in between the different lens/mirror elements still pose significant manufacturing challenges in order to avoid stray light [61].The smooth surface topologies that result from the proposed network avoid such strong surface C2 discontinuities.The resulting beam shaping components can be used to generate non-paraxial target distributions, when illuminated with (nearly) planar incident wavefronts from LEDs or lasers.

31The proposed framework and training method could be extended to other, more general freeform illumination design problems.A straightforward extension would be a surface topology parameterization with more control points.This requires up-scaling of the model, for which larger CNN variants, or even transformers, could be used.Along with the extension of the model, more data will also be required as well as upscaling of the irradiance resolution.A larger set of control points could allow the generation of even more complex irradiance targets, as well as the representation and design of larger/thinner optical components with more convex/concave/saddleshaped regions.However, it should be clear that the level of detail is also limited by the size of the light source in comparison to the distance to the freeform component, when only one freeform surface is considered.A more interesting expansion from a practical point of view, could therefore be the extension of the framework to arbitrary (extended) light sources and multiple freeform surfaces.This may be realized by using the spatial distribution of the light source as an additional input.Predicting multiple freeform surfaces could be achieved by increasing the final MLP output head size.Of course, this would also require a significant increase in the amount of training data.For the implementation of a flexible machine learning model for general freeform illumination, it is clear that computation power will be a must.

32While the presented semi-supervised learning strategy proves superior to a supervised learning strategy, for the prediction of shallow freeform surface topologies, it remains to be seen if this would also be the most effective strategy for the design of overall convex-concave freeform surfaces.The training of such a framework would certainly require a more specific surface parameterization that enforces concaveness or convexness.Alternatively, contextual data about the freeform shape could be added in the training phase of the 2D-CNN, e.g. by concatenating an encoded prompt about the surface shape in the final linear layer of the network.Whatever the outcome, also in this case, the use of an additional network for modeling the raytracing will result in much faster and more effective training.

33The discussion above makes clear that the investigation of advanced machine learning techniques for the design of freeform illumination optics has only been started.In this respect, the proposed framework can serve as a demonstration that deep learning allows rapid and standalone freeform optical design.Using the logarithmic and exponential transforms of I allows the model to explore the global and local properties more easily (Fig. 8b).The model head contains a 2D maxpooling layer, which is a 2 × 2 filter that runs over all the extracted feature maps, maintaining the maximal value as the output.This significantly reduces overfitting.The maxpooling output is passed through a non-linear mapping multi-layer perceptron that outputs 121 variables, with GELU activation.The output is then reshaped into a 11 × 11 grid F of freeform topology control points.

34Training setup All models in the proposed method use ImageNet-21k pretrained weights [63], although the contribution of these is likely limited.Training is done using exponential learning rate decay with linear warm-up.

35Training and testing was performed on an NVIDIA RTX 3070 GPU with 8GB VRAM.A full overview of the training, as well as the used encoder variant, is shown in Table 1.For the freeform prediction models, the training procedure is given for each of the methods discussed in the training performance section.

Figure 1 :

36Figure 1: (a) Convex freeform illumination lens that generates a prescribed (far-field) target pattern from a given light source.(b) The light patterns generated by each of the four individual sub-lenses of a discontinuous lens array result together in the prescribed target pattern.(c) A smooth, continuous freeform surface topology that consists of multiple convex, concave and saddle-shaped regions avoids strong C2 surface discontinuities.(d) Such a freeform surface topology can be described as a NURBS surface that is controlled by a matrix of control points.Remark : in (a) and (b) the illumination component and illumination pattern are not drawn to scale for illustration purposes.

Figure 2 :

37Figure 2: (a) Illustration of the U-net-SRCNN model for predicting the obtained irradiance on the target plane for a certain freeform surface.The model is trained by considering pairs of freeform topologies and the corresponding simulated far-field irradiance distributions, via MC raytracing.Training loss is evaluated using the SSIM loss between the MC-simulated ground truth I and the U-net-SRCNN-predicted Î.(b) Illustration of the model to predict a freeform grid F from an input irradiance I. Training is achieved by considering the SSIM loss between the input irradiance I and Î, which is the predicted irradiance of F by the first model.

Figure 3 :

38Figure 3: (a) MC raytracing simulated irradiance versus predicted irradiance by the U-net-SRCNN model.The bottom image represents a low SSIM outlier in the validation set.(b) Comparison of pixel-wise errors: the irradiance simulated using 1 million rays is compared with the originally simulated irradiance using 15000 rays (left), and the U-net prediction, as shown on the right.Additionally, SSIM values are calculated for each comparison.Since the focus of this study lies in irradiance shapes, each irradiance was individually normalized.

Figure 4 :

39Figure 4: (a) Freeform prediction results for three validation cases.Ground truth (F, I) against the predicted freeform matrix ( F) and corresponding MC simulated irradiance ( Îsim ) using 1 million rays.(b) (i ) Pixel-wise error for the normalized predicted freeform surface control points |F − F| as well as the interpolated NURBS surfaces.(ii ) Pixel-wise error for the simulated irradiances.Notice the significant difference in freeform surface topology (i ) while producing an almost identical irradiance distribution (ii ).

Figure 5 :

40Figure 5: Freeform prediction results for certain custom target irradiances I t .(a) I t against the predicted freeform surface topologies F and the MC raytraced irradiance Îsim , resulting from F. (b) Rotate test-time augmentation on the triangular target.The results illustrate the existence of various freeform surface topologies that produce almost visually identical irradiance distributions.

Figure 6 :

41Figure 6: Performance comparison of three different learning approaches.Regression activation maps (RAM, normalized) and the produced irradiance ( Îsim ) of the predicted freeform topology Î are shown, both for a target irradiance from the validation set and a custom target irradiance.

Figure 7 :

42Figure 7: (a) Comparison between freeform surfaces generated by Light-Tools and the proposed framework, in terms of (i) freeform surface shape, (ii) resulting irradiance distribution at receiver plane and (iii) radiance distribution at freeform component.(b) The spatial spreading of the radiance distribution at the illumination component, towards a specific receiver direction, can be sampled with a radiance meter in the LightTools software.The size of the freeform element was not drawn at scale for illustration purposes.

Figure 8 :

43Figure 8: (a) U-net-SRCNN model with visualization of how the control points are interpolated and how the SRCNN constructs the final irradiance distribution.(b) The freeform prediction model, with highlights on the input transformations and the MLP structure that predicts the freeform surface control points.

44The results indicate

Table 1 :

45Full training set-up for all the considered models.

참고문헌 58건

  1. Image Super-Resolution Using Deep Convolutional Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2015 10.1109/tpami.2015.2439281
  2. Two-step design method for highly compact three-dimensional freeform optical system for LED surface light source Optics Express · Optica Publishing Group · 2014 10.1364/oe.22.0a1491
  3. Combined feedback method for designing a free-form optical system with complicated illumination patterns for an extended LED source Optics Express · Optica Publishing Group · 2011 10.1364/oe.19.0a1022
  4. Parametric optimization method for the design of high-efficiency free-form illumination system with a LED source Chinese Optics Letters · Optica Publishing Group · 2012 10.3788/col201210.112201
  5. Review of SMS design methods and real-world applications Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2004 10.1117/12.561336
  6. Design and optical characterization of a large continuous phase plate for Laser Integration Line and laser Megajoule facilities Applied Optics · Optica Publishing Group · 2003 10.1364/ao.42.002377
  7. Direct design of freeform surfaces and freeform imaging systems with a point-by-point three-dimensional construction-iteration method Optics Express · Optica Publishing Group · 2015 10.1364/oe.23.010233
  8. Why future supercomputing requires optics Nature Photonics · Nature Portfolio · 2010 10.1038/nphoton.2010.94
  9. A novel design method for continuous-phase plate Optics Express · Optica Publishing Group · 2013 10.1364/oe.21.011171
  10. Image quality assessment: from error visibility to structural similarity IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2004 10.1109/tip.2003.819861
  11. Freeform illumination design: a nonlinear boundary problem for the elliptic Monge–Ampére equation Optics Letters · Optica Publishing Group · 2013 10.1364/ol.38.000229
  12. Optimization of freeform lightpipes for light-emitting-diode projectors Applied Optics · Optica Publishing Group · 2008 10.1364/ao.47.000957
  13. A Monge--Ampère-Solver for Free-Form Reflector Design SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2014 10.1137/130938876
  14. Diabetic Retinopathy Detection via Deep Convolutional Networks for Discriminative Localization and Visual Explanation arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1703.10757
  15. Freeform spectrometer enabling increased compactness Light Science & Applications · Springer Nature · 2017 10.1038/lsa.2017.26
  16. Deep learning with coherent nanophotonic circuits Nature Photonics · Nature Portfolio · 2017 10.1038/nphoton.2017.93
  17. Innovative focal plane design for large space telescope using freeform mirrors Optica · Optica Publishing Group · 2017 10.1364/optica.4.001188
  18. Automated design of freeform imaging systems Light Science & Applications · Springer Nature · 2017 10.1038/lsa.2017.81
  19. A new diamond machining approach for extendable fabrication of micro-freeform lens array International Journal of Machine Tools and Manufacture · Elsevier BV · 2017 10.1016/j.ijmachtools.2017.10.007
  20. MSR-net:Low-light Image Enhancement Using Deep Convolutional Network arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1711.02488
  21. Design of Freeform Illumination Optics Laser & Photonics Review · Wiley · 2018 10.1002/lpor.201700310
  22. The future and promise of flat optics: a personal perspective Nanophotonics · De Gruyter · 2018 10.1515/nanoph-2018-0004
  23. Design of a freeform, luminance spreading illumination lens with a continuous surface 2018 10.1117/12.2314064
  24. Two-photon polymerisation 3D printed freeform micro-optics for optical coherence tomography fibre probes Scientific Reports · Nature Portfolio · 2018 10.1038/s41598-018-32407-0
  25. Decoupled Weight Decay Regularization arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1711.05101
  26. Ray mapping method for off-axis and non-paraxial freeform illumination lens design Optics Letters · Optica Publishing Group · 2019 10.1364/ol.44.000771
  27. Differential method for freeform optics applied to two-mirror off-axis telescope design Optics Letters · Optica Publishing Group · 2019 10.1364/ol.44.001174
  28. Using machine learning to create high-efficiency freeform illumination design tools arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1903.11166
  29. Compact freeform illumination system design for pattern generation with extended light sources Applied Optics · Optica Publishing Group · 2019 10.1364/ao.58.002713
  30. Precise light control in highly tilted geometry by freeform illumination optics Optics Letters · Optica Publishing Group · 2019 10.1364/ol.44.002887
  31. Direct generation of starting points for freeform off-axis three-mirror imaging system design using neural network based deep-learning Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.017228
  32. Design of illumination optics with extended sources based on wavefront tailoring Optica · Optica Publishing Group · 2019 10.1364/optica.6.000966
  33. Luminance spreading freeform lens arrays with accurate intensity control Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.032994
  34. Design of freeforms to uniformly illuminate polygonal targets from extended sources via edge ray mapping Applied Optics · Optica Publishing Group · 2020 10.1364/ao.392193
  35. Characterization of flat-fielding systems for quantitative microscopy Optics Express · Optica Publishing Group · 2020 10.1364/oe.395900
  36. Optimization method for designing double-surface refractive optical elements for an extended light source Optics Express · Optica Publishing Group · 2020 10.1364/oe.400609
  37. DeepCGH: 3D computer-generated holography using deep learning Optics Express · Optica Publishing Group · 2020 10.1364/oe.399624
  38. Surface topology and functionality of freeform microlens arrays Optics Express · Optica Publishing Group · 2021 10.1364/oe.415453
  39. Interfacing photonics with artificial intelligence: an innovative design strategy for photonic structures and devices based on artificial neural networks Photonics Research · Optica Publishing Group · 2021 10.1364/prj.417693
  40. Deep learning in nano-photonics: inverse design and beyond Photonics Research · Optica Publishing Group · 2021 10.1364/prj.415960
  41. Towards automatic freeform optics design: coarse and fine search of the three-mirror solution space Light Science & Applications · Springer Nature · 2021 10.1038/s41377-021-00510-z
  42. Compact freeform illumination optics design by deblurring the response of extended sources Optics Letters · Optica Publishing Group · 2021 10.1364/ol.425075
  43. Metaform optics: Bridging nanophotonics and freeform optics Science Advances · American Association for the Advancement of Science · 2021 10.1126/sciadv.abe5112
  44. Deep learning in photonics: introduction Photonics Research · Optica Publishing Group · 2021 10.1364/prj.428702
  45. Generating starting points for designing freeform imaging optical systems based on deep learning Optics Express · Optica Publishing Group · 2021 10.1364/oe.432745
  46. Deep learning for fast spatially varying deconvolution Optica · Optica Publishing Group · 2021 10.1364/optica.442438
  47. Deep-Learning Computational Holography: A Review Frontiers in Photonics · Frontiers Media · 2022 10.3389/fphot.2022.854391
  48. Least-squares ray mapping method for freeform illumination optics design Optics Express · Optica Publishing Group · 2020 10.1364/oe.385254
  49. Broadband, freeform focusing micro-optics for a side-viewing imaging catheter Optics Letters · Optica Publishing Group · 2019 10.1364/ol.44.004961
  50. Advances in the design and manufacturing of novel freeform optics International Journal of Extreme Manufacturing · IOP Publishing · 2022 10.1088/2631-7990/ac7617
  51. ImageNet-21K Pretraining for the Masses arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2104.10972
  52. Freeform optics design method for illumination and laser beam shaping enabled by least squares and surface optimization Optik · Elsevier BV · 2022 10.1016/j.ijleo.2022.169941
  53. Deep learning based on parameterized physical forward model for adaptive holographic imaging with unpaired data Nature Machine Intelligence · Nature Portfolio · 2023 10.1038/s42256-022-00584-3
  54. Fast irradiance evaluation of freeform illumination lenses based on deep learning 2023 10.1117/12.2652055
  55. Freeform optical system design with differentiable three-dimensional ray tracing and unsupervised learning Optics Express · Optica Publishing Group · 2023 10.1364/oe.484531
  56. Optimizing triangle mesh lenses for non-uniform illumination with an extended source Optics Letters · Optica Publishing Group · 2023 10.1364/ol.485874
  57. Limits of realizing irradiance distributions with shift-invariant illumination systems and finite étendue sources Journal of the Optical Society of America A · Optica Publishing Group · 2023 10.1364/josaa.488849
  58. FreeformNet: fast and automatic generation of multiple-solution freeform imaging systems enabled by deep learning Photonics Research · Optica Publishing Group · 2023 10.1364/prj.492938