Fuzzy diffusion model for seen-through document image restoration

Yijie Wang, Jiaxin Gong, Zongbao Liang, Qianpeng Chong, Cheng Xiang, Jindong XuJournal of Image and Graphics 2024

Abstract

Digital imaging of documents often suffers from "seen-through" or "bleed-through" effects, where content from the reverse side of a page becomes visible due to ink concentration or paper transparency. This phenomenon significantly degrades image quality and hinders downstream tasks like Optical Character Recognition (OCR). This paper presents a novel Fuzzy Diffusion Model (FDM) that leverages mean-reverting stochastic differential equations (SDEs) and fuzzy logic to restore document images. By transforming degraded images into a mean state with fixed Gaussian noise and employing a fuzzy-enhanced U-Net for the reverse process, the model effectively eliminates bleed-through without requiring prior physical knowledge. Experimental results on synthetic and real-world datasets demonstrate that FDM outperforms existing state-of-the-art methods in both visual quality and quantitative metrics such as PSNR and SSIM.

Introduction

The "seen-through" effect is a common challenge in document digitization. It occurs when the back-side content of a document is captured along with the front-side text, creating a cluttered and often illegible digital copy. Traditional restoration techniques, which often rely on simple linear models or hand-crafted heuristics, struggle with the high variability of real-world documents—factors like paper thickness, ink type, and scanning pressure introduce significant uncertainty.

Deep learning approaches have shown promise, but many still struggle to distinguish between faint front-side text and strong back-side bleed-through. The proposed Fuzzy Diffusion Model addresses this by integrating the generative power of diffusion models with fuzzy logic's ability to handle pixel-level ambiguity.

Methodology: The Fuzzy Diffusion Framework

The FDM operates through a two-stage process based on Image Restoration Stochastic Differential Equations (IR-SDE).

1. Forward Diffusion (Mean-Reverting Process)

Unlike standard diffusion models that degrade an image into pure white noise, the FDM uses a mean-reverting SDE. This process gradually transforms a clean document image $x(0)$ into a low-quality (LQ) "seen-through" state $\mu$ while adding controlled Gaussian noise. This approach provides the model with a structural "mean" state to aim for, which is more representative of document degradation than pure noise.

The forward and backward IR-SDE processes for document restoration.

2. Reverse Restoration (Fuzzy-Enhanced U-Net)

To recover the clean image, the model simulates the reverse-time SDE. The core of this restoration is a modified U-Net architecture featuring a Fuzzy Block.

  • Fuzzy Logic Integration: In the skip connections, the Fuzzy Block calculates a "membership degree" for each pixel. This allows the network to reason about the uncertainty of whether a pixel belongs to the foreground text or the background bleed-through, leading to more precise artifact removal.
  • Atrous Spatial Pyramid Pooling (ASPP): Integrated into the bottleneck, ASPP expands the receptive field, allowing the model to utilize broader contextual information to distinguish between legitimate characters and ghosting artifacts.

Experimental Results

The FDM was evaluated against five representative restoration methods, including DeepOtsu and AGAN, across multiple datasets.

Quantitative Performance

On the synthetic color dataset (C-1), the FDM achieved a Peak Signal-to-Noise Ratio (PSNR) of 30.00 dB and a Structural Similarity Index (SSIM) of 0.986, surpassing all competing models. It also demonstrated superior performance in perceptual metrics like LPIPS and FID, indicating that the restored images are both structurally accurate and visually natural.

Qualitative Analysis

Visually, the FDM excels at preserving sharp character edges and original background colors while completely removing back-side "ghost" text. While other models often leave behind faint shadows or introduce color shifts, the FDM produces clean, high-contrast results suitable for professional archiving and OCR.

Comparison between (a) a seen-through document image and (b) the image restored by the FDM.

Conclusion and Future Work

The Fuzzy Diffusion Model represents a significant advancement in document image restoration. By combining the structural guidance of mean-reverting SDEs with the uncertainty-handling capabilities of fuzzy logic, it provides a robust solution for the seen-through problem.

Currently, the primary limitation is the iterative nature of the diffusion process, which results in a processing time of approximately 15.66 seconds per image. Future research will focus on acceleration techniques, such as consistency models or optimized sampling strategies, to enable real-time application in scanners and mobile devices.

Summary updated

BibTeX
@article{wang2024fuzzy,
  author = {Yijie Wang and Jiaxin Gong and Zongbao Liang and Qianpeng Chong and Cheng Xiang and Jindong Xu},
  title = {{Fuzzy diffusion model for seen-through document image restoration}},
  journal = {Journal of Image and Graphics},
  year = {2024},
  doi = {10.11834/jig.240350},
}
Figure