- Machine Learning
- Computer Vision
- AWS
Aerial Object Classification on AWS SageMaker
A CPU-only CNN comparison on 15,351 aerial crops (drone, bird, helicopter, aeroplane, bomb), trained and deployed on AWS SageMaker for my JCU capstone. Selected model: 0.776 threat recall.
- Stack
- Python · TensorFlow · AWS SageMaker · S3 · scikit-learn

Overview
A five-class classifier for aerial objects (aeroplane, bird, bomb, drone, helicopter), built as my JCU Master of Data Science capstone. The question: how far can a compact CNN trained from scratch on CPU-only AWS free-tier compute get, compared with a frozen ImageNet benchmark?
Problem
Airports and perimeters need to tell a drone from a bird or a helicopter. The two mistakes are not equal: a missed drone means no response, while a bird flagged as a drone costs an operator some time. So I ranked recall on the threat classes (drone, bomb) first, macro F1 second, and used accuracy only for comparison with other work.
Data
UAV_SMID (Mendeley Data, CC BY 4.0) ships as an object-detection dataset with Pascal VOC annotations. I converted it into a classification set: 15,351 crops at 96 × 96 from 16,221 annotated boxes, after dropping 870 boxes under 24 px. The authors' train/validation/test split was kept to avoid near-duplicate frames leaking across splits. Classes stayed balanced (2,847–3,337 crops each).
Approach
- Custom CNN: four VGG-style blocks (paired 3×3 convolutions, batch norm, max-pool), global average pooling and a dropout head. 1,174,501 trainable parameters.
- Benchmark: MobileNetV2 with a frozen ImageNet base and a 6,405-parameter head.
- Controls: same data, split, seed (42), augmentation and metrics for both. Optimiser (Adam vs SGD) and epoch budget (20 vs 40) were varied one at a time.
- Platform: SageMaker training on
ml.m5.xlargewith the TensorFlow 2.19 CPU container. While the training quota was zero, I ran the same container in SageMaker local mode and then re-ran both headline configurations as managed jobs.
Results
| Model | Test accuracy | Macro F1 | Threat recall |
|---|---|---|---|
| Custom CNN, Adam 1e-3 | 0.651 | 0.652 | 0.776 |
| MobileNetV2, SGD 1e-2 | 0.634 | 0.639 | 0.725 |
| MobileNetV2, Adam 1e-3 | 0.614 | 0.611 | 0.683 |
The custom CNN was selected. Drone recall was 0.800. The largest single error was not drone-vs-bird: 160 of 333 helicopters were labelled as birds.




What I learned
- Doubling the epoch cap from 20 to 40 changed nothing, because early stopping restored the same weights. The limit is model capacity at 96 × 96, not training time.
- Managed and local-mode runs gave identical test metrics to four decimals, so the local workaround did not affect the findings.
- On a credit-limited account, the cost came from idle resources, not modelling. Managed training used 2.28 instance-hours in total; the notebook instance ran roughly 42 hours and the endpoint about 17.
Limitations
Single frames carry no motion cues such as wingbeat. Dropping sub-24 px boxes removes the most distant targets, and cropping from ground-truth boxes assumes localisation is solved, so 0.651 accuracy is optimistic for real deployment. The MobileNetV2 base was never fine-tuned, so the conclusion is only that frozen ImageNet features underperform here.
Next steps
Re-run at 160 × 160 or 224 × 224, fine-tune the last MobileNetV2 layers, target the helicopter class with class weighting, and add automatic notebook shutdown and endpoint deletion to the deployment script.