Recordist-Level Data Leakage in CNN-Based Bird Sound Classification: A Leakage-Aware Benchmark on Indonesian XenoCanto Recordings

Authors:

Abstract
Bird sound classifiers are often evaluated by splitting short audio windows at random, which can reward a model for recognizing recording conditions rather than birds. We built a leakage-aware benchmark of 3,023 Indonesian Xeno-canto recordings (96 species, 126 recordists, 20,709 five-second windows), in which the three largest recordists contribute 42.0% of the data. A convolutional neural network (CNN) trained from scratch, an ImageNet-pretrained EfficientNet-B0 and a linear probe on Perch 2.0 bioacoustics embeddings were compared under random-window, recording-grouped, recordist-grouped and temporal splits, with matched training sizes and bootstrap intervals over recordists. Random-window splits inflated macro-F1 by 0.21 to 0.62 and made the models almost indistinguishable (0.972 to 0.979), whereas recordist-grouped splits separated them (0.355, 0.492 and 0.760). Grouping by recording still inflated macro-F1 by 0.069 to 0.206. This excess was confined to test windows whose recordist had contributed the same species to training, and grouping by recording session or by site removed 62 to 71% and 86 to 91% of it, so the leakage travels through the site and session context shared within recordists rather than through recordist identity alone. When a recordist appeared in training only with other species, scores fell below the recordist-grouped baseline. Removing or swapping the stationary noise floor reduced the inflation of the scratch CNN by 36 to 45% and raised its recordist-independent macro-F1 from 0.351 to about 0.55. Inflation was smallest with bioacoustics embeddings, whereas ImageNet pre-training did not change it. Recordist- or site-grouped evaluation should be the default for benchmarking on citizen-science archives, and background normalization is a simple partial remedy.