

## Sugarcane Leaf Disease Image Classification Model

This model is a fine-tuned version of the microsoft/swin-tiny-patch4-window7-224 model. It is fine-tuned on the [Sugarcane Leaf Disease Dataset](https://www.kaggle.com/datasets/nirmalsankalana/sugarcane-leaf-disease-dataset) for 20 epochs using a 85-10-5 split for train, validation, and testing, respectively.

It identifies 5 classes, Healthy leaves, leaves infected with Mosaic disease, Red Rot, Rust disease, and yellow leaf disease.

Try it using this  [HuggingFace Space](https://huggingface.co/spaces/rmezapi/sugarcane-diagnosis-swin-tiny)!!!

The model achieves ~97% accuracy on testing. Screenshots of data distribution and model performance metrics below. 


![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d291d26130ef7be00c9753/shEAzHI69pZU2bfamBhMR.png)

![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d291d26130ef7be00c9753/6_lRjSlSXlTeQKQ8URnFo.png)

![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d291d26130ef7be00c9753/62NpQGwlJ4MO1wf0PKu6S.png)

![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d291d26130ef7be00c9753/zo1mo8UwvEe5U5_I2m3Kf.png)

![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d291d26130ef7be00c9753/8D-6OfXNqBTyR-RI54utO.png)
label_0 label_1 label_2 label_3 label_4