News for hackers. Stuff that matters.
Re:ML model can classify sex from retinal photograph, clinic... by drcode on Saturday May 15, 2021 @03:44PM (#27168308)
Keep in mind ML models are really great at cheating to get answers: Maybe it's detecting that women have to tilt their head up more to reach the retinal photography machine, because they're shorter on average. Maybe, some of the images come from an optometrist that specializes in women's glass frames, and his retinal photography machine has a slightly dimmer bulb. Maybe, men are more likely to get a retinograph only when they have more severe disease already, so the retinas look different for that reason.
Re:ML model can classify sex from retinal photograph, clinic... by acituan on Saturday May 15, 2021 @04:26PM (#27168670)
Their use of an external validation dataset eliminates many, if not all, of those concerns.

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.

Re:ML model can classify sex from retinal photograph, clinic... by nerdponx on Saturday May 15, 2021 @06:48PM (#27169682)
Still, until we have a better sense of what features the model is extracting, it's a surprising result and ought to be treated with caution.
Re:ML model can classify sex from retinal photograph, clinic... by slver on Sunday May 16, 2021 @02:27AM (#27171651)
I wish we treated our own conclusions this way.
Re:ML model can classify sex from retinal photograph, clinic... by ithkuil on Sunday May 16, 2021 @03:05AM (#27171818)
Science's secret weapon is the innate pleasure that many academics have in proving their colleagues wrong.
Re:ML model can classify sex from retinal photograph, clinic... by slver on Sunday May 16, 2021 @08:16AM (#27173150)
Unfortunately that also results in them trying to prove their colleagues are wrong about other of their colleagues being wrong.

So the bottom line is that ironically due to this science gets stuck on false beliefs and they can be a bit hard to dislodge.

We have even this principle: https://en.wikipedia.org/wiki/Planck%27s_principle

Re:ML model can classify sex from retinal photograph, clinic... by raihansaputra on Sunday May 16, 2021 @03:21AM (#27171878)
That same spirit is also what's behind shorts in the market to keep overly optimistic players in check. As with crypto-ransom operations against corporations to keep their system security on alert. Adversarial actions (within reasonable boundaries) is the most important balance mechanism.
Re:ML model can classify sex from retinal photograph, clinic... by slver on Monday May 17, 2021 @02:32AM (#27180592)
The problem is keeping the adversaries balanced. Otherwise you have one side overpowering everything (and typically not through the "correctness" of their argument, but scale and resources) and the adversarial system becomes detrimental to progress.
Re:ML model can classify sex from retinal photograph, clinic... by X6S1x6Okd1st on Saturday May 15, 2021 @06:48PM (#27169686)
Yup. I learned this the hard way on the last model I trained at scale. It was evaluating fit between two heterogeneous classes I sampled training & test split off of a large time window and got to work. It performed extremely well on test & training. Too good.

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.

Re:ML model can classify sex from retinal photograph, clinic... by max_ on Saturday May 15, 2021 @04:36PM (#27168769)
Thank you very much for this comment.

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.

Re:ML model can classify sex from retinal photograph, clinic... by _nothing on Saturday May 15, 2021 @10:59PM (#27170845)
What kind of publications are you referring to? Yeah, many pop-sci articles often overstate the implications of a given discovery, but actual research papers (such as the one linked) typically have a discussion section in which they describe the limitations of the discovery and what kind of future research could help expound on the pitfalls of the current research.

The paper in this post itself has its own Limitations section.

Re:ML model can classify sex from retinal photograph, clinic... by max_ on Sunday May 16, 2021 @10:35AM (#27173994)
> 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"

[0]:https://en.m.wikipedia.org/wiki/Turing_test

[1]:https://en.wikipedia.org/wiki/Koch's_postulates

Re:ML model can classify sex from retinal photograph, clinic... by Baeocystin on Saturday May 15, 2021 @03:52PM (#27168394)
To wit- the apocryphal Tank story:

https://www.gwern.net/Tanks

Re:ML model can classify sex from retinal photograph, clinic... by B1FF_PSUVM on Saturday May 15, 2021 @04:07PM (#27168528)
"""

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.

"""

Re:ML model can classify sex from retinal photograph, clinic... by SubiculumCode on Saturday May 15, 2021 @07:38PM (#27169942)
That is a pretty novice mistake for a paid scientist, imo.
Re:ML model can classify sex from retinal photograph, clinic... by m4x on Sunday May 16, 2021 @01:07AM (#27171362)
The story apparently dates from 1963. I wouldn't judge any scientist training neural networks in the 60s too harshly.
Re:ML model can classify sex from retinal photograph, clinic... by SubiculumCode on Sunday May 16, 2021 @03:18PM (#27176194)
I certainly did not expect the down votes. I've designed a number psychology experiments and I and my colleagues were always careful to balance experimental stimuli and conditions on a number of factors, ranging from luminosity to semantic association, and especially order.

When I was tasked to create stimuli or to take measurements on a series of items it was always important to try to eliminate systematic differences on non-interest, most typically thru randomization of the order of creation or measurements.

Re:ML model can classify sex from retinal photograph, clinic... by gwern on Monday May 17, 2021 @11:58AM (#27184933)
I would point out that the study which appears to be the closest thing to a tiny seed of truth to the tank story (Kanal & Randall 1964) actually did balance its photographs by construction, by subcropping large aerial photographs to have tank/no-tank sections and training on that. That necessarily controls for time-of-day, weather, luminosity etc.
Re:ML model can classify sex from retinal photograph, clinic... by sgt101 on Saturday May 15, 2021 @03:55PM (#27168419)
apocryphal ehh?
Re:ML model can classify sex from retinal photograph, clinic... by m463 on Sunday May 16, 2021 @12:40AM (#27171274)
I read somewhere that an ML model could detect cancerous tumors, but it was keying off the ruler used to measure tumor size.
Re:ML model can classify sex from retinal photograph, clinic... by stevelosh on Sunday May 16, 2021 @02:24AM (#27171639)
Paper: https://www.sciencedirect.com/science/article/pii/S0022202X1...

> 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.

Re:ML model can classify sex from retinal photograph, clinic... by raverbashing on Sunday May 16, 2021 @01:27AM (#27171433)
Yeah, when I read the headline I thought Cornea/Iris, not Retina, and there are a couple of ways an ML could "cheat" there.

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.

Re:ML model can classify sex from retinal photograph, clinic... by ASalazarMX on Monday May 17, 2021 @02:09PM (#27186292)
ML needs an EXPLAIN command so it can point the features that determined its answer.
Re:ML model can classify sex from retinal photograph, clinic... by mousepilot on Monday May 17, 2021 @02:12PM (#27186328)
with neural networks, I'd imagine this feature would be difficult to implement.
Re:ML model can classify sex from retinal photograph, clinic... by ASalazarMX on Wednesday May 19, 2021 @03:51PM (#27213605)
NN: This is a woman's retina.

Scientist: How do you know that?

NN: I just do, trust me.

Re:ML model can classify sex from retinal photograph, clinic... by ed25519FUUU on Saturday May 15, 2021 @04:17PM (#27168599)
Reproducibility is one thing I like about AI research. If they provide the model, I can take on my own computer and test it against whatever I want and judge it.

Most things in science is almost impossible to reproduce because of cost or specialized equipment.

Re:ML model can classify sex from retinal photograph, clinic... by sombremesa on Saturday May 15, 2021 @08:44PM (#27170257)
> test it against whatever I want and judge it

Is that what reproducibility means?

Re:ML model can classify sex from retinal photograph, clinic... by robocat on Saturday May 15, 2021 @06:10PM (#27169477)
Slight reflections of eyelashes? Especially if blurred?
Re:ML model can classify sex from retinal photograph, clinic... by 8note on Saturday May 15, 2021 @07:48PM (#27169986)
I'm uncertain how they're defining sex in this.

I think a good control would be to see how this model treats trans people at varying stages of transition

Re:ML model can classify sex from retinal photograph, clinic... by read_if_gay_ on Saturday May 15, 2021 @07:55PM (#27170027)
I don’t think its confidence will necessarily match the degree to which a trans person has transitioned.

But indeed it would be interesting to see how trans people are treated at all.

Re:ML model can classify sex from retinal photograph, clinic... by Spooky23 on Saturday May 15, 2021 @09:49PM (#27170538)
It depends on what you mean, as that community has a pretty vast and complex taxonomy.

Estrogen levels affect the eyes, so given enough samples and context it may be surprising accurate for people getting that type of therapy.

Re:ML model can classify sex from retinal photograph, clinic... by AussieWog93 on Saturday May 15, 2021 @10:47PM (#27170804)
I think the problem with that line of thinking is that even after fully transitioning, trans people still tend to have strong biological markers of the sex they've transitioned from.

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.

Re:ML model can classify sex from retinal photograph, clinic... by elil17 on Saturday May 15, 2021 @11:50PM (#27171055)
It really depends on the bio marker. Most bio markers are effected: fat distribution, hair texture (curly vs. straight), and even immune system function. I’d think that learning whether this model works on people who’ve taken hormones for gender transition could give some insight into what it’s detecting. Perhaps there are retinal features whose function or form are impacted by the presence of testosterone, for instance, or maybe it’s a different that forms before birth.
Re:ML model can classify sex from retinal photograph, clinic... by 0x000000E2 on Sunday May 16, 2021 @12:06AM (#27171142)
My theory: retinal photos often contain parts of eyelashes.

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

Re:ML model can classify sex from retinal photograph, clinic... by ncmncm on Sunday May 16, 2021 @02:51AM (#27171747)
Serious question: Do you know what a retina is?
Re:ML model can classify sex from retinal photograph, clinic... by antonvs on Wednesday May 19, 2021 @06:15AM (#27206616)
I'm not sure he knows what eyes are.