Pith. sign in

REVIEW 5 major objections 5 minor 7 references

Onset detection: A new approach to QBH system

T0 review · 5 major / 5 minor · reviewed 2026-08-14 · deepseek-v4-flash

Pith's one-line read A query-by-humming search engine can identify a song from note-onset timing alone, without storing or analyzing pitch.

desk verdict Onset-only QBH is a plausible idea with sound detection theory, but the headline claim of empirical superiority is not supported by the evidence in the paper. read the letter →

arxiv 1908.07409 v2 pith:TWL3NMVS submitted 2019-08-17 stat.AP cs.IRcs.SDeess.AS

classification stat.APcs.IRcs.SDeess.AS
keywords querybyhummingonsetdetectiondominantspectraldissimilaritycorrelativematchingsubsetrhythm-basedretrievalstatisticaltheorymusicinformation
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

This paper tries to establish that a Query-by-Humming system can be built from onset times alone, without storing or analyzing pitch. It argues that rhythm carries enough information to identify a song, and that such a system is faster and more memory-efficient than pitch-based QBH and, in the reported experiments, at least as accurate. The authors derive three onset detection functions from detection-theoretic hypotheses, pair them with subset matching and linear-rescaling correlative matching, and test on three hummed songs against a ten-song database. The central claim is that precise onsets are the only information the retrieval step needs.

What carries the argument

The load-bearing objects are the three detection functions, the subset-matching subroutine, and the correlative-matching search. The local energy detector sums squared samples in a sliding window and flags peaks; spectral dissimilarity sums positive magnitude changes across frequency bins below 1 kHz; dominant spectral dissimilarity tracks only positive changes in the maximum squared short-time Fourier magnitude. Subset matching labels each detected onset as a true positive or false positive by nearest-neighbour agreement with the database onsets. Correlative matching tries every linear rescaling of the true onsets onto the output onsets, computes Pearson correlation after subset matching, and multiplies by a correction factor $L^2/(mn)$ that penalizes false positives and false negatives. That correction factor is what keeps the ranking honest about detection errors.

What would settle it

The decisive check is to hum a different verse of the same song, or the same verse with an extra note inserted, and see whether the correlation score still puts the correct song first; the paper's own Section 7 concedes the system cannot locate the end of the first verse, so such a test directly probes the one-to-one matching assumption.

Watch

Extended reading notes

Core claim

On the paper's own terms, the discovery is that the timing of note attacks, the onsets, is a sufficient statistic for song identity in a humming-retrieval task. Concretely, the authors claim that storing only the onsets of the first line of each database song, and detecting only onsets in the query, lets a correlation-based ranking recover the correct song in all three experiments with the dominant spectral dissimilarity detector, and in most cases with the other two detectors. The paper also gives a statistical analogy: local energy detection is a generalized likelihood-ratio test for white Gaussian noise against an unknown signal; spectral dissimilarity responds to positive changes across frequency bins; dominant spectral dissimilarity applies a periodogram-maximum test to the dominant frequency. This grounds the detection functions in detection theory rather than pure heuristics.

Load-bearing premise

The retrieval pipeline depends on the hummed query containing the same verse as the stored database entry and, after a uniform tempo change, on every query onset having one counterpart in the database.

Editorial extensions

If this is right

  • A QBH database can store just a handful of onset times per song rather than audio or MIDI, so scaling to large catalogs becomes mostly a ranking-speed problem.
  • Because matching is rhythmic rather than melodic, an off-key or imperfect-pitch hum can still retrieve the song as long as note timing is roughly preserved.
  • Tuning peak detection to avoid false negatives matters more than avoiding false positives, since a missed true onset cannot be recovered at search time.
  • The dominant spectral dissimilarity detector ranked the correct song first in all three reported experiments; the other two detectors ranked it first in two of three.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • If onset-only matching survives larger and more varied databases, QBH databases could be built automatically from scores or recordings without hiring singers, and queries could be matched even when the user is off-key.
  • The linear-rescaling assumption could be relaxed by dynamic time warping, which would absorb local tempo drift and ornamented notes instead of forcing one global tempo change.
  • A testable extension would add coarse pitch or melodic contour only as a secondary reranker, preserving the memory advantage while separating songs whose first-line rhythms are nearly identical.
Share X Bluesky LinkedIn Reddit HN

Signed reviews

No signed human review yet.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

5 major / 5 minor

Summary. The paper proposes an onset-only Query by Humming (QBH) system. It derives three onset-detection functions from GLRT principles: a local energy detector, a spectral dissimilarity detector, and a dominant spectral dissimilarity detector (Sections 3.1-3.3). Peak detection is performed by threshold and local-maximum comparison (Section 3.4), and probability bounds for detection and false positives are derived via Boole-Frechet inequalities (Section 3.5). Retrieval is done by subset matching and correlative matching with a linear tempo-scaling search (Sections 4.1-4.2). The experiments use three hummed queries against a 10-song database (Section 5), with claim of perfect retrieval for two songs and mixed results for the third, plus power calculations based on estimated noise variance and SSNR values.

Significance. If the central claim were established, the paper would be practically significant: an onset-only representation would reduce storage and search cost relative to pitch- or audio-based QBH, and might be robust to off-key humming. The statistical derivations in Sections 3.1-3.3 are textbook-correct GLRT arguments, and the Boole-Frechet bounds in Section 3.5 are valid as stated. The authors provide code and data via a GitHub repository, which supports reproducibility. However, the significance is substantially weakened by the absence of any comparison to existing QBH systems, the very small evaluation (3 queries, 10 songs), and the circularity of the numerical power claims, so the paper's headline claims are not currently supported.

major comments (5)
  1. [Abstract and Section 5] The abstract claims the system is 'better than existing methods ... empirically in terms of accuracy,' but no existing QBH method is implemented, cited, or compared. Section 5 reports only three hummed queries against a 10-song database containing the query songs, with no baseline. Three queries cannot statistically distinguish the method from chance or from a trivial ranking, and the absence of any QBH literature in the references means the superiority claim has no empirical or contextual grounding.
  2. [Section 5.1 and Tables 1-3] The evaluation is not independent of parameter tuning. The hyperparameters (window length, hop size, neighbour count, threshold criterion) are selected on the first song in Section 5.1, and the same settings are then used for the other two queries. The Jingle Bells run in Section 5.3 (Table 3) shows that Energy and Spectral Dissimilarity detectors, with these settings, rank wrong songs first; only Dominant SD succeeds. Thus the reported success is a fitted summary of the tuning song, not a predictive accuracy, and the claim of general empirical superiority is unsupported.
  3. [Sections 3.5 and 5.4] The numerical detection and false-positive probabilities are computed using a noise variance estimated from a blank 1-second recording and a SSNR estimated from the same hummed songs that are later claimed to be detected with at least 90% probability (Section 5.4, Figures 24-26). The mathematical bounds are valid given the model, but the specific numbers are plug-in estimates from the test data, so the 'measure of error' is a fitted parameter, not an independent prediction. The i.i.d. Gaussian noise assumption is also not validated on the actual recordings.
  4. [Section 4.1.2, 4.2, and 7] The retrieval pipeline assumes the hummed segment is the same verse as the stored database onsets, and that after a linear tempo rescaling the onset sets correspond one-to-one. Section 4.1.2 states the same verse is present and the timing is equal; Section 4.2 relaxes only timing via a linear transform; Section 7 admits the system cannot handle a user who does not know where the first verse ends. Extra or missing onsets (e.g., meends, ornaments) can cause the subset-matching step to mislabel onsets, so the method is not demonstrated for realistic query variation.
  5. [Sections 1 and 6] The claimed advantages in speed and memory are not quantified. The paper states that storing only onsets is memory efficient and that the system is faster than pitch-based methods, but no measurements of runtime, storage size, or comparison against any alternative representation are provided. These claims are load-bearing for the abstract's 'better than existing methods in terms of speed and memory.'
minor comments (5)
  1. [Section 2.1] There are typos such as 'an sound' and 'getaway' (should be 'way out'), and 'chi-sqaured' appears repeatedly in Section 3.5.1 and 3.5.2.
  2. [Section 2.2] The definition of 'beat' as 'the largest unit of time based on which ... all such measured time in beat units will be integers' is imprecise and does not match standard music terminology; this should be clarified or replaced with a standard definition.
  3. [Section 3.4] The threshold criteria (mean or 3rd quartile of the detection function) are introduced as ad hoc choices with no theoretical justification or sensitivity analysis; a brief discussion of their limitations would improve the paper.
  4. [References] The reference list contains no QBH system papers (e.g., Ghias et al., McNab et al., or MIREX QBH participants), which is surprising for a paper claiming superiority over existing QBH methods; at minimum, representative prior work should be cited and discussed.
  5. [Section 5.4] The statement that 'the squared value of SNR is roughly estimated as 5000 for each of the song' is based on T/σ^2 (mean energy over noise variance) which is not the SNR defined as A/σ; although the paper acknowledges this is a crude underestimate, the notation should be corrected to avoid confusion.

Circularity Check

1 steps flagged · score 4.0 of 10

Detector-power calculation is in-sample and statistically forced, but the QBH retrieval pipeline itself is not circular.

  1. fitted input called prediction [Section 5.4, Power Calculation (pp. 27-28)]
    "we record a blank audio (without any onset) of 1 second which helps us to estimate the usual noise variance σ2... estimate the squared signal to noise ratio (SSNR) of that song as T/10165.98... We find that the sqaured value of SNR is roughly estimated as 5000 for each of the song, hence we use this to calculate the power of the energy detector."

    The reported detection-power lower bounds and false-positive probabilities are computed by inserting noise-variance and SSNR estimates taken from the same hummed recordings into the model of Section 3.5. The threshold alpha is effectively set by alpha/sigma^2 ~ 5000, the estimated SSNR of those very songs; the resulting near-zero false-positive probability is therefore a fitted summary of the evaluation data rather than an independent prediction. This does not force the retrieval rankings, which come from actual onset matching, but it means the abstract's 'measure of error' is not independent evidence of detector performance.

full rationale

The onset detection functions are derived from explicit statistical models (GLRT for energy; heuristic extensions for spectral variants), and the peak-detection and matching algorithms are defined independently of the evaluation. The retrieval experiments, while small and lacking QBH baselines, are genuine retrieval tasks: the query songs are present in the database, but the algorithm does not know the answer and the rankings are produced by the matching score. The main circularity concern is confined to Section 5.4, where detector power and false-positive rates are computed using parameters estimated from the same recordings being evaluated, making the reported 'measure of error' an in-sample fitted value rather than a prediction. The unsupported superiority claim over existing QBH systems is an evaluation-completeness problem, not a circular-derivation problem. No self-citations are used, and no core mathematical derivation reduces to its own input.

Assumptions & free parameters 6 free parameters · 5 assumptions · 0 invented entities

The derivation depends on a standard WGN signal model, perceptual constants (0.1 s separation, 1 kHz cutoff), and a verse-alignment assumption. No new physical entities are introduced.

free parameters (6)
  • window length omega = 4096 samples
    Chosen as largest power of 2 not exceeding 0.1 s at 48 kHz sampling rate; a perceptual constraint, but the exact value is a design choice.
  • hop size h = 512 (energy), 2048 (spectral and dominant SD)
    Selected by inspecting the first song's detection functions to balance false positives and false negatives.
  • neighbour count r = 8 (energy), 4 (spectral), 2 (dominant SD)
    Tuned on the first song; larger r reduces false positives but can miss close true onsets.
  • threshold criterion = mean-based thresholding
    Chosen because quartile thresholding failed for the energy detector on the first song.
  • noise variance sigma^2 = 10165.98
    Estimated from 1 second of blank audio recorded by the authors; used in all power calculations.
  • squared signal-to-noise ratio (SSNR) = approximately 5000
    Estimated as mean energy over noise variance for each song; used to set the threshold alpha and to claim a false-positive probability of 4.704e-21.
assumptions (5)
  • domain assumption The signal is a sum of a deterministic (possibly decaying sinusoidal) component and independent white Gaussian noise with known variance sigma^2.
    Assumed in Sections 3.1, 3.3, and 3.5 to derive detectors and power bounds; real audio noise is correlated and non-Gaussian, as acknowledged in Section 7.
  • domain assumption An onset manifests as a local peak in the amplitude envelope and in the detection function; true onsets are separated by at least 0.1 s.
    Used in Section 2.2 and the peak detection algorithm (Section 3.4) to define onsets and merge close peaks.
  • domain assumption The hummed query and the database reference share the same verse, so their onset sets correspond one-to-one after a linear tempo transform.
    Assumed in Section 4.1.2 and extended in Section 4.2; later acknowledged as a limitation in Section 7.
  • standard math Standard results in statistical detection theory (GLRT, chi-squared and non-central chi-squared distributions, Boole-Frechet inequalities) apply.
    Used throughout Sections 3.1, 3.3, and 3.5; these are textbook results from Kay [1].
  • domain assumption Frequency bins above 1 kHz contain no useful hum information and can be discarded.
    Stated in Section 3.2, based on the fundamental frequency of humming (80-200 Hz) and 3-4 harmonics; may fail for bright timbres or instruments.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Onset detection: A new approach to QBH system." pith.science (2026). https://pith.science/paper/TWL3NMVS

@misc{pith2026190807409,
  author       = {Pith},
  title        = {Pith review of: Onset detection: A new approach to QBH system},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/TWL3NMVS}},
  note         = {Machine review of arXiv:1908.07409}
}
read the original abstract

Query by Humming (QBH) is a system to provide a user with the song(s) which the user hums to the system. Current QBH method requires the extraction of onset and pitch information in order to track similarity with various versions of different songs. However, we here focus on detecting precise onsets only and use them to build a QBH system which is better than existing methods in terms of speed and memory and empirically in terms of accuracy. We also provide statistical analogy for onset detection functions and provide a measure of error in our algorithm.

Figures

Figures reproduced from arXiv: 1908.07409 by the authors.

Figure 1
Figure 1. An illustration of Sampling and Quantization with sampling frequency 10 and bitrate of 4 [PITH_FULL_IMAGE:figures/full_fig_p002_1.png] view at source ↗
Figure 2
Figure 2. A snapshot of digitally sampled audio Onset, Attack, Decay, Transience in amplitude envelope [PITH_FULL_IMAGE:figures/full_fig_p003_2.png] view at source ↗
Figure 3
Figure 3. Flowchart of Onset Detection Algorithm 5 [PITH_FULL_IMAGE:figures/full_fig_p005_3.png] view at source ↗
Figures from the paper (23 more)
Figure 4
Figure 4. Figure 4: Effect of Meend on Amplitude Envelope 3.2 Spectral Dissimilarity There are two drawbacks with Local Energy Detector as mentioned in previous section. 1. Firstly, the local energy detector computes the sum of squared values of the signal. However, when we speak or hum, …
Figure 5
Figure 5. Figure 5: The Steps of Subset Matching Algorithm 4.1.3 The Algorithm The input to the algorithm is; 1. Output onsets: Onsets of the hummed song (input) which has some false positives as well as some false negatives. 2. True onsets: Onsets of the song in the database that is assu…
Figure 6
Figure 6. Figure 6: Oscillogram of the hummed song of Sa Re Jahan Se Accha [PITH_FULL_IMAGE:figures/full_fig_p018_6.png]
Figure 7
Figure 7. Figure 7: Values of Local Energy detection function for first song (Red lines show the times of true onsets) [PITH_FULL_IMAGE:figures/full_fig_p018_7.png]
Figure 8
Figure 8. Figure 8: Obtained Peaks from Energy Detector for different parameters with mean based thresholding (Red circles [PITH_FULL_IMAGE:figures/full_fig_p019_8.png]
Figure 9
Figure 9. Figure 9: Obtained Peaks from Energy Detector for different parameters with Quartile based thresholding (Red circles [PITH_FULL_IMAGE:figures/full_fig_p019_9.png]
Figure 10
Figure 10. Figure 10: Values of the Spectral Dissimilarity Function for first song (Red lines show the time of true onsets) [PITH_FULL_IMAGE:figures/full_fig_p020_10.png]
Figure 11
Figure 11. Figure 11: Obtained Peaks from Spectral Dissimilarity Detector for different parameters with mean based thresholding [PITH_FULL_IMAGE:figures/full_fig_p020_11.png]
Figure 12
Figure 12. Figure 12: Obtained Peaks from Spectral Dissimilarity Detector for different parameters with quartile based thresh [PITH_FULL_IMAGE:figures/full_fig_p021_12.png]
Figure 13
Figure 13. Figure 13: Values of the Dominant Spectral Dissimilarity Function for first song (Red lines show the time of true [PITH_FULL_IMAGE:figures/full_fig_p022_13.png]
Figure 14
Figure 14. Figure 14: Obtained Peaks from Dominant Spectral Dissimilarity Detector for different parameters with mean based [PITH_FULL_IMAGE:figures/full_fig_p022_14.png]
Figure 15
Figure 15. Figure 15: Obtained Peaks from Dominant Spectral Dissimilarity Detector for different parameters with quartile based [PITH_FULL_IMAGE:figures/full_fig_p023_15.png]
Figure 16
Figure 16. Figure 16: Oscillogram of the hummed song of Ekla Cholo Re We obtain the true onsets of the hummed version of the song by manual inspection of the amplitude profile in Audacity, as shown in [PITH_FULL_IMAGE:figures/full_fig_p023_16.png]
Figure 17
Figure 17. Figure 17: Performance of Local Energy Detector for [PITH_FULL_IMAGE:figures/full_fig_p024_17.png]
Figure 18
Figure 18. Figure 18: Performance of Spectral Dissimilarity Detector for [PITH_FULL_IMAGE:figures/full_fig_p024_18.png]
Figure 19
Figure 19. Figure 19: Performance of Dominant Spectral Dissimilarity Detector for [PITH_FULL_IMAGE:figures/full_fig_p025_19.png]
Figure 20
Figure 20. Figure 20: Oscillogram of the hummed song of Jingle Bells 25 [PITH_FULL_IMAGE:figures/full_fig_p025_20.png]
Figure 21
Figure 21. Figure 21: Performance of Local Energy Detector for [PITH_FULL_IMAGE:figures/full_fig_p026_21.png]
Figure 22
Figure 22. Figure 22: Performance of Spectral Dissimilarity Detector for [PITH_FULL_IMAGE:figures/full_fig_p026_22.png]
Figure 23
Figure 23. Figure 23: Performance of Dominant Spectral Dissimilarity Detector for [PITH_FULL_IMAGE:figures/full_fig_p027_23.png]
Figure 24
Figure 24. Figure 24: Lower Bound to the Probability of Peak Detection (Blue line shows the 90% assurance line) [PITH_FULL_IMAGE:figures/full_fig_p028_24.png]
Figure 25
Figure 25. Figure 25: Estimated Probability of Peak Detection for Spectral Dissimilarity (Blue line denotes 0.1 probability) [PITH_FULL_IMAGE:figures/full_fig_p028_25.png]
Figure 26
Figure 26. Figure 26: Estimated Probability of Peak Detection for Dominant SD (Blue line denotes 0.05 probability) [PITH_FULL_IMAGE:figures/full_fig_p029_26.png]

Discussion (0). Continue with ORCID to comment.

Reference graph

Works this paper leans on

7 extracted references · 7 canonical work pages

  1. [1]

    Kay, Fundamentals of Statistical Signal Processing, Volume II: Detection Theory

    Steven M. Kay, Fundamentals of Statistical Signal Processing, Volume II: Detection Theory. Prentice-Hall, 1998

  2. [2]

    J. P. Bello, L. Daudet, S. Abdallah, C. Duxbury, M. Davies and M. B. Sandler, A tutorial on onset detection in music signals, in IEEE Transactions on Speech and Audio Processing, vol. 13, no. 5, pp. 1035-1047, Sept. 2005

  3. [3]

    Kauppinen, Methods for detecting impulsive noise in speech and audio signals , 2002 14th International Con- ference on Digital Signal Processing Proceedings

    I. Kauppinen, Methods for detecting impulsive noise in speech and audio signals , 2002 14th International Con- ference on Digital Signal Processing Proceedings. DSP 2002 (Cat. No.02TH8628), Santorini, Greece, 2002, pp. 967-970 vol.2

  4. [4]

    Holzapfel, Y

    A. Holzapfel, Y . Stylianou, A. C. Gedik and B. Bozkurt,Three Dimensions of Pitched Instrument Onset Detection, in IEEE Transactions on Audio, Speech, and Language Processing, vol. 18, no. 6, pp. 1517-1527, Aug. 2010

  5. [5]

    https://www.uio.no/studier/emner/matnat/math/nedlagte-emner/MAT-INF2360/v12/part1.pdf

    Uniservity of Oslo: Sound Processing Lecture Part I: Fourier analysis and applications to sound processing . https://www.uio.no/studier/emner/matnat/math/nedlagte-emner/MAT-INF2360/v12/part1.pdf

  6. [6]

    A Foundation in Digital Communication ETH Zurich

    Amos Lapidoth. A Foundation in Digital Communication ETH Zurich. Swiss Federal Institute of Technology. 2009

  7. [7]

    Link for Github Repository: https://github.com/subroy13/OnsetDetection 30

Pith tools

Reviewed August 14, 2026 · model on record in the stance chip above.