Research Article

Swin Transformer–Driven Cervical Cell Classification with Explainable AI and Web-Based Screening

Authors

  • Mostafizur Rahman Shakil Department of Engineering Management, Westcliff University, Irvine, CA 92614, USA
  • Asif Hassan Malik Department of Chemistry, York College, The City University of New York (CUNY), Jamaica, NY 11451, USA
  • Md Ismail Hossain Siddiqui Department of Engineering Management, Westcliff University, Irvine, CA 92614, USA
  • Shahriar Ahmed School of Business, International American University, 3440 Wilshire Blvd STE 1000, Los Angeles, CA 90010, USA
  • Md Rashel Miah Department of Business Administration, Westcliff University, Irvine, CA 92614, USA
  • Ahmed Ali Linkon Department of Computer Science, Westcliff University, Irvine, CA 92614, USA

Abstract

Accurate interpretation of cervical cytology images is essential for effective cervical cancer screening, yet manual assessment is time-consuming and subject to observer variability. This paper presents a transformer-based deep learning framework for automated cervical cell classification using Pap smear images. We conduct a systematic evaluation of modern attention-driven architectures, including MaxViT, Swin Transformer, EfficientFormer, and HorNet, under a unified preprocessing and training pipeline designed to handle staining variability and class imbalance. To enhance model transparency and clinical trust, explainable AI is integrated via Grad-CAM, enabling visual localization of cytomorphological regions that drive model decisions. Experiments on the Herlev and SIPaKMeD datasets demonstrate that the proposed Swin Transformer achieves superior and consistent performance, reaching 99.27% accuracy on Herlev and 98.82% accuracy on SIPaKMeD, with high MCC and PR-AUC values. In addition, a lightweight web-based application is developed to support dataset selection, real-time inference, confidence reporting, and visual explanation. The results confirm that hierarchical transformer architectures can deliver accurate, interpretable, and deployable solutions for computer-aided cervical cancer screening.

Article information

Journal

Journal of Medical and Health Studies

Volume (Issue)

7 (5)

Pages

25-35

Published

2026-03-08

How to Cite

Mostafizur Rahman Shakil, Asif Hassan Malik, Md Ismail Hossain Siddiqui, Shahriar Ahmed, Md Rashel Miah, & Ahmed Ali Linkon. (2026). Swin Transformer–Driven Cervical Cell Classification with Explainable AI and Web-Based Screening . Journal of Medical and Health Studies, 7(5), 25-35. https://doi.org/10.32996/jmhs.2026.7.5.5

Downloads

Views

37

Downloads

6

Keywords:

Cervical cancer screening, Pap smear images, vision transformers, deep learning, explainable AI, Grad-CAM, medical image analysis