Submitted:
18 June 2026
Posted:
22 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- 1.
- 2.
- Visual fatigue: prolonged microscopy sessions increase the error margin over the course of an analysis session.
- 3.
- Operational unfeasibility: the process is extremely slow when large volumes of field samples must be processed rapidly, which is precisely the scenario required by modern phytosanitary management programs.
2. Related Works
3. Materials and Methods
3.1. Study Location and Biological Material
3.2. Egg Extraction Protocol
3.3. Design and Fabrication of the 3D-Printed Microscope Adapter
3.4. Acquisition Stability Assessment
3.5. Image Acquisition and Dataset Construction
3.5.1. Data Augmentation
- Horizontal and vertical flips (probability 0.5);
- Random rotation up to ±15°;
- HSV jitter (hue: ±0.015; saturation: ±0.7; value: ±0.4) to simulate variable microscope illumination conditions;
- Mosaic augmentation (probability 0.5);
- Scale jitter (±50% of image size).
3.6. Model Architecture and Training Configuration
3.7. Comparison with Manual Counting (Pilot Study)
3.8. Software Interfaces
- Web Module (Streamlit) [13]: A lightweight, browser-based interface for batch image processing. The user uploads images captured from the same preparation slide; the system processes the entire batch and returns the total egg count, per-image detection results, a confidence-based automatic incidence report (laudo), exportable CSV/JSON files, and a visual gallery with predicted bounding boxes. Incidence thresholds (low, moderate, high) were defined based on egg density per field of view, following diagnostic criteria used in Brazilian phytosanitary practice [9].
- Interactive Module (Tkinter + DroidCam): A desktop graphical interface implemented with the Python Tkinter library that streams the smartphone camera feed via the DroidCam application, enabling real-time egg detection directly from the microscope feed at approximately 10 fps on the test hardware.
4. Results and Discussion
4.1. Adapter Acquisition Stability
4.2. Model Detection Performance
4.3. Comparison with Manual Counting
4.4. Application Prototypes
4.5. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| CNN | Convolutional Neural Network |
| CV | Coefficient of Variation |
| FDM | Fused Deposition Modeling |
| mAP | Mean Average Precision |
| PLA | Polylactic Acid |
| RKN | Root-Knot Nematode |
| YOLO | You Only Look Once |
References
- Nematode Detection and Classification Using Machine Learning Techniques: A Review. Agronomy 2025, 15, 2481. [CrossRef]
- Akintayo, A.; Tylka, G.L.; Singh, A.K.; Ganapathysubramanian, B.; Singh, A.; Sarkar, S. A deep learning framework to discern and count microscopic nematode eggs. Sci. Rep. 2018, 8, 9145. [Google Scholar] [CrossRef] [PubMed]
- Barbedo, J.G.A. Digital image processing techniques for detecting, quantifying and classifying plant diseases. SpringerPlus 2013, 2, 660. [Google Scholar] [CrossRef] [PubMed]
- Bonetti, J.I.S.; Ferraz, S. Modificações do método de Hussey e Barker para extração de ovos de Meloidogyne exigua de raízes de cafeeiro. Fitopatol. Bras. 1981, 6, 553. [Google Scholar]
- Deep Learning-Based Decision Support Tool for Plant-Parasitic Nematode Management. J. Imaging 2023, 9, 240. [CrossRef] [PubMed]
- Fortunato, H.F.M.; et al. Artificial intelligence as an ally to assess and manage golden mussel (Limnoperna fortunei) bioinvasion. Aquat. Sci. 2025, 87, 53. [Google Scholar] [CrossRef]
- Isaias, P.H. Técnicas de visão computacional para contagem de ovos de nematoides-das-galhas (Meloidogyne spp.). Undergraduate thesis, Instituto Federal Goiano, Campus Morrinhos, Brazil, 2021. [Google Scholar]
- Lambert, J.C.; Moulin, M.M.; Souza, A.F. Método de detecção de nematoides das galhas em tomateiro; Ifes: Vitória, Brazil, 2023; Available online: https://repositorio.ifes.edu.br (accessed on 15 June 2026).
- Moens, M.; Perry, R.N.; Starr, J.L. Meloidogyne species: a diverse group of novel and important plant parasites. In Root-knot Nematodes; Perry, R.N., Moens, M., Starr, J.L., Eds.; CAB International: Wallingford, UK, 2009; pp. 1–17. [Google Scholar] [CrossRef]
- Pun, T.B.; Neupane, A.; Koech, R.; Owen, K.J. Detection and quantification of root-knot nematode (Meloidogyne spp.) eggs from tomato plants using image analysis. IEEE Access 2022, 10, 123190–123204. [Google Scholar] [CrossRef]
- Saikai, K.K.; Bresilla, T.; Kool, J.; de Ruijter, N.C.A.; van Schaik, C.; Teklu, M.G. Counting nematodes made easy: leveraging AI-powered automation for enhanced efficiency and precision. Front. Plant Sci. 2024, 15, 1349209. [Google Scholar] [CrossRef] [PubMed]
- Singh, N.; et al. Development of a deep learning-assisted mobile application for the identification of nematodes through microscopic images. Mod. Agric. 2024, 2, e70000. [Google Scholar] [CrossRef]
- Streamlit. Streamlit Documentation; Streamlit Inc.: San Francisco, CA, USA, 2025; Available online: https://docs.streamlit.io/ (accessed on 15 June 2026).
- Ultralytics. YOLOv8 Documentation; Ultralytics Inc.: Los Angeles, CA, USA, 2025; Available online: https://docs.ultralytics.com/ (accessed on 15 June 2026).








| Manufacturing Parameter | Technical Specification |
|---|---|
| Material (Filament) | Polylactic Acid (PLA) |
| Nozzle Temperature | 200 °C |
| Bed Temperature | 50 °C |
| Layer Height | 0.2 mm |
| Wall/Top/Bottom Thickness | 0.8 mm |
| Infill Density | 20% |
| Infill Pattern | Triangular grid |
| Print Speed | 50 mm/s |
| Support Structures | Tree-type, overhangs >45° |
| Estimated Print Time | 11 h 30 min |
| Estimated Filament Cost | <BRL 5.00 |
| Adjustment Hardware | M5 threaded rod and nut |
| Acquisition Mode | Mean Displacement (px) | SD (px) |
|---|---|---|
| 3D-printed adapter | 3.1 | 0.8 |
| Free-hand (manual) | 31.4 | 9.2 |
| Subset | Images | Annotated Eggs | % of Total |
|---|---|---|---|
| Training | 70 | 782 | 70% |
| Validation | 15 | 163 | 15% |
| Test | 15 | 175 | 15% |
| Total | 100 | 1120 | 100% |
| Metric | Value |
|---|---|
| Precision (P) | 0.988 |
| Recall (R) | 0.875 |
| F1-Score | 0.928 |
| mAP50 | 0.967 |
| mAP50-95 | 0.714 |
| Method | Mean Count | SD | CV (%) |
|---|---|---|---|
| PhytoNemaCount (YOLOv8n) | 38.4 | 1.6 | 4.2 |
| Human Operator 1 | 35.1 | 5.0 | 14.3 |
| Human Operator 2 | 40.7 | 8.2 | 20.1 |
| Human Operator 3 | 41.9 | 9.1 | 21.7 |
| Ground-truth (consensus) | 39.2 | — | — |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).