detailed md
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
|
2 |
---
|
3 |
tags:
|
4 |
- autotrain
|
5 |
- image-classification
|
|
|
6 |
base_model: microsoft/resnet-152
|
7 |
widget:
|
8 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
@@ -11,9 +11,15 @@ widget:
|
|
11 |
example_title: Teapot
|
12 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
example_title: Palace
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
---
|
15 |
|
16 |
-
# Model Trained Using AutoTrain
|
17 |
|
18 |
- Problem type: Image Classification
|
19 |
|
@@ -38,4 +44,68 @@ recall_micro: 0.858508604206501
|
|
38 |
|
39 |
recall_weighted: 0.858508604206501
|
40 |
|
41 |
-
accuracy: 0.858508604206501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
tags:
|
3 |
- autotrain
|
4 |
- image-classification
|
5 |
+
- eligapris
|
6 |
base_model: microsoft/resnet-152
|
7 |
widget:
|
8 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
|
|
11 |
example_title: Teapot
|
12 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
example_title: Palace
|
14 |
+
license: apache-2.0
|
15 |
+
language:
|
16 |
+
- en
|
17 |
+
metrics:
|
18 |
+
- accuracy
|
19 |
+
pipeline_tag: image-classification
|
20 |
---
|
21 |
|
22 |
+
<!-- # Model Trained Using AutoTrain
|
23 |
|
24 |
- Problem type: Image Classification
|
25 |
|
|
|
44 |
|
45 |
recall_weighted: 0.858508604206501
|
46 |
|
47 |
+
accuracy: 0.858508604206501 -->
|
48 |
+
|
49 |
+
# Corn Leaf Disease Classification Model Analysis
|
50 |
+
|
51 |
+
## Dataset Breakdown
|
52 |
+
|
53 |
+
The dataset consists of four classes with the following distribution:
|
54 |
+
|
55 |
+
| Class | Number of Images |
|
56 |
+
|------------------------|-------------------|
|
57 |
+
| Healthy_Leaf | 3021 |
|
58 |
+
| Gray_Leaf_Spot | 2478 |
|
59 |
+
| Common_Rust | 2949 |
|
60 |
+
| Northern_Leaf_Blight | 3303 |
|
61 |
+
|
62 |
+
**Note:** There is a slight class imbalance, with Gray_Leaf_Spot having notably fewer images compared to the other classes.
|
63 |
+
|
64 |
+
## Model Performance Metrics
|
65 |
+
|
66 |
+
The model was trained using AutoTrain for image classification. Here's a breakdown of the validation metrics:
|
67 |
+
|
68 |
+
| Metric | Value |
|
69 |
+
|-----------------------|-----------|
|
70 |
+
| Loss | 0.3697 |
|
71 |
+
| Accuracy | 0.8585 |
|
72 |
+
| F1 (Macro) | 0.6843 |
|
73 |
+
| F1 (Micro) | 0.8585 |
|
74 |
+
| F1 (Weighted) | 0.8303 |
|
75 |
+
| Precision (Macro) | 0.8204 |
|
76 |
+
| Precision (Micro) | 0.8585 |
|
77 |
+
| Precision (Weighted) | 0.8821 |
|
78 |
+
| Recall (Macro) | 0.7170 |
|
79 |
+
| Recall (Micro) | 0.8585 |
|
80 |
+
| Recall (Weighted) | 0.8585 |
|
81 |
+
|
82 |
+
### Metric Explanations
|
83 |
+
|
84 |
+
1. **Loss (0.3697)**: This relatively low value indicates that the model is learning well.
|
85 |
+
|
86 |
+
2. **Accuracy (0.8585)**: The model correctly classifies 85.85% of all instances across all classes.
|
87 |
+
|
88 |
+
3. **F1 Score**:
|
89 |
+
- Macro (0.6843): The unweighted mean of F1 scores for each class.
|
90 |
+
- Micro (0.8585): Calculated globally by counting the total true positives, false negatives, and false positives.
|
91 |
+
- Weighted (0.8303): The weighted average of F1 scores for each class, accounting for class imbalance.
|
92 |
+
|
93 |
+
4. **Precision**:
|
94 |
+
- Macro (0.8204): The unweighted mean of precision scores for each class.
|
95 |
+
- Micro (0.8585): The global precision across all classes.
|
96 |
+
- Weighted (0.8821): The weighted average of precision scores for each class.
|
97 |
+
|
98 |
+
5. **Recall**:
|
99 |
+
- Macro (0.7170): The unweighted mean of recall scores for each class.
|
100 |
+
- Micro (0.8585): The global recall across all classes.
|
101 |
+
- Weighted (0.8585): The weighted average of recall scores for each class.
|
102 |
+
|
103 |
+
### Analysis
|
104 |
+
|
105 |
+
1. **Class Imbalance**: The difference between macro and micro scores suggests class imbalance, which aligns with our dataset breakdown. The Gray_Leaf_Spot class, having fewer images, likely contributes to this imbalance.
|
106 |
+
|
107 |
+
2. **Precision vs Recall**: Precision scores are generally higher than recall scores, especially for macro metrics. This suggests the model is more cautious in its predictions, preferring to be correct when it does predict a class.
|
108 |
+
|
109 |
+
3. **Performance on Majority vs Minority Classes**: The higher micro and weighted scores compared to macro scores indicate that the model performs better on more frequent classes. This is likely due to the class imbalance, with the model potentially struggling more with the Gray_Leaf_Spot class.
|
110 |
+
|
111 |
+
4. **Overall Performance**: With an accuracy of 85.85%, the model shows good overall performance. However, there's room for improvement, especially in handling the class imbalance.
|