Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,134 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- seismic
|
| 9 |
+
- structural-engineering
|
| 10 |
+
- ground-motion
|
| 11 |
+
- hdf5
|
| 12 |
+
- time-series
|
| 13 |
+
pretty_name: KNET Seismic Ground Motion & Building Response Dataset (MDOF)
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10M<n<100M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# KNET Seismic Ground Motion & Building Response Dataset (MDOF)
|
| 19 |
+
|
| 20 |
+
Ground motion records from the K-NET strong-motion network (Japan), paired with numerically simulated floor acceleration responses for 250 multi-degree-of-freedom (MDOF) shear-building configurations. Used to train and evaluate Fourier Neural Operator (FNO) models for seismic structural response prediction.
|
| 21 |
+
|
| 22 |
+
## Dataset Summary
|
| 23 |
+
|
| 24 |
+
| Property | Value |
|
| 25 |
+
|----------|-------|
|
| 26 |
+
| Ground motion records | 3,474 (K-NET) |
|
| 27 |
+
| Amplitude scale factors per GM | 57 |
|
| 28 |
+
| Building configurations | 250 MDOF shear buildings |
|
| 29 |
+
| Signal length | 3,000 time steps (60 s @ 50 Hz) |
|
| 30 |
+
| GM file format | HDF5 (`.h5`) |
|
| 31 |
+
| Building response format | HDF5 (`.h5`), one file per building |
|
| 32 |
+
|
| 33 |
+
## File Structure
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
MDOF/
|
| 37 |
+
├── All_GMs/
|
| 38 |
+
│ └── GMs_knet_3474_AF_57.h5 # Ground motion inputs
|
| 39 |
+
└── knet-250/
|
| 40 |
+
└── Data/
|
| 41 |
+
└── fno/
|
| 42 |
+
├── Blg_F6_18m_IM7_st0.h5.h5 # Floor acc. response
|
| 43 |
+
└── ...
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### Ground Motion File (`GMs_knet_3474_AF_57.h5`)
|
| 47 |
+
|
| 48 |
+
Each entry stores the scaled acceleration time series for one GM × scale-factor combination.
|
| 49 |
+
|
| 50 |
+
| HDF5 Key pattern | Shape | Description |
|
| 51 |
+
|-----------------|-------|-------------|
|
| 52 |
+
| `gm_{i}/af_{j}/data` | `(3000,)` | Scaled acceleration (m/s²), 50 Hz |
|
| 53 |
+
| `gm_{i}/af_{j}/pga` | scalar | Peak ground acceleration (m/s²) |
|
| 54 |
+
| `gm_{i}/metadata` | attrs | Station, event, magnitude, etc. |
|
| 55 |
+
|
| 56 |
+
### Building Response Files (`Blg_F6_18m_IM7_st0.h5.h5`)
|
| 57 |
+
|
| 58 |
+
Each file stores the simulated structural response for all GM × scale combinations for one building.
|
| 59 |
+
|
| 60 |
+
| HDF5 Key | Shape | Description |
|
| 61 |
+
|----------|-------|-------------|
|
| 62 |
+
| `response/gm_{i}/af_{j}/floor_acc` | `(n_floors, 3000)` | Floor acceleration (m/s²) |
|
| 63 |
+
| `building/attributes` | attrs | Number of floors, periods, damping, etc. |
|
| 64 |
+
| `building/damage_state/gm_{i}/af_{j}` | scalar int | HAZUS damage state (0–4) |
|
| 65 |
+
|
| 66 |
+
## Loading
|
| 67 |
+
|
| 68 |
+
### Option 1 — Direct HDF5 access (h5py)
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
import h5py
|
| 72 |
+
import numpy as np
|
| 73 |
+
|
| 74 |
+
GM_FILE = "path/to/MDOF/All_GMs/GMs_knet_3474_AF_57.h5"
|
| 75 |
+
|
| 76 |
+
with h5py.File(GM_FILE, "r") as f:
|
| 77 |
+
# Load ground motion i=0, amplitude factor j=0
|
| 78 |
+
gm = f["gm_0/af_0/data"][:] # shape (3000,)
|
| 79 |
+
pga = f["gm_0/af_0/pga"][()]
|
| 80 |
+
|
| 81 |
+
print(f"GM shape: {gm.shape}, PGA: {pga:.4f} m/s²")
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
```python
|
| 85 |
+
import h5py
|
| 86 |
+
import numpy as np
|
| 87 |
+
|
| 88 |
+
BLG_FILE = "path/to/MDOF/knet-250/Data/fno/building_0001.h5"
|
| 89 |
+
|
| 90 |
+
with h5py.File(BLG_FILE, "r") as f:
|
| 91 |
+
# Floor acceleration response for GM i=0, AF j=0
|
| 92 |
+
floor_acc = f["response/gm_0/af_0/floor_acc"][:] # (n_floors, 3000)
|
| 93 |
+
damage_state = f["building/damage_state/gm_0/af_0"][()]
|
| 94 |
+
|
| 95 |
+
print(f"Floor acc shape: {floor_acc.shape}, Damage state: {damage_state}")
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
### Option 2 — PyTorch Dataset (recommended for training)
|
| 99 |
+
|
| 100 |
+
Clone the [SeismicFNO](https://github.com/HKUJasonJiang/Seismic-FNO) repository and use `DynamicDataset`:
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
import numpy as np
|
| 104 |
+
from torch.utils.data import DataLoader
|
| 105 |
+
from module.dataprep_v2 import DynamicDataset
|
| 106 |
+
|
| 107 |
+
GM_FILE = "path/to/MDOF/All_GMs/GMs_knet_3474_AF_57.h5"
|
| 108 |
+
BUILDING_DIR = "path/to/MDOF/knet-250/Data/fno/"
|
| 109 |
+
|
| 110 |
+
# Full dataset (all 3474 × 57 combinations)
|
| 111 |
+
dataset = DynamicDataset(
|
| 112 |
+
gm_file_path = GM_FILE,
|
| 113 |
+
building_files_dir = BUILDING_DIR,
|
| 114 |
+
)
|
| 115 |
+
|
| 116 |
+
# Or pass a pre-computed index array for train/val/test splits
|
| 117 |
+
rng = np.random.default_rng(42)
|
| 118 |
+
indices = rng.permutation(len(dataset))
|
| 119 |
+
train_ds = DynamicDataset(GM_FILE, BUILDING_DIR, gm_indices=indices[:int(0.7 * len(indices))])
|
| 120 |
+
|
| 121 |
+
loader = DataLoader(train_ds, batch_size=64, shuffle=True, num_workers=4)
|
| 122 |
+
|
| 123 |
+
# Each batch: (gm, building_attributes, floor_acc_response, damage_state)
|
| 124 |
+
gm, attr, resp, ds = next(iter(loader))
|
| 125 |
+
print(gm.shape, resp.shape) # (64, 3000, 1), (64, 3000, 1)
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
## Citation
|
| 129 |
+
|
| 130 |
+
If you use this dataset, please cite the K-NET strong-motion network and the associated SeismicFNO paper (forthcoming).
|
| 131 |
+
|
| 132 |
+
## License
|
| 133 |
+
|
| 134 |
+
[Creative Commons Attribution 4.0 (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)
|