🎓 Lesson 9 D5

Designing Rule-Based + ML Hybrid Decision Engines

A hybrid decision engine combines clear, human-defined rules (like 'if rock is hard, use more explosive') with machine learning models (that learn from past blast data) to make smarter, safer, and more efficient blasting decisions on farms or mines.

🎯 Learning Objectives

  • Design a hybrid decision logic flowchart that enforces OSHA/MSHA-compliant blast initiation constraints before deferring to an ML-predicted burden recommendation
  • Analyze blast performance data to train and validate a random forest model predicting fragment size distribution (F80) from drilling, explosive, and rock property inputs
  • Explain the trade-offs between rule fidelity and ML generalizability when deploying hybrid engines under sparse-data conditions (e.g., <50 historical blasts per rock type)
  • Apply ISO 13320-compliant laser diffraction post-blast analysis to quantify model error and recalibrate rule thresholds

📖 Why This Matters

Autonomous farming platforms increasingly operate on marginal lands requiring selective rock fragmentation—e.g., removing boulders from vineyard terraces or clearing glacial till for no-till seeding. Pure ML systems fail catastrophically when extrapolating beyond training data; pure rule-based systems cannot adapt to micro-variations in weather, moisture, or jointing. Hybrid engines bridge this gap: they guarantee safety-critical boundaries (e.g., minimum stemming length) while optimizing efficiency using live sensor feedback—making them essential for next-generation agri-blasting robots certified under ISO 25119 (functional safety for agricultural machinery).

📘 Core Principles

Hybrid engines rest on three pillars: (1) Rule layers encode non-negotiable constraints—geotechnical limits (e.g., Kuz-Ram-derived maximum burden), regulatory guardrails (e.g., MSHA §46.57 on explosive storage proximity), and operational logic (e.g., 'no blast if wind > 25 km/h'). (2) ML layers—typically ensemble regressors or Bayesian neural nets—learn latent relationships from multimodal data (drill cuttings imagery, seismic velocity logs, drone-based photogrammetry of muck piles). (3) Orchestrator logic mediates between layers: rules filter unsafe inputs → ML refines parameters within rule bounds → rules re-validate outputs before actuation. Crucially, uncertainty quantification (e.g., prediction intervals from quantile regression forests) triggers rule fallbacks when ML confidence drops below 90%.

📐 Kuz-Ram Burden Prediction with ML Calibration Factor

The Kuznetsov-Rammler (Kuz-Ram) model estimates optimal burden (B) based on rock properties and explosive energy. In hybrid systems, its output is scaled by an ML-derived calibration factor (α) trained on local fragmentation outcomes—ensuring physics-guided initialization with data-driven refinement.

Calibrated Kuz-Ram Burden

B = α × [0.12 × (UCS / RWS)^0.5 × (F₈₀)^0.5]

Calculates optimal burden distance, adjusted by an ML-derived calibration factor to account for site-specific rock mass effects.

Variables:
SymbolNameUnitDescription
B Burden m Perpendicular distance from free face to first row of holes
α ML Calibration Factor dimensionless Output of trained ML model (range: 0.6–1.2); <1.0 indicates systematic under-fragmentation in training data
UCS Uniaxial Compressive Strength MPa Rock strength measured per ASTM D2938
RWS Relative Weight Strength % Explosive energy relative to ANFO (100%) per MIL-STD-1752
F₈₀ Fragment Size (80% Passing) cm Maximum size of particles where 80% of mass is finer; measured per ISO 13320
Typical Ranges:
Soft shale / weathered basalt: 0.35 - 0.55 m
Hard granite / quartzite: 2.2 - 3.8 m

💡 Worked Example

Problem: Given: rock density = 2.65 g/cm³, uniaxial compressive strength (UCS) = 120 MPa, explosive relative weight strength (RWS) = 115%, desired fragment size (F₈₀) = 15 cm, and ML-calibration factor α = 0.87 (from prior 32 blasts in similar shale).
1. Step 1: Compute Kuz-Ram base burden: B₀ = 0.12 × (UCS / RWS)^0.5 × (F₈₀)^0.5 = 0.12 × (120 / 115)^0.5 × (15)^0.5 ≈ 0.12 × 1.022 × 3.873 ≈ 0.474 m
2. Step 2: Apply ML calibration: B = α × B₀ = 0.87 × 0.474 ≈ 0.412 m
3. Step 3: Verify against rule layer: Minimum stemming = 0.7 × B = 0.288 m; check against drill hole diameter (102 mm): required stemming ≥ 2.8× diameter = 0.286 m → passes.
Answer: The calibrated burden is 0.412 m, satisfying both Kuz-Ram physics and stemming safety rules. It falls within the typical range for soft shale (0.35–0.55 m) and avoids over-confinement risks.

🏗️ Real-World Application

In the 2023 California Almond Growers Cooperative pilot, an autonomous rock-removal platform deployed a hybrid engine to clear cobble-rich soils pre-planting. Rules enforced Cal/OSHA §5210 blast exclusion zones (>150 m radius) and prohibited detonation during fog (visibility < 100 m) using LiDAR visibility metrics. An XGBoost model, trained on 87 historical blasts across 4 soil-rock matrices, predicted optimal spacing-to-burden ratio (S/B) with ±0.08 RMSE. When S/B predictions fell outside the rule-enforced band [1.15, 1.45], the system auto-reverted to S/B = 1.3 — the empirically validated median for volcanic tuff. Result: 99.2% blast success rate, zero regulatory violations, and 22% less explosive mass used vs. conventional fixed-ratio designs.

🔧 Interactive Calculator

🔧 Open Functional Safety Check

📋 Case Connection

📋 AGCO Fendt Xaver Autonomous Grain Cart System in Saskatchewan Wheat Fields

Achieving real-time, centimeter-accurate path following and dynamic grain transfer coordination between autonomous grain...

📚 References