“Our findings show that you can to some extent predict which songs are going to get stuck in people’s heads based on the song’s melodic content,” said Jakubowski, who’s now a research assistant in the Department of Music at Durham University. “This could help aspiring songwriters or advertisers write a jingle everyone will remember for days or months afterwards.”The study confirmed the idea that frequent and recent exposure to a song make it more likely to become an earworm, and that people who sing and listen to music often tend to experience this phenomenon more than others. It also found that words, images, and other associations can bring songs to mind, often from deep in our memories.

“We now also know that, regardless of the chart success of a song, there are certain features of the melody that make it more prone to getting stuck in people’s heads like some sort of private musical screensaver,” said Jakubowski.

But here’s the part of the study you’ve probably been waiting for: what to do about it when it happens to you. Based on survey responses of what’s worked for other people, the authors make three recommendations:

  1. Engage with the song. Many people said that listening to a song all the way through helps quiet the constant loop in their heads.
  2. Distract yourself. Thinking about or listening to another song helps some people, too. In the study—which surveyed Brits—the top-named “cure song” was “God Save the Queen.” (Maybe the U.S. equivalent is the “Star Spangled Banner?”)
  3. Let it be. Other people reported that the best way to get rid of an earworm was to just try not to think about it, and let it fade away naturally on its own.

Jakubowski says that 90 percent of us get songs stuck in our heads at least once a week, normally when the brain is not doing much—while we’re in the shower, walking, or doing mindless chores, for example. Further research on this topic could potentially help scientists understand how brain networks involved in perception, emotion, memory, and spontaneous thought behave in different people, she says.

The study, which was published today in the academic journal Psychology of Aesthetics, Creativity and the Arts, lists the following as the most frequently named earworms. (Remember, the survey was done between 2010 and 2013.) We apologize in advance for bringing them up, as we know you’ll be humming them all week long.

  1. Bad Romance – Lady Gaga
  2. Can’t Get You Out Of My Head – Kylie Minogue
  3. Don’t Stop Believing – Journey
  4. Somebody That I Used To Know – Gotye
  5. Moves Like Jagger – Maroon 5
  6. California Gurls – Katy Perry
  7. Bohemian Rhapsody – Queen
  8. Alejandro – Lady Gaga
  9. Poker Face – Lady Gaga