Style Transfer and Topological Feature Analysis of Text-Based CAPTCHA via Generative Adversarial Networks
Tao Xue (),
Zixuan Guo,
Zehang Yin and
Yu Rong
Additional contact information
Tao Xue: School of Information Engineering, China University of Geosciences (Beijing), Beijing 100083, China
Zixuan Guo: School of Information Engineering, China University of Geosciences (Beijing), Beijing 100083, China
Zehang Yin: Faculty of Science, The University of Sydney, Sydney, NSW 2006, Australia
Yu Rong: School of Information Engineering, China University of Geosciences (Beijing), Beijing 100083, China
Mathematics, 2025, vol. 13, issue 11, 1-16
Abstract:
The design and cracking of text-based CAPTCHAs are important topics in computer security. This study proposes a method for the style transfer of text-based CAPTCHAs using Generative Adversarial Networks (GANs). First, a curated dataset was used, combining a text-based CAPTCHA library and image collections from four artistic styles—Van Gogh, Monet, Cézanne, and Ukiyo-e—which were used to generate style-based text CAPTCHA samples. Subsequently, a universal style transfer model, along with trained CycleGAN models for both single- and double-style transfers, were employed to generate style-enhanced text-based CAPTCHAs. Traditional methods for evaluating the anti-recognition capability of text-based CAPTCHAs primarily focus on recognition success rates. This study introduces topological feature analysis as a new method for evaluating text-based CAPTCHAs. Initially, the recognition success rates of the three methods across four styles were evaluated using Muggle-OCR. Subsequently, the graph diameter was employed to quantify the differences between text-based CAPTCHA images before and after style transfer. The experimental results demonstrate that the recognition rates of style-enhanced text-based CAPTCHAs are consistently lower than those of the original CAPTCHA, suggesting that style transfer enhances anti-recognition capability. Topological feature analysis indicates that style transfer results in a more compact topological structure, further validating the effectiveness of the GAN-based twice-transfer method in enhancing CAPTCHA complexity and anti-recognition capability.
Keywords: generative adversarial networks; text-based captcha; style transfer; topological feature analysis; graph; diameter; anti-recognition capability (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2227-7390/13/11/1861/pdf (application/pdf)
https://www.mdpi.com/2227-7390/13/11/1861/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:13:y:2025:i:11:p:1861-:d:1670476
Access Statistics for this article
Mathematics is currently edited by Ms. Emma He
More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().