# US 2022/0293120 A1 · System and method for acoustic echo cancelation using deep multitask recurrent neural networks

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

- Number: US 2022/0293120 A1
- Document ID: US20220293120A1
- Status: Published application
- Kind: A1
- Application number: 17/827,424
- Filed: 2022-05-27
- Published: 2022-09-15
- Earliest claimed: 2019-03-28
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Amin Fazeli; Mostafa El-Khamy; Jungwon Lee
- Web page: https://patentgrep.com/patent/US20220293120A1

## CPC

- G10L 21/0208: Noise filtering
- G10L 21/0232: Processing in the frequency domain
- 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/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0475: Generative networks
- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- H04M 9/08: Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
- H04M 9/082: {using echo cancellers (echo cancellers per se H04B3/23)}
- H04R 3/04: for correcting frequency response
- G10L 2021/02082: {the noise being echo, reverberation of the speech}
- H04R 27/00: Public address systems (circuits for preventing acoustic reaction H04R3/02; circuits for distributing signals to loudspeakers H04R3/12; {monitoring or testing arrangements for public address systems H04R29/007}; amplifiers H03F)
- 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
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)

## Abstract

A system for performing echo cancellation includes: a processor configured to: receive a far-end signal; record a microphone signal including: a near-end signal; and an echo signal corresponding to the far-end signal; extract far-end features from the far-end signal; extract microphone features from the microphone signal; compute estimated near-end features by supplying the microphone features and the far-end features to an acoustic echo cancellation module including a recurrent neural network including: an encoder including a plurality of gated recurrent units; and a decoder including a plurality of gated recurrent units; compute an estimated near-end signal from the estimated near-end features; and transmit the estimated near-end signal to the far-end device. The recurrent neural network may include a contextual attention module; and the recurrent neural network may take, as input, a plurality of error features computed based on the far-end features, the microphone features, and acoustic path parameters.

## Claims

### Claim 1

A system for performing echo cancellation, the system comprising:
a processor; and
memory storing instructions that, when executed by the processor, cause the processor to:
receive a far-end signal from a far-end device at a near-end device;
record a microphone signal at the near-end device, the microphone signal comprising:
a near-end signal; and
an echo signal corresponding to the far-end signal;
extract a plurality of far-end features from the far-end signal;
extract a plurality of microphone features from the microphone signal;
compute a plurality of estimated near-end features from the microphone signal by supplying the microphone features and the far-end features to an acoustic echo cancellation module comprising a contextual attention neural network comprising:
an encoder comprising a plurality of gated recurrent units configured to encode the microphone features and the far-end features as encoded features;
a contextual attention module configured to compute contextual attention features from the encoded features; and
a decoder comprising a plurality of gated recurrent units configured to decode the estimated near-end features from the contextual attention features;
compute an estimated near-end signal from the estimated near-end features; and
transmit the estimated near-end signal to the far-end device.

### Claim 2 (depends on 1)

The system of claim 1, wherein the encoder comprises one or more of layers of gated recurrent units, and the encoded features correspond to outputs of a last layer of the one or more layers of the gated recurrent units of the encoder,
wherein the encoded features are supplied to a multi-head self-attention layer of the contextual attention module; and
wherein the decoder comprises one or more layers of gated recurrent units, and the estimated near-end features correspond to an output of a last layer of the one or more layers of gated recurrent units of the decoder.

### Claim 3 (depends on 2)

The system of claim 2, wherein the contextual attention module further comprises a multi-head attention layer configured to receive an output of the multi-head self-attention layer.

### Claim 4 (depends on 3)

The system of claim 3, wherein the contextual attention module further comprises a first layer normalization layer between the multi-head self-attention layer and the multi-head attention layer.

### Claim 5 (depends on 4)

The system of claim 4, wherein the contextual attention module further comprises a second layer normalization layer configured to compute the contextual attention features in accordance with outputs from other layers of the contextual attention module.

### Claim 6 (depends on 1)

The system of claim 1, wherein the memory further stores instructions that, when executed by the processor, cause the processor to:
compute a plurality of acoustic path parameters in accordance with prior acoustic path parameters, prior far-end features, and prior microphone features; and
compute a plurality of error features based on the far-end features, the microphone features, and the acoustic path parameters, and
wherein the acoustic echo cancellation module is further configured to compute the plurality of estimated near-end features from the microphone signal based on the error features.

### Claim 7 (depends on 1)

The system of claim 1, wherein the far-end features supplied to the contextual attention neural network comprise a current frame of far-end features and a causal window of a plurality of previous frames of far-end features, and
wherein the microphone features supplied to the contextual attention neural network comprise a current frame of microphone features and the causal window of a plurality of previous frames of microphone features.

### Claim 8 (depends on 7)

The system of claim 7, wherein the estimated near-end features comprise a current frame of estimated near-end features and the causal window of a plurality of previous frames of estimated near-end features, and
wherein the contextual attention neural network is trained by iteratively training a plurality of parameters configuring contextual attention neural network to minimize differences between the estimated near-end features and a plurality of ground truth near-end features of the plurality of training data.

### Claim 9 (depends on 8)

The system of claim 8, wherein the training data is generated by:
loading a corpus of training data comprising recorded utterances from a plurality of different human speakers;
selecting a plurality of pairs of human speakers;
for each pair of human speakers:
concatenating multiple utterances of a first speaker of the pair of human speakers to generate a training far-end signal;
transforming the concatenated utterances to simulate an acoustic path to generate a training echo signal;
padding an utterance of a second speaker of the pair of human speakers to generate a training near-end signal having a length equal to the training far-end signal; and
mixing the training echo signal with the training near-end signal to generate a training microphone signal.

### Claim 10 (depends on 9)

The system of claim 9, wherein the transforming the concatenated utterances comprises convolving the far-end signal with a room impulse response of a simulated room.

### Claim 11 (depends on 10)

The system of claim 10, wherein the transforming the concatenated utterances further comprises:
applying hard clipping to the far-end signal to generate a clipped far-end signal; and
applying sigmoidal distortion to the clipped far-end signal.

### Claim 12

A system for performing echo cancellation, the system comprising:
a processor; and
memory storing instructions that, when executed by the processor, cause the processor to:
receive a far-end signal from a far-end device;
record a microphone signal comprising:
a near-end signal; and
an echo signal corresponding to the far-end signal;
extract a plurality of far-end features from the far-end signal;
extract a plurality of microphone features from the microphone signal;
compute a plurality of acoustic path parameters in accordance with prior acoustic path parameters, prior far-end features, and prior microphone features;
compute a plurality of error features based on the far-end features, the microphone features, and the acoustic path parameters;
compute a plurality of estimated near-end features from the microphone signal by supplying the microphone features, the far-end features, and the error features to an acoustic echo cancellation module comprising a recurrent neural network comprising:
an encoder comprising a plurality of gated recurrent units configured to encode the microphone features and the far-end features as encoded features; and
a decoder comprising a plurality of gated recurrent units configured to decode the estimated near-end features based on the encoded features;
compute an estimated near-end signal from the estimated near-end features; and
transmit the estimated near-end signal to the far-end device.

### Claim 13 (depends on 12)

The system of claim 12, wherein the acoustic echo cancellation module further comprises a contextual attention module configured to compute contextual attention features from the encoded features, and
wherein the decoder is configured to compute the estimated near-end features based on the contextual attention features.

### Claim 14 (depends on 12)

The system of claim 12, wherein the far-end features supplied to the acoustic echo cancellation module comprise a current frame of far-end features and a causal window of a plurality of previous frames of far-end features,
wherein the microphone features supplied to the acoustic echo cancellation module comprise a current frame of microphone features and the causal window of a plurality of previous frames of microphone features, and
wherein the error features supplied to the acoustic echo cancellation module comprise a current frame of error features and the causal window of a plurality of previous frames of error features.

### Claim 15 (depends on 12)

The system of claim 12, wherein the estimated near-end features comprise a current frame of estimated near-end features and a causal window of a plurality of previous frames of estimated near-end features, and
wherein the recurrent neural network is trained by iteratively training a plurality of parameters configuring the recurrent neural network to minimize differences between the estimated near-end features and a plurality of ground truth near-end features of the plurality of training data.

### Claim 16 (depends on 15)

The system of claim 15, wherein the training data is generated by:
loading a corpus of training data comprising recorded utterances from a plurality of different human speakers;
selecting a plurality of pairs of human speakers;
for each pair of human speakers:
concatenating multiple utterances of a first speaker of the pair of human speakers to generate a training far-end signal;
transforming the concatenated utterances to simulate an acoustic path to generate a training echo signal;
padding an utterance of a second speaker of the pair of human speakers to generate a training near-end signal having a length equal to the training far-end signal; and
mixing the training echo signal with the training near-end signal to generate a training microphone signal.

### Claim 17 (depends on 16)

The system of claim 16, wherein the transforming the concatenated utterances comprises convolving the far-end signal with a room impulse response of a simulated room.

### Claim 18 (depends on 17)

The system of claim 17, wherein the transforming the concatenated utterances comprises:
applying hard clipping to the far-end signal to generate a clipped far-end signal; and
applying sigmoidal distortion to the clipped far-end signal.

### Claim 19 (depends on 12)

The system of claim 12, wherein the far-end features, the microphone features, and the estimated near-end features comprise log short time Fourier transform features in logarithmic spectral space.
