Manuscript Offprint
arXiv:2610.13387Radiomics-Based Thyroid Nodule Classification with Label-Conditional Conformal Prediction
Abstract
Thyroid nodule malignancy assessment relies on ultrasound imaging, yet current risk stratification systems suffer from substantial interobserver variability, contributing to a high rate of unnecessary biopsies. We propose a radiomics-based framework combining quantitative feature extraction via PyRadiomics with a Generalized Additive Model (GAM) classifier, selected among six candidates for its favorable trade-off between discriminative performance and interpretability. To complement point predictions with uncertainty estimates, Cross-Conformal Prediction with label-conditional guarantees is applied, flagging ambiguous cases for clinical review rather than forcing a binary decision. Experiments are conducted on TN5000, a publicly available ultrasound dataset of thyroid nodules. After Spearman correlation filtering, 36 features are retained and the GAM achieves an AUC of 0.89, a sensitivity of 0.83, and a specificity of 0.82 on the validation set. At a significance level , selected to ensure empirical coverage guarantees on both classes, 63% of nodules on the test set receive a certain (i.e., single-label) prediction, with conditional precision of 0.94 for certain malignant and conditional Negative Predictive Value (NPV) of 0.73 for certain benign cases, while the remaining 37% are referred to the clinician.
Keywords: Thyroid Nodule Classification, Ultrasound Imaging, Radiomics, Generalized Additive Model, Conformal Prediction
1 Introduction
Thyroid cancer is one of the most prevalent endocrine malignancies, with an increasing incidence worldwide . Diagnosis relies primarily on ultrasound (US) imaging, which is used to assess nodule characteristics and guide biopsy decisions. However, current practice leads to a high rate of unnecessary biopsies, with at least half of those performed proving to be benign . Existing
Accepted at the CIBB 2026 conference (https://cibb2026.teralab.ai/).
risk stratification systems such as ACR TI-RADS [2] rely on qualitative visual assessment, introducing interobserver variability and limiting diagnostic reliability.
Radiomics [3] has emerged as a promising complementary approach, enabling operator-independent extraction of quantitative imaging features from US images. Combined with machine learning classifiers, radiomics-based models have shown competitive diagnostic performance for thyroid nodule classification [4], with tools such as PyRadiomics [5] providing standardized and reproducible feature extraction in this domain [6]. However, two critical limitations persist in existing approaches: limited interpretability, and the absence of predictive uncertainty quantification, both essential for clinical adoption.
To address these limitations, we propose a framework that evaluates multiple machine learning classifiers on radiomic features extracted via PyRadiomics from the publicly available TN5000 dataset [7], selecting the model that best balances discriminative performance and interpretability. We further integrate Cross-Conformal Prediction with label-conditional coverage guarantees to provide formal uncertainty quantification [8], allowing the model to explicitly flag diagnostically uncertain cases rather than forcing a hard binary classification.
2.1 TN5000 Dataset
All experiments were conducted on TN5000 [7], a publicly available dataset comprising 5000 US images of thyroid nodules, annotated with biopsy-confirmed labels and bounding box coordinates by expert radiologists. Focusing exclusively on classification, images were cropped to the bounding box annotations prior to feature extraction, restricting radiomic feature computation to the nodule region of interest (ROI), as shown in Figure 1.

(a) Benign

(b) Malignant
Figure 1: Representative US images from TN5000. Bounding boxes indicate the annotated nodule ROI used for radiomic feature extraction (blue: benign, red: malignant).
We adopted the official training/validation/test split provided with the dataset, yielding 3500 training, 500 validation, and 1000 test images, with approximately 71% malignant and 29% benign cases in the training set, which was taken into account during model training.
2.2 Radiomic Feature Extraction
Radiomic features were extracted from each nodule ROI using PyRadiomics v3.1.0 [5], an open-source Python library for standardized radiomic feature computation. Since all images are two-dimensional US scans, extraction was configured in 2D mode with prior intensity normalization and a bin width of 25 for discretization, consistent with the PyRadiomics default. A total of 102 features were extracted from seven feature families: First Order Statistics (18), Shape-based 2D (9), Gray Level Co-occurrence Matrix (GLCM, 24), Gray Level Run Length Matrix (GLRLM, 16), Gray Level Size Zone Matrix (GLSZM, 16), Neighbouring Gray Tone Difference Matrix (NGTDM, 5), and Gray Level Dependence Matrix (GLDM, 14).
2.3 Feature Selection and Standardization
Given the well-known redundancy of radiomic features [9], we applied a Spearman correlation-based filter, which captures monotonic relationships without assuming linearity. For each pair of features with , one was removed [10], yielding 36 features from five of the original seven families: First Order Statistics (12), GLCM (12), GLRLM (7), NGTDM (3), and Shape-based 2D (2). Features from the GLSZM and GLDM families were entirely removed, indicating high redundancy with the retained ones. The retained features were then standardized using z-score normalization applied separately for each feature, with mean and standard deviation estimated on the training set and applied to validation and test sets.
2.4 Classification
Six classifiers were evaluated on the retained 36 features: Logistic Regression with LASSO penalization (LR-LASSO), Generalized Additive Model (GAM), Random Forest, Extra Trees, XGBoost, and a Multi-Layer Perceptron (MLP) with two hidden layers. All models were trained with class weights proportional to the inverse class frequency to address class imbalance, and subsequently compared on the validation set using the Area Under the ROC Curve (AUC), sensitivity, specificity, precision, negative predictive value (NPV), and F1-score.
2.5 Label-Conditional Cross-Conformal Prediction
To quantify predictive uncertainty, we applied Cross-Conformal Prediction (CCP) [8], a framework that produces prediction sets with guaranteed coverage without distributional assumptions. CCP extends split conformal prediction via K-fold cross validation: the classifier is trained K times on K - 1 folds, conformity scores are computed on the held-out fold, using the full training set as calibration set, which in our case corresponds to the merged training and validation sets (4000 US images). Following [8], the computation of the conformity scores is based on the log-odds of the classifier output:
Given the class imbalance in TN5000, we adopted the Label-Conditional Cross-Conformal Prediction (CCCP), which guarantees coverage separately for each class: . The prediction set for each test image is defined as:
where the label-conditional p-values are:
where is the conformity score of calibration example in fold , computed using the model trained on all remaining folds ; is the conformity score of the test example under assumed label , computed using the same model. In our binary setting, this yields four possible prediction sets for each test image: certain benign , certain malignant , uncertain , or empty .
3 Results
3.1 Classifier Selection
The performance metrics of the six classifiers on the validation set are reported in Table 1. All models achieved comparable AUC values ( ), consistent with the performance reported in the radiomics literature for thyroid nodule classification [4]. However, substantial differences emerged in sensitivity and specificity. Tree-based ensemble methods and MLP achieved high sensitivity (up to 0.95 for Extra Trees) and NPV at the cost of low specificity (as low as 0.51), indicating a tendency to over-predict the predominant class of malignancy despite class weighting. XGBoost partially mitigated this imbalance (0.72 specificity), but remained inferior to LR-LASSO and GAM, which achieved the best sensitivity-specificity trade-off. Between the two, the GAM outperformed LR-LASSO in all metrics: sensitivity (0.83 vs 0.80), specificity (0.82 vs 0.78), precision (0.93 vs 0.91), and NPV (0.62 vs 0.56). The GAM was therefore selected as the final classifier for its best sensitivity-specificity trade-off and native interpretability, modeling the log-odds of malignancy as a sum of smooth spline functions of individual features [11].
3.2 GAM Feature Importance and Interpretation
Unlike black-box models, the GAM allows direct inspection of each feature's contribution to the predicted malignancy probability. To identify the most influential features, we applied permutation importance, a model-agnostic method that measures the decrease in predictive
Table 1: Classifier comparison on the validation set. Performance metrics on the six evaluated models; bold values indicate the best performance per metric.
| Model | AUC | Sensitivity | Specificity | Precision | NPV | F1 |
|---|---|---|---|---|---|---|
| LR-LASSO | 0.88 | 0.80 | 0.78 | 0.91 | 0.56 | 0.85 |
| GAM | 0.89 | 0.83 | 0.82 | 0.93 | 0.62 | 0.88 |
| XGBoost | 0.88 | 0.85 | 0.72 | 0.90 | 0.62 | 0.88 |
| Random Forest | 0.88 | 0.94 | 0.55 | 0.86 | 0.76 | 0.90 |
| Extra Trees | 0.88 | 0.95 | 0.51 | 0.85 | 0.77 | 0.90 |
| MLP | 0.89 | 0.93 | 0.62 | 0.88 | 0.75 | 0.91 |
Table 2: Permutation importance of the top 10 features. Features are ranked in descending order of mean AUC decrease over 50 repetitions; standard deviation is reported across repetitions.
| Feature | Mean AUC Decrease | Standard Deviation |
|---|---|---|
| Mean (First Order) | 0.297 | 0.018 |
| Major Axis Length (Shape2D) | 0.258 | 0.022 |
| Entropy (First Order) | 0.251 | 0.018 |
| Autocorrelation (GLCM) | 0.237 | 0.017 |
| Short Run High Gray Level Emphasis (GLRLM) | 0.180 | 0.016 |
| Variance (First Order) | 0.161 | 0.014 |
| Inverse Difference Moment Normalized (GLCM) | 0.137 | 0.016 |
| Elongation (Shape2D) | 0.128 | 0.017 |
| Difference Average (GLCM) | 0.122 | 0.015 |
| Inverse Variance (GLCM) | 0.094 | 0.016 |
performance when each feature is randomly permuted. AUC was used as the performance metric over 50 repetitions, given the class imbalance in the dataset, with results reported in Table 2.
Following the clinically anchored radiomics dictionary of Salmanpour et al. [6], three of our top features (Mean, Entropy, and Elongation) could be directly linked to ACR TI-RADS semantic descriptors [2], and their corresponding partial dependence plots (PDPs) are shown in Figure 2. Mean maps to the echogenicity descriptor: lower mean pixel intensity is associated with higher malignancy probability in hypoechoic nodules. Entropy maps to the composition descriptor: solid heterogeneous nodules produce more complex intensity distributions, raising entropy and malignancy risk. Elongation quantifies the taller-than-wide shape descriptor: values above unity highlight vertical growth associated with higher malignancy risk.
3.3 CCCP Results
The results of the label-conditional cross-conformal prediction are summarized in Table 3. CCCP was applied with calibration folds across six significance levels in the range . Among the evaluated levels, was the largest value in the considered range achieving

Figure 2: Partial dependence plots of the three clinically interpretable features. Each plot shows the GAM spline , the contribution of that feature to the log-odds of malignancy, with 95% confidence band. A positive supports malignancy; a negative value supports benignity.
Table 3: CCCP results for GAM across . Coverage and efficiency metrics on the test set (, ). Bold indicates the selected significance level. Benign coverage below target.
| Tot. Cov. | Ben. Cov. | Mal. Cov. | Uncert. rate | Cond. NPV | Cond. Prec. | |
|---|---|---|---|---|---|---|
| 0.05 | 0.95 | 0.96 | 0.95 | 0.57 | 0.77 | 0.96 |
| 0.06 | 0.94 | 0.94 | 0.94 | 0.51 | 0.75 | 0.95 |
| 0.07 | 0.93 | 0.93 | 0.93 | 0.46 | 0.75 | 0.94 |
| 0.08 | 0.92 | 0.91 | 0.92 | 0.41 | 0.73 | 0.94 |
| 0.09 | 0.92 | 0.91 | 0.92 | 0.37 | 0.73 | 0.94 |
| 0.10 | 0.90 | 0.91 | 0.33 | 0.71 | 0.93 |
label-conditional coverage on both classes (0.91 benign, 0.92 malignant), and was therefore selected as the operating significance level. At , benign coverage dropped to 0.89, falling below target, possibly due to class imbalance. No empty prediction sets were observed. As expected, the uncertainty rate decreased monotonically with increasing , from 0.57 at to 0.33 at . At , 37% of cases received a double label and were left to the clinician, while the remaining 63% received a certain prediction (single-label). Among certain predictions, conditional precision was consistently high (0.93 – 0.96), while conditional NPV was lower (0.71 – 0.77), likely attributable to class imbalance. Overall, the high conditional precision indicates that the framework may reliably support biopsy recommendations for certain malignant cases, while the lower conditional NPV reflects greater difficulty in excluding malignancy.
4 Conclusion
This work proposed a radiomics-based pipeline for thyroid nodule malignancy classification, integrating a GAM classifier, selected among six candidates for its best trade-off between discrim-inative performance and interpretability, with label-conditional cross-conformal prediction for statistically guaranteed uncertainty quantification. The GAM achieved competitive classification performance and conformal prediction provided clinically relevant uncertainty estimates, supporting high-confidence malignancy predictions while referring ambiguous cases to the clinician.
Class imbalance emerged as the main limiting factor, affecting classifier specificity and NPV, and preventing label-conditional coverage at for the underrepresented benign class. At , the model achieved high conditional precision but lower conditional NPV, and 37% of cases were left to the clinician, suggesting that the framework only partially addresses the problem of reducing unnecessary biopsies. The reliance on a single dataset further limited the generalizability of these results to different acquisition settings and patient populations. Additionally, radiomic features were extracted from bounding box crops rather than precise nodule segmentations, which may introduce noise from surrounding thyroid tissue and limit feature accuracy.
As a work in progress, future developments will focus on addressing class imbalance both at the classifier training stage and through conformal prediction methods more robust to skewed classes. Further directions will include multi-dataset validation, integration of nodule segmentation prior to feature extraction, and deeper clinical interpretation of radiomic features.
Conflict of interests
The authors have no conflicts of interest to disclose.
Availability of data and software code
Our software code is available at the following URL:
https://github.com/laura-testa/thyroid-radiomics-cp
The TN5000 dataset is available at the following URL:
https://figshare.com/s/cb6a67f17c04b29e7edd.
References
[1] Giorgio Grani, Livia Lamartina, Valeria Ascoli, et al. Reducing the number of unnecessary thyroid biopsies while improving diagnostic accuracy: Toward the “right” tirads. The Journal of Clinical Endocrinology & Metabolism, 104(1):95–102, 01 2019.
[2] Franklin N. Tessler, William D. Middleton, Edward G. Grant, et al. ACR thyroid imaging, reporting and data system (TI-RADS): White paper of the ACR TI-RADS committee. Journal of the American College of Radiology, 14(5):587–595, 2017.
[3] Philippe Lambin, Emmanuel Rios-Velazquez, Ralph Leijenaar, et al. Radiomics: Extracting more information from medical images using advanced feature analysis. European Journal of Cancer, 48(4):441–446, 2012.
[4] Eoin F. Cleere, Michael G. Davey, Sinead O'Neill, et al. Radiomic detection of malignancy within thyroid nodules using ultrasonography—A systematic review and meta-analysis. Diagnostics, 12(4):794, 2022.
[5] Joost van Griethuysen, Andrey Fedorov, Chintan Parmar, et al. Computational radiomics system to decode the radiographic phenotype. Cancer Research, 77:e104–e107, 10 2017.
[6] Mohammad Salmanpour, Shahram Taeb, Ali Fathi Jouzdani, et al. A clinically anchored radiomics dictionary for explainable ti-rads-based thyroid nodule classification in ultrasound; dictionary version tu1.0, 2026.
[7] Huan Zhang, Qianglin Liu, Xiaolin Han, et al. Tn5000: An ultrasound image dataset for thyroid nodule detection and classification. Scientific Data, 12, 08 2025.
[8] Vladimir Vovk. Cross-conformal predictors. Annals of Mathematics and Artificial Intelligence, 74(1):9–28, 2015.
[9] Stephen Yip and Hugo Aerts. Applications and limitations of radiomics. Physics in Medicine and Biology, 61:R150–R166, 06 2016.
[10] Wyanne A. Noortman, Dennis Vriens, Johan Bussink, et al. Multicollinearity and redundancy of the pet radiomic feature set. European Radiology, 35(11):6905 – 6916, 2025.
[11] Trevor Hastie and Robert Tibshirani. Generalized additive models. Statistical Science, 1(3):297–310, 1986.