NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adaptive Speech Quality Aware Complex Neural Network for Acoustic Echo Cancellation with Supervised Contrastive Learning

Bozhong Liu, Xiaoxi Yu, Hantao HuangarXiv 2022

TL;DR

This paper introduces a novel deep learning architecture for acoustic echo cancellation (AEC) that leverages a complex neural network and supervised contrastive learning. By incorporating speech quality-aware loss functions, the model effectively removes echoes while preserving speech quality, achieving state-of-the-art performance on a challenging AEC dataset.

What Problem Does This Paper Address?

Acoustic echo cancellation (AEC) is crucial for clear communication, aiming to remove echoes and unwanted background noise from microphone signals without degrading the desired speech. Traditional methods, like adaptive filters, struggle in complex scenarios like double-talk (when both near-end and far-end speech are present simultaneously), leading to residual echoes. While deep learning has shown promise, existing complex neural network approaches for AEC can be computationally intensive, and effectively balancing echo suppression with speech quality preservation remains a challenge. This paper tackles the problem of improving AEC performance, particularly in challenging acoustic environments, by developing a more robust and quality-aware deep learning model.

Methods

The proposed solution is a modular deep complex neural network designed for real-time AEC. It comprises three main components:

  • Feature Extraction Network (FEN): This module uses a combination of 1D convolution and gated recurrent units (GRUs) to extract both shallow and deep features from the microphone and far-end signals. A residual connection is employed to enhance signal representation.
  • Acoustic Separation Network (ASN): This network takes the extracted features and uses GRUs to separate the near-end speech information from the combined signal, producing an initial estimated speech mask.
  • Mask Optimization Network (MON): This final module refines the estimated mask by incorporating information from both the previous stage's mask and the original microphone input, aiming to produce a more accurate and optimized mask for echo removal.

A key innovation is the integration of supervised contrastive learning for AEC. This framework trains the model to distinguish between positive pairs (e.g., anchor audio and its corresponding clean speech) and negative pairs (e.g., anchor audio and unrelated speech). This helps the model learn more robust representations. Furthermore, the paper introduces novel speech quality-aware loss functions:

  • Speech Distortion Compensation (SDW) Loss: This loss function adaptively weights the mask mean square error (MaskMSE) to compensate for speech distortions when clean speech dominates.
  • Echo Suppression Compensation Weighted (ESW) Loss: This loss adaptively weights MaskMSE to suppress residual echoes when noisy speech is more prominent.

These adaptive weights are applied to the MaskMSE, aiming to strike a better balance between echo suppression and speech quality. The model is trained in two stages: pre-training with contrastive loss and MaskMSE, followed by fine-tuning with the adaptive speech quality-aware losses and error reduction loss.

Datasets

The experiments utilize a dataset derived from multilingual speech (French, German, Italian, Mandarin, English, Russian, and Spanish). Far-end and near-end audio were generated by first applying speech enhancement using the DTLN model to clean speech. Instrumental music noise was added to simulate background noise. Impulse responses were used to create realistic echo signals. The dataset was augmented with various signal-to-noise ratios (SNRs) and signal-to-echo ratios (SERs). A portion of the far-end and echo signals were randomly discarded to create near-end only scenarios. The data was normalized and segmented into 4-second clips.

Key Insights and Ideas

  • Complex Networks for AEC: Utilizing complex-valued neural networks is beneficial for AEC as it allows for the simultaneous processing of both amplitude and phase information of the audio signals, which is crucial for accurate echo cancellation.
  • Modular Design for Specialization: Breaking down the AEC task into distinct modules (feature extraction, separation, optimization) allows each part to specialize, potentially leading to more efficient and effective processing.
  • Contrastive Learning for Regression Tasks: Applying contrastive learning, traditionally used for classification, to regression tasks like AEC can significantly improve the robustness of learned representations. This helps the model better discern between desired speech and unwanted echoes.
  • Speech Quality-Aware Loss Functions are Crucial: Simply minimizing echo might lead to speech distortion. The proposed SDW and ESW losses are key to adaptively adjusting the model's focus based on the signal characteristics, ensuring that speech quality is maintained or improved, not sacrificed for echo reduction.
  • Two-Stage Training is Effective: Pre-training with contrastive learning followed by fine-tuning with quality-aware losses allows the model to first learn general robust representations and then fine-tune for the specific nuances of AEC and speech quality.

Key Results

The proposed "Triple+CL+SQA" model, which incorporates the contrastive learning framework and adaptive speech quality-aware weights (SDW and ESW), significantly outperforms existing methods.

  • PESQ Scores: The model achieved a PESQ score of 3.4624 in room noise and 3.5112 in music noise under a 30dB input noise level, outperforming DTLN [2] (2.775 PESQ in room noise) and the ICASSP-2022 baseline [10] (3.0275 PESQ in room noise).
  • ESTOI Scores: Similar improvements were observed in ESTOI scores, indicating better speech intelligibility.
  • ERLE: The model also achieved high ERLE values, signifying effective echo loss.
  • POLQA: On the newer Perceptual Objective Listening Quality Assessment (POLQA) metric, the best model achieved an average score of 3.84, outperforming the state-of-the-art result of 3.22.

Limitations and Future Work

  • Computational Cost: While the paper mentions the difficulty of computing complex neural networks on hardware, it doesn't explicitly detail the computational overhead of their proposed architecture.
  • Future Work: The authors suggest that the proposed contrastive learning framework and adaptive loss functions can be applied to other audio regression tasks, such as general speech enhancement, which they plan to explore in future work.

Summary updated

BibTeX
@misc{liu2022adaptive,
  author = {Bozhong Liu and Xiaoxi Yu and Hantao Huang},
  title = {{Adaptive Speech Quality Aware Complex Neural Network for Acoustic Echo Cancellation with Supervised Contrastive Learning}},
  year = {2022},
  eprint = {2210.16791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.16791},
}
Figure