> classify whether you’re thinking about porn or not, and emits a beep whenever it detects it
Already gone down this road with lower tech. In the 50s - 70s it was in vogue to monitor blood flow to the genitals while subjecting the subject to erotic imagery of various kinds to see what turned them on. [1]
It was then realized that arousal is also correlated with pupil dilation, which meant that a much less invasive test was possible. Which of course led to the Canadian government (and probably other governments) using it in the 1960s to detect possible homosexuals in the public service. [2]
The scientific flaws and human rights violations of such a test are too many to even begin to list in a short post like this. Still, the inconvenient and disturbing thing is: it does work. Sort of. Kind of. Not good enough to be confident about the result with an individual, but a properly run protocol has better than chance odds at determining if a man is gay or straight, in terms of aligning with their self-reports about what arouses them.
Whether someone is actually erotically aroused by something based on a physical response is obviously controversial. For example, a repeatable finding is that self-reported-heterosexual men with intensely homophobic views are more aroused by homosexual male imagery than the average heterosexual male. Commonly reported in the news and media as: homophobic men are secretly gay. And I guess that's one possible interpretation. But someone about to to fly into a fit of rage is also aroused. Sometimes literally -- sexual arousal during flight-or-fight and disgust responses is a thing. So it's tricky to interpret what that result means, if anything.
No doubt we will fall into similar traps again, with the brain scanning version of it.
[1] https://en.wikipedia.org/wiki/Penile_plethysmography
[2] https://en.wikipedia.org/wiki/Fruit_machine_(homosexuality_t...