Skip to main content

TUNNEL-SHIELD: AI-Augmented Monitoring System for Tunnel Boring Machine Operations โ€” A Critical Framework for Loosening Pressure Control, Face Plastic Deformation Mitigation, and Lining Structural Safety in Deep Shield Tunnels

Project description

TUNNEL-SHIELD

A Critical Framework for Loosening Pressure Control, Face Plastic Deformation Mitigation, and Lining Structural Safety in Deep Shield Tunnels

An AI-Augmented Elastoplastic Continuum Mechanics Framework for TBM Excavation Safety Governance


PyPI version PyPI downloads Python versions DOI ORCID License: MIT Domain Sub-domain Version


๐Ÿ“Œ Overview

TUNNEL-SHIELD is a fully coupled, AI-augmented elastoplastic continuum mechanics framework that treats tunnel structural safety as a continuously governed dynamic invariant โ€” not a static design property frozen at the completion of a finite element run.

"A deep shield tunnel is not a static void in rock. It is a moving boundary-value problem embedded in a continuously evolving stress field. TUNNEL-SHIELD formalizes and governs this evolution, enforcing structural integrity against loosening pressure surge, face plastic collapse, and lining buckling in real time."

Contemporary deep tunnel design relies on rock mass rating indices (RMR, Q-system) and uncoupled finite element analyses that cannot capture the nonlinear, spatiotemporally coupled dynamics of a TBM advancing through high-stress rock. TUNNEL-SHIELD provides a principled three-module governance pipeline that classifies any TBM operational state in real time as:

Signal Safety Status Action
๐ŸŸข STABILITY CERTIFIED F_tunnel โ‰ฅ 1.50 ยท TSII โ‰ฅ 0.95 All constraints satisfied โ€” advance mode
๐ŸŸ  MONITORING PHASE 1.35 โ‰ค F_tunnel < 1.50 ยท TSII โ‰ฅ 0.90 Advance rate reduction + PINN plastic zone alert
๐Ÿ”ด STOP COMMAND F_tunnel < 1.35 ยท LSII < 0.15 TBM stop + emergency grouting + structural review

๐Ÿ—‚๏ธ Table of Contents


โœจ Key Features

  • Three-module coupled pipeline โ€” LPEC (Loosening Pressure), FPSE (Face Squeezing), LSLC (Lining Stability Lock)
  • AI-augmented governance โ€” Physics-Informed Neural Network (PINN) for plastic zone forecasting, XGBoost face convergence ensemble, CNN lining distortion classifier
  • 3.8โ€“5.1 diameter advance warning โ€” 2.8โ€“4.7 days before critical lining section is reached
  • Closed-form + PINN plastic radius R_p โ€” Hoek-Brown elastoplastic formulation with 3D face proximity correction
  • Full Biot hydro-mechanical coupling โ€” anisotropic pore pressure field with asymmetry index (HAI)
  • Moment-thrust interaction enforcement โ€” per-ring M-N utilization ratio with LSII monitoring
  • Global safety factor F_tunnel โ€” weighted harmonic mean of three module safety factors, updated every advance increment
  • 0.927โ€“0.968 Tunnel Structural Integrity Index โ€” validated across 3 canonical deep tunnel scenarios
  • Full open-source distribution โ€” available across 5 platforms

๐Ÿ›๏ธ Domain Positioning

TUNNEL-SHIELD is the fourth project in the Systems Safety & Engineering (AI-augmented) domain portfolio, classified as GEOTECH-AI-02.

Project Sub-classification Core Safety Mechanism
OSEF Aviation Safety Systems AI-augmented flight envelope protection
Limit Cycle Flight Dynamics Aerospace Engineering Nonlinear dynamical stability certification
DAMS-SLIP v1.1.1 GEOTECH-AI-01 AI-augmented seepage and piping governance
TUNNEL-SHIELD v1.0.0 GEOTECH-AI-02 AI-augmented TBM excavation safety governance

The unifying principle across all four projects: safety is a dynamical invariant enforced through physics-grounded AI governance, not a static design constant frozen at the point of commissioning.


๐Ÿ“ Project Structure

TUNNEL-SHIELD/
โ”‚
โ”œโ”€โ”€ tunnel_shield/                          # Core Python package
โ”‚   โ”œโ”€โ”€ __init__.py                         # Package entry point & public API
โ”‚   โ”œโ”€โ”€ pipeline.py                         # Main TUNNEL-SHIELD governance pipeline
โ”‚   โ”œโ”€โ”€ safety.py                           # Safety certification & F_tunnel logic
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ modules/                            # Three governing modules
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ lpec.py                         # Module 1: Loosening Pressure Evaluation Core
โ”‚   โ”‚   โ”œโ”€โ”€ fpse.py                         # Module 2: Face Plastic Squeezing Evaluator
โ”‚   โ”‚   โ””โ”€โ”€ lslc.py                         # Module 3: Lining Structural Stability Lock
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ai/                                 # AI augmentation components
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ pinn_plastic_zone.py            # PINN: plastic zone boundary R_p forecasting
โ”‚   โ”‚   โ”œโ”€โ”€ xgb_face_convergence.py         # XGBoost: face convergence rate prediction
โ”‚   โ”‚   โ”œโ”€โ”€ cnn_distortion.py               # CNN: lining distortion pattern classifier
โ”‚   โ”‚   โ”œโ”€โ”€ pinn_pore_pressure.py           # PINN: asymmetric pore pressure field (Biot)
โ”‚   โ”‚   โ””โ”€โ”€ weights/                        # Pre-trained model checkpoints
โ”‚   โ”‚       โ”œโ”€โ”€ pinn_plastic_zone_v1.pt
โ”‚   โ”‚       โ”œโ”€โ”€ xgb_face_convergence_v1.json
โ”‚   โ”‚       โ”œโ”€โ”€ cnn_distortion_v1.pt
โ”‚   โ”‚       โ””โ”€โ”€ pinn_pore_pressure_v1.pt
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ elastoplastic/                      # Elastoplastic continuum mechanics core
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ hoek_brown.py                   # Hoek-Brown failure criterion (GSI, m_b, s, a)
โ”‚   โ”‚   โ”œโ”€โ”€ mohr_coulomb.py                 # Mohr-Coulomb yield surface & linearization
โ”‚   โ”‚   โ”œโ”€โ”€ plastic_radius.py               # R_p formulation (2D closed-form + 3D LDP)
โ”‚   โ”‚   โ”œโ”€โ”€ stress_redistribution.py        # Stress field ฯƒ_r, ฯƒ_ฮธ in elastic & plastic zones
โ”‚   โ”‚   โ””โ”€โ”€ constitutive.py                 # Elastoplastic constitutive integration (flow rule)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ loosening/                          # LPEC subsystem
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ terzaghi_pressure.py            # Terzaghi loosening pressure q_L formulation
โ”‚   โ”‚   โ”œโ”€โ”€ load_transfer_ratio.py          # LTR: fraction of overburden on lining
โ”‚   โ”‚   โ”œโ”€โ”€ arching.py                      # Ground arching mechanism (AEI, tau_arch)
โ”‚   โ”‚   โ””โ”€โ”€ overburden.py                   # Overburden stress redistribution ฯƒ_v(z)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ face/                               # FPSE subsystem
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ competence_factor.py            # CF = ฯƒ_cm / ฯƒ_v squeezing classification
โ”‚   โ”‚   โ”œโ”€โ”€ face_convergence.py             # Axial face displacement u_f(r, x)
โ”‚   โ”‚   โ”œโ”€โ”€ face_stability.py               # F_face safety factor computation
โ”‚   โ”‚   โ”œโ”€โ”€ volumetric_strain.py            # ฮต_v field in plastic zone at face
โ”‚   โ”‚   โ””โ”€โ”€ tbm_thrust.py                   # p_eff = F_TBM / (ฯ€ R_tยฒ) + p_slurry
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ lining/                             # LSLC subsystem
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ segmental_ring.py               # Curved beam ring model (N, V, M equilibrium)
โ”‚   โ”‚   โ”œโ”€โ”€ joint_rotation.py               # Rotational stiffness k_ฯ† and M_j,Rd capacity
โ”‚   โ”‚   โ”œโ”€โ”€ moment_thrust.py                # M-N interaction surface & utilization ratio UR
โ”‚   โ”‚   โ”œโ”€โ”€ lsii.py                         # Lining Structural Integrity Index (LSII)
โ”‚   โ”‚   โ”œโ”€โ”€ crown_settlement.py             # ฮด_crown(x) โ‰ค ฮด_max constraint enforcement
โ”‚   โ”‚   โ””โ”€โ”€ segment_assembly.py             # Ring stiffness matrix K_ring assembly
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ hydro/                              # Hydro-mechanical coupling
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ biot.py                         # Biot consolidation (ฮฑ_B, K_dr, k, ฮผ_w)
โ”‚   โ”‚   โ”œโ”€โ”€ pore_pressure_field.py          # u_w(r, ฮธ) asymmetric seepage field
โ”‚   โ”‚   โ”œโ”€โ”€ hai.py                          # Hydrostatic Asymmetry Index (HAI)
โ”‚   โ”‚   โ””โ”€โ”€ seepage_laplace.py              # Modified Laplace for anisotropic K_r, K_ฮธ
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ fem/                                # Finite element discretization
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ mesh.py                         # Adaptive tetrahedral + hexahedral mesh
โ”‚   โ”‚   โ”œโ”€โ”€ amr.py                          # Adaptive mesh refinement (ฮท_el criterion)
โ”‚   โ”‚   โ”œโ”€โ”€ boundary_conditions.py          # In-situ stress, far-field BC, tunnel drainage
โ”‚   โ”‚   โ”œโ”€โ”€ solver.py                       # Nonlinear FEM solver (Newton-Raphson)
โ”‚   โ”‚   โ””โ”€โ”€ convergence.py                  # Convergence criteria & numerical stability
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ monitoring/                         # Real-time monitoring layer
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ fiber_optic.py                  # Distributed fiber optic strain parser
โ”‚   โ”‚   โ”œโ”€โ”€ tbm_telemetry.py                # TBM operational telemetry ingestion
โ”‚   โ”‚   โ”œโ”€โ”€ piezometer.py                   # Piezometer array data handler
โ”‚   โ”‚   โ”œโ”€โ”€ total_station.py                # Automated total station displacement parser
โ”‚   โ”‚   โ””โ”€โ”€ aggregator.py                   # Multi-sensor temporal aggregation
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ utils/                              # Shared utilities
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ”œโ”€โ”€ metrics.py                      # F_tunnel, TSII, LSII, F_LPEC, F_FPSE, F_LSLC
โ”‚       โ”œโ”€โ”€ rock_mass.py                    # GSI, m_b, s, a parameter registry
โ”‚       โ”œโ”€โ”€ validators.py                   # Input validation & safety bound checks
โ”‚       โ””โ”€โ”€ constants.py                    # Canonical parameter registry (ฮฑ, ฮฒ, ฮป, ฮณ)
โ”‚
โ”œโ”€โ”€ visualization/                          # Real-time visualization subsystem
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ app.py                              # Streamlit application entry point
โ”‚   โ”œโ”€โ”€ dashboard.py                        # Main TBM safety dashboard layout
โ”‚   โ”œโ”€โ”€ plastic_zone_map.py                 # R_p(x) evolution heatmap along tunnel axis
โ”‚   โ”œโ”€โ”€ lining_ring_plot.py                 # Per-ring M-N utilization + LSII display
โ”‚   โ”œโ”€โ”€ face_convergence_plot.py            # Face convergence profile u_f(r) renderer
โ”‚   โ””โ”€โ”€ components/
โ”‚       โ”œโ”€โ”€ signal_panel.py                 # ๐Ÿ”ด๐ŸŸ ๐ŸŸข safety signal panel
โ”‚       โ”œโ”€โ”€ ai_forecast_panel.py            # PINN R_p + XGBoost convergence forecast
โ”‚       โ””โ”€โ”€ tbm_live_panel.py               # Live TBM telemetry reading display
โ”‚
โ”œโ”€โ”€ archival/                               # Operational data archival
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ writer.py                           # Append-only JSON/CSV advance record writer
โ”‚   โ”œโ”€โ”€ checksum.py                         # SHA-256 tamper-evidence layer
โ”‚   โ””โ”€โ”€ partitioner.py                      # Per-ring time-window CSV partitioner
โ”‚
โ”œโ”€โ”€ simulation/                             # Benchmark simulation environment
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ scenarios.py                        # Three canonical benchmark configurations
โ”‚   โ”œโ”€โ”€ geological_profiles.py              # GSI, ฯƒ_ci, K_0 spatial variation models
โ”‚   โ”œโ”€โ”€ benchmarks.py                       # Full validation suite runner
โ”‚   โ”œโ”€โ”€ parameters.py                       # Canonical v1.0.0 parameter registry
โ”‚   โ””โ”€โ”€ results/                            # Pre-computed validation outputs
โ”‚       โ”œโ”€โ”€ CaseA_schist_450m.json
โ”‚       โ”œโ”€โ”€ CaseB_limestone_310m.json
โ”‚       โ””โ”€โ”€ CaseC_claystone_580m.json
โ”‚
โ”œโ”€โ”€ examples/                               # Usage examples & tutorials
โ”‚   โ”œโ”€โ”€ quickstart.py                       # Minimal working example
โ”‚   โ”œโ”€โ”€ basic_safety_check.ipynb            # Jupyter: single-advance safety evaluation
โ”‚   โ”œโ”€โ”€ high_squeezing_schist.ipynb         # Jupyter: Case A severe squeezing scenario
โ”‚   โ”œโ”€โ”€ anisotropic_limestone.ipynb         # Jupyter: Case B anisotropic stress field
โ”‚   โ”œโ”€โ”€ extreme_squeezing_claystone.ipynb   # Jupyter: Case C extreme squeezing scenario
โ”‚   โ”œโ”€โ”€ streamlit_live.py                   # Launch real-time TBM safety dashboard
โ”‚   โ””โ”€โ”€ ai_forecast_demo.py                 # PINN + XGBoost forecast demonstration
โ”‚
โ”œโ”€โ”€ tests/                                  # Unit and integration tests
โ”‚   โ”œโ”€โ”€ test_lpec.py
โ”‚   โ”œโ”€โ”€ test_fpse.py
โ”‚   โ”œโ”€โ”€ test_lslc.py
โ”‚   โ”œโ”€โ”€ test_pinn_plastic_zone.py
โ”‚   โ”œโ”€โ”€ test_xgb_face_convergence.py
โ”‚   โ”œโ”€โ”€ test_cnn_distortion.py
โ”‚   โ”œโ”€โ”€ test_biot.py
โ”‚   โ”œโ”€โ”€ test_pipeline.py
โ”‚   โ””โ”€โ”€ test_archival.py
โ”‚
โ”œโ”€โ”€ docs/                                   # Documentation source
โ”‚   โ”œโ”€โ”€ architecture.md                     # Pipeline & module architecture reference
โ”‚   โ”œโ”€โ”€ mathematics.md                      # Full elastoplastic mathematical formalism
โ”‚   โ”œโ”€โ”€ ai_modules.md                       # PINN / XGBoost / CNN documentation
โ”‚   โ”œโ”€โ”€ rock_mass_parameters.md             # Hoek-Brown & GSI calibration guide
โ”‚   โ”œโ”€โ”€ governance.md                       # Governance level protocol reference (L1/L2/L3)
โ”‚   โ””โ”€โ”€ api_reference.md                    # Full Python API reference
โ”‚
โ”œโ”€โ”€ paper/                                  # Research paper artifacts
โ”‚   โ”œโ”€โ”€ TUNNEL_SHIELD_Research_Paper.pdf    # Published paper (PDF)
โ”‚   โ”œโ”€โ”€ TUNNEL_SHIELD_Research_Paper.docx   # Editable Word version
โ”‚   โ””โ”€โ”€ figures/
โ”‚       โ”œโ”€โ”€ pipeline_diagram.svg
โ”‚       โ”œโ”€โ”€ plastic_zone_caseA.svg
โ”‚       โ”œโ”€โ”€ lining_mn_interaction.svg
โ”‚       โ””โ”€โ”€ ai_forecast_validation.svg
โ”‚
โ”œโ”€โ”€ .gitlab-ci.yml                          # GitLab CI/CD pipeline
โ”œโ”€โ”€ .github/                                # GitHub Actions workflows
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ”œโ”€โ”€ tests.yml
โ”‚       โ””โ”€โ”€ publish.yml
โ”œโ”€โ”€ pyproject.toml                          # Build system configuration
โ”œโ”€โ”€ setup.cfg                               # Package metadata
โ”œโ”€โ”€ requirements.txt                        # Runtime dependencies
โ”œโ”€โ”€ requirements-dev.txt                    # Development dependencies
โ”œโ”€โ”€ CHANGELOG.md                            # Version history
โ”œโ”€โ”€ CONTRIBUTING.md                         # Contribution guidelines
โ”œโ”€โ”€ CODE_OF_CONDUCT.md
โ”œโ”€โ”€ AUTHORS.md                              # Author and contributor registry
โ”œโ”€โ”€ LICENSE                                 # MIT License
โ””โ”€โ”€ README.md                               # This file

๐Ÿš€ Quick Start

Installation

# Install from PyPI
pip install tunnel-shield-engine

# Install from source
git clone https://github.com/gitdeeper12/TUNNEL-SHIELD.git
cd TUNNEL-SHIELD
pip install -e .

Minimal Example

from tunnel_shield import TunnelGovernor

# Initialize the safety governor
governor = TunnelGovernor(
    rock_config="configs/high_squeezing_schist.yaml",
    depth_m=450.0,
    tunnel_radius_m=4.9,
    tbm_telemetry="live"    # or path to historical CSV
)

# Run full TUNNEL-SHIELD pipeline
result = governor.evaluate()

print(result.signal)              # "STABILITY_CERTIFIED" | "MONITORING" | "STOP_COMMAND"
print(result.f_tunnel)            # float โ€” global safety factor (harmonic mean)
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"

With Full AI Augmentation

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 predicted for next 20 advance increments
print(result.face_convergence_rate) # mm/m of advance (XGBoost prediction)
print(result.ring_distortion_class) # "normal" | "crown_settlement" | "joint_opening" | "critical"
print(result.pore_pressure_field)   # u_w(r, ฮธ) spatial array โ€” asymmetric Biot field

High-Squeezing Schist Scenario

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 result)
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 TBM Safety Dashboard

# Start Streamlit safety monitoring dashboard
streamlit run examples/streamlit_live.py

# Dashboard available at: http://localhost:8501
# Live R_p(x) heatmap ยท F_tunnel evolution ยท M-N utilization ring map ยท ๐Ÿ”ด๐ŸŸ ๐ŸŸข signal

๐Ÿงฉ TUNNEL-SHIELD Pipeline

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  TBM Telemetry: Thrust ยท Torque ยท Penetration Rate ยท Grout P ยท Tail Gap โ”‚
โ”‚  Monitoring: Fiber Optic Strain ยท Piezometers ยท Total Station           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ”‚                     โ”‚                    โ”‚
         โ–ผ                     โ–ผ                    โ–ผ
    LPEC                  FPSE                 LSLC
    Loosening Pressure    Face Squeezing       Lining Stability
    Evaluation Core       Evaluator            Lock
    Terzaghi + R_p        CF ยท F_face          Curved beam M-N
    Arching (AEI)         u_f(r, x)            UR(s) ยท LSII
         โ”‚                     โ”‚                    โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ”‚                     โ”‚                    โ”‚
         โ–ผ                     โ–ผ                    โ–ผ
    PINN Plastic Zone     XGBoost Face         CNN Distortion
    R_p,3D Forecast       Convergence          Classifier
    Physics-constrained   52-feature vector    360-pt strain
    Every advance (2.3s)  MAE = 1.8 mm/m       5-class output
         โ”‚                     โ”‚                    โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                    Biot Hydro-Mechanical
                    Pore Pressure PINN
                    u_w(r, ฮธ) asymmetric field
                    HAI = (p_max โˆ’ p_min) / p_mean
                               โ”‚
                               โ–ผ
                    F_tunnel Functional
                    F = 1 / [w_L/F_LPEC + w_F/F_FPSE + w_S/F_LSLC]
                    w_LPEC=0.35  w_FPSE=0.30  w_LSLC=0.35
                               โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ–ผ                     โ–ผ
             Safety Signal         Archival & Dashboard
             ๐Ÿ”ด๐ŸŸ ๐ŸŸข                JSON/CSV + SHA-256
             TBM Stop / Alert     Streamlit + Plotly

Module Descriptions

# Module Governing Equation Description
1 LPEC q_L = ฮณ_rยทBยท(1โˆ’c/ฮณ_rยทB) / (K_0ยทtanฯ†) ยท [1โˆ’exp(โˆ’K_0ยทtanฯ†ยทH/B)] Terzaghi loosening pressure with plastic zone correction
2 FPSE F_face = [cยทcot(ฯ†)ยท(N_ฯ†โˆ’1) + ฯƒ_vยทN_ฯ†^0.5] / [ฯƒ_v โˆ’ p_eff] Face stability with TBM thrust and slurry support
3 LSLC UR(s) = โˆš[(N_Ed/N_Rd)ยฒ + (M_Ed/M_Rd)ยฒ] โ‰ค 1/ฮณ_s Per-section M-N utilization with joint rotation model
AI-1 PINN Plastic Zone L = ฮป_dataยทL_data + ฮป_physยทL_phys Physics-constrained R_p,3D forecasting from TBM telemetry
AI-2 XGBoost Face ฮต_face(T+next) = f(thrust, torque, PR, friction, โ€ฆ) Face convergence rate prediction ensemble
AI-3 CNN Distortion Classification: {normal, crown, spring-line, joint, critical} Lining distortion pattern from fiber optic strain profile
AI-4 PINN Pore Biot + asymmetric seepage field u_w(r, ฮธ, t) Asymmetric pore pressure forecast for LSLC loading

๐Ÿ“Š Scoring & Safety Bounds

Safety certification criteria:
  F_tunnel   (weighted harmonic mean of module safety factors)   โ‰ฅ  1.35
  TSII       (Tunnel Structural Integrity Index)                  โ‰ฅ  0.90
  LSII       (Lining Structural Integrity Index, per ring)        โ‰ฅ  0.15
  ฮด_crown    (crown settlement)                                   โ‰ค  ฮด_max

F_tunnel functional form:
  F_tunnel = 1 / [0.35/F_LPEC + 0.30/F_FPSE + 0.35/F_LSLC]

TSII definition:
  TSII = ฮฆ[ min(F_LPEC, F_FPSE, F_LSLC) / F_threshold ร— ฮฒ_target ]
  ฮฒ_target = 3.0  โ†’  P_failure โ‰ค 1.35 ร— 10โปยณ per ring

Plastic radius (Hoek-Brown elastoplastic):
  R_p = R_t ยท [(2ฯƒ_0ยท(N_ฯ†โˆ’1) + ฯƒ_ciยทm_bยทs^(aโˆ’1)) / ((1+N_ฯ†)ยท(2p_iยท(N_ฯ†โˆ’1) + ฯƒ_ciยทm_bยทs^(aโˆ’1)))]^(1/(N_ฯ†โˆ’1))

Crown settlement constraint:
  ฮด_crown(x) = โˆ’u_r(r=R_t, ฮธ=0, x) โ‰ค ฮด_max

Benchmark validation results (v1.0.0):

Case Description F_tunnel TSII LSII ฮด_crown AI Warning
A Severe squeezing schist (450 m) 1.41 0.931 0.22 41.3 mm 4.3 diameters
B Anisotropic limestone (310 m) 1.63 0.968 0.37 18.7 mm 5.1 diameters
C Extreme squeezing claystone (580 m) 1.38 0.927 0.18 44.8 mm 3.8 diameters
Mean โ€” 1.47 0.942 0.26 34.9 mm 4.4 diameters

AI module performance:

AI Module Precision Recall AUC / MAE False Alarm Rate
PINN Plastic Zone (R_p error) โ€” โ€” 3.4% (rel. MAE) N/A
XGBoost Face Convergence โ€” โ€” 1.8 mm/m (MAE) N/A
CNN Distortion Classifier 0.96 0.93 0.98 (AUC) 2.8%
Governance Response 0.97 0.95 0.99 (AUC) 1.9%

Governance decision thresholds:

Level Condition Action Escalation
๐ŸŸข Certified F_tunnel โ‰ฅ 1.50 ยท TSII โ‰ฅ 0.95 Advance mode None
๐ŸŸ  Level 1 1.35 โ‰ค F_tunnel < 1.50 ยท TSII โ‰ฅ 0.90 Thrust / advance rate reduction PINN forecast issued
๐ŸŸ  Level 2 F_tunnel < 1.35 ยท LSII โ‰ฅ 0.15 Mandatory parameter adjustment + ring design review Structural alert
๐Ÿ”ด Stop F_tunnel < 1.20 ยท LSII < 0.10 TBM stop + emergency grouting + full diagnostic report Immediate action

๐ŸŒ Platforms & Mirrors

Platform URL Role
๐Ÿ™ GitHub (Primary) github.com/gitdeeper12/TUNNEL-SHIELD Source code, issues, PRs
๐ŸฆŠ GitLab (Mirror) gitlab.com/gitdeeper12/TUNNEL-SHIELD CI/CD mirror
๐Ÿชฃ Bitbucket (Mirror) bitbucket.org/gitdeeper-12/TUNNEL-SHIELD Enterprise mirror
๐Ÿ”๏ธ Codeberg (Mirror) codeberg.org/gitdeeper12/TUNNEL-SHIELD Open-source community
๐Ÿ“ฆ PyPI pypi.org/project/tunnel-shield-engine Python package distribution
๐Ÿ”ฌ Zenodo doi.org/10.5281/zenodo.20374106 Citable DOI, paper & data
๐Ÿง‘โ€๐Ÿ”ฌ ORCID orcid.org/0009-0003-8903-0029 Researcher identity

๐Ÿ”„ Clone & Download

Git Clone

# GitHub (Primary)
git clone https://github.com/gitdeeper12/TUNNEL-SHIELD.git

# GitLab (Mirror)
git clone https://gitlab.com/gitdeeper12/TUNNEL-SHIELD.git

# Bitbucket (Mirror)
git clone https://bitbucket.org/gitdeeper-12/TUNNEL-SHIELD.git

# Codeberg (Mirror)
git clone https://codeberg.org/gitdeeper12/TUNNEL-SHIELD.git

Direct ZIP Download

Source Link
GitHub TUNNEL-SHIELD-main.zip
GitLab TUNNEL-SHIELD-main.zip
Bitbucket TUNNEL-SHIELD-main.zip
Codeberg TUNNEL-SHIELD-main.zip
PyPI files pypi.org/project/tunnel-shield-engine/#files
Zenodo record doi.org/10.5281/zenodo.20374106

๐Ÿ“– Citation

If TUNNEL-SHIELD contributes to your research, please cite using one of the following formats.

๐Ÿ“ฆ PyPI Package

@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}
}

๐Ÿ”ฌ Zenodo Archive (Paper & Data)

@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}
}

๐Ÿ“„ Research Paper

@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}
}

APA (inline)

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


๐Ÿ“œ License

This project is licensed under the MIT License โ€” see the LICENSE file for details.

MIT License

Copyright (c) 2026 Samir Baladi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

๐Ÿ‘ค Author

Samir Baladi Interdisciplinary AI Researcher โ€” Neural Engineering, Computational Systems Safety & Geotechnical AI Ronin Institute / Rite of Renaissance

Contact Link
๐Ÿ“ง Email gitdeeper@gmail.com
๐Ÿง‘โ€๐Ÿ”ฌ ORCID 0009-0003-8903-0029
๐Ÿ™ GitHub github.com/gitdeeper12
๐Ÿ”ฌ Zenodo doi.org/10.5281/zenodo.20374106

Systems Safety & Engineering (AI-augmented) ยท GEOTECH-AI-02 ยท Version 1.0.0 ยท May 2026

DOI PyPI License: MIT Domain

"Structural integrity is not negotiated with the rock mass โ€” it is enforced through geometry, physics, and AI-governed constraint design."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tunnel_shield_engine-1.0.0.tar.gz (77.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tunnel_shield_engine-1.0.0-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file tunnel_shield_engine-1.0.0.tar.gz.

File metadata

  • Download URL: tunnel_shield_engine-1.0.0.tar.gz
  • Upload date:
  • Size: 77.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: TUNNEL-SHIELD-Uploader/1.0.0

File hashes

Hashes for tunnel_shield_engine-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf315c6a0d6e839cb8c683440988d54b4b69d7cbe437d7a648af517e9e51d6ce
MD5 f4f2fdf400d9ffac2365d42cf81f6104
BLAKE2b-256 264304a52a183792b83612ac016c2b5a0ededd48c9ec1b357f07cf76b5d2f79f

See more details on using hashes here.

File details

Details for the file tunnel_shield_engine-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tunnel_shield_engine-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c920da17987e9494a242b8038a76e0765b561294f9ab72928fb7379ce99f0a71
MD5 69d79ee1ed35e0f19e6f78625a962ce2
BLAKE2b-256 07fabf72fd6ef0db7ce489896f31d6bc5d0c66104874446b28497843ce21b00e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page