# US 2022/0238087 A1 · Methods and systems for determining compact semantic representations of digital audio signals

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

- Number: US 2022/0238087 A1
- Document ID: US20220238087A1
- Status: Published application
- Kind: A1
- Application number: 17/609,588
- Filed: 2020-05-07
- Published: 2022-07-28
- Earliest claimed: 2019-05-07
- Assignees: Moodagent A/S
- Applicants: Moodagent A/S
- Inventors: Peter Berg STEFFENSEN; Mikael HENDERSON; Uffe ANDERSEN; Thomas JØRGENSEN
- Web page: https://patentgrep.com/patent/US20220238087A1

## CPC

- G10H 1/00: Details of electrophonic musical instruments
- G10H 1/0008: {Associated control or indicating means}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N 3/096: Transfer learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G10H 2210/041: based on mfcc [mel -frequency spectral coefficients]
- 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 2250/225: MDCT [Modified discrete cosine transform], i.e. based on a DCT of overlapping data
- G10H 2250/311: Neural networks for electrophonic musical instruments or musical processing, e.g. for musical recognition or control, automatic composition or improvisation
- G10L 25/30: using neural networks
- 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
- 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 method and system for determining a compact semantic representation of a digital audio signal using a computer-based system by calculating at least one low-level feature matrix from the digital audio signal; processing the low-level feature matrix or matrices using pre-trained machine learning engines including an ensemble of modules, wherein each module in the ensemble is trained to predict a one of a plurality of high-level feature values; and concatenating the obtained plurality of high-level feature values into a descriptor vector. The calculated descriptor vectors can be used alone, or in an arbitrary or temporally ordered combination with further descriptor vectors calculated from different audio signals extracted from the same music track, as a compact semantic representation of the respective music track.

## Claims

### Claim at position 1

1-27. (canceled)

### Claim 28

A method for determining a compact semantic representation of a digital audio signal using computer-based system, the method comprising:
providing a digital audio signal;
calculating, using a digital signal processor module, a low-level feature matrix from the digital audio signal, the low-level feature matrix comprising numerical values corresponding to a low-level audio feature in a temporal sequence;
calculating, using a general extractor module, a high-level feature matrix from the low-level feature matrix, the high-level feature matrix comprising numerical values corresponding to a high-level audio feature;
calculating, using a feature-specific extractor module, a number nf of high-level feature vectors from the high-level feature matrix, each high-level feature vector comprising numerical values corresponding to a high-level audio feature;
calculating, using a feature-specific regressor module, a number nf of high-level feature values from the number nf of high-level feature vectors;
wherein each high-level feature value represents a musical or emotional characteristic of the digital audio signal; and
calculating a descriptor vector by concatenating the number nf of high-level feature values.

### Claim 29 (depends on 28)

The method according to claim 28, wherein the low-level feature matrix is a vertical concatenation of the Mel-spectrogram of the digital audio signal and its subsequent first and second derivatives, and the low-level feature matrix preferably comprises a number of rows ranging from 1 to 1000, more preferably 1 to 200, most preferably 102 rows; and a number of columns ranging from 1 to 5000, more preferably 1 to 1000, most preferably 612 columns.

### Claim 30 (depends on 28)

The method according to claim 28, wherein the general extractor module uses a pre-trained Convolutional Neural Network, CNN, model, wherein the architecture of the CNN model comprises:
an input block configured for normalizing the low-level feature matrix using a batch normalization layer; followed by
four consecutive convolutional blocks; and
an output layer.

### Claim 31 (depends on 30)

The method according to claim 30, wherein each of the four consecutive convolutional blocks comprises:
a 2-dimensional convolutional layer,
a batch normalization layer,
an Exponential Linear Unit,
a 2-dimensional max pooling layer, and
a dropout layer; and
wherein the convolutional layer of the first convolutional block comprises 64 filters, while the convolutional layers of the further consecutive blocks comprise 128 filters.

### Claim 32 (depends on 30)

The method according to claim 30, wherein the CNN model is pre-trained in isolation from the rest of the modules as a musical genre classifier model by:
replacing the output layer with a recurrent layer and a decision layer in the architecture of the CNN model;
providing a number nl of labeled digital audio signals, wherein each labeled digital audio signal comprises an associated ground truth musical genre;
training the CNN model by using the labeled digital audio signals as input, and iterating over a number of N epochs; and
after the training, replacing the recurrent layer and decision layer with an output layer in the architecture of the CNN model;
wherein the number nl is 1≤nl≤100,000,000, more preferably 100,000≤nl≤10,000,000, more preferably 300,000≤nl≤400,000, most preferably nl=340,000; and
wherein the number of training epochs is 1≤N≤1000, more preferably 1≤N≤100, most preferably N=40.

### Claim 33 (depends on 32)

The method according to claim 32, wherein the recurrent layer comprises two Gated Recurrent Units, GRU, layers, and a dropout layer; and the decision layer comprises a fully connected layer.

### Claim 34 (depends on 28)

The method according to claim 28, wherein the high-level feature matrix comprises a number of rows ranging from 1 to 1000, more preferably 1 to 100, most preferably 32 rows; and a number of columns ranging from 1 to 1000, more preferably 1 to 500, most preferably 128 columns.

### Claim 35 (depends on 28)

The method according to claim 28, wherein the feature-specific extractor module uses an ensemble of a number nf of a pre-trained Recurrent Neural Network, RNN, models, wherein the architecture of the RNN models may differ from each other, and a preferred RNN model architecture comprises:
two Gated Recurrent Units, GRU, layers, and
a dropout layer.

### Claim 36 (depends on 35)

The method according to claim 35, wherein each of the RNN models in the ensemble is pre-trained as a regressor to predict one target value from the number nf of high-level feature values by:
providing an additional, fully connected layer of one unit in the architecture of the RNN model,
providing a number of annotated digital audio signals, wherein each annotated digital audio signal comprises a number of annotations, the number of annotations comprising ground truth values XGT for high-level features of the respective annotated digital audio signal;
training each RNN model to predict one target value XP from the high-level feature values by using the annotated digital audio signals as input, and iterating until the Mean Absolute Error, MAE, between the one predicted target value XP and the corresponding ground truth value XGT meets a predefined threshold T; and
after the training, removing the fully connected layer from the architecture of the RNN model;
wherein the total number na of annotations is 1≤na≤100,000, more preferably 50,000≤na≤100,000 more preferably 70,000≤na≤80,000.

### Claim 37 (depends on 28)

The method according to claim 28, wherein the high-level feature vector is a 1-dimensional vector comprising a number of values ranging from 1 to 1024, more preferably from 1 to 512, most preferably comprising either 33, 128 or 256 values.

### Claim 38 (depends on 28)

The method according to claim 28, wherein the feature-specific regressor module uses an ensemble of a number nf of a pre-trained Gaussian Process Regressor, GPR, models, wherein:
each GPR model is specifically configured to one target value from the number nf of high-level feature values, and
each GPR model uses a rational quadratic kernel, wherein the kernel function k for points xi,xj is given by:
k
⁡
(
x
i
,
x
j
)
=
σ
⁡
(
1
+
(
x
i
-
x
j
)
2
(
2
⁢
α
⁢
l
2
)
)
-
α
wherein {σ,α,l}∈[0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8].

### Claim 39 (depends on 37)

The method according to claim 37, wherein each of the GPR models in the ensemble is pre-trained as a regressor to predict one target value from the number nf of high-level feature values by:
providing a number of annotated digital audio signals, wherein each annotated digital audio signal comprises a number of annotations, the number of annotations comprising ground truth values for high-level features of the respective annotated digital audio signal;
training each GPR model to predict one target value from the high-level feature values by using the annotated digital audio signals as input, and iterating until the Mean Absolute Error, MAE, between the one predicted target value and the corresponding ground truth value meets a predefined threshold;
repeating the above steps by performing a hyper-parameter grid search on the parameters σ, α and l of the kernel by assigning each parameter a value from a predefined list of [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8], and using Mean Squared Error, MSE, as the evaluation metric, until the combination of three hyper-parameters that obtain the lowest MSE are identified; and
keeping the model with the smallest error by comparing the MAE and MSE;
wherein the total number na of annotations is 1≤na≤100,000, more preferably 50,000≤na≤100,000 more preferably 70,000≤na≤80,000.

### Claim 40 (depends on 28)

The method according to claim 28, further comprising training a descriptor profiler engine, the descriptor profiler engine comprising the digital signal processor module, the general extractor module, the feature-specific extractor module, and the feature-specific regressor module; by:
providing a number naa of auto-annotated digital audio signals, wherein each auto-annotated digital audio signal comprises an associated descriptor vector comprising truth values for different musical or emotional characteristics of the digital audio signal;
training the descriptor profiler engine by using the auto-annotated digital audio signals as input, and iterating the modules until the Mean Absolute Error, MAE, between calculated values of descriptor vectors and truth values of associated descriptor vectors meets a predefined threshold; and
calculating, using the trained descriptor profiler engine, descriptor vectors for un-annotated digital audio signals with no associated descriptor vectors, wherein the number naa is 1≤naa≤100,000,000, more preferably 100,000≤naa≤1,000,000, more preferably 500,000≤naa≤600,000.

### Claim 41

A method for determining a compact semantic representation of a digital audio signal using computer-based system, the method comprising:
providing a digital audio signal;
calculating, using a low-level feature extractor module, from the digital audio signal , a Mel-spectrogram, and a Mel Frequency Cepstral Coefficients, MFCC, matrix;
processing, using a low-level feature pre-processor module the Mel-spectrogram and MFCC matrix, wherein the Mel-spectrogram is subjected separately to at least a Multi Auto Regression Analysis, MARA, process and a Dynamic Histogram, DH, process, and the MFCC matrix is subjected separately to at least an Auto Regression Analysis, ARA, process and a MARA process, wherein the output of each MARA process is a first order multivariate autoregression matrix, the output of each ARA process is a third order autoregression matrix, and the output of each DH process is a dynamic histogram matrix; and
calculating, using an ensemble learning module, a number nf of high-level feature values by:
feeding the output matrices from the low-level feature pre-processor module as a group parallelly into a number nf of ensemble learning blocks within the ensemble learning module, each ensemble learning block further comprising a number nGP of parallelly executed Gaussian Processes, GPs, wherein each of the GPs receives at least one of the output matrices and outputs a predicted high-level feature value, and
picking, as the output of each ensemble learning block, the best candidate from the predicted high-level feature values, using statistical data, as one of the number nf of high-level feature values, wherein each high-level feature value represents a musical or emotional characteristic of the digital audio signal; and
calculating a descriptor vector by concatenating the number nf of high-level feature values.

### Claim 42 (depends on 41)

The method according to claim 41, wherein picking the best candidate from the predicted high-level feature values comprises:
determining, using a predefined database of statistical probabilities regarding the ability of each GP to predict a certain high-level feature value, the GP within the ensemble learning block with the lowest probability to predict the respective high-level feature value, and discarding its output; and
picking the predicted high-level feature value with a numerical value in the middle from within the remaining outputs.

### Claim 43 (depends on 41)

The method according to claim 41, further comprising:
training an auto-annotating engine, the auto-annotating engine comprising the low-level feature extractor module, the low-level feature pre-processor module, and the ensemble learning module;
providing a number of annotated digital audio signals, wherein each annotated digital audio signal comprises a number of annotations, the number of annotations comprising ground truth values for high-level features of a respective annotated digital audio signal;
training the auto-annotating engine by using the annotated digital audio signals as input and training the Gaussian Processes using ordinal regression; and
calculating, using the trained auto-annotating engine, descriptor vectors for un-annotated digital audio signals, the descriptor vectors comprising predicted high-level features, wherein the total number na of annotations is 1≤na≤100,000, more preferably 50,000≤na≤100,000 more preferably 70,000≤na≤80,000.

### Claim 44 (depends on 43)

The method according to claim 43, wherein providing the number naa of auto-annotated digital audio signals comprises:
calculating the associated descriptor vector using a method.

### Claim 45 (depends on 44)

The method according to claim 44, further comprising:
storing the descriptor vector in a database alone, or in an arbitrary or temporally ordered combination with further one or more descriptor vectors, as a compact semantic representation of a music track,
wherein each of the descriptor vectors are calculated from different audio signals extracted from the same music track.
