Automated identification of Ichneumonoidea wasps with YOLO and XAI

Discover how YOLO and HiresCam allow you to identify parasitoid wasps with 96% accuracy, facilitating biodiversity studies.

sábado, 18 de julio de 2026 • 5 min read • Q2BSTUDIO Team

Explainable AI to identify parasitoid wasps with YOLO

The accurate taxonomic identification of parasitoid wasps of the superfamily Ichneumonoidea is a fundamental pillar for biodiversity assessment, ecological monitoring and biological control programs. However, the morphological similarity between species, their small size and subtle intraspecific variations make manual identification a laborious process that demands highly specialized expertise. In this context, the combination of computer vision and deep learning is opening up new frontiers, and a particularly promising approach integrates YOLO-based architectures with explainable artificial intelligence (XAI) techniques such as HiResCAM. This article explores how this technology not only automates wasp sorting, but also provides transparency in wasp decisions, a requirement that is increasingly valued in both research and business applications. From the perspective of a software development company like Q2BSTUDIO, these innovations represent an opportunity to transfer knowledge from the scientific to the industrial field, adapting artificial intelligence solutions for companies to challenges such as quality inspection, environmental monitoring or the automation of biological processes.

The traditional identification of hymenopteran insects, such as ichneumonids and braconids, is supported by detailed morphological characters: wing venation, antennae segmentation, metasome structures and pubescence patterns. A trained taxonomist can take hours to examine a single sample under a microscope, and human error is inevitable when processing collections of hundreds or thousands of specimens. The use of automated systems based on convolutional neural networks has proven effective, but their 'black box' nature is often criticised, where it is not apparent which regions of the image drive classification. This is where the integration of HiResCAM (High-Resolution Class Activation Mapping) makes a difference: it generates high-resolution activation maps that highlight exactly the relevant anatomical areas, such as wings or antennas, validating that the model learns biologically significant traits. For a company developing custom applications, this transparency is crucial when deploying AI systems in regulatory or auditing environments.

The landmark study used a dataset of 3,556 high-resolution images of Hymenoptera specimens, with a predominance of families such as Ichneumonidae (786), Braconidae (648), Apidae (466), and Vespidae (460). The YOLO model, known for its speed and accuracy in object detection, was adapted for simultaneous classification and localization of taxonomic features. The results report an accuracy of more than 96%, with a robust generalization against morphological variations. Visualizations with HiResCAM confirmed that the model focuses on the right areas, which not only improves confidence in the system, but also allows entomologists to validate and refine diagnostic features. This type of solution can be scaled to other biological identification tasks, such as pest recognition in crops, and represents a service line where Q2BSTUDIO offers its expertise in AI for companies, combining vision algorithms with cloud infrastructure.

Beyond entomology, the YOLO + XAI paradigm has direct applications in the business sector. For example, on industrial production lines, a visual inspection system trained on component images can detect minimal defects and, thanks to trigger maps, explain to operators why a part was marked as defective. This reduces friction in the adoption of automation and allows for continuous improvement. Similarly, in cybersecurity, anomalous network traffic patterns can be detected by deep learning models, and XAI techniques can pinpoint which packets or flows originated the alert, making it easier for analysts to respond. Q2BSTUDIO provides customized software to integrate these flows, either in AWS and Azure cloud environments or in on-premise infrastructures, guaranteeing scalability and security.

Another key dimension is the management of large volumes of data: research with insect images generates massive sets that require efficient storage and parallel processing. Here, AWS and Azure cloud services provide the compute power needed to train complex models and deploy real-time inference services. In addition, integration with business intelligence tools such as Power BI allows predictions, biodiversity trends or species counts to be visualised in interactive dashboards, facilitating decision-making for biologists and environmental managers. Q2BSTUDIO has a division specialized in business intelligence services that links the results of AI models with corporate dashboards, offering a comprehensive solution from data capture to executive presentation.

A differentiating aspect of the approach with XAI is the ability to generate pixel-level explanations, which not only improves interpretability, but also allows for bias debugging. For example, if the model started to rely on the background of the image instead of the insect, activation maps would reveal this, allowing the training set to be corrected or data augmentations applied. This level of control is vital when implementing critical systems, such as the identification of protected species or the detection of invasive organisms. The same philosophy applies in the development of autonomous AI agents that interact with dynamic environments: transparency in decisions is a requirement of trust for users and regulators. Q2BSTUDIO

It investigates and deploys these agents in sectors such as logistics, customer service and environmental monitoring, ensuring that each decision can be traceable and explainable.

Training a model like the one described requires careful curation of data and fine-tuning of hyperparameters. The original study used 3,556 images with unbalanced distribution between families, which forced balancing and magnifying techniques. For companies that wish to replicate this success in their own domains, Q2BSTUDIO offers consulting and development of turnkey projects, from the definition of the problem to the implementation of production. The team combines expertise in artificial intelligence, computer vision and cloud architectures, enabling customers in the agricultural, pharmaceutical or manufacturing sectors to adopt these technologies without the need to hire deep learning experts in-house.

Ultimately, the automated identification of Ichneumonoidea wasps with YOLO and XAI illustrates how the technology can solve complex biological classification problems, while laying the groundwork for industrial and commercial applications. The key to success lies in combining an accurate model with explanatory tools that build trust and enable continuous improvement. Q2BSTUDIO is positioned to help organizations make this leap by offering custom software, AWS and Azure cloud services, cybersecurity, Power BI business intelligence services, and the development of custom AI agents. The interpretable nature of XAI-based systems is a competitive differentiator that, just like in entomology, allows companies to understand and validate their algorithms' decisions, paving the way for mass and responsible adoption of artificial intelligence.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.