Retrieval of grating line width and slit width from diffraction using a CNN–transformer hybrid network
Retrieving structural parameters from diffraction intensity patterns is a fundamental inverse problem in optical measurement. To address this challenging problem, this work proposes a CNN–transformer hybrid architecture, termed CTA, for direct retrieval of grating line width and slit width from a single near-Talbot diffraction intensity image. The CNN modules extract local fringe features, while the self-attention module captures long-range spatial correlations, converting iterative inversion into rapid forward inference after training. An SLM-based platform was developed to construct a dataset of 3721 diffraction images. Over three random seeds, CTA achieved a mean MAE of 6.79±1.51µm, a mean RMSE of 8.21±1.54µm, and a mean R 2 of 0.9964±0.0012 on the fixed test set of 372 images. The joint accuracies at the 2%, 5%, and 10% relative-error thresholds were 24.10±14.79%, 75.90±2.17%, and 93.82±0.71%, respectively. The average inference time is 2.257 ms per sample. These results indicate that the proposed method provides a fast, accurate, and non-contact approach for grating parameter retrieval from near-Talbot diffraction intensity patterns, demonstrating the potential of CNN–transformer hybrid architectures for solving diffraction-based optical inverse problems.
Authors
- Changhe Zhou
- Yuanming Tian
- Shanwen Zhang
- Shuang Zhang
- Wei Jia
- jin wang
Publication Details
- Journal
- Applied Optics
- Published
- 2026-12-03
- DOI
- https://doi.org/10.1364/ao.612676
- Primary Topic
- Optical measurement and interference techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00