Paper List

Journal: ArXiv Preprint
Published: Unknown
Computer VisionAgricultural Technology

Real-time Cricket Sorting By Sex A low-cost embedded solution using YOLOv8 and Raspberry Pi

Illinois Institute of Technology, Chicago, Illinois | Universidad Politécnica de Madrid, Madrid, Spain

Juan Manuel Cantarero Angulo, Dr. Matthew Smith
Figure
Figure
Figure
Figure
Figure

The 30-Second View

IN SHORT: This paper addresses the critical bottleneck in industrial insect farming: the lack of automated, real-time sex sorting systems for Acheta domesticus crickets, which is essential for selective breeding, optimized reproduction ratios, and nutritional differentiation.

Innovation (TL;DR)

  • Methodology First integrated system combining embedded computer vision (YOLOv8 nano) with physical actuation for real-time cricket sex sorting, achieving 86.8% overall sorting accuracy.
  • Methodology Development of a custom balanced dataset (597 training images) with controlled illumination variability and data augmentation, achieving mAP@0.5 of 0.977 with minimal misclassification (2.3% for females, 2.7% for males).
  • Biology Quantitative analysis revealing sex-dependent behavioral differences: males move faster (median 39.5 mm/s vs 18.8 mm/s for females) and are more sensitive to actuator noise, affecting sorting efficiency under different stress conditions.

Key conclusions

  • The system achieved 86.8% overall sorting accuracy across four experiments, with performance varying from 83% under high-stress conditions to 94% under low-stress conditions.
  • Movement speed significantly impacts sorting accuracy: misclassified crickets had median speeds of 75.0 mm/s compared to 20.3 mm/s for correctly classified individuals (p<0.05 based on distribution analysis).
  • The YOLOv8 nano model demonstrated excellent detection performance with mAP@0.5 of 0.977 and class-wise precision/recall of 0.857-0.878, proving suitable for resource-constrained edge deployment.
Background and Gap: Previous research focused solely on vision-based cricket sex classification without physical sorting capabilities. The field lacked integrated, low-cost systems that could perform real-time detection and physical separation suitable for small-scale farming operations.

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.


Code