Skip to content

Wissam2001/Ear_Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ear Classification using Machine Learning & Deep Learning πŸ‘‚

This project is a comprehensive Machine Learning lab assignment focused on classifying ear images to identify different individuals. The notebook implements and compares multiple approaches for feature extraction and classification, including:

  • K-Nearest Neighbors (KNN) with raw pixel data
  • Principal Component Analysis (PCA) for dimensionality reduction
  • Artificial Neural Networks (ANN) from scratch and using TensorFlow/Keras
  • Feature extraction techniques: BSIF (Binarized Statistical Image Features) and LBP (Local Binary Patterns)

Dataset πŸ“Š

  • Type: Ear images (.bmp format)
  • Total samples: 493 images
  • Image dimensions: 180Γ—50 pixels (RGB)
  • Classes: Multiple individuals (labeled by participant IDs like 001, 002, etc.)
  • Data split: 67% training, 33% testing (stratified by class)

Key Findings πŸ“ˆ

  • BSIF features achieved the highest accuracy (~95% with ANN)
  • PCA successfully reduced dimensionality while preserving ~98% variance
  • LBP alone showed poor performance with ANN (likely due to histogram features not being suitable for this network architecture)
  • ANN with PCA significantly outperformed raw pixel ANN (84.7% vs 72.4%)

Lessons Learned 🧠

  • Feature extraction techniques (BSIF, LBP) can dramatically impact classification performance
  • PCA is effective for reducing dimensionality while preserving information
  • ANN architecture must be tailored to the feature representation (pixel vs. histogram data)
  • Stratified sampling is essential for imbalanced multi-class problems

License πŸ“

This project is for educational purposes as part of a Master's lab assignment.

Contact βœ‰οΈ

β€’ Email: wissambadia4@gmail.com β€’ LinkedIn: Badia Ouissam Lakas

About

This project is a comprehensive Machine Learning lab assignment focused on classifying ear images to identify different individuals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors