# US 10,957,290 B2 · Lyrics analyzer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,957,290 B2
- Document ID: US10957290B2
- Status: Granted
- Kind: B2
- Application number: 16/111,596
- Filed: 2018-08-24
- Published: 2019-02-28
- Granted: 2021-03-23
- Earliest claimed: 2017-08-31
- Assignees: Spotify AB
- Applicants: Spotify AB
- Inventors: Tahora H. Nazer; Tristan Jehan
- Web page: https://patentgrep.com/patent/US10957290B2

## CPC

- G10H 1/0008: {Associated control or indicating means}
- G06F 16/4387: {by the use of playlists}
- G06F 16/685: {using automatically derived transcript of audio data, e.g. lyrics (speech recognition G10L15/00)}
- G06F 16/686: {using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 40/242: Dictionaries
- G06F 40/279: Recognition of textual entities
- G06F 40/30: Semantic analysis
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G10L 15/14: using statistical models, e.g. Hidden Markov Models [HMMs] (G10L15/18 takes precedence)
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G10H 2210/031: Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal
- G10H 2210/056: for extraction or identification of individual instrumental parts, e.g. melody, chords, bass; Identification or separation of instrumental parts by their characteristic voices or timbres
- G10H 2220/005: Non-interactive screen display of musical or status data
- G10H 2220/011: Lyrics displays, e.g. for karaoke applications
- G10H 2240/081: Genre classification, i.e. descriptive metadata for classification or selection of musical pieces according to style
- G10H 2240/085: Mood, i.e. generation, detection or selection of a particular emotional content or atmosphere in a musical piece
- G10H 2240/141: Library retrieval matching, i.e. any of the steps of matching an inputted segment or phrase with musical database contents, e.g. query by humming, singing or playing; the steps may include, e.g. musical analysis of the input, musical feature extraction, query formulation, or details of the retrieval process
- G10H: ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A lyrics analyzer generates tags and explicitness indicators for a set of tracks. These tags may indicate the genre, mood, occasion, or other features of each track. The lyrics analyzer does so by generating an n-dimensional vector relating to a set of topics extracted from the lyrics and then using those vectors to train a classifier to determine whether each tag applies to each track. The lyrics analyzer may also generate playlists for a user based on a single seed song by comparing the lyrics vector or the lyrics and acoustics vectors of the seed song to other songs to select songs that closely match the seed song. Such a playlist generator may also take into account the tags generated for each track.

## Claims

### Claim 1

A method, comprising:
receiving a plurality of tracks at an information storage and retrieval platform via an electronic communication from a datastore of tracks, the plurality of the tracks including lyrics;
extracting n topics summarizing the lyrics of the plurality of tracks, each topic consisting of a plurality of words, where n is an integer;
generating, for each of the plurality of tracks, an n-dimensional vector using a generative statistical model based on the association of the lyrics of the track with the n topics, thereby generating a plurality of n-dimensional lyrics vectors;
receiving, for at least one of the plurality of tracks, an acoustic vector based on non-lyrics audio features within the plurality of tracks;
calculating a hybrid vector for at least one of the plurality of tracks by concatenating the n-dimensional lyrics vector and the acoustic vector for the at least one track;
receiving a set of one or more first track tags;
receiving a set of training tracks from among the plurality of tracks associated with each of the one or more first track tags;
receiving at least one indicator of explicitness associated with the set of training tracks;
training a first tag classifier for each of the set of first track tags based on the hybrid vector of at least one of the training tracks for each track tag;
predicting a first set of predicted track tags for at least one of the plurality of tracks by applying each first tag classifier to the hybrid vector of at least one of the plurality of tracks;
training an explicitness classifier based on the hybrid vector of at least one of the training tracks and the at least one indicator of explicitness associated with the training tracks; and
generating at least one predicted explicitness indicator by applying the explicitness classifier to the hybrid vector of at least one of the plurality of tracks.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generative statistical model is a Latent Dirichlet Allocation (LDA) model.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
processing the lyrics of the plurality of tracks, wherein the processing includes: (i) white-space standardizing, (ii) lowercasing, (iii) removing stopwords, (iv) removing punctuation, (v) lemmatizing, (vi) removing character repetition based on a dictionary, or (vii) any combination of (i), (ii), (iii), (iv), (v), and (vi).

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
displaying one or more predicted track tags generated for at least one of the plurality of tracks.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the first classifier and explicitness classifier are based on at least one of (i) a Random Forest classifier, (ii) a Naïve Bayes classifier, (iii) a Decision Tree classifier, (iv) a Stochastic Gradient Descent classifier, (v) a K-Nearest Neighbors classifier, or (vi) any combination of (i), (ii), (iii), (iv), and (v).

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
training a second tag classifier for each of the set of track tags based on the lyrics vectors of each of the training tracks for each track tag;
predicting a second set of predicted track tags for each of the plurality of tracks by applying each second tag classifier to the lyrics vectors of each of the plurality of tracks; and
generating a final set of track tags based on the combination of the first set of predicted tags and the second set of predicted track tags.

### Claim 7 (depends on 6)

The method according to claim 6, wherein generating a final set of track tags is based on the union of the first set of track tags and the second set of track tags.

### Claim 8 (depends on 6)

The method according to claim 6, wherein generating a final set of track tags is based on the intersection of the first set of track tags and the second set of track tags.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the one or more set of first track tags is generated based on titles of playlists containing the associated training tracks.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the set of first track tags is generated based on expert analysis of the associated training tracks.

### Claim 11

A system comprising:
a computer-readable memory storing executable instructions; and
one or more processors in communication with the computer-readable memory, wherein the one or more processors are programmed by the executable instructions to at least perform:
receiving a plurality of tracks at an information storage and retrieval platform via an electronic communication from a datastore of tracks, the plurality of the tracks including lyrics;
extracting n topics summarizing the lyrics of the plurality of tracks, each topic consisting of a plurality of words, where n is an integer;
generating, for each of the plurality of tracks, an n-dimensional vector using a generative statistical model based on the association of the lyrics of the track with the n topics, thereby generating a plurality of n-dimensional lyrics vectors;
receiving, for at least one of the plurality of tracks, an acoustic vector based on non-lyrics audio features within the plurality of tracks;
calculating a hybrid vector for at least one of the plurality of tracks by concatenating the n-dimensional lyrics vector and the acoustic vector for the at least one track;
receiving a set of one or more first track tags;
receiving a set of training tracks from among the plurality of tracks associated with each of the one or more first track tags;
receiving at least one indicator of explicitness associated with the set of training tracks;
training a first tag classifier for each of the set of first track tags based on the hybrid vector of at least one of the training tracks for each track tag;
predicting a first set of predicted track tags for at least one of the plurality of tracks by applying each first tag classifier to the hybrid vector of at least one of the plurality of tracks;
training an explicitness classifier based on the hybrid vector of at least one of the training tracks and the at least one indicator of explicitness associated with the training tracks; and
generating at least one predicted explicitness indicator by applying the explicitness classifier to the hybrid vector of at least one of the plurality of tracks.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the generative statistical model is a Latent Dirichlet Allocation (LDA) model.

### Claim 13 (depends on 11)

The system according to claim 11, wherein the one or more processors are further programmed by the executable instructions to perform:
processing the lyrics of the plurality of tracks, wherein the processing includes: (i) white-space standardizing, (ii) lowercasing, (iii) removing stopwords, (iv) removing punctuation, (v) lemmatizing, (vi) removing character repetition based on a dictionary, or (vii) any combination of (i), (ii), (iii), (iv), (v), and (vi).

### Claim 14 (depends on 11)

The system according to claim 11, wherein the one or more processors are further programmed by the executable instructions to perform:
displaying one or more predicted track tags generated for at least one of the plurality of tracks.

### Claim 15 (depends on 11)

The system according to claim 11, wherein the first classifier and explicitness classifier are based on at least one of (i) a Random Forest classifier, (ii) a Naïve Bayes classifier, (iii) a Decision Tree classifier, (iv) a Stochastic Gradient Descent classifier, (v) a K-Nearest Neighbors classifier, or (vi) any combination of (i), (ii), (iii), (iv), and (v).

### Claim 16 (depends on 11)

The system according to claim 11, wherein the one or more processors are further programmed by the executable instructions to perform:
training a second tag classifier for each of the set of track tags based on the lyrics vectors of each of the training tracks for each track tag;
predicting a second set of predicted track tags for each of the plurality of tracks by applying each second tag classifier to the lyrics vectors of each of the plurality of tracks; and generating a final set of track tags based on the combination of the first set of predicted tags and the second set of predicted track tags.

### Claim 17 (depends on 16)

The system according to claim 16, wherein generating a final set of track tags is based on the union of the first set of track tags and the second set of track tags.

### Claim 18 (depends on 16)

The system according to claim 16, wherein generating a final set of track tags is based on the intersection of the first set of track tags and the second set of track tags.

### Claim 19

A non-transitory computer-readable medium having stored thereon one or more sequences of instructions for causing one or more processors to perform:
receiving a plurality of tracks at an information storage and retrieval platform via an electronic communication from a datastore of tracks, the plurality of the tracks including lyrics;
extracting n topics summarizing the lyrics of the plurality of tracks, each topic consisting of a plurality of words, where n is an integer;
generating, for each of the plurality of tracks, an n-dimensional vector using a generative statistical model based on the association of the lyrics of the track with the n topics, thereby generating a plurality of n-dimensional lyrics vectors;
receiving, for at least one of the plurality of tracks, an acoustic vector based on non-lyrics audio features within the plurality of tracks;
calculating a hybrid vector for at least one of the plurality of tracks by concatenating the n-dimensional lyrics vector and the acoustic vector for the at least one track;
receiving a set of one or more first track tags;
receiving a set of training tracks from among the plurality of tracks associated with each of the one or more first track tags;
receiving at least one indicator of explicitness associated with the set of training tracks;
training a first tag classifier for each of the set of first track tags based on the hybrid vector of at least one of the training tracks for each track tag;
predicting a first set of predicted track tags for at least one of the plurality of tracks by applying each first tag classifier to the hybrid vector of at least one of the plurality of tracks;
training an explicitness classifier based on the hybrid vector of at least one of the training tracks and the at least one indicator of explicitness associated with the training tracks; and
generating at least one predicted explicitness indicator by applying the explicitness classifier to the hybrid vector of at least one of the plurality of tracks.

### Claim 20 (depends on 19)

The system according to claim 19, wherein the one or more set of first track tags is generated based on titles of playlists containing the associated training tracks.

### Claim 21 (depends on 19)

The system according to claim 19, wherein the set of first track tags is generated based on expert analysis of the associated training tracks.
