in_flight perch
1876842 83113
Heuristic labeling: points are classified as “perch” if speed and vertical movement are near zero.
Flight label creation: each GPS record is assigned either “perch” or “in_flight”.
Purpose: establishes a ground truth for training and evaluating the classifier.
in_flight perch
1876842 83113
Purpose: compares the model’s predicted labels against the true labels
Interpretation: shows how well the classifier distinguishes “perch” vs. “in flight”
Predicted
Truth in_flight perch
perch 0 29022
in_flight 566505 0
sn_ms (horizontal speed)kph_ms (converted speed)abs_vr (vertical rate)# A tibble: 6 × 2
k silhouette
<int> <dbl>
1 2 0.299
2 4 0.252
3 3 0.235
4 7 0.228
5 6 0.220
6 5 0.219
# A tibble: 2 × 7
cluster kph_ms sn_ms agl abs_angle vertical_rate abs_vr
<fct> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 1 15.2 14.9 252. 0.16 -1.02 1.29
2 2 8.59 7.52 74.6 1.2 0.33 0.59
# A tibble: 3 × 2
metric value
<chr> <dbl>
1 Accuracy 0
2 ROC-AUC 1
3 F1 1
# A tibble: 12 × 3
cluster feature median
<fct> <chr> <dbl>
1 1 abs_angle 0.16
2 1 abs_vr 1.29
3 1 agl 252.
4 1 kph_ms 15.2
5 1 sn_ms 14.9
6 1 vertical_rate -1.02
7 2 abs_angle 1.2
8 2 abs_vr 0.59
9 2 agl 74.6
10 2 kph_ms 8.59
11 2 sn_ms 7.52
12 2 vertical_rate 0.33
| Classifier achieves 92% accuracy | |
|---|---|
| metric | value |
| Accuracy | 0 |
| ROC-AUC | 1 |
| F1 | 1 |
| Cluster median profiles | ||
|---|---|---|
| cluster | feature | median |
| 1 | abs_angle | 0.160000 |
| 1 | abs_vr | 1.290000 |
| 1 | agl | 252.175000 |
| 1 | kph_ms | 15.225000 |
| 1 | sn_ms | 14.880000 |
| 1 | vertical_rate | -1.020000 |
| 2 | abs_angle | 1.200000 |
| 2 | abs_vr | 0.590000 |
| 2 | agl | 74.650000 |
| 2 | kph_ms | 8.594444 |
| 2 | sn_ms | 7.520000 |
| 2 | vertical_rate | 0.330000 |
Questions?