Skip to content

Repository files navigation

GeoModel3D

3-D geological models from borehole logs and CPTs, in the browser.

Open the app Build License: Apache-2.0 XERJ Corpus Hub contributor Mentioned in Awesome Mining

GeoModel3D builds a layered ground model from borehole logs and cone penetration tests and puts it on a map in the site's own coordinate system. You can cut sections through it at any angle or along a tunnel or road alignment. It runs in the browser on a computer, tablet or phone. There is nothing to install, and your data are not uploaded anywhere.

Watch the 38-second introduction (docs/promo.mp4): a scanned borehole log read on the device, checked against its page, built into a model, then the whole Maasvlakte 2 site cut and coloured by effective stress. Every screen is the app itself; the data are public BRO records.

Play the GeoModel3D introduction video (38 s)

Maasvlakte 2, Rotterdam: the model from 100 boreholes and 26 CPTs, turned, cut at the section, the section moved through it, then coloured by the CPTs' soil behaviour type index

Open it: kilickursat.github.io/GeoModel3D. Where hosted pages or local servers are not allowed, download geomodel3d-offline.html: one file that opens from disk.

What it does

  • Builds the model from boreholes, CPTs or both: horizons between the boreholes and a closed volume for each unit. One borehole is enough to start.
  • Reads borehole logs from PDF reports and images on your device, logs drawn with a depth scale, set out as tables or described sample by sample, over all their sheets, scanned pages included. You check each value beside the page it was read from before it is used.
  • Registers core-box photographs to depth, assists piece and lithology logging, and calculates reviewed photo-derived RQD. Accepted intervals link back to their highlighted photographs in the model; drafts and review history travel with the workspace (workflow). Works locally and in the standalone HTML.
  • Compares registered core pieces and gaps with the current borehole log on a shared depth axis. Select an interval to highlight its exact photograph region, inspect differing unit labels, and export a source-linked interval CSV. Works locally and offline.
  • Has an opt-in lab (?labs=core-ai) that describes a registered row or core piece with local Hugging Face SmolVLM models. It is hidden by default: no model has passed a geologist's review, and in the pilot below SmolVLM 500M gave no useful answer on eight images (lab).
  • Cuts sections at any direction and position, or along an alignment from LandXML, CSV, GeoJSON or DXF, or drawn on the model. Along a line it gives a table by chainage with the cover and the units at the crown and invert.
  • Screens an alignment in a corridor dashboard: sampled cover, groundwater head, design-level units and distance to the logs used by the model, with explicit unknowns and a CSV.
  • Proposes additional investigation locations along an alignment from sampled coverage gaps, a location-count budget and physical spacing. Export the plan without changing measured boreholes.
  • Can prioritize investigation candidates by complete model disagreement at their exact coordinates, preserving spacing and recorded-collar exclusions across the selected interpretations.
  • Shows groundwater, σv, u, σ′v and σ′h on sections, and interpolates laboratory and in-situ results within each unit.
  • Classifies CPTs by Robertson's soil behaviour type (2009). Their layers can build the model alongside the boreholes.
  • Gives active, at-rest and passive earth pressures (Rankine) down a borehole of your own case.
  • Checks the model by leaving each borehole out and predicting it from the others, so you can see how far to trust it between boreholes.
  • Maps contact disagreement between selected saved interpretations and shows their min–max section ranges. Held-out location checks report observed range coverage and errors; ranges are not calibrated confidence intervals.
  • Separately calibrates training-only contact envelopes with split conformal prediction, recording independent training/calibration/audit groups and the finite-sample correction. Requested coverage assumes exchangeable locations and fixed interpretations; spatial geology can violate that assumption.
  • Plans contact-reaching investigations under a monetary budget using expected scenario discrimination per estimated cost. Prior weights and contact-observation resolution define this finite-case calculation; it does not model measurement noise or promise geological accuracy.
  • Reviews new boreholes against an earlier saved model: mapped forecast errors, signed model shifts, unit agreement, changed inputs and a revision-linked CSV.
  • Keeps source text, highlighted page previews and correction history with PDF-derived values. Inspect them from the input tables or a source-backed borehole in the model; changed values require a new acceptance.
  • Branches named scenarios with independent drafts and compares fixed revisions along the same section or alignment, with overlaid contacts, groundwater/stress differences and CSV output. Groundwater can follow observations, an assumed depth, or readings available as of a date.
  • Keeps complete editing workspaces in the browser, with restorable project revisions and workspace JSON for transferring drafts and history.
  • Exports a PDF report, sections as SVG or CSV, the project as JSON, and the model as GLB or USDZ for augmented reality.

Sakae, Yokohama: 75 KuniJiban borehole logs modelled over GSI terrain, with the 2-D section below

Core-image AI: an open pilot

We compared two pinned local models on eight reproducibly selected real image patches from the Alzubaidi lithology dataset, including two non-core controls. Model names were hidden during assistant review against a rubric frozen before inference.

Result on these eight images SmolVLM 500M Qwen3.5 0.8B
Met the minimum usefulness rule 0/8 6/8
Nonresponsive answers 6/8 0/8
Reached the 128-token limit 2/8 0/8

This is a promising description result, not geological accuracy or human-geologist validation. Qwen still made substantive visual errors on two images and 14 claims the crops could not verify; even answers meeting the usefulness rule can contain unverified interpretations. It remains a benchmark candidate, outside the app's model selector. CPU quality runs do not measure iPhone or browser speed.

Read all 16 answers, images, scores, source credits and reproduction steps. The study is exploratory: eight public patches, unverified borehole independence and unknown pretraining overlap. The app's default remains unchanged pending a larger expert-reviewed and real-device evaluation.

Next milestone: desktop hardware-GPU evaluation. The Qwen evaluation page uses forty fixed images, source-only review, explicit local model downloads and exportable results. Chrome on a documented desktop/laptop GPU is the preferred target; Edge is another candidate to validate per configuration. iPhone and other mobile AI testing are optional, while existing mobile modelling and manual core-photo workflows continue independently.

The desktop plan and instructions reference the unchanged inference protocol and visual rubric. New runs record their evaluation target and plan identity; technical summaries keep individual runs, modes and cold/warm timings separate. Earlier CPU/software-GPU results remain historical evidence. The expanded set still has no qualified-human quality score or desktop hardware-GPU performance result; the current managed test environment exposes no usable hardware adapter. A technical summary is not overall approval or geological accuracy.

Your data

Use Import… or drop the files on the page:

Data Formats
Boreholes CSV tables (templates), AGS4, Japanese electronic-delivery XML (KuniJiban), Dutch BRO and Flemish DOV XML, project JSON
Borehole logs in PDFs PDFs, with text or scanned, and images of logs, read in the browser and reviewed before use (how)
CPTs GEF, BRO and DOV CPT XML, AGS4 (SCPG, SCPT), CSV
Terrain ESRI ASCII grid (.asc), gridded x y z
Alignments LandXML and J-LandXML, CSV, GeoJSON, DXF

Or type your case into the Input data tab, or paste it from a spreadsheet. Data formats lists the columns and fields each format may have.

Sample sites

The app opens with four real sites, each in its country's coordinate system and height datum, and three synthetic ones.

Site Data Source and terms
Sakae, Yokohama, Japan 75 borehole logs from road surveys KuniJiban (MLIT, PWRI, PARI); free to reuse with the source shown
Antwerp, Belgium 170 boreholes with formal stratigraphy DOV, Flemish Government; model licence for free reuse
Maasvlakte 2, Rotterdam, Netherlands 100 boreholes, 26 CPTs, 3,188 laboratory results BRO; public domain (CC0)
Creswick, Victoria, Australia 150 groundwater bores over buried river gravels NGIS, Bureau of Meteorology; CC BY 3.0 AU

How each site was prepared, and the full credits, are in sites.

How the model is built

The logs give the elevation of each contact at each borehole. The horizons are triangulated between the boreholes, kept in stratigraphic order, and closed into unit volumes. A unit missing from a log pinches out at that borehole. Erosive units cut the units below them. With a terrain grid, the ground follows the terrain and the collars keep their surveyed levels. Methods has the details, and the guide covers every part of the app.

Run it yourself

npm ci
npm test        # unit tests
npm run build   # dist/ and dist/geomodel3d-offline.html
npm run test:ui # browser tests on the build (Playwright)

The build is static: dist/ can be served from any web host, and the offline file needs none.

Contributing

Bug reports, ideas, code and openly licensed data are welcome. See CONTRIBUTING.md, and please open an issue before starting a larger change. CHANGELOG.md lists what changed in each version.

You can support the project on Patreon. To sponsor its development, contact Kursat Kilic at kilic_kursat@hotmail.com.

Citing

GitHub's Cite this repository gives the reference from CITATION.cff:

@software{kilic_geomodel3d,
  author  = {Kilic, Kursat},
  title   = {GeoModel3D: 3D geological models from borehole logs and CPTs, in the browser},
  url     = {https://github.com/kilickursat/GeoModel3D},
  version = {0.31.1},
  year    = {2026},
  license = {Apache-2.0}
}

XERJ Corpus Hub

GeoModel3D's source code is in the XERJ Corpus Hub, a shared library that AI agents search on their own machine. Their answers name the repository, the commit, and the file and line they come from.

License

Apache-2.0: see LICENSE. The data of the sample sites keep their own terms, listed in sites. The real-core benchmark images and manifests retain separate CC BY-SA 4.0 notices and attribution for the eight-image pilot and forty-image device study. PDFs are read with PDF.js (Apache-2.0); the fonts and image decoders served with it keep their own licences, which are served beside them. Scanned pages are read with PP-OCRv6 small by PaddlePaddle (Apache-2.0) and ONNX Runtime Web (MIT).