Skip to content

Guava Disease Classification using DenseNet-Reloaded and ADOPT optimizer. Achieves 99.73% accuracy in Anthracnose, Fruit Fly, and Healthy Guava detection.

Notifications You must be signed in to change notification settings

junaidaliop/guava-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guava Disease Classification

Group 6 Members

  • Muhammad Junaid Ali Asif Raja (M11217073)
  • Muhammad Aown Ali (M11217077)

Project Overview

This project focuses on classifying guava diseases into three categories:

  • Anthracnose
  • Fruit Fly
  • Healthy Guava

The dataset used for this project was downloaded from Kaggle: Guava Disease Dataset, and class folders were renamed accordingly for better organization.


Methodology

1. Model Architecture

The project leverages DenseNet Reloaded, a state-of-the-art architecture recently accepted in ECCV 2024. This architecture was implemented with the following enhancements:

  • RDNet_base code was adapted from the popular timm library.
  • Pretrained weights for rdnet_base were utilized for improved performance.

2. Optimization

The model was optimized using the ADOPT optimizer, a cutting-edge optimization algorithm accepted in NeurIPS 2024. This optimizer was adapted from the official repository: ADOPT GitHub.


Implementation Details

Dataset Processing

Dataset Overview

Model Initialization

The model was initialized using pretrained weights:

model = timm.create_model('rdnet_base', pretrained=True)

Key References


Results

Classification Report

               precision    recall  f1-score   support

  Anthracnose       1.00      1.00      1.00       156
    Fruit Fly       0.99      1.00      1.00       132
Healthy Guava       1.00      0.99      0.99        94

     accuracy                           1.00       382
    macro avg       1.00      1.00      1.00       382
 weighted avg       1.00      1.00      1.00       382

Test Metrics

  • Test Top-1 Accuracy: 99.7382%

Confusion Matrix

Confusion Matrix

The fine-tuned weights for this are available at this link.


Requirements

We also provide the requirements file in the forms of guava.yml and requirements.txt.

conda env create -f guava.yml

or

pip install -r requirements.txt

Acknowledgements


License

This project is for academic purposes. Please refer to the original repositories for RDNet and ADOPT for licensing details.

About

Guava Disease Classification using DenseNet-Reloaded and ADOPT optimizer. Achieves 99.73% accuracy in Anthracnose, Fruit Fly, and Healthy Guava detection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published