[Paper Review] Audio inpainting of music by means of neural networks
This paper proposes a deep neural network (DNN) based on a context encoder architecture that reconstructs missing audio segments (gaps of 48–64 ms) in music and musical instruments using time-frequency (TF) coefficients derived from a redundant short-time Fourier transform (STFT). The model outperforms linear predictive coding (LPC) in terms of magnitude spectrogram SNR for music, demonstrating the effectiveness of DNNs for audio inpainting with perceptually relevant reconstruction.
We studied the ability of deep neural networks (DNNs) to restore missing audio content based on its context, a process usually referred to as audio inpainting. We focused on gaps in the range of tens of milliseconds. The proposed DNN structure was trained on audio signals containing music and musical instruments, separately, with 64-ms long gaps. The input to the DNN was the context, i.e., the signal surrounding the gap, transformed into time-frequency (TF) coefficients. Our results were compared to those obtained from a reference method based on linear predictive coding (LPC). For music, our DNN significantly outperformed the reference method, demonstrating a generally good usability of the proposed DNN structure for inpainting complex audio signals like music.
Motivation & Objective
- To develop a deep neural network for audio inpainting that reconstructs missing audio segments using contextual information.
- To evaluate the performance of the proposed DNN against a traditional LPC-based method on music and isolated instrument signals.
- To investigate the generalization capability of the model to shorter gaps than it was trained on.
- To explore the use of invertible time-frequency representations (STFT) for robust audio reconstruction.
- To assess the potential of specialized models for improved performance on complex audio mixtures.
Proposed method
- The model uses a convolutional neural network (CNN) with fully connected layers to predict missing magnitude spectrogram coefficients based on surrounding context in the time-frequency domain.
- Input features are time-frequency coefficients obtained via a redundant short-time Fourier transform (STFT), ensuring invertibility for time-domain signal reconstruction.
- The network is trained to reconstruct only the magnitude spectrum; phase is recovered using a phase-reconstruction algorithm to synthesize the final audio signal.
- The architecture is trained in an unsupervised manner using context-based sample prediction, mimicking a context encoder (CE) similar to autoencoders.
- The model is evaluated on both isolated musical instruments and polyphonic music, with performance measured using magnitude spectrogram SNR (MS-SNR).
- Generalization to shorter gaps (48 ms) is tested by extending the 64-ms trained output, using forward, backward, and centered extensions.
Experimental results
Research questions
- RQ1Can a deep neural network outperform traditional LPC-based methods in reconstructing short audio gaps (48–64 ms) in music signals?
- RQ2How does the model’s performance vary between isolated musical instruments and complex polyphonic music?
- RQ3To what extent can a model trained on 64-ms gaps generalize to reconstructing shorter gaps (e.g., 48 ms)?
- RQ4Does the use of a redundant STFT as an invertible input representation enable robust and perceptually accurate audio reconstruction?
- RQ5Can specialized models trained on specific genres or instruments outperform general-purpose models in audio inpainting tasks?
Key findings
- For music signals, the proposed DNN achieved a mean MS-SNR of 8.0 dB, significantly outperforming the LPC-based method (6.9 dB), indicating superior reconstruction quality.
- For isolated musical instruments, the LPC-based method outperformed the DNN, achieving a mean MS-SNR of 33.2 dB compared to the DNN’s 21.6 dB.
- The DNN demonstrated generalization capability to shorter gaps: when reconstructing 48-ms gaps using a 64-ms trained model, the performance remained consistent across forward, backward, and centered extensions.
- The DNN’s superior performance on music is attributed to its ability to model transient events and frequency modulations that LPC cannot capture effectively.
- The model’s performance was stable across different gap extension strategies, with no significant degradation in SNR, suggesting robustness to gap length variation.
- Preliminary tests showed only minor improvements from increasing network depth, indicating that architectural design and component selection are more critical than depth alone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.