Advertisement

Computers crack the code of pop-song success: It helps to be ‘happy’ and ‘female’

Ariana Grande performs at the Coachella Valley Music and Arts Festival. She fits many of the criteria that computers used to recognize successful songs.
(Christopher Polk / Getty Images)
Share via

If you find it hard to predict which songs are destined for pop-chart success and which will flop, try asking a computer.

After analyzing the attributes of more than half a million songs released over a period of 30 years, a computer algorithm was able to sort the successful songs from also-rans with an accuracy of up to 86%.

A team of mathematicians from UC Irvine described how — and why — it accomplished this feat in a study published in Wednesday’s edition of the journal Royal Society Open Science.

Advertisement

“There is something magical about music,” wrote the team, which was led by students Myra Interiano, Kamyar Kazemi and Lijia Wang. “Scientists have been trying to disentangle the magic and explain what it is that makes us love some music, hate other music and just listen to music.”

For the purposes of the study, the UCI team considered a song a “success” if it made it onto the Top 100 Singles Chart in the United Kingdom between January 1985 and July 2015. They compared these successes with all other songs that were released in the U.K. during that time period.

To quantify the acoustic properties of these 500,000 or so songs, Interiano and her colleagues relied on crowd-sourced data from two projects of the MetaBrainz Foundation — MusicBrainz and AcousticBrainz.

Advertisement

This data classified songs according to 12 acoustic properties, including whether they are sung by a man or woman, are happy or sad, and are acoustic or electronic, among other attributes. Songs are also categorized according to their mood and genre, such as hip-hop, blues, country and house music.

Less than 4% of songs in the entire sample found their way onto the Top 100 Singles Chart. To see what set these songs apart, they employed a machine learning method known as the “random forest” algorithm to crunch through all the data.

Sure enough, some noteworthy patterns emerged.

“Successful songs are happier, brighter, more party-like, more danceable and less sad than most songs,” the team wrote.

Advertisement

That may sound like an obvious recipe for pop-music success. But it actually went against the dominant musical trends.

Over the decades, songs exhibited “a clear downward trend in ‘happiness’ and ‘brightness,’ as well as a slight upward trend in ‘sadness,’” the study authors reported. “The public seems to prefer happier songs, even though more and more unhappy songs are being released each year.”

That observation matched up with previous studies of song lyrics that found they contained fewer “positive emotions” and made more references to loneliness and social isolation as the years went by.

“It is interesting that, in this particular instance, acoustic characteristics of songs indicate similar patterns to those uncovered in lyrics,” the researchers wrote.

In addition, the successful songs in a given year tended to be less “male” than other songs released at the same time, according to the study.

To test the strength of their algorithm, they asked it to assess 1,052 songs that were released in 2014 and predict which of them charted and which of them were also-rans.

Advertisement

When the algorithm used song data from 2009 to 2013 as a guide, it was able to make the correct guess 75% of the time, the researchers reported.

The accuracy got even better when the researchers included a non-acoustic variable — the “superstar” factor.

An artist was deemed a superstar if he or she had a song on the charts in the previous five years. In a given year, somewhere between one-half and two-thirds of successful songs were from superstar artists. That compared with no more than 2% of songs in the larger pool that didn’t make the charts.

When the purely acoustic data were combined with the superstar data, the algorithm correctly identified successful songs 85% of the time. The accuracy improved to 86% when the algorithm trained itself on songs going back to 2004.

Even with this success rate, there are still limits on what computers can do, the team cautioned.

“We can see that, in general, successful songs are, for example, ‘happier,’ more ‘party-like,’ less ‘relaxed’ and more ‘female’ than most,” they concluded. But “this does not necessarily allow us to naively predict that a particular ‘happy, party-like, not relaxed’ song sung by a female is going to succeed.”

Advertisement

karen.kaplan@latimes.com

Follow me on Twitter @LATkarenkaplan and “like” Los Angeles Times Science & Health on Facebook.

MORE IN SCIENCE

Strange readings from a dead spacecraft reveal new evidence of water on Europa

Health officials launch ambitious plan to rid the world of trans fats

How hard is it to fly a helicopter on Mars? NASA will soon find out

Advertisement
Advertisement