Applied Research · Open Source NTU Forest Recovery · Applied Research 2024 – 2025

Few-Shot Open-Set Rainforest Canopy Detection (CLIP + ProtoNet)

Reducing in-distribution vs. out-of-distribution cosine overlap on 8-band Singapore rainforest UAV orthomosaics via Wasserstein-regularized 9-statistic CLIP ensembling.

TL;DR

Open-set ecological canopy monitoring fails when unfamiliar species overlap with known prototypes in frozen ViT space. Using real 8-band multispectral UAV orthomosaics from two Singapore nature parks (152 canopy polygons, 19 species), I built a CLIP ViT-B/32 + Prototypical Network ensemble regularized with a Wasserstein-inspired loss that cuts ID/OOD overlap by 20–25% over naive multi-view averaging and lifts OOD detection accuracy from 66% to 84% (ROC AUC 0.9271).

84% OOD (from 66%)
ROC AUC 0.9271
8-Band Singapore UAV
20–25% Lower Overlap
4-split ID/OOD similarity overlap comparison (Direct CLIP vs. Sampled-Mean vs. Wasserstein 9-Statistic Ensemble) alongside learned secondary feature weights complementing the +0.8348 Direct anchor.
CHAPTER 01 · 8-BAND MULTISPECTRAL UAV CURATION

Preserving Canopy Chlorophyll Signal for Frozen CLIP Prototypes

Working with real 8-band UAV orthomosaics from Chestnut (34 polygons) and Casuarina (118 polygons) Nature Parks in Singapore across 19 rainforest species, I extracted 224×224 canopy crops via Rasterio and mapped wideband Red, Green, and Red-Edge (bands 0, 1, 7) into pseudo-RGB inputs so frozen CLIP ViT-B/32 preserved chlorophyll contrast across 20-shot species prototypes. Decision cutoffs were calibrated via ROC / Youden’s J (AUC = 0.9271) rather than brittle hand-tuned thresholds.

CLIP + ProtoNet Pipeline
8-band UAV pseudo-RGB extraction feeding 20-shot CLIP ViT-B/32 prototypes.
Calibrated ROC Curve (AUC = 0.9271)
Youden’s J cutoff selection establishing calibrated ID/OOD separation.
CHAPTER 02 · OVERLAP REDUCTION ON NOISY SPLITS

Why Naive Multi-View Averaging Regresses—and How 9-Stat Weighting Fixes It

Cross-view sampled-mean averaging cuts overlap by 6–11% on clean benchmarks like ImageNet-1K, but on noisy field UAV splits it actually widened overlap (0.2382 → 0.2964 on Split 1; 0.1496 → 0.1856 on Split 2) whenever outlier canopy crops pulled the mean. Training a Wasserstein-regularized 9-statistic head automatically anchored on Direct CLIP similarity (+0.8348), reinforced central/upper quantiles (+0.0453 / +0.0441 / +0.0428), and penalized dispersion (std −0.0071, IQR −0.0039)—achieving the lowest overlap across splits (0.2355 / 0.1385) and lifting real OOD accuracy from 66% → 84%.

Split 1 Similarity Distributions
Learned ensemble (0.2355) beats both Direct CLIP (0.2382) and Sampled-Mean (0.2964).
Split 2 Similarity Distributions
Learned ensemble reaches lowest overlap (0.1385 vs. 0.1496 Direct / 0.1856 Sampled-Mean).

ID / OOD Similarity Overlap Across Evaluation Splits

Scoring MethodSplit 1 Overlap ↓Split 2 Overlap ↓Key Finding
Direct CLIP ViT-B/320.23820.149666% baseline OOD accuracy; sensitive to viewpoint
Multi-View Sampled-Mean0.29640.1856Degrades on noisy canopy splits despite ImageNet gain
Wasserstein 9-Stat Ensemble (Ours)0.2355 (Best)0.1385 (Best)20.5–25.4% lower overlap vs. Sampled-Mean · 84% OOD
Technical Stack
CLIP ViT-B/32Prototypical NetworksOOD DetectionWasserstein LossMultispectral UAV