IDEAS home Printed from https://ideas.repec.org/a/hin/complx/6641329.html
   My bibliography  Save this article

CAPTCHA Recognition Method Based on CNN with Focal Loss

Author

Listed:
  • Zhong Wang
  • Peibei Shi
  • M. Irfan Uddin

Abstract

In order to distinguish between computers and humans, CAPTCHA is widely used in links such as website login and registration. The traditional CAPTCHA recognition method has poor recognition ability and robustness to different types of verification codes. For this reason, the paper proposes a CAPTCHA recognition method based on convolutional neural network with focal loss function. This method improves the traditional VGG network structure and introduces the focal loss function to generate a new CAPTCHA recognition model. First, we perform preprocessing such as grayscale, binarization, denoising, segmentation, and annotation and then use the Keras library to build a simple neural network model. In addition, we build a terminal end-to-end neural network model for recognition for complex CAPTCHA with high adhesion and more interference pixel. By testing the CNKI CAPTCHA, Zhengfang CAPTCHA, and randomly generated CAPTCHA, the experimental results show that the proposed method has a better recognition effect and robustness for three different datasets, and it has certain advantages compared with traditional deep learning methods. The recognition rate is 99%, 98.5%, and 97.84%, respectively.

Suggested Citation

  • Zhong Wang & Peibei Shi & M. Irfan Uddin, 2021. "CAPTCHA Recognition Method Based on CNN with Focal Loss," Complexity, Hindawi, vol. 2021, pages 1-10, January.
  • Handle: RePEc:hin:complx:6641329
    DOI: 10.1155/2021/6641329
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/complexity/2021/6641329.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/complexity/2021/6641329.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2021/6641329?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hin:complx:6641329. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.