Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI-Based Tooth Decay Detection from Smartphone Microphotography

Deep learning project for automated tooth decay detection and classification from smartphone microphotography images using YOLOv5. The system identifies and classifies different stages of tooth tissue destruction, demonstrating how computer vision can support early dental diagnosis and screening.

Project Highlights

  • Developed an end-to-end deep learning pipeline for dental image analysis.
  • Applied YOLOv5 for multi-class tooth decay detection and classification.
  • Classified three stages of tooth tissue destruction from smartphone microphotography images.
  • Achieved up to 78.3% mAP@0.5 on the evaluation dataset.
  • Investigated the impact of data augmentation on model performance.

The Problem

Dental caries (tooth decay) is one of the most common oral health conditions worldwide. Early detection plays a critical role in preventing disease progression and reducing the need for invasive treatment.

Traditional diagnosis relies on visual examination by dental professionals. However, advances in computer vision create opportunities for automated screening systems that can assist clinicians and improve accessibility to dental assessment.

This project explores whether deep learning models can accurately detect and classify different stages of tooth tissue destruction directly from smartphone microphotography images.


Why This Was Challenging

Automated dental image analysis presents several challenges:

  • Small and subtle visual differences between decay stages.
  • Variations in lighting, image quality, and camera positioning.
  • Limited dataset size compared to large-scale computer vision benchmarks.
  • Similar visual characteristics between adjacent decay categories.
  • Class imbalance across disease stages.

To improve model robustness, image augmentation techniques were incorporated during training and the performance impact was evaluated.


Our Approach

The project followed the following workflow:

  1. Collect smartphone microphotography images of teeth.
  2. Annotate tooth decay regions and assign disease-stage labels.
  3. Apply image preprocessing and augmentation techniques.
  4. Train a YOLOv5 object detection model.
  5. Evaluate performance using mAP, Precision, Recall, F1 Score, and Confusion Matrices.
  6. Compare model performance under different training configurations.
  7. Analyze strengths and limitations of the final system.

Dataset

The dataset contains labeled dental microphotography images representing three stages of tooth tissue destruction.

Classes

  • Visible Change Without Cavitation
  • Visible Change With Microcavitation
  • Visible Change With Cavitation

Annotation Type

  • Bounding Box Detection
  • Multi-Class Classification

Note

The dataset is not included in this repository due to availability restrictions.


Model Development

YOLOv5

YOLOv5 was selected due to its strong balance between detection accuracy and computational efficiency.

The model was trained to simultaneously:

  • Localize regions affected by tooth decay.
  • Classify decay severity into one of three categories.
  • Generalize across varying image conditions through augmentation.

Results

Best Performance

Metric Value
mAP@0.5 78.3%
Classes 3
Model YOLOv5

The model successfully distinguished between different stages of tooth decay while maintaining strong detection performance across the evaluation dataset.


Training Performance

Training Results

Training and validation metrics demonstrate consistent convergence and performance improvement throughout the training process.


Confusion Matrix

Confusion Matrix

The confusion matrix illustrates class-level prediction performance and highlights the model's ability to distinguish between different decay stages.


Precision-Recall Analysis

Precision Recall Curve

The Precision-Recall curve demonstrates strong overall detection performance, with particularly strong results for advanced decay classes.


F1 Score Analysis

F1 Curve

The F1 curve was used to identify optimal confidence thresholds and evaluate the balance between precision and recall.


Key Takeaways

  • Deep learning can effectively assist in automated dental image analysis.
  • YOLOv5 achieved strong performance for multi-class tooth decay detection.
  • Data augmentation improved model robustness and generalization.
  • Advanced decay stages were identified with particularly high accuracy.
  • The project demonstrates the potential of AI-assisted dental screening systems.

Repository Structure

tooth-decay-detection-using-deep-learning/
│
├── README.md
│
├── notebooks/
│   └── yolov5_training.ipynb
│
├── reports/
│   └── tooth_decay_project_report.pdf
│
└── assets/
    ├── results_with_augmentation.png
    ├── confusion_matrix_with_augmentation.png
    ├── PR_curve_with_augmentation.png
    └── F1_curve_with_augmentation.png

Technologies Used

  • Python
  • YOLOv5
  • PyTorch
  • OpenCV
  • NumPy
  • Matplotlib
  • Jupyter Notebook

Applications

Potential applications include:

  • AI-Assisted Dental Screening
  • Clinical Decision Support
  • Early Caries Detection
  • Oral Health Monitoring
  • Medical Image Analysis
  • Computer-Aided Diagnosis

Project Report

A detailed technical report describing the methodology, experiments, and findings is available in:

reports/tooth_decay_project_report.pdf

About

Computer vision project using YOLOv5 to detect and classify three stages of tooth decay from smartphone microphotography images, achieving up to 78% mAP.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages