Involuntary Musical Imagery, commonly known as an earworm, happens when the auditory cortex of your brain essentially gets stuck on a loop. It usually occurs with songs that have an upbeat tempo and an unusual, catchy melodic interval. Scientists suggest chewing gum can help break the mental loop by disrupting the motor programming involved in subvocal singing.