Detection and Identification of Dental Caries Using Segmentation Techniques
DOI:
https://doi.org/10.30526/38.3.4099Keywords:
Image Processing, Machine learning, Teeth detection, Dental caries, Segmentation, Medical Image Segmentation, U-NetAbstract
Dental caries, also named tooth decay, is a major issue for oral health and is caused by bacteria in dental plaque. Detecting caries early on is essential for preventing further damage. Because caries are often small, they can lead to unnecessary treatments or missed diagnoses. This study tackles the challenge of spotting dental caries using color image analysis. We tested both traditional methods—like Quickshift, Simple Linear Iterative Clustering (SLIC) superpixels, and k-means clustering—combined in the Multi-Step Segmentation with K-Means (MSS-KM) approach, as well as a more advanced deep learning method using YOLOv12 for segmentation. The evaluation of the performance of these methods based on accuracy, precision, recall, mean average precision (mAP), and F1-score. The results were impressive, showing that YOLOv12 clearly outperforms MSS-KM in terms of accuracy. YOLOv12 achieved an accuracy of 98.12%, while MSS-KM was at 96.79%. In addition to accuracy, YOLOv12 had excellent precision (99.6%), recall (98.1%), and an F1-score of 0.99, while MSS-KM came in at 88.5% for precision, 91% for recall, and an F1-score of 89.1%. YOLOv12 also had a mAP of 99.5%, compared to MSS-KM's 99.3%. These results clearly show that YOLOv12 is more accurate and reliable for detecting dental caries than MSS-KM. While the MSS-KM method still has value, particularly for traditional segmentation techniques, the model showed strong potential for practical use in clinical settings. The consistent training setup contributed to stable performance, while the comparison with traditional methods highlighted how modern deep learning approaches can significantly enhance diagnostic accuracy. These results not only support the use of YOLOv12 for early caries detection but also suggest that such AI models could become valuable tools in improving patient outcomes and reducing unnecessary treatments
References
1. WHO highlights oral health neglect affecting nearly half of the world's population. 2022. Available at: https://www.who.int/news/item/18-11-2022-who-highlights-oral-health-neglect-affecting-nearly-half-of-the-world-s-population
2. Peres M.A., Macpherson L.M.D., Weyant R.J., et al. Oral diseases: A global public health challenge. Lancet 2019; 394(10194):249–260. https://doi.org/10.1016/S0140-6736(19)31146-8
3. Kaguru G., Ayah R., Mutave R., Mugambi C. Integrating oral health into primary health care: A systematic review of oral health training in sub-Saharan Africa. J. Multidiscip. Healthc. 2022; 15:1361–1367. https://doi.org/10.2147/JMDH.S357863
4. Žibienė M., Gaigalienė R., Vaičiulienė I., Skučienė K., Rima J., Saldūnaitė E. Prevalence and severity of dental caries among 18-year-old Lithuanian adolescents. Medicina 2016; 52:54–60
5. Zanini L., Rubira-Bullen I., Nunes F. Segmentation and classification of dental caries in cone beam tomography images using machine learning and image processing. In: Proc. Int. Joint Conf. Biomed. Eng. Syst. Technol. 2024; 2:428–435. https://doi.org/10.5220/0012365300003657
6. Tafere Y., Chanie S., Dessie T., Gedamu H. Assessment of prevalence of dental caries and associated factors among patients attending dental clinic in Debre Tabor general hospital. BMC Oral Health 2018; 18(1):119. https://doi.org/10.1186/s12903-018-0581-8
7. Sonis S.T. Dental Secrets, 4th ed., Elsevier, 2015:147–200. https://doi.org/10.1016/B978-0-323-26278-1.00008-8
8. Prados-Privado M., García Villalón J., Blázquez Torres A., Martínez-Martínez C.H., Ivorra C. A validation employing convolutional neural network for the radiographic detection of absence or presence of teeth. J. Clin. Med. 2021; 10:1186. https://doi.org/10.3390/jcm10061186
9. Thakur G.K., Thakur A., Kulkarni S., Khan N., Khan S. Deep learning approaches for medical image analysis and diagnosis. Cureus 2024; 16(5):e59507. https://doi.org/10.7759/cureus.59507
10. Liu L., Cheng J., Quan Q., Wu F.X., Wang Y.P., Wang J. A survey on U-shaped networks in medical image segmentations. Neurocomputing 2020; 409:244–258
11. Zuo Q., Chen S., Wang Z. R2AU-Net: Attention recurrent residual convolutional neural network for multimodal medical image segmentation. Secur. Commun. Netw. 2021. https://doi.org/10.1155/2021/6625688
12. Bayati M., Alizadeh Savareh B., Ahmadinejad H., et al. Advanced AI-driven detection of interproximal caries in bitewing radiographs using YOLOv8. Sci. Rep. 2025; 15:4641. https://doi.org/10.1038/s41598-024-84737-x
13. Di S., Liao M., Zhao Y., Li Y., Zeng Y. Image superpixel segmentation based on hierarchical multi-level LI-SLIC. Opt. Laser Technol. 2021; 135:106703. https://doi.org/10.1016/j.optlastec.2020.106703
14. Shoaib A., Vadiveloo M., Lim S.P. Comparative studies of region-based segmentation algorithms on natural and remote sensing images. ITM Web Conf. 2024; 67. https://doi.org/10.1051/itmconf/20246701048
15. Soylu E., Guzel M.S., Bostanci G.E., Ekinci F., Asuroglu T., Acici K. Deep-learning-based approaches for semantic segmentation of natural scene images: A review. Electron. 2023; 12:2730. https://doi.org/10.3390/electronics12122730.
16. Archana R., Eliahim Jeevaraj P.S. Deep learning models for digital image processing: A review. Artif. Intell. Rev. 2024; 57(11). https://doi.org/10.1007/s10462-023-10631-z
17. Widyaningrum R., Candradewi I., Aji N.R., Aulianisa R. Comparison of multi-label U-Net and Mask R-CNN for panoramic radiograph segmentation to detect periodontitis. Imaging Sci. Dent. 2022; 52(4):383–391. https://doi.org/10.5624/isd.20220105
18. Ibraheem N.A., Hasan M.M. Combining several substitution cipher algorithms using circular queue data structure. Baghdad Sci. J. 2020; 17(4):1320–1327. https://doi.org/10.21123/bsj.2020.17.4.1320
19. Wiedermann W., Li X. Direction dependence analysis: A framework to test the direction of effects in linear models with an implementation in SPSS. Behav. Res. 2018; 50:1581–1601. https://doi.org/10.3758/s13428-018-1031-x
20. Sivari E., Senirkentli G.B., Bostanci E., Guzel M.S., Acici K., Asuroglu T. Deep learning in diagnostic of dental anomalies and diseases: A systematic review. Diagnostics 2023; 13:2512. https://doi.org/10.3390/diagnostics13152512
21. Yüksel A.E., Gültekin S., Simsar E., et al. Dental enumeration and multiple treatment detection on panoramic X-rays using deep learning. Sci. Rep. 2021; 11:12342. https://doi.org/10.1038/s41598-021-90386-1
22. Muresan M.P., Barbura A.R., Nedevschi S. Teeth detection and dental problem classification in panoramic X-ray images using deep learning and image processing techniques. In: Proc. IEEE Int. Conf. Intell. Comput. Commun. Process. (ICCP), 2020:457–463. https://doi.org/10.1109/ICCP51029.2020.9266244
23. Vasdev D., Gupta V., Shubham S., et al. Retracted article: Periapical dental X-ray image classification using deep neural networks. Ann. Oper. Res. 2023; 326(Suppl 1):161. https://doi.org/10.1007/s10479-022-04961-4
24. Vinayahalingam S., Kempers S., Limon L., et al. The automatic detection of caries in third molars on panoramic radiographs using deep learning: A pilot study. Preprint 2021. https://doi.org/10.21203/rs.3.rs-379636/v1
25. Khalaf M., Dhannoon B.N. MSRD-Unet: Multiscale residual dilated U-Net for medical image segmentation. Baghdad Sci. J. 2022; 19(6):1603–1611. https://doi.org/10.21123/bsj.2022.7559
26. Kim S., Lee C.-O. Individual tooth segmentation in human teeth images using pseudo edge-region obtained by deep neural networks. Signal Process. Image Commun. 2024; 120:117076. https://www.sciencedirect.com/science/article/pii/S0923596523001583
27. Tareq A., Faisal M.I., Islam M.S., et al. Visual diagnostics of dental caries through deep learning of non-standardised photographs using a hybrid YOLO ensemble and transfer learning model. Int. J. Environ. Res. Public Health 2023; 20(7):5351. https://doi.org/10.3390/ijerph20075351
28. Beser B., Reis T., Berber M.N., et al. YOLO-V5 based deep learning approach for tooth detection and segmentation on pediatric panoramic radiographs in mixed dentition. BMC Med. Imaging 2024; 24:172. https://doi.org/10.1186/s12880-024-01338-w
29. Majanga V., Viriri S. A survey of dental caries segmentation and detection techniques. Sci. World J. 2022; 5:19. https://doi.org/10.1155/2022/8415705
30. Chawla R., Krishna K.H., Deshmukh A.A., Sagar K.V.D., Al Ansari M.S., Taloba A.I. A hybrid optimization approach with deep learning technique for the classification of dental caries. Int. J. Adv. Comput. Sci. Appl. (IJACSA) 2022; 13(12).
31. Alharbi S.S., AlRugaibah A.A., Alhasson H.F., Khan R.U. 2023. Detection of cavities from dental panoramic X-ray images using nested U-Net models. Appl. Sci. 13:12771. https://doi.org/10.3390/app132312771
32. Tripathi P., Malathy C., Prabhakaran M. 2019. Genetic algorithms based approach for dental caries detection using back propagation neural network. Int. J. Recent Technol. Eng. 8(1S2). https://www.ijrte.org/portfolio-item/a00730581s219
33. Jusman Y., Anam M.K., Puspita S., Saleh E. 2021. Machine learnings of dental caries images based on Hu moment invariants features. Proc. Int. Sem. Technol. Inf. Commun. (iSemantic):296–299. https://doi.org/10.1109/iSemantic52711.2021.9573208
34. Aayush J., Himanshu T., Ujjwal K.S., Nitin K., Sandeep K. 2023. Dental caries detection using Faster R-CNN and YOLO V3. ITM Web Conf. 53:02005. https://doi.org/10.1051/itmconf/20235302005
35. Zhang S., Ma Z., Zhang G., Lei T., Zhang R., Cui Y. 2020. Semantic image segmentation with deep convolutional neural networks and Quick Shift. Symmetry 12(3):427. https://doi.org/10.3390/sym12030427
36. Li X.X., Shen X.J., Chen H.P., et al. 2017. Image clustering segmentation based on SLIC superpixel and transfer learning. Pattern Recognit. Image Anal. 27:838–845. https://doi.org/10.1134/S1054661817040101
37. Faragallah O.S., El-Hoseny H.M., El-Sayed H.S. 2023. Efficient COVID-19 super pixel segmentation algorithm using MCFO-based SLIC. J. Ambient Intell. Humaniz. Comput. 14(7):9217–9232. https://doi.org/10.1007/s12652-022-04425-4
38. Sasmal B., Dhal K.G. 2023. A survey on the utilization of superpixel image for clustering based image segmentation. Multimed. Tools Appl. https://doi.org/10.1007/s11042-023-14861-9
39. Ghosh P., Mali K., Das S.K. 2018. Use of spectral clustering combined with normalized cuts (N-Cuts) in an iterative k-means clustering framework (NKSC) for superpixel segmentation with contour adherence. Pattern Recognit. Image Anal. 28(3):400–409. https://doi.org/10.1134/S1054661818030161
40. Qiao N., Di L. 2022. An improved method of linear spectral clustering. Multimed. Tools Appl. 81:1287–1311. https://doi.org/10.1007/s11042-021-11459-x
41. Siyuan R., Xinying L. 2020. Superpixel image segmentation based on improved K-means. J. Phys. Conf. Ser. 1533:032067
42. Tian Y., Ye Q., Doermann D. 2025. YOLOv12: Attention-centric real-time object detectors. arXiv preprint arXiv:2502.12524. https://doi.org/10.48550/arXiv.2502.12524
43. Osman F.M., Yap M.H. 2020. Adjusted Quick Shift phase preserving dynamic range compression method for breast lesions segmentation. Inform. Med. Unlocked 20:100344. https://doi.org/10.1016/j.imu.2020.100344
44. Mashhadani S. 2025. Detection the topics of Facebook posts using text mining with Latent Dirichlet Allocation (LDA) algorithm. Ibn AL-Haitham J. Pure Appl. Sci. 38(1). https://doi.org/10.30526/38.1.4033
45. Abdalah A.M., Alkazaz N.R. 2024. Predicting movie production years through facial recognition of actors with machine learning. Baghdad Sci. J. 21(12):Art.30. https://doi.org/10.21123/bsj.2024.8996
46. Kaggle. Oral diseases dataset. https://www.kaggle.com/datasets/salmansajid05/oral-diseases
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ibn AL-Haitham Journal For Pure and Applied Sciences

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