Deep Convolutional Neural Network for Accurate Classification of Myofibroblastic Lesions on Patch-Based Images

Head Neck Pathol. 2024 Oct 28;18(1):117. doi: 10.1007/s12105-024-01723-5.

Abstract

Objective: This study aimed to implement and evaluate a Deep Convolutional Neural Network for classifying myofibroblastic lesions into benign and malignant categories based on patch-based images.

Methods: A Residual Neural Network (ResNet50) model, pre-trained with weights from ImageNet, was fine-tuned to classify a cohort of 20 patients (11 benign and 9 malignant cases). Following annotation of tumor regions, the whole-slide images (WSIs) were fragmented into smaller patches (224 × 224 pixels). These patches were non-randomly divided into training (308,843 patches), validation (43,268 patches), and test (42,061 patches) subsets, maintaining a 78:11:11 ratio. The CNN training was caried out for 75 epochs utilizing a batch size of 4, the Adam optimizer, and a learning rate of 0.00001.

Results: ResNet50 achieved an accuracy of 98.97%, precision of 99.91%, sensitivity of 97.98%, specificity of 99.91%, F1 score of 98.94%, and AUC of 0.99.

Conclusions: The ResNet50 model developed exhibited high accuracy during training and robust generalization capabilities in unseen data, indicating nearly flawless performance in distinguishing between benign and malignant myofibroblastic tumors, despite the small sample size. The excellent performance of the AI model in separating such histologically similar classes could be attributed to its ability to identify hidden discriminative features, as well as to use a wide range of features and benefit from proper data preprocessing.

Keywords: Convolutional neural network; Deep learning; Low grade myofibroblastic sarcoma; Myofibroblastic lesions; Myofibroma; Patch-based.

MeSH terms

  • Deep Learning
  • Head and Neck Neoplasms / classification
  • Head and Neck Neoplasms / pathology
  • Humans
  • Image Interpretation, Computer-Assisted / methods
  • Neural Networks, Computer*
  • Sensitivity and Specificity