A machine learning approach to facilitate parasitic egg identification in a conspecific brood parasite.
Anna E Hughes, Lisandrina Mari, Jolyon Troscianko, Václav Jelínek, Tomas Albrecht, Michal Šulc
Abstract
Open AccessAvian brood parasitism offers an excellent system for studying coevolution. While more common than interspecific parasitism, conspecific brood parasitism (CBP) is less studied owing to the challenge of detecting parasitic eggs. Molecular genotyping accurately detects CBP, but its high cost has led researchers to explore egg appearance as a more accessible alternative. Barn swallows (Hirundo rustica) are suspected conspecific brood parasites, yet parasitic egg detection has largely relied on subjective human assessment. Here, we used UV-visible photographs of genetically confirmed non-parasitized barn swallow clutches and simulated parasitism to compare the accuracy of human assessment with supervised machine learning models. Participants and models completed two classification tasks, identifying parasitic eggs from either six or two options. Both humans and the 'leave-one-clutch-out' model performed better than chance, with accuracies of 72 and 87% (humans) and 76 and 92% (models). An improved 'leave-one-egg-out' model achieved 97% accuracy, greatly exceeding human performance, likely by integrating more visual information, with egg dimensions being the most important trait, followed by colour and spotting pattern. We present a complete and accessible pipeline for replicating our supervised models, offering a powerful tool to identify parasitic eggs in other species also, and advance research on the evolution of egg phenotypes.