Holographic imaging and projection are increasingly used for important applications such as augmented reality,1 3D microscopy2 and imaging through optical fibres.3 However, there are emerging applications that require control or detection of phase, where deep learning techniques are used as faster alternatives to conventional hologram generation algorithms or phase-retrieval algorithms.4 Although conventional mean absolute error (MAE) loss function or mean squared error (MSE) can directly compare complex values for absolute control of phase, there is a class of problems whose solutions are degenerate within a global phase factor, but whose relative phase between pixels must be preserved. In such cases, MAE is not suitable because it is sensitive to global phase differences. We therefore develop a ‘global phase insensitive’ loss function that estimates the global phase factor between predicted and target outputs and normalises the predicted output to remove this factor before calculating MAE. As a case study we demonstrate ≤ 0.1% error in the recovery of complex-valued optical fibre transmission matrices via a neural network. This global phase insensitive loss function will offer new opportunities for deep learning-based holographic image reconstruction, 3D holographic projection for augmented reality and coherent imaging through optical fibres.
|