Nonlinear Acoustic Echo Cancellation with Deep Learning

Amir Ivry, Israel Cohen, Baruch Berdugo

TL;DR

This paper introduces a novel deep learning system for nonlinear acoustic echo cancellation (NLAEC) that better models the physical distortions in modern hands-free devices. By using a neural network with trainable memory and activation functions, the system achieves superior echo cancellation and speech quality compared to existing methods, while remaining efficient enough for on-device implementation.

What Problem Does This Paper Address?

In hands-free communication, acoustic echo cancellation (AEC) is crucial for removing the echo of the far-end speaker's voice that is picked up by the near-end microphone. Traditionally, AEC systems assume a linear relationship between the far-end signal and the echo. However, modern devices like smartphones and smart speakers introduce significant nonlinear distortions due to components like power amplifiers and loudspeakers. These nonlinearities degrade the performance of linear AEC systems, leading to reduced speech intelligibility. While previous nonlinear AEC (NLAEC) methods exist, they often rely on predefined models or fixed parameters, which may not accurately capture the complex, device-specific nonlinearities. This paper aims to bridge this gap by proposing an NLAEC system that explicitly models these nonlinearities in a more flexible and data-driven manner.

Methods

The proposed NLAEC system consists of two main components:

  1. Novel Neural Network (NN) Architecture: This NN is specifically designed to model the nonlinear distortions introduced by hands-free devices. It comprises two cascaded parts:
  2. Power Amplifier Model: This part uses gated recurrent units (GRUs) with trainable parameters and a piecewise linear unit (PLU) activation function to capture the amplifier's nonlinear behavior, including saturation.
  3. Loudspeaker Model: This part uses three sequential NLMs (each similar to the amplifier model) to capture the complex electrical, magnetic, and mechanical nonlinearities of the loudspeaker. A skip-connection is used to feed the output of the second NLM back to the first, accounting for the influence of the current displacement on the magnetic field.
  4. Key Innovation: Crucially, the NN features trainable memory length and trainable nonlinear activation functions. This allows the model to adapt to device-specific nonlinearities and learn the optimal memory without pre-specification, unlike previous parametric approaches.
  5. Adaptive Linear Filter: Following the NN, a standard adaptive linear filter is used to track the remaining linear acoustic path from the loudspeaker output to the microphone.

The entire system is trained end-to-end, jointly optimizing the NN parameters and the linear filter. During inference, the NN performs a forward pass, and the linear filter adapts to time-varying acoustic paths.

Datasets

The study utilizes two primary datasets:

  • AEC Challenge Database [20]: This database includes both synthetic (100 hours) and real (140 hours) recordings from various acoustic environments and devices, with specified Signal-to-Echo Ratio (SER) and Signal-to-Noise Ratio (SNR) levels.
  • Custom Lab-Recorded Database [30]: This database, containing 40 hours of recordings, was specifically created to test generalization to unseen setups and robustness to extremely low SER levels. It includes data from TIMIT and LibriSpeech corpora.

The data was split into training (185 hours), validation (45 hours), and testing (55 hours) sets. The test set was designed to include frequent re-convergence scenarios due to segment transitions and echo-path changes.

Key Insights and Ideas

  • Physical Modeling with Flexibility: The NN's architecture is inspired by the physical components (power amplifier, loudspeaker) of hands-free devices, but its trainable parameters (memory length, activation functions) provide the flexibility to adapt to diverse real-world nonlinearities.
  • Implicit Memory Learning: By using GRUs and making memory length trainable, the system avoids the need to pre-define memory lengths, which can be a significant limitation in traditional NLAEC methods.
  • Robustness to Echo-Path Changes: The system demonstrates strong performance even during echo-path changes, suggesting its ability to quickly adapt and track variations.
  • Efficiency for Embedded Systems: The proposed system achieves a good balance between performance and computational cost, requiring only 17,000 parameters and 500 MFLOPS, making it suitable for deployment on resource-constrained embedded devices.

Key Results

  • Superior Performance: The proposed NLAEC system consistently outperformed competing nonlinear and linear AEC methods across various metrics (ERLE, PESQ, SDR) in both scenarios with and without echo-path changes.
  • Echo Cancellation: Achieved higher ERLE (echo return loss enhancement) compared to baseline methods. For instance, with no echo-path change, the proposed system achieved 26.4±5.1 dB ERLE, outperforming "Halimeh" (23.1±5.9 dB) and "Malek" (22.6±6.7 dB).
  • Speech Quality: Demonstrated better speech quality (higher PESQ and SDR scores), indicating less speech distortion. For example, in double-talk scenarios, the proposed system achieved a 5.37±0.4 dB SDR, compared to 4.83±0.6 dB for "Halimeh" and 4.37±0.8 dB for "Malek".
  • Robustness: Showed stable performance across a wide range of SNR and SER levels, particularly excelling in low SNR/SER conditions where other methods degraded significantly.
  • Faster Convergence: Achieved the shortest convergence time (4.6±0.7 seconds) compared to other methods, allowing for quicker adaptation.
  • Efficiency: The system requires 17,000 parameters and 500 MFLOPS, with 40 KB of memory, making it suitable for on-device implementation.

Limitations and Future Work

  • Limitations: The paper acknowledges that while the system is efficient, further optimization might be needed for extremely low-power devices. The performance degradation in echo-path change scenarios, though less severe than competitors, still exists.
  • Future Work: The authors suggest that the proposed NLAEC system is adequate for embedding on hands-free communication devices and meets timing requirements for standards. Future work could explore further optimizations for even more constrained environments or investigate its application in more complex acoustic scenarios.

Summary updated

BibTeX
@inproceedings{ivry2021nonlinear,
  author = {Amir Ivry and Israel Cohen and Baruch Berdugo},
  title = {{Nonlinear Acoustic Echo Cancellation with Deep Learning}},
  booktitle = {Interspeech},
  year = {2021},
}
Figure