194 points · by jeffbee · 5y ago · 192 comments
Regarding external validation set:
> This dataset differed from the UK Biobank development set with respect to both fundus camera used, and in sourcing from a pathology-rich population at a tertiary ophthalmic referral center.
Regarding UK Biobank set (training set)
> UK Biobank dataset, which is an observational study in the United Kingdom that began in 2006 and has recruited over 500,000 participants—85,262 of which received eye imaging38. Eye imaging was obtained at 6 centers in the UK and comprises over 10 terabytes of data39. Participants volunteered to provide data including other medical imaging, laboratory results, and detailed subjective questionnaires.
I pulled a third sample from a completely different time window and it performed terribly.
It turned out that both datasets were dominated by class A being sorted into always selecting great fit or poor fit, so the ML model learned to memorize the class A instances.
This problem when away when I subselected down to only instances of class A that had examples of both good fit and poor fit.
My problem with modern scientific publications is that they focus more on the "discovery" instead of describing the logical rigor as to why their "discovery" could be true or false.
The paper in this post itself has its own Limitations section.
I haven't actually read the paper. I was reacting to the title.
> what kind of future research could help expound on the pitfalls of the current research.
I think a better way of documenting research to people is by describing what scientific boxes where checked.
In the given case for example one of the boxes maybe,
"Is there an anatomical distinction between retinas of sexes?" — If that is true then we can see if machine learning can detect such differences.
Take computer science for example. A publication with the title "Professors create a machine that can think" would maybe published as "Professors create machine that passes Turing test [0]"
Another example, can be that is medicine.
The research in question maybe if a microbe A causes a flue.
Instead of a publication being "Microbe A causes disease B".
A better Publication IMO should revolve around, "Microbe A had passed Koch's postulates [1] for disease B"
Once upon a time—I’ve seen this story in several versions and several places, sometimes cited as fact, but I’ve never tracked down an original source—once upon a time, I say, the US Army wanted to use neural networks to automatically detect camouflaged enemy tanks.
The researchers trained a neural net on 50 photos of camouflaged tanks amid trees, and 50 photos of trees without tanks. Using standard techniques for supervised learning, the researchers trained the neural network to a weighting that correctly loaded the training set—output “yes” for the 50 photos of camouflaged tanks, and output “no” for the 50 photos of forest.
Now this did not prove, or even imply, that new examples would be classified correctly. The neural network might have “learned” 100 special cases that wouldn’t generalize to new problems. Not, “camouflaged tanks versus forest”, but just, “photo-1 positive, photo-2 negative, photo-3 negative, photo-4 positive…” But wisely, the researchers had originally taken 200 photos, 100 photos of tanks and 100 photos of trees, and had used only half in the training set. The researchers ran the neural network on the remaining 100 photos, and without further training the neural network classified all remaining photos correctly. Success confirmed!
The researchers handed the finished work to the Pentagon, which soon handed it back, complaining that in their own tests the neural network did no better than chance at discriminating photos. It turned out that in the researchers’ data set, photos of camouflaged tanks had been taken on cloudy days, while photos of plain forest had been taken on sunny days. The neural network had learned to distinguish cloudy days from sunny days, instead of distinguishing camouflaged tanks from empty forest.
"""
> For instance, in our work, we noted that the algorithm appeared more likely to interpret images with rulers as malignant. Why? In our dataset, images with rulers were more likely to be malignant; thus the algorithm inadvertently “learned” that rulers are malignant.
But still, there are ways of getting the resulting NN and applying some techniques to figure out which variable/patterns are responsible for most of the output.
Scientist: How do you know that?
NN: I just do, trust me.
Most things in science is almost impossible to reproduce because of cost or specialized equipment.
Is that what reproducibility means?
I think a good control would be to see how this model treats trans people at varying stages of transition
But indeed it would be interesting to see how trans people are treated at all.
Estrogen levels affect the eyes, so given enough samples and context it may be surprising accurate for people getting that type of therapy.
For a ML model to correctly guess gender identity, it'd need other cues that indicate a person would prefer to be referred to by a certain pronoun, such as clothing or facial hair.
Women's are statistically longer.
Their eyes are also more almond shaped.
Retinal photographs are hard to take. Often they contain significant amount of eyelashes and surrounding structure
If I'm reading this correctly what they're saying is that since we don't currently know the difference between male and female retinas, being able to explain what the ML black box is doing is important. But from what I can see in the paper they basically don't know what the black box is doing, they really don't understand what features their tool has isolated. I might be misunderstanding though?
They say the following:
- This model can distinguish photographs of a male retina from photographs of a female retina.
- We don't know, ourselves, how to do that.
- We would like to be able to determine, from looking at the model, what features it's using to draw the distinction.
What's weird?
Have we actually tried?
There is a cursory discussion about how this is "inconceivable to those who spent their careers looking at retinas". However, if it's not clinically useful (as the next sentence says), those experts probably haven't spent much--if any--training themselves to try.
Humans can learn to detect surprisingly subtle features. For example, the right training regime can make you much better at reporting the tilt of a line, but it requires practice and feedback, just like the network got.
> Have we actually tried?
Doesn't matter; most of the stuff we don't know how to do is stuff we've never bothered trying. That doesn't mean we secretly do know how to do it.
They are saying "someone should do this because it's important even though we don't (presently) know how to do this".
That’s not to say it is quite to the point of completely explaining each classification, but, I do think it is very promising.
The model can predict male vs female retinas but they don’t understand why. What exactly are you asking?
https://www.aao.org/eye-health/tips-prevention/how-hormones-...
Thanks to hormones, women may experience vision changes throughout their adult lives. The hormones estrogen and progesterone have a lot to do with this. Their changing levels can affect the eye’s oil glands, which can lead to dryness. Estrogen can also make the cornea less stiff with more elasticity, which can affect how light travels into the eye. The dryness and the change in refraction can cause blurry vision and can also make wearing contact lenses difficult.
It really upset me. We probably threw away decades of training data that a computer could have used for early detection.
Fine for broken arms of whatever, but for cancer diagnostics, ugh. The computer might have been able to see the tumour before a clinician.
Real question is if they dialed down the compression as storage got cheaper. Doubtful.
I wonder what actual values they were trying to predict with this analysis? Based on the paper, I get the impression they were trying to do something more interesting and they got the best data for sex.
> While our deep learning model was specifcally designed for the task of sex prediction, we emphasize that this task has no inherent clinical utility. Instead, we aimed to demonstrate that AutoML could classify these images independent of salient retinal features being known to domain experts, that is, retina specialists cannot readily perform this task.
I spent days looking at male and female hand radiographs + class activation maps trying to figure out what the system was using to tell the genders apart. I never figured it out.
Looking at how a retinal photography machine looks like, I'd guess the height at which the photo is taken might slightly affect the POV angle, which in turn might be just enough to get caught by the ML model.
She said, women are actually taller than men when all cultures are studied.
I don't care enough to dig deeper, but always stuck with me.
Edit: This includes those with STEM degrees as well. You really shouldn't trust someone more just because they have a research degree. I knew a professor who claimed to have solved some famous problems but that the peer reviewers just didn't want to accept that he solved it and therefore rejected his papers.
https://www.quantamagazine.org/males-are-the-taller-sex-estr... is an example of a pop-sci article assuming the same basis (written by a biology phd).
The task is meaningless. Yes, there might be some interesting facts in discovery how male and female retinas are different. It could even lead to differentiated treatments. But ML hasn't provided any clues regarding this and therefore it is not that deep.
>Clinicians are currently unaware of distinct retinal feature variations between males and females, highlighting the importance of model explainability for this task.
Edit: This has been already done. 93% accuracy reported. Though this number may need to be verified. https://www.frontiersin.org/articles/10.3389/fnins.2019.0018...
They are talking about mascara on the retina (inside your eye), not just mascara on the outside.
Mascara on your retina would most likely end up in a hospital visit. The first question? How the fuck you manage to get mascara on your retina?!
To get this to 100%, the model would simply say "positive" all the time. This means that the precision (the fraction of samples where the classifier said "positive" that were actually positive) goes to 50% (for a balanced dataset).
Worth noting.
Back before computers beat Go, the conventional wisdom was that it was a hard target because humans can leverage their pattern-finding systems to prune the state space much more efficiently than computers can.
Which got me thinking: what about a game that's the opposite? Like the game's state space is embedded in the timbre of a complex tone, and you make moves by twiddling three or four knobs. It doesn't have to be a very complex game for computers to do a lot better at this, extracting meaning out of white-ish noise is not something we're good at.
Assuming this isn't a data artifact, it might be one of those cases. Some pattern in the brachiation of the veins or the placement of the rod and cone cells, which just looks like noise to us, but which an ML algorithm can find and use to separate male and female retinas.
There's no reason to think that humans would ever get very good at that, although I never count humans out given examples like chicken sexing[0], a notoriously opaque skill which people can nonetheless acquire, despite having little facility in explaining to others how they do it.
[0]: https://en.wikipedia.org/wiki/Chick_sexing#Cultural_referenc...
The fact that women see the world from a ~20cm lower point probably has real impact.
For one thing, guys, your nose hair is very visible from that height.
A woman complained that her very tall boyfriend had hung a mirror in the bathroom. She took a picture of it. It was her reflection holding the camera level with the top of her head, and little else.
One that happened to me personally. I asked my then gf (5'1") what it was like being a small person, do you feel like a normal sized person in a land of giants? "Yes" was the instant response.
One very tall guy once remarked: "The tops of your fridges are fucking disgusting."
As a tall guy, there is a surprising number of bathroom mirrors where my reflection doesn't include my head.
Is this even an "if"? It's well established that men are more likely to be colorblind, and it's likely many women are tetrachromats (most people are mere trichromats). The genes for the extra cone pigments are in the X chromosome, and are seemingly expressed more often when somebody has two X chromosomes. Similarly, people with two X chromosomes are less likely to be colorblind because most forms of colorblindness are caused by defects in genes in X chromosomes.
https://en.wikipedia.org/wiki/Tetrachromacy#Humans
https://en.wikipedia.org/wiki/Color_blindness#Genetics
Perhaps most men and women, men and women with normal trichromatic vision, have identical retinas. But with genes so important to eyeballs residing in the X chromosome, who knows. But I'm left wondering why experts are particularly surprised by this result.
So yeah, that's a thing
Also, what you are describing is called Qualia, and that is intangible qualities of how the brain processes data, such as the "yellowness of a lemon", or the "foot pain of stepping on unexpected rock shoeless"
Qualia can't be verbalized or compared between people because it is an inherent "brainfeel", you just need to expect others to have "at least similar-ish" qualias
There is a shared experience isolated to one sex that the other cannot perceive
I'm guessing that it would affect our perception of reality in the same way eye color would.
This is an interesting use of machine learning. We (or at least I) normally think of these models as replacing or complementing humans. But using them as a driver for research is cool.
“Our deep learning model was trained using code-free deep learning (CFDL) with the Google Cloud AutoML platform ... the CFDL platform provides the option of image upload via shell-scripting utilizing a .csv spreadsheet containing labels ... Automated machine learning was then employed, which entails neural architecture search and hyperparameter tuning.”
Earlier, in the Limitations section:
“The design of the CFDL model was inherently opaque due to the framework’s automated nature with respect to model architecture and hyperparameters. While this opacity is not unique to CFDL, there is potential to further reduce ML explainability due to lack of insight of model architectures and parameters employed.”
Maybe there’s a whitepaper somewhere on how Google’s AutoML works?
It is probably not super exotic, but if they spent enough money optimizing it, it probably has good hyper params.
https://theneurosphere.com/2015/12/17/the-mystery-of-tetrach...
human beings filter out most of what goes on around them. they dont see the world as it is and their minds dont keep track of physical primitives. their minds abstract the world into larger conceptual parts and track those parts. its not just a question of processing power, its a question of intuitive access. and nobody realizes this yet because the only sentient beings who are around to demonstrate any of this have those filters in place. when the AI comes with all that horse power and with no filters, it will see things all around that we are blind to. it will seem as though it can make impossible predictions. it will seem god-like, even before it graduates to doing something other than simply observing the world.
"Tetrachromacy is the condition of possessing four independent channels for conveying color information, or possessing four types of cone cell in the eye."
https://jov.arvojournals.org/article.aspx?articleid=2191517
"12% of women are carriers of [..] anomalous trichromacy."
One study suggested that 15% of the world's women might have the type of fourth cone whose sensitivity peak is between the standard red and green cones, giving, theoretically, a significant increase in color differentiation.[23] Another study suggests that as many as 50% of women and 8% of men may have four photopigments and corresponding increased chromatic discrimination compared to trichromats.[24]
It's not just women.
The authors aren't aware of any distinguishing retinal features between male and female eyes and the model itself has no explanatory power.
Could be a Clever Hans situation where the model exploits meta information of some kind in the absence of actual features. It could just as well mean that there are indeed distinguishing features that are compromised in the presence of foveal pathology.
The authors note that another study using manually selected features identified three features that are indicative of genetical sex. These features yielded about 0.78 AUROC accuracy measure. Compared to the presented model's AUROC accuracy of 0.93 that's only 19% worse and these 19% additional accuracy may point to a combination of the already identified features or one or more additional features.
I personally find this paper rather pointless. It stops at the point where actual progress could be made and things would get interesting - why didn't the authors evaluate the previously known features on the model's matches to measure their significance?
This could have told them whether their black-box was relying on the same set of features as the ones identified by previous work, for example.
A result different from the null hypothesis is useles.
Let us say the machine could not succeed greater than chance, it would be a case of cosmic bad luck in that case, that all social and biological factors cancel each other out.
Thus, in the case of the null hypothesis being confirmed by this, one may conclude that in all likelihood retinal patterns have no sexual divergence.
But, machines very rarely find such a null hypothesis in such cases, and that might be in no small part because of all the extra factors that such models latch on to.
I for one would be more interested in an obvious nonce test to see if the machine can find something: see if the a.i. can find a retinal difference between, say, the poor and the rich. If it can with high accuracy what retinae are poor, and what are rich, we might have a somewhat interesting situation.
> External validation was performed on the Moorfields dataset. This dataset differed from the UK Biobank development set with respect to both fundus camera used, and in sourcing from a pathology-rich population at a tertiary ophthalmic referral center. The resulting sensitivity, specificity, PPV and ACC were 83.9%, 72.2%, 78.2%, and 78.6% respectively
Is it common practice in this field to test an overfitted model's performance with such a small data set so that the test could yield random results?
Also, before they tested on the other smaller dataset from a different source, aiui, they also trained only on the earlier subset of the first source, and used the later portion from the first source (with no overlap in patients) for the testing.
(also, I'm not sure that 252 is really all that small?)
> Gender refers to the socially constructed roles, behaviours, expressions and identities of girls, women, boys, men, and gender diverse people
First it's not some hamfisted mixup of sex and gender:
> Terefore, this feld may contain a mixture of NHS recorded gender and self-reported gender. Genetic sex in the UK Biobank was determined
And yet:
> Predicting gender from fundus photos, previously inconceivable to those who spent their careers looking at retinas, also withstood external validation on an independent dataset of patients with different baseline demographics Although not likely to be clinically useful, this finding hints at the future potential of deep learning for the discovery of novel associations through unbiased modelling of high-dimensional data.
If we had a way to detect trans children, for sure that would be clinically useful!
Edit: as always, thanks for the downvotes, but please also educate me where I am wrong.
The study does comment on a trans case in their validation-set, which of 1,287 images, had 1 image for someone whose genetic-sex and reported-sex didn't match. For that 1 image, the algorithm's prediction corresponded to the genetic-sex rather than the reported-sex.
> Genetic sex was discordant from reported sex in one validation set image, and this image was incorrectly predicted by the model; that is the model predicted sex consistent with genetic sex in this case (Table S1).
Table S1 can be seen in the Supplementary Information linked near the bottom of [the article](https://www.nature.com/articles/s41598-021-89743-x). It really doesn't show much data though.
---
As for the excerpt you quoted about predicting gender, the authors were writing about the claims from [a different (and pay-wall'd) study](https://www.nature.com/articles/s41551-018-0210-5).
Most technical terms start as lay terms in a language that are then given a more technical meaning, often pulling two synonyms apart in the process.
On the note of “children”; I tried scanning the result for whether the machine can distinguish before puberty, which would be even more spectacular, but I couldn't find it in the article. — there is significant debate as to what extent non-genital sex characteristics exist before puberty, as the difference is often so small that they could easily be attributed purely to environmental or social factors.
But most people will live and die without such a distinction ever being relevant in their lives.
Methinks that this distinction plays an important role in your life, but you must realize that it does not in that of most.
The other difference is that of all the other things I mentioned, the distinction is of a very technical and exact nature, whereas “sex” as is common in biology is bereft of a technical definition, and “gender” as is common in psychology even more so. — I initially used the phrase “technical term”, but I am honestly loathe to do so for concepts so poorly defined as either “sex” or “gender” whereof specialists very frequently disagree on wherein to place objects discussed.
NHS recorded gender can be self reported. https://pcse.england.nhs.uk/help/registrations/adoption-and-...