Integration of YOLOv8 and FastAPI for Early Detection of Nail Diseases
DOI:
10.33395/sinkron.v9i2.14796Keywords:
YOLOv8, early detection, FastAPI, object detection, web-basedAbstract
Nails are important indicators of various health conditions, including fungal infections (onychomycosis), autoimmune disorders (psoriasis), and subungual melanoma (black line). However, early detection of these diseases remains limited due to low accessibility and public awareness. This study aims to develop an end-to-end, web-based early detection system for nail diseases by integrating the YOLOv8 object detection algorithm with the FastAPI framework. A total of 600 annotated nail images obtained from Kaggle were categorized into four classes: healthy nail, psoriasis, black line, and onychomycosis. The model was trained using PyTorch on Google Colab with GPU acceleration and evaluated using precision, recall, and mean Average Precision (mAP@0.5). The model achieved a precision of 93%, recall of 88%, and mAP@0.5 of 89%. Manual testing on 100 images via the deployed web application showed an overall accuracy of 97%. Class-wise accuracy reached 100% for healthy nail and psoriasis, 92% for black line, and 96% for onychomycosis. These results demonstrate that the system performs reliably across various conditions. The main contribution of this study is the implementation of a real-time, web-integrated nail disease detection system that is accessible to both medical professionals and the general public. Future research may focus on expanding the dataset, optimizing model robustness under varied lighting and background conditions, and conducting clinical validation.
Downloads
References
Achmad, A., & Sahibu, S. (2024). Analisis Perbandingan Kinerja Model Yolov7 dalam Deteksi Kuku Diabetes. In Journal of System and Computer Engineering (JSCE) ISSN (Vol. 5, Issue 2).
Ahadin, A. I., Hana, F. M., & Prihandono, A. (2024). Pengembangan Model Deteksi Tumor Otak pada Magnetic Resonance Imaging Menggunakan Arsitektur YOLOv10. Sainteks, 21(2), 117. https://doi.org/10.30595/sainteks.v21i2.23989
Albahli, S. (2025). A Robust YOLOv8-Based Framework for Real-Time Melanoma Detection and Segmentation with Multi-Dataset Training. Diagnostics, 15(6). https://doi.org/10.3390/diagnostics15060691
Ali, M. L., & Zhang, Z. (2024). The YOLO Framework: A Comprehensive Review of Evolution, Applications, and Benchmarks in Object Detection. In Computers (Vol. 13, Issue 12). Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/computers13120336
Cengil, E. (2024). Multi-Region Detection of eye Conjunctiva Images Using DNCNN and YOLOv8 Algorithms. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi, 13(4), 1181–1193. https://doi.org/10.17798/bitlisfen.1539250
Egga Naufal Daffa Tanadi, Dhian Satria Yudha Kartika, & Abdul Rezha Efrat Najaf. (2024). Sistem Pendeteksi Penyakit Kanker Kulit Menggunakan Convolutional Neural Network Arsitektur YOLOv8 Berbasis Website. Repeater : Publikasi Teknik Informatika Dan Jaringan, 2(3), 166–177. https://doi.org/10.62951/repeater.v2i3.124
Flores, A. M., Demsas, F., Leeper, N. J., & Ross, E. G. (2021). Leveraging Machine Learning and Artificial Intelligence to Improve Peripheral Artery Disease Detection, Treatment, and Outcomes. Circulation Research, 128(12), 1833–1850. https://doi.org/10.1161/CIRCRESAHA.121.318224
Gaurav, V., Grover, C., Tyagi, M., & Saurabh, S. (2025). Artificial Intelligence in Diagnosis and Management of Nail Disorders: A Narrative Review. Indian Dermatology Online Journal, 16(1), 40–49. https://doi.org/10.4103/idoj.idoj_460_24
Gautam Bharadwaj. (2025). Boost Your AI Model with FastAPI: A Quick Start Guide. AI Mind. https://pub.aimind.so/boost-your-ai-model-with-fastapi-a-quick-start-guide-dccf345698c3
Gupta, A. K., Hall, D. C., Cooper, E. A., & Ghannoum, M. A. (2022). Diagnosing Onychomycosis: What’s New? In Journal of Fungi (Vol. 8, Issue 5). MDPI. https://doi.org/10.3390/jof8050464
Hadeler, E., Mosca, M., Hong, J., Brownstone, N., Bhutani, T., & Liao, W. (2021). Nail Psoriasis: A Review of Effective Therapies and Recommendations for Management. In Dermatology and Therapy (Vol. 11, Issue 3, pp. 799–831). Adis. https://doi.org/10.1007/s13555-021-00523-x
Ito, T., Hashimoto, H., Kaku-Ito, Y., Tanaka, Y., & Nakahara, T. (2023). Nail Apparatus Melanoma: Current Management and Future Perspectives. In Journal of Clinical Medicine (Vol. 12, Issue 6). Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/jcm12062203
Kitsiranuwat, S., Kawichai, T., & Khanarsa, P. (2023). Identification and Classification of Diseases Based on Object Detection and Majority Voting of Bounding Boxes. Journal of Advances in Information Technology, 14(6), 1301–1311. https://doi.org/10.12720/jait.14.6.1301-1311
Madani, R. A., & Pratiwi, N. (2024). Jurnal Teknik Informatika dan Komputer https://journal.uhamka.ac.id/index.php/jutikom Klasifikasi Penyakit dan Kelainan Bentuk Kuku Manusia Menggunakan Convolutional Neural Network. https://journal.uhamka.ac.id/index.php/jutikom
Mahajan, K. (2024a). Artificial Intelligence in Dermatology: Improving Diagnostic Accuracy in Nail Disorders Through Deep Learning Algorithms. International Journal of Computer Trends and Technology, 72(9), 185–198. https://doi.org/10.14445/22312803/IJCTT-V72I9P129
Mahajan, K. (2024b). Artificial Intelligence in Dermatology: Improving Diagnostic Accuracy in Nail Disorders Through Deep Learning Algorithms. International Journal of Computer Trends and Technology, 72(9), 185–198. https://doi.org/10.14445/22312803/IJCTT-V72I9P129
Mehra, A. (2024). Understanding YOLOv8 Architecture, Applications & Features. https://www.labellerr.com/blog/understanding-yolov8-architecture-applications-features/
Shandilya, G., Gupta, S., Bharany, S., Rehman, A. U., Kaur, U., Som, H. M., & Hussen, S. (2024). Autonomous detection of nail disorders using a hybrid capsule CNN: a novel deep learning approach for early diagnosis. BMC Medical Informatics and Decision Making, 24(1). https://doi.org/10.1186/s12911-024-02840-5
Tuncer, S. A., Yildirim, M., Tuncer, T., & Mülayim, M. K. (2024). YOLOv8-Based System for Nail Capillary Detection on a Single-Board Computer. Diagnostics, 14(17). https://doi.org/10.3390/diagnostics14171843
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2025 Ferdinand Linggo Pakpahan, Joni Satrio Sembiring, Tivanez Ballerina Abellista, Evta Indra

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.






















Moraref
PKP Index
Indonesia OneSearch
OCLC Worldcat
Index Copernicus
Scilit
