Full text
47,827 characters
· extracted from
preprint-html
· click to expand
A Framework for Evaluating the Efficacy of Foundation Embedding Models in Healthcare | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search A Framework for Evaluating the Efficacy of Foundation Embedding Models in Healthcare Sonnet Xu , Haiwen Gui , Veronica Rotemberg , Tongzhou Wang , Yiqun T. Chen , Roxana Daneshjou doi: https://doi.org/10.1101/2024.04.17.24305983 Sonnet Xu 1 Stanford University Stanford , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Haiwen Gui 1 Stanford University Stanford , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Veronica Rotemberg 2 Memorial Sloan Kettering Cancer Center , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Tongzhou Wang 3 Massachusetts Institute of Technology Cambridge , MA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Yiqun T. Chen 1 Stanford University Stanford , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Roxana Daneshjou 1 Stanford University Stanford , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site For correspondence: ROXANAD{at}STANFORD.EDU Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Recent interest has surged in building large-scale foundation models for medical applications. In this paper, we propose a general framework for evaluating the efficacy of these foundation models in medicine, suggesting that they should be assessed across three dimensions: general performance, bias/fairness, and the influence of confounders. Utilizing Google’s recently released dermatology embedding model and lesion diagnostics as examples, we demonstrate that: 1) dermatology foundation models surpass state-of-the-art classification accuracy; 2) general-purpose CLIP models encode features informative for medical applications and should be more broadly considered as a baseline; 3) skin tone is a key differentiator for performance, and the potential bias associated with it needs to be quantified, monitored, and communicated; and 4) image quality significantly impacts model performance, necessitating that evaluation results across different datasets control for this variable. Our findings provide a nuanced view of the utility and limitations of large-scale foundation models for medical AI. 1. Introduction There is a global need for accessible medical care. A shortage of experts, especially in under-resourced countries, presents an opportunity to develop automated medical tools to assist this process through the use of artificial intelligence (AI). Deep learning approaches have demonstrated the ability to perform accurate generalization on highly variable medical classification tasks within fields such as dermatology ( Esteva et al., 2017 ; Han et al., 2020b ; Tschandl et al., 2018 ). However, current methods such as the Convolutional Neural Network (CNN) are computationally expensive to train and rely on large amounts of domain-specific data. Medical image and data scarcity due to factors ranging from quality control, and patient privacy, to the expensive cost of expert annotations, present a prohibitively large barrier to creating the large datasets necessary to train field-specific models. This makes the creation of domain-specific tools difficult. One proposed solution to this is the use of foundation models - large-scale models trained on large corpora of data that can then be fine-tuned on downstream tasks ( Gui et al., 2024 ). While the initial training of foundation models is data-hungry and computationally expensive, by learning general features from a wide range of data sources, they offer the potential to reduce the data, computing, and technical expertise necessary for building models from scratch for every task. However, the use of these foundation models in other domains such as language modeling has revealed that foundation models can hold intrinsic biases against certain demographic groups, in regard to aspects such as race, which limits their applicability. The lack of transparency about input data sources for the training of such models also raises concerns surrounding data diversity and representation. Because of this, their performance in novel tasks can be unpredictable and variable. This paper pilots a framework for evaluating the efficacy of foundation models in medicine. We suggest that these models should be evaluated through three dimensions: general performance, bias/fairness, and influence of confounders. Through the use of Google’s recently released dermatology embedding model ( Steiner, 2024 ), we demonstrate this new framework by specifically looking at general performance ( Sections 3.2.1 and 3.2.2 ), performance across skin tones ( Section 3.2.3 ), and the impact of photo quality as a potential confounder ( Section 3.2.4 ). First, we evaluate the effect of skin tone on internal representation, by generating over 10,000 embeddings for the International Skin Imaging Collaboration (ISIC) and Diverse Dermatology Images (DDI) datasets and comparing how similar their representations are across Fitzpatrick categories and skin conditions. Second, we evaluate performance by building linear classification models with the generated embeddings to assess the utility of these embeddings in downstream diagnostic tasks, comparing the performance to different zero-shot models. Third, we assess the impact of differing image quality on the foundation model as a potential confounder. Generalizable Insights about Machine Learning in the Context of Healthcare Our study proposes a new framework for evaluating the applicability of emerging foundation models to clinical tasks to help medical users. Our findings highlight the importance of evaluating robustness across three areas, specifically downstream performance, potential for bias, and possible confounding effects. Our work presents the following generalizable insights for machine learning and healthcare: 1) Skin color is a crucial internal differentiator for machine learning models, emphasizing the need to evaluate and address this potential bias; 2) General-purpose CLIP models encode substantial understanding of images relevant to medical tasks such as lesion diagnostics in dermatology. This suggests that these models serve as a strong baseline and building block for specialized medical AI efforts. 2. Related Work 2.1. Deep Learning in Healthcare In the past decade, there has been an increase in applications of deep learning techniques, including computer vision, natural language processing, and reinforcement learning, to healthcare. In particular, the field has seen tremendous progress in applying computer vision models to segmentation, detection, and classification of images in the medical setting ( Esteva et al., 2019 ). One of the most popular and successful algorithms in computer vision is the convolutional neural networks (CNN), which has been found to achieve physician-level accuracy at a broad variety of diagnostic tasks, including identifying diabetic retinopathy from images of the eye ( Gulshan et al., 2016 ), detecting breast lesions in mammograms ( Kooi et al., 2017 ), and analyzing spinal MRI images ( Jamaludin et al., 2017 ). In dermatology, multiple deep learning approaches have been developed, including ModelDerm ( Han et al., 2020b ), DeepDerm ( Esteva et al., 2017 ), and HAM10000 ( Tschandl et al., 2020 ). These models have all previously demonstrated state-of-the-art (SOTA) performance in diagnosing lesions from images of the skin, and have similarly been found comparable to dermatologists’ performance ( Haenssle et al., 2020 ; Esteva et al., 2017 ). Yet, despite the impressive performance by these SOTA algorithms, several of these algorithms have been shown to be poorly generalizable, resulting in variable performances when tested outside of the original experimental conditions ( Du-Harpur et al., 2020 ). 2.2. Foundation Models in Healthcare To help mitigate some of the limitations of traditional deep learning models, foundation models have become more popular ( Bommasani et al., 2022 ). These large-scale, computationally expensive and data-hungry models serve as the foundation for additional models to be built upon it. Using transfer learning, the base foundation model can be adjusted for specific tasks if needed. Unlike deep learning where large amounts of task-specific data must be available for the model to learn from, foundation models create broader general-purpose features that can be used in multiple scenarios. Google has recently released Derm Foundation, an foundational embedding model that is derived from deep learning applications to dermatology images ( Steiner, 2024 ). Derm Foundation is based on a BiT ResNet-101x3 that was trained in 2 stages. The first pretraining stage used contrastive learning to train on a large number of image-text pairs; the second stage fine-tuned this base model for diagnostic classification using clinical datasets. The team found that models built on top of the Derm Foundation embeddings for dermatology-related tasks achieved significantly higher quality than previous models, demonstrating that Derm Foundation can serve as a useful starting point to accelerate dermatology-related modeling tasks. 2.3. Biases in AI Models in Dermatology Many AI models in dermatology suffer from lack of skin tone representation in training and testing datasets, resulting in biased performance on different Fitzpatrick skin tones. Some studies only validate models on a single race from a specific region ( Han et al., 2020a ). Previous work showed SOTA models performed significantly worse on images from patients with Fitzpatrick V/VI ( Daneshjou et al., 2022 , 2021 ). One case study showed that only 17% of FST VI images were correctly diagnosed through models that were predominately trained on light skin types ( Kamulegeya et al., 2023 ). 3. Methods 3.1. Datasets We evaluate the embeddings of dermatology foundation models on two different datasets: the Diverse Dermatology Imgaes Dataset (DDI), and the International Skin Imaging Collaboration (ISIC) 2018 dataset. DDI is a benchmark dataset with 656 images of skin disease across skin tones with labels confirmed via biopsy and histopathology ( Daneshjou et al., 2022 ). Each image includes the biopsy-proven diagnosis in addition to a broad categorization of lesions into malignant and benign. Each image also contains information about the Fitzpatrick skin type (FST), a scale that is frequently used in dermatology to quantify skin tones ( Fitzpatrick, 1988 ). The dataset was designed to allow matching patient characteristics for direct comparison between patients classified as FST V–VI (dark skin tones) and patients with FST I–II (light skin tones). The FST I–II, III-IV, and V-VI subgroups in DDI consist of 208 images (159 benign and 49 malignant), 241 images (167 benign and 74 malignant), and 207 images (159 benign and 48 malignant), respectively. DDI also included an image quality score, which was the mean from independent assessments by three board-certified dermatologists. The initial image quality scores range from 0 (highest quality) to 4 (lowest quality), but images with a score of 4 were removed from the final dataset. The ISIC 2018 dataset ( Tschandl et al., 2018 ; Codella et al., 2019 ) consists of 10,015 dermatoscopic images of pigmented lesions collected from Austria and Australia. The dataset includes seven diagnostic categories: 1) 327 cases of actinic keratoses and intraepithelial carcinoma (akiec), 2) 514 cases of basal cell carcinoma (bcc), 3) 1,099 cases of benign keratosis (bkl), 4) 115 cases of dermatofibroma (df), 5) 6,705 cases of melanocytic nevi (nv), 6) 1,113 cases of melanoma (mel), and 7) 142 cases of vascular lesions (vasc). More than 50% of these lesions were confirmed by pathology, and the ground truth for the remaining cases was determined via follow-up, expert consensus, or confirmation by in vivo confocal microscopy ( Tschandl et al., 2018 ). In addition to one-versus-others classification for the seven categories of diagnosis, we also grouped the diagnostic categories into malignant (akiec, bcc, mel) and benign (bkl, df, nv, and vasc) lesions. Based on personal correspondence on 3/27/2024 with Yuan Liu, an author of the Google Derm Foundation embedding model, Derm Foundation was not trained on either DDI or ISIC 2018 datasets. 3.2. Evaluating Foundation Model Embeddings 3.2.1. G eneral predictive performance of foundation models We primarily evaluated the performance of Derm Foundation, a fine-tuned BiT-M model with an embedding size of 6,144. To analyze the diagnostic performance of the foundation models, we first generated corresponding image embeddings for both DDI and ISIC and evaluated the performance of predicting the malignant versus benign lesion outcome using a simple logistic regression classifier on top of the embeddings (with default penalty parameter as implemented in scikit-learn ( Pedregosa et al., 2011 ). We report the five-fold cross-validated AUC, accuracy, precision, recall, specificity, and F1-score using the implementation in scikit-learn . For the classification task on DDI, we conducted additional analysis on disjoint training and testing sets (i.e., no overlapping patients) to reduce data leakage. 3.2.2. C omparing R epresentation A cross D ifferent M odels We compared the performance of Derm Foundation embeddings with embeddings derived from one additional dermatology model MONET ( Kim et al., 2024 ), a fine-tuned CLIP model with an embedding size of 768, as well as 78 other non-domain-specific vision models, following the work of Huh et al. (2024) . These models include ViT ( Dosovitskiy et al., 2020 ), ResNet-50 ( He et al., 2016 ), and ResNeT-18 ( He et al., 2016 ) (the full list of models considered can be found in Appendix A). We computed the five-fold cross-validated metrics for the same set of predictive tasks (malignant or benign) for all embeddings considered. To measure the similarities between the model embeddings, we used a nearest-neighbor metric in Huh et al. (2024) that computes the average overlap between k -nearest-neighbors for each embedding, which has been shown to capture model similarities. To account for the drastically different dataset sizes, we set k to 6 for DDI and 98 for ISIC. 3.2.3. E xamining the potential bias for different skin tone subgroups Given the demonstrated disparity in many existing models’ performance on downstream diagnostic tasks across subgroups with different Fitzpatrick Skin Tones, we explored how the predictive performance and embedding geometries vary across three different FST subgroups (I–II, III–IV, and V–VI; from lightest to darkest skin tones). The DDI dataset was designed to allow a demographic parity fairness assessment by allowing direct comparisons between FST I–II and V–VI, which were matched. For geometrical investigations, we computed cosine similarities between benign and malignant samples, a proxy for diagnostic values, across different subgroups. In addition, we also examined the performance of the 𝓁 1 -regularized logistic regression classifier trained on different FST subgroups to understand the generalizability of the learned embeddings. 3.2.4. E xploring confounding factors, including image quality We also assessed the effects of image quality on the predictive performance of the embeddings. Using DDI’s image quality score, we defined high-quality and low-quality images to be those with quality scores 1.5, respectively. We used 𝓁 2 -regularized logistic regressions to assess the test set performance by training on high or low-quality images only. 4. Results 4.1. Classification accuracy using foundation model embeddings For DDI, we found that using Derm Foundation embeddings with a simple logistic classifier produced competitive results, with an AUROC of 0.76, a precision of 0.72, and a recall of 0.58 (see Table 1 ). For context, Daneshjou et al. (2022) reported AUROCs ranging from 0.56 to 0.67 for dermatology models on the same task. For ISIC 2018, using Derm Foundation embeddings yields an AUROC of 0.78, a recall of 0.61, and a specificity of 0.94; these numbers are competitive with previously reported performance. For example, Tschandl et al. (2020) reported a recall of 0.59 and a specificity of 0.93. Our results confirm that Derm Foundation embeddings contain informative features for diagnostic tasks. View this table: View inline View popup Download powerpoint Table 1: Predictive performance of using an 𝓁 2 logistic regression on Derm Foundation embeddings to predict malignant versus benign lesions on DDI (first row) and ISIC (second row), as well as performance on predicting specific diagnoses (one-versus-rest) on ISIC (third to last rows). 4.2. Performance of Different Vision Foundation Models In Figure 1 , we display the average AUC across five-fold cross-validation for all vision models considered in Section 3.2.2 in a two-dimensional UMAP plot for both DDI (left panel of Figure 1 ) and ISIC (right panel of Figure 1 ). We note that in both cases, dermatology foundation models (both Derm Foundation and MONET) attain the highest AUC compared to models trained on natural images and texts only. However, the gap between these dermatology foundation models (depicted as stars in Figure 1 ) and general-purpose CLIP foundation models (depicted as crosses in Figure 1 ) is quite small ( < 2% AUC). Moreover, we note that models trained with only natural images or synthetic images perform much worse on the downstream prediction task. Our observations indicate that image-text paired training, even using only general-purpose images, might provide generalization for domain-specific downstream tasks in dermatology. Download figure Open in new tab Figure 1: UMAP visualization of vision model embeddings on DDI (left) and ISIC (right). Each point corresponds to a different model (details listed in Appendix A) and is displayed in different shapes according to classes of models and colored by the mean AUC across five-fold cross-validation. Finally, we observe that better-performing models are generally more clustered together in the 2D visualization than other models, akin to the previously documented “Anna Karenina Principle”, in which less generalizable models (i.e., “unhappy families”) vary more in the corresponding representation than more generalizable models (i.e., “happy families”) ( Ainsworth et al., 2022 ; Bansal et al., 2021 ). This aligns with the conclusions in Huh et al. (2024) , which tested with natural images rather than domain-specific medical ones. 4.3. Differential Predictive Performance of Embedding Models in Different Skin Tone Groups In Table 2 , we evaluated the predictive performance of foundation model embeddings on subgroups of different skin tones, as well as the generalizability and potential bias of these embeddings by testing whether a model learned on one subgroup could be used to achieve high predictive performance for another group. View this table: View inline View popup Download powerpoint Table 2: Predictive performance of using an 𝓁 2 logistic regression on Derm Foundation embeddings to predict malignant versus benign lesions, stratified by training subset and testing subset (I/II, III/IV, V/VI denote the subsets of DDI images from patients with Fitzpatrick scale I-II, III-IV, and V-VI, respectively). a: For the entries where train and test are the same subsets, metric averages over five-fold cross-validation are reported as a reference. First of all, when comparing the predictive performance within subgroups on a train/test split only, the predictive performances are comparable, with higher accuracy and performance observed in both the III/IV and V/VI subgroups. The trend of training and testing on different FST subgroups is more nuanced. We note that when testing on patients with the lightest skin tone (the I/II subgroup), we see overall comparable performance but an increase in recall and a drop in precision (from 0.56 to 0.41) when the training sample consists of a similar but different subgroup (III/IV). However, there is a significant change in recall (from 0.49 to 0.27) when training samples are from the more distinctly different dark skin groups. Interestingly, a similar observation holds when the test samples are from III/IV only as well: we see a noticeable drop in recall when training only on V/VI. On the other hand, if V/VI (the darkest subgroup) is of interest, training on I/II and III/IV led to noticeable drops in both precision and recall. To further understand the generalization experiment results, we display average cosine similarities between Derm Foundation embeddings across different diagnostic classes and Fitzpatrick Skin Tones in Table 3 . We note several overall trends: 1) the Fitzpatrick Skin Tone (FST) dominates the cosine similarity calculation, i.e., even for samples with the same diagnostic classes, different skin tones reduce the average cosine similarity to below 0.4; 2) overall, given samples from the same FST class, benign samples are most similar to each other, followed by malignant samples, and then the overall samples. View this table: View inline View popup Download powerpoint Table 3: Average cosine similarities between Derm Foundation embeddings across different diagnostic classes and Fitzpatrick Skin Tones. 4.4. Evaluating Image Quality as a Potential Confounder for Performance In Table 4 , we reported the performance of an 𝓁 2 -regularized logistic regression model using Derm Foundation embeddings on different combinations of train and test subsets consisting of high- and low-quality images, as image quality could act as a coufounder when evaluating downstream prediction accuracy. We note that overall, if the test set consists only of high-quality images, then training on either high or low-quality images would lead to similar predictive performance (in fact, marginally higher if trained on low-quality images). On the other hand, the predictive performance is much more sensitive to the training set composition if we want to draw inferences on the low-quality images. In particular, training on high-quality images improves the test performance on low-quality images by a large margin (around 0.2 improvement across precision, recall, F1, and AUROC) compared to training and testing on low-quality images. That said, overall, the results on the DDI dataset are quite robust to the quality of the training images, likely due to the removal of the lowest quality tier during dataset construction. View this table: View inline View popup Download powerpoint Table 4: Predictive performance of using an 𝓁 2 logistic regression on Derm Foundation embeddings to predict malignant versus benign lesions, stratified by training and testing subsets (High and Low denote the subsets of DDI images of high and low quality, as assessed by dermatologists, respectively). 5. Discussion 5.1. Improvement over SOTA Compared to previous SOTA algorithms, dermatology foundation models such as Derm Foundation and MONET achieve higher classification accuracy. In particular, the improved performance on diverse datasets such as DDI, which often poses difficulty for previous models, suggests that foundation models may hold promise in medical applications. 5.2. Domain-specific versus General Foundation Models We also find that the improvement over the previous state-of-the-art (SOTA) persists for general-purpose CLIP models (see Figure 1 ). This indicates that image-text paired training is likely the key ingredient for success. Consequently, general-purpose CLIP models should be more broadly considered as a baseline for medical tasks, such as lesion diagnostics in dermatology. Domain-specific models should be compared to and developed based on these performant general-purpose models, which are often open-source and come with extensive resources on deployment. 5.3. Skin-tone is a key diffrentiator Interestingly, we found that for the embeddings of Derm Foundation, there were higher cosine similarities between benign and malignant skin conditions of the same FST category, than between FST categories with the same classification label. Although this did not seem to adversely affect accuracy, this suggests that machine learning models cannot perform race-agnostic diagnoses and implicitly factor skin tone into internal evaluations. 5.4. Confounding Effects of Image Quality Unsurprisingly, image quality significantly impacts model performance — models trained on high-quality images generally outperform those trained on low-quality images. It is important to note that when we trained models on high-quality images and tested them on low-quality images, and vice versa, there was an increase in performance. This improvement may be partly due to the larger volume of data available in the training set. We did not need to split the data into training and testing subsets. Limitations Although we reached out to Google and confirmed that the DDI and ISIC datasets were not used in their training process, the ambiguity surrounding the input data for proprietary, closed-source models still raises concerns about potential data leakage, which could upward bias the predictive performance of Derm Foundation. Moreover, while we have established that skin tone is a key factor in predictive performance, we are constrained by the limited availability of high-quality images with annotated Fitzpatrick Skin Type labels. Consequently, our results are only presented using the DDI dataset. Finally, while our framework is applicable to general medical diagnostic tasks, our initial results have specifically focused on two common modalities in dermatology: dermoscopy images and teledermatology photos. The generalizability of our findings needs to be validated in other medical domains and applications. Future Works Several promising pathways lie ahead for future research. First, we could develop a comprehensive suite of datasets and models that serve as a “leaderboard” for evaluating medical AI models, initially focusing on dermatological applications. Additionally, armed with the insight that image quality, skin tone, and image-text paired pre-training are likely key differentiators for downstream prediction performance, we plan to enhance foundation models by incorporating multimodal medical data beyond images, such as patient metadata and history, especially for historically underrepresented groups like patients with dark skin tones. Finally, we aim to extend and assess this framework in other medical fields such as cardiology, radiology, and pathology, where there is an abundance of multimodal data and foundation models are beginning to show promise ( Huang et al., 2023 ; Zhang et al., 2023 ; Chen et al., 2024 ). Data Availability All code and results reproduced in the present study will be released on github and are available upon reasonable request to the authors before then. Appendix Appendix A. Details on other vision embedding models We consider 80 vision models in total: 2 domain-specific Dermatology models that are pretrained natural image-text data and then finetuned on medical data: MONET ( Kim et al., 2023 ) and Google Derm Foundation ( Steiner, 2024 ). 78 general-purpose vision models: - 17 ViT models ranging from ViT-tiny to ViT-giant, trained on supervised and unsupervised tasks including ImageNet-21k ( Dosovitskiy et al., 2020 ) classification, Masked Autoencoders ( He et al., 2021 ), DINO ( Caron et al., 2021 ), and CLIP ( Radford et al., 2021 ), including some finetuned on ImageNet-1k. - 1 randomly initialized ResNet-50. - 11 ResNet-50 models ( He et al., 2016 ) trained with contrastive learning ( Chen et al., 2020 ) on ImageNet-1k, Places-365 ( Zhou et al., 2017 ; López-Cifuentes et al., 2020 ), and 9 synthetic image datasets used in Baradad et al. (2022) . - 49 ResNet-18 models trained with Alignment and Uniformity contrastive loss ( Wang and Isola, 2020 ) on ImageNet-100, Places-365, and 47 realistic and synthetic image datasets from Baradad et al. (2021) . Footnotes ↵ * co-senior authorship SONNET{at}STANFORD.EDU HGUI{at}STANFORD.EDU ROTEMBEV{at}MSKCC.ORG TONGZHOU{at}MIT.EDU YIQUNC{at}STANFORD.EDU References ↵ Samuel K Ainsworth , Jonathan Hayase , and Siddhartha Srinivasa . Git re-basin: Merging models modulo permutation symmetries . arXiv preprint arxiv: 2209.04836 , 2022 . ↵ Yamini Bansal , Preetum Nakkiran , and Boaz Barak . Revisiting model stitching to compare neural representations . Advances in neural information processing systems , 34 : 225 – 236 , 2021 . OpenUrl ↵ Manel Baradad , Jonas Wulff , Tongzhou Wang , Phillip Isola , and Antonio Torralba . Learning to see by looking at noise . In Advances in Neural Information Processing Systems , 2021 . ↵ Manel Baradad , Richard Chen , Jonas Wulff , Tongzhou Wang , Rogerio Feris , Antonio Torralba , and Phillip Isola . Procedural image programs for representation learning . Advances in Neural Information Processing Systems , 35 : 6450 – 6462 , 2022 . OpenUrl ↵ Rishi Bommasani , Drew A. Hudson , Ehsan Adeli , Russ Altman , Simran Arora , Sydney von Arx , Michael S. Bernstein , Jeannette Bohg , Antoine Bosselut , Emma Brunskill , Erik Brynjolfsson , Shyamal Buch , Dallas Card , Rodrigo Castellon , Niladri Chatterji , Annie Chen , Kathleen Creel , Jared Quincy Davis , Dora Demszky , Chris Donahue , Moussa Doumbouya , Esin Durmus , Stefano Ermon , John Etchemendy , Kawin Ethayarajh , Li Fei-Fei , Chelsea Finn , Trevor Gale , Lauren Gillespie , Karan Goel , Noah Goodman , Shelby Grossman , Neel Guha , Tatsunori Hashimoto , Peter Henderson , John Hewitt , Daniel E. Ho , Jenny Hong , Kyle Hsu , Jing Huang , Thomas Icard , Saahil Jain , Dan Jurafsky , Pratyusha Kalluri , Siddharth Karamcheti , Geoff Keeling , Fereshte Khani , Omar Khattab , Pang Wei Koh , Mark Krass , Ranjay Krishna , Rohith Kuditipudi , Ananya Kumar , Faisal Ladhak , Mina Lee , Tony Lee , Jure Leskovec , Isabelle Levent , Xiang Lisa Li , Xuechen Li , Tengyu Ma , Ali Malik , Christopher D. Manning , Suvir Mirchandani , Eric Mitchell , Zanele Munyikwa , Suraj Nair , Avanika Narayan , Deepak Narayanan , Ben Newman , Allen Nie , Juan Carlos Niebles , Hamed Nilforoshan , Julian Nyarko , Giray Ogut , Laurel Orr , Isabel Papadimitriou , Joon Sung Park , Chris Piech , Eva Portelance , Christopher Potts , Aditi Raghunathan , Rob Reich , Hongyu Ren , Frieda Rong , Yusuf Roohani , Camilo Ruiz , Jack Ryan , Christopher Rè , Dorsa Sadigh , Shiori Sagawa , Keshav Santhanam , Andy Shih , Krishnan Srinivasan , Alex Tamkin , Rohan Taori , Armin W. Thomas , Florian Tramèr , Rose E. Wang , William Wang , Bohan Wu , Jiajun Wu , Yuhuai Wu , Sang Michael Xie , Michihiro Yasunaga , Jiaxuan You , Matei Zaharia , Michael Zhang , Tianyi Zhang , Xikun Zhang , Yuhui Zhang , Lucia Zheng , Kaitlyn Zhou , and Percy Liang . On the opportunities and risks of foundation models , 2022 . ↵ Mathilde Caron , Hugo Touvron , Ishan Misra , Hervè Jègou , Julien Mairal , Piotr Bojanowski , and Armand Joulin . Emerging properties in self-supervised vision transformers . In Proceedings of the IEEE/CVF international conference on computer vision , pages 9650 – 9660 , 2021 . ↵ Richard J Chen , Tong Ding , Ming Y Lu , Drew FK Williamson , Guillaume Jaume , Andrew H Song , Bowen Chen , Andrew Zhang , Daniel Shao , Muhammad Shaban , et al. Towards a general-purpose foundation model for computational pathology . Nature Medicine , pages 1 – 13 , 2024 . ↵ Ting Chen , Simon Kornblith , Mohammad Norouzi , and Geoffrey Hinton . A simple frame-work for contrastive learning of visual representations . In International conference on machine learning , pages 1597 – 1607 . PMLR , 2020 . ↵ Noel C. F. Codella , Veronica Rotemberg , Philipp Tschandl , M. Emre Celebi , Stephen W. Dusza , David A. Gutman , Brian Helba , Aadi Kalloo , Konstantinos Liopyris , Michael A. Marchetti , Harald Kittler , and Allan Halpern . Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (ISIC) . CoRR , abs/1902.03368, 2019 . URL http://arxiv.org/abs/1902.03368 . ↵ R. Daneshjou , M. P. Smith , M. D. Sun , V. Rotemberg , and J. Zou . Lack of Transparency and Potential Bias in Artificial Intelligence Data Sets and Algorithms: A Scoping Review . JAMA Dermatol , 157 ( 11 ): 1362 – 1369 , Nov 2021 . OpenUrl ↵ Roxana Daneshjou , Kailas Vodrahalli , Roberto A. Novoa , Melissa Jenkins , Weixin Liang , Veronica Rotemberg , Justin Ko , Susan M. Swetter , Elizabeth E. Bailey , Olivier Gevaert , Pritam Mukherjee , Michelle Phung , Kiana Yekrang , Bradley Fong , Rachna Sahasrabudhe , Johan A. C. Allerup , Utako Okata-Karigane , James Zou , and Albert S. Chiou . Disparities in dermatology ai performance on a diverse, curated clinical image set . Science Advances , 8 ( 32 ): eabq6147 , 2022 . doi: 10.1126/sciadv.abq6147 . URL https://www.science.org/doi/abs/10.1126/sciadv.abq6147 . OpenUrl CrossRef ↵ Alexey Dosovitskiy , Lucas Beyer , Alexander Kolesnikov , Dirk Weissenborn , Xiaohua Zhai , Thomas Unterthiner , Mostafa Dehghani , Matthias Minderer , Georg Heigold , Sylvain Gelly , et al. An image is worth 16x16 words: Transformers for image recognition at scale . arXiv preprint arxiv: 2010.11929 , 2020 . ↵ X Du-Harpur , FM Watt , NM Luscombe , and MD Lynch . What is ai? applications of artificial intelligence to dermatology . British Journal of Dermatology , 183 ( 3 ): 423 – 430 , 2020 . OpenUrl ↵ A. Esteva , A. Robicquet , B. Ramsundar , V. Kuleshov , M. DePristo , K. Chou , C. Cui , G. Corrado , S. Thrun , and J. Dean . A guide to deep learning in healthcare . Nat Med , 25 ( 1 ): 24 – 29 , Jan 2019 . OpenUrl CrossRef PubMed ↵ Andre Esteva , Brett Kuprel , Roberto A Novoa , Justin Ko , Susan M Swetter , Helen M Blau , and Sebastian Thrun . Dermatologist-level classification of skin cancer with deep neural networks . Nature , 542 ( 7639 ): 115 – 118 , February 2017 . OpenUrl CrossRef PubMed ↵ T. B. Fitzpatrick . The validity and practicality of sun-reactive skin types I through VI . Arch Dermatol , 124 ( 6 ): 869 – 871 , Jun 1988 . OpenUrl CrossRef PubMed Web of Science ↵ H. Gui , J. A. Omiye , C. T. Chang , and R. Daneshjou . The Promises and Perils of Foundation Models in Dermatology . J Invest Dermatol , Mar 2024 . ↵ V. Gulshan , L. Peng , M. Coram , M. C. Stumpe , D. Wu , A. Narayanaswamy , S. Venugopalan , K. Widner , T. Madams , J. Cuadros , R. Kim , R. Raman , P. C. Nelson , J. L. Mega , and D. R. Webster . Development and Validation of a Deep Learning Algorithm for Detection of Diabetic Retinopathy in Retinal Fundus Photographs . JAMA , 316 ( 22 ): 2402 – 2410 , Dec 2016 . OpenUrl CrossRef PubMed ↵ Holger Andreas Haenssle , Christine Fink , Ferdinand Toberer , Julia Winkler , Wilhelm Stolz , Teresa Deinlein , Rainer Hofmann-Wellenhof , Aimilios Lallas , Steffen Emmert , Timo Buhl , et al. Man against machine reloaded: performance of a market-approved convolutional neural network in classifying a broad spectrum of skin lesions in comparison with 96 dermatologists working under less artificial conditions . Annals of Oncology , 31 ( 1 ): 137 – 143 , 2020 . OpenUrl PubMed ↵ Seung Seog Han , Ik Jun Moon , Woohyung Lim , In Suck Suh , Sam Yong Lee , Jung-Im Na , Seong Hwan Kim , and Sung Eun Chang . Keratinocytic skin cancer detection on the face using region-based convolutional neural network . JAMA dermatology , 156 ( 1 ): 29 – 37 , 2020a . OpenUrl ↵ Seung Seog Han , Ilwoo Park , Sung Eun Chang , Woohyung Lim , Myoung Shin Kim , Gyeong Hun Park , Je Byeong Chae , Chang Hun Huh , and Jung-Im Na . Augmented intelligence dermatology: Deep neural networks empower medical professionals in diagnosing skin cancer and predicting treatment options for 134 skin disorders . J. Invest. Dermatol ., 140 ( 9 ): 1753 – 1761 , September 2020b . OpenUrl CrossRef ↵ Kaiming He , Xiangyu Zhang , Shaoqing Ren , and Jian Sun . Deep residual learning for image recognition . In Proceedings of the IEEE conference on computer vision and pattern recognition , pages 770 – 778 , 2016 . ↵ Kaiming He , Xinlei Chen , Saining Xie , Yanghao Li , Piotr Doll’ar , and Ross B Girshick . Masked autoencoders are scalable vision learners. 2022 ieee . In CVF Conference on Computer Vision and Pattern Recognition (CVPR) , pages 15979 – 15988 , 2021 . ↵ Zhi Huang , Federico Bianchi , Mert Yuksekgonul , Thomas J Montine , and James Zou . A visual–language foundation model for pathology image analysis using medical twitter . Nature Medicine , 29 ( 9 ): 2307 – 2316 , 2023 . OpenUrl ↵ Minyoung Huh *, Brian Cheung *, Tongzhou Wang *, and Phillip Isola *. The Platonic representation hypothesis . 2024 . *All four authors made equal contributions . ↵ A. Jamaludin , T. Kadir , and A. Zisserman . SpineNet: Automated classification and evidence visualization in spinal MRIs . Med Image Anal , 41 : 63 – 73 , Oct 2017 . OpenUrl ↵ L. Kamulegeya , J. Bwanika , M. Okello , D. Rusoke , F. Nassiwa , W. Lubega , D. Musinguzi , and A. rve . Using artificial intelligence on dermatology conditions in Uganda: a case for diversity in training data sets for machine learning . Afr Health Sci , 23 ( 2 ): 753 – 763 , Jun 2023 . OpenUrl ↵ Chanwoo Kim , Soham U Gadgil , Alex J DeGrave , Zhuo Ran Cai , Roxana Daneshjou , and Su-In Lee . Fostering transparent medical image ai via an image-text foundation model grounded in medical literature . medRxiv , 2023 . ↵ Chanwoo Kim , Soham U. Gadgil , Alex J. DeGrave , Jesutofunmi A. Omiye , Zhuo Ran Cai , Roxana Daneshjou , and Su-In Lee . Transparent medical image AI via an image–text foundation model grounded in medical literature . Nature Medicine , 2024 . doi: 10.1038/s41591-024-02887-x . URL 10.1038/s41591-024-02887-x. OpenUrl CrossRef ↵ Thijs Kooi , Geert Litjens , Bram Van Ginneken , Albert Gubern-Mèrida , Clara I Sánchez , Ritse Mann , Ard den Heeten , and Nico Karssemeijer . Large scale deep learning for computer aided detection of mammographic lesions . Medical image analysis , 35 : 303 – 312 , 2017 . OpenUrl CrossRef PubMed ↵ Alejandro López-Cifuentes , Marcos Escudero-Vinolo , Jesús Bescós , and Álvaro García-Martín . Semantic-aware scene recognition . Pattern Recognition , 102 : 107256 , 2020 . OpenUrl ↵ F. Pedregosa , G. Varoquaux , A. Gramfort , V. Michel , B. Thirion , O. Grisel , M. Blondel , P. Prettenhofer , R. Weiss , V. Dubourg , J. Vanderplas , A. Passos , D. Cournapeau , M. Brucher , M. Perrot , and E. Duchesnay . Scikit-learn: Machine learning in Python . Journal of Machine Learning Research , 12 : 2825 – 2830 , 2011 . OpenUrl CrossRef ↵ Alec Radford , Jong Wook Kim , Chris Hallacy , Aditya Ramesh , Gabriel Goh , Sandhini Agarwal , Girish Sastry , Amanda Askell , Pamela Mishkin , Jack Clark , et al. Learning transferable visual models from natural language supervision . In International conference on machine learning , pages 8748 – 8763 . PMLR , 2021 . ↵ Dave Steiner . Health-specific embedding tools for dermatology and pathology , Mar 2024 . URL https://research.google/blog/health-specific-embedding-tools-for-dermatology-and-pathology/ . ↵ P. Tschandl , C. Rinner , Z. Apalla , G. Argenziano , N. Codella , A. Halpern , M. Janda , A. Lallas , C. Longo , J. Malvehy , J. Paoli , S. Puig , C. Rosendahl , H. P. Soyer , I. Zalaudek , and H. Kittler . Human-computer collaboration for skin cancer recognition . Nat Med , 26 ( 8 ): 1229 – 1234 , Aug 2020 . OpenUrl CrossRef PubMed ↵ Philipp Tschandl , Cliff Rosendahl , and Harald Kittler . The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions . Sci. Data , 5 ( 1 ): 180161 , August 2018 . OpenUrl ↵ Tongzhou Wang and Phillip Isola . Understanding contrastive representation learning through alignment and uniformity on the hypersphere . In International Conference on Machine Learning , pages 9929 – 9939 . PMLR , 2020 . ↵ Xiaoman Zhang , Chaoyi Wu , Ya Zhang , Weidi Xie , and Yanfeng Wang . Knowledge-enhanced visual-language pre-training on chest radiology images . Nature Communications , 14 ( 1 ): 4542 , 2023 . OpenUrl ↵ Bolei Zhou , Agata Lapedriza , Aditya Khosla , Aude Oliva , and Antonio Torralba . Places: A 10 million image database for scene recognition . IEEE transactions on pattern analysis and machine intelligence , 40 ( 6 ): 1452 – 1464 , 2017 . OpenUrl CrossRef View the discussion thread. Back to top Previous Next Posted April 19, 2024. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following A Framework for Evaluating the Efficacy of Foundation Embedding Models in Healthcare Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share A Framework for Evaluating the Efficacy of Foundation Embedding Models in Healthcare Sonnet Xu , Haiwen Gui , Veronica Rotemberg , Tongzhou Wang , Yiqun T. Chen , Roxana Daneshjou medRxiv 2024.04.17.24305983; doi: https://doi.org/10.1101/2024.04.17.24305983 Share This Article: Copy Citation Tools A Framework for Evaluating the Efficacy of Foundation Embedding Models in Healthcare Sonnet Xu , Haiwen Gui , Veronica Rotemberg , Tongzhou Wang , Yiqun T. Chen , Roxana Daneshjou medRxiv 2024.04.17.24305983; doi: https://doi.org/10.1101/2024.04.17.24305983 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Health Informatics Subject Areas All Articles Addiction Medicine (573) Allergy and Immunology (865) Anesthesia (304) Cardiovascular Medicine (4457) Dentistry and Oral Medicine (445) Dermatology (383) Emergency Medicine (610) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1517) Epidemiology (15244) Forensic Medicine (30) Gastroenterology (1132) Genetic and Genomic Medicine (6620) Geriatric Medicine (669) Health Economics (1002) Health Informatics (4557) Health Policy (1372) Health Systems and Quality Improvement (1615) Hematology (543) HIV/AIDS (1272) Infectious Diseases (except HIV/AIDS) (15936) Intensive Care and Critical Care Medicine (1106) Medical Education (624) Medical Ethics (147) Nephrology (670) Neurology (6635) Nursing (346) Nutrition (999) Obstetrics and Gynecology (1148) Occupational and Environmental Health (957) Oncology (3348) Ophthalmology (980) Orthopedics (369) Otolaryngology (421) Pain Medicine (436) Palliative Medicine (130) Pathology (665) Pediatrics (1696) Pharmacology and Therapeutics (693) Primary Care Research (714) Psychiatry and Clinical Psychology (5463) Public and Global Health (9257) Radiology and Imaging (2210) Rehabilitation Medicine and Physical Therapy (1371) Respiratory Medicine (1198) Rheumatology (598) Sexual and Reproductive Health (716) Sports Medicine (532) Surgery (714) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a03620fa7e7dada1',t:'MTc4MDA2NDMxMQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.