Diffusion-Denoising Process with Gated U-Net for High-Quality Document Binarization
Source abstract
Abstract
The binarization of degraded documents represents a crucial preprocessing task for various document analyses, including optical character recognition and historical document analysis. Various convolutional neural network models and generative models have been used for document binarization. However, these models often struggle to deliver generalized performance on noise types the model has not encountered during training and may have difficulty extracting intricate text strokes. We herein propose a novel approach to address these challenges by introducing the use of the latent diffusion model, a well-known high-quality image-generation model, into the realm of document binarization for the first time. By leveraging an iterative diffusion-denoising process within the latent space, our approach excels at producing high-quality, clean, binarized images and demonstrates excellent generalization using both data distribution and time steps during training. Furthermore, we enhance our model’s ability to preserve text strokes by incorporating a gated U-Net into the backbone network. The gated convolution mechanism allows the model to focus on the text region by combining gating values and features, facilitating the extraction of intricate text strokes. To maximize the effectiveness of our proposed model, we use a combination of the latent diffusion model loss and pixel-level loss, which aligns with the model’s structure. The experimental results on the Handwritten Document Image Binarization Contest and Document Image Binarization Contest benchmark datasets showcase the superior performance of our proposed model compared to existing methods.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Handwritten Text Recognition Techniques · Generative Adversarial Networks and Image Synthesis · Image Processing and 3D Reconstruction
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Industrial and Systems Engineering, Dongguk University, Seoul 04620, Republic of Korea
Funding
Ministry of Trade, Industry, and Energy (MOTIE) and the Korea Institute for the Advancement of Technology (KIAT)
References (56)
Show source-provided references
1. Sulaiman, A., Omar, K., and Nasrudin, M.F. (2019). Degraded historical document binarization: A review on issues, challenges, techniques, and future directions. J. Imaging, 5.10.3390/jimaging5040048 ↗
2. Farahmand, A., Sarrafzadeh, H., and Shanbehzadeh, J. (2013, January 21–23). Document image noises and removal methods. Proceedings of the International MultiConference of Engineers and Computer Scientists, Hong Kong, China.
3. Binarization of document images: A comprehensive review10.1088/1742-6596/1019/1/012023 ↗
4. Chauhan, S., Sharma, E., and Doegar, A. (2016, January 7–9). Binarization techniques for degraded document images—A review. Proceedings of the 2016 5th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), Noida, India.
5. Sauvola, J., Seppanen, T., Haapakoski, S., and Pietikainen, M. (1997, January 18–20). Adaptive document binarization. Proceedings of the Fourth International Conference on Document Analysis and Recognition, Ulm, Germany.
6. A threshold selection method from gray-level histograms10.1109/TSMC.1979.4310076 ↗
7. Niblack, W. (1985). An Introduction to Digital Image Processing, Strandberg Publishing Company.
8. DeepOtsu: Document enhancement and binarization using iterative deep learning10.1016/j.patcog.2019.01.025 ↗
9. Long, J., Shelhamer, E., and Darrell, T. (2015, January 7–12). Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298965 ↗
10. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany. Proceedings, Part III 18.
11. Westphal, F., Lavesson, N., and Grahn, H. (2018, January 24–27). Document image binarization using recurrent neural networks. Proceedings of the 2018 13th IAPR International Workshop on Document Analysis Systems (DAS), Vienna, Austria.10.1109/DAS.2018.71 ↗
12. Tensmeyer, C., and Martinez, T. (2017, January 9–15). Document image binarization with fully convolutional neural networks. Proceedings of the 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), Kyoto, Japan.10.1109/ICDAR.2017.25 ↗
13. Peng, X., Wang, C., and Cao, H. (2019, January 20–25). Document Binarization via Multi-resolutional Attention Model with DRD Loss. Proceedings of the 2019 International Conference on Document Analysis and Recognition (ICDAR), Sydney, Australia.10.1109/ICDAR.2019.00017 ↗
14. Binarization of degraded document images with global-local U-Nets10.1016/j.ijleo.2019.164025 ↗
15. Document image binarization with cascaded generators of conditional generative adversarial networks10.1016/j.patcog.2019.106968 ↗
16. Document image binarization using dual discriminator generative adversarial networks10.1109/LSP.2020.3003828 ↗
17. De-gan: A conditional generative adversarial network for document enhancement10.1109/TPAMI.2020.3022406 ↗
18. Two-stage generative adversarial networks for binarization of color document images10.1016/j.patcog.2022.108810 ↗
19. Diffusion models beat gans on image synthesis
20. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. (2022, January 19–24). High-resolution image synthesis with latent diffusion models. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01042 ↗
21. Denoising diffusion probabilistic models
22. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (November, January 27). Free-form image inpainting with gated convolution. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
23. Pratikakis, I., Zagoris, K., Barlas, G., and Gatos, B. (2016, January 23–26). ICFHR2016 handwritten document image binarization contest (H-DIBCO 2016). Proceedings of the 2016 15th International Conference on Frontiers in Handwriting Recognition (ICFHR), Shenzhen, China.10.1109/ICFHR.2016.0118 ↗
24. Pratikakis, I., Zagoris, K., Barlas, G., and Gatos, B. (2017, January 9–15). ICDAR2017 competition on document image binarization (DIBCO 2017). Proceedings of the 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), Kyoto, Japan.10.1109/ICDAR.2017.228 ↗
25. Pratikakis, I., Zagori, K., Kaddas, P., and Gatos, B. (2018, January 5–8). ICFHR 2018 Competition on Handwritten Document Image Binarization (H-DIBCO 2018). Proceedings of the 2018 16th International Conference on Frontiers in Handwriting Recognition (ICFHR), Niagara Falls, NY, USA.10.1109/ICFHR-2018.2018.00091 ↗
26. Pratikakis, I., Zagoris, K., Karagiannis, X., Tsochatzidis, L., Mondal, T., and Marthot-Santaniello, I. (2019, January 20–25). ICDAR 2019 Competition on Document Image Binarization (DIBCO 2019). Proceedings of the 2019 International Conference on Document Analysis and Recognition (ICDAR), Sydney, Australia.10.1109/ICDAR.2019.00249 ↗
27. Peng, X., Cao, H., and Natarajan, P. (2017, January 9–15). Using convolutional encoder-decoder for document image binarization. Proceedings of the 2017 14th IAPR international conference on document analysis and recognition (ICDAR), Kyoto, Japan.10.1109/ICDAR.2017.121 ↗
28. A selectional auto-encoder approach for document image binarization10.1016/j.patcog.2018.08.011 ↗
29. Complex image processing with less data—Document image binarization by integrating multiple pre-trained U-Net modules10.1016/j.patcog.2020.107577 ↗
30. Binarization of degraded document images using convolutional neural networks and wavelet-based multichannel images10.1109/ACCESS.2020.3017783 ↗
31. Isola, P., Zhu, J.Y., Zhou, T., and Efros, A.A. (2017, January 21–26). Image-to-image translation with conditional adversarial networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.632 ↗
32. Lin, Y.S., Ju, R.Y., Chen, C.C., Lin, T.Y., and Chiang, J.S. (2022). Three-stage binarization of color document images based on discrete wavelet transform and generative adversarial networks. arXiv.
33. Song, J., Meng, C., and Ermon, S. (2020). Denoising diffusion implicit models. arXiv.
34. Wolleb, J., Sandkühler, R., Bieder, F., Valmaggia, P., and Cattin, P.C. (2022, January 6–8). Diffusion models for implicit image segmentation ensembles. Proceedings of the International Conference on Medical Imaging with Deep Learning, PMLR, Zurich, Switzerland.
35. Kim, B., Oh, Y., and Ye, J.C. (2022). Diffusion adversarial representation learning for self-supervised vessel segmentation. arXiv.
36. Chen, S., Sun, P., Song, Y., and Luo, P. (2022). Diffusiondet: Diffusion model for object detection. arXiv.
37. Duan, Y., Guo, X., and Zhu, Z. (2023). Diffusiondepth: Diffusion denoising approach for monocular depth estimation. arXiv.
38. Li, X., Zhao, H., Han, L., Tong, Y., Tan, S., and Yang, K. (2020, January 7–12). Gated fully fusion for semantic segmentation. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.
39. Wang, H., Wang, Y., Zhang, Q., Xiang, S., and Pan, C. (2017). Gated convolutional neural network for semantic segmentation in high-resolution images. Remote Sens., 9.10.3390/rs9050446 ↗
40. Dauphin, Y.N., Fan, A., Auli, M., and Grangier, D. (2017, January 6–11). Language modeling with gated convolutional networks. Proceedings of the International Conference on Machine Learning, PMLR, Sydney, Australia.
41. Lin, X., Ma, L., Liu, W., and Chang, S.F. (2020, January 23–28). Context-gated convolution. Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK. Proceedings, Part XVIII 16.10.1007/978-3-030-58523-5_41 ↗
42. Zhang, Y., Fang, J., Chen, Y., and Jia, L. (2022). Edge-aware U-net with gated convolution for retinal vessel segmentation. Biomed. Signal Process. Control, 73.10.1016/j.bspc.2021.103472 ↗
43. Kwon, M., Jeong, J., and Uh, Y. (2022). Diffusion models already have a semantic latent space. arXiv.
44. Esser, P., Rombach, R., and Ommer, B. (2021, January 20–25). Taming transformers for high-resolution image synthesis. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01268 ↗
45. Pratikakis, I., Gatos, B., and Ntirogiannis, K. (2010, January 16–18). H-DIBCO 2010-handwritten document image binarization competition. Proceedings of the 2010 12th International Conference on Frontiers in Handwriting Recognition, Kolkata, India.10.1109/ICFHR.2010.118 ↗
46. Pratikakis, I., Gatos, B., and Ntirogiannis, K. (2012, January 18–20). ICFHR 2012 competition on handwritten document image binarization (H-DIBCO 2012). Proceedings of the 2012 International Conference on Frontiers in Handwriting Recognition, Bari, Italy.10.1109/ICFHR.2012.216 ↗
47. Ntirogiannis, K., Gatos, B., and Pratikakis, I. (2014, January 1–4). ICFHR2014 competition on handwritten document image binarization (H-DIBCO 2014). Proceedings of the 2014 14th International Conference on Frontiers in Handwriting Recognition, Hersonissos, Greece.10.1109/ICFHR.2014.141 ↗
48. Gatos, B., Ntirogiannis, K., and Pratikakis, I. (2009, January 26–29). ICDAR 2009 document image binarization contest (DIBCO 2009). Proceedings of the 2009 10th International Conference on Document Analysis and Recognition, Barcelona, Spain.10.1109/ICDAR.2009.246 ↗
49. Pratikakis, I., Gatos, B., and Ntirogiannis, K. (2011, January 18–21). ICDAR 2011 Document Image Binarization Contest (DIBCO 2011). Proceedings of the 2011 International Conference on Document Analysis and Recognition, Beijing, China.10.1109/ICDAR.2011.299 ↗
50. Pratikakis, I., Gatos, B., and Ntirogiannis, K. (2013, January 25–28). ICDAR 2013 document image binarization contest (DIBCO 2013). Proceedings of the 2013 12th International Conference on Document Analysis and Recognition, Washington, DC, USA.10.1109/ICDAR.2013.219 ↗
51. Deng, F., Wu, Z., Lu, Z., and Brown, M.S. (2010, January 21). Binarizationshop: A user-assisted software suite for converting old documents to black-and-white. Proceedings of the 10th Annual Joint Conference on Digital Libraries, Gold Coast, Australia.10.1145/1816123.1816161 ↗
52. Nafchi, H.Z., Ayatollahi, S.M., Moghaddam, R.F., and Cheriet, M. (2013, January 25–28). An efficient ground truthing tool for binarization of historical manuscripts. Proceedings of the 2013 12th International Conference on Document Analysis and Recognition, Washington, DC, USA.10.1109/ICDAR.2013.165 ↗
53. Historical document image restoration using multispectral imaging system10.1016/j.patcog.2012.12.015 ↗
54. Loshchilov, I., and Hutter, F. (2017). Decoupled weight decay regularization. arXiv.
55. Performance evaluation methodology for historical document image binarization10.1109/TIP.2012.2219550 ↗
56. Distance-reciprocal distortion measure for binary document images10.1109/LSP.2003.821748 ↗