How ktwu01/alphaearthhack works
What this project is (type + purpose)
This repo is a geospatial analytics + visualization hackathon project. Architecturally, it’s not a traditional “backend service + database + frontend app” repo; it’s closer to a research/analysis workflow with:
• Interactive analysis notebooks (Jupyter) that run Python-based remote sensing workflows.
• A static interactive dashboard (hosted on GitHub Pages) that visualizes outputs using Leaflet.js + Plotly.js.
• Heavy reliance on external geospatial compute/data platforms: Google Earth Engine (GEE), plus datasets/approaches named AlphaEarth and LandTrendr.
So the “system” is best diagrammed as a pipeline + visualization system: user → notebooks (compute + export) → artifacts (rasters/metrics/screenshots) → web dashboard for exploration.
README signals (stack + interactions)
The README explicitly lists:
• Python/libs: NumPy, tqdm, ipyleaflet, “Google Earth Engine map”.
• Web libs: Leaflet.js, Plotly.js.
• Platforms/models: Google Earth Engine, AlphaEarth (embeddings / mapping), LandTrendr (change detection).
And it links to a GitHub Pages “interactive dashboard”.
This implies two primary “execution environments”:
1) Local Jupyter runtime (Python 3.12.11) used by researchers to run analyses and generate outputs.
Main components
Actors
• “Researcher / Analyst” (runs notebooks)
• “Dashboard User” (views web dashboard)
Compute & Apps
• “Jupyter Notebooks (Python 3.12)”
Files to cite in a label or footnote: AlphaEarth_Story.ipynb, AlphaEarth_Interactive_Mapping.ipynb, LandTrendr_AlphaEarth.ipynb, etc.
• “Static Web Dashboard (GitHub Pages)”
Tech: HTML/CSS/JS + Leaflet.js + Plotly.js
External Services / Dependencies
• “Google Earth Engine (GEE)” (data catalog + compute)
• “LandTrendr (on GEE)” (algorithm executed within GEE)
• “Exported outputs” (rasters/tiles/geojson/csv/images)
In this repo, you visibly have images/ and backup/*.csv. Even if other exports aren’t committed, the pipeline likely generates them.
• Researcher → Jupyter Notebooks (runs analysis)
• Notebooks → Google Earth Engine (API calls for data + compute)
• GEE → Notebooks (returns imagery, embeddings, change metrics)
• Notebooks → Outputs/Artifacts (exports images/CSVs/geo layers)
• Dashboard User → Static Web Dashboard (browser)
• Web Dashboard → Outputs/Artifacts (loads precomputed layers/data)
Stage A — Data Access & Preprocessing (GEE + Notebook)
• Inputs:
• Satellite imagery/time series (via GEE catalog)
• Region of interest (Austin example is present; also global views)
• Operations:
• Masking, compositing, time slicing, sampling
• Embedding retrieval/derivation (AlphaEarth)
• Notebook references to attach: the mapping and tutorial notebooks.
Stage B — Change Detection Computation
Run two parallel branches (this is important, because the repo emphasizes comparison):
AlphaEarth-derived change metrics
• Example metrics shown in images: magnitude, duration, “year of change (yoc)”, cosine similarity
LandTrendr change metrics
• Magnitude, duration, year of change
Stage C — Comparison / Fusion / Evaluation
• “AlphaEarth vs LandTrendr comparison”
(explicitly supported by AlphaEarth_LandTrendr_ChangeComparison.ipynb)
• Optional outputs:
• correlation/stat summaries (matches backup/lt_training_*.csv)
• qualitative comparison maps (screenshots in images/)
Stage D — Export & Packaging
• Export geospatial layers (raster/tiles) and derived tables
• Generate assets consumed by:
• Notebook interactive widgets (ipyleaflet)
• Web dashboard (Leaflet + Plotly)
• Persist:
• images/ (committed)
• backup/*.csv (committed)
Notebook visualization
• ipyleaflet maps
• interactive exploration inside Jupyter
Web dashboard visualization
• Leaflet map layers
• Plotly charts (dissimilarity plots, time-series, etc.)
• “Imagery/time series” → preprocessing → (AlphaEarth metrics, LandTrendr metrics) → comparison → exports → dashboard/notebook
• That LandTrendr runs on GEE (compute happens “in GEE”), while notebooks orchestrate.
• Jupyter: “Python 3.12 + NumPy + tqdm + ipyleaflet”
• External compute: “Google Earth Engine (data + compute)”
• Algorithms: “LandTrendr (GEE implementation)”, “AlphaEarth embeddings/field model”
• Web: “Leaflet.js + Plotly.js (static dashboard on GitHub Pages)”
Does the GitHub Pages dashboard load data from
• committed files in the repo,
• GEE tile endpoints,
• or another hosted bucket?
2) In notebooks: are exports written locally only, to Drive/GEE Assets, or to web-consumable tiles?
3) Is there any hidden backend not shown in file tree (e.g., separate repo or branch)? If yes, add it explicitly.