Session 12 · Mon Oct 26 · Book sections 3.1–3.2
🧭
The Pacific Northwest Seismic Network has labeled every located event as an earthquake or an explosion. Nobody has labeled a single Argo float profile.
What does your data offer a model: labels, structure, or feedback?
🗂️ Catalog & compiled product 🪨 Solid Earth 📈 Seismology
Quarry blasts contaminate seismicity catalogs; because they happen during working hours, the ratio of daytime to nighttime events maps where they are and helps remove them.
Wiemer, S., & Baer, M. (2000). Mapping and removing quarry blast events from seismicity catalogs. Bulletin of the Seismological Society of America, 90, 525–530.
Rebuilt with the USGS ComCat catalog for Washington and Oregon, 2015–2024: 10,263 earthquakes (M ≥ 1) and 5,805 events labeled explosion by the network’s analysts.

94% of labeled explosions occur between 08:00 and 17:00 local time, against 38% of earthquakes: the label carries a human schedule.
Review
Where solid-Earth problems have labels, where they have only structure, and which learning frameworks fit each.
Bergen, K. J., Johnson, P. A., de Hoop, M. V., & Beroza, G. C. (2019). Machine learning for data-driven discovery in solid Earth geoscience. Science, 363, eaau0323.
Routine picks
Arrival times picked by network analysts over years became the labels that trained a deep phase picker.
Zhu, W., & Beroza, G. C. (2019). PhaseNet: a deep-neural-network-based seismic arrival-time picking method. Geophysical Journal International, 216, 261–273.
Biased inventory
Landslide maps that miss whole areas make unmapped slopes look stable; validation scores can stay high while the susceptibility map is geomorphically implausible.
Steger, S., Brenning, A., Bell, R., Petschko, H., & Glade, T. (2016). Exploring discrepancies between quantitative validation results and the geomorphic plausibility of statistical landslide susceptibility maps. Geomorphology, 262, 8–23.
Active learning
When labels cost analyst hours, the model chooses which samples to send to the expert.
Settles, B. (2009). Active learning literature survey. Computer Sciences Technical Report 1648, University of Wisconsin–Madison.
Labels come from analysts, field maps, or routine processing; how and where they were made sets what a model can learn from them.
| Field problem | What the data offer | Kind of learning |
|---|---|---|
| Earthquakes and explosions in the regional catalog | a label for every sample | supervised |
| Millions of Argo float profiles | only the structure of the data | unsupervised |
| A few mapped landslides, thousands of unvisited hillslopes | a few labels and many unlabeled samples | semi-supervised |
| Decades of continuous seismic records | data that can predict a hidden part of itself | self-supervised |
| A glider choosing where to dive next | consequences, observed later | reinforcement |
| 100,000 events a year, analyst time for 2,000 | a model that can ask for labels | active |
The kind of learning follows from what your data contain: labels for every sample, a few labels, structure only, or feedback.
Classification: a category
Is this catalog event an earthquake or an explosion?
One sample: one event · features: hour, depth, magnitude, location · target: the analyst’s label
Regression: a quantity
What is this rock’s density, given its chemistry?
One sample: one rock · features: 7 oxides (wt%) · target: bulk density (g/cm³)
The workflow is the same for both; the target and therefore the metric differ: counts of correct labels for classification, distance to the true value for regression.
| Partition | Events (earthquakes / explosions) | Classifier | Balanced accuracy |
|---|---|---|---|
| Validation, 2015–2021 | 1,427 / 669 | always “earthquake” (majority class) | 0.50 (accuracy 0.68) |
| Validation, 2015–2021 | 1,427 / 669 | k-nearest neighbors, k = 3 | 0.972 |
| Test, 2022–2024 | 3,132 / 1,783 | same model, used once | 0.958 |
The classifier beats the majority-class baseline by a wide margin, and its score holds on three later years it never saw: 0.958 balanced accuracy.
| Test 2022–2024, features used | Balanced accuracy | Blasts outside 08:00–17:00 labeled correctly (104) | Earthquakes 08:00–17:00 labeled correctly (1,221) |
|---|---|---|---|
| hour, depth, magnitude, location | 0.958 | 0.865 | 0.894 |
| without hour | 0.961 | 0.933 | 0.939 |
| without hour and depth | 0.838 | 0.760 | 0.888 |
98.5% of explosions carry a depth uncertainty of 31.61 km, a placeholder: their depth was fixed near the surface after the event was labeled a blast (1.8% of earthquakes). 98.4% of explosions are shallower than 1 km, against 9.1% of earthquakes.
Most of the separation comes from depth, a value partly set by the analyst after labeling; without hour and depth, balanced accuracy drops from 0.96 to 0.84.
| Model | Mean absolute error (g/cm³), validation, SiO₂ < 63 wt% | Test: silica-rich rocks, SiO₂ ≥ 63 wt% | Test: random 20% |
|---|---|---|---|
| mean of training densities | 0.056 | 0.267 | 0.130 |
| linear regression (chosen on validation) | 0.024 | 0.029 | 0.024 |
| degree-2 polynomial | 0.025 | 0.031 | 0.024 |
| random forest | 0.025 | 0.106 | 0.024 |
On validation the three models tie; on silica-rich rocks outside the training range the random-forest error grows fourfold while the linear error grows by a fifth.
pixi run jupyter lab → 3.2_classification_regression.ipynbWednesday: dimension of the data and principal components (2.12), then clustering (3.3) · Chapter 2 quiz open until Wednesday
ESS 469/569 · Machine Learning in the Geosciences · Autumn 2026