Skip to content

[Project] Classifies tongue images to detect normal conditions and potential health risks (e.g., black hairy tongue, cancer risk, diabetes risk) using CNN-based models. Data augmentation techniques were applied to enhance training on limited datasets.

Notifications You must be signed in to change notification settings

PuddingPotato/tongue-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tongue Classification with Convolution Neural Network

This project focuses on classifying tongue health conditions using convolutional neural networks (CNNs). The characteristics of the tongue are important indicators of oral hygiene and can reflect underlying illnesses. Early identification of abnormal tongue features allows individuals to seek timely medical advice for proper diagnosis.


๐ŸŽฏ Objective

To develop machine learning models capable of classifying tongue images into different health conditions. The models aim to assist in early detection of potential oral and systemic health issues by analyzing tongue appearances.


๐Ÿ› ๏ธ Tools & Technologies

  • Convolutional Neural Networks (CNNs) โ€“ For deep learning-based image classification
  • Python โ€“ Core implementation language
  • TensorFlow / Keras โ€“ For building and training CNN models
  • Roboflow, Kaggle, Google Images โ€“ Sources for tongue image datasets
  • Data Augmentation โ€“ Techniques like flipping, rotation, and scaling to enhance data diversity

๐Ÿง  Key Features

  • Two-Stage Classification Models

    • Model 1: Classifies between normal and abnormal tongue conditions
      • Dataset split: 57% training, 18% validation, 25% testing
      • Achieved 96.49% accuracy
    • Model 2: Classifies among black hairy tongue, cancer-risk tongue, and diabetes-risk tongue
      • Dataset split: 54% training, 18% validation, 28% testing
      • Achieved 86.17% accuracy
  • Data Augmentation

    • Performed to improve model robustness and handle limited data availability.
  • Evaluation Results

    • Graphs showing training and testing performance (accuracy and loss curves) are available in the evaluations folder within each model directory (model 1, model 2).

๐Ÿ“‚ Dataset Sources

  • Roboflow
  • Kaggle
  • Google Search (filtered for relevant medical images)

๐Ÿ–ผ๏ธ Example Output

  • Classification labels:

    • Normal
    • Abnormal (black fur, cancer risk, diabetes risk)
  • Performance graphs:

    • Accuracy vs Epochs
    • Loss vs Epochs

๐Ÿš€ Future Improvements

  • Expand dataset with more diverse and higher-quality medical images
  • Explore transfer learning with pretrained models to further boost accuracy
  • Deploy as a mobile or web application for real-time tongue health screening

About

[Project] Classifies tongue images to detect normal conditions and potential health risks (e.g., black hairy tongue, cancer risk, diabetes risk) using CNN-based models. Data augmentation techniques were applied to enhance training on limited datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published