A machine that can read minds might be more at home in a science fiction movie, but researchers using a magnetic resonance device read the minds of volunteers to determine what song they were listening to.

Scientists at Brazil’s D’Or Institute for Research and Education selected six volunteers and had them listen to 40 pieces of classical music, rock, pop, jazz, and other genres while connected to the MR device.

The machine captured the neural fingerprint of each song on volunteer’s brain while a computer, using this data, learned to identify the brain patterns produced by each musical selection.

Given a choice between two songs the computer, with 85% accuracy, was able to correctly identify the song the participants were listening to based their brain activity.

The researchers plan to find out what makes some people love a song while others don’t.

Results of the researcher’s work were published in the journal Scientific Reports