Files
ML-Porosity/README.md
lamlvh a76e61398a P0 + P1: ml_porosity package, audited F3 data, LOWO baselines, protocol v2
P0
- ml_porosity/: survey geometry, LAS/TDR/SEG-Y readers (4 ms delay fix,
  invalid time scalar, header LUT for incomplete cubes), anti-aliased
  log-to-time resampling, CNN-GRU v2 with the thesis loss, 41+ unit tests.
- Full F3 Demo 2023 under data/ (text well/fault files tracked, bulk data
  ignored); the filtered copy and its cleanup notes are removed.
- SHA-256 manifests for F3, Volve, NLOG and the thesis outputs.

P1
- configs/protocol.yaml v2, locked by SHA-256 at 2026-10-26T04:28:09Z,
  before the first LOWO run (04:30:50Z); 05_lowo.py refuses to run on a
  hash mismatch. This commit postdates the runs.
- Wavelet/synthetic tie QC, residual misregistration, LOWO 5 seeds for
  B0a, B0b, B1, B2, B3a, B3b (scripts 04-06); gate G-A: no pivot.
- Volve D3: horizons, well picks, checkshots and the ST10010 cube read
  from data/Volve (scripts/07).
- D-1 label check against measured NLOG density (scripts/08): PHIE_DT
  stays the primary label.
- docs/plan.md, Volve and NLOG inventories, report.html.

Full-text reference PDFs in refs/ stay local (ignored).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 08:41:11 +00:00

35 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ML-Porosity
Dự đoán porosity từ seismic F3 khi well tie không chắc chắn. Kế hoạch: [docs/plan.md](docs/plan.md); tiến độ: `report.html`.
## Cài đặt
```bash
python -m venv .venv
.venv/bin/pip install -r requirements-lock.txt
.venv/bin/pip install --no-deps -e .
```
Dữ liệu F3 Demo 2023 đặt ở `data/F3_Demo_2023/F3_Demo_2023/`, dữ liệu Volve ở `data/Volve/`, LAS và TD của NLOG ở `data/NLOG/` (hoặc trỏ `ML_POROSITY_F3_ROOT` tới thư mục chứa `.survey`). Kết quả ghi vào `outputs/` (đổi bằng `ML_POROSITY_OUTPUTS`).
## Chạy
```bash
scripts/run_p0.sh # toàn bộ pipeline P0 và test
scripts/run_p1.sh # P1: tie QC, LOWO baseline (khoảng 16 phút với GPU)
```
| Script | Việc |
| --- | --- |
| `scripts/00_data_manifest.py [--check] [--dataset f3\|volve\|nlog]` | Ghi/kiểm SHA-256 theo `data_manifest/*.json` (F3: 279 file) |
| `scripts/01_build_wells.py` | Vị trí giếng từ `.survey`, 4 TDR (legacy, calibrated, anchors, wlt), log sang thời gian có chống alias, trích patch seismic → `outputs/f3_wells.npz` |
| `scripts/02_td_qc.py` | Lệch của các nguồn TD so với marker → `outputs/figures/td_drift.png`, `outputs/td_qc.csv` |
| `scripts/03_train.py --config configs/b2_smoke.yaml` | CNN–GRU v2 + loss gốc (B2), split tách rời train/val/test (chạy thử P0) |
| `scripts/04_wavelet_tie.py` | Wavelet, synthetic 4 giếng, misregistration còn lại và ngưỡng nhiễu → `outputs/tie_qc.csv`, `outputs/figures/ties.png` |
| `scripts/05_lowo.py` | LOWO 5 seed cho B0a, B0b, B1, B2, B3a, B3b theo `configs/protocol.yaml` (kiểm hash trong `configs/protocol.sha256`) |
| `scripts/06_summarize_p1.py` | Bảng macro/theo giếng, calibration, G-A → `outputs/p1/summary.md`, `outputs/figures/p1_lowo.png` |
| `scripts/07_volve_interp_qc.py` | QC horizon, well picks, checkshot và cube ST10010 của Volve theo `configs/d3_volve.yaml` → `outputs/volve/` |
| `scripts/08_d1_label_check.py` | Kiểm tra D-1: porosity theo RHOB đo của NLOG so với nhãn sonic PHIE_DT → `outputs/d1/` |
`test 2/` là bản lưu trữ code luận văn, không sửa.