2026 Volume 35 Issue 9
Article Contents

Yuanyuan Ma, Yunfan He, Le Wang, Shengmei Zhao. Dual-attention cGAN for high-fidelity ghost imaging at ultra-low sampling rates[J]. Chinese Physics B, 2026, 35(9): 094207. doi: 10.1088/1674-1056/ae1b78
Citation: Yuanyuan Ma, Yunfan He, Le Wang, Shengmei Zhao. Dual-attention cGAN for high-fidelity ghost imaging at ultra-low sampling rates[J]. Chinese Physics B, 2026, 35(9): 094207. doi: 10.1088/1674-1056/ae1b78

Dual-attention cGAN for high-fidelity ghost imaging at ultra-low sampling rates

  • Received Date: 10/08/2025
    Accepted Date: 03/11/2025
    Available Online: 01/09/2026
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(10)  /  Tables(1)

Article Metrics

Article views(31) PDF downloads(0) Cited by(0)

Access History

Dual-attention cGAN for high-fidelity ghost imaging at ultra-low sampling rates

Abstract: Achieving high-quality ghost imaging (GI) reconstruction under extremely low sampling rates remains a significant challenge. This paper proposes a novel deep learning-based approach for high-fidelity GI reconstruction. Leveraging an end-to-end conditional generative adversarial network (cGAN), the method incorporates residual structures integrated with efficient channel attention (ECA) and convolutional block attention module (CBAM) mechanisms to significantly enhance feature extraction and representation. This framework enables direct reconstruction of target images from one-dimensional bucket detection signals. Pre-trained on simulated datasets, the proposed method demonstrates exceptional performance. The results under ideal simulation conditions demonstrate that the proposed method can achieve high quality (SSIM ≥ 0.8) even at the extremely low ratio of 0.29%. Experimental results on the MNIST and Fashion–MNIST benchmark datasets confirm that accurate image reconstruction can be obtained at remarkably low sampling rates (0.78%). Compared to traditional computational GI, baseline cGAN methods and GAN with integrated SENet attention module consistently demonstrate the superiority of our approach, establishing a new state-of-the-art in low-sampling-rate GI reconstruction.

1.   Introduction
  • Ghost imaging (GI) represents a fundamentally distinct imaging paradigm compared to conventional CCD/CMOS sensors, reconstructing an object’s image non-locally through second-order correlations within light intensity fluctuations.[1–3] Following its inaugural experimental realization with entangled photons in 1995,[4] the field has evolved substantially with techniques including: iterative denoising GI,[5] compressed sensing GI (CSGI),[6,7] differential GI,[8] and Hadamard basis GI.[9,10] Whereas traditional implementations require dual optical paths, Shapiro’s computational GI (CGI) framework (2008) eliminated the reference arm requirement through a single-path architecture.[11] Subsequent research has extended GI methodologies to various domains such as terahertz,[12] x-ray,[13] and turbulent media imaging.[14]

    Despite significant advancements, ghost imaging (GI) systems still face a fundamental challenge: their inherently high measurement requirements. Both imaging speed and reconstruction quality are directly constrained by the number of sampling measurements. While increasing the sampling rate typically enhances reconstruction quality, achieving high-fidelity reconstruction under low-sampling conditions necessitates meticulous optimization of the illumination patterns. Illumination strategies have evolved from initial random speckle patterns[15] to structured illumination schemes, encompassing advanced modalities such as Fourier basis patterns[16,17] and Walsh–Hadamard basis patterns.[18,19] Concurrently, reconstruction frameworks have undergone parallel development, particularly driven by the groundbreaking progress in compressed sensing (CS) algorithms,[20] which offer novel technical pathways for enhancing reconstruction efficiency.

    The recent integration of artificial intelligence (AI), particularly deep learning, offers further promise in improving GI efficiency under low sampling conditions.[21,22] Current deep learning approaches for GI reconstruction fall primarily into two categories: (i) Post-reconstruction enhancement: Employing deep neural networks to refine an initially blurred image obtained at low sampling rates;[23–25] (ii) End-to-end reconstruction: Directly mapping one-dimensional (1D) bucket detector signals to the target image without intermediate reconstruction.[26–28] Although end-to-end approaches demonstrate the potential for substantial sampling reduction—achieving reconstructions at 6.25% sampling for MNIST images or 5.45% with specialized architectures like DattNet,[21] high-fidelity reconstruction under ultra-low sampling rates (significantly below these thresholds) remains elusive. Generative adversarial networks (GANs) have emerged as powerful solutions, with capabilities that encompass full-sampling quality CSGI at 50% sampling[29] and motion-target GI using cross-correlation.[30] However, achieving high-quality imaging below the 5% sampling rates continues to pose significant research challenges.

    In this work, we address this critical challenge by proposing a novel deep learning-based GI reconstruction method specifically designed for high-quality image recovery under extremely sparse sampling. We propose a novel deep learning-based method built upon an end-to-end conditional generative adversarial network (cGAN) framework, pre-trained on simulated data for enhanced performance. The core innovation lies in the generator architecture, which integrates residual blocks with dual attention mechanisms: efficient channel attention (ECA) and convolutional block attention module (CBAM), strategically embedded at multiple deeper network layers. This design significantly strengthens feature extraction and representation by enabling dynamic focus on critical image regions. Extensive simulation and experimental evaluations on benchmark datasets (MNIST, Fashion–MNIST) demonstrate the method’s exceptional effectiveness, achieving high-fidelity reconstruction even at remarkably low sampling rates down to 0.29% (in ideal simulation) and 0.78% (in experiment), significantly outperforming traditional and contemporary baseline methods.

2.   Method
  • The principle of the proposed scheme is illustrated in Fig. 1. Our ghost imaging reconstruction framework utilizes a generative adversarial network (GAN)[31] architecture comprising two core components: a generator (G) and a discriminator (D).

    The generator processes the 1D bucket signals Bi acquired by the GI system. These signals first undergo dimensional expansion via a fully connected layer. The dimensionally expanded bucket signal is then reshaped into a feature tensor of the required size (say 1 × 64 × 64). This tensor serves as the input to a U-net backbone network, which ultimately generates the final reconstructed image. The discriminator receives both the generated image from G and the corresponding ground-truth images as input. Its objective is to classify each input image as ‘real’ (ground-truth, output ∼ 1) or ‘fake’ (generated, output ∼ 0).

    During adversarial training, G and D are optimized alternately within a minimax game framework. The generator G strives to produce realistic images capable of deceiving the discriminator D. Concurrently, the discriminator D learns to improve its ability to distinguish between real and generated images. This adversarial process drives both networks towards optimizing their respective objective functions. Theoretically, the training converges when a Nash equilibrium is reached, signifying that G produces images indistinguishable from the real data by D.

    Within the ghost imaging framework, a sequence of spatially varying speckle patterns, Ii (x,y) (i = 1,2,3,…,M), is sequentially illuminated onto the target object T (x,y). A bucket detector collects the transmitted or reflected intensity for each illumination event. This yields measurements {Bi} (i = 1,2,3,…,M), where M is the measurement number, relating to the sampling rate. The bucket measurement Bi for each speckle pattern is given by the spatial integral over the object plane as

    At the reconstruction stage, the object image is computationally retrieved from the bucket measurements {Bi} and the known speckle patterns {Ii (x,y)} using a correlation function. The reconstruction is expressed as

    where T^(x,y) denotes the reconstructed target image, 〈B〉=1M∑i=1MBi denotes the mean bucket signal, and 〈I(x,y)〉=1M∑i=1MIi(x,y) corresponds to the ensemble-averaged speckle pattern.

    The proposed scheme differs from traditional second-order correlation and compressive sensing methods by accomplishing direct image reconstruction from a 1D sequence of bucket detection values. This mapping is mathematically represented as,

    where B={Bi}i=1M is a bucket detection sequence of M measurements. The reconstruction model, parameterized by Ψ, implements an implicit mapping G(⋅) from B to T^(x,y). Since deriving an explicit expression for G(⋅) and solving the inverse problem in Eq. (3) is challenging, a cGAN is introduced to approximate the inverse mapping. The training dataset is (B(n),T(n))n=1N, where N denotes the total number of training instances, B(n) is the n-th bucket sequence, and T(n) is the corresponding ground-truth image.

    Critically, instead of processing the raw 1D bucket signal directly, the generator G first transforms it into a structured two-dimensional (2D) representation Z = E(B(n)) through fully connected layers. This design enables the optimization process to convert the temporal variations in the bucket signal into an organized spatial representation, thereby making it suitable for subsequent convolutional processing. The generator subsequently processes Z through a series of convolutional layers for deep feature extraction and spatial upsampling. The fundamental convolution operation at each layer is given by

    where Zℓ denotes the feature map at layer ℓ, Wℓ and bℓ are the convolutional kernel weights and biases, ∗ denotes convolution, and φ is a nonlinear activation function. Through this progressive layer-wise feature transformation, the network effectively maps the initial 2D representation Z to a high-fidelity reconstructed image.

  • The designed network employs a cGAN architecture,[32] extending the standard GAN framework through its dual adversarial components: a generator dedicated to image synthesis and a discriminator responsible for authenticity assessment. Figure 2 shows the designed network architecture, with Fig. 2(a) detailing the generator, and Fig. 2(b) illustrating the discriminator.

    As illustrated in Fig. 2(a), the generator utilizes an encoder–decoder structure initiated by a 1D bucket detector signal. Its encoder employs four progressive downsampling stages with 4× 4 convolutional kernels (stride 2, padding 1) to extract hierarchical features. To enhance architectural performance, a residual block is utilized in the second stage to strengthen feature continuity, while the third stage incorporates ECA for efficient channel dependency modeling. The fourth stage further integrates the CBAM to jointly optimize spatial and channel feature representation. To balance computational efficiency and generalization, attention mechanisms are selectively applied only in later layers. The decoder reconstructs images through four transposed convolutional stages with skip connections preserving critical high-frequency details between corresponding encoder–decoder layers. All layers use ReLU activations except the final output layer, which employs a sigmoid function. This strategic implementation of attention mechanisms primarily in later stages effectively balances computational efficiency against potential overfitting risks. This strategic placement of attention mechanisms optimizes performance while mitigating overfitting risks.

    In contrast, the discriminator (Fig. 2(b)) adopts a PatchGAN architecture to evaluate the authenticity of reconstructed images. Unlike conventional discriminators that perform global classification, PatchGAN divides the input image into multiple local patches and independently assesses the realism of each patch. Consequently, it outputs a probability feature map of size 1 × 3 × 3, where each element represents the likelihood that the corresponding image patch originates from real data. The output values range from 0 to 1, with values closer to 1 indicating a highly realistic region, and values closer to 0 suggesting synthetic or unrealistic content. By enabling fine-grained discrimination of local structures, this design enhances the model’s sensitivity to texture and structural details, thereby improving the overall perceptual quality of the reconstructed images.

    Adversarial training progressed through three phases. Initially, the discriminator underwent dedicated pre-training to establish baseline discrimination capability between early generator outputs and real images. Subsequently, both networks engaged in alternating min–max optimization: the generator progressively refined its synthetic samples while the discriminator adaptively enhanced its discrimination capability. Training terminated when the accuracy of the discriminator approached 50%, indicating the generator produced samples indistinguishable from real data.

    Under ultra-low sampling rates, the training of generative adversarial networks (GANs) becomes highly unstable and prone to mode collapse. To address this issue, we adopt a Wasserstein GAN with gradient penalty (WGAN–GP), which enforces Lipschitz continuity to stabilize gradient updates. Additionally, spectral normalization is applied to both the generator and the discriminator, constraining model capacity and further preventing training divergence.

  • Neural network training optimizes the parameters governing the weights and biases to enhance predictive capability. Within our supervised learning framework, this optimization relies on paired samples of input bucket signals and corresponding ground-truth images that constrain the model during iterative refinement. The network thereby learns to reconstruct high-quality images from input signals.

    Employing a cGAN framework, our model’s objective function integrates complementary loss components that collectively guide the generator toward structurally faithful and visually realistic reconstructions. The adversarial loss LGAN promotes distributional alignment by training the generator to produce outputs indistinguishable from real images, formulated as follows:

    where x represents the input bucket signal reshaped into a 2D image, and y is the corresponding ground-truth image. G(x) denotes the generated output, and D(⋅) denotes the discriminator’s authenticity probability. This loss conditions the generator output on the input signal while matching the real image distribution.

    Structural precision is enforced through pixel-level L1 loss, which constrains the mean absolute error between generated and target images, expressed as

    This component ensures geometric alignment by minimizing pixel-space deviations.

    The complete objective function combines these complementary mechanisms as

    where λ = 100 is used to balance the loss contributions. The arg minG maxD operator represents the adversarial min–max optimization, stabilizing training by simultaneously refining the generator’s synthesis capability and the discriminator’s assessment accuracy.

3.   Numerical simulation and experimental results
  • This section details the numerical validation framework and experimental verification of the proposed GI methodology.

    For the numerical simulations, a total of 2 × 104 images were randomly selected from the MNIST training set for model training, while an additional 2500 images were randomly sampled from the MNIST test set for evaluation. All images were resized to 64 × 64 spatial resolution. Network optimization employed the Adam algorithm with learning rate 10−4 and weight decay 10−4, implemented on an Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.5 GHz and NVIDIA TITAN RTX 24 G GPU platform.

    The experimental configuration, detailed in Fig. 3, employs a digital micromirror device (Texas Instruments DLP LightCrafter 4500) to project structured speckle patterns onto target specimens. Backscattered photons were collected by a single-element photodetector (Thorlabs PMM02-1) devoid of spatial discrimination capability. The photocurrent signals were digitized using a 16-bit analog-to-digital conversion unit (National Instruments USB-6341). An adversarial neural network architecture performed direct end-to-end reconstruction of object intensity distributions from the temporally sampled bucket detection sequences.

    Quantitative evaluation of reconstruction fidelity employs two complementary metrics: peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM), which provide distinct yet synergistic assessments of image quality. Both metrics evaluate fidelity between reconstructed image M(i, j) and ground truth N(i, j) with dimensions m × n. The PSNR quantifies pixel-level accuracy through mean squared error

    where MAX denotes the maximum possible pixel value in the image, and higher PSNR values indicate reduced distortion. The SSIM metric evaluates perceptual similarity by comparing luminance, contrast, and structural covariance as

    where μM and μN represent the mean values, σM and σN denote the standard deviations of the image intensity distributions M(i, j) and N(i, j), respectively, and σMN is their covariance. The terms C1 = (k1L)2 and C2 = (k2L)2 ensure numerical stability, where L represents the dynamic range of pixel values (L = 255 for 8-bit grayscale images). The scalar constants k1 and k2 (satisfying k1,k2 ≪ 1) prevent division by near-zero denominators. An SSIM value approaching unity indicates perfect structural correspondence between the images.

  • Figure 4 presents simulated and experimental reconstruction results for handwritten digits across progressively reduced sampling ratios. The simulation results are shown for sampling ratios of 1.2%, 0.78%, 0.39%, and 0.29%, respectively. The results under ideal simulation conditions demonstrate robust performance, achieving SSIM ≥ 0.8 even at the extremely low ratio of 0.29%. Experimental validation at 1.2% and 0.78% sample ratios confirms this capability. Reconstructions remain fully successful at 1.2%, while most digits retain recognizability at 0.78%, but digits ‘6’ and ‘9’ exhibit quality degradation at 0.78%, attributable to measurement errors from environmental noise. Collectively, these results confirm the method’s strong low-sampling reconstruction capability, supporting its feasibility for ghost imaging. Relevant demonstrations have been conducted subsequently to verify this phenomenon.

    Figure 5 illustrates the comprehensive validation results on the structurally more complex Fashion–MNIST dataset. Quantitative evaluations under sub-Nyquist sampling rates confirm the method’s capability for high-fidelity reconstruction of complex targets, demonstrating statistically significant performance improvements compared to conventional ghost imaging methodologies. Particularly noteworthy is the superior performance of the proposed method on the Fashion–MNIST dataset at ultra-low sampling rates (0.29% and 0.39%) compared to its performance on the MNIST dataset. This enhancement can be attributed to the effectiveness of the attention mechanism in extracting salient features from complex target objects, while the attention mechanism provides limited benefits for simple structures such as MNIST digits, it significantly enhances the reconstruction of rich visual details in Fashion–MNIST images.

    To bridge the discrepancy between simulation and experiment, we introduced varying levels of Gaussian noise into the simulations to emulate experimental noise disturbances. As shown in Fig. 6, the reconstruction performance of the proposed method was evaluated under different noise levels, characterized by the standard deviation σ, at a sampling rate of 1.2%. The results demonstrate a decline in both PSNR and SSIM with increasing noise variance. When the standard deviation σ reaches 50, the simulation results closely approximate the experimental outcomes, exhibiting nearly identical PSNR and SSIM values. This indicates that environmental noise is a primary factor degrading the reconstructed image quality in practical experiments.

  • Figure 7 compares simulation-based reconstruction results on the MNIST dataset across multiple GI methods at progressively reduced sampling rates (1.2% to 0.29%). They are conventional GI (GI), a baseline cGAN without residual blocks and attention mechanisms,[32] a GAN integrated with the SENet attention module (SE-GAN),[33] and our proposed method. To quantitatively assess the reconstruction performance, the average SSIM and PSNR for reconstructed images are evaluated for digits (‘3’, ‘6’, and ‘8’) under each sampling rate, as shown in Fig. 7.

    The results demonstrate that under extremely low sampling rates (e.g., 0.39% and 0.29%), conventional GI fails to produce recognizable reconstructions. While both the baseline cGAN and SE-GAN remain functional under these conditions, our method consistently achieves superior reconstruction quality. More importantly, this performance gain comes with a significant efficiency advantage. The integration of the SENet module in SE-GAN leads to substantial computational overhead, resulting in a training time approximately double that of our method. Consequently, our approach delivers not only enhanced performance but also markedly reduced training costs. This performance advantage enlarges significantly as sampling rates decrease further, demonstrating our method’s enhanced capability under severely under-sampled conditions.

    On the Fashion–MNIST dataset, the proposed imaging scheme demonstrates notably superior performance compared to other ghost imaging methods. As shown in Fig. 8(a), when the sampling rate is as low as 0.39% and 0.29%, the conventional cGAN fails to reconstruct images from the “sneaker” category effectively. By contrast, the proposed method consistently yields high-fidelity reconstruction results. Although the reconstructions of SE-GAN and the proposed method appear visually comparable, the PSNR and SSIM trends across different sampling rates in Figs. 8(b) and 8(c) quantitatively validate the performance advantage of our scheme.

    To evaluate the respective contributions of the ECA module and the CBAM in our framework, we conduct an ablation study at 0.78% sampling rate, comparing the performance when both modules are employed versus when only one is used. All models were trained under identical settings in terms of dataset size and number of epochs. Figure 9 illustrates the reconstruction results for the full model (dual attention), CBAM-only, and ECA-only configurations. Quantitatively, the proposed method with dual attention mechanisms achieves higher PSNR and SSIM values than the single-attention variants. The ECA-only model performs the worst across most categories, with the exception of the “NUPT” image. We attribute the effectiveness of the dual-attention design to the complementary roles of each module: CBAM, with its spatial attention mechanism, is critical in preserving structural details during reconstruction. In our network, CBAM is applied at the fourth layer, while ECA operates at the third layer. This combination enables joint optimization across channel and spatial dimensions, leading to enhanced feature representation and superior reconstruction performance.

    Furthermore, we conducted comparative evaluations of four distinct GI methodologies on both the MNIST and Fashion–MNIST datasets at a sampling rate of 1.2%. Quantitative analysis of the reconstructed images, with visual results for the MNIST dataset and Fashion–MNIST dataset presented in Fig. 10, demonstrates that, compared to the baseline model, the cGAN, and the SE-GAN, the proposed method achieves statistically significant improvements in both perceptual clarity and structural integrity. These qualitative enhancements are further corroborated by the quantitative metrics in Table 1, which show that the proposed method attains the highest mean PSNR and SSIM across both datasets. Collectively, these experimental results confirm that the proposed framework exhibits superior performance in three critical aspects of low-sampling-rate ghost imaging: reconstruction fidelity, computational efficiency, and noise robustness.

4.   Conclusion
  • In summary, this paper presents a deep learning-based GI reconstruction method designed to achieve high-quality image recovery under low sampling rate conditions. The proposed approach builds upon a cGAN framework, in which residual blocks and attention mechanisms are strategically incorporated. Specifically, a U-net-style generator architecture is employed, with efficient attention modules embedded in the deeper layers of the generator to enhance the representation of critical image features. This design improves the network’s expressiveness while maintaining computational efficiency and mitigating the risk of overfitting associated with excessive attention mechanisms.

    The numerical simulations and experimental validations on the MNIST and Fashion–MNIST datasets demonstrate that the proposed method can effectively reconstruct clear and accurate images even at extremely low sampling rates (0.29% in ideal simulation and 0.78% in experiment). Compared to conventional GI techniques, the baseline cGAN model, and the SENet-integrated GAN (SE-GAN), the proposed method consistently achieves superior reconstruction quality. These results highlight the robustness and expressive capability of the proposed approach, indicating its strong potential for application in low-sampling-rate GI scenarios.

Figure (10)  Table (1) Reference (33)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return