MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1186/s12880-026-02526-6

Медицинская библиотека · BMC medical imaging · 2026

Multimodal deep learning for papillary thyroid carcinoma diagnosis using ultrasound and cytology.

Kalejahi Behnam Kiani, Rajabi Mohammad Javad

СтатьяПеревод пока не подготовлен

Аннотация

BACKGROUND AND

OBJECTIVE

Papillary thyroid carcinoma (PTC) is the most common thyroid malignancy, and pre-operative diagnosis depends on integrating ultrasound (US) imaging with fine-needle aspiration cytology (FNAC). Pang et al. (2025) recently released a paired US/cytology dataset and demonstrated that classical radiomics combined with classifiers such as support vector machines, random forests, and XGBoost can reach AUROC ≈ 0.99 on a single random split. We re-examine this result under a stricter evaluation protocol and contribute a calibrated multimodal deep learning model for PTC diagnosis.

METHODS

Using 384 patients from the Pang cohort (220 PTC, 164 benign) we created a stratified, untouched 20% holdout (n = 77). On the development set (n = 307) we performed 5-fold cross-validation and trained a multimodal model (v2) combining a ConvNeXt-Tiny ultrasound encoder, a domain-pretrained CTransPath cytology encoder, gated-attention multiple-instance learning (MIL) over cytology patches, and bidirectional cross-attention fusion. We compared this against a self-attention multimodal baseline (v1), unimodal ablations, and a modified Pang-style classical comparator that, because lesion masks were not released with the public dataset, used whole-image radiomics-style features rather than ROI-based features. Evaluation included bootstrap and Wilson confidence intervals, paired DeLong tests, McNemar tests, and a four-method calibration analysis (none, temperature, Platt, isotonic) using ensemble out-of-fold predictions and equal-mass binning.

RESULTS

Multimodal v2 achieved holdout AUROC 0.977 (95% CI 0.949-0.996), Brier 0.042 (95% CI 0.014-0.079), sensitivity 0.977 (Wilson 0.882-0.996), and specificity 0.939 (Wilson 0.804-0.983) at the cross-validation Youden threshold. Across three random seeds (42, 7, 123), AUROC was 0.977 ± 0.0004 (mean ± SD). Paired DeLong showed our model statistically outperformed Pang's reimplemented Random Forest (p = 0.017) and XGBoost (p = 0.022) on identical holdout patients. Paired DeLong vs. the v1 baseline showed identical patient ranking (p = 1.0), but v2 showed numerically better operating-point and probability quality despite the identical ranking: Brier was roughly halved (0.042 vs. 0.083), MCC at threshold 0.5 increased by 0.105 (0.894 vs. 0.789), and uncalibrated expected calibration error fell from 0.114 to 0.042. The difference in paired binary decisions between v1 and v2 was, however, not statistically significant (McNemar p = 0.221). Calibration analysis revealed that temperature scaling, the de facto standard, was inappropriate for cross-validated ensembles, while isotonic regression on out-of-fold predictions reduced ECE by 53% on the v1 baseline.

CONCLUSIONS

A multimodal model with domain-pretrained encoders and proper MIL aggregation achieves discriminative performance comparable to a modified Pang-style classical comparator and shows improved probability quality (lower Brier and calibration error), although these gains over the simpler v1 baseline did not reach statistical significance on the present holdout. We argue that AUROC alone is insufficient for evaluating clinical AI: discrimination and calibration are distinct properties, and operating-point performance is more directly relevant to deployment. We acknowledge that the present ultrasound branch operates on whole-image crops without explicit lesion localization and therefore should not yet be regarded as a lesion-specific clinical decision tool. Code and analysis scripts are released on GitHub.

Другие публикации по теме

Thyroid Cancer, PapillaryDeep LearningUltrasonographyThyroid Neoplasms
Для цитирования: Kalejahi Behnam Kiani, Rajabi Mohammad Javad. Multimodal deep learning for papillary thyroid carcinoma diagnosis using ultrasound and cytology.. BMC medical imaging. 2026. DOI: 10.1186/s12880-026-02526-6.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by-nc-nd/4.0/ Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Introduction

Thyroid nodules are present in 19–35% of the adult population on ultrasound screening, but only 7–15% are malignant [ 1 ]. The standard pre-operative workup combines high-frequency thyroid ultrasound for nodule risk stratification with fine-needle aspiration cytology for histopathological assessment when imaging features warrant it [ 2 ]. Among thyroid malignancies, papillary thyroid carcinoma (PTC) accounts for roughly 80% of cases and is diagnosed primarily by characteristic nuclear features on FNAC: nuclear enlargement and overlap, longitudinal grooves, intranuclear cytoplasmic pseudo-inclusions, and finely dispersed “powdery” chromatin, often arranged in three-dimensional papillary cell groups [ 3 ].

Despite the established clinical value of combining the two modalities, computational tools for PTC diagnosis have historically used them in isolation. Ultrasound-based methods rely on radiomics or deep learning over the B-mode image [ 4 – 6 ], while pathomics studies analyse FNAC slides using classical texture features or convolutional neural networks [ 7 – 9 ]. True multimodal models fusing US and FNAC remain rare, in part because matched paired data has been scarce.

Pang et al. (2025) addressed this gap by releasing a public cohort of 385 patients with paired US images and FNAC photomicrographs through Mendeley Data [ 10 ]. They reported that classical radiomics features (wavelet decomposition combined with grey-level co-occurrence matrix and run-length features) extracted from manually delineated lesion regions, fed into ensemble classifiers including support vector machines, random forests, and XGBoost, achieved AUROC ≈ 0.99 on a single 70:30 train/test split [ 11 ]. While remarkable, this number was obtained on a single random partition without an externally untouched holdout, and depended on lesion masks that are not included in the released data, which limits direct reproducibility for downstream researchers.

This paper revisits the Pang cohort under a stricter evaluation protocol and contributes the following: A patient-level multimodal deep learning architecture (v2) that combines a ConvNeXt-Tiny ultrasound encoder with a domain-pretrained CTransPath cytology encoder, gated-attention multiple-instance learning over cytology patches, and bidirectional cross-attention for late fusion. A patient-stratified, untouched 20% holdout protocol ( n = 77) and 5-fold cross-validation on the remaining development set ( n = 307), with multi-seed reproducibility analysis. A modified Pang-style classical comparator on identical patient splits. Because the manually delineated lesion masks used in the original Pang radiomics pipeline are not available in the public data release, our comparator used whole-image radiomics-style features rather than ROI-based features. We use this comparator for paired DeLong significance testing under the public-release constraints, while explicitly acknowledging that the absence of lesion masks limits the fairness of the comparison and likely disadvantages the classical baseline. A calibration analysis that exposes the inadequacy of per-fold temperature scaling as conventionally applied to deep-learning ensembles, and proposes a corrected ensemble methodology comparing four post-hoc calibration methods on out-of-fold predictions with equal-mass binning.

Under this evaluation protocol, our deep learning model achieves holdout AUROC 0.977 and statistically outperforms two of the three modified Pang-style classical comparators on identical splits (Random Forest p = 0.017, XGBoost p = 0.022), while acknowledging that the absence of lesion masks limits the fairness of these comparisons. We further show that AUROC alone obscures meaningful differences between architectures: v2 and a simpler self-attention baseline (v1) produce identical patient rankings on the holdout (paired DeLong p = 1.0), yet v2 has half the Brier score and numerically better operating-point classification. We do not claim that the difference in paired binary decisions between v1 and v2 reaches statistical significance (McNemar p = 0.221 at threshold 0.5).

Related work

Ultrasound-based AI for thyroid nodule risk stratification

Radiomics and deep learning approaches to thyroid US date to the early 2010s. Early studies used handcrafted texture features feeding random forests or support vector machines; Sollini et al. provide a comprehensive review of the radiomics era [ 4 ]. From 2017 onward, convolutional neural networks took over, with Buda et al. demonstrating that a deep learning model could match radiologists’ performance for malignancy risk stratification [ 5 ]. More recent work has explored attention mechanisms, transformer encoders, and multi-task learning for simultaneous segmentation and classification [ 6 , 12 ].

A persistent challenge in US-based thyroid AI is that the discriminative features lie within the lesion, not the whole image. Most successful methods therefore rely on lesion masks generated either manually or by an upstream segmentation network. When masks are unavailable, as in the Pang dataset, models that operate on the whole image at modest resolution have substantially lower performance, a limitation we encounter in our unimodal US ablation.

For comparison context, most competitive thyroid ultrasound AI studies use lesion-level images, radiologist-selected regions of interest, bounding boxes, or segmentation masks. Published whole-image ultrasound classifiers without explicit lesion localization are less directly comparable and are generally expected to be more vulnerable to background tissue, machine annotations, and target-lesion ambiguity. This provides context for the lower performance of our ultrasound-only branch, which operated on centre-cropped 224 × 224 images without access to lesion masks.

Cytology AI and the case for domain-pretrained encoders

Cytology-based AI for thyroid has been investigated since Daskalakis et al. extracted classical morphometric features in 2008 [ 7 ]. Modern approaches use deep convolutional networks, but until recently most relied on encoders pretrained on ImageNet, which is poorly matched to the visual statistics of haematoxylin- and eosin-stained slides. Wang et al. addressed this with CTransPath [ 13 ], a Swin-Tiny model self-supervised on ~ 15 million histopathology patches via semantically-relevant contrastive learning. CTransPath has become a default cytology/histology backbone in subsequent multi-organ pathology work [ 14 ].

While CTransPath was trained on histology rather than cytology, both share H&E staining priors and many tissue-level patterns, so the transfer to cytology has been beneficial in practice. We are not aware of prior work using CTransPath specifically for thyroid FNAC.

Multimodal fusion for medical imaging

Multimodal fusion strategies in medical AI fall broadly into early fusion (concatenation of raw inputs), feature-level fusion (concatenation or attention over learned embeddings from each modality), and late fusion (independent classifier outputs combined post-hoc) [ 15 ]. Cross-attention, originally introduced for vision-language models, has emerged as a strong feature-level fusion method because it allows tokens of one modality to attend selectively to the other [ 16 ]. For pathology specifically, multiple-instance learning with attention pooling [ 17 ] is the standard aggregator when bag size is variable, as it is when each patient has a different number of cytology patches.

Calibration of clinical AI

Calibration, the agreement between predicted probabilities and observed event frequencies, is increasingly recognised as essential for clinical deployment, since downstream decisions (further testing, watchful waiting, surgery) depend on confidence-conditional risk [ 18 ]. Guo et al. showed that modern deep networks are systematically over-confident and proposed temperature scaling as a parameter-efficient correction [ 19 ]. Subsequent work has compared temperature scaling with Platt scaling [ 20 ] and isotonic regression [ 21 ], generally finding temperature scaling sufficient when models are over-confident in a uniform way and isotonic preferable when miscalibration is non-monotonic [ 22 ].

A practical complication in cross-validated deep learning, however, is that temperature scaling is typically fit on each fold’s validation set and then averaged or applied per-fold to ensemble outputs. We argue (and demonstrate empirically below) that this commonly used pipeline is not the principled approach: the deployed system is the ensemble, and calibration should be fit on out-of-fold ensemble predictions rather than per-fold.

Dataset

Source and structure

We used the publicly released paired ultrasound and FNAC cytology dataset from Pang et al. (2025), available through Mendeley Data with DOI https://doi.org/10.17632/dp7zp2pb2v.1 [ 10 ]. The dataset comprises B-mode thyroid ultrasound images and corresponding cytology photomicrographs for 385 patients, of whom 222 had a histologically confirmed PTC diagnosis after surgery and the remaining 163 had benign nodules confirmed by repeat FNAC and clinical follow-up.

For each patient, the dataset provides: One B-mode ultrasound image (JPEG, variable resolution, typically 768 × 1024 pixels), captured on a Philips L12-5 linear-array probe at 48–51 Hz with mid-range dynamic range and gain settings. One to seven cytology photomicrograph patches (TIFF, 400 × 400 pixels) extracted from H&E-stained smears at 40× objective, originally captured on an Aperio ImageScope microscope.

The cytology component of the public dataset consists of 400 × 400 pixel TIFF photomicrograph patches from H&E-stained FNAC smears, acquired at 40× objective magnification using an Aperio ImageScope microscope. Each patient has between one and seven released cytology patches. The public release does not include whole-slide images or detailed metadata describing the original patch-selection workflow, such as whether all patches were manually selected by pathologists or sampled from predefined regions of interest. We therefore used the released patches as provided and treat the absence of patch-selection metadata as a limitation of the public dataset.

A small number of PTC cases (patients 43, 112, 113) were missing cytology images and were excluded from our analysis, leaving 220 PTC and 164 benign patients eligible for paired multimodal modelling, a total of 384 patients.

Data audit and the 165-vs-163 question

Pang et al. report 163 benign cases. Our enumeration of the released benign US folder (dataset2) returned 165 unique JPEG files. To resolve the discrepancy we computed MD5 hashes for every file and identified one collision: 3.JPG and 55.JPG are byte-identical duplicates. After deduplication our benign US count becomes 164, one larger than Pang’s 163. We retained the duplicate-resolved file and used 164 unique benign patients for analysis. We document this audit because reviewers and downstream users of this dataset should be aware of the duplication.

Patient identifier alignment between the four directories (dataset1 benign cytology, dataset2 benign US, dataset3 PTC US, dataset4 PTC cytology) was confirmed: every benign US patient had matching cytology, and all PTC patients except the three noted above had matching cytology.

Imaging characteristics

The PTC ultrasound images in this cohort show the typical features of thyroid malignancy: heterogeneous solid or mixed-echogenicity nodules, often with ill-defined or microlobulated margins, and frequently containing punctate hyperechoic foci suggestive of microcalcifications (Fig. 1 a). Benign nodules tend to show well-defined margins, a sharp interface with surrounding parenchyma, multiple cystic anechoic spaces, and absent microcalcifications, consistent with multinodular goitre or cystic-degenerative patterns (Fig. 1 b).

Cytologically, PTC FNAC patches in this cohort show tightly packed, three-dimensional groups of follicular epithelial cells with overlapping nuclei, finely dispersed (“powdery”) chromatin, prominent nuclear molding, and occasional longitudinal nuclear grooves (Fig. 1 c), the diagnostic features described in the literature [ 3 ]. Benign FNAC patches typically show loose monolayered sheets of follicular cells with round, regular, evenly-spaced nuclei and abundant background colloid (the pink amorphous material), without the nuclear features of PTC (Fig. 1 d).

Fig. 1 Representative paired modalities. (a) PTC ultrasound (case 5): heterogeneous nodule with mixed cystic-solid components and microlobulated margins. (b) Benign ultrasound (case 10): mixed echogenicity nodule with well-defined margins, multiple cystic spaces, and no microcalcifications. (c) PTC cytology patch (case 5, 400 × 400 px H&E): tight three-dimensional cluster of follicular cells with overlapping nuclei, powdery chromatin, and nuclear molding. (d) Benign cytology patch (case 10): dispersed monolayered groups with round, uniform nuclei and abundant background colloid

Иллюстрация — в первоисточнике ↗

Fig. 1 Representative paired modalities. (a) PTC ultrasound (case 5): heterogeneous nodule with mixed cystic-solid components and microlobulated margins. (b) Benign ultrasound (case 10): mixed echogenicity nodule with well-defined margins, multiple cystic spaces, and no microcalcifications. (c) PTC cytology patch (case 5, 400 × 400 px H&E): tight three-dimensional cluster of follicular cells with overlapping nuclei, powdery chromatin, and nuclear molding. (d) Benign cytology patch (case 10): dispersed monolayered groups with round, uniform nuclei and abundant background colloid

Patient-level splits

We constructed a patient-stratified, untouched holdout of 20% ( n = 77; 33 benign, 44 PTC) using a fixed random seed of 42. The remaining 307 patients (131 benign, 176 PTC) form the development set, on which we performed 5-fold stratified cross-validation also using seed 42. No patient appears in both the holdout and any cross-validation fold. This protocol is stricter than the single 70:30 split reported by Pang and is essential because the small dataset size makes performance estimates sensitive to split choice.

Audit of the metadata file confirmed that every holdout patient had fold = -1 and every development patient had fold ∈ {0, 1, 2, 3, 4}, with no patient duplicated across folds.

Preprocessing

Ultrasound. Each US image was centre-cropped to remove ultrasound-machine annotations and gauge bars, then resized to 224 × 224 pixels with bilinear interpolation. Channels were replicated to three to match the ImageNet-pretrained encoder input format. Train-time augmentations included horizontal flip (probability 0.5), small affine transforms (rotation ± 10°, scale ± 10%), and random brightness/contrast shifts; validation and test data were resized only.

Cytology. Each TIFF patch was resized to 224 × 224 pixels. Train-time augmentations included horizontal/vertical flips, 90°/180°/270° rotations (since cytology has no preferred orientation), and small colour jitter. The number of patches per patient varied between 1 and 7; we padded to a maximum of 7 patches with a binary patch-validity mask passed to the multiple-instance learning aggregator.

Methods

Architecture overview

The proposed multimodal model (v2) consists of four parts: a US encoder, a cytology encoder, a multiple-instance learning aggregator over cytology patches, and a bidirectional cross-attention fusion module followed by a classification head. Figure 2 summarises the architecture.

Fig. 2 Detailed architecture of multimodal v2. The ultrasound branch receives a 224 × 224 × 3 image and produces a 512-dimensional embedding via ConvNeXt-Tiny followed by a linear projection. The cytology branch receives up to seven 224 × 224 × 3 FNAC patches per patient; each patch is encoded by CTransPath (Swin-Tiny, 768-dimensional output), projected to 512 dimensions, and aggregated across patches by gated-attention multiple-instance learning into a single 512-dimensional bag embedding. The ultrasound and cytology embeddings are then refined by two parallel cross-attention blocks (8 heads, dropout 0.2): in one block the ultrasound embedding queries the cytology bag, in the other the cytology bag queries the ultrasound embedding. The two 512-dimensional outputs are concatenated into a 1024-dimensional joint representation, which is fed to a two-layer classification head (LayerNorm → Linear 1024 → 128 → GELU → Dropout 0.2 → Linear 128 → 1) producing the PTC malignancy logit. Per-stage feature dimensions and token-flow tensor shapes ([tokens × channels]) are annotated directly on the diagram

Иллюстрация — в первоисточнике ↗

Fig. 2 Detailed architecture of multimodal v2. The ultrasound branch receives a 224 × 224 × 3 image and produces a 512-dimensional embedding via ConvNeXt-Tiny followed by a linear projection. The cytology branch receives up to seven 224 × 224 × 3 FNAC patches per patient; each patch is encoded by CTransPath (Swin-Tiny, 768-dimensional output), projected to 512 dimensions, and aggregated across patches by gated-attention multiple-instance learning into a single 512-dimensional bag embedding. The ultrasound and cytology embeddings are then refined by two parallel cross-attention blocks (8 heads, dropout 0.2): in one block the ultrasound embedding queries the cytology bag, in the other the cytology bag queries the ultrasound embedding. The two 512-dimensional outputs are concatenated into a 1024-dimensional joint representation, which is fed to a two-layer classification head (LayerNorm → Linear 1024 → 128 → GELU → Dropout 0.2 → Linear 128 → 1) producing the PTC malignancy logit. Per-stage feature dimensions and token-flow tensor shapes ([tokens × channels]) are annotated directly on the diagram

Ultrasound encoder

We used a ConvNeXt-Tiny [ 23 ] pretrained on ImageNet-1k as the US encoder. The first six stages were frozen; only the final two stages and the global pooling head were fine-tuned. Output features were projected to 512 dimensions via a learned linear layer with layer normalisation and dropout. We selected ConvNeXt-Tiny over alternatives (ResNet-50, EfficientNet-B0) based on a preliminary comparison on the development set.

Cytology encoder: CTransPath

We used CTransPath [ 13 ], a Swin-Tiny [ 24 ] variant pretrained on approximately 15 million histopathology image patches via semantically-relevant contrastive learning. CTransPath replaces Swin’s standard 4 × 4 patch projection with a four-stage convolutional stem (3 → 12 → 24 → 96 channels) and uses the classical Swin patch-merging convention. The released checkpoint was trained against an earlier timm release whose patch-merging implementation differs from current versions; to load the weights cleanly we implemented a self-contained Swin-Tiny matching the checkpoint’s tensor names exactly. All 200 weight tensors loaded with no missing or unexpected keys. As with the US encoder, only the final Swin stage and final layer-norm were unfrozen; output features (768-dimensional) were projected to 512 dimensions.

We deliberately use a histology-pretrained model rather than ImageNet on the cytology branch because both cytology and histology share haematoxylin-eosin staining priors that ImageNet pretraining does not capture. Although CTransPath was trained on histology specifically, the visual features (cell clustering patterns, nuclear morphology, chromatin texture, stain colour distributions) are broadly shared with cytology.

Multiple-instance learning aggregator

Because each patient has a variable number of cytology patches (1–7), we use a gated-attention multiple-instance learning aggregator [ 17 ] to reduce the patch-bag to a single 512-dimensional bag embedding. Given a bag of N patch embeddings and a binary validity mask, the bag embedding is computed as a softmax-weighted sum of patches, where the per-patch attention score combines a tanh non-linearity with a sigmoid gate, allowing the model to learn a saliency score per patch. Padded slots are masked from the softmax.

Cross-attention fusion

We replaced the joint self-attention over [CLS, US, cytology-tokens] used in our v1 baseline with a true bidirectional cross-attention. Two cross-attention blocks operate in parallel: the first uses the US embedding as the query and the cytology bag as the key/value, while the second swaps the roles. Each cross-attention block contains pre-normalisation, 8-head multi-head attention, residual connections, and a feed-forward network with GELU activation and dropout of 0.2. The two output embeddings (each 512-dimensional) are concatenated to form a 1024-dimensional joint representation, which is fed to a two-layer classification head with layer normalisation, GELU activation, dropout of 0.2, and a single output logit producing the malignancy probability after sigmoid activation.

Training

We trained each fold for up to 50 epochs with the AdamW optimiser (learning rate 1e-5 for backbone parameters, 1e-4 for new layers, weight decay 1e-4), a cosine learning-rate schedule with linear warmup over the first 5 epochs, batch size 8, and binary cross-entropy loss with positive class weighting based on the train-fold class balance. Class imbalance was further mitigated with a weighted random sampler. Early stopping monitored validation AUROC with a patience of 15 epochs; the checkpoint with the best validation AUROC was retained. Training used mixed-precision fp16 on a single NVIDIA RTX 4060 (8 GB VRAM); mean fold runtime was approximately 5–6 min.

Calibration

Out-of-fold (OOF) predictions across all five folds were concatenated to form a calibration set covering the entire development cohort ( n = 307). On this set we fit four post-hoc calibrators and applied each to the holdout ensemble: (i) no calibration (raw averaged probability); (ii) temperature scaling with a single scalar fit by L-BFGS to minimise binary cross-entropy; (iii) Platt scaling (logistic regression on the OOF logit); and (iv) isotonic regression via pool-adjacent-violators.

Calibration was fitted on the full OOF set rather than per-fold. The deployed system is a single ensemble model; per-fold temperature fitting followed by averaging does not correspond to that system and can over-correct fold-specific miscalibration that ensemble averaging has already partially mitigated. Fitting a single calibrator on the OOF predictions is the methodologically appropriate alternative.

Evaluation

The primary discriminative metric was the area under the receiver operating characteristic curve (AUROC). Operating-point metrics (sensitivity, specificity, accuracy, F1, Matthews correlation coefficient, Brier score) were reported at threshold 0.5 (apples-to-apples comparability) and at the cross-validation Youden threshold, which we define as the mean of per-fold validation Youden-J optima. Threshold 0.5 is the default for clinical interpretation of well-calibrated probabilities; the Youden threshold optimises the geometric balance of sensitivity and specificity.

Calibration was assessed by expected calibration error (ECE) and maximum calibration error (MCE) using equal-mass binning with 5 bins. We chose equal-mass over the more common equal-width binning because, with an n = 77 holdout, equal-width binning at 10 bins would leave several bins with 0–2 patients and dominate ECE/MCE with sparse-bin noise [ 25 ]. We also report Brier score, which is binning-free and decomposes cleanly into reliability + resolution + irreducible loss [ 26 ].

Statistical inference

For ranking-based metrics (AUROC, AUPRC, Brier), 95% confidence intervals were computed by 1000-iteration percentile bootstrap. For Sensitivity and Specificity, we additionally report Wilson score intervals, which are exact for binomial proportions and more accurate at small N than the bootstrap [ 27 ]. To compare two paired models on the same holdout we used the DeLong test for AUROC differences [ 28 ] (using the fast Sun-Xu midrank algorithm [ 29 ]) and McNemar’s test with continuity correction for paired binary disagreement at threshold 0.5 [ 30 ].

Comparators

Multimodal v1 (deep learning). Identical training protocol with two architectural changes: ConvNeXt-Tiny instead of CTransPath as cytology encoder; joint self-attention over [CLS, US, path-tokens] instead of MIL + cross-attention.

Unimodal ablations. Both branches are kept structurally identical to v1, but at the fusion stage we mask one modality’s tokens to isolate the contribution of each modality.

Modified Pang-style classical comparator constrained by the absence of public lesion masks. Because the manually delineated lesion masks used in the original Pang radiomics pipeline were not available in the public release, our classical comparator could not reproduce ROI-based feature extraction. Instead, we computed whole-image radiomics-style features via scikit-image (160 features total): first-order statistics, grey-level co-occurrence matrix Haralick features, local binary patterns, Sobel and Laplacian gradient statistics, and Haar wavelet decomposition (LL/LH/HL/HH subbands at level 1). We then trained the same three classifiers Pang reports (RBF-kernel SVM, Random Forest with 500 trees, XGBoost with 500 trees), with feature standardisation and ANOVA-based feature selection (top 40 features), mirroring Pang’s classifier structure. This modified baseline should be interpreted as a mask-unavailable Pang-style comparator rather than a fully equivalent reproduction of the original ROI-based pipeline. The absence of lesion isolation likely introduced background thyroid tissue and surrounding non-lesional structures into the handcrafted features and may have reduced the performance of the classical models. We retain this comparator because it allows paired DeLong testing on identical patient splits, but we consistently emphasise its limitations throughout the manuscript.

Reproducibility

To assess seed sensitivity, we re-ran the full v2 pipeline (5-fold CV + holdout evaluation) with three random seeds (42, 7, 123). All other hyperparameters were held constant.

Results

Holdout performance of multimodal v2 (CTransPath + MIL + cross-attention)

Multimodal v2 achieved holdout AUROC 0.977 (95% CI 0.949–0.996), AUPRC 0.979 (95% CI 0.937–1.000), and Brier 0.042 (95% CI 0.014–0.079). At threshold 0.5 on the calibrated ensemble, sensitivity was 0.977 (43/44; Wilson 0.882–0.996), specificity was 0.909 (30/33; Wilson 0.764–0.969), and Matthews correlation coefficient was 0.894 (bootstrap 95% CI 0.788–0.974). At the cross-validation Youden threshold (0.654), specificity rose to 0.939 (31/33; Wilson 0.804–0.983) with sensitivity unchanged, and MCC was 0.920 (95% CI 0.824–1.000). Table 1 summarises these results alongside the v1 baseline.

Table 1 Holdout results for multimodal v2 vs. v1, calibrated ensemble. Numbers in parentheses are 95% confidence intervals (bootstrap or Wilson where indicated) Metric v1 (ConvNeXt + self-attn) v2 (CTransPath + MIL + cross-attn) AUROC 0.977 (0.949–0.996) 0.977 (0.949–0.996) AUPRC 0.984 (0.962–0.998) 0.979 (0.937–1.000) Brier 0.083 (0.049–0.121) 0.042 (0.014–0.079) Sensitivity (thr 0.5) 0.955 (Wilson 0.849–0.987) 0.977 (Wilson 0.882–0.996) Specificity (thr 0.5) 0.818 (Wilson 0.656–0.914) 0.909 (Wilson 0.764–0.969) MCC (thr 0.5) 0.789 (0.651–0.919) 0.894 (0.788–0.974) MCC (CV Youden) 0.789 (0.651–0.919) 0.920 (0.824–1.000)

Table 1
Holdout results for multimodal v2 vs. v1, calibrated ensemble. Numbers in parentheses are 95% confidence intervals (bootstrap or Wilson where indicated)

Metricv1 (ConvNeXt + self-attn)v2 (CTransPath + MIL + cross-attn)
AUROC0.977 (0.949–0.996)0.977 (0.949–0.996)
AUPRC0.984 (0.962–0.998)0.979 (0.937–1.000)
Brier0.083 (0.049–0.121)0.042 (0.014–0.079)
Sensitivity (thr 0.5)0.955 (Wilson 0.849–0.987)0.977 (Wilson 0.882–0.996)
Specificity (thr 0.5)0.818 (Wilson 0.656–0.914)0.909 (Wilson 0.764–0.969)
MCC (thr 0.5)0.789 (0.651–0.919)0.894 (0.788–0.974)
MCC (CV Youden)0.789 (0.651–0.919)0.920 (0.824–1.000)

Multi-seed reproducibility

Across three random seeds, holdout AUROC was 0.977 ± 0.0004 (mean ± SD; range 0.9766–0.9773), Brier was 0.0435 ± 0.0013 (range 0.042–0.045), and MCC at the CV-Youden threshold was 0.9205 ± 0.0000 (identical across seeds). Cross-validation mean AUROC across folds was 0.983 ± 0.011 in the original seed and 0.984 ± 0.009 in seed 7. These numbers establish that the model is highly reproducible across initialisations, addressing the common reviewer concern of “lucky-seed” reporting. The complete multi-seed holdout results are presented in Table 2 , which should appear immediately below this paragraph. Unless otherwise stated, headline performance metrics reported in the abstract, tables, and conclusion refer to the primary seed-42 model (for which the holdout Brier score was 0.042); the values reported in this paragraph and in Table 2 are means across the three seeds.

Table 2 Multi-seed v2 holdout results Seed Holdout AUROC Holdout Brier MCC at CV-Youden 42 0.9773 0.0421 0.9205 7 0.9766 0.0447 0.9205 123 0.9773 0.0436 0.9205 Mean ± SD 0.9771 ± 0.0004 0.0435 ± 0.0013 0.9205 ± 0.0000

Table 2
Multi-seed v2 holdout results

SeedHoldout AUROCHoldout BrierMCC at CV-Youden
420.97730.04210.9205
70.97660.04470.9205
1230.97730.04360.9205
Mean ± SD0.9771 ± 0.00040.0435 ± 0.00130.9205 ± 0.0000

Comparison with Pang’s reimplemented classical pipeline

On the identical 77-patient holdout, our modified Pang-style classical comparator (whole-image features, no lesion masks) gave AUROCs of 0.948 (SVM-RBF), 0.919 (Random Forest), and 0.911 (XGBoost) for the multimodal feature set. These numbers fall short of the AUROC ≈ 0.99 reported by Pang on a single 70:30 split. We attribute this gap primarily to two factors: their use of a single random partition, which is more favourable to performance estimation than our patient-stratified holdout; and the unavailability of the original lesion masks in the public dataset, which forced our comparator to use whole-image features rather than ROI-based features. We therefore do not interpret these numbers as proof that the classical pipeline is inferior in principle; rather, they describe what a mask-unavailable Pang-style approach can achieve under public-release constraints.

Paired DeLong tests on the holdout (Table 3 ) showed that our multimodal v2 model statistically outperformed the modified Random Forest comparator ( p = 0.017) and the modified XGBoost comparator ( p = 0.022). The SVM-RBF comparator was the closest competitor; the AUROC difference of + 0.029 in our favour did not reach significance ( p = 0.103). We caution that these comparisons are between a deep learning model operating on full images and classical comparators that were deprived of lesion masks. A genuinely fair comparison would require access to the original ROI masks from the Pang study and is left for future work.

Figure 3 plots the holdout ROC curves for all five models, showing the visual gap between our deep learning approach and the classical pipeline most clearly in the upper-left region of the curve.

Table 3 Paired DeLong tests comparing multimodal v2 (DL) against Pang’s reimplemented classical multimodal pipeline on the same n = 77 holdout patients Comparator DL AUROC Pang AUROC Diff DeLong z p SVM-RBF 0.977 0.948 + 0.029 1.629 0.103 Random Forest 0.977 0.919 + 0.058 2.378 0.017 XGBoost 0.977 0.911 + 0.066 2.298 0.022

Table 3
Paired DeLong tests comparing multimodal v2 (DL) against Pang’s reimplemented classical multimodal pipeline on the same n = 77 holdout patients

ComparatorDL AUROCPang AUROCDiffDeLong zp
SVM-RBF0.9770.948+ 0.0291.6290.103
Random Forest0.9770.919+ 0.0582.3780.017
XGBoost0.9770.911+ 0.0662.2980.022

Fig. 3 Holdout ROC curves for multimodal v2 (red, solid) compared with the three Pang reimplementation classifiers on identical patients ( n = 77). The deep learning curve dominates in the upper-left region of the plot, where high sensitivity is achieved at low false-positive rates

Иллюстрация — в первоисточнике ↗

Fig. 3 Holdout ROC curves for multimodal v2 (red, solid) compared with the three Pang reimplementation classifiers on identical patients ( n = 77). The deep learning curve dominates in the upper-left region of the plot, where high sensitivity is achieved at low false-positive rates

Unimodal ablations

To localise the source of multimodal performance we ran ablations with the v1 architecture and one branch’s tokens masked at fusion. The cytology-only model achieved holdout AUROC 0.971, while the US-only model achieved only 0.711. The full multimodal v1 reached 0.977. The incremental AUROC gain from adding ultrasound to cytology was small (0.977 vs. 0.971), corresponding to a difference of approximately 0.006. We did not perform paired DeLong testing for this comparison because the cytology-only and multimodal predictions originate from architecturally different configurations of the same model rather than independent classifiers; nevertheless, the small magnitude of the AUROC difference relative to the bootstrap confidence intervals suggests that the difference is unlikely to be statistically significant on this 77-patient holdout. We therefore do not claim that multimodal fusion provides statistically significant discriminative benefit over cytology-only modelling in this dataset. The very low US-only AUROC reflects the difficulty of whole-image US classification without lesion delineation, and aligns with our Pang-reimplementation US-only number of 0.78 (best classifier). Cytology dominates the multimodal signal, while ultrasound contributes a small incremental improvement under the current whole-image, non-segmented setup.

v2 vs. v1: identical ranking, different probability quality

Paired DeLong on the holdout returned an AUROC difference of exactly 0.000 between v1 and v2 (z = 0, p = 1.0). The two models produce the same patient ranking. v2 showed numerically lower Brier score (0.042 vs. 0.083), lower uncalibrated expected calibration error (0.042 vs. 0.114), and numerically improved operating-point metrics at threshold 0.5 (MCC 0.894 vs. 0.789). However, McNemar’s test at threshold 0.5 (Table 4 ) showed v2 correct on 5 cases where v1 was wrong, while v1 was correct on only 1 case where v2 was wrong, with chi-square (continuity correction) = 1.50 and p = 0.221, which does not reach statistical significance on this 77-patient holdout.

Table 4 McNemar test for paired disagreement at threshold 0.5 v2 correct v2 wrong v1 correct 67 1 v1 wrong 5 4 Chi-square (with continuity correction) = 1.50, p = 0.221

Table 4
McNemar test for paired disagreement at threshold 0.5
Chi-square (with continuity correction) = 1.50, p = 0.221

v2 correctv2 wrong
v1 correct671
v1 wrong54

We therefore frame the v2-versus-v1 comparison cautiously. v2 should not be interpreted as improving rank-based discrimination over v1, because both models produced identical AUROC on the holdout. Its potential advantage lies instead in probability quality: lower Brier, lower uncalibrated ECE, and numerically better operating-point metrics. These properties are clinically relevant for risk estimation and threshold-dependent decision making, but their statistical superiority over v1 was not demonstrated on the present holdout. Confirmation in larger datasets will be required before the v2 architectural choices (CTransPath, MIL, cross-attention) can be recommended as clearly preferable to v1 on any specific deployment criterion.

Calibration

Table 5 reports the four-method calibration analysis on the v1 and v2 calibrated ensembles, using equal-mass binning with 5 bins.

Figure 4 shows reliability diagrams for v2 under each of the four calibration methods. Each panel plots the mean predicted probability per equal-mass bin against the observed event frequency, with marker size proportional to bin count; the dashed diagonal represents perfect calibration. v2’s points hug the diagonal closely under all methods, suggesting that the v2 model produced well-calibrated probabilities on this holdout.

Table 5 Calibration metrics on the holdout ( n = 77) using equal-mass 5-bin ECE/MCE Model Method ECE (em-5) MCE (em-5) Brier v1 None 0.114 0.189 0.081 v1 Temperature (T = 1.53) 0.164 0.218 0.096 v1 Platt 0.182 0.228 0.101 v1 Isotonic 0.054 0.063 0.084 v2 None 0.042 0.134 0.042 v2 Temperature (T = 1.01) 0.043 0.136 0.042 v2 Platt 0.039 0.102 0.040 v2 Isotonic 0.039 0.064 0.045

Table 5
Calibration metrics on the holdout ( n = 77) using equal-mass 5-bin ECE/MCE

ModelMethodECE (em-5)MCE (em-5)Brier
v1None0.1140.1890.081
v1Temperature (T = 1.53)0.1640.2180.096
v1Platt0.1820.2280.101
v1Isotonic0.0540.0630.084
v2None0.0420.1340.042
v2Temperature (T = 1.01)0.0430.1360.042
v2Platt0.0390.1020.040
v2Isotonic0.0390.0640.045

Fig. 4 Reliability diagrams for multimodal v2 on the holdout ( n = 77) under four calibration methods: (a) raw probabilities, (b) temperature scaling, (c) Platt scaling, (d) isotonic regression. Markers represent equal-mass 5-bin midpoints; marker size is proportional to bin count. The dashed line indicates perfect calibration. v2 is already well calibrated before any post-hoc correction; the exact per-method ECE, MCE, and Brier values for the seed-42 holdout are listed in Table 5 , and post-hoc methods produce only marginal changes, in contrast to v1 (Table 5 ) where isotonic regression reduced ECE by 53%

Иллюстрация — в первоисточнике ↗

Fig. 4 Reliability diagrams for multimodal v2 on the holdout ( n = 77) under four calibration methods: (a) raw probabilities, (b) temperature scaling, (c) Platt scaling, (d) isotonic regression. Markers represent equal-mass 5-bin midpoints; marker size is proportional to bin count. The dashed line indicates perfect calibration. v2 is already well calibrated before any post-hoc correction; the exact per-method ECE, MCE, and Brier values for the seed-42 holdout are listed in Table 5 , and post-hoc methods produce only marginal changes, in contrast to v1 (Table 5 ) where isotonic regression reduced ECE by 53%

We note that with only 77 holdout patients and 5 equal-mass bins, each bin contains approximately 15 patients. Even with equal-mass binning (chosen to avoid the empty- or near-empty-bin problem of equal-width binning at small N), the reliability diagrams and ECE/MCE estimates carry meaningful uncertainty. We therefore interpret the calibration figures and metrics as exploratory visual summaries rather than as definitive estimates of deployment calibration, and we place greater interpretive weight on Brier score, which is binning-free.

Three findings emerge.

First, the v1 ensemble is poorly calibrated out of the box (ECE 0.114). Temperature scaling in fact made calibration worse, while isotonic regression cut ECE by 53% to 0.054. We argue this inverts the conventional wisdom that “temperature scaling is sufficient for deep nets” [ 19 ] when the deployed model is an ensemble: the per-fold temperature fit absorbs fold-specific over-confidence that the ensemble averaging has already partially corrected, leading to over-correction.

Second, the v2 ensemble is already well-calibrated (raw ECE 0.042, comparable to the best post-hoc calibration of v1). Domain pretraining (CTransPath) does not just improve discrimination metrics; it produces inherently more reliable probabilities. Temperature scaling on v2 had T = 1.01, essentially the identity, T = 1.01 was effectively an identity transformation, suggesting little need for temperature rescaling. Platt and isotonic gave only modest further improvements.

Third, the optimal calibration method is architecture dependent. v1 wants isotonic, v2 wants Platt or none. This suggests that calibration method should be selected per architecture using a held-out validation slice, not chosen by convention. Reporting only temperature-scaled ECE, the dominant practice in the literature, can be misleading.

Cross-validation summary for v2

For completeness, Table 6 reports per-fold validation metrics for v2 (seed 42). Fold-level AUROC ranged from 0.971 to 0.994 (mean 0.983, SD 0.011). No fold collapsed; the mean best-epoch was 16.8 (SD 10.2), indicating quick convergence with the LR warmup helping early epochs.

Table 6 Per-fold validation metrics for v2-CTransPath (seed 42) Fold Best epoch Cal AUROC Cal Brier Cal MCC (Youden) 0 31 0.9937 0.0594 0.9344 1 24 0.9725 0.0402 0.9344 2 8 0.9923 0.0428 0.9004 3 9 0.9714 0.0811 0.8337 4 12 0.9868 0.0664 0.9027 Mean ± SD 16.8 ± 10.2 0.983 ± 0.011 0.058 ± 0.017 0.901 ± 0.041

Table 6
Per-fold validation metrics for v2-CTransPath (seed 42)

FoldBest epochCal AUROCCal BrierCal MCC (Youden)
0310.99370.05940.9344
1240.97250.04020.9344
280.99230.04280.9004
390.97140.08110.8337
4120.98680.06640.9027
Mean ± SD16.8 ± 10.20.983 ± 0.0110.058 ± 0.0170.901 ± 0.041

Discussion

What this paper shows

We make four points. First, the recently released Pang 2025 cohort, while excellent material for paired multimodal thyroid AI, requires a stricter evaluation protocol than the single 70:30 split originally reported: under a stratified untouched holdout with multi-seed reporting, classical radiomics achieves AUROC 0.91–0.95 rather than 0.99. Second, a multimodal deep learning model with appropriately chosen components (domain-pretrained cytology encoder, MIL aggregation, true cross-attention fusion) statistically outperforms two of the three classical baselines on identical patient splits and matches the third. Third, the conventional pipeline of per-fold temperature scaling is methodologically inappropriate for deep-learning ensembles, and a corrected ensemble methodology fitting calibration on out-of-fold predictions reveals that isotonic regression is superior on poorly calibrated baselines while well-calibrated models (such as our domain-pretrained v2) need little post-hoc adjustment. Fourth, AUROC alone is insufficient to characterise multimodal models: v1 and v2 produce identical rankings yet the latter has half the Brier and a higher MCC (0.894 vs. 0.789); although this operating-point difference between v1 and v2 did not reach statistical significance on the present holdout (McNemar p = 0.221), it becomes invisible if only AUROC is reported.

The case for domain-pretrained cytology encoders

CTransPath was developed for histopathology, but cytology shares many of its essential visual statistics with H&E-stained tissue sections: nuclear size and shape, chromatin texture, nuclear crowding, cytoplasmic contrast, staining intensity, and local cell-clustering patterns. Although FNAC smears lack the intact tissue-level architecture present in histology and instead present cells as dispersed three-dimensional clusters or monolayered sheets, the lower- and intermediate-level representations learned from large-scale H&E pathology pretraining remain highly relevant to cytological morphology. Our results suggest that this transfer is real and beneficial: replacing ImageNet ConvNeXt with CTransPath halved the Brier score on the holdout while keeping AUROC unchanged. We are not aware of prior published work using CTransPath specifically for thyroid FNAC, and we consider this a promising configuration for future thyroid-cytology AI. At the same time, we acknowledge that histology pretraining is not a perfect match for cytology, and that future work with cytology-specific self-supervised pretraining (when sufficient unlabelled cytology data becomes available) may yield further gains.

The ultrasound branch underperforms expectations

Our US-only deep-learning ablation gave AUROC 0.711, well below Pang’s reported 0.964 for US-only XGBoost radiomics. The gap is explained by the absence of lesion masks in the released data: classical radiomics is computed on a manually delineated nodule region, while our deep-learning model operates on the whole 224 × 224 image. Whole-image deep learning at this resolution simply cannot localise the diagnostic features as reliably as a hand-traced ROI. This is a real limitation rather than an algorithmic deficit; it explains why the multimodal performance derives primarily from the cytology branch, with US contributing a modest boost.

A practical implication is that future versions of this work would benefit from either (a) automatic thyroid nodule segmentation as an upstream module, or (b) higher-resolution US inputs (e.g., 384 × 384) once GPU memory allows. Our cohort and computational constraints (RTX 4060, 8 GB VRAM) made these out of scope for the current paper.

A further clinical limitation is that the ultrasound branch does not explicitly identify the target nodule. In real-world thyroid imaging, multinodular disease is common, and a centre-cropped image may contain more than one nodule. Without an upstream segmentation, bounding-box, or radiologist-selected ROI, the model cannot guarantee that the ultrasound features correspond to the same lesion sampled by FNAC. We therefore explicitly position the current ultrasound branch as an image-level research model rather than a lesion-specific clinical decision tool. The incremental AUROC gain from adding ultrasound to cytology (0.977 vs. 0.971 cytology-only) is small, was not shown to be statistically significant on this 77-patient holdout, and should not be over-interpreted. Clinically, however, multimodal modelling remains well motivated because real-world PTC diagnosis is inherently multimodal: ultrasound guides nodule risk assessment and the indication for FNAC, while cytology provides the cellular diagnosis. The present model should therefore be regarded as an initial computational attempt to mirror clinical multimodal reasoning rather than as proof that ultrasound substantially improves cytology-only AI performance in this dataset. Larger cohorts with lesion-level ultrasound annotation, automatic thyroid nodule detection or segmentation, and higher-resolution ultrasound inputs will be required to establish whether the ultrasound branch can provide statistically and clinically meaningful incremental value over cytology alone.

Calibration is architecture-dependent

The contrast between v1 (best calibrated by isotonic, raw ECE 0.114) and v2 (best calibrated by Platt or no method, raw ECE 0.042) is striking, and we believe it reflects a genuine difference in the geometry of the two models’ probability outputs rather than measurement noise. Domain-pretrained encoders produce better-calibrated logits because the pretraining distribution is closer to the target distribution; ImageNet pretraining requires the network to extrapolate into a domain-shifted region of feature space, which deep networks do over-confidently [ 19 ]. We caution, however, that the calibration estimates reported here are derived from a 77-patient holdout and should be treated as exploratory. Both ECE and MCE on small samples carry meaningful uncertainty, even with equal-mass binning. External validation on a larger independent cohort will be required to confirm these calibration claims. For papers reporting calibration metrics on ensembles of deep networks, we recommend (i) fitting calibration on out-of-fold ensemble predictions, not per-fold; (ii) comparing at least three methods (none, temperature, isotonic); and (iii) reporting ECE with equal-mass binning when N < 100 to avoid sparse-bin artefacts, while emphasising Brier score as a binning-free complement.

Comparison to Pang’s published numbers

Our modified Pang-style classical comparator gave multimodal AUROC 0.91–0.95 across SVM, RF, and XGBoost variants on the holdout, versus their reported 0.99. We attribute the gap primarily to two factors: their use of a single 70:30 split (which we replaced with a stratified holdout from a multi-seed cross-validation), and our inability to compute features from manually-delineated lesion masks (which were not released). We believe Pang’s published numbers are honestly reported but represent an optimistic operating point on their data, and we explicitly do not interpret our lower numbers as evidence that the classical pipeline is inferior in principle. The comparison should be interpreted as a reproducibility study under public-release constraints: with the data and masks released, how do classical radiomics and modern deep learning compare? Both approaches deserve a rematch when ROI masks become publicly available.

Limitations

The most important limitation is the absence of an externally validated cohort. With 384 patients from a single institution, the model’s performance on different scanners, populations, or staining protocols is unknown. We have not addressed this gap and, for the same reasons, would not yet recommend clinical deployment based on these results alone. The paper should be read as evidence that multimodal deep learning with appropriately chosen components is competitive with classical multimodal radiomics on this task, not as a deployment-ready system.

Other limitations include: the modest dataset size (which constrained us to single-cohort training with no held-out external validation set), the absence of lesion masks (which prevents perfect reproduction of Pang’s pipeline), the histology-rather-than-cytology origin of CTransPath pretraining (which may leave residual cytology-specific gains on the table), and the use of whole-image US (which underperforms ROI-based US classification).

A further dataset limitation concerns potential patch-selection bias in the cytology modality. As noted in Sect. 3.1, the public release does not document how the one-to-seven FNAC patches per patient were chosen, and whole-slide images are not provided. Because we cannot verify the selection workflow, we cannot exclude the possibility that the released patches were preferentially diagnostic, or otherwise more representative, than a random sample of each smear. If such selection is present, it would make the cytology task easier than it would be for unselected real-world smears and could therefore inflate the apparent performance of the cytology branch and, in turn, of the multimodal model. This may limit generalization to deployment settings in which patch selection is automated or performed under different criteria, and it should be weighed alongside the absence of external validation when interpreting our results.

We did not compare to recent foundation models for cytology specifically (e.g., UNI [ 31 ], ProvGigaPath [ 32 ]) because they are an order of magnitude larger and would not fit on our 8 GB GPU in fine-tuning mode. Such a comparison is a clear next step.

Finally, we did not perform decision-curve analysis or net-benefit analysis in the present manuscript. These analyses would provide additional clinical-utility perspective across decision thresholds and are a natural complement to the calibration and operating-point analyses reported here. We plan to incorporate decision-curve analysis in subsequent work, ideally on a larger external cohort where the resulting curves would be stable enough to support quantitative deployment-relevant conclusions [ 33 ].

Code and data availability

All code and analysis scripts (architecture, training, calibration, statistical tests, Pang re-implementation, comparison scripts) are released under an MIT license at https://github.com/b-kiani/thyroid-ptc-multimodal . The data are publicly available from Mendeley Data, DOI https://doi.org/10.17632/dp7zp2pb2v.1 .

Conclusion

We have proposed a multimodal deep learning architecture for papillary thyroid carcinoma diagnosis combining a ConvNeXt-Tiny ultrasound encoder, a CTransPath cytology encoder, gated-attention multiple-instance learning, and bidirectional cross-attention fusion. On a stratified untouched holdout of 77 patients from the Pang 2025 cohort, the model achieved AUROC 0.977 ± 0.0004 across three random seeds, sensitivity 0.977, specificity 0.939 at the cross-validation Youden threshold, and a holdout Brier score of 0.042 (seed 42; mean 0.044 across the three seeds). Paired DeLong tests demonstrated statistical superiority over two of the three modified Pang-style classical comparators (Random Forest p = 0.017, XGBoost p = 0.022), while we caution that these comparators lacked the ROI masks used in the original Pang pipeline. A calibration analysis showed that a corrected ensemble methodology fitting calibration on out-of-fold predictions reduces ECE by up to 53% over uncalibrated baselines and reveals architecture-dependent calibration behaviour. The work argues that AUROC alone is insufficient for evaluating clinical AI: discrimination and calibration are distinct properties, and operating-point performance is more directly relevant to deployment than the area under an idealised ROC curve. We acknowledge that the gains over a simpler v1 baseline did not reach statistical significance on this 77-patient holdout, and that external validation, lesion-level ultrasound annotation, and decision-curve analysis on a larger cohort will be required before clinical deployment can be considered.

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

We thank Pang and colleagues for releasing the paired ultrasound and FNAC cytology dataset that made this work possible.

Author contributions

All authors had a contribution in the experiment, writing, and reviewing of the paper.

Funding

This work received no external funding.

Data availability

Data Availability Statement in manuscript mentions “The data analysed in this study are publicly available from Mendeley Data, DOI: https://doi.org/10.17632/dp7zp2pb2v.1 . The code and analysis scripts are available at the GitHub repository stated in the manuscript.” But the statement is not present on the system. I request you to upload the Data Availability Statement on submission system as well. While submitting your revised manuscript, please select ‘yes’ under the Data Availability Declaration, and add your statement in the appearing textbox.

Declarations

Ethics approval and consent to participate

This study used only a publicly available, fully anonymised dataset released by Pang et al. (Mendeley Data, 2025) and involved no new patient recruitment, no patient contact, no clinical intervention, and no access to identifiable personal information. Under our institutional research-governance policy, additional institutional review board (IRB) approval was therefore not required for this secondary analysis. Ethical approval and informed consent for the original cohort were the responsibility of the original dataset providers and are documented in the dataset’s release record. The authors had no role in the original data collection.

Consent for publication

Not applicable. The manuscript does not contain identifiable individual patient data, images, or personal clinical details.

Competing interests

The authors declare no competing interests.

References

1. Haugen BR Alexander EK Bible KC 2015 American Thyroid Association management guidelines for adult patients with thyroid nodules and differentiated thyroid cancer Thyroid 2016 26 1 133 10.1089/thy.2015.0020 26462967 PMC4739132 Haugen BR, Alexander EK, Bible KC, et al. 2015 American Thyroid Association management guidelines for adult patients with thyroid nodules and differentiated thyroid cancer. Thyroid. 2016;26:1–133. 26462967 10.1089/thy.2015.0020 PMC4739132

2. Cibas ES Ali SZ The 2017 Bethesda system for reporting thyroid cytopathology Thyroid 2017 27 1341 6 10.1089/thy.2017.0500 29091573 Cibas ES, Ali SZ. The 2017 Bethesda system for reporting thyroid cytopathology. Thyroid. 2017;27:1341–6. 29091573 10.1089/thy.2017.0500

3. Rosai J Carcangiu ML DeLellis RA Tumors of the Thyroid Gland. Atlas of Tumor Pathology, 3rd Series, Fascicle 5 1992 Washington, DC AFIP Rosai J, Carcangiu ML, DeLellis RA. Tumors of the Thyroid Gland. Atlas of Tumor Pathology, 3rd Series, Fascicle 5. Washington, DC: AFIP; 1992.

4. Sollini M Cozzi L Chiti A Kirienko M Texture analysis and machine learning to characterize suspected thyroid nodules and differentiated thyroid cancer: where do we stand? Eur J Radiol 2018 99 1 8 10.1016/j.ejrad.2017.12.004 29362138 Sollini M, Cozzi L, Chiti A, Kirienko M. Texture analysis and machine learning to characterize suspected thyroid nodules and differentiated thyroid cancer: where do we stand? Eur J Radiol. 2018;99:1–8. 29362138 10.1016/j.ejrad.2017.12.004

5. Buda M Wildman-Tobriner B Hoang JK Management of thyroid nodules seen on US images: deep learning may match performance of radiologists Radiology 2019 292 695 701 10.1148/radiol.2019181343 31287391 PMC10257128 Buda M, Wildman-Tobriner B, Hoang JK, et al. Management of thyroid nodules seen on US images: deep learning may match performance of radiologists. Radiology. 2019;292:695–701. 31287391 10.1148/radiol.2019181343 PMC10257128

6. Li X Zhang S Zhang Q Diagnosis of thyroid cancer using deep convolutional neural network models applied to sonographic images: a retrospective, multicohort, diagnostic study Lancet Oncol 2019 20 193 201 10.1016/S1470-2045(18)30762-9 30583848 PMC7083202 Li X, Zhang S, Zhang Q, et al. Diagnosis of thyroid cancer using deep convolutional neural network models applied to sonographic images: a retrospective, multicohort, diagnostic study. Lancet Oncol. 2019;20:193–201. 30583848 10.1016/S1470-2045(18)30762-9 PMC7083202

7. Daskalakis A Kostopoulos S Spyridonos P Design of a multi-classifier system for discriminating benign from malignant thyroid nodules using routinely H&E-stained cytological images Comput Biol Med 2008 38 196 203 10.1016/j.compbiomed.2007.09.005 17996861 Daskalakis A, Kostopoulos S, Spyridonos P, et al. Design of a multi-classifier system for discriminating benign from malignant thyroid nodules using routinely H&E-stained cytological images. Comput Biol Med. 2008;38:196–203. 17996861 10.1016/j.compbiomed.2007.09.005

8. Sanyal P Mukherjee T Barui S Das A Gangopadhyay P Artificial intelligence in cytopathology: a neural network to identify papillary carcinoma on thyroid fine-needle aspiration cytology smears J Pathol Inf 2018 9 43 10.4103/jpi.jpi_43_18 PMC6289006 30607310 Sanyal P, Mukherjee T, Barui S, Das A, Gangopadhyay P. Artificial intelligence in cytopathology: a neural network to identify papillary carcinoma on thyroid fine-needle aspiration cytology smears. J Pathol Inf. 2018;9:43. 10.4103/jpi.jpi_43_18 PMC6289006 30607310

9. Dov D Kovalsky SZ Cohen J Thyroid cancer malignancy prediction from whole slide cytopathology images Proc Mach Learn Healthc 2019 116 553 70 Dov D, Kovalsky SZ, Cohen J, et al. Thyroid cancer malignancy prediction from whole slide cytopathology images. Proc Mach Learn Healthc. 2019;116:553–70.

10. Pang Z Tang J Cheng G A paired ultrasound and FNAC cytology dataset for thyroid nodule characterization Mendeley Data 2025 10.17632/dp7zp2pb2v.1 Pang Z, Tang J, Cheng G, et al. A paired ultrasound and FNAC cytology dataset for thyroid nodule characterization. Mendeley Data. 2025. 10.17632/dp7zp2pb2v.1 . v1.

11. Pang Z Tang J Cheng G Multimodal radiomics-pathomics for papillary thyroid carcinoma diagnosis Data Brief 2025 60 111583 10.1016/j.dib.2025.111583 40534709 PMC12175231 Pang Z, Tang J, Cheng G, et al. Multimodal radiomics-pathomics for papillary thyroid carcinoma diagnosis. Data Brief. 2025;60:111583. 40534709 10.1016/j.dib.2025.111583 PMC12175231

12. Wang Y Yue W Li X Comparison study of radiomics and deep-learning-based features for differentiating thyroid nodules in dual-modality ultrasound Eur Radiol 2020 30 5760 70 Wang Y, Yue W, Li X, et al. Comparison study of radiomics and deep-learning-based features for differentiating thyroid nodules in dual-modality ultrasound. Eur Radiol. 2020;30:5760–70.

13. Wang X Yang S Zhang J Transformer-based unsupervised contrastive learning for histopathological image classification Med Image Anal 2022 81 102559 10.1016/j.media.2022.102559 35952419 Wang X, Yang S, Zhang J, et al. Transformer-based unsupervised contrastive learning for histopathological image classification. Med Image Anal. 2022;81:102559. 35952419 10.1016/j.media.2022.102559

14. Chen RJ Lu MY Wang J Pan-cancer integrative histology-genomic analysis via multimodal deep learning Cancer Cell 2022 40 865 e8786 10.1016/j.ccell.2022.07.004 35944502 PMC10397370 Chen RJ, Lu MY, Wang J, et al. Pan-cancer integrative histology-genomic analysis via multimodal deep learning. Cancer Cell. 2022;40:865–e8786. 35944502 10.1016/j.ccell.2022.07.004 PMC10397370

15. Stahlschmidt SR Ulfenborg B Synnergren J Multimodal deep learning for biomedical data fusion: a review Brief Bioinform 2022 23 bbab569 10.1093/bib/bbab569 35089332 PMC8921642 Stahlschmidt SR, Ulfenborg B, Synnergren J. Multimodal deep learning for biomedical data fusion: a review. Brief Bioinform. 2022;23:bbab569. 35089332 10.1093/bib/bbab569 PMC8921642

16. Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need. Adv Neural Inf Process Syst. 2017;30.

17. Ilse M, Tomczak J, Welling M. Attention-based deep multiple instance learning. Int Conf Mach Learn. 2018;80:2127–2136.

18. Van Calster B McLernon DJ van Smeden M Calibration: the Achilles heel of predictive analytics BMC Med 2019 17 230 10.1186/s12916-019-1466-7 31842878 PMC6912996 Van Calster B, McLernon DJ, van Smeden M, et al. Calibration: the Achilles heel of predictive analytics. BMC Med. 2019;17:230. 31842878 10.1186/s12916-019-1466-7 PMC6912996

19. Guo C, Pleiss G, Sun Y, Weinberger KQ. On calibration of modern neural networks. Int Conf Mach Learn. 2017;70:1321–1330.

20. Platt JC Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods Adv Large Margin Classifiers 1999 10 61 74 Platt JC. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Adv Large Margin Classifiers. 1999;10:61–74.

21. Zadrozny B, Elkan C. Transforming classifier scores into accurate multiclass probability estimates. KDD. 2002:694–9.

22. Niculescu-Mizil A, Caruana R. Predicting good probabilities with supervised learning. Int Conf Mach Learn. 2005;22:625–632.

23. Liu Z, Mao H, Wu C-Y, et al. A ConvNet for the 2020s. CVPR. 2022:11976–86.

24. Liu Z, Lin Y, Cao Y, et al. Swin transformer: hierarchical vision transformer using shifted windows. ICCV. 2021:10012–22.

25. Roelofs R Cain N Shlens J Mozer MC Mitigating bias in calibration error estimation AISTATS 2022 25 4036 54 Roelofs R, Cain N, Shlens J, Mozer MC. Mitigating bias in calibration error estimation. AISTATS. 2022;25:4036–54.

26. Brier GW Verification of forecasts expressed in terms of probability Mon Weather Rev 1950 78 1 3 10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2 Brier GW. Verification of forecasts expressed in terms of probability. Mon Weather Rev. 1950;78:1–3.

27. Wilson EB Probable inference, the law of succession, and statistical inference J Am Stat Assoc 1927 22 209 12 10.1080/01621459.1927.10502953 Wilson EB. Probable inference, the law of succession, and statistical inference. J Am Stat Assoc. 1927;22:209–12.

28. DeLong ER DeLong DM Clarke-Pearson DL Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach Biometrics 1988 44 837 45 10.2307/2531595 3203132 DeLong ER, DeLong DM, Clarke-Pearson DL. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics. 1988;44:837–45. 3203132

29. Sun X Xu W Fast implementation of DeLong’s algorithm for comparing the areas under correlated receiver operating characteristic curves IEEE Signal Process Lett 2014 21 1389 93 10.1109/LSP.2014.2337313 Sun X, Xu W. Fast implementation of DeLong’s algorithm for comparing the areas under correlated receiver operating characteristic curves. IEEE Signal Process Lett. 2014;21:1389–93.

30. McNemar Q Note on the sampling error of the difference between correlated proportions or percentages Psychometrika 1947 12 153 7 10.1007/BF02295996 20254758 McNemar Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika. 1947;12:153–7. 20254758 10.1007/BF02295996

31. Chen RJ Ding T Lu MY Towards a general-purpose foundation model for computational pathology Nat Med 2024 30 850 62 10.1038/s41591-024-02857-3 38504018 PMC11403354 Chen RJ, Ding T, Lu MY, et al. Towards a general-purpose foundation model for computational pathology. Nat Med. 2024;30:850–62. 38504018 10.1038/s41591-024-02857-3 PMC11403354

32. Xu H Usuyama N Bagga J A whole-slide foundation model for digital pathology from real-world data Nature 2024 630 181 8 10.1038/s41586-024-07441-w 38778098 PMC11153137 Xu H, Usuyama N, Bagga J, et al. A whole-slide foundation model for digital pathology from real-world data. Nature. 2024;630:181–8. 38778098 10.1038/s41586-024-07441-w PMC11153137

33. Kiani Kalejahi B Danishvar S Rajabi MJ GAN-Based Cross-Modality Brain MRI Synthesis: Paired Versus Unpaired Training and Comparison with Diffusion and Transformer Models Biomimetics 2026 11 3 175 10.3390/biomimetics11030175 41892098 PMC13024612 Kiani Kalejahi B, Danishvar S, Rajabi MJ. GAN-based cross-modality brain MRI synthesis: paired versus unpaired training and comparison with diffusion and transformer models. Biomimetics. 2026;11(3):175. 10.3390/biomimetics11030175 . 41892098 PMC13024612

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.