Dual-Comb Ghost Imaging with Transformer-Based Reconstruction for Optical Fiber Endomicroscopy

David Dang, Myoung-Gyun Suh, Maodong Gao, ByoungJun Park, Beyonce Hu, Yucheng Jin, Wilton J. M. Kort-Kamp, Ho Wai Howard LeeNeurIPS 2025

Introduction

Endoscopic imaging is indispensable for visualizing internal organs, yet conventional systems remain bulky and costly due to their reliance on large, multi-element optics. This limits their ability to access and image highly constrained areas of the body. While optical fibers offer a sub-millimeter-scale alternative, they typically rely on either raster scanning (which is slow) or multicore bundles (which are bulky and pixelated).

Ghost Imaging (GI) presents a clever alternative that uses a single-pixel detector to measure the total light intensity (a "bucket sum") after it interacts with an object. However, classical GI is notoriously slow because it requires projecting hundreds of light patterns sequentially. To overcome this "speed and size" bottleneck, researchers have developed a hardware-software co-design that parallelizes light patterns and uses deep learning to reconstruct images from highly compressed data.

Methodology

The researchers propose a dual-pronged approach combining advanced optics with a specialized Transformer model.

1. The Hardware: Dual-Comb Ghost Imaging

Instead of projecting patterns one by one, the system utilizes dual-comb interferometry. An optical frequency comb is a laser source with hundreds of equally spaced, sharp frequency lines.

Conceptual diagram of the dual-comb ghost imaging system.

Each "tooth" of the comb generates a unique, uncorrelated speckle pattern at the fiber tip. By using two combs with slightly different spacing, these patterns can be multiplexed in the frequency domain.

Example of a 2D speckle pattern generated at the fiber tip.

This frequency-domain multiplexing allows the system to capture the data for an entire image in a single "snapshot" interferogram. This interferogram is then converted into individual "bucket sums" via a Fast Fourier Transform (FFT), entirely eliminating the need for mechanical scanning.

2. The Software: Optical Ghost-GPT

To reconstruct the image from these bucket sums, the authors introduce Optical Ghost-GPT, a Transformer-based model tailored for ghost imaging.

  • Tokenization: Each "token" in the sequence consists of a flattened 2D speckle pattern concatenated with its corresponding bucket sum measurement.
  • Architecture: The model employs 12 transformer blocks with multi-head self-attention (MHSA) to capture the global correlations between the illumination patterns and the measured intensities.
  • Efficiency: Unlike iterative classical algorithms that can take seconds or minutes, Ghost-GPT performs the reconstruction in just 14 milliseconds on a standard GPU.

Datasets and Evaluation

The model was trained on a synthetic dataset of approximately 38,000 images derived from MNIST (handwritten digits) and Omniglot (various character sets). These images were computationally "convolved" with experimentally measured speckle patterns to create realistic training pairs. For physical evaluation, the system was tested using a standard USAF 1951 resolution test target, providing a rigorous benchmark for the hardware-software system's resolving power.

Key Insights and Results

  • The Power of Low Sampling: The system achieves high-fidelity reconstruction at a remarkable 0.29% sampling ratio. Recovering a $256 \times 256$ image from just a few hundred measurements represents a significant advancement in compressed sensing.
  • Transformers Outperform CNNs: Ghost-GPT demonstrated superior performance compared to U-Nets and standard CNNs. Because ghost imaging is inherently a global reconstruction problem (every pixel contributes to the single-pixel measurement), the self-attention mechanism in Transformers is better suited to capturing long-range dependencies than the local receptive fields of CNNs.
  • Speed and Fidelity: Ghost-GPT is approximately 263x faster than FISTA (a standard iterative reconstruction algorithm). On validation data, the model achieved a Mean Squared Error (MSE) of 0.008 and a Structural Similarity Index (SSIM) of 0.788.
  • Resolution and Robustness: In experimental tests, the system successfully resolved features as small as 0.077 mm, demonstrating its potential for cellular-scale imaging. Furthermore, the model maintained high performance even when artificial noise was introduced, outperforming classical methods at Signal-to-Noise Ratios (SNR) above 20 dB.

Limitations and Future Work

While promising, the system faces a few practical challenges:

  • Calibration Sensitivity: The model relies on precise knowledge of the speckle patterns generated by the fiber. Environmental factors like fiber bending or temperature fluctuations can shift these patterns, necessitating re-calibration.
  • Domain Gap: Currently trained on simple binary-like datasets, transitioning the model to complex, grayscale biological tissues will require more diverse training data and potentially more sophisticated loss functions (e.g., perceptual or adversarial losses).
  • Scaling Up: The current setup utilizes roughly 200 comb lines. Increasing this number would allow for higher resolution and better grayscale depth, though it would require higher-bandwidth electronics.

Overall, this work represents a significant step toward "smart" endoscopes that replace heavy glass optics with high-speed computation, paving the way for ultra-miniaturized, non-invasive medical imaging.

Summary updated

BibTeX
@inproceedings{dang2025dual,
  author = {David Dang and Myoung-Gyun Suh and Maodong Gao and ByoungJun Park and Beyonce Hu and Yucheng Jin and Wilton J. M. Kort-Kamp and Ho Wai Howard Lee},
  title = {{Dual-Comb Ghost Imaging with Transformer-Based Reconstruction for Optical Fiber Endomicroscopy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9nlTapr2sd},
}
Figure