Classification of Skin Disease Images Using K-Nearest Neighbour (KNN)
DOI:
https://doi.org/10.59247/jahir.v2i3.300Keywords:
Skin Disease, KNN, Classification, Confusion Matrix, Image ProcessingAbstract
The skin is the outermost part of the human body that is often exposed to the environment, so it is easy to experience disease disorders. Some of the skin diseases that are often contracted in humans are ulcers, herpes, and warts. Untreated skin diseases will be very annoying because of the sensation of itching so it can cause irritation and inflammation. The ability to classify skin diseases using technology is one solution. This study uses the K-Nearest Neighbour (KNN) method to detect images of skin diseases. KNN is one of the machine learning methods with a calculation method based on the proximity of k. KNN was chosen because it is fast and has high-accuracy results. The results of the research that has been carried out have obtained results of accuracy of 63%, precision of 63%, recall of 63%, and F1 Score of 63%. From the results of the study, it can be concluded that disease detection using KNN has been successfully applied and can be used in classification.
References
M. Ahn et al., “Protective Barriers Provided by the Epidermis,” Biomater. Res., vol. 27, no. 1, pp. 1–13, 2023, doi: 10.3390/ijms24043145.
M. Ahn et al., “3D biofabrication of diseased human skin models in vitro,” Biomater. Res., vol. 27, no. 1, pp. 1–13, 2023, doi: 10.1186/s40824-023-00415-5.
A. T. Slominski, R. M. Slominski, C. Raman, J. Y. Chen, M. Athar, and C. Elmets, “Neuroendocrine signaling in the skin with a special focus on the epidermal neuropeptides,” Am. J. Physiol. - Cell Physiol., vol. 323, no. 6, pp. C1757–C1776, 2022, doi: 10.1152/AJPCELL.00147.2022.
A. Srivastav, Y. Srivastav, A. Hameed, and M. I. Ahmad, “Prevention and cure of dermatology disorders using herbal medications: summary,” Int. J. Indig. Herbs Drugs, vol. 9, no. 1, pp. 1–14, 2024, doi: 10.46956/ijihd.v9i1.568.
K. A. and S. A., “A Herbal Approach towards Skin Diseases: An Updated Review,” Int. J. Newgen Res. Pharm. Healthc., vol. 1, no. 1, pp. 93–100, Jun. 2023, doi: 10.61554/ijnrph.v1i1.2023.21.
G. Y. C. Cheung, J. S. Bae, and M. Otto, “Pathogenicity and virulence of Staphylococcus aureus,” Virulence, vol. 12, no. 1, pp. 547–569, 2021, doi: 10.1080/21505594.2021.1878688.
P. Del Giudice, “Skin infections caused by staphylococcus aureus,” Acta Derm. Venereol., vol. 100, no. 100-year theme Cutaneous and genital infections, pp. 208–215, 2020, doi: 10.2340/00015555-3466.
K. Madavaraju, R. Koganti, I. Volety, T. Yadavalli, and D. Shukla, “Herpes Simplex Virus Cell Entry Mechanisms: An Update,” Front. Cell. Infect. Microbiol., vol. 10, no. January, pp. 1–18, 2021, doi: 10.3389/fcimb.2020.617578.
S. García-Oreja, F. J. Álvaro-Afonso, D. Sevillano-Fernández, A. Tardáguila-García, M. López-Moral, and J. L. Lázaro-Martínez, “A non-invasive method for diagnosing plantar warts caused by human papillomavirus (HPV),” J. Med. Virol., vol. 94, no. 6, pp. 2897–2901, 2022, doi: 10.1002/jmv.27514.
C. Flohr and R. Hay, “Putting the burden of skin diseases on the global map,” Br. J. Dermatol., vol. 184, no. 2, pp. 189–190, 2021, doi: 10.1111/bjd.19704.
O. K. Pal, “Skin Disease Classification: A Comparative Analysis of K-Nearest Neighbors (KNN) and Random Forest Algorithm,” Proc. Int. Conf. Electron. Commun. Inf. Technol. ICECIT 2021, no. April, 2021, doi: 10.1109/ICECIT54077.2021.9641120.
W. Chaimae, L. S. Mohammed, K. Maha, K. Mohamed, and B. Said, KNN Classification of Kolb Learning Styles: A Comparative Study on Balanced and Unbalanced Datasets, no. Ml. Atlantis Press International BV, 2023. doi: 10.2991/978-94-6463-360-3_6.
F. Antony, H. Irsyad, and M. E. Al Rivan, “KNN Dan Gabor Filter Serta Wiener Filter Untuk Mendiagnosis Penyakit Pneumonia Citra X-RAY Pada Paru-Paru,” J. Algoritm., vol. 1, no. 2, pp. 147–155, 2021, doi: 10.35957/algoritme.v1i2.893.
M. A. Araaf, K. Nugroho, and D. R. I. M. Setiadi, “Comprehensive Analysis and Classification of Skin Diseases based on Image Texture Features using K-Nearest Neighbors Algorithm,” J. Comput. Theor. Appl., vol. 1, no. 1, pp. 31–40, 2023, doi: 10.33633/jcta.v1i1.9185.
S. Jagtap, M. Karnavat, R. Khairnar, R. Kolge, and J. R. Panchal, “Skin Disease Analysis and Prediction using Machine Learning,” Int. J. Adv. Res. Sci. Commun. Technol., vol. 4, no. 2, pp. 58–62, 2024, doi: 10.48175/IJARSCT-22113.
K. Vayadande, A. A. Bhosle, R. G. Pawar, D. J. Joshi, P. A. Bailke, and O. Lohade, “Innovative approaches for skin disease identification in machine learning: A comprehensive study,” Oral Oncol. Reports, vol. 10, no. April, p. 100365, 2024, doi: 10.1016/j.oor.2024.100365.
A. Yogianto, A. Homaidi, and Z. Fatah, “Implementasi Metode K-Nearest Neighbors (KNN) untuk Klasifikasi Penyakit Jantung,” G-Tech J. Teknol. Terap., vol. 8, no. 3, pp. 1720–1728, 2024, doi: 10.33379/gtech.v8i3.4495.
A. Barry, L. Han, and G. Demartini, “On the Impact of Data Quality on Image Classification Fairness,” in Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, in SIGIR ’23. New York, NY, USA: Association for Computing Machinery, 2023, pp. 2225–2229. doi: 10.1145/3539618.3592031.
L. Budach et al., “The Effects of Data Quality on Machine Learning Performance,” vol. 1, no. 1, 2022, doi: 10.48550/arXiv.2207.14529.
D. Berrabah and Y. Gafour, “Improve Image Classification Using Data Optimization,” Eurasia Proc. Sci. Technol. Eng. Math., vol. 26, pp. 262–271, 2024, doi: 10.55549/epstem.1409569.
A. Vajpayee, P. P. Kaur, A. Sharma, and A. Tiwari, “An Extensive Analysis of Pattern Identification and Categorization,” in 2024 International Conference on Advances in Computing Research on Science Engineering and Technology (ACROSET), 2024, pp. 1–4. doi: 10.1109/ACROSET62108.2024.10743229.
A. Alshaibanee, “Predicting Class Label Using Clustering-Classification Technique: A Comparative Study,” J. Kufa Math. Comput., vol. 10, no. 1, pp. 1–12, 2023, doi: 10.31642/jokmc/2018/100101.
Jude Chukwura Obi, “A comparative study of several classification metrics and their performances on data,” World J. Adv. Eng. Technol. Sci., vol. 8, no. 1, pp. 308–314, 2023, doi: 10.30574/wjaets.2023.8.1.0054.
A. M. El-Assy, H. M. Amer, H. M. Ibrahim, and M. A. Mohamed, “A novel CNN architecture for accurate early detection and classification of Alzheimer’s disease using MRI data,” Sci. Rep., vol. 14, no. 1, pp. 1–19, 2024, doi: 10.1038/s41598-024-53733-6.
A. Sajwan, A. Belwal, N. Sharma, and Y. Joshi, “A Concise Review on Skin Disorders,” Saudi J. Med. Pharm. Sci., vol. 8, no. 5, pp. 252–256, 2022, doi: 10.36348/sjmps.2022.v08i05.007.
M. Paluszek and S. Thomas, “Duplex-Hierarchy Representation Learning for Remote Sensing Image Classification,” Sensors, vol. 24, no. 4, pp. 1–14, 2024, doi: 10.1007/978-1-4842-5124-9_11.
M. M. Islam, M. A. Talukder, M. A. Uddin, A. Akhter, and M. Khalid, “BrainNet: Precision Brain Tumor Classification with Optimized EfficientNet Architecture,” Int. J. Intell. Syst., vol. 2024, no. 1, p. 3583612, 2024, doi: https://doi.org/10.1155/2024/3583612.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2024 Ari Peryanto, Dwi Susanto, Bagus Hayatul Jihad

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in the JAHIR Journal are licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. This license grants the following permissions and obligations:
1. Permitted Uses:
- Sharing – You may copy and redistribute the material in any medium or format.
- Adaptation – You may remix, transform, and build upon the material for any purpose, including commercial use.
2. Conditions of Use:
- Attribution – You must give appropriate credit to the original author(s), provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in a way that suggests the licensor endorses you or your use.
- ShareAlike – If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original (CC BY-SA 4.0).
- No Additional Restrictions – You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
3. Disclaimer:
- The JAHIR Journal and the authors are not responsible for any modifications, interpretations, or derivative works made by third parties using the published content.
- This license does not affect the ownership of copyrights, and authors retain full rights to their work.
For further details, please refer to the official Creative Commons Attribution-ShareAlike 4.0 International License.