Demodicosis Mite Detection in Eyes with Blepharitis and Meibomian Gland Dysfunction Based on Deep Learning Model
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Design and Data Acquisition and Preprocessing
2.2. Data Processing, Annotation, and Cropping
2.3. Dataset Augmentation, Division, and Confirmation
2.4. Training Results
2.5. Evaluation
3. Results
3.1. YOLOv11 Boxing
3.2. YOLOv11 Segmentation
3.3. RT-DETR
3.4. Grad-CAM Feature Evaluation
3.5. Demodex Quantitative Analysis
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| MGD | meibomian gland dysfunction |
| IVCM | in vivo confocal microscopy |
| IPL | intense pulse light treatment |
| CNN | convolutional neural network |
| YOLO | You Only Look Once |
| Grad-CAM | Gradient-weighted Class Activation Mapping |
| RTDETR | Real-Time DEtection TRansformer |
References
- Rhee, M.K.; Yeu, E.; Barnett, M.; Rapuano, C.J.; Dhaliwal, D.K.; Nichols, K.K.; Karpecki, P.; Mah, F.S.; Chan, A.; Mun, J. Demodex blepharitis: A comprehensive review of the disease, current management, and emerging therapies. Eye Contact Lens 2023, 49, 311–318. [Google Scholar] [CrossRef]
- Liu, J.; Sheha, H.; Tseng, S.C. Pathogenic role of Demodex mites in blepharitis. Curr. Opin. Allergy Clin. Immunol. 2010, 10, 505–510. [Google Scholar] [CrossRef]
- Zhang, A.C.; Muntz, A.; Wang, M.T.; Craig, J.P.; Downie, L.E. Ocular Demodex: A systematic review of the clinical literature. Ophthalmic Physiol. Opt. 2020, 40, 389–432. [Google Scholar] [CrossRef]
- García, V.M.; Vargas, G.V.; Cornuy, M.M.; Torres, P.A. Ocular demodicosis: A review. Arch. Soc. Española Oftalmol. (Engl. Ed.) 2019, 94, 316–322. [Google Scholar] [CrossRef] [PubMed]
- Kim, B.R.; Kim, H.K.; Yoo, T.K. The association between diabetes mellitus and meibomian gland dysfunction: A meta-analysis. Int. J. Diabetes Dev. Ctries. 2025, 1–10. [Google Scholar] [CrossRef]
- Hao, Y.; Wu, B.; Feng, J.; He, J.; Zang, Y.; Tian, L.; Jie, Y. Relationship between type 2 diabetes mellitus and changes of the lid margin, meibomian gland and tear film in dry eye patients: A cross-sectional study. Int. Ophthalmol. 2025, 45, 261. [Google Scholar] [CrossRef] [PubMed]
- Bitton, E.; Aumond, S. Demodex and eye disease: A review. Clin. Exp. Optom. 2021, 104, 285–294. [Google Scholar] [CrossRef]
- Fromstein, S.R.; Harthan, J.S.; Patel, J.; Opitz, D.L. Demodex blepharitis: Clinical perspectives. Clin. Optom. 2018, 10, 57–63. [Google Scholar] [CrossRef]
- Awan, B.; Elsaigh, M.; Tariq, A.; Badee, M.; Loomba, A.; Khedr, Y.; Abdelmaksoud, A.; Loomba, A. A systematic review and meta-analysis of the safety and efficacy of 0.25% lotilaner ophthalmic solution in the treatment of Demodex blepharitis. Cureus 2024, 16, e52664. [Google Scholar] [CrossRef]
- Lindsley, K.; Matsumura, S.; Hatef, E.; Akpek, E.K. Interventions for chronic blepharitis. Cochrane Database Syst. Rev. 2012, 5, CD005556. [Google Scholar] [CrossRef]
- Bonnar, E.; Dowling, S.; Eustace, P. A survey of blepharitis in pre-operative cataract patients. Eur. J. Implant. Refract. Surg. 1994, 6, 87–92. [Google Scholar] [CrossRef]
- Luo, X.; Li, J.; Chen, C.; Tseng, S.; Liang, L. Ocular demodicosis as a potential cause of ocular surface inflammation. Cornea 2017, 36, S9–S14. [Google Scholar] [CrossRef]
- Mai, E.L.C.; Chen, B.-H.; Su, T.-Y. Innovative utilization of ultra-wide field fundus images and deep learning algorithms for screening high-risk posterior polar cataract. J. Cataract Refract. Surg. 2024, 50, 618–623. [Google Scholar] [CrossRef]
- Wan, Q.; Yue, S.; Tang, J.; Wei, R.; Tang, J.; Ma, K.; Yin, H.; Deng, Y.-p. Prediction of early visual outcome of small-incision lenticule extraction (SMILE) based on deep learning. Ophthalmol. Ther. 2023, 12, 1263–1279. [Google Scholar] [CrossRef]
- Kim, Y.J.; Hwang, S.H.; Kim, K.G.; Nam, D.H. Automated imaging of cataract surgery using artificial intelligence. Diagnostics 2025, 15, 445. [Google Scholar] [CrossRef]
- Razzak, M.I.; Naz, S.; Zaib, A. Deep learning for medical image processing: Overview, challenges and the future. Classif. BioApps Autom. Decis. Mak. 2017, 26, 323–350. [Google Scholar]
- Chan, H.-P.; Samala, R.K.; Hadjiiski, L.M.; Zhou, C. Deep learning in medical image analysis. Deep. Learn. Med. Image Anal. Chall. Appl. 2020, 1213, 3–21. [Google Scholar]
- Gulshan, V.; Peng, L.; Coram, M.; Stumpe, M.C.; Wu, D.; Narayanaswamy, A.; Venugopalan, S.; Widner, K.; Madams, T.; Cuadros, J. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA 2016, 316, 2402–2410. [Google Scholar] [CrossRef] [PubMed]
- Swiderska, K.; Blackie, C.A.; Maldonado-Codina, C.; Morgan, P.B.; Read, M.L.; Fergie, M. A Deep Learning Approach for Meibomian Gland Appearance Evaluation. Ophthalmol. Sci. 2023, 3, 100334. [Google Scholar] [CrossRef] [PubMed]
- Li, L.; Xiao, K.; Shang, X.; Hu, W.; Yusufu, M.; Chen, R.; Wang, Y.; Liu, J.; Lai, T.; Guo, L.; et al. Advances in artificial intelligence for meibomian gland evaluation: A comprehensive review. Surv. Ophthalmol. 2024, 69, 945–956. [Google Scholar] [CrossRef] [PubMed]
- Yu, Y.-W.; Lin, C.-H.; Lu, C.-K.; Wang, J.-K.; Huang, T.-L. Automated Age-Related Macular Degeneration Detector on Optical Coherence Tomography Images Using Slice-Sum Local Binary Patterns and Support Vector Machine. Sensors 2023, 23, 7315. [Google Scholar] [CrossRef]
- Ge, M.; Su, F.; Zhao, Z.; Su, D. Deep learning analysis on microscopic imaging in materials science. Mater. Today Nano 2020, 11, 100087. [Google Scholar] [CrossRef]
- Von Chamier, L.; Laine, R.F.; Jukkala, J.; Spahn, C.; Krentzel, D.; Nehme, E.; Lerche, M.; Hernández-Pérez, S.; Mattila, P.K.; Karinou, E. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nat. Commun. 2021, 12, 2276. [Google Scholar] [CrossRef] [PubMed]
- Koohbanani, N.A.; Jahanifar, M.; Tajadin, N.Z.; Rajpoot, N. NuClick: A deep learning framework for interactive segmentation of microscopic images. Med. Image Anal. 2020, 65, 101771. [Google Scholar] [CrossRef]
- Weiss, D.; Schneider, G.; Niemann, B.; Guttmann, P.; Rudolph, D.; Schmahl, G. Computed tomography of cryogenic biological specimens based on X-ray microscopic images. Ultramicroscopy 2000, 84, 185–197. [Google Scholar] [CrossRef]
- Meijering, E.; Jacob, M.; Sarria, J.C.; Steiner, P.; Hirling, H.; Unser, M. Design and validation of a tool for neurite tracing and analysis in fluorescence microscopy images. Cytom. Part A J. Int. Soc. Anal. Cytol. 2004, 58, 167–176. [Google Scholar] [CrossRef]
- Wang, Z.; Wang, P.; Liu, K.; Wang, P.; Fu, Y.; Lu, C.T.; Aggarwal, C.C.; Pei, J.; Zhou, Y. A Comprehensive Survey on Data Augmentation. IEEE Trans. Knowl. Data Eng. 2025, 1, 1–20. [Google Scholar] [CrossRef]
- Kebaili, A.; Lapuyade-Lahorgue, J.; Ruan, S. Deep Learning Approaches for Data Augmentation in Medical Imaging: A Review. J. Imaging 2023, 9, 81. [Google Scholar] [CrossRef]
- Hussain, Z.; Gimenez, F.; Yi, D.; Rubin, D. Differential Data Augmentation Techniques for Medical Imaging Classification Tasks. AMIA Annu. Symp. Proc. 2017, 2017, 979–984. [Google Scholar] [PubMed]
- Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A Review on YOLOv8 and Its Advancements. In Data Intelligence and Cognitive Informatics; Jacob, I.J., Piramuthu, S., Falkowski-Gilski, P., Eds.; Springer Nature: Singapore, 2024; pp. 529–545. [Google Scholar]
- Wang, C.-Y.; Yeh, I.-H.; Mark Liao, H.-Y. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. In Proceedings of the Computer Vision—ECCV 2024, Milan, Italy, 29 September–4 October 2024; Springer Nature: Cham, Switzerland, 2025; pp. 1–21. [Google Scholar]
- Sharma, N.; Martin, E.; Pearce, E.I.; Hagan, S.; Purslow, C.; Craig, J.P. Comparison of the Diagnosis and Management of Demodex Blepharitis Between Eye Care Practitioners in India and Australasia–A Survey-Based Comparison. Clin. Optom. 2024, 16, 255–265. [Google Scholar] [CrossRef] [PubMed]
- Misra, S.; Murthy, S.I.; Joseph, J. Clinical spectrum in microbiologically proven Demodex blepharokeratoconjunctivitis: An observational study. Indian J. Ophthalmol. 2024, 72, 1049–1055. [Google Scholar] [CrossRef] [PubMed]
- Tas, A.Y.; Mergen, B.; Yıldız, E.; Bayraktutar, B.N.; Celik, E.; Sahin, A.; Arıcı, C. Interobserver and intraobserver agreements of the detection of Demodex infestation by in vivo confocal microscopy. Beyoglu Eye J. 2022, 7, 173. [Google Scholar] [CrossRef] [PubMed]
- Trave, I.; Salvi, I.; Canepa, P.; Parodi, A.; Cozzani, E. Detection of demodex mites in papulopustular rosacea using microscopic examination and polymerase chain reaction: A comparative case-control study. Arch. Dermatol. Res. 2024, 316, 485. [Google Scholar] [CrossRef] [PubMed]
- An, N.; Dou, X.; Yin, N.; Lu, H.; Zheng, J.; Liu, X.; Yang, H.; Zhu, X.; Xiao, X. The use of digital PCR for the diagnosis of Demodex blepharitis. Curr. Eye Res. 2024, 49, 33–38. [Google Scholar] [CrossRef]
- Gosalia, H.; Chandrakanth, P.; Verghese, S.; Rammohan, R.; Narendran, K.; Narendran, V. Rapid Office-Based Diagnosis of Demodex Using an Innovative Smartphone-Aided Intraocular Lens Tool. Eye Contact Lens 2022, 48, 306–307. [Google Scholar] [CrossRef]











| Average | Standard Deviation | |
|---|---|---|
| Precision | 0.9442 | 0.020 |
| Sensitivity | 0.9478 | 0.019 |
| F1-score | 0.9459 | 0.017 |
| Average | Standard Deviation | |
|---|---|---|
| Precision | 0.9331 | 0.022 |
| Sensitivity | 0.9400 | 0.012 |
| F1-score | 0.9363 | 0.010 |
| Average | Standard Deviation | |
|---|---|---|
| Precision | 0.7513 | 0.0418 |
| Sensitivity | 0.9389 | 0.0499 |
| F1-score | 0.8322 | 0.0126 |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mai, E.L.-C.; Tseng, Y.-L.; Lee, H.-T.; Sun, W.-H.; Tsai, H.-H.; Chien, T.-Y. Demodicosis Mite Detection in Eyes with Blepharitis and Meibomian Gland Dysfunction Based on Deep Learning Model. Diagnostics 2025, 15, 3204. https://doi.org/10.3390/diagnostics15243204
Mai EL-C, Tseng Y-L, Lee H-T, Sun W-H, Tsai H-H, Chien T-Y. Demodicosis Mite Detection in Eyes with Blepharitis and Meibomian Gland Dysfunction Based on Deep Learning Model. Diagnostics. 2025; 15(24):3204. https://doi.org/10.3390/diagnostics15243204
Chicago/Turabian StyleMai, Elsa Lin-Chin, Ya-Ling Tseng, Hao-Ting Lee, Wen-Hsuan Sun, Han-Hao Tsai, and Ting-Ying Chien. 2025. "Demodicosis Mite Detection in Eyes with Blepharitis and Meibomian Gland Dysfunction Based on Deep Learning Model" Diagnostics 15, no. 24: 3204. https://doi.org/10.3390/diagnostics15243204
APA StyleMai, E. L.-C., Tseng, Y.-L., Lee, H.-T., Sun, W.-H., Tsai, H.-H., & Chien, T.-Y. (2025). Demodicosis Mite Detection in Eyes with Blepharitis and Meibomian Gland Dysfunction Based on Deep Learning Model. Diagnostics, 15(24), 3204. https://doi.org/10.3390/diagnostics15243204

