# US 2021/0233513 A1 · Audio recognition method and system and machine device

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

- Number: US 2021/0233513 A1
- Document ID: US20210233513A1
- Status: Published application
- Kind: A1
- Application number: 17/230,515
- Filed: 2021-04-14
- Published: 2021-07-29
- Earliest claimed: 2019-01-29
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Dan SU; Jun WANG; Jie CHEN; Dong YU
- Web page: https://patentgrep.com/patent/US20210233513A1

## CPC

- G10L 15/063: {Training}
- G06N 3/04: Architecture, e.g. interconnection topology
- 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/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G10L 15/02: Feature extraction for speech recognition; Selection of recognition unit
- G10L 15/16: using artificial neural networks
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 2015/0635: {updating or merging of old and new templates; Mean values; Weighting}
- 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 neural network training method is provided. The method includes obtaining an audio data stream, performing, for different audio data of each time frame in the audio data stream, feature extraction in each layer of a neural network, to obtain a depth feature outputted by a corresponding time frame, fusing, for a given label in labeling data, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for the audio data stream through the depth feature, and updating a parameter in the neural network by using a loss function value obtained through fusion.

## Claims

### Claim 1

A neural network training method for implementing audio recognition, applicable to an audio recognition terminal, the method comprising:
obtaining an audio data stream for neural network training of audio recognition, the audio data stream including audio data respectively corresponding to a plurality of time frames;
performing, for different audio data of each time frame in the audio data stream, feature extraction in each layer of a trained neural network, to obtain a depth feature outputted by a corresponding time frame;
fusing, for a given label in labeling data, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for the audio data stream through the depth feature; and
obtaining, through fusion, a loss function value relative to a series of given labels in the labeling data, to update a parameter in the neural network.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining an audio data stream for neural network training of audio recognition comprises:
obtaining a noisy and continuous audio data stream and training data with the neural network as labeling data.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
obtaining, for the given label in the labeling data, a center vector corresponding to a category to which the given label belongs, the center vector being used for describing centers of all depth features in the category; and
fusing, according to the depth feature and the center vector, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for audio data of the time frame, to obtain a loss function value of the audio data relative to the given label.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
calculating a center loss of the given label by using the depth feature and the center vector, to obtain an intra-class distance penalty value of the audio data of the time frame relative to the given label.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
calculating, according to the depth feature, an inter-class confusion measurement index of the audio data of the time frame relative to the given label by using a cross-entropy loss function.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
performing weighting calculation on the intra-class distance penalty value and the inter-class confusion measurement index of the audio data relative to the given label in the set loss function according to a specified weighting factor, to obtain the loss function value of the audio data relative to the given label.

### Claim 7 (depends on 6)

The method according to claim 6, wherein audio data of different time frames in the audio data stream is labeled through the given label in the labeling data.

### Claim 8 (depends on 1)

The method according to claim 1, wherein a blank label is added to the labeling data, and the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
obtaining center vectors corresponding to categories to which the given label in the labeling data and the added blank label belong; and
calculating, for a depth feature sequence formed by the audio data stream for the depth feature in a time sequence, a probability that the audio data stream is mapped to a given sequence label and distances of the given sequence label respectively relative to the center vectors, to obtain an intra-class distance penalty value of the audio data stream relative to the given sequence label, the given sequence label comprising the added blank label and the given label.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
calculating a probability distribution of the audio data stream relative to the given sequence label according to the depth feature, and calculating a log-likelihood cost of the audio data stream through the probability distribution as an inter-class confusion measurement index of the audio data stream relative to the given sequence label.

### Claim 10 (depends on 8)

The method according to claim 8, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
performing weighting calculation on the inter-class confusion measurement index and the intra-class distance penalty value of the audio data stream relative to the given sequence label in the set loss function according to a specified weighting factor, to obtain a loss function value of the audio data stream relative to the given sequence label.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the labeling data of the audio data stream is an unaligned discrete label string, a blank label is added to the discrete label string, and the added blank label and the given label in the labeling data respectively correspond to audio data of different time frames in the audio data stream.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the obtaining the loss function value comprises:
obtaining, through fusion, a loss function value relative to a series of given labels in the labeling data, to perform iterative training of updated parameters in each layer of the neural network, until a minimum loss function value is obtained; and
updating a parameter corresponding to the minimum loss function value to each layer of the neural network.

### Claim 13

A neural network training system for implementing audio recognition, the audio recognition system comprising: a memory storing computer program instructions; and a processor coupled to the memory and configured to execute the computer program instructions to perform:
obtaining an audio data stream for neural network training of audio recognition, the audio data stream including audio data respectively corresponding to a plurality of time frames;
performing, for different audio data of each time frame in the audio data stream, feature extraction in each layer of a trained neural network, to obtain a depth feature outputted by a corresponding time frame;
fusing, for a given label in labeling data, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for the audio data stream through the depth feature; and
obtaining, through fusion, a loss function value relative to a series of given labels in the labeling data, to update a parameter in the neural network.

### Claim 14 (depends on 13)

The neural network training system according to claim 13, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
obtaining, for the given label in the labeling data, a center vector corresponding to a category to which the given label belongs, the center vector being used for describing centers of all depth features in the category; and
fusing, according to the depth feature and the center vector, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for audio data of the time frame, to obtain a loss function value of the audio data relative to the given label.

### Claim 15 (depends on 14)

The neural network training system according to claim 14, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
calculating a center loss of the given label by using the depth feature and the center vector, to obtain an intra-class distance penalty value of the audio data of the time frame relative to the given label.

### Claim 16 (depends on 15)

The neural network training system according to claim 15, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
calculating, according to the depth feature, an inter-class confusion measurement index of the audio data of the time frame relative to the given label by using a cross-entropy loss function.

### Claim 17 (depends on 15)

The neural network training system according to claim 15, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value further comprises:
performing weighting calculation on the intra-class distance penalty value and the inter-class confusion measurement index of the audio data relative to the given label in the set loss function according to a specified weighting factor, to obtain the loss function value of the audio data relative to the given label.

### Claim 18

A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
obtaining an audio data stream for neural network training of audio recognition, the audio data stream including audio data respectively corresponding to a plurality of time frames;
performing, for different audio data of each time frame in the audio data stream, feature extraction in each layer of a trained neural network, to obtain a depth feature outputted by a corresponding time frame;
fusing, for a given label in labeling data, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for the audio data stream through the depth feature; and
obtaining, through fusion, a loss function value relative to a series of given labels in the labeling data, to update a parameter in the neural network.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
obtaining, for the given label in the labeling data, a center vector corresponding to a category to which the given label belongs, the center vector being used for describing centers of all depth features in the category; and
fusing, according to the depth feature and the center vector, an inter-class confusion measurement index and an intra-class distance penalty value relative to the given label in a set loss function for audio data of the time frame, to obtain a loss function value of the audio data relative to the given label.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the fusing the inter-class confusion measurement index and the intra-class distance penalty value comprises:
calculating a center loss of the given label by using the depth feature and the center vector, to obtain an intra-class distance penalty value of the audio data of the time frame relative to the given label.
