Biodiversity & on-device ML · 2026
Critterboard
An offline insect-discovery game for iOS and Android, built around a regional species-recognition model and local maps. An independent project connecting mobile engineering with biodiversity data.
The problem
Identify insects away from a network.
A field companion needs to work where there is no signal. I built Critterboard around local species recognition, an offline map, and a personal collection of sightings. The challenge is making model predictions useful when photos are imperfect and the result may be uncertain.
Data provenance
Trace the training data to its source.
The vision pipeline uses 248,378 iNaturalist photos covering 1,004 European insects and spiders. Training images are restricted to CC0 and CC-BY licences, with per-photo credits and a published attribution record. Training, validation, and test sets are grouped by photographer, so one photographer’s images do not appear across different splits.
Evaluation
Measure the gap between clean photos and field shots.
The current model reaches 82.4% top-1 and 92.7% top-3 accuracy on 24,595 held-out photos. I also tested synthetic phone-like scenes with small insects on busy backgrounds. Field-oriented fine-tuning raised top-1 accuracy on 500 simulated small-subject scenes with tap-guided crops from 22.6% to 46.0%, while clean-photo accuracy fell by 0.4 percentage points. These synthetic scenes use the same generator as training, so they are a controlled comparison rather than proof of performance on real field photos.
Handling uncertainty
Give uncertain results a different path.
A captured photo goes straight to a result only when the leading candidate reaches at least 70% confidence and is 15 percentage points ahead of the next candidate. Less certain scans show candidates or a no-match state. Users can also search for a species manually. Small subjects and visually similar species remain difficult, and the model card records these limitations alongside the headline scores.
Engineering trade-offs
Fit the experience to the phone.
The species model runs through ExecuTorch and the map uses a local PMTiles archive. Keeping Europe-wide map detail coarse limits the map download to about 56 MB. When a downloaded chat model proved too slow and caused overheating on a 4 GB iPhone, I replaced it with Apple’s on-device Foundation Models through a custom Expo module. Chat is limited to supported iPhones and languages; recognition and the map work independently of it.
Status & interoperability
Keep observations portable and the limits visible.
Sightings export as Darwin Core CSV for use in biodiversity workflows. Photos and observations stay on the device by default, with separate opt-ins for social sharing and training contributions. The app’s code is MIT licensed; model, photo, and map licences are documented separately. Store submission and broader real-phone validation are still ahead.
Have a complex product to ship?