%0 Journal Article %T Vision Measurement System for Gender-Based Counting of Acheta domesticus. %A Giulietti N %A Castellini P %A Truzzi C %A Ajdini B %A Martarelli M %J Sensors (Basel) %V 24 %N 15 %D 2024 Jul 30 %M 39123981 %F 3.847 %R 10.3390/s24154936 %X The exploitation of insects as protein sources in the food industry has had a strong impact in recent decades for many reasons. The emphasis for this phenomenon has its primary basis on sustainability and also to the nutritional value provided. The gender of the insects, specifically Acheta domesticus, is strictly related to their nutritional value and therefore the availability of an automatic system capable of counting the number of Acheta in an insect farm based on their gender will have a strong impact on the sustainability of the farm itself. This paper presents a non-contact measurement system designed for gender counting and recognition in Acheta domesticus farms. A specific test bench was designed and realized to force the crickets to travel inside a transparent duct, across which they were framed by means of a high-resolution camera able to capture the ovipositor, the distinction element between male and female. All possible sources of uncertainty affecting the identification and counting of individuals were considered, and methods to mitigate their effect were described. The proposed method, which achieves 2.6 percent error in counting and 8.6 percent error in gender estimation, can be of significant impact in the sustainable food industry.