# US 2021/0287662 A1 · Methods and apparatus to segment audio and determine audio segment similarities

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

- Number: US 2021/0287662 A1
- Document ID: US20210287662A1
- Status: Published application
- Kind: A1
- Application number: 17/331,596
- Filed: 2021-05-26
- Published: 2021-09-16
- Earliest claimed: 2018-09-04
- Assignees: Gracenote, Inc.
- Applicants: Gracenote, Inc.
- Inventors: Matthew McCallum
- Web page: https://patentgrep.com/patent/US20210287662A1

## CPC

- G10H 1/0008: {Associated control or indicating means}
- G10L 15/04: Segmentation; Word boundary detection
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G10L 15/063: {Training}
- G10L 15/16: using artificial neural networks
- G10H 2210/061: for extraction of musical phrases, isolation of musically relevant segments, e.g. musical thumbnail generation, or for temporal structure analysis of a musical piece, e.g. determination of the movement sequence of a musical work
- G10H 2210/076: for extraction of timing, tempo; Beat detection
- 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/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
- G10L 25/51: for comparison or discrimination
- 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
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, apparatus, and systems are disclosed to segment audio and determine audio segment similarities. An example apparatus includes at least one memory storing instructions and processor circuitry to execute instructions to at least select an anchor index beat of digital audio, identify a first segment of the digital audio based on the anchor index beat to analyze, the first segment having at least two beats and a respective center beat, concatenate time-frequency data of the at least two beats and the respective center beat to form a matrix of the first segment, generate a first deep feature based on the first segment, the first deep feature indicative of a descriptor of the digital audio, and train internal coefficients to classify the first deep feature as similar to a second deep feature based on the descriptor of the first deep feature and a descriptor of a second deep feature.

## Claims

### Claim 1

An apparatus comprising:
at least one memory storing instructions; and
processor circuitry to execute instructions to at least:
select an anchor index beat of digital audio;
identify a first segment of the digital audio based on the anchor index beat to analyze, the first segment having at least two beats and a respective center beat;
concatenate time-frequency data of the at least two beats and the respective center beat to form a matrix of the first segment;
generate a first deep feature based on the first segment, the first deep feature indicative of a descriptor of the digital audio; and
train internal coefficients to classify the first deep feature as similar to a second deep feature based on the descriptor of the first deep feature and a descriptor of a second deep feature.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor circuitry is to select the anchor index beat of digital audio using a random number generator.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the processor circuitry is to select a number of beats having a fixed arrangement from the anchor index beat and identified as center beats, wherein at least one of the number of beats is the respective center beat of the first segment.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the processor circuitry is to identify a second segment of the digital audio based on at least one of the number of beats, different from the respective center beat of the first segment, the second segment spaced apart from and musically similar to the first segment.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processor circuitry is to:
determine a first intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the matrix of the first segment;
determine a magnitude of the first intermediate resultant matrix;
determine a second intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix; and
determine a magnitude of the second intermediate resultant matrix.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the respective center beat is a first respective center beat and the matrix is a first matrix, the processor circuitry is to:
identify a second segment of the digital audio based on the anchor index beat to analyze, the second segment corresponding to the second deep feature and having at least two beats and a second respective center beat;
concatenate time-frequency data of the at least two beats and the second respective center beat to form a second matrix of the second segment;
determine a first intermediate resultant matrix and a second intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the first matrix and the second matrix of the first segment and the second segment;
determine a third intermediate resultant matrix and a fourth intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix and the second intermediate resultant matrix; and
compute a Euclidean distance between the third intermediate resultant matrix and the fourth intermediate resultant matrix to determine a resemblance between the first segment and the second segment, the resemblance determined based on comparing the Euclidean distance to a threshold.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the processor circuitry is to;
generate a positive example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance meets the threshold; and
generate a negative example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance does not meet the threshold, the positive example or the negative example to be used to generate the first deep feature or the second deep feature.

### Claim 8

A non-transitory computer readable storage medium comprising instructions that, when executed, cause one or more processors to at least:
select an anchor index beat of digital audio;
identify a first segment of the digital audio based on the anchor index beat to analyze, the first segment having at least two beats and a respective center beat;
concatenate time-frequency data of the at least two beats and the respective center beat to form a matrix of the first segment;
generate a first deep feature based on the first segment, the first deep feature indicative of a descriptor of the digital audio; and
train internal coefficients to classify the first deep feature as similar to a second deep feature based on the descriptor of the first deep feature and a descriptor of a second deep feature.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the instructions, when executed, cause the one or more processors to select the anchor index beat of digital audio using a random number generator.

### Claim 10 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the instructions, when executed, cause the one or more processors to select a number of beats having a fixed arrangement from the anchor index beat and identified as center beats, wherein at least one of the number of beats is the respective center beat of the first segment.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein the instructions, when executed, cause the one or more processors to identify a second segment of the digital audio based on at least one of the number of beats, different from the respective center beat of the first segment, the second segment spaced apart from and musically similar to the first segment.

### Claim 12 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the instructions, when executed, cause the one or more processors to:
determine a first intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the matrix of the first segment;
determine a magnitude of the first intermediate resultant matrix;
determine a second intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix; and
determine a magnitude of the second intermediate resultant matrix.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the respective center beat is a first respective center beat and the matrix is a first matrix, and the instructions, when executed, cause the one or more processors to:
identify a second segment of the digital audio based on the anchor index beat to analyze, the second segment corresponding to the second deep feature and having at least two beats and a second respective center beat;
concatenate time-frequency data of the at least two beats and the second respective center beat to form a second matrix of the second segment;
determine a first intermediate resultant matrix and a second intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the first matrix and the second matrix of the first segment and the second segment;
determine a third intermediate resultant matrix and a fourth intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix and the second intermediate resultant matrix; and
compute a Euclidean distance between the third intermediate resultant matrix and the fourth intermediate resultant matrix to determine a resemblance between the first segment and the second segment, the resemblance determined based on comparing the Euclidean distance to a threshold.

### Claim 14 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the instructions, when executed, cause the one or more processors to:
generate a positive example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance meets the threshold; and
generate a negative example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance does not meet the threshold, the positive example or the negative example to be used to generate the first deep feature or the second deep feature.

### Claim 15

An apparatus comprising:
a training data generator to:
select an anchor index beat of digital audio;
identify a first segment of the digital audio based on the anchor index beat to analyze, the first segment having at least two beats and a respective center beat; and
concatenate time-frequency data of the at least two beats and the respective center beat to form a matrix of the first segment;
a neural network to:
generate a first deep feature based on the first segment, the first deep feature indicative of a descriptor of the digital audio; and
train internal coefficients to classify the first deep feature as similar to a second deep feature based on the descriptor of the first deep feature and a descriptor of a second deep feature.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the training data generator is to select a number of beats having a fixed arrangement from the anchor index beat and identified as center beats, wherein at least one of the number of beats is the respective center beat of the first segment.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the training data generator is to identify a second segment of the digital audio based on at least one of the number of beats, different from the respective center beat of the first segment, the second segment spaced apart from and musically similar to the first segment.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein training data generator is to:
determine a first intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the matrix of the first segment;
determine a magnitude of the first intermediate resultant matrix;
determine a second intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix; and
determine a magnitude of the second intermediate resultant matrix.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein the respective center beat is a first respective center beat and the matrix is a first matrix, the training data generator is to:
identify a second segment of the digital audio based on the anchor index beat to analyze, the second segment corresponding to the second deep feature and having at least two beats and a second respective center beat;
concatenate time-frequency data of the at least two beats and the second respective center beat to form a second matrix of the second segment;
determine a first intermediate resultant matrix and a second intermediate resultant matrix based on computing a first one-dimensional Fourier Transform of columns of the first matrix and the second matrix of the first segment and the second segment;
determine a third intermediate resultant matrix and a fourth intermediate resultant matrix based on computing a second one-dimensional Fourier Transform along rows of the first intermediate resultant matrix and the second intermediate resultant matrix; and
compute a Euclidean distance between the third intermediate resultant matrix and the fourth intermediate resultant matrix to determine a resemblance between the first segment and the second segment, the resemblance determined based on comparing the Euclidean distance to a threshold.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the training data generator is to:
generate a positive example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance meets the threshold; and
generate a negative example for training the internal coefficients corresponding to the first segment and the second segment when the Euclidean distance does not meet the threshold, the positive example or the negative example to be used to generate the first deep feature or the second deep feature.
