Health Tech
AI can use medical images to victimise
AI can predict demographics from X-Rays, eyes and skin, and may use this data to inform its decisions, if not managed correctly.
As of 7 August 2024, the Food and Drug Administration in the United States has authorised 950 artificial intelligence (AI) and machine learning (ML) enabled medical devices. And more than 100 of these were authorised this year. This means the rate of algorithm authorisation is surging at an exponential rate.
AI has been dominating headlines in the healthcare space and will continue to be an important topic of conversation as we begin to understand its impact across the field of medicine. Researchers are developing tools for a host of different applications, from robotic-assisted surgeries to electronic health record (EHR) analysis to interpretation of medical images.
Perhaps unsurprisingly, the majority of authorised medical algorithms are related to medical imaging. Medical images are packed with dense information that can be analysed by AI to identify patterns that can facilitate disease diagnosis and prognosis. But how AI comes to make its predictions is not always known, and transparency in medical imaging models is a key factor to consider.
As AI is deployed in clinical centres across the U.S., one important consideration is to assure that models are fair and perform equally across patient groups and populations. To better understand the fairness of medical imaging AI, a team of researchers from Massachusetts Institute of Technology (MIT) and Emory University trained over 3,000 models spanning multiple model configurations, algorithms, and clinical tasks. Their analysis of these models reinforced some previous findings about bias in AI algorithms and uncovered new insights about deployment of models in diverse settings.
Here are some major takeaways from their study, published recently in Nature Medicine.
AI can determine demographic factors from medical images without being given this information.
Previous work has shown that AI can predict self-reported race, gender, and age from chest x-ray images. In addition to underscoring these previous findings, the current work confirmed that AI can predict sex from ophthalmology images and illustrated that AI can predict age and gender from dermatology images, highlighting a potentially widespread issue across multiple different types of medical imaging modalities.
Why does this matter? If AI can predict demographic factors, it may use this information to inform its decisions. This is called a “heuristic shortcut,” where AI utilises protected attributes like race or insurance status to drive its predictions instead of identifying and relying on pathological features in medical images. In this way, a model could make a prediction based on a demographic feature without any clinical basis, resulting in a model that has decreased performance among subgroups of people, potentially exacerbating existing disparities in the health care system.
Just because a model performs well does not mean that the model is fair.
Model performance tells us how well a model can accurately predict a condition or outcome, on average. Model fairness describes how well a model performs across different subgroups of patients.
For example, a model could be very good at predicting mortality from a chest x-ray, on average. But the model might be less accurate at predicting mortality when it’s applied to a younger patient compared with an older one.
“Model performance does not automatically translate to model fairness,” explained study author Judy Gichoya, M.D, an associate professor in the Department of Radiology and Imaging Sciences at Emory University School of Medicine. “While high model performance is required for algorithm authorization, fairness is not always explicitly evaluated.”
If a model is good at predicting demographic factors, it’s less likely to be fair.
While it was previously known that AI can predict demographic factors, and that heuristic shortcuts may lead to biased models, the researchers wanted to take a closer look at these relationships. They performed analyses to quantify how well a model could predict an attribute—known as the degree of encoding—without being given demographic information. Then they evaluated the performance of the model among different patients in that subgroup.
What they found was this: the stronger the encoding of a demographic factor, the worse the model was at being “fair” when performance was analysed with respect to that factor. For example, when the researchers analysed a subset of the radiology data, they found that the models could correctly predict a patient’s age approximately 75% of the time, meaning that age was strongly encoded. What’s more, these models did not perform equally across different age groups—in fact, they had a 30% fairness gap between elderly (ages 80-100) and young (ages 18-40) patients, meaning that the model had a 30% decreased performance between these two different age groups.
The researchers analysed the degree of encoding of age, race, sex, and the intersection of race and sex in radiology models, finding that models could predict these attributes from chest x-rays with varying degrees of certainty. They also analysed the degree of encoding of age and sex in dermatology and ophthalmology models, again finding that the models could predict these demographics from medical images.
Focusing on the radiology models, which had the most available data, the researchers observed the same trend—the better a model was at predicting a demographic factor, the less fair it was between patients spanning that demographic (young versus old, Black versus white, female versus male, for example).
“Our findings were very consistent: the more strongly the attribute is encoded, the larger the fairness gap is,” said first study author Yuzhe Yang, Ph.D., who performed this research as part of his doctoral work at MIT. “This correlation held true across every model that we evaluated, further reinforcing that AI models that rely on heuristic shortcuts to make their predictions have larger fairness disparities.”
Models can be retrained to improve fairness—to a point.
To improve model fairness, the researchers applied a few different methods to their models that improved the balance of the dataset (so that the data is more reflective of the patient population) and that removed demographic information (thereby breaking heuristic shortcuts). They found that these techniques could improve model fairness without significantly sacrificing model performance.
However, the researchers found that optimising for fairness alone can sometimes impact other model metrics, such as model precision or calibration, highlighting the need to balance model fairness with other factors.
“There’s always a tension between model performance and model fairness,” explained Gichoya. “Blindly optimising for fairness could ultimately hinder the model’s utility, rendering it less reliable when it makes its prediction.”
Fair models trained in one location may not be fair when deployed elsewhere.
The researchers found that their methods to optimise fairness were effective—if the model was evaluated using data from the same source that it was trained on. This phenomenon is called “local fairness.”
When the researchers deployed these locally optimal models on a dataset from a different source, they still had high performance. However, the models weren’t necessarily fair. This indicates that as the distribution of the data changes, it can potentially affect the model’s fairness.
“Our study found that local fairness doesn’t necessarily translate when models are deployed in a different setting,” said Yang. “This suggests that models that are developed and optimised for fairness in one hospital system may not be fair if they are deployed in a different hospital system or region. Our results underscore that models should undergo periodic updates and testing to ensure fairness is maintained over time, as data distributions and real-world contexts may evolve.”To learn more about how NIH is approaching ethical AI development, check out this recent workshop hosted by the Office of Data Science Strategy.