Scientific Machine Learning: Prediction of Freeform Microlens Shapes
Abstract
The electrical deformation of liquid polymer droplets offers a promising approach for the fabrication of customized freeform microlenses. This work investigates Scientific Machine Learning models for predicting the resulting lens shapes before UV curing. Three different neural network architectures are compared: a pointwise Multilayer Perceptron, a sequence-wise 1D convolutional U-Net and a self-attention-based Transformer Encoder for sequence regression. Prior knowledge of the geometric microlens boundaries is embedded either as a soft penalty term in the loss function or as a hard boundary constraint through a trial function layer. The sequence-wise architectures show improved prediction accuracy compared with pointwise regression. The best root mean squared error is obtained with the hard-constrained 1D U-Net (3.1 μm), followed closely by the hard-constrained Transformer (3.3 μm). The results show that the imposed boundary constraints improve physical consistency locally, while future work will include global constraints to further enhance the overall robustness of the predicted shapes.