Abstract
Audio inpainting refers to signal processing techniques that aim at restoring missing or corrupted consecutive samples in audio signals. Prior works have shown that $\ell_1$-minimization with appropriate weighting is capable of solving audio inpainting problems, both for the analysis and the synthesis models. These models assume that audio signals are sparse with respect to some redundant dictionary and exploit that sparsity for inpainting purposes. Remaining within the sparsity framework, we utilize dictionary learning to further increase the sparsity and combine it with weighted $\ell_1$-minimization adapted for audio inpainting to compensate for the loss of energy within the gap after restoration. Our experiments demonstrate that our approach is superior in terms of signal-to-distortion ratio (SDR) and objective difference grade (ODG) compared with its original counterpart.
Introduction
Audio inpainting is a critical task in digital signal processing, focused on "filling in the blanks" when segments of an audio signal are lost or corrupted. This occurs frequently in scenarios like packet loss in streaming, physical damage to storage media, or impulsive noise interference.
Modern approaches often leverage the concept of sparse representation, which posits that audio signals can be accurately described using only a few "atoms" from a mathematical dictionary, such as a Gabor transform. However, a persistent challenge in standard sparse recovery (specifically $\ell_1$-minimization) is the tendency to underestimate the signal's energy within the missing gap. This "energy loss" results in restored audio that sounds muffled or significantly quieter than its surroundings. This paper introduces CP-LEARNED, an algorithm designed to mitigate these issues by combining dictionary learning with energy-aware weighting.
Methodology: The CP-LEARNED Algorithm
The authors build upon the Chambolle-Pock (CP) proximal algorithm, enhancing it with three key innovations:
1. Dictionary Learning from Local Context
Instead of relying on a fixed, generic Gabor dictionary, CP-LEARNED analyzes the "reliable" audio samples in the immediate temporal neighborhood of the gap. It learns a "deformation matrix" that transforms the standard dictionary into a custom one that represents the specific audio snippet even more sparsely. This captures the unique textures and harmonics of the local signal.
2. Energy-Based Weighting
To combat the inherent energy loss of $\ell_1$-minimization, the authors apply specific weights to the objective function. Atoms that overlap with the reliable (non-gap) parts of the signal are penalized more heavily, while atoms centered within the gap are penalized less. This encourages the optimization process to "invest" more energy into the missing section, preserving the perceived volume.
3. Real-Valued Optimization Efficiency
By exploiting the conjugate symmetry of real-valued audio signals, the authors utilize a "real DGT" (Discrete Gabor Transform). This approach halves the number of coefficients required for the optimization, significantly reducing the computational footprint without sacrificing information quality.
Experimental Evaluation
The proposed method was evaluated using 10 music tracks from the EBU SQAM (Sound Quality Assessment Material) dataset, sampled at 44.1 kHz. The researchers inserted five random gaps into each track, with lengths ranging from 5 ms to 85 ms, to test the algorithm's performance across varying degrees of signal loss.
Results and Discussion
The performance of CP-LEARNED was compared against several benchmarks: the original CP method, JANSSEN (an auto-regression baseline), and SPAIN (a sparse recovery variant).
As shown in Figure 1, CP-LEARNED demonstrates significant improvements:
- Signal-to-Distortion Ratio (SDR): CP-LEARNED consistently outperforms the original weighted $\ell_1$ method (CP). For gaps exceeding 45 ms, it maintains a higher SDR than nearly all other tested methods.
- Objective Difference Grade (ODG): This perceptual metric (where 0 is imperceptible and -4 is very annoying) highlights the algorithm's superiority for long gaps (65–85 ms). CP-LEARNED produces audio that is perceptually much closer to the original signal compared to standard sparse methods.
Conclusion
CP-LEARNED successfully addresses the energy loss problem in audio inpainting by integrating dictionary learning and strategic weighting. While the method shows excellent performance for gaps up to 85 ms, sparse recovery techniques still face challenges with gaps exceeding 100 ms, where deep learning or graph-based approaches might be more suitable. Future work may involve extending these learned weights to multi-channel audio or other optimization frameworks.
Summary updated