File size: 1,635 Bytes
ba1eb11
f0c84e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2f44e4
090fa75
 
 
 
 
 
 
 
 
 
 
 
15af45a
090fa75
 
 
 
 
33e10c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2241c0e
 
 
33e10c2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
tags:
- image-classification
- Birds
- Kaggle
- MobileNetV3Large
metrics:
- accuracy

model-index:
- name: MobileNetV3Large-Bird-Classification-Kaggle
  results:
  - task:
      name: Image Classification
      type: image-classification
    metrics:
      - name: Accuracy
        type: accuracy
        value: 0.9336
---

# 500 Species Bird Classification
by Daniel Glownia

## Data
- Size: 224 x 224 x 3 ​
- 500 different bird species with at least 130 train images per species​
- 80% male birds (more colorful) and only 20% female (sex is not labeled)​
- One bird per image​
- Bird takes up 50%+ of pixels​
- Some images include noise like watermarks
  
| Dataset  | Image count​ |
| ------------- | ------------- |
| Train  | 85,085  |
| Test  | 2,500  |
| Validation  | 2,500  |

## CNN Implementation

- MobileNetV3 as base model(transfer learning)
- Trained on 100 epochs
- Optimizer: Adam
- Loss: Categorical Cross Entropy

```python
epochs = 100
batch_size = 256

inputs = pretrained_model.input
x = processing_layers(inputs)

x = Dense(256, activation='relu')(pretrained_model.output)
x = Dropout(0.2)(x)
x = Dense(128, activation='relu')(x)
x = Dropout(0.2)(x)
x = Dense(64, activation='relu')(x)
x = Dropout(0.2)(x)


outputs = Dense(500, activation='softmax')(x)

model = Model(inputs=inputs, outputs=outputs)
```

## Results
The following confusion matrix represents the lowest performing classes. Classes with perfect scores were removed.

![plot](conf.png)

| Dataset  | Accuracy |
| ------------- | ------------- |
| Train  | 84.87%  |
| Test  | 92.20%  |
| Validation  | 93.36%  |

![plot](loss.png)