PENN (pitch estimation)
PENN (Pitch-Estimating Neural Networks) is an open-source Python package, and a set of training techniques, for estimating pitch and periodicity with neural networks in both speech and music. Max Morrison, Caedon Hsieh, Nathan Pruyne and Bryan Pardo of Northwestern University described it in 2023.[1:1] It improves existing neural pitch trackers, adds a way of measuring periodicity and voicing from a network's output, and trains a single model on both speech and music; its models ran 11.2 times faster than real time on a 10-core CPU.[1:2]
Background
Pitch contours are used in music transcription, music information retrieval and speech analysis, and to train or evaluate speech and singing synthesis and voice conversion.[1:3] PENN works within the standard neural approach, in which a network outputs a probability over possible pitches for each frame and a second step picks the estimate. It takes CREPE, the most widely used tracker of this kind, and two trackers built on it, DeepF0 and FCNF0, as its baselines.[1:4]
Techniques
The changes include narrower pitch bins (5 cents instead of 20, giving 1440 bins), training on frames with no pitch by giving them a random target bin, training until convergence instead of stopping early, and leaving the input unnormalized.[1:5] Training on unpitched frames teaches the network to spread its probability evenly where there is no pitch. PENN measures periodicity from the entropy of each frame's distribution, low entropy meaning strong periodicity; this needs no extra output from the network and, unlike taking the highest probability, gives a sensible answer when two pitches sound at once.[1:6]
Results
On speech (PTDB) and music (MDB-stem-synth) together, the changes cut the pitch error of every baseline by at least 28%. The improved FCNF0, called FCNF0++, had a mean error of 12.72 cents and raw pitch accuracy of 0.9825, against 21.07 cents and 0.9748 for CREPE and 110.5 cents and 0.8477 for pYIN.[1:7] The authors judged FCNF0++ the most broadly useful model: about as accurate as the best, DeepF0++, with periodicity as good or better, and ten times as fast.[1:8]
Comparisons
The authors of PESTO found PENN the more accurate when trained on data like the test set, with 99.6% raw pitch accuracy on MDB-stem-synth and 95.1% on PTDB.[2:1] But trained on music alone it reached 63.2% on speech, and trained on speech alone 51.6% on music, where PESTO reached 88.3% and 96.3%; PENN also took about five times as long as PESTO on a CPU.[2:2][2:3] In a community benchmark of 19 trackers on degraded recordings, PENN scored 0.560, behind CREPE's 0.689 and ahead of pYIN's 0.506.[3:1][3:2]
The authors named as future work beating the CPU speed of signal processing methods, generalizing to unseen datasets, and estimating several pitches at once.[1:9]
- ^ ↗ penn-authors ^ ↗ penn-abstract ^ ↗ penn-uses ^ ↗ penn-paradigm ^ ↗ penn-practices ^ ↗ penn-entropy ^ ↗ penn-results ^ ↗ penn-fcnf0 ^ ↗ penn-future Morrison, Max; Hsieh, Caedon; Pruyne, Nathan; Pardo, Bryan (2023). Cross-domain Neural Pitch and Periodicity Estimation. arXiv. https://arxiv.org/abs/2301.12258.
- ^ ↗ pesto2-supervised ^ ↗ pesto2-cross ^ ↗ pesto2-speed Riou, Alain; Torres, Bernardo; Hayes, Ben; Lattner, Stefan; et al. (2025). PESTO: Real-Time Pitch Estimation with Self-Supervised Transposition-Equivariant Objective. Transactions of the International Society for Music Information Retrieval. https://doi.org/10.5334/tismir.251 https://transactions.ismir.net/articles/10.5334/tismir.251.
- ^ ↗ bench-scope ^ ↗ bench-ranking Nieradzik, Lars. Pitch Detection Benchmark (README, version 2.1). GitHub: lars76/pitch-benchmark. https://github.com/lars76/pitch-benchmark.