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

Sally Mullanix reads "Long Island" by Colm Tobin during Silent Book Club Everett gathering at Brooklyn Bros on Wednesday, Feb. 19, 2025 in Everett, Washington. (Olivia Vanni / The Herald)
A different happy hour: pizza, books and introverts

A different happy hour: pizza, books and introverts

Al Mannarino | For NJ Advance Media
Coheed & Cambria performing on day two of the inaugural Adjacent Music Festival in Atlantic City, New Jersey on Sunday, May 28, 2023.
Coheed & Cambria, Train, Jackson Browne and more

Music and arts coming to Snohomish County

The 140 seat Merc Playhouse, once home of the Twisp Mercantile, hosts theater, music, lectures and other productions throughout the year in Twisp. (Sue Misao)
Twisp with a twist: Road-tripping to the Methow Valley

Welcome to Twisp, the mountain town that puts “fun, funky and friendly” on the map.

Kayak Point Regional County Park in Stanwood, Washington on Wednesday, Jan. 17, 2024. (Annie Barker / The Herald)
Local music groups slated to perform in Stanwood festival

The first Kayak Point Arts Festival will include Everett-based groups RNNRS and No Recess.

View of Liberty Bell Mountain from Washington Pass overlook where the North Cascades Highway descends into the Methow Valley. (Sue Misao)
Take the North Cascades Scenic Highway and do the Cascade Loop

This two-day road trip offers mountain, valley and orchard views of Western and Eastern Washington.

Scarlett Underland, 9, puts her chicken Spotty back into its cage during load-in day at the Evergreen State Fair on Wednesday, Aug. 20, 2025 in Monroe, Washington. (Olivia Vanni / The Herald)
Evergreen State Fair ready for 116th year of “magic” in Monroe

The fair will honor Snohomish County’s farming history and promises to provide 11 days of entertainment and fun.

Inside El Sid, where the cocktail bar will also serve as a coffee house during the day on Tuesday, Aug. 12, 2025 in Everett, Washington. (Olivia Vanni / The Herald)
New upscale bar El Sid opens in APEX complex

Upscale bar is latest venue to open in APEX Everett.

Counting Crows come to Chateau Ste. Michelle on August 17. (Dan Gleiter | dgleiter@pennlive.com)
Counting Crows, Beach Boys, Chicago

Send calendar submissions for print and online to features@heraldnet.com. To ensure your… Continue reading

Annzolee Olsen with her chair, from Houseboat, and card table from a Robert Redford movie on Wednesday, July 23, 2025 in Everett, Washington. (Olivia Vanni / The Herald)
Hollywood’s hottest giveaway is at The Herald on Thursday

From TV hunks to silver screen queens, snag your favorites for free at the pop-up.

The orca Tahlequah and her new calf, designated J57. (Katie Jones / Center for Whale Research) 20200905
Whidbey Island local Florian Graner showcases new orca film

The award-winning wildlife filmmaker will host a Q&A session at Clyde Theater on Saturday.

Snohomish County Dahlia Society members Doug Symonds and Alysia Obina on Monday, March 3, 2025 in Lake Stevens, Washington. (Olivia Vanni / The Herald)
How to grow for show: 10 tips for prize-winning dahlias

Snohomish County Dahlia Society members share how they tend to their gardens for the best blooms.

Mustang Convertible Photo Provided By Ford Media Center
Ford’s 2024 Ford Mustang Convertible Revives The Past

Iconic Sports Car Re-Introduced To Wow Masses

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.