Below is a compact “recipe” for building (or buying) an application that flags construction activity from satellite imagery. Feel free to cherry-pick the parts that match your use-case, budget, and tech stack.
1. What “construction” means in pixels
Construction can be detected in two slightly different ways:
- Static objects – detecting finished buildings, cranes, material piles, etc.
- Change detection – finding new activity by comparing images from different dates (e.g., “this 10 × 10 m tile was empty last month, now it has a slab & rebar”).
You can build one model that does both, or a two-stage pipeline (change detection first → object detection/segmentation second).
2. Data sources
| Source | Resolution | Cadence | Price | Notes |
|---|
| Sentinel-2 | 10 m | 5 days | Free | Good for change over large sites, coarse for individual buildings. |
| Landsat-8/9 | 15 m | 16 days | Free | Wider archive, coarse. |
| PlanetScope | 3 m | Daily | $$$ | Great cadence for progress tracking. |
| Maxar WorldView-3/4 | 0.3–0.5 m | On-demand | $$$$ | Detect cranes, trucks, etc. |
| Hexagon, Airbus, BlackSky, etc. | 0.5–1 m | Varies | $$-$$$ | Mix & match where budgets allow. |
Tip: Start prototyping with free Sentinel-2/Landsat time-series; later swap in commercial sub-meter imagery if you need object-level detail.
3. The ML approach
3.1 Pre-processing
- Download → orthorectify (usually already done by providers).
- Cloud masking (Sentinel-2
SCL band, FMask, or deep-learning cloud detectors).
- Resample & tile into e.g. 256 × 256 px patches.
- Normalise reflectance or do histogram matching if mixing sensors.
3.2 Model choices
| Task | Model family | Typical backbone |
|---|
| Change detection | Siamese U-Net, CVPR 2021 “ChangeStar”, BITNet | ResNet-34/50 |
| Object detection | YOLOv8, RetinaNet, Faster-RCNN | CSPDarkNet, ResNet-50 |
| Semantic segmentation | U-Net, DeepLab v3+, HRNet | EfficientNet-B4 |
• Small sites/limited data? Use transfer learning with an ImageNet-pretrained backbone.
• Want to avoid hand-labeling? Train a change-mask network first; manual annotation is then limited to “positive” tiles.
3.3 Training loop (PyTorch Lightning pseudo-code)
class ConstructionChangeModel(pl.LightningModule):
def __init__(self):
super().__init__()
self.backbone = timm.create_model('resnet34', pretrained=True)
self.decoder = UNetDecoder(in_ch=512, classes=1)
def forward(self, t1, t2):
f1 = self.backbone(t1)
f2 = self.backbone(t2)
diff = [a - b for a, b in zip(f1, f2)]
return self.decoder(diff)
def training_step(self, batch, _):
t1, t2, mask = batch
out = self(t1, t2)
loss = dice_loss(out, mask) + bce_loss(out, mask)
self.log("train_loss", loss)
return loss
def configure_optimizers(self):
return torch.optim.AdamW(self.parameters(), lr=1e-4)
3.4 Post-processing
• Morphological opening to remove speckle noise.
• Aggregate masks per parcel/ROI (GIS join).
• Keep tiles where predicted probability > 0.8 and area > N pixels (tunes false positives).
4. Deployment architecture
+-------------+ +-------------+ +------------+
| Data Lake | ---> | Preprocess | ---> | Tile Cache |
| (S3/GCS) | | (Lambda) | | (Parquet) |
+-------------+ +-------------+ +------------+
|
v
+--------------+ REST/GRPC +------------------+
| Front-end | <-----------> | Inference API |
| (React + | | (FastAPI + GPU) |
| Mapbox GL) | +------------------+
|
v
+-----------+
| PostGIS |
| (results) |
+-----------+
- Worker reads tiles -> batches on GPU.
- Saves GeoJSON/GeoTIFF masks to PostGIS.
- Front-end requests bounding box; API returns shapes; Mapbox overlays translucent red polygons 🟥.
5. Tooling “shopping list”
• GIS/File handling: GDAL, Rasterio, Geopandas
• ML: PyTorch + Lightning (or TensorFlow/Keras)
• Workflow: Prefect/Airflow for scheduled ingestion, or AWS Step Functions
• Visualization: Kepler.gl, Deck.gl, Cesium, or even QGIS for offline QA
• Labeling: Labelbox, CVAT, Roboflow (supports polygons on ortho imagery)
• Continuous evaluation: Weights & Biases or MLflow
6. Accuracy, pitfalls, and gotchas
- Shadows & seasonal vegetation can mimic “new concrete.”
- High-rise construction: early phases look like bare ground; later phases are easy.
- Cloud cover reduces available samples → augments with multi-spectral indices (NDVI, NDSI).
- Resolution mismatch: don’t train with 0.3 m imagery and expect 10 m Sentinel-2 performance.
- Legal/ethical: some regions restrict high-res imagery or require export permits.
7. Existing APIs (if you’d rather buy than build)
• SkyWatch EarthCache – unified API for Planet, Airbus, Maxar imagery.
• Descartes Labs “Site Intelligence” – change detection for infrastructure.
• Rendered.ai or Picterra – no-code model training & hosting.
• Google Earth Engine – free compute, but TOS prohibits “production” apps without permission.
8. Typical timeline & budget (DIY)
| Phase | Duration | Cost drivers |
|---|
| Data collection + labeling | 2–4 weeks | Labeler salaries, imagery licenses |
| Model POC | 1–2 weeks | GPU hours |
| Field validation | 2 weeks | Travel / manual survey |
| Productionization | 4–6 weeks | DevOps, API hosting |
Shoestring MVP with open imagery & a single GPU → ≈ 5k.Enterprisescale(daily30cmfeeds,100k / yr imagery licensing alone.
9. Next steps for you
- Nail down the geography and resolution you need.
- Decide: change detection only, object detection only, or both.
- Grab 50–100 scenes (before/after) → label 1-2 k tiles.
- Train + iterate, measure F1 vs. baseline (random → 0.5).
- Spin up a tiny web demo; share with stakeholders for feedback.
Happy building! If you hit specific road-blocks (data formatting, model not converging, etc.), ping me with details and I’ll dive deeper. 🛰️🏗️