In the dark corners of the internet hides a playlist of some of the most torturous, addictive music known to man. That's right, Spotify, SoundCloud and Apple Music all have playlists of "Baby Shark" remixes. Do doo, do do, do do, do.
Would you walk 500 miles to get away from that tune? Will your poker face crack the thousandth time it plays in your head? Does it remind you of someone you used to know? Do you value the sound of silence?
You aren't alone. These so-called earworms are annoying but useful. Research published in the Journal of Experimental Psychology in June helps illuminate the exact function these loops play.
"We can hear just a fragment of a piece of music and it can take us back. How does that happen?" said Petr Janata, a researcher at the University of California, Davis.
Music therapists and shrewd marketers have long taken advantage of music's ability to trigger memory. As research continues to illuminate how the process works, their techniques and goals are likely to become increasingly refined and targeted.
An amateur musician and self-described Dead Head, Janata says earworms help your brain encode and parse through daily memories and sensations that might not have anything to do with the moment when you first heard the tune. As it plays over and over in your head, you might come to associate memories or sensations different from those you experienced on first listening.
These musical fragments became a kind of sorting mechanism that triggers clearer recall at a later date, especially when the tune plays once more, according to the study "Spontaneous Mental Replay of Music Improves Memory for Incidentally Associated Event Knowledge."
Janata and co-author Benjamin M. Kubit aren't the first to study earworms, also known by the more technical designation "Involuntary Musical Imagery," or INMI. Previous research has probed the characteristics of songs that are likely to become earworms, whether certain personality types are more likely to suffer the phenomenon and whether listening to unfamiliar catchy music interferes with concentration. (Spoiler: Of course it does.)