| Case | Scenario | F_tunnel | TSII | LSII | δ_crown | AI Warning |
|---|---|---|---|---|---|---|
| A | Severe squeezing schist (450 m) | 1.41 | 0.931 | 0.22 | 41.3 mm | 4.3 D |
| B | Anisotropic limestone (310 m) | 1.63 | 0.968 | 0.37 | 18.7 mm | 5.1 D |
| C | Extreme squeezing claystone (580 m) | 1.38 | 0.927 | 0.18 | 44.8 mm | 3.8 D |
| Mean | — | 1.47 | 0.942 | 0.26 | 34.9 mm | 4.4 D |
D = tunnel diameters of advance warning. δ_max constraint = 45 mm. AI Warning = diameters before critical lining section.
pip install tunnel-shield-engine
from tunnel_shield import TunnelGovernor # Initialize with rock mass configuration and tunnel geometry governor = TunnelGovernor( rock_config="configs/high_squeezing_schist.yaml", depth_m=450.0, tunnel_radius_m=4.9, tbm_telemetry="live" ) result = governor.evaluate() print(result.signal) # "STABILITY_CERTIFIED" | "MONITORING" | "STOP_COMMAND" print(result.f_tunnel) # weighted harmonic mean safety factor print(result.tsii) # Tunnel Structural Integrity Index [0,1] print(result.lsii) # Lining Structural Integrity Index [0,1] print(result.plastic_radius_m) # R_p,3D at current face position (metres) print(result.governance_level) # "none" | "level_1" | "level_2" | "stop"
from tunnel_shield import TunnelGovernor from tunnel_shield.ai import PINNPlasticZone, XGBFaceConvergence, CNNDistortionClassifier, PINNPorePressure governor = TunnelGovernor( rock_config="configs/high_squeezing_schist.yaml", ai_modules={ "pinn_plastic": PINNPlasticZone.from_pretrained("default"), "xgb_face": XGBFaceConvergence.from_pretrained("default"), "cnn_distortion": CNNDistortionClassifier.from_pretrained("default"), "pinn_pore": PINNPorePressure.from_pretrained("default"), } ) result = governor.evaluate(forecast_increments=20) print(result.rp_forecast) # R_p,3D for next 20 increments print(result.face_convergence_rate) # mm/m (XGBoost prediction) print(result.ring_distortion_class) # normal | crown | joint | critical print(result.pore_pressure_field) # u_w(r,θ) spatial array
from tunnel_shield import TunnelGovernor from tunnel_shield.simulation import SqueezeScenario scenario = SqueezeScenario( depth_m=450.0, sigma_ci_MPa=28.0, gsi=35, k0=1.8, tunnel_radius_m=4.9, advance_rate_m_per_day=8.0 ) governor = TunnelGovernor(rock_config="configs/high_squeezing_schist.yaml") results = governor.run_advance_sequence(scenario, n_increments=200) print(results.min_f_tunnel) # 1.41 (Case A validation) print(results.max_plastic_radius) # 3.4 × R_t print(results.max_crown_settlement) # 41.3 mm (< δ_max = 45 mm) print(results.ai_warning_diameters) # 4.3 diameters advance warning
# Launch real-time Streamlit safety monitoring dashboard # Live R_p(x) heatmap · F_tunnel evolution · M-N utilization ring map · 🔴🟠🟢 signals $ streamlit run examples/streamlit_live.py # Dashboard at: http://localhost:8501 # Panels: # · Plastic zone evolution heatmap (LPEC live output) # · Face convergence profile (FPSE with XGBoost forecast) # · Per-ring M-N utilization diagram (LSLC) # · F_tunnel time-series with 1.35 threshold line # · 🔴🟠🟢 governance signal status panel # · PINN R_p forecast for next 20 advance increments # · JSON/CSV archive with SHA-256 checksums
git clone https://github.com/gitdeeper12/TUNNEL-SHIELD.git
git clone https://gitlab.com/gitdeeper12/TUNNEL-SHIELD.git
git clone https://bitbucket.org/gitdeeper-12/TUNNEL-SHIELD.git
git clone https://codeberg.org/gitdeeper12/TUNNEL-SHIELD.git
@software{baladi2026tunnelshield_pypi,
author = {Baladi, Samir},
title = {{TUNNEL-SHIELD}: A Critical Framework for Loosening Pressure
Control, Face Plastic Deformation Mitigation, and Lining
Structural Safety in Deep Shield Tunnels},
year = {2026},
version = {1.0.0},
publisher = {Python Package Index},
url = {https://pypi.org/project/tunnel-shield-engine},
note = {Python package, MIT License,
Systems Safety & Engineering (AI-augmented) — GEOTECH-AI-02}
}
@dataset{baladi2026tunnelshield_zenodo,
author = {Baladi, Samir},
title = {{TUNNEL-SHIELD}: A Critical Framework for Loosening Pressure
Control, Face Plastic Deformation Mitigation, and Lining
Structural Safety in Deep Shield Tunnels —
Research Paper and Simulation Data},
year = {2026},
publisher = {Zenodo},
version = {1.0.0},
doi = {10.5281/zenodo.20374106},
url = {https://doi.org/10.5281/zenodo.20374106},
note = {Geotechnical Engineering · Systems Safety · GEOTECH-AI-02}
}
@article{baladi2026tunnelshield,
author = {Baladi, Samir},
title = {{TUNNEL-SHIELD}: A Critical Framework for Loosening Pressure
Control, Face Plastic Deformation Mitigation, and Lining
Structural Safety in Deep Shield Tunnels},
year = {2026},
month = {May},
version = {1.0.0},
doi = {10.5281/zenodo.20374106},
url = {https://doi.org/10.5281/zenodo.20374106},
note = {Ronin Institute / Rite of Renaissance,
Systems Safety & Engineering (AI-augmented) — GEOTECH-AI-02}
}
Baladi, S. (2026). TUNNEL-SHIELD: A Critical Framework for Loosening Pressure Control, Face Plastic Deformation Mitigation, and Lining Structural Safety in Deep Shield Tunnels (Version 1.0.0). Zenodo. https://doi.org/10.5281/zenodo.20374106