Computers crack the code of pop-song success

It helps to be “happy” and “female.”

  • By Karen Kaplan Los Angeles Times (TNS)
  • Wednesday, May 16, 2018 7:14pm
  • Life

By Karen Kaplan / Los Angeles Times

LOS ANGELES — 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 percent.

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.

“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.

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 percent 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.

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.

When the algorithm used song data from 2009 to 2013 as a guide, it was able to make the correct guess 75 percent 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 percent 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 percent of the time. The accuracy improved to 86 percent 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.”

Talk to us

> Give us your news tips.

> Send us a letter to the editor.

> More Herald contact information.

More in Life

AquaSox General Manager Danny Tetzlaff keeps the whole circus running. (File photo)
Part baseball, part circus: What goes into a game at Funko Field?

It takes a small army of employees to make sure fans have a great time watching the Everett AquaSox.

Arlo Frostad, 7, and his twin brother Harrison Frostad, walk through the fields of Roozengaarde outside of Mount Vernon, Washington during the Skagit Valley Tulip Festival on April 10, 2025. (Will Geschke / The Herald)
Stop and smell the flowers at Skagit Valley Tulip Festival

The largest tulip festival in North America features five gardens and runs through April.

Image from Pexels.com
Top 3 Cannabis Shops You’ll Love in Snohomish County

Looking for quality products and good energy? Let’s discover the top spots.

The 2025 Lexus TX 350 is a three-row luxury SUV. It’s offered in Base, Premium, Luxury, and F Sport Handling grades (Provided by Lexus).
2025 Lexus TX 350 welcomes new F Sport Handling model

Unique exterior highlights, a glass roof and sport-tuned suspension are among the attractions.

Hybrid Touring Photo Provided by Subaru U.S. Media Center
2025 Subaru Forester Hybrid Increases Fuel Economy And Range

Sixth-Generation Model Receives Complete Refresh

Image from Canva.com
Chic & unique: The top 3 boutiques in Snohomish County you need to visit

From trendy finds to timeless pieces, discover the hidden gems that are redefining local fashion.

Image from Canva.com
Find your next favorite read in Snohomish County

Explore three of the finest bookshops where stories and community come together

Image from Canva.com
Say “I Do” to these stunning wedding venues

From rustic barns to elegant halls, discover where love stories in Snohomish County begin.

Grayson Bed and Breakfast (Photo courtesy of HD Estates and Grayson Bed and Breakfast)
The Grayson Bed and Breakfast: Where strangers become friends

A cozy retreat with scenic views and pet-friendly amenities just two miles from downtown Monroe.

Image from Prince Life Photography website.
Light, lens & love: These photographers bring the magic

Want to see who’s turning everyday moments into jaw-dropping memories? Let’s find out.

Small SUV Provides Big Time Value. Photo Provided by Chevrolet Newsroom
2025 Chevy Trax Activ Delivers Beyond Expectations

Sub-Compact SUV Surprises With Value And Features

Hai Viet Hong, center, performs with the Huong Viet Performing Arts Group during The Wendt Mayor’s Arts Awards on Thursday, April 10 in Everett, Washington. (Will Geschke / The Herald)
Everett artists celebrated with The Wendt Mayor’s Arts Awards

Award recipients included a former City Council member and the former publisher of My Everett News.

Support local journalism

If you value local news, make a gift now to support the trusted journalism you get in The Daily Herald. Donations processed in this system are not tax deductible.