Dataset-dependent patient-overlap bias in breast thermography deep learning

Wait 5 sec.

ArticleOpen accessPublished: 23 November 2026Volume 16, article number 38978 (2026)Cite this article You have full access to this open access articleDownload PDF View saved researchDataset-dependent patient-overlap bias in breast thermography deep learningDownload PDF Nazmul Huda1,Fahmid Al Farid2,3,Md Zahidul Islam1,Md Abdul Khalid Sondo1,Iftekhar Ahmed1,Md. Mahfuzul Haque1,Jia Uddin4,A. K. M. Muzahidul Islam5,Hezerul Bin Abdul Karim2,M. A. Awal1 &…Ishtiak Al Mamoon1 AbstractDeep learning studies in breast thermography frequently report near-perfect diagnostic performance (AUC > 0.99), yet evaluation protocols do not always explicitly account for data leakage caused by patient overlap. Although patient-level leakage is well documented in other imaging modalities, the magnitude of performance inflation and its modulation by dataset structure remain insufficiently quantified in breast thermography. We conducted a cross-dataset evaluation using two public breast thermography datasets with contrasting overlap characteristics: DMR-IR (5,444 images, 214 patients, Jaccard index \(J=0.972\)) and Mendeley (357 images, 119 patients, \(J=0.467\)). Across four architectures spanning CNN and vision transformer families, we contrasted image-level partitioning with patient-level partitioning (\(J=0\)) and quantified performance differentials (\(\Delta _{\text {AUC}}\)) using Nadeau-Bengio corrected inference. In DMR-IR, image-level partitioning produced near-perfect performance similar to levels commonly reported in the literature (mean AUC 0.999), whereas performance decreased to 0.951 under strict patient-level isolation (\(\Delta _{\text {AUC}}=+4.8\%\)). Mendeley showed a 2.6-fold greater inflation magnitude despite lower measured overlap, with mean AUC decreasing from 0.888 to 0.762 (\(\Delta _{\text {AUC}}=+12.6\%\)). Controlled intra-dataset manipulation further suggested a non-linear relationship between patient overlap and performance inflation, with apparent performance increasing rapidly even under partial leakage conditions. Lightweight models showed larger inflation in this experimental setting. Physics-based radiometric preprocessing using a \(T^4\) transformation provided modest benefit under patient-level validation but did not remove the dataset-dependent inflation gap. These findings do not invalidate previously reported strong thermography results; rather, they indicate that reports of near-perfect performance should be interpreted with appropriate caution when strict patient-level separation is not clearly documented.IntroductionInfrared thermography, which records physiological heat patterns associated with metabolic activity and vascularization in breast tissue, provides a non-ionizing, non-contact supplement to structural imaging1,2. Thermography, unlike mammography, focuses on functional thermal signals that can distinguish between benign and malignant tumors3. Clinical techniques often obtain numerous images per patient, including frontal, lateral, and oblique projections, to evaluate temperature distribution across breast surfaces4.While clinically necessary, this multi-view strategy poses significant methodological challenges for machine learning. Because multiple images are from the same patient, they naturally share patient-specific thermal baselines and positional artifacts. For a neural network, these embedded identity markers frequently provide a far simpler, more predictable learning shortcut than the disease’s physiological indicators. Deep learning studies in breast thermography frequently report AUC values approaching 1.05,6,7 (summarized in Table 12), substantially exceeding pooled meta-analytic estimates (sensitivity 88.5%, specificity 71.8%)8. The variation raises methodological concerns. Image-level cross-validation, a commonly used method, results in several views of the same patient in both training and validation sets. As a result, models may use patient-specific thermal baselines instead of learning features that apply to previously encountered patients.Patient overlap constitutes a form of data leakage that affects machine learning validity across medical domains9,10. When models are evaluated under non-disjoint partitioning, they frequently engage in “shortcut learning” to exploit patient-specific anatomical signatures. In neuroimaging, slice-level partitioning inflated accuracy by 30–55% compared with subject-level partitioning11. Similar effects have been documented in dermatology12 and radiology13, and regulatory guidance now emphasizes patient-level validation14. The fundamental question is not whether patient overlap affects performance—prior work has established this-but rather its unquantified magnitude in breast thermography and whether bias severity can be predicted from dataset characteristics.If datasets with higher patient overlap consistently produce larger performance inflation, overlap statistics (e.g., Jaccard index J) could serve as a calibration metric for interpreting published results. The implicit assumption underlying this intuition is that greater overlap produces greater bias. Alternatively, if bias magnitude varies unpredictably with dataset structure, each dataset requires empirical assessment—complicating efforts to calibrate reported performance against clinical utility. This distinction has direct implications for interpreting the growing body of thermography AI literature, where patient overlap metrics are rarely reported.We investigated if the impact of cross-validation methodology is affected by dataset structure and preprocessing methods. We hypothesized that the extent of evaluation bias varies per dataset rather than being a fixed, linear function of patient overlap. To examine this hypothesis, we took a dual approach. First, we evaluated two thermography datasets with contrasting native overlap characteristics—DMR-IR (5,444 images, 214 patients, \(J = 0.972\))15 and Mendeley Breast Thermography (357 images, 119 patients, \(J = 0.467\))16—under two cross-validation protocols (Protocol A: image-level, \(J> 0\); Protocol B: patient-level, \(J = 0\)). Second, to distinguish the influence of overlap density from cross-dataset confounders (such as image resolution and views-per-patient), we performed a controlled systematic adjustment of the Jaccard index (J) inside the DMR-IR dataset. The assessments used two preprocessing pipelines: global min-max normalization and physics-based radiometric transformation (\(T^4\)).By applying Nadeau-Bengio corrected statistical inference across an array of four neural network architectures, we were able to rigorously assess how dataset structure drives evaluation bias.In summary, our key contributions are:Empirical Quantification of Evaluation Inflation: We present the first controlled assessment of performance inflation caused by image-level partitioning in breast thermography. The magnitude was determined through rigorous patient-level comparison.Demonstration of Non-Linear Bias Saturation: By systematically adjusting patient overlap within a single dataset, we demonstrate that performance inflation saturates quickly at partial leakage levels, indicating that overlap density (J) alone cannot completely predict evaluation vulnerability.Identifying Dataset-Dependent Bias Modulation: We demonstrate that inflation severity varies with dataset structure rather than scaling linearly with native overlap density, resulting in a 2.6-fold difference between two separate cohorts.Isolation of Partitioning as the Primary Determinant: In a controlled comparison, we demonstrate that physics-based radiometric normalization yields minor baseline improvements but fails to minimize inflation, establishing partitioning strategy as the absolute determinant of validity.The analysis follows CLAIM17 and TRIPOD-AI18 reporting standards.Materials and methodsThis study used a controlled cross-dataset experimental methodology to determine the impact of partitioning method on model performance. Two thermography datasets with contrasting overlap characteristics were tested using the same training settings, architectures, and preprocessing methods. We quantified performance differentials attributable to patient overlap by systematically varying the cross-validation protocol while holding all other factors constant. Statistical inference was performed using Nadeau-Bengio corrected t-test to account for cross-validation dependency. The following subsection discuss the study’s design and scope, datasets, preprocessing techniques, model architectures, evaluation protocols, controlled overlap manipulation and statistical analysis.Study design and scopeThis cross-dataset comparative study used a multi-factorial experimental design to quantify evaluation bias arising from patient overlap in thermography deep learning.Experimental framework. The design was structured to establish the magnitude of evaluation bias and test its dependence on dataset characteristics (Figure 2). We evaluated two datasets with contrasting overlap density (DMR-IR: \(J = 0.972\); Mendeley: \(J = 0.467\)) across three axes:Partitioning & architecture: A \(2 \times 4\) comparison of cross-validation protocols (Protocol A: image-level, \(J> 0\); Protocol B: patient-level, \(J = 0\)) across four diverse architectures (ResNet-18, MobileNetV3-Small, ViT-Small, Swin-Tiny).Preprocessing: A \(2 \times 2\) comparison of physics-based radiometric transformation (\(E = \varepsilon \sigma T^4\)) versus conventional normalization under both protocols.Systematic adjustment of overlap: A controlled intra-dataset experiment within DMR-IR, systematically varying overlap (\(J = 0.00\) to 0.947) via bidirectional image-swapping to isolate the mechanics of data leakage from cross-dataset confounders.The performance differential (\(\Delta _{\text {perf}} = \text {AUC}_{\text {Protocol A}} - \text {AUC}_{\text {Protocol B}}\)) served as the primary outcome measure.Research questions.1.Existence: Does image-level partitioning artificially inflate perceived diagnostic performance in comparison to strict patient-level isolation?2.Dataset moderation: Is the size of this bias predictable in terms of static overlap density, or does it depend on the dataset?3.Leakage dynamics: Does performance inflation increase linearly with patient overlap, or does it quickly saturate at partial leakage levels?4.Robustness: Are these effects stable across designs with different inductive biases and insensitive to physics-based preprocessing?Statistical power and reporting. The DMR-IR cohort (\(M = 214\) patients; \(n \approx 43\) per validation fold) provided adequate statistical power (\(>90\%\)) to detect large protocol-induced effects (Cohen’s \(d \ge 0.8\)) at \(\alpha = 0.05\). Observed effect sizes exceeded this threshold for all architectures. The study adhered to CLAIM17 and TRIPOD-AI18 reporting guidelines for AI in medical imaging.DatasetTo assess patient-overlap effects across structurally different cohorts, we used two publicly available breast thermography datasets: DMR-IR15 and the Mendeley Breast Thermography Collection16 (Figure 1).The public DMR-IR registry contains a larger number of registered subjects than the final analytic cohort used in this study. For the present analysis, we included only records that satisfied three criteria: (i) a valid patient identifier, (ii) available and usable thermographic breast image files, and (iii) diagnostic information suitable for benign-versus-malignant classification. Records with missing diagnostic labels, incomplete metadata, unavailable or unusable image files, or incompatible entries were excluded before analysis. After applying these criteria, the final DMR-IR analytic cohort contained 5,444 thermal breast images from 214 unique patients.The DMR-IR images were acquired using a FLIR SC620 infrared camera (\(640 \times 480\) pixels, NETD \(< 50\) mK) at a single institution in Brazil. All usable view angles available for eligible patients were retained, including frontal, lateral, and oblique acquisitions. We did not exclude patients solely because they had fewer available images, because imposing a minimum number of views could introduce additional selection bias and would not reflect the heterogeneous multi-view structure of the public dataset. Therefore, patients with fewer images were included when they had at least one usable thermographic image, a valid patient identifier, and a diagnostic label. This resulted in a heterogeneous distribution of 1–30 images per patient, with a mean of approximately 25.4 images per patient. The image-level class distribution was 3,314 benign images (60.9%) and 2,130 malignant images (39.1%).The Mendeley dataset includes 357 thermal images from 119 distinct patients, with three images per patient, acquired at a single institution in Colombia at a native resolution of \(240 \times 320\) pixels. The image-level class distribution was 252 benign images (70.6%) and 105 malignant images (29.4%). Using the same partitioning procedure, the Mendeley dataset showed a substantially lower patient-overlap rate under Protocol A (\(J = 0.467\)) than the DMR-IR dataset (\(J = 0.972\)). This contrast allowed us to compare patient-overlap effects across datasets that differ in view multiplicity, image resolution, acquisition site, and class distribution. The characteristics of both datasets are summarized in Table 1.Fig. 1Full size imageRepresentative thermal images. (A) DMR-IR, with heterogeneous multi-view acquisition and a mean of 25.4 images per patient, and (B) Mendeley, with three images per patient. The examples illustrate the difference in view multiplicity between the two datasets.Table 1 Comparative dataset characteristics. Two datasets with contrasting structural properties enabled the assessment of dataset-dependent patient-overlap bias.Full size tableCross-validation protocolsWe analysed two partitioning methodologies that vary in their handling of patient identity (Figure 2).Protocol A (image-level partitioning) employed stratified K-fold cross-validation (\(K=5\)) to partition images into training and validation sets, disregarding patient identification. This method, conventionally employed in medical imaging research9, allows images from the same patient to appear in both partitions inside a certain fold.Protocol B (patient-level partitioning) utilized stratified group K-fold cross-validation (\(K=5\)) to guarantee that all images from each patient were solely assigned to either the training or validation set in each fold. This was implemented to guarantee that \(J = 0\) by design. Each unique patient ID functioned as an indivisible atomic unit across partitions, facilitated by scikit-learn’s StratifiedGroupKFold, which utilized patient IDs as the grouping variable. Patient-level splitting conforms to FDA standards for validating medical AI and adheres to the recommendations of the CLAIM checklist. The Jaccard index was calculated for all folds in Protocol B to assess patient separation; all folds reached, \(J = 0.000\) which was verified through automated verification of patient IDs. The primary outcome of interest was the differences in average performance between the two protocols (\(\Delta _{\text {perf}}\)).Fig. 2Full size imageCross-dataset framework for evaluating bias. DMR-IR and Mendeley were assessed under identical preprocessing, partitioning, and architectures. Inflation was defined as \(\Delta _{\text {perf}} = \text {AUC}_A - \text {AUC}_B\).Thermal image preprocessingThe input thermal-image files contained per-pixel temperature values in degrees Celsius. The matrices were loaded and cast to 32-bit floating-point format to preserve the thermal measurements.Before radiometric transformation, cold metallic identification tags were detected as connected components with temperatures below \(25^{\circ }\textrm{C}\). Morphological opening and component-size and shape criteria were used to identify compact tag-like regions. Detected artifacts were dilated and replaced using values from a local median-filtered thermal field.For the radiometric pipeline, the cleaned temperature matrix was converted from Celsius to Kelvin according to$$\begin{aligned} T_{K}=T_{C}+273.15, \end{aligned}$$(1)where \(T_C\) denotes the per-pixel temperature in degrees Celsius. Radiant exitance was then calculated using the Stefan–Boltzmann relation:$$\begin{aligned} E=\epsilon \sigma T_{K}^{4}, \end{aligned}$$(2)where \(\epsilon =0.98\) represents the approximate emissivity of human skin and \(\sigma =5.670374419\times 10^{-8}\,\textrm{W}\,\textrm{m}^{-2}\,\textrm{K}^{-4}\) is the Stefan–Boltzmann constant.To limit the influence of isolated extreme values, radiance values above the 99.9th percentile of each image were truncated. The resulting radiance matrix was then normalized using fixed global radiance bounds:$$\begin{aligned} I=\frac{E-E_{\min }}{E_{\max }-E_{\min }}, \end{aligned}$$(3)where \(E_{\min }=470\,\textrm{W}/\textrm{m}^2\) and \(E_{\max }=620\,\textrm{W}/\textrm{m}^2\). Values outside the resulting interval were clipped to [0, 1]. Using fixed radiance bounds, rather than image-wise normalization, preserved a common physical scale across patients.For the conventional preprocessing pipeline, the cleaned Celsius temperature matrix was normalized independently for each image using$$\begin{aligned} I_{\textrm{linear}} = \frac{T_C-\min (T_C)}{\max (T_C)-\min (T_C)}. \end{aligned}$$(4)The radiometric and conventional images were subsequently resized to \(224\times 224\) pixels and replicated across three channels to match the input requirements of the ImageNet-pretrained architectures.The primary Protocol A versus Protocol B comparison used the radiometric pipeline. Conventional per-image linear normalization was included as a robustness comparison to determine whether the observed performance inflation was attributable primarily to preprocessing or to the partitioning strategy. Interpretation emphasized Protocol B because it enforced patient-disjoint partitioning and prevented repeated images from the same patient from appearing in both training and validation sets.Model architecture selectionTo assess whether evaluation bias varies across diverse inductive biases and model capacities (\(2.5\text {M}\) to \(28\text {M}\) parameters), we evaluated four representative architectures: ResNet-1819, MobileNetV3-Small20, ViT-Small21, and Swin-Tiny22. These architectures were selected not to maximize absolute performance, but to examine whether patient-overlap bias was consistent across major deep learning model families. ResNet-18 was included as a standard residual convolutional baseline that is widely used in medical image classification. MobileNetV3-Small was selected as a lightweight and parameter-efficient CNN, representing models suitable for resource-constrained deployment. ViT-Small was included to represent a global self-attention transformer with patch-based image representation, while Swin-Tiny was selected as a hierarchical transformer that combines local window attention with multi-scale feature learning. Together, these models span classical CNN, efficient CNN, global transformer, and hierarchical transformer designs, allowing us to test whether the observed evaluation inflation was architecture-specific or a broader consequence of patient overlap.All models were initialized with ImageNet weights. Classification heads were replaced with a single linear layer followed by sigmoid activation for binary classification. Native thermograms were bilinearly resized to \(224 \times 224\) pixels, and the single thermal channel was triplicated to match pretrained input dimensions. This resizing was required to match the input format of the ImageNet-pretrained backbones and to maintain a uniform comparison across architectures. We acknowledge that resizing from the native resolutions may remove fine spatial thermal details or alter aspect-related information, which could affect the absolute performance of the evaluated architectures. However, the same resizing and input-conversion procedure was applied across all architectures and protocols; therefore, resizing should not systematically favor either Protocol A or Protocol B and is unlikely to explain the observed protocol-dependent performance inflation. To isolate architectural vulnerability from optimization artifacts, all training protocols, preprocessing pipelines, and hyperparameters were held constant across all models.Implementation and training detailsModels were trained utilising the AdamW optimizer23. Binary cross-entropy loss utilized inverse-frequency class weighting to mitigate class imbalance (benign:malignant ratio 61 : 39 for DMR-IR; 12 : 5 for Mendeley). Training was overseen with validation AUC with a patience of 12 epochs for early termination, implemented uniformly across both methods. Detailed hyperparameter definitions are provided in Table 2 which were held strictly constant across all architectures and experimental conditions.Table 2 Computational Environment and Model Training Configuration. These parameters were applied uniformly across all experimental conditions.Full size tableThe 5-fold cross-validation approach increased statistical power for protocol comparison by utilizing all available patients in each dataset (214 in DMR-IR and 119 in Mendeley Breast Thermography). Both Protocol A and Protocol B employed within-dataset evaluation methodologies; absolute generalization would require external validation on independent multi-institutional cohorts. Decision-analytic metrics (e.g., decision curve analysis, net benefit) that account for prevalence and clinical context are recognized as vital for assessing clinical utility, although they remain beyond the scope of the current methodology.Controlled overlap manipulationTo isolate the effect of patient overlap density from cross-dataset confounding variables (e.g., native resolution, views-per-patient, and institutional demographics), we conducted a controlled intra-dataset manipulation within the DMR-IR cohort. Using the ResNet-18 architecture, we systematically varied the Jaccard index (J) between training and validation folds to assess performance across a range of overlap severity. We started with strict patient-level isolation (\(J=0\)) and gradually added validation patients to the training set, with target overlap ratios of 0.25, 0.50, 0.75, and 0.97.We used a bidirectional image-swapping procedure (Figure 3) to ensure that any observed performance inflation was caused by identity leaking rather than an increase in training data amount. Every validation image leaked into the training set was replaced with an equal number of images from non-leaked training patients. This resulted in mathematically identical partition sizes across all overlap levels (4,341 training and 1,103 validation pictures for Fold 0). The actual measured J for each fold was documented and plotted against the resulting performance disparity.Fig. 3Full size imageControlled overlap manipulation protocol. a, Baseline strict patient-level isolation (\(J=0\)). b, Bidirectional compensatory swap maintains constant partition sizes (\(|S_{\textrm{train}}| = 4,341\); \(|S_{\textrm{val}}| = 1,103\)) to isolate identity leakage from dataset volume inflation. c, Synthesis of the target overlap gradient (J) across 5-fold cross-validation.Statistical analysisPrimary Outcome. Area under the receiver operating characteristic curve (AUC) measures discrimination ability regardless of threshold selection:$$\begin{aligned} \text {AUC} = \int _0^1 \text {TPR}(\text {FPR}^{-1}(t))\, dt = P(\hat{y}_{+}> \hat{y}_{-}) \end{aligned}$$(5)where TPR denotes true positive rate and FPR denotes false positive rate, and the probabilistic interpretation represents correct ranking of randomly sampled positive-negative pairs.Secondary Metrics. Threshold-dependent metrics were evaluated at the optimal operating point determined by the Youden Index (\(J_Y\)), which maximizes the sum of sensitivity and specificity:$$\begin{aligned} \text {Sensitivity}&= \frac{\textrm{TP}}{\textrm{TP} + \textrm{FN}} \end{aligned}$$(6)$$\begin{aligned} \text {Specificity}&= \frac{\textrm{TN}}{\textrm{TN} + \textrm{FP}} \end{aligned}$$(7)$$\begin{aligned} \text {Accuracy}&= \frac{\textrm{TP} + \textrm{TN}}{\textrm{TP} + \textrm{TN} + \textrm{FP} + \textrm{FN}} \end{aligned}$$(8)$$\begin{aligned} J_Y&= \text {Sensitivity} + \text {Specificity} - 1 \end{aligned}$$(9)where \(\textrm{TP}\), \(\textrm{TN}\), \(\textrm{FP}\), and \(\textrm{FN}\) denote true positives, true negatives, false positives, and false negatives, respectively.Patient Overlap Quantification. For each fold k, the Jaccard similarity index quantified patient overlap:$$\begin{aligned} J_k = \frac{|\mathcal {P}_{\text {train},k} \cap \mathcal {P}_{\text {val},k}|}{|\mathcal {P}_{\text {train},k} \cup \mathcal {P}_{\text {val},k}|} \end{aligned}$$(10)where \(\mathcal {P}_{\text {train},k}\) and \(\mathcal {P}_{\text {val},k}\) denote the patient ID sets in training and validation partitions. Values range from \(J=0\) (complete separation) to \(J=1\) (identical sets).Statistical Testing. Cross-validation fold dependence was addressed using Nadeau-Bengio corrected t-tests25, which inflate variance to account for non-independence:$$\begin{aligned} \text {Var}(\Delta ) = \left( \frac{1}{K} + \frac{n_{\text {test}}}{n_{\text {train}}}\right) \sigma ^2 \end{aligned}$$(11)where \(K=5\), \(n_{\text {test}}/n_{\text {train}} = 1/4\), and \(\sigma ^2\) is the sample variance of fold-wise differences.Effect Sizes. Cohen’s \(d = \bar{\Delta }/s_{\Delta }\) was computed with standard thresholds: \(|d| < 0.2\) (negligible), \(0.2 \le |d| < 0.5\) (small), \(0.5 \le |d| < 0.8\) (medium), and \(|d| \ge 0.8\) (large).Uncertainty Quantification. Patient-level cluster bootstrap (B=2,000) with 95% confidence intervals using the percentile method respected the hierarchical structure of multiple images per patient.Patient-Level Aggregation. To evaluate clinical deployment utility and ensure effective sample sizes were not artificially inflated by intra-patient view correlation, secondary threshold-dependent metrics (Sensitivity, Specificity) and AUC were computed at the patient level exclusively for models evaluated under Protocol B. For each patient, view-level validation probabilities were aggregated using three rules: max-pooling (highest malignant probability among a patient’s views), mean-pooling (average probability), and worst-view (minimum malignant probability).ResultsProtocol-dependent performance and dataset interactionUnless otherwise specified, the Protocol A versus Protocol B comparisons in Sections 3.1–3.4 are reported at the image level. In this context, “patient-level” refers to the partitioning strategy used in Protocol B, where all images from the same patient are assigned to only one fold. Thus, the reported AUC, sensitivity, specificity, and confusion matrix values in these sections remain image-level metrics. Patient-level aggregated performance is reported separately in Section 3.5. We first established the phenomenon of protocol-dependent performance in the DMR-IR dataset, which exhibited high patient overlap under image-level partitioning (\(J = 0.972\)). Under Protocol A (image-level partitioning), all four architectures achieved near-ceiling image-level performance (AUC \(\ge\) 0.999). Under Protocol B (patient-level partitioning, \(J = 0\)), image-level performance declined to AUC 0.944–0.962. The performance differential (\(\Delta _{\text {perf}} = \text {AUC}_\text {A} - \text {AUC}_\text {B}\)) ranged from \(+3.7\)% (ResNet-18) to \(+5.5\)% (ViT-Small), with a mean of \(+4.8\)%.This confirmed that patient overlap artificially inflated apparent performance by 3.7–5.5 percentage points in this high-overlap dataset. Fold-wise variability under Protocol B (Table 3) illustrates the increased generalization uncertainty when models encounter previously unseen patients. Representative ROC curves are shown in Figure 4.Table 3 Fold-wise image-level AUC under Protocol B (patient-level partitioning, DMR-IR). Bold indicates the best performance per fold.Full size tableFig. 4Full size imageROC Curves Comparing Cross-Validation Protocols Across Datasets. (A) DMR-IR dataset using ResNet-18; (B) Mendeley dataset using ViT-Small.To test whether this protocol effect generalized beyond DMR-IR, we ran identical analyses on the Mendeley dataset. Table 4 and Figure 5 show that the magnitude of evaluation bias differed substantially across the two cohorts, providing empirical evidence of a dataset-moderated protocol effect. The mean performance differential was \(+4.8\%\) for DMR-IR and \(+12.6\%\) for Mendeley.Table 4 Cross-dataset protocol comparison with 95% bootstrap confidence intervals. AUC values are image-level metrics. Protocol A denotes image-level partitioning, whereas Protocol B denotes patient-level partitioning with patient-disjoint folds. \(\Delta _{\text {AUC}}\) represents the image-level performance differential, with \(B=2{,}000\) cluster-bootstrap resamples.Full size tableFig. 5Full size imageCross-dataset performance summary. (A) AUC under Protocol A versus Protocol B for all architectures in both datasets. (B) Structural comparison: DMR-IR and Mendeley differ in patient count, view multiplicity, and overlap density. (C) The performance differential (\(\Delta _{\text {perf}}\)) was substantially larger in Mendeley than in DMR-IR across all architectures.This moderation was counterintuitive. As detailed in Table 5 and visualized in Figure 6, if bias magnitude were strictly proportional to patient overlap, DMR-IR (\(J = 0.972\)) should have exhibited larger bias than Mendeley (\(J = 0.467\)). The observed inverse pattern—lower overlap associated with a \(2.6\times\) larger bias—indicates that static overlap statistics alone do not reliably predict evaluation vulnerability. The non-overlapping confidence intervals (DMR-IR: \(+3.7\) to \(+5.5\%\); Mendeley: \(+8.3\) to \(+16.2\%\)) confirm that the observed 2.6-fold divergence substantially exceeds measurement uncertainty.Table 5 Dataset-moderated performance inflation. The table illustrates the inverse relationship between patient overlap density (J) and the resulting evaluation bias. Lower overlap was associated with greater performance inflation.Full size tableFigure 6 visualizes the inverse relationship between overlap density and bias magnitude.Fig. 6Full size imageInverse relationship between patient overlap density and evaluation bias magnitude. Each point represents one dataset (DMR-IR: \(J = 0.972\), \(\Delta = +4.8\)%; Mendeley: \(J = 0.467\), \(\Delta = +12.6\)%). The figure shows lower overlap density was associated with larger performance inflation.Controlled overlap manipulationAs in the main protocol comparison, AUC in this controlled overlap analysis was computed at the image level, while patient identifiers were used to define and manipulate the degree of overlap between training and validation partitions. To separate the influence of patient overlap from cross-dataset confounders, we measured performance across a controlled overlap gradient in the DMR-IR dataset. Using the bidirectional swapping approach (Section 2.7), we gradually increased the measured overlap (J) from 0.00 to 0.947 while maintaining partition sizes.Table 6 and Figure 7 show that performance inflation scales nonlinearly with patient leakage. Moving from strict isolation (\(J=0.00\), AUC 0.956) to partial overlap (\(J = 0.489\)) resulted in quick saturation in apparent performance, inflating the AUC by \(+2.17\%\). Subsequent increases resulted in diminishing returns: reaching near-complete overlap (\(J = 0.947\)) produced just \(+2.14\%\) of inflation, with an AUC of 0.999. This demonstrates that networks actively exploit identification shortcuts even when only a small portion of the cohort is compromised, clearly explaining the substantial bias reported in the partially overlapping Mendeley dataset.Fig. 7Full size imageNon-Linear Performance Inflation due to Data Leakage. Validation AUC inflation (\(\Delta _{\text {AUC}}\)) is plotted against controlled patient overlap (J) using ResNet-18 on the DMR-IR dataset. Introducing partial overlap triggers a rapid saturation in apparent performance, demonstrating that networks exploit identity shortcuts even under limited leakage conditions. Error bars represent 95% confidence intervals across 5 folds.Table 6 Results of controlled overlap manipulation (DMR-IR, ResNet-18). Target J represents the initial leakage parameter, while Actual J represents the mathematically measured overlap after the bidirectional image swap. \(\Delta _{\text {AUC}}\) represents the inflation relative to the strict patient-level isolation baseline (\(J=0\)).Full size tableArchitecture-level consistencyArchitecture-specific bias ranking was largely preserved across both datasets (Table 7 and Figure 8). ResNet-18 exhibited the smallest differential in both DMR-IR (\(+3.7\)%) and Mendeley (\(+8.3\)%).MobileNetV3-Small showed among the largest bias in both datasets (\(+4.6\)% and \(+16.2\)%, respectively).Table 7 Architecture Bias Ranking Across Datasets. Rank ordering from smallest (1) to largest (4) bias magnitude.Full size tableFig. 8Full size imageArchitecture-consistent bias ranking across datasets. (A) Performance differential by architecture for both datasets. (B) Rank preservation: Despite the 2.6-fold variation in bias magnitude, relative architecture vulnerability was consistent across datasets.This cross-dataset consistency of architecture vulnerability provided additional evidence that the protocol effect reflected a systematic phenomenon rather than dataset-specific noise. Under Protocol B, Nadeau-Bengio corrected pairwise t-tests revealed no statistically significant architecture differences in DMR-IR (all \(p> 0.17\)), although the 1.8% AUC span (0.944–0.962) indicated descriptive variation.Clinical performance metrics across datasetsThe clinical performance metrics in this section are computed at the image level to maintain direct comparability between Protocol A and Protocol B. Thus, these values quantify the effect of partitioning strategy on image-level validation performance, not patient-level diagnostic aggregation. Table 8 presents clinical performance metrics under both protocols for both datasets. The protocol effect extended beyond AUC to clinically relevant operating characteristics.Table 8 Clinical Performance metrics by cross-validation protocol across datasets. sensitivity, specificity, and AUC at the Youden operating point. \(\Delta _{\text {AUC}}\) was computed within each dataset (Protocol A − Protocol B).Full size tableIn DMR-IR, sensitivity declined from 98.7% (Protocol A) to 88.0% (Protocol B), and specificity from 98.6% to 86.7%. The inflation of operating characteristics (10.7% sensitivity, 11.9% specificity) exceeded the AUC inflation of 4.8%, indicating that threshold-dependent metrics were particularly vulnerable to patient overlap artefacts. Sensitivity and specificity comparisons under both protocols are presented in Figure 9.Fig. 9Full size imageSensitivity and specificity across datasets and protocols. (A) Sensitivity and (B) specificity for four architectures under Protocol A (image-level) and Protocol B (patient-level) partitioning, shown separately for DMR-IR and Mendeley datasets.Table 9 presents confusion matrix statistics under Protocol B, illustrating dataset-specific error patterns.Table 9 Cross-dataset confusion matrix comparison (Protocol B). Statistics at the Youden optimal threshold revealed different error patterns despite identical patient-level partitioning (\(J=0\)).Full size tableCorresponding confusion matrices are provided in Figure 10.Fig. 10Full size imageConfusion Matrices for Best-Performing Architectures Under Both Protocols. (A) DMR-IR Protocol A (ResNet-18); (B) DMR-IR Protocol B (ResNet-18); (C) Mendeley Protocol A (ViT-Small); (D) Mendeley Protocol B (ViT-Small). Values represent image-level counts at the Youden operating point (\(J_Y\)).Patient-level aggregation sensitivity analysisTo avoid conflating image-level validation metrics with patient-centric diagnostic performance, we conducted a patient-level aggregation sensitivity analysis under strict patient-level partitioning (Protocol B) using three aggregation strategies (Table 10). Because Protocol B enforces patient-disjoint folds, all images from a validation patient could be aggregated without leakage from the same patient appearing in the training set. Max-pooling and mean-pooling yielded comparable and highly robust diagnostic performance in the DMR-IR cohort (mean AUC 0.962). In Mendeley, mean-pooling provided slightly superior stability (AUC 0.714) compared to max-pooling (AUC 0.701) and worst-view pooling (AUC 0.699). The preservation of measurable performance under patient-level aggregation suggests that the evaluated architectures retain patient-level discriminative ability under internal validation. However, external multi-institutional validation and decision-analytic evaluation are still required before broader claims of clinical utility can be made.Table 10 Patient-level aggregation sensitivity analysis (Protocol B). Metrics represent the mean across all four architectures (ResNet-18, MobileNetV3-Small, ViT-Small, Swin-Tiny). Sensitivity and specificity were computed at the Youden-optimal threshold.Full size tablePhysics-based preprocessing effectThe \(2 \times 2 \times 2\) factorial analysis ({DMR-IR, Mendeley} \(\times\) {Protocol A, Protocol B} \(\times\) {Conventional, Physics-based}) assessed whether radiometric preprocessing modulated the protocol effect (Table 11). Under Protocol A, preprocessing had minimal impact on either dataset (DMR-IR: AUC > 0.998; Mendeley: AUC 0.83–0.95). Under Protocol B, physics-based preprocessing provided a modest improvement in DMR-IR (\(+1.9\)% mean) but negligible benefit in Mendeley (\(+0.5\)% mean), with two architectures showing negative effects.Table 11 Preprocessing effect under patient-level validation (Protocol B). Physics-based \(T^4\) transformation versus conventional min-max normalization. Mean AUC ± SD across 5 folds.Full size tableThe performance differential remained large regardless of preprocessing method (DMR-IR: \(\Delta _{\text {perf}}> +3.6\)%; Mendeley: \(\Delta _{\text {perf}}> +8.3\)%), confirming that partitioning strategy—not preprocessing—remains the dominant determinant of performance inflation across datasets.DiscussionThis study demonstrates that the choice of cross-validation protocol systematically distorts reported diagnostic performance in breast thermography deep learning. By replicating the near-perfect accuracy typically stated in the literature under image-level partitioning and then exhibiting a constant performance loss under strict patient-level isolation, our results indicate that neural networks can exploit patient-specific leakage under image-level partitioning. This suggests that, under image-level partitioning, models may partially rely on patient-specific thermal baselines and positional or acquisition-related artifacts rather than only disease-relevant signals.The central finding of this cross-dataset investigation is that evaluation bias severity is moderated by dataset structural characteristics—a Dataset \(\times\) Protocol interaction that violates the intuitive assumption of monotonic overlap-bias correspondence. Under identical experimental conditions, DMR-IR (high overlap, \(J = 0.972\)) exhibited moderate performance inflation (\(+4.8\)% mean AUC). Meanwhile, Mendeley (moderate overlap, \(J = 0.467\)) exhibited substantially larger bias (\(+12.6\)% mean, range: \(+8.3\) to \(+16.2\)%). This 2.6-fold divergence contradicted the expectation that higher patient overlap should produce larger evaluation bias; instead, the dataset with lower overlap produced greater vulnerability.The magnitude of this divergence substantially exceeded measurement uncertainty. The 95% bootstrap confidence intervals were fully separated (DMR-IR: \(+3.7\) to \(+5.5\)%; Mendeley: \(+8.3\) to \(+16.2\)%). Furthermore, the standardised effect size for between-dataset difference in bias magnitude (Cohen’s \(d = 3.1\)) far exceeded conventional thresholds for large effects. These statistics supported the interpretation that the effect of cross-validation protocol on measured performance depended on which dataset was analysed—a structured moderation effect rather than simple heterogeneity. Although \(N=2\) datasets cannot establish a universal predictive relationship, this pattern provides proof-of-existence for dataset-dependent evaluation vulnerability. However, the observed dataset-dependent modulation should be interpreted cautiously. DMR-IR and Mendeley differ simultaneously in several structural and acquisition-related properties, including native image resolution, number of views per patient, acquisition institution, imaging protocol, sample size, and class distribution. Therefore, the present two-dataset comparison supports the conclusion that dataset structure moderates patient-overlap bias, but it cannot fully localize which individual dataset characteristic is responsible for the observed difference in inflation magnitude. The 2.6-fold divergence should therefore be interpreted as evidence of dataset-dependent vulnerability rather than as proof that overlap density, view multiplicity, resolution, or class balance alone caused the effect. To isolate the mechanics underlying this dataset-dependent vulnerability, we conducted a controlled overlap manipulation. By holding dataset volume constant while systematically adjusting leakage, we demonstrated that performance inflation does not scale linearly with overlap density (J). The introduction of even minor leakage (\(J \approx 0.49\)) triggered a rapid saturation in apparent performance. These results suggest that neural networks can exploit patient-identity shortcuts even when only a fraction of the cohort is compromised. This dynamic explains the severe bias observed in the partially overlapping Mendeley cohort.The preservation of architecture-specific bias patterns across both datasets provided additional evidence for systematic rather than stochastic evaluation vulnerability. ResNet-18 exhibited the smallest performance differential in both contexts (\(+3.7\)% in DMR-IR; \(+8.3\)% in Mendeley), whereas MobileNetV3-Small showed among the largest (\(+4.6\)% and \(+16.2\)%, respectively). This cross-dataset rank stability suggested that architectural properties—rather than dataset-specific noise—drove differential vulnerability to patient-level shortcuts. The pattern is consistent with the hypothesis that efficient architectures with aggressive parameter compression may preferentially encode low-dimensional patient-specific features, although validation would require gradient attribution studies.Physics-based radiometric preprocessing (\(T^4\) transformation) provided modest improvement under Protocol B in both datasets (DMR-IR: \(+1.9\)%; Mendeley: \(+0.5\)%), but did not reduce the protocol-induced performance inflation. The cross-validation gap persisted regardless of preprocessing method. This indicates that structural partitioning strategy—not radiometric transformation—governs evaluation vulnerability in thermography deep learning.Several mechanistic interpretations may explain the inverse overlap-bias relationship, although these remain hypotheses requiring validation. In DMR-IR (\(J = 0.972\)), near-complete patient overlap may saturate patient-specific feature learning, limiting the discriminative value of individual patient signatures. In Mendeley (\(J = 0.467\)), the combination of overlapping and non-overlapping patients may provide stronger learning signals for patient identification—paralleling studies in face recognition26, where partial identity overlap boosted identity discriminative learning. These interpretations imply, but do not demonstrate, that dataset structure features other than overlap density influence the exploitability of patient-level correlations. It is also important to emphasize that both Protocol A and Protocol B are within-dataset validation settings. Patient-level partitioning removes direct leakage from repeated images of the same patient and provides a stronger estimate of internal generalization to unseen patients within the same dataset. However, it does not establish external generalization across institutions, imaging devices, acquisition protocols, or patient populations. Consequently, the present findings should be interpreted as evidence of internal validation bias rather than as evidence of external clinical generalizability. It is also important to distinguish patient-level partitioning from patient-level metric computation. The primary Protocol A versus Protocol B comparisons reported in this study are image-level performance estimates. In Protocol B, “patient-level” refers to the partitioning strategy, whereby all images from a given patient are assigned exclusively to either the training or validation fold. Patient-level performance was evaluated separately through aggregation of view-level predictions for each validation patient. Accordingly, the protocol comparison quantifies inflation in image-level evaluation, whereas the aggregation analysis provides a patient-centric internal-validation summary under patient-disjoint partitioning. The consequences for understanding the thermography AI literature are significant. Published studies on the DMR-IR dataset frequently report AUC values exceeding 0.99 and accuracy above \(98\%\)5,6,7—performance levels that appear higher than pooled clinical meta-analytic estimates (sensitivity \(88.5\%\), specificity \(71.8\%\))8. Our data indicate that the evaluation process may substantially contribute to this disparity. Under patient-level partitioning, image-level performance in DMR-IR fell to AUC 0.94–0.96, demonstrating that the cross-validation technique has a significant impact on reported performance. Furthermore, the 2.6-fold difference in bias size among datasets indicates that overlap statistics alone cannot predict probable inflation. These findings highlight the need for transparently disclosing partitioning techniques and patient-overlap measures when reporting extremely high performance in multi-view datasets. Strict patient-level isolation should be considered essential for rigorous internal validation, but independent multi-institutional testing remains necessary before broader clinical generalizability or clinical utility can be claimed. This interpretation should not be taken to mean that previously reported strong thermography results are invalid. Rather, it indicates that such results should be interpreted in relation to the validation partitioning strategy, especially whether strict patient-level separation was clearly documented.Table 12 Comparison of evaluation protocols and reported performance in thermography studies. NR = Not Reported. \(^{\dagger }\)Khan et al.31 report 1,339 “unique patients,” which exceeds the commonly cited DMR-IR patient count15.This discrepancy could arise from different dataset versions, preprocessing choices, or reporting conventions.Full size tableLimitationsThis study has several limitations that should be considered when interpreting the results.1.Limited number of datasets ( \(N=2\) ): The cross-dataset comparison demonstrates that the magnitude of patient-overlap bias can differ between datasets, but it does not establish a predictive relationship between overlap density and bias magnitude. A larger number of datasets would be required to model how specific dataset properties influence the degree of evaluation inflation.2.Confounded dataset characteristics: DMR-IR and Mendeley differ not only in patient-overlap density, but also in native image resolution, number of views per patient, acquisition institution, imaging protocol, sample size, and class distribution. Therefore, the observed 2.6-fold difference in inflation magnitude should be interpreted as evidence that dataset structure moderates patient-overlap bias, not as proof that any single dataset characteristic independently determines the effect.3.Within-dataset validation only: Both Protocol A and Protocol B were performed within each dataset. Although patient-level partitioning removes direct leakage from repeated images of the same patient and provides a more valid estimate of internal generalization to unseen patients within the same dataset, it does not establish external generalization across institutions, devices, acquisition protocols, or patient populations. Independent multi-institutional validation remains necessary before broader clinical generalizability or clinical utility can be claimed.4.No mechanistic validation: The proposed explanations for dataset-dependent modulation, including partial-overlap saturation and architecture-specific vulnerability, remain interpretive. Feature-level analysis, representation similarity testing, or patient-identity prediction experiments would be required to verify the mechanisms by which models exploit patient-specific information.5.Domain specificity: The findings apply to breast thermography datasets with repeated patient views and may not directly extend to other medical imaging modalities. However, the general methodological concern of patient-level leakage is likely relevant to other multi-view or repeated-measure imaging settings.Despite these constraints, the observed divergence in inflation magnitude indicates that dataset-dependent evaluation vulnerability is an important source of heterogeneity in breast thermography deep learning. By showing that the effect of cross-validation protocol is moderated by dataset structure, this study shifts the focus from whether patient overlap matters to how dataset characteristics shape its impact. Nevertheless, the source of this dataset-dependent modulation cannot yet be fully localized, and future work should evaluate independent multi-institutional cohorts to determine whether patient-level performance transfers across devices, acquisition sites, and patient populations.ConclusionThis study shows that image-level cross-validation can substantially increase reported diagnostic performance in breast thermography deep learning when repeated images from the same patient are allowed to appear across training and validation partitions. Under such conditions, models may exploit patient-specific thermal signatures or acquisition-related patterns, producing overly optimistic internal validation results. Importantly, these findings do not invalidate previously reported strong thermography results; rather, they indicate that such results should be interpreted according to the validation partitioning strategy, particularly whether strict patient-level separation was clearly documented.Beyond this baseline inflation, we observed dataset-dependent evaluation vulnerability. Performance inflation did not increase linearly with the measured patient-overlap statistic (J), and the dataset with lower measured overlap showed larger performance inflation. However, the source of this dataset-dependent modulation cannot yet be fully localized. DMR-IR and Mendeley differ not only in overlap density, but also in native image resolution, number of views per patient, acquisition institution, imaging protocol, sample size, and class distribution. Therefore, the observed divergence should be interpreted as evidence that dataset structure moderates patient-overlap bias, not as proof that any single dataset characteristic independently explains the effect.Both Protocol A and Protocol B were evaluated within each dataset. Although strict patient-level partitioning with verified \(J=0\) provides a stronger estimate of internal generalization to unseen patients within the same dataset, it does not establish external generalization across institutions, devices, acquisition protocols, or patient populations. Independent multi-institutional validation remains necessary before broader clinical generalizability or clinical utility can be claimed.To improve evaluation reliability in multi-view medical imaging, we recommend:1.strict patient-level partitioning with verified \(J = 0\) whenever multiple correlated images per patient exist;2.transparent reporting of patient-overlap metrics alongside performance claims;3.empirical bias assessment for each dataset, because structural characteristics beyond overlap may modulate evaluation vulnerability;4.external multi-institutional validation before making claims of broader clinical generalizability or clinical utility.Data availabilityThe DMR-IR dataset is publicly available through the Visual Lab at the Federal University of Pernambuco (https://visual.ic.ufal.br/dmi/). Access and a curated version with documentation are also provided by SemilleroCV (https://huggingface.co/datasets/SemilleroCV/DMR-IR). The Mendeley Breast Thermography Dataset is available through Mendeley Data (https://data.mendeley.com/datasets/mhrt4svjxc/3). Both datasets were accessed in September 2025 for this study. No modifications were made to the original image files.All analysis code and trained model weights will be made publicly available upon publication.Code availabilityAll analysis code and trained model weights will be made publicly available upon publication.ReferencesRing, E. & Ammer, K. Infrared thermal imaging in medicine. Physiological Measurement 33, R33–R46 (2012).Article  CAS  PubMed  Google Scholar Ng, E.-K. A review of thermography as promising non-invasive detection modality for breast tumor. International Journal of Thermal Sciences 48, 849–859 (2009) https://www.sciencedirect.com/science/article/pii/S129007290800149X.Article  CAS  Google Scholar Gautherie, M. Thermopathology of breast cancer: Measurement and analysis of in vivo temperature and blood flow. Annals of the New York Academy of Sciences 335, 383–415 (1980).Article  CAS  PubMed  Google Scholar Lahiri, B., Bagavathiappan, S., Jayakumar, T. & Philip, J. Medical applications of infrared thermography: A review. Infrared Physics & Technology 55, 221–235 (2012) https://www.sciencedirect.com/science/article/pii/S1350449512000308.Article  CAS  Google Scholar Mohamed, E. A., Rashed, E. A., Gaber, T. & Karam, O. Deep learning model for fully automated breast cancer detection system from thermograms. PLOS ONE 17, 1–20. https://doi.org/10.1371/journal.pone.0262349 (2022).Article  CAS  Google Scholar Attallah, O. Harnessing infrared thermography and multi-convolutional neural networks for early breast cancer detection. Sci. Rep. https://doi.org/10.1038/s41598-025-09330-2 (2025).Article  PubMed  PubMed Central  Google Scholar Alshehri, A. & AlSaeed, D. Breast cancer diagnosis in thermography using pre-trained vgg16 with deep attention mechanisms. Symmetry 15, 582 (2023).Article  Google Scholar Goñi-Arana, A., Pérez-Martín, J. & Díez, F. J. Breast thermography: a systematic review and meta-analysis. Systematic Reviews 13, 295. https://doi.org/10.1186/s13643-024-02708-9 (2024).Article  PubMed  PubMed Central  Google Scholar Roberts, M. et al. Common pitfalls and recommendations for using machine learning to detect and prognosticate for COVID-19 using chest radiographs and CT scans. Nature Machine Intelligence 3, 199–217. https://doi.org/10.1038/s42256-021-00307-0 (2021).Article  Google Scholar Kapoor, S. & Narayanan, A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns 4, 100804 (2023) https://www.sciencedirect.com/science/article/pii/S2666389923001599.Article  PubMed  PubMed Central  Google Scholar Yagis, E. Effect of data leakage in brain MRI classification using 2D convolutional neural networks. Sci. Rep. https://doi.org/10.1038/s41598-021-01681-w (2021).Article  PubMed  PubMed Central  Google Scholar Daneshjou, R. et al. Disparities in dermatology AI performance on a diverse, curated clinical image set. Sci. Adv. https://doi.org/10.1126/sciadv.abq6147 (2022).Article  PubMed  PubMed Central  Google Scholar Zech, J. R. et al. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study. PLOS Medicine 15, 1–17. https://doi.org/10.1371/journal.pmed.1002683 (2018).Article  Google Scholar U.S. Food and Drug Administration. Artificial intelligence/machine learning (ai/ml)-based software as a medical device (samd) action plan. Tech. Rep., Center for Devices and Radiological Health, U.S. Food and Drug Administration (2021). https://www.fda.gov/media/145022/download. Published January 2021.da Silva, L. et al. A new database for breast research with infrared image. Journal of Medical Imaging and Health Informatics 4, 92–100 (2014).Article  Google Scholar Rodriguez-Guerrero, S. et al. Dataset of breast thermography images for the detection of benign and malignant masses. Data in Brief 54, 110503 (2024) https://www.sciencedirect.com/science/article/pii/S2352340924004724.Article  CAS  PubMed  PubMed Central  Google Scholar Mongan, J., Moy, L. & Kahn, C. E. Checklist for artificial intelligence in medical imaging (claim): A guide for authors and reviewers. Radiology: Artificial Intelligence 2, e200029 (2020). https://doi.org/10.1148/ryai.2020200029. PMID: 33937821,Collins, G. S. Making the black box more transparent: improving the reporting of artificial intelligence studies in healthcare. BMJ 385 (2024). https://www.bmj.com/content/385/bmj.q832. https://www.bmj.com/content/385/bmj.q832.full.pdf.He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778 (2016).Howard, A. Searching for mobilenetv3. In 2019 IEEE/CVF International Conference on Computer Vision (ICCV) 1314–1324 (2019).Dosovitskiy, A. et al. An image is worth 16x16 words: Transformers for image recognition at scale (2021). arXiv:2010.11929.Liu, Z. Swin transformer: Hierarchical vision transformer using shifted windows. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV) 9992–10002 (2021).Loshchilov, I. & Hutter, F. Decoupled weight decay regularization (2019). arXiv:1711.05101.Wightman, R. Pytorch image models. https://github.com/rwightman/pytorch-image-models (2019).Bengio, Y. & Grandvalet, Y. No unbiased estimator of the variance of k-fold cross-validation. In Thrun, S., Saul, L. & Schölkopf, B. (eds.) Advances in Neural Information Processing Systems, vol. 16 (MIT Press, 2003). https://proceedings.neurips.cc/paper_files/paper/2003/file/e82c4b19b8151ddc25d4d93baf7b908f-Paper.pdf.Phillips, P. J. et al. An introduction to the good, the bad, & the ugly face recognition challenge problem. In 2011 IEEE International Conference on Automatic Face & Gesture Recognition (FG), 346–353 (2011).Alshehri, A. & AlSaeed, D. Breast cancer detection in thermography using convolutional neural networks (cnns) with deep attention mechanisms. Applied Sciences 12, 12922 (2022).Article  CAS  Google Scholar Alzahrani, R. M. et al. Early breast cancer detection via infrared thermography using a CNN enhanced with particle swarm optimization. Scientific Reports 15, 25290. https://doi.org/10.1038/s41598-025-11218-0 (2025).Article  CAS  PubMed  PubMed Central  Google Scholar Veerlapalli, P. & Dutta, S. A hybrid GAN-based deep learning framework for thermogram-based breast cancer detection. Sci. Rep. https://doi.org/10.1038/s41598-025-04676-z (2025).Article  PubMed  PubMed Central  Google Scholar Jaafari, J., Ezzine, H., Khadija, D. & Douzi, S. Lightweight deep learning model with spatial attention for accurate and efficient breast cancer prediction. Scientific Reports 16 (2026).Khan, M. et al. Enhancing breast cancer detection through optimized thermal image analysis using PRMS-net deep learning approach. J. Imaging Inform. Med. 39, 864–883 (2025).Article  PubMed  PubMed Central  Google Scholar Download referencesAcknowledgementsThe authors gratefully acknowledge the support of the Multimedia University, Cyberjaya, Selangor, Malaysia (Grant No. PostDoc (MMUI/240029)); the Institute for Advanced Research (IAR), United International University (UIU), Bangladesh (Publication Research Grant No. IAR-2026-Pub-086); and the Miyan Research Institute (MRI), International University of Business Agriculture and Technology (IUBAT), Dhaka 1230, Bangladesh (Research Grant No. IUBAT-MRI-RG-2026). The authors also acknowledge Cognexa–Center for Intelligence, Knowledge and Innovation (CIKI), Dhaka, Bangladesh, for its collaborative research support and academic collaboration. The authors appreciate the financial and institutional support provided by the funding organizations, which facilitated the completion of this work.FundingThis work was supported by the Multimedia University, Cyberjaya, Selangor, Malaysia (Grant No. PostDoc (MMUI/240029)).Author informationAuthors and AffiliationsDepartment of Computer Science and Engineering, IUBAT—International University of Business Agriculture and Technology, Dhaka, BangladeshNazmul Huda, Md Zahidul Islam, Md Abdul Khalid Sondo, Iftekhar Ahmed, Md. Mahfuzul Haque, M. A. Awal & Ishtiak Al MamoonCentre for Image and Vision Computing (CIVC), Faculty of Artificial Intelligence and Engineering, Multimedia University, Cyberjaya, MalaysiaFahmid Al Farid & Hezerul Bin Abdul KarimFaculty of Computer Science and Informatics, Berlin School of Business and Innovation, Berlin, GermanyFahmid Al FaridAI and Big Data Department, Endicott College, Woosong University, Daejeon, South KoreaJia UddinDepartment of Computer Science and Engineering, United International University, Dhaka, BangladeshA. K. M. Muzahidul IslamAuthorsNazmul HudaView author publicationsSearch author on:PubMed Google ScholarFahmid Al FaridView author publicationsSearch author on:PubMed Google ScholarMd Zahidul IslamView author publicationsSearch author on:PubMed Google ScholarMd Abdul Khalid SondoView author publicationsSearch author on:PubMed Google ScholarIftekhar AhmedView author publicationsSearch author on:PubMed Google ScholarMd. Mahfuzul HaqueView author publicationsSearch author on:PubMed Google ScholarJia UddinView author publicationsSearch author on:PubMed Google ScholarA. K. M. Muzahidul IslamView author publicationsSearch author on:PubMed Google ScholarHezerul Bin Abdul KarimView author publicationsSearch author on:PubMed Google ScholarM. A. AwalView author publicationsSearch author on:PubMed Google ScholarIshtiak Al MamoonView author publicationsSearch author on:PubMed Google ScholarContributionsNazmul Huda: Conceptualization, Methodology, Software, Writing - original draft. Fahmid Al Farid: Software, visualization, & Investigation. Md Zahidul Islam: Conceptualization, Software, Data curation, Validation. Md Abdul Khalid Sondo: Formal analysis, Software. Iftekhar Ahmed: Data curation, Investigation. Md. Mahfuzul Haque: Investigation, Validation. Jia Uddin: Supervision, Writing - review & editing. A.K.M. Muzahidul Islam: Methodology, Formal analysis Writing - review. Hezerul Abdul Karim:Funding acquisition, Supervision, Writing - review & editing. M. A. Awal: Supervision, Validation - review & editing. Ishtiak Al Mamoon: Supervision, Writing - review & editing.Corresponding authorsCorrespondence to Hezerul Bin Abdul Karim or Ishtiak Al Mamoon.Ethics declarationsCompeting interestsThe authors declare no competing interests.Additional informationPublisher’s noteSpringer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.Supplementary InformationSupplementary Information. (download PDF )Rights and permissionsThis article is published under an open access license. Please check the 'Copyright Information' section either on this page or in the PDF for details of this license and what re-use is permitted. If your intended use exceeds what is permitted by the license or if you are unable to locate the licence and re-use information, please contact the Rights and Permissions team.About this article