guanwencan commited on
Commit
51c3b53
·
verified ·
1 Parent(s): fead41c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +179 -1
README.md CHANGED
@@ -1,3 +1,181 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Unified Seismic Soil Liquefaction Case-History Dataset
6
+ tags:
7
+ - geotechnical-engineering
8
+ - earthquake-engineering
9
+ - soil-liquefaction
10
+ - tabular
11
+ - uncertainty-quantification
12
+ - civil-engineering
13
+ size_categories:
14
+ - 1K<n<10K
15
+ task_categories:
16
+ - tabular-classification
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: full
21
+ path: data/liquefaction_unified.csv
22
  ---
23
+
24
+ # Unified Seismic Soil Liquefaction Case-History Dataset
25
+
26
+ I put this together because the liquefaction case histories I needed for my own work
27
+ were scattered across about a dozen spreadsheets, every one of them with different
28
+ units, column names and label conventions. Merging them by hand every time got old,
29
+ so I cleaned everything once into a single CSV and figured other people might as well
30
+ use it too.
31
+
32
+ It's **1,830 field case histories** from **9 public sources**, all re-expressed under
33
+ one schema. Each row is a soil layer that either liquefied or didn't during a real
34
+ earthquake, with the seismic loading, the in-situ test index, and the soil properties
35
+ you need to model triggering. It covers **four test types** (SPT, CPT, Vs, DPT) and
36
+ **67 earthquakes**, Mw 5.9 to 9.2. 318 of the rows keep the mean+std their original
37
+ source reported, which is handy if you care about uncertainty.
38
+
39
+ ## What's in it
40
+
41
+ | | |
42
+ |---|---|
43
+ | Total cases | 1,830 |
44
+ | Liquefied / non-liquefied | 1,116 / 714 |
45
+ | Test types | SPT (726), Vs (462), DPT (391), CPT (251) |
46
+ | Sources | 9 |
47
+ | Earthquakes | 67 |
48
+ | Mw range | 5.9 – 9.2 |
49
+ | Rows with reported mean+std | 318 |
50
+ | Columns | 23 |
51
+
52
+ ![Dataset overview](figures/dataset_overview.png)
53
+
54
+ ![SPT subset](figures/spt_detailed.png)
55
+
56
+ ## What I actually changed
57
+
58
+ Nothing exotic, just the boring harmonization that nobody wants to redo:
59
+
60
+ - Depths to metres, stresses to kPa (the original files mix ft/psf and m/kPa).
61
+ - All the CSR values normalized to the usual CSR<sub>7.5,1atm</sub> reference
62
+ (Mw=7.5, σ′v=1 atm), using Idriss & Boulanger's MSF and the Boulanger & Idriss
63
+ (2014) Kσ.
64
+ - Labels collapsed to `liquefied` ∈ {0, 1}.
65
+ - Kept `source`, `earthquake` and `site_name` on every row so you can do proper group
66
+ splits and trace any case back to where it came from.
67
+
68
+ ## Files
69
+
70
+ ```
71
+ data/liquefaction_unified.csv # the data, 1,830 rows x 23 cols
72
+ figures/dataset_overview.png # the 6-panel overview above
73
+ figures/spt_detailed.png # SPT subset distributions
74
+ scripts/loader_unified.py # how I load it (sklearn group split)
75
+ ```
76
+
77
+ ## Columns
78
+
79
+ | Column | Unit | What it is |
80
+ |---|---|---|
81
+ | `case_id` | — | unique id, `{source}_{n}` |
82
+ | `source` | — | which dataset it came from (table below) |
83
+ | `earthquake` | — | earthquake name — use it for group splits |
84
+ | `site_name` | — | site / borehole — also use it for group splits |
85
+ | `Mw` | — | moment magnitude |
86
+ | `amax` | g | peak ground acceleration |
87
+ | `CSR_7p5_1atm` | — | CSR normalized to Mw=7.5, σ′v=1 atm |
88
+ | `depth_m` | m | critical-layer depth |
89
+ | `GWT_m` | m | groundwater table depth |
90
+ | `sigma_v_kPa` | kPa | total vertical stress |
91
+ | `sigma_v_eff_kPa` | kPa | effective vertical stress |
92
+ | `test_type` | — | SPT / CPT / Vs / DPT |
93
+ | `N1_60cs` | — | fines-corrected, normalized SPT count (SPT rows) |
94
+ | `qc1Ncs` | — | fines-corrected, normalized CPT tip resistance (CPT rows) |
95
+ | `Vs1` | m/s | normalized shear-wave velocity (Vs rows) |
96
+ | `N120_corrected` | — | normalized DPT N120 (DPT rows) |
97
+ | `FC` | % | fines content |
98
+ | `GC` | % | gravel content (gravel sources only) |
99
+ | `D50` | mm | median grain size |
100
+ | `Vs` | m/s | shear-wave velocity where reported |
101
+ | `liquefied` | int | **the label.** 0 = no, 1 = yes |
102
+ | `data_quality` | — | A/B/C if the source said, else B |
103
+ | `has_uncertainty` | bool | true if that row had a mean+std in the original |
104
+
105
+ Heads up: because four test types live in one table, the index columns are sparse on
106
+ purpose. An SPT row fills `N1_60cs`, a CPT row fills `qc1Ncs`, and so on. Filter on
107
+ `test_type` first and you get dense features — the loader does exactly that.
108
+
109
+ ## Using it
110
+
111
+ ```python
112
+ import pandas as pd
113
+ df = pd.read_csv("data/liquefaction_unified.csv")
114
+
115
+ spt = df[df.test_type == "SPT"]
116
+ X = spt[["N1_60cs", "Mw", "amax", "CSR_7p5_1atm", "sigma_v_eff_kPa"]]
117
+ y = spt["liquefied"]
118
+ ```
119
+
120
+ Or just use `scripts/loader_unified.py`, which picks the feature set per test type and
121
+ does a leakage-free group split for you:
122
+
123
+ ```python
124
+ from scripts.loader_unified import load_subset
125
+ X_tr, X_te, y_tr, y_te, groups_te, sx, sy, y_te_raw = load_subset("SPT")
126
+ ```
127
+
128
+ ## One thing about splitting
129
+
130
+ Don't do a random sample-level split. Rows from the same borehole or the same
131
+ earthquake are heavily correlated, so a random split flatters your model. Split by
132
+ group instead — either 8:2 by `site_name`, or 5-fold by `earthquake` with whole
133
+ earthquakes held out. I report ECE / PICP / AUC under both. Reviewers will ask, so you
134
+ might as well.
135
+
136
+ ## Where the data comes from
137
+
138
+ This is a **derived** dataset — I'm only sharing the cleaned columns, not the original
139
+ spreadsheets. Those belong to the original authors and you should grab them from the
140
+ papers below (and cite them). Counts are after my dedup/cleaning, so they won't always
141
+ match the raw files exactly.
142
+
143
+ | Tag | Cases | Test | Source |
144
+ |---|---|---|---|
145
+ | `CETIN18` | 208 | SPT | Cetin et al. (2018), *Data in Brief*, doi:10.1016/j.dib.2018.08.043 |
146
+ | `BI14_SPT` | 230 | SPT | Boulanger & Idriss (2014) SPT case-history database |
147
+ | `BI14_CPT` | 251 | CPT | Boulanger & Idriss (2014) CPT case-history database |
148
+ | `CHICHI` | 288 | SPT | Chi-Chi 1999 earthquake case histories |
149
+ | `ANDRUS_SUPP` | 415 | Vs | Andrus & Stokoe Vs database (supplemental) |
150
+ | `WEN08_VS` | 47 | Vs | Wenchuan 2008 Vs case histories |
151
+ | `HU_GRAV` | 234 | DPT | Cao et al. (2021) gravelly-soil DPT, *Data in Brief*, doi:10.1016/j.dib.2021.107092 |
152
+ | `NIMA_DPT` | 110 | DPT | Expanded DPT database (with reported std) |
153
+ | `CAO13` | 47 | DPT | Cao et al. (2013) DPT case histories |
154
+
155
+ A couple of cleaning notes: the gravelly DPT set showed up in two of the original
156
+ files, I kept one copy. Rows missing something essential (`Mw`, `amax`,
157
+ `sigma_v_eff`, `liquefied`, or any in-situ index) got dropped; everything else stays
158
+ as `NaN`.
159
+
160
+ ## License
161
+
162
+ Cleaned columns are CC-BY-4.0. The underlying measurements still belong to the
163
+ original authors — this isn't a relicense of their files. Fair academic use, please
164
+ cite the sources above.
165
+
166
+ ## Contact
167
+
168
+ Wencan Guan — wencan.guan@uni-weimar.de
169
+ Happy to hear about bugs in the cleaning or sources I should add.
170
+
171
+ If you use it, a citation is appreciated:
172
+
173
+ ```bibtex
174
+ @misc{guan_liquefaction_dataset,
175
+ author = {Guan, Wencan},
176
+ title = {Unified Seismic Soil Liquefaction Case-History Dataset},
177
+ year = {2026},
178
+ note = {Harmonized from 9 public sources; cleaned columns only},
179
+ howpublished = {Hugging Face Datasets}
180
+ }
181
+ ```