where's the beat?

6. neural methods

Contents

Give a program a recording and a list of the times someone tapped along. Repeat that across many recordings. A neural network can learn which patterns in the audio tend to coincide with those taps. Change the training labels to the first beat of each bar and you teach it a different task. A single BPM label for a whole excerpt teaches it the rate, but leaves open where the beats fall. [19, 33]

Most of the systems below start from a spectrogram, a picture of how the strength of different frequencies changes over time. One model might read the whole picture and choose a BPM. Another gives each brief slice a score for “beat here” and “downbeat here.” A decoder turns those scores into timestamps. It can pick the tops of the peaks or use a model of how beats and bars follow one another. Jia, Lv, and Liu review this second approach. Beat This! is an example of the first. [34, 35]

System What it learns and when it can answer
Tempo-CNN Looks at 11.9 seconds of audio and chooses a tempo. It uses a mel spectrogram, which groups high frequencies more broadly than low ones. Repeating the measurement along a track shows changes in tempo. [33]
madmom A recurrent network carries information from one slice to the next. This one reads the recording in both directions. A dynamic Bayesian network (DBN) weighs the scores against likely sequences of beats and bar positions. [19]
BeatNet and BeatNet+ Use only the audio heard so far. This makes them causal and suitable for live use. Two particle filters follow beat timing and bar position. BeatNet+ also trains on mixes with quieter drums to learn cues that survive when percussion drops out. [20, 36]
Beat Transformer Separates the mix into instrument parts. Attention lets the model weigh which moments and parts are most relevant to the current beat, including bass or harmony when the drums give little away. [37]
Beat This! Uses convolution to recognize local patterns and attention to relate events farther apart. It picks beats and downbeats from peaks in its scores after analyzing the file. [35]
Beat This! Live Moves the target marks earlier during training. The live model learns to anticipate a beat, giving the peak picker time to confirm it. [38]
All-In-One Learns beat times, downbeats, section boundaries, and labels such as verse and chorus together. It uses separated instrument parts from a recording. [32]

On the GTZAN collection of recordings, the Beat This! Live authors reported F1, a score that accounts for missed beats and extra guesses. Their large model scored 86.7% for beats and 74.1% for downbeats. BeatNet+ scored 80.6% and 56.5% under the same test. To use either model live, I’d also want to know how early it could announce the next beat. [38]

madmom, BeatNet, and Beat This! all publish code and trained models. For reuse in an app, madmom lists a BSD license for the code and a separate Creative Commons Attribution-NonCommercial-ShareAlike license for its models and data. [19, 20, 35]