Giter Site home page Giter Site logo

kyriakospsa / transfer-learning-vision Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 117.91 MB

Study on the performance of pre-trained models (VGG16, EfficientNetb0, ResNet50, ViT16) with weight fine tuning, as well as classical ML algorithms (Naive Bayes, Logistic Regression, Random Forest) on a dataset of 6.806 fungi microscopy Images utilizing Pytorch.

Jupyter Notebook 99.95% Python 0.05%
computer-vision deep-learning efficientnet machine-learning model-explainability resnet-50 transfer-learning vgg16 vision-transformer

transfer-learning-vision's Introduction

Abstract

Medical image classification is crucial for improving diagnosis and treatment, especially when human analysis is time-consuming and less precise compared to Computer-Aided Diagnosis (CAD) systems. Our study focused on classifying microscopic fungi images, addressing a significant yet frequently overlooked health threat posed by fungal infections. We evaluated the effectiveness of transfer learning using four pre-trained models (VGG16, ResNet50, EfficientNetb0, and ViT16) using various metrics like balanced accuracy, MCC, F1-score, and confusion matrices. We also compared deep learning models with traditional machine learning algorithms such as Logistic Regression, Naive Bayes, and Random Forest. To ensure accurate model assessment, we implemented cross-validation for deep learning models to better assess their performance on unseen data. Notably, our findings reveal that EfficientNet outperformed all other models, achieving a remarkably balanced accuracy of 0.9 when augmented. Additionally, we employed GRAD-CAM for model explainability and visualized the Attention mechanism for ViT. These findings underscore the significant potential of deep learning models in medical image classification and their crucial role in addressing critical healthcare challenges.


File descriptions

Other

  • Project_Report.pdf is the 25 page report of our study

Notebooks

  • classic-ml.ipynb contains code for preprocessing and classifying the images utilizing classical ML algorithms
  • data_exploration.ipynb contains code for the EDA of the dataset
  • fungi-efficientnet-classification_final.ipynb contains code for the transfer learning of EfficientNetb0
  • visiontransformer.ipynb contains code for the transfer learning of Vision Transformer Base 16
  • fungivgg16classification.ipynb contains code for the transfer learning of VGG16
  • fungi-resnet-classification_final contains code for the transfer learning of ResNet50

Scripts

  • engine.py contains functions utilized for the training of Pytorch models
  • helper-functions.py contains functions mostly used to visualize the results of classification and training tasks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.