Skip to main content
QUICK REVIEW

[Paper Review] Comparison of Deep Learning and Traditional Machine Learning Techniques for Classification of Pap Smear Images

Abdurrahim Yılmaz, Ali Anıl Demirçalı|arXiv (Cornell University)|Sep 11, 2020
AI in cancer detectionComputer Science14 citations
TL;DR

This study compares traditional machine learning (e.g., XGBoost, kNN) and deep learning (CNN) for classifying normal and abnormal cervical cells in Pap smear images from the Herlev dataset. Using Google Colab with TensorFlow and scikit-learn, the CNN achieved 93% test accuracy—significantly outperforming the best traditional method (XGBoost and kNN at 85%)—while automatically learning features from raw images without manual feature engineering.

ABSTRACT

A comprehensive study on machine and deep learning techniques for classification of normal and abnormal cervical cells by using pap smear images from Herlev dataset results are presented. This dataset includes 917 images and 7 different classes. All techniques used in this study are modeled by using Google Colab platform with scikit-learn and Keras library inside TensorFlow. In the first study, traditional machine learning methods such as logistic regression, k-Nearest Neighbors (kNN), Support Vector Machine (SVM), Decision Tree, Random Forest and eXtreme Gradient Boosting (XGBoost) are used and compared with each other to find binary classification as normal and abnormal cervical cells. Better results are observed by XGBoost and kNN classifiers among the others with an accuracy of 85%. In the second study, a deep learning model based on Convolutional Neural Network(CNN) is used for the same dataset. Accordingly, accuracies of 99% and 93% are obtained for the training and the test dataset, respectively. In this model, it takes 50 epochs to have these accuracies within 20 minutes of computational time.

Motivation & Objective

  • To evaluate and compare the performance of traditional machine learning and deep learning models in classifying normal and abnormal cervical cells from Pap smear images.
  • To assess the impact of hyperparameter optimization and feature engineering on model accuracy using the Herlev dataset.
  • To demonstrate the efficiency and effectiveness of training deep learning models on Google Colab for medical image classification tasks.
  • To evaluate whether end-to-end feature learning in CNNs outperforms hand-crafted features in traditional ML methods for cervical cancer screening.
  • To provide a benchmark for future research by reporting reproducible results using the same dataset and evaluation metrics.

Proposed method

  • Trained and compared seven traditional machine learning models: logistic regression, k-NN, SVM, Naive Bayes, decision tree, random forest, and XGBoost on 917 labeled Pap smear images from the Herlev dataset.
  • Implemented a custom Convolutional Neural Network (CNN) using Keras and TensorFlow in Google Colab, with no transfer learning or pretraining.
  • Used 64×64 pixel resized images and trained the CNN for 50 epochs, achieving high performance with minimal manual feature engineering.
  • Evaluated all models using standard metrics: accuracy, recall, precision, specificity, and F1-score, computed via scikit-learn.
  • Optimized hyperparameters for each model through systematic tuning, with computational time measured at ~20 minutes for the CNN and ~20 seconds for 1000 hyperparameter combinations in traditional ML.
  • Converted the original 7-class classification problem into a binary classification task (normal vs. abnormal) by combining mild, moderate, severe dysplasia, and carcinoma-in-situ as abnormal.

Experimental results

Research questions

  • RQ1How do traditional machine learning models (e.g., XGBoost, kNN) perform in classifying normal and abnormal cervical cells from Pap smear images compared to deep learning models?
  • RQ2What is the impact of hyperparameter optimization on the performance of machine learning models for this medical image classification task?
  • RQ3Can a custom CNN model achieve high accuracy without transfer learning or pretraining on the Herlev dataset?
  • RQ4How does the automatic feature extraction capability of CNNs compare to hand-crafted features used in traditional machine learning?
  • RQ5What is the computational efficiency of training these models on Google Colab, and how does it affect model development speed?

Key findings

  • The XGBoost and k-Nearest Neighbors (kNN) classifiers achieved the highest accuracy among traditional machine learning models at 85% on the test set.
  • The custom Convolutional Neural Network (CNN) achieved 99% accuracy on the training set and 93% accuracy on the test set, significantly outperforming all traditional models.
  • The CNN model achieved 96% precision, 93% recall, 95% F1-score, and 89% specificity on the test set, indicating strong generalization and robustness.
  • Despite using only 64×64 pixel images and no transfer learning, the CNN model achieved near-state-of-the-art performance, outperforming prior studies that used complex preprocessing and feature extraction.
  • The entire training pipeline, including hyperparameter tuning and model evaluation, was completed efficiently in under 20 minutes on Google Colab, demonstrating its utility for rapid prototyping.
  • The study confirms that deep learning models with end-to-end feature learning can surpass traditional machine learning methods in accuracy and consistency for Pap smear image classification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.