# US 2020/0152207 A1 · Speaker diarization using an end-to-end model

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

- Number: US 2020/0152207 A1
- Document ID: US20200152207A1
- Status: Published application
- Kind: A1
- Application number: 16/617,219
- Filed: 2019-04-15
- Published: 2020-05-14
- Earliest claimed: 2018-04-23
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Quan Wang; Yash Sheth; Ignacio Lopez Moreno; Li Wan
- Web page: https://patentgrep.com/patent/US20200152207A1

## CPC

- G10L 17/18: Artificial neural networks; Connectionist approaches
- G10L 15/26: Speech to text systems (G10L15/08 takes precedence)
- G10L 17/04: Training, enrolment or model building
- G06F 18/21348: {overcoming non-stationarity or permutations}
- G10L 15/16: using artificial neural networks
- G10L 17/00: Speaker identification or verification techniques
- G10L 2021/02165: {Two microphones, one receiving mainly the noise signal and the other one mainly the speech signal}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are described for training and/or utilizing an end-to-end speaker diarization model. In various implementations, the model is a recurrent neural network (RNN) model, such as an RNN model that includes at least one memory layer, such as a long short-term memory (LSTM) layer. Audio features of audio data can be applied as input to an end-to-end speaker diarization model trained according to implementations disclosed herein, and the model utilized to process the audio features to generate, as direct output over the model, speaker diarization results. Further, the end-to-end speaker diarization model can be a sequence-to-sequence model, where the sequence can have variable length. Accordingly, the model can be utilized to generate speaker diarization results for any of various length audio segments.

## Claims

### Claim 1

A method of speaker diarization, the method implemented by one or more processors and comprising:
generating a sequence of audio data frames for corresponding audio data;
for each of the audio data frames, and in the sequence:
applying frame features for the audio data frame as input to a trained recurrent neural network (RNN) model, and
processing the frame features for the audio data frame using the trained RNN model to generate output, of the trained RNN model, that includes a corresponding probability for each of a plurality of permutation invariant speaker labels;
for each of a plurality of the audio data frames, assigning a corresponding one of the plurality of speaker labels to the audio data frame based on the corresponding probabilities;
transmitting an indication of the speaker labels and their assignments to at least one additional component for further processing of the audio data based on the speaker labels.

### Claim 2 (depends on 1)

The method of claim 1, wherein the trained RNN model comprises a long short-term memory (LSTM) layer.

### Claim 3 (depends on 2)

The method of claim 2, wherein the trained RNN model further comprises an affine layer as a final layer, the affine layer having an output dimension that conforms to the plurality of speaker labels.

### Claim 4 (depends on 1)

The method of claim 1, wherein the trained RNN model is trained to enable detection of different human speakers and to enable detection of a lack of any human speakers.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining that a given speaker label of the plurality of speaker labels corresponds to the lack of any human speakers, wherein determining that the given speaker label corresponds to the lack of any human speakers comprises:
performing further processing of one or more of the audio data frames having the assigned given speaker label to determine that the one or more of the audio data frames each include silence or background noise.

### Claim 6 (depends on 5)

The method of claim 5, wherein transmitting the indication of the speaker labels and their assignments to the at least one additional component for further processing of the audio data based on the speaker labels comprises:
identifying, in the indication of the speaker labels and their assignments, portions of the audio data that include silence or background noise.

### Claim 7 (depends on 1)

The method of claim 1, wherein the frame features for each of the audio data frames comprise Mel-frequency cepstral coefficients of the audio data frame.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
receiving, via one or more network interfaces, the audio data as part of a speech processing request transmitted utilizing an application programming interface;
wherein generating the sequence of audio data frames, applying the frame features of the audio data frames, processing the frame features of the audio data frames, and assigning the speaker labels to the audio data frames are performed in response to receiving the speech processing request; and
wherein transmitting the indication of the speaker labels and their assignments is via one or more of the network interfaces, and is in response to the speech processing request.

### Claim 9 (depends on 1)

The method of claim 1,
wherein the audio data is streaming audio data that is based on output from one or more microphones of a client device, wherein the client device includes an automated assistant interface for interfacing with an automated assistant, and wherein the streaming audio data is received in response to invocation of the automated assistant via the client device; and
wherein transmitting the indication of the speaker labels and their assignments to at least one additional component for further processing of the audio data based on the speaker labels comprises transmitting the indication of the speaker labels and their assignments to an automated assistant component of the automated assistant.

### Claim 10 (depends on 9)

The method of claim 9, wherein the automated assistant component of the automated assistant is an automatic speech recognition (ASR) component that processes the audio data to generate text corresponding to the audio data.

### Claim 11 (depends on 10)

The method of claim 10, wherein the ASR component utilizes the speaker labels to identify a transition between speakers in the audio data and, based on the transition, alters processing of the audio data that follows the transition.

### Claim 12 (depends on 9)

The method of claim 9, wherein the at least one additional component of the automated assistant includes a natural language understanding component.

### Claim 13 (depends on 9)

The method of claim 9, wherein the automated assistant generates a response based on the further processing of the audio data based on the speaker labels, and causes the response to be rendered at the client device.

### Claim 14

A method implemented by one or more processors, the method comprising:
identifying a training instance that comprises:
a sequence of audio data frames for corresponding audio data, and
ground truth speaker labels for each of the audio data frames; for each of the audio data frames, and in the sequence:
applying frame features for the audio data frame as input to a recurrent neural network (RNN) model, and
processing the frame features for the audio data frame using the RNN model to generate output, of the trained RNN model, that includes a corresponding probability for each of the ground truth speaker labels; generating a loss as a function of:
the generated probabilities for the audio data frames, and
the ground truth speaker labels; and
updating one or more weights of the RNN model based on the generated loss.

### Claim 15 (depends on 14)

The method of claim 14, wherein generating the loss comprises comparing the generated probabilities to the ground truth speaker labels by considering all possible permutations of the speaker labels.

### Claim 16 (depends on 15)

The method of claim 15, wherein comparing the generated probabilities to the ground truth speaker labels by considering all possible permutations of the speaker labels comprises determining the minimal-sum solution to an assignment problem that is based on the all possible permutations of the speaker labels.

### Claim 17 (depends on 14)

The method of claim 14, wherein the loss is a dynamic loss.

### Claim 18 (depends on 14)

The method of claim 14, wherein the loss is an exhaustive loss.

### Claim 19 (depends on 14)

The method of claim 14, further comprising:
subsequent to updating the one or more weights of the RNN model based on the generated loss, and based on additional generated losses based on additional training instances:
using the RNN model in performing speaker diarization of subsequent audio data.

### Claim 20

A method implemented by one or more processors, the method comprising:
receiving a stream of audio data that is based on output from one or more microphones of a client device, the client device including an automated assistant interface for an automated assistant, and the stream of audio data received in response to invocation of the automated assistant;
generating a sequence of audio data frames as the stream of audio data is received;
for each of the audio data frames, and in the sequence:
applying frame features for the audio data frame as input to a trained recurrent neural network (RNN) model;
processing the frame features for the audio data frame using the trained RNN model to generate output, of the trained RNN model, that includes a corresponding probability for each of a plurality of speaker labels; and
for each of a plurality of the audio data frames, assigning a corresponding one of the plurality of speaker labels to the audio data frame based on the corresponding probabilities;
using, by the automated assistant, the assigned speaker labels in processing of the stream of audio data.
