Real-time Cricket Sorting By Sex
Juan Manuel Cantarero Angulo, Matthew Smith
TL;DR
The study addresses the need for scalable, sustainable cricket farming by automating sex-based sorting of Acheta domesticus. It integrates a lightweight embedded vision system (YOLOv8 nano) on a Raspberry Pi 5 with a servo-driven sorting arm to physically separate crickets by sex in real time. The prototype achieves a mAP@0.5 of 0.977 for sex detection and an overall sorting accuracy of 86.8%, with higher accuracy under low-stress conditions (>90%). This work demonstrates the feasibility of affordable, autonomous insect sorting and lays groundwork for breeding optimization and nutritional differentiation in industrial cricket production.
Abstract
The global demand for sustainable protein sources is driving increasing interest in edible insects, with Acheta domesticus (house cricket) identified as one of the most suitable species for industrial production. Current farming practices typically rear crickets in mixed-sex populations without automated sex sorting, despite potential benefits such as selective breeding, optimized reproduction ratios, and nutritional differentiation. This work presents a low-cost, real-time system for automated sex-based sorting of Acheta domesticus, combining computer vision and physical actuation. The device integrates a Raspberry Pi 5 with the official Raspberry AI Camera and a custom YOLOv8 nano object detection model, together with a servo-actuated sorting arm. The model reached a mean Average Precision at IoU 0.5 (mAP@0.5) of 0.977 during testing, and real-world experiments with groups of crickets achieved an overall sorting accuracy of 86.8%. These results demonstrate the feasibility of deploying lightweight deep learning models on resource-constrained devices for insect farming applications, offering a practical solution to improve efficiency and sustainability in cricket production.
