Files
ML-Porosity/configs/protocol.yaml
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

74 lines
4.9 KiB
YAML
Raw Permalink 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.
# Giao thức đánh giá P1 (pre-registration, plan mục 3, 5.2–5.6).
# Khoá bằng SHA-256 trong configs/protocol.sha256 TRƯỚC khi chạy mô hình; scripts/05_lowo.py từ chối chạy
# nếu hash không khớp. Mọi thay đổi phải tạo phiên bản mới (version) và ghi lý do vào changelog.
version: 2
date: 2026-10-26
changelog:
- "v1: giao thức P1 cho baseline LOWO trên F3 (B0a, B0b, B1, B2, B3a, B3b)."
- "v2 (trước mọi lần chạy mô hình): B1 dùng nhánh explicit + epsI của PyLops (damping Tikhonov về LFM) thay vì epsR,
vì nhánh epsR chỉ dùng m0 làm điểm khởi đầu của lsqr nên kết quả phụ thuộc số vòng lặp. Wavelet B1 ước lượng
theo reflectivity của chính operator PyLops để nhất quán quy ước đạo hàm."
data:
dataset: D1 (F3 Demo 2023), outputs/f3_wells.npz từ scripts/01_build_wells.py với configs/d1_f3.yaml
wells: [F02-1, F03-2, F03-4, F06-1]
window_ms: [600, 1100] # 126 mẫu, 4 ms
seismic_input: patch 3x3 tại bin thật (plan mục 1.2a), z-score theo từng kênh trong từng giếng
labels:
primary: PHIE_DT # −0.2018 + 0.0011·DT, hài hoà 4 giếng (đề xuất D-1, chưa chốt)
secondary: PHIE # nhãn gốc; chỉ F02-1 khác PHIE_DT trong cửa sổ
units_reported: p.u. (×100)
registration:
train_labels: calibrated # marker-calibrated sonic; ngoại lệ: B3a dùng legacy (tích phân DT như luận văn)
evaluation_reference: calibrated
sensitivity_references: [wlt] # chấm lại bằng nhãn theo TD .wlt của OpendTect; không bao giờ chọn tham chiếu "tốt nhất"
split:
outer: LOWO, 4 fold (mỗi giếng làm test một lần)
inner: LOWO trên 3 giếng train để chọn siêu tham số đã liệt kê dưới đây (số epoch, α, e);
mô hình cuối huấn luyện lại trên cả 3 giếng train với lựa chọn đó
seeds: [0, 1, 2, 3, 4]
blind_rule: >
Giếng test chỉ đóng góp nhãn tham chiếu để chấm điểm. Không dùng DT, RHOB, PHIE, marker hay horizon-tie
của giếng test cho huấn luyện, tie, wavelet, LFM, siêu tham số, checkpoint hay shift hậu kiểm.
Seismic và horizon (diễn giải trên seismic) tại vị trí giếng test được phép dùng làm input.
methods:
B0a: {model: OLS, features: [TWT], note: "trend tuyến tính theo TWT"}
B0b:
features: [amplitude, envelope, cos_phase, sin_phase, inst_freq, relative_ai, TWT] # từ trace trung bình của patch
models:
ridge: {alpha_grid: [0.1, 1, 10, 100]}
rf: {n_estimators: 300, min_samples_leaf: 5}
gbm: {max_iter: 200, learning_rate: 0.05, max_depth: 3}
B1:
wavelet: least squares từ giếng train (calibrated), 128 ms, damping 0.05
lfm: log(AI) giếng train, lọc thông thấp 6 Hz, nội suy IDW (p = 2) theo toạ độ địa tầng từ horizon
[Shallow, FS8, FS7, Truncation, MFS4]
inversion: PyLops PoststackInversion(explicit=True, epsI) trên log(AI), cửa sổ 400–1300 ms;
epsI = e·trace(GᵀG)/n với e_grid [0.01, 0.03, 0.1, 0.3, 1.0]
porosity: OLS φ = a + b·AI trên giếng train (calibrated, cửa sổ chính)
B2: {backbone: CNN-GRU v2, loss: legacy_v2, optimizer: Adam, lr: 5.0e-3, max_epochs: 1200, eval_every: 25,
d_channels: 64, p_dropout: 0.05, grad_clip: 5.0, batch: "toàn bộ giếng train, chuỗi đầy đủ"}
B3a: {backbone: CNN-GRU v2 + head heteroscedastic (softplus), loss: Gaussian NLL, train_labels: legacy,
optimizer: Adam, lr: 5.0e-3, max_epochs: 1200, eval_every: 25}
B3b: {as: B3a, train_labels: calibrated}
epoch_selection: epoch có MSE validation trung bình (nhãn gốc) nhỏ nhất trên vòng inner
metrics:
accuracy: [MAE, RMSE, PCC, R2, std_ratio, skill_vs_B0a] # skill = 1 − MSE/MSE_B0a
bands: {f_c_hz: 6, filter: "Butterworth bậc 4 pha không", report: [PCC, RMSE, std_ratio]}
calibration: [NLL, CRPS, coverage_50, coverage_80, coverage_90, coverage_95] # chỉ B3
reporting: từng giếng rồi macro-average; mean ± sd theo seed; không p-value trên từng time sample
best_shift: chỉ là chẩn đoán, bảng riêng
gates:
G-A: >
Baseline tái lập được (5 seed, có phương sai); đã ước lượng misregistration còn lại. Nếu sau tie tốt nhất
misregistration còn < 1/8 chu kỳ trội (≈ 2.5 ms ở 50 Hz) ở mọi giếng VÀ B3a ≈ B3b (|ΔRMSE| < 5% và
|ΔPCC| < 0.05, macro) thì dồn trọng tâm sang D2 + D3.
G-B: "M2 hơn B3/B4 tốt nhất: RMSE băng seismic −10% hoặc PCC băng +0.05 ở ≥ 4/5 seed và đa số realization; không kém hơn 2% khi drift = 0."
G-C: "Chiều cải thiện nhất quán với synthetic ở ≥ 3/4 giếng; coverage 80/90% trong ±5% mức danh nghĩa."
G-D: "Báo cáo kết quả bất kể chiều nào; giới hạn phạm vi claim theo kết quả."