Skip to content
COBALT

COBALT

AI-powered satellite detection of illegal mining

Created on 30th August 2026

•

COBALT

COBALT

AI-powered satellite detection of illegal mining

The problem COBALT solves

Opencast mining leases have fixed boundaries, but once operations start, agencies have no continuous way to check if a site stays within them.The default method sending an inspector to the site is slow, infrequent, and easy for an operator to anticipate, so encroachment often isn't caught until well after the fact, once the land is already degraded.

What someone can actually use it for:

Routine desk-based monitoring — periodically re-check active leases without scheduling a site visit each time

Prioritizing where to send inspectors — instead of visiting every site on schedule, agencies can use flagged results to decide which leases actually warrant a physical follow-up, saving time and resources.

Quantifying a suspected violation — beyond a yes/no flag, it estimates how much area and material lie outside the boundary, giving a sense of scale.

Building a paper trail over time — each check is logged, so an agency can show a boundary was monitored at multiple points rather than relying on a single inspection snapshot as the only record.

Supporting, not replacing, an inspection — output is meant as a lead for a human reviewer to confirm on the ground, not as a final determination on its own

Challenges we ran into

Building a dataset that didn't exist off the shelf
There was no pre-existing dataset combining satellite imagery, terrain data, and mining boundaries in the format we needed. We used the Maus et al. (2022) global mining polygon dataset as our geospatial reference point, then built our own feature pipeline on top of it — extracting Sentinel-2 bands, NDVI, NDBI, and DEM-derived depth at those locations through Google Earth Engine, with negative samples drawn from matched control land cover. This let us turn a purely geospatial dataset into a proper ML training corpus tailored to mining detection specifically.

Tuning model confidence for a high-stakes use case
Early on, our RandomForest classifier was too liberal about flagging pixels as mining activity, because our negative samples didn't include enough visually-similar-but-innocent terrain (dry scrubland, construction, riverbeds). Rather than treat this as a fixed model output, we redesigned the decision threshold as a configurable precision control — recognizing that in an enforcement context, false positives carry real consequences, so we intentionally biased toward precision over recall. We exposed this as an adjustable parameter so it can be tuned per deployment. This also taught us an important lesson about validation methodology for spatial data (avoiding train/test leakage from spatial autocorrelation), which is now informing how we approach model evaluation going forward — and it's part of why we run the rule-based and ML detectors in parallel, so one method's edge cases don't become a single point of failure.

Running a 500-tree ensemble within Earth Engine's constraints
Earth Engine's native classifier hosting has payload limits that a model of our size would exceed. Instead of forcing the model onto Earth Engine's infrastructure, we redesigned the data flow: fetch the raw multi-band raster in a single computePixels call, then score it locally with scikit-learn. We also built in adaptive downsampling so large lease areas never hit response-size limits, with all downstream area and volume math automatically using whatever resolution was actually fetched — keeping every reported number internally consistent regardless of site size.

Estimating extraction volume with no "before" imagery
Since historical DEMs don't exist for most sites, direct before/after comparison wasn't an option. We engineered a focal-mean terrain reconstruction technique — smoothing the current DEM over a radius wider than the pit to approximate the pre-mining surface, then measuring the difference against actual elevation. Calibrating the right radius took iteration, but it gave us a way to estimate volume.

Delivering real-time 3D visualization in the browser
We wanted investigators to rotate and inspect excavation pits directly in-browser, with zero GIS software and no export wait. We built a direct in-memory rendering path straight from analysis output into a Plotly 3D surface — skipping file exports entirely. For the rule-based detector's Earth Engine-side data, we sample and re-grid it with scipy.interpolate.griddata so both detection paths render through the same pipeline and look identical to the end user.

Making results queryable, not just downloadable
Because MineGuard is built for repeat site monitoring, flat outputs alone weren't enough — we needed history, not just files. We integrated PostGIS so every inspection is stored with full metrics and its real lease boundary as spatial geometry, laying the groundwork for queries like "every site in this district where illegal area exceeded X." Along the way we solved a subtler integration problem — FastAPI's serializer couldn't handle PostGIS's native geometry type — by explicitly flattening each row at the API boundary, which kept our endpoints clean and reliable.

Tracks Applied (1)

Best Use of Gemini API

chat bot integration
Major League Hacking

Major League Hacking

Discussion

Builders also viewed

See more projects on Devfolio