# US 2021/0065734 A1 · Audio scene recognition using time series analysis

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

- Number: US 2021/0065734 A1
- Document ID: US20210065734A1
- Status: Published application
- Kind: A1
- Application number: 16/997,249
- Filed: 2020-08-19
- Published: 2021-03-04
- Earliest claimed: 2019-08-27
- Assignees: NEC Laboratories America, Inc.
- Applicants: NEC Laboratories America, Inc.
- Inventors: Cristian Lumezanu; Yuncong Chen; Dongjin Song; Takehiko Mizuguchi; Haifeng Chen; Bo Dong
- Web page: https://patentgrep.com/patent/US20210065734A1

## CPC

- G10L 25/51: for comparison or discrimination
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G10L 25/24: the extracted parameters being the cepstrum
- G10L 25/18: the extracted parameters being spectral information of each sub-band
- G10L 25/21: the extracted parameters being power information
- G10L 25/30: using neural networks
- 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

A method is provided. Intermediate audio features are generated from respective segments of an input acoustic time series for a same scene. Using a nearest neighbor search, respective segments of the input acoustic time series are classified based on the intermediate audio features to generate a final intermediate feature as a classification for the input acoustic time series. Each respective segment corresponds to a respective different acoustic window. The generating step includes learning the intermediate audio features from Multi-Frequency Cepstral Component (MFCC) features extracted from the input acoustic time series, dividing the same scene into the different windows having varying MFCC features, and feeding the MFCC features of each window into respective LSTM units such that a hidden state of each respective LSTM unit is passed through an attention layer to identify feature correlations between hidden states at different time steps corresponding to different ones of the different windows.

## Claims

### Claim 1

A computer-implemented method for audio scene classification in an information retrieval system, comprising:
generating intermediate audio features from respective segments of an input acoustic time series for a same scene captured by a sensor device; and
classifying, using a nearest neighbor search, the respective segments of the input acoustic time series based on the intermediate audio features to generate a final intermediate feature as a classification for the input acoustic time series, each of the respective segments corresponding to a respective different one of different acoustic windows;
wherein said generating step comprises:
learning the intermediate audio features from Multi-Frequency Cepstral Component (MFCC) features extracted from the input acoustic time series;
dividing the same scene into the different acoustic windows having varying ones of the MFCC features; and
feeding the MFCC features of each of the different acoustic windows into respective LSTM units such that a hidden state of each of the respective LSTM units is passed through an attention layer to identify feature correlations between hidden states at different time steps corresponding to different ones of the different acoustic windows, and
wherein the method further includes replacing a hardware device monitored by the sensor responsive to the final intermediate feature.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the intermediate acoustic features both capture feature correlations between different acoustic windows in a same scene and isolate and weaken an effect of uninteresting features in the same scene.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein said classifying step comprises generating the final intermediate feature for each of the different acoustic windows by optimizing a triplet loss function to which is added a regularization parameter computed on each of the intermediate audio features to reduce an importance of the uninteresting features, and wherein the uninteresting features comprise silence.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the triplet loss function adjusts a triplet selection algorithm to avoid using segments the uninteresting portions as silence and noise by using a silence and noise bias.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the regularization parameter is computed on a last element of each of the intermediate audio features, the last element being a silence weight.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the regularization parameter comprises a sum of silence weights and prevents all of the silence weights from simultaneously reaching a value of zero.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein an entirety of the same scene is divided into overlapping windows to exploit inter-window dependencies.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein each of the respective LSTM units comprise as many hidden states as time steps in a given current one of the windows.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising preprocessing the input acoustic sequence by applying a Fast Fourier Transform (FFT) to each of the different acoustic windows to extract respective acoustic frequency energy levels therefor.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the intermediate audio features are generated to isolate and weaken the effect of uninteresting features in the same scene using a triplet loss that pushes different classes farther apart than similar classes in a classification space.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, further comprising computing an embedding of the input acoustic sequence as the weighted average of each of the hidden states.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the embedding is the final intermediate feature.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, further comprising receiving a query segment, and finding a most similar historical segment using a nearest neighbor.

### Claim 14 (depends on 1)

The computer-implemented method of claim 1, wherein said learning step learns the intermediate audio features by minimizing a loss function computed using the intermediate audio features of a randomly selected batch of segments from the input acoustic sequence.

### Claim 15 (depends on 1)

The computer-implemented method of claim 1, wherein the final intermediate feature is determined by majority voting on classifications for the segments forming the input acoustic sequence.

### Claim 16

A computer program product for audio scene classification in an information retrieval system, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method comprising:
generating intermediate audio features from respective segments of an input acoustic time series for a same scene captured by a sensor device; and
classifying, using a nearest neighbor search, the respective segments of the input acoustic time series based on the intermediate audio features to generate a final intermediate feature as a classification for the input acoustic time series, each of the respective segments corresponding to a respective different one of different acoustic windows;
wherein said generating step comprises:
learning the intermediate audio features from Multi-Frequency Cepstral Component (MFCC) features extracted from the input acoustic time series;
dividing the same scene into the different acoustic windows having varying ones of the MFCC features; and
feeding the MFCC features of each of the different acoustic windows into respective LSTM units such that a hidden state of each of the respective LSTM units is passed through an attention layer to identify feature correlations between hidden states at different time steps corresponding to different ones of the different acoustic windows, and
wherein the method further includes replacing a hardware device monitored by the sensor responsive to the final intermediate feature.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the intermediate acoustic features both capture feature correlations between different acoustic windows in a same scene and isolate and weaken an effect of uninteresting features in the same scene.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein said classifying step comprises generating the final intermediate feature for each of the different acoustic windows by optimizing a triplet loss function to which is added a regularization parameter computed on each of the intermediate audio features to reduce an importance of the uninteresting features, and wherein the uninteresting features comprise silence.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the triplet loss function adjusts a triplet selection algorithm to avoid using segments the uninteresting portions as silence and noise by using a silence and noise bias.

### Claim 20

A computer processing system for audio scene classification in an information retrieval system, comprising:
a memory device for storing program code; and
a hardware processor, operatively coupled to the memory device, for running the program code to
generate intermediate audio features from respective segments of an input acoustic time series for a same scene captured by a sensor device; and
classify, using a nearest neighbor search, the respective segments of the input acoustic time series based on the intermediate audio features to generate a final intermediate feature as a classification for the input acoustic time series, each of the respective segments corresponding to a respective different one of different acoustic windows;
wherein the hardware processor runs the program code to generate the intermediate audio features to
learn the intermediate audio features from Multi-Frequency Cepstral Component (MFCC) features extracted from the input acoustic time series;
divide the same scene into the different acoustic windows having varying ones of the MFCC features; and
feed the MFCC features of each of the different acoustic windows into respective LSTM units such that a hidden state of each of the respective LSTM units is passed through an attention layer to identify feature correlations between hidden states at different time steps corresponding to different ones of the different acoustic windows, and
wherein the hardware processor replaces a hardware device monitored by the sensor responsive to the final intermediate feature.
