Empirical formula vs trained model — on the same borehole
Predicting Vs30 — the average shear-wave velocity in the top 30 m that drives every seismic site-class assignment (NEHRP, Eurocode 8, IS 1893). On the left, the closed-form code formula. On the right, a linear-regression model trained live in your browser on 318 real Kathmandu-valley boreholes. Pick any borehole and watch both predict.
Soil column
How it's computed
$$V_{s30} = \frac{30}{\sum_{i=1}^{N} \frac{h_i}{V_{s,i}}}$$ Travel-time-weighted harmonic mean of shear-wave velocities over the top 30 m. Requires a measured Vs at every depth (downhole, crosshole, MASW or seismic CPT).
How it's computed
Trained live on 254 boreholes (80 % split) and evaluated on 64 hold-out boreholes. Uses cheap geotechnical inputs only — no Vs measurement required:
Model performance across all 318 boreholes
x = NEHRP Vs30 (ground truth) · y = ML prediction · dashed line = perfect agreement · orange dot = current borehole.
Why this comparison matters
- The empirical formula is exact — given a complete Vs profile, NEHRP Vs30 is a definition, not an estimate. It's the ground truth.
- But measuring Vs at depth is expensive. Seismic CPT, downhole and crosshole surveys cost thousands of dollars per borehole.
- The ML model trades a small amount of accuracy for a huge cost saving: it predicts Vs30 from inputs you already have in any standard geotechnical log — thickness, density and soil type per layer.
- This is the canonical civil-engineering trade-off: physics-based exactness vs data-driven cheapness. ML doesn't replace the formula — it lets you screen sites you couldn't otherwise afford to.