Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-06T23:58:02.246Z Has data issue: false hasContentIssue false

Inferring tephritid fly pupal development stage using non-invasive near infrared imaging and machine learning classification

Published online by Cambridge University Press:  08 September 2025

Guadalupe Córdova-García
Affiliation:
Instituto de Investigaciones en Inteligencia Artificial, Universidad Veracruzana, Xalapa, Veracruz, México
Horacio Tapia-McClung*
Affiliation:
Instituto de Investigaciones en Inteligencia Artificial, Universidad Veracruzana, Xalapa, Veracruz, México
Dinesh Rao
Affiliation:
Instituto de Biotecnología y Ecología Aplicada, Universidad Veracruzana, Xalapa, Veracruz, México
Diana Pérez-Staples*
Affiliation:
Instituto de Biotecnología y Ecología Aplicada, Universidad Veracruzana, Xalapa, Veracruz, México
*
Corresponding authors: Horacio Tapia-McClung; Email: htapia@uv.mx; Diana Pérez-Staples; Email: diperez@uv.mx
Corresponding authors: Horacio Tapia-McClung; Email: htapia@uv.mx; Diana Pérez-Staples; Email: diperez@uv.mx
Rights & Permissions [Opens in a new window]

Abstract

Insect pupae change morphologically (e.g., pigmentation of eyes, wings, setae and legs) during the intrapuparial period. Knowledge on the physiological age of pupae and their emergence are important parameters for the control of agriculturally important Tephritid flies. Traditional methods for determining age require dissecting the puparium, thus killing the specimen. Therefore, non-invasive and more ethical methods to determine physiological age are needed, especially if individual pupae are followed throughout their development. Furthermore, machine learning methods can be employed to detect pupal age, thereby reducing human-bias. Here, we studied the intrapuparial development of the Mexican fruit fly, Anastrepha ludens (Diptera: Tephritidae), using non-invasive near-infrared (NIR, 850–1100 nm) images. We photographed pupae and subsequently analysed the images with machine learning algorithms. The intrapuparial period lasted between 17 and 19 days at a constant temperature of 26°C, and 75–80% relative humidity. No visible structures were observed between days 1 and 3. The phanerocephalic pupa was observed on day 4. The darkening of the eyes began on day 12. Wing pigmentation occurred on days 13 and 14, and the legs and setae on the thorax became melanized on day 15. A convolutional neural network correctly identified the physiological age range of intrapuparial development stages with an average accuracy of 71.77%. This model using NIR imaging allows the determination of a physiological age range without arresting the development of the pupae, and an estimation of the viability of pupae without waiting for the emergence of the adult.

Information

Type
Research Paper
Copyright
© The Author(s), 2025. Published by Cambridge University Press.
Figure 0

Figure 1. (a) Dorsal and (b) ventral position of A. ludens pupa with a chronological age of 15 days that was kept at 26°C.

Figure 1

Figure 2. Dorsal and ventral position of the Intrapuparial development of A. ludens. The time and morphological characteristics described by Hallman and Worley (1999) and Thomas and Hallman (2011) were used as a reference.

Figure 2

Figure 3. Pupal development of A. ludens. (a, b, e) Dorsal and (c, d) ventral position.

Figure 3

Figure 4. Confusion matrix of trained network using NIR images of A. ludens, indicating number of successes and errors of the trained model. Each row represents the physiological age range. The diagonal cells correspond to images correctly labeled by the model, while the other entries indicate the number of images that were misclassified according to age range.

Figure 4

Table 1. Successful identification by the machine learning model for each physiological age range of Anastrepha ludens. Percentage success indicates accuracy of the model in identifying the age of the pupa