We introduce a deep-learning technique to perform complete mode decomposition for few-mode optical fibers for the first time. Our goal is to learn a fast and accurate mapping from near-field beam patterns to the complete mode coefficients, including both modal amplitudes and phases. We train the convolutional neural network with simulated beam patterns and evaluate the network on both the simulated beam data and the real beam data. In simulated beam data testing, the correlation between the reconstructed and the ideal beam patterns can achieve 0.9993 and 0.995 for 3-mode case and 5-mode case, respectively. While in the real 3-mode beam data testing, the average correlation is 0.9912 and the mode decomposition can be potentially performed at 33 Hz frequency on a graphic processing unit, indicating real-time processing ability. The quantitative evaluations demonstrate the superiority of our deep learning–based approach.
Structured optical fields, such as cylindrical vector (CV) and orbital angular momentum (OAM) modes, have attracted considerable attention due to their polarization singularities and helical phase wavefront structure. However, one of the most critical challenges is still the intelligent generation or precise control of these modes. Here, we demonstrate the first simulation and experimental realization of decomposing the CV and OAM modes by reconstructing the multi‐view images of projected intensity distribution. Assisted by the deep learning–based stochastic parallel gradient descent (SPGD) algorithm, the modal coefficients and optical field distributions can be retrieved in 1.32 s within an average error of 0.416 % showing high efficiency and accuracy. Especially, the interference pattern and quarter‐wave plate are exploited to confirm the phase and distinguish elliptical or circular polarization direction, respectively. The generated donut modes are experimentally decomposed in the CV and OAM modes, where purity of CV modes reaches 99.5 %. Finally, fast switching vortex modes is achieved by electrically driving the polarization controller to deliver diverse CV modes. Our findings may provide a convenient way to characterize and deepen the understanding of CV or OAM modes in view of modal proportions, which is expected of latent applied value on information coding and quantum computation.