Thyroid Nodule Detection and Classification on Small Datasets: An Ensemble Deep Learning Approach with Attention Mechanism and Focal Loss
Wei-Chen Hung, Yi-Kai Chang, Chih-Ming Chang, Po-Wen Cheng, Wu-Chia Lo, Ping-Chia Cheng, Li-Jen Liao

TL;DR
This paper introduces a deep learning framework for thyroid nodule classification using attention mechanisms and focal loss to address limited data and class imbalance.
Contribution
The novel contribution is an ensemble deep learning approach combining YOLO-based detection and ResNet18 with attention for thyroid nodule classification on small datasets.
Findings
The model achieved 85.4% accuracy on the independent test set with high sensitivity and specificity.
External validation showed 77.8% accuracy, indicating good generalizability despite limited data.
The lightweight ResNet18 outperformed deeper networks on small medical datasets.
Abstract
Background: Thyroid nodule classification on ultrasound remains challenging due to limited labeled data and marked class imbalance. This study proposes an integrated deep learning framework combining YOLO-based region-of-interest detection with an enhanced ResNet18 classifier. Methods: A total of 522 thyroid ultrasound images from 522 patients examined between July 2020 and June 2024 were included. The dataset comprised 467 images for training (399 benign, 68 malignant), 41 for independent testing (19 benign, 22 malignant), and 14 for internal validation (4 benign, 10 malignant). An external validation set of 36 images (22 benign, 14 malignant) was collected from online sources. ResNet18 with a convolutional block attention module was used to enhance feature extraction. To address small sample size and class imbalance, the training pipeline incorporated focal loss, weighted random…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsThyroid Cancer Diagnosis and Treatment · AI in cancer detection · Artificial Intelligence in Healthcare and Education
