Music source separation (MSS), also known as stem separation, demixing, audio source separation or unmixing, is a technique of separating one audio track into multiple audio tracks by targeting mixed material using music information retrieval (MIR). MSS is a branch of signal separation which was established in the mid-1990s as a technology to reconstruct one or more source signals from mixtures of them. The process is generally utilized by music professionals to separate existing recordings for the purposes of enhancing the balance of the mix, remixing, or remastering. There are additional use cases where no multitrack or session files are available for the sound recording, making it necessary to rely on tools that provide stem separation from a single audio file.
Initial audio source separation for commercial purposes resulted in a file that was non-destructively separated, so that the resulting files could be reconstructed and sound exactly like the original without introducing issues when all tracks were performed simultaneously. There are a wide variety of applications of the technology outside of music including teaching, forensics, speech separation, live sound cancelation, audio restoration, and VR/AR.
Harmonic–percussive source separation Harmonic–percussive source separation (HPSS) is a technique for decomposing a mixed audio signal into harmonic and percussive components. One representative approach is the median filtering-based separation method proposed by FitzGerald in 2010. This method requires no prior training and exploits differences in the time–frequency structures of monaural audio signals. In this method, the short-time Fourier transform (STFT) is first applied to the input signal to obtain its magnitude spectrogram. In a spectrogram with time on the horizontal axis and frequency on the vertical axis, harmonic components associated with sustained sounds of stable pitch tend to appear as horizontal structures. In contrast, percussive components, which exhibit energy across a wide frequency range over a short period of time, tend to appear as vertical structures. Based on these characteristics, median filtering is applied to the magnitude spectrogram along the time and frequency axes, respectively. Median filtering along the time axis suppresses transient peaks associated with percussive components and emphasizes temporally sustained harmonic components. Conversely, median filtering along the frequency axis suppresses narrowband peaks associated with harmonic components and emphasizes percussive components distributed across a broad frequency range. From the two resulting spectrograms, soft masks for extracting the respective components are calculated as
MH(h,i)=Hh,ipHh,ip+Ph,ip, MP(h,i)=Ph,ipHh,ip+Ph,ip. Here, h denotes the frequency bin and i denotes the time frame. Hh,i and Ph,i are the harmonic and percussive estimates obtained through median filtering. The positive exponent p controls the soft-mask weighting and is typically set to 1 or 2. The time-domain signals are obtained by element-wise multiplication of the original complex spectrogram by the masks, followed by the inverse short-time Fourier transform. Compared with the iterative diffusion-based HPSS approach discussed by FitzGerald, the median filtering-based method requires fewer passes over the spectrogram and has a lower computational cost. Applications include music remixing, automatic transcription of pitched instruments, chord and key-signature detection, automatic drum transcription, and beat tracking. However, because the method relies on directional structures in the spectrogram, some sounds cannot be assigned unambiguously. In FitzGerald's examples, the attack portions of instruments such as guitars and pianos were assigned to the percussive component, while guitar passages with continuously changing pitch were not cleanly separated. Driedger et al. further noted that sounds such as applause, rain, and heavily distorted guitars are neither clearly harmonic nor clearly percussive and may be distributed between the two output components. Because the classification is based on local spectro-temporal structure rather than instrument identity, a single instrument may contribute energy to both outputs. For example, the attack of a guitar or piano may be classified as percussive, while its sustained portion may be classified as harmonic. Therefore, the harmonic and percussive outputs do not necessarily correspond to individual instrumental sources.
Two-stage harmonic–percussive sound separation Tachibana et al. proposed a two-stage HPSS (Harmonic-Percussive Sound Separation) method for enhancing singing voices in monaural music. This approach leverages the pitch and amplitude fluctuations of the singing voice: in a spectrogram generated with a short analysis frame in the short-time Fourier transform (STFT), the singing voice appears more like a sustained harmonic sound, whereas with a longer STFT frame length, its fluctuations cause it to exhibit a time-frequency structure more akin to percussive components. Consequently, by varying the length of the analysis window, it is possible to progressively separate sustained instrumental sounds, singing voices, and percussive elements. In this method, the first stage uses STFT with short frame length to perform HPSS on the mixed signal, retaining the output that contains sustained musical instruments and vocals. The second stage uses STFT with long frame length to apply HPSS again to this output, yielding an approximation of the vocal component. s(t)→HPSS(l1)h1(t),p1(t),h1(t)≈H+V,p1(t)≈P h1(t)→HPSS(l2)h2(t),p2(t),h2(t)≈H,p2(t)≈V Here, s(t) denotes the input mixed signal. l1, l2 represent the analysis window lengths for the first and second stages, respectively—the former being shorter and the latter longer. hi(t), pi(t) represent the harmonic and percussive outputs for the i-th stage. H denotes stationary, sustained components. V denotes fluctuating quasi-stationary components such as singing voices. P denotes transient, non-stationary components such as percussion. However, this method relies on the fluctuation characteristics of the singing voice. Vocal sounds with weak fluctuations may be categorized as sustained harmonic components, while instrumental sounds exhibiting similar fluctuations might also be mixed into the vocal output.
… excerpt ends here. Continue reading the full article.

