Canopy Compare

Flag likely vegetation color changes in camera archives, compare dated PhenoCam photographs side by side, and export traceable review logs.

1. Who would use it?

Remote-sensing analysts, ecology students, and field coordinators monitoring seasonal vegetation change constantly switch between model dashboards, PhenoCam image directories, region-of-interest (ROI) mask pages, and spreadsheets. Even when a phenology model flags a site for spring leaf-out or autumn color shift, verifying what actually happened in the canopy requires pulling up the right before-and-after photos, checking whether snow or glare skewed the index, and recording a source-backed note.

Canopy Compare brings those pieces into one offline browser workspace. It ranks candidate sites from historical forecasts, opens the paired near-noon archive photos with the measured canopy region outlined, keeps the later ground-truth observations hidden until you finish looking at the imagery, and exports a single CSV containing your visual note alongside forecast numbers, observed values, and direct links to the original PhenoCam frames.

2. What changed during the event?

I started from an existing CPU-based ecological phenology forecasting workflow (built around EFI NEON phenology targets) and its retrospective predictions. Because I was working entirely from a laptop with no field access, I wanted a practical workflow for auditing historical forecast flags directly against real camera records.

During the hackathon, I built the standalone browser interface and data-packaging pipeline around two completed 2025 archive windows (8–15 May for spring greenness and 9–16 October for autumn redness) across 14 active NEON sites:

  • Paired 208 near-noon PhenoCam photographs with site forecasts and held-out observations so the entire review loop runs locally from index.html.
  • Verified PhenoCam binary ROI masks frame by frame against published midday R, G, and B channel averages (197 of 208 frames matched a single dated mask within 1 count on the 0–255 scale; the remaining 11 stay unmasked rather than guessing).
  • Added blind visual review controls, persistent localStorage annotations, explicit error/recovery handling, and byte-reproducible CSV exports.
  • Built a 74-issue historical prioritization benchmark to test whether uncertainty-adjusted ranking actually selects larger observed color shifts than simpler heuristics.

3. Where does AI contribute?

A gradient-boosted tree model predicts a nonlinear correction on top of seasonal baselines and historical-analogue trajectories using green and red chromatic coordinates (gcc_90, rcc_90), recent trends, site metadata, and forecast horizon. Models were trained on data before 2023, residual error scales were calibrated on 2023, and all forecasts enforce a two-day observation latency.

To decide which cameras to inspect first, each site/date pair is scored by |forecast mean − baseline| − 0.84162 × forecast sd, which corresponds to a one-sided 80% lower bound on expected shift relative to the four-day pre-issue median baseline. Later observed values never enter the ranking.

  • Probabilistic forecast accuracy (CRPS, lower is better): Across 20,054 site/day/index targets in 2025, the model scored 0.00741, outperforming both a last-observed persistence baseline (0.01035) and a seasonal baseline (0.00947). It also led both baselines in 2024 (0.00778 vs. 0.01133 and 0.00960 across 20,834 values) and 2026 (0.00741 vs. 0.01066 and 0.00950 across 18,044 values). Across all 60,014 verified values, nominal central 80% prediction intervals covered 82.88% of green and 86.45% of red observations.
  • Prioritization trade-offs (74 biweekly issues, 222 top-3 picks per policy): Measuring how often top-three picks showed an observed shift of at least 0.010, the uncertainty-discounted planner reached 37.39% green hits (mean shift 0.01235), beating both a recent-trend baseline (32.88%, mean 0.01081) and raw predicted shift without the uncertainty penalty (35.14%, mean 0.01208). On autumn redness, discounting uncertainty reached 56.76% vs. 61.71% without the penalty and 59.91% for recent trend—filtering noisy spring spikes helped green-up selection, while higher variance in rapid autumn color change made the conservative penalty miss a few real drops.

Development & human-review disclosure: Coding assistants (OpenAI Codex) helped build the static UI, ROI mask-matching checks, Playwright UI regression suite, and video automation. I scoped the laptop-only archive workflow, enforced blind photo comparison before revealing ground-truth observations, and manually reviewed the gold-outlined deciduous broadleaf canopy in the 6 and 15 May 2025 STEI frames before inspecting the observed numbers—confirming visible leaf-out and keeping the greening flag (preserved in evidence/entrant-review.md). The automated UI checks and recorded walkthrough video replay scripted clicks and marks for reproducibility.

4. How can people use it, and what works?

Download or clone the repository and open index.html in any modern browser. Everything required to inspect the two historical windows—208 photographs, verified canopy overlays, forecast curves, and observations—is bundled locally (data/bundle.js and data/regions.js) with no account, API key, or backend server needed. Clicking external source links to PhenoCam's full-resolution TIFFs or site pages requires internet access.

In a typical spring check on the 8 May 2025 greenness replay, STEI (Steigerwaldt-Chequamegon, Wisconsin) ranks first: relative to a four-day baseline of 0.35067, the model predicted 0.39732 (+0.04665) on 15 May, and revealing the hidden record afterward shows the green index actually climbed to 0.44603 (+0.09536), with a +0.08875 jump (0.35728 to 0.44603) between the two photo dates.

Verification Check Observed Result
Spring green replay (STEI) Ranks #1 for 8 May 2025 greenness; opens 6 May and 15 May pair and reveals observed gcc_90 = 0.44603 only when requested.
ROI mask RGB verification Across 208 frames at 14 sites, 197 matched a unique dated mask within 1 RGB count (0–255 scale; median max-channel diff 0.0042 inside mask vs. 32.95 whole image); 11 frames stay cleanly unmasked.
Autumn wrong-direction case (TREE) For 9 Oct 2025 redness, TREE ranks #1 with a predicted drop (0.50248 → 0.41969, -0.08279), whereas observed rcc_90 actually ticked up to 0.51467 (+0.01219).
Persistence & deterministic export Saved visual marks survive page reloads, and repeated CSV exports produce identical bytes.
Full 14-site export Raising the export limit to 14 produces 14 distinct site/date rows, each paired with before/after PhenoCam image URLs.

5. Where can it go wrong?

  • Fixed historical scope: The browser bundle covers two completed 2025 archive weeks across 14 active sites rather than live daily ingestion; sites missing a matched photo pair or a recent seven-day baseline are excluded before ranking.
  • Input and storage edge cases: Selecting an out-of-archive date or entering a non-matching search query surfaces clear recovery buttons without erasing previously saved visual marks. If browser localStorage is disabled, marks remain in memory for the session and still export to CSV.
  • Visual vs. index mismatch: Each photograph is a single near-noon exposure, while gcc_90 and rcc_90 summarize a daily distribution across the ROI. Snow cover, sun angle, shadows, or slight camera shifts can move color indices without real biological change—which is why the tool treats a model flag strictly as a prompt to inspect the imagery rather than an automated ecological verdict. (PhenoCam target documentation · NEON PhenoCam tutorial)
Share this project:

Updates

Submission history