Music source separation

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.

Audio Source Separation, Signal Separation
Music Source Separation

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.

AI stem separation and audio source separation

Starting late 2018, commercial tools became available for the separation of four part stems from a single audio file using AI models. These applications separated stems into vocal, drums, bass, and other categories from a single audio file. Deep learning advancements and new processing models such as Wav-U-Net for neural networks aided in higher quality and fewer phase artifacts in separations from mixed material. iZotope RX, AudiosourceRe Demix, RipX DeepMix were a handful of early providers of specialized stem separation tools. Eventually this process would become more widely adopted by users and commercial application developers; simultaneously, the technologies would continue to improve in terms of quality and speed of separation. The company Deezer also made its Spleeter tool openly available around 2019 for further research and development into the audio source separation process. Companies such as Apple would go on to release four part stem separation tools directly in the DAW (requiring Apple Silicon in this case), branded as Stem Splitter. There are dozens of companies now utilizing the technologies involved with audio source separation to fit a multitude of applications. New separation options such as piano, strings, winds, guitar, acoustic guitar, and synthesizer are available from a variety of developers as of 2025. The trend for early 2025 was to include these stem separation capabilities with additional AI-based musically purposeful technologies such as mastering, pitch detection and manipulation, chord recognition, lyric transcription, vocal swapping and similar.

How AI stem separation generally works

This process involving reverse engineering stems from mastered tracks relies on training models to identify targets in mixtures. Millions of real isolated stems from project files are used to update the parameter margins of models to generate estimates for the final output from mixtures. Large multitrack datasets are developed from the provided isolated stems with further adjustments to mixtures to provide higher numbers in the dataset that train the models for higher degrees of accuracy. Initially, providers utilized online-based stem separation because it enabled the utilization of powerful computational systems (often involving advanced GPUs); now, there are many options for local system-based processing of the AI because of optimizations in the processing approach. There are also CPU developments that include neural workflows which facilitate the faster processing architecture needed for highest fidelity stem separation with lower time requirements.

AI stem separation in sync music

A growing number of companies are providing the ability for both music publishers and clients to utilize the stem separation technologies for their project needs, which is especially useful in the case of vocal removal from mixtures. Utilizing these tools provides editors and agents of the film and TV music industry to quickly have available the ability to adjust and contour songs without the need to reach out to providers which would cause time delays. This improves placement potential because a common issue with sync placements is that certain kinds of sounds (for example, vocals) can interfere too much with the underscore. This also provides the sync professionals the ability to take the track into unexpected directions and otherwise enhance the mix for the purpose of the application of the track.

AI stem separation for the DJ

Quick stem separation is a perfect match for the professional DJ looking to create unique mashups. Generally, the track is rendered into a stem by placing the desired songs into the appropriate folder; when the song is selected, it has the basic four stem groupings available, and in some cases, individual parts (samples) can be triggered on pads for live performance.

Notable case studies of AI stem separation

Disney Music Group used stem separation technologies to enhance their back catalog of recordings. Beatles recordings were split and enhanced with stem separation technologies and the engineers during this process also helped to progress the development of the technology. Numerous classic hit songs have been the target of restoration through stem separation achievements.

Stems vs AI stem separations

Stems have been used in the recording industry to mean files bounced during the mixing process, generally a collection of like sounds grouped as a "stem". Stems in the context of the original project files can provide a large number of exported audio files for multiple purposes. These kinds of files generally provide a better quality overall and offer the ability to further isolate project material without introducing artifacts.

AI stem separations have generally produced material that is ideally suited for volume adjustments or further effect processing or production. These kinds of stems generally have come in the basic four groupings of vocal, bass, drum, and other. New approaches and deeper training of models resulted in the capability to isolate additional material beyond the basic four groupings, however these kinds of separations generally have spectral anomalies, blend in additional sounds, or change some quality of the original targeted sound.

Sound design with AI stem separation tools

The use of AI and other methodologies to target specific types of sounds enables new approaches to spectral separation-based sound design through specialized editing tools. These tools allow components, such as transient and time-based information, to be separated and recombined into full tracks of unconventional sound creations. Groove shadows and other sound production dubbing techniques can be achieved by revealing new timbres and structures through spectral selection, facilitated by advances in tools for stem manipulation.

Noise reduction and AI stem separation

Aside from advanced noise reduction methods based on learning noise profiles, taking an inverted approach and removing known source targets such as the basic four and specialized models can result in leaving only the noise as a separate track depending on the ensemble. From that, one can remove the noise track. Noise may result on only a single stem and that stem can be targeted exclusively with noise reduction profiles in this way the entire mix does not need to be processed.

Karaoke (vocal remover) and AI stem separation

One of the most popular use cases of stem separation is for the purposes of creating an instrumental of a song where one isn't known to exist or available. There are dozens of sites using the technology to attract users aspiring to make such instrumental versions of their favorite songs.

RipX and the Melodyne approach to stem separation

The RipX DAW is a unique take on the concept of stem separation because of its note-based harmonic audio visual structure branded as "Rip Audio Format". The system provides a stem separation tool that breaks down a single file into several tracks with notes being represented as the audio track. These notes are highly adjustable and the system includes highly specialized tools for working with the notes and the spectral aspects of the captures. Each note or note part can have specialized effects applied. Tracks can be swapped easily because of the utilization of this notation with other sounds entirely. Thus, the stem is not only separated but the MIDI is transcribed, making it possible to perform as a MIDI sequence and thereby direct instruments. The notation used by the Rip Audio format resembles the Melodyne architecture of note extraction from audio, these notes however also function as MIDI and audio simultaneously. RipX is a completely unique kind of DAW that is based around stem separation as well as this new Rip Audio format, where audio and midi worlds forge a symbiosis with new kinds of tools to support the new paradigm.

Stem mastering tool

Native Instruments created a specialized tool called "Stem Creator Tool" for working with four part stem tracks which is ideally suited for the DJ world as digital DJ consoles and Native Instruments hardware like Traktor and Maschine use the four track stem structure. This tool enables quick mastering and saving of files in a "stem" archival format. The tool is free to use and essential mastering effects applicable to stem-based audio are provided.

Example approaches and methodologies employed

Deep learning

  • Neural networks
  • Convolutional neural networks (CNNs)
  • Recurrent neural networks (RNNs) and transformers
  • Source separation algorithms

Signal processing techniques with AI integration

Supporting developments

Known issues

The length of time it takes to analyze and separate the sound means that the mixtures generally need pre-rendering or there is a delay in processing. The process of AI-based stem separation produces artifacts and doesn't always result in the correct designation of target instruments. There may also be spectral bleed from part to part. It is easy to compromise the mixed structure of the full work by adjusting certain elements in isolated parts. A rapid volume-modulated sound similar to tremolo may also be a factor of certain kinds of separations. The order in which the source audio is processed and the kind of applications and their sequence can affect the outcome of separations in addition to the kind of mixes and masters. The process can pick up spectral anomalies which may need to be merged into different tracks. There may be a need to reprocess a stem separation of specialized instruments until the desired balance of the captured target sound is realized. Specialized audio editing tools exist to further clean up the processing of the stem separation.