Command Center
Live Engine
Quality is derived from residual magnitude and cross-channel consistency, not a certified sensor built-in-test. A large residual on one channel inconsistent with all physically-linked channels is flagged as a likely sensor problem rather than an engine problem.
Diagnostics
Observed residual signals are supplied to the model as input, not SHAP values or proven causal attributions. They do not represent the complete feature set (60 features total; see Model Validation → feature importance).
Channels are ranked by normalized deviation from physics model expected values, scored by rule cross-checks. For the XGBoost model's own evidence, see the fusion card above.
Not a real accelerometer recording. A short synthetic waveform is generated each tick from current RPM and active fault severity, then a small discrete Fourier transform runs on it in-browser.
Model validation results rendered from the connected client-side ML evaluation pipeline (aerotwin-ml-eval.data.js and aerotwin-standalone-eval.data.js) for the held-out synthetic test split and RUL baseline.
Status: —
| Metric | Value |
|---|---|
| Precision | — |
| Recall | — |
| Macro F1 | — |
| Per-class F1 | — |
| Confusion matrix | — |
| False alarm rate | — |
The fault-injection engine holds ground truth. The diagnostic layer above only ever receives resulting telemetry (never the fault label). This panel proves that separation by revealing ground truth only on request.
Prognostics
*Prototype fuel-efficiency indicator: (RPM × throttle) ⁄ fuel flow. Not a calibrated brake-specific-fuel-consumption value.
Run a mission with a fault scenario to generate an advisory.
Mission
Custom Sensor Baseline Calibration
The fault-injection engine holds ground truth (component health, onset, severity). The diagnostic layer only ever receives the resulting telemetry, never the fault label.
Replay
Run a mission in the Mission screen to record telemetry, diagnosis, and events tick by tick for time-scrub playback.
Reports
Completed simulation runs from this browser session, kept in memory only (not persisted, not real fleet history).
| Mission | Final Health | Max Anomaly | Diagnosis | RUL | Risk |
|---|---|---|---|---|---|
| No completed missions yet this session. | |||||
Engineering
Live Module StateDynamic PipelineUpdates with the simulator
0 samples / 0 s (target 20/20s, true 1 Hz spacing)
Model: — · Features: — · Sampling: 1 Hz
The main tick advances simulated mission time per frame at higher speeds while stepping the pipeline once per second internally. It uses the shared noise stream so the XGBoost 20-second window exactly matches displayed telemetry, rather than an independently re-noised realization or coarse per-tick slice.
Module DetailTechnical Spec
The simulator knows the fault. Diagnostics does not.
- The fault-injection engine holds the ground-truth degradation state (component health, onset time, severity).
- The diagnostic layer receives only the resulting telemetry stream.
- Detection is a genuine inference from sensor patterns, not a lookup of an injected label.
- Faults degrade gradually over simulated hours rather than triggering instantaneously.
- Fault injection can be scheduled before a mission starts, or triggered deterministically mid-mission with Inject Now.
Recommended telemetry columns
- timestamp, engine_id, mission_id: sequencing and identity
- altitude_ft, ambient_temp_C, throttle_pct, mission_stage: operating condition
- rpm, cht_C, egt_C, oil_pressure_bar, oil_temp_C, fuel_flow_L_h, vibration_g, injection_timing_deg: PS-mandated engine telemetry
- battery_voltage_V, alternator_current_A: electrical health
- engine_health_pct, fault_type, fault_severity: ground-truth label, used for evaluation/export only, never fed to the classifier as an input
Directional signature per fault class (7 implemented)
- Misfire: RPM drops/fluctuates, EGT unstable, vibration up, fuel flow irregular.
- Injector degradation: EGT up, fuel flow deviates, vibration up, RPM fluctuates.
- Lubrication fault: oil pressure down sharply, oil temperature up, vibration up.
- Overheating: CHT up strongly, oil temperature up, EGT up.
- Combustion instability: EGT oscillates, fuel flow irregular, injection timing deviates.
- Mechanical vibration fault: vibration dominates, other channels near nominal.
- Sensor drift: one channel diverges while physically-linked channels stay consistent with normal operation.
Scope honesty
- Operational parameters and thermodynamic envelopes are calibrated against the certified Rotax 914 UL / 914 F benchmark (EASA TCDS E.122); in-flight telemetry is generated by the onboard 0D/1D physics simulator for demonstration.
- RUL and mission-risk figures are driven by the XGBoost RUL regressor (150 trees, 37 features; metrics reported by the model artifact on its held-out synthetic split: 2.84h MAE, 3.97h RMSE, R² = 0.927, not independently re-run in this repo). When the regressor is unavailable, a physics/linear-slope heuristic runs (evaluated on the simulator batch: 10 failing test runs, 2,847 timesteps; 1.09h MAE, 11.31h RMSE, 96.6% interval coverage). These two were evaluated on different splits and are not directly comparable.
- The primary fault diagnosis comes from the trained XGBoost classifier (accuracy ≈ 0.958, macro F1 ≈ 0.909 on the test split); it is evaluated on held-out synthetic trajectories and not yet field-validated on an airframe. The rule/signature layer is a separate baseline kept as an independent cross-check.
- The vibration spectrum is a synthetic harmonic waveform based on boxer-4 firing order, not a real physical accelerometer capture.
- Mission comparison history lives in page memory for the current session only.
- Role-based access control and screen gating are a prototype/browser-enforced permission model, not a server-side security boundary.
Where Real Hardware & Models Plug In
- ML models (diagnostics & RUL): Connected in browser runtime. Both the 2,544-tree diagnostic classifier (
ml/aerotwin-ml.js) and the 150-tree RUL regressor (ml/aerotwin-rul.js) execute tree traversal in pure JavaScript. Physical test-cell endurance datasets plug intoml/train_xgboost.pyfor offline training. - Telemetry ingestion (CAN/ECU/FADEC): Replace the tick-driven simulator call in
Service.getTelemetry()with a live feed; the rest of the pipeline (validation → physics → residual → dashboard) is completely unchanged. - Security module: Prototype permission model (role-gating and write-action locks) and reserved call sites in
Service.getSecurityStatus(). Field deployments connect to defense-grade server-side authentication, mTLS transport encryption, and HSM signing.
AeroTwin is parameter-driven rather than airframe-locked. If an operator or defense agency wishes to evaluate a physical dyno-bench run or adapt the digital twin to an indigenous engine (such as the Austro Engine AE300 or DRDO VRDE 180 HP heavy-fuel UAV powerplant), three distinct pathways are supported:
Drag and drop any multi-channel engine test log into the Replay screen. The native client-side parser (csvReplayManager.js) synchronizes timestamps and immediately evaluates physics residuals and XGBoost health diagnostics without server roundtrips.
Update the Tier-2 OEM mechanical boundaries in engineSimulator.js: swept displacement (Vd), rated torque, compression ratio, boost limit, and gearbox reduction. Universal Tier-1 conservation laws (P=ρRT, mass airflow) re-scale automatically.
Connect test-stand dynamometer data acquisition systems or engine FADEC/ECUs directly via SocketCAN, python-can daemon, or ARINC 429 bridge into Service.getTelemetry() at up to 100 Hz sampling rates.
Problem statement alignment across prototype capabilities
- Section A: Digital Twin Core Framework: Virtual engine model synchronized with live data, modular architecture, real-time ingestion capability.
- Section B: Health Monitoring System: RPM, CHT, EGT, oil pressure and temperature, fuel flow, vibration, battery/alternator health, injection timing.
- Section C: Fault Detection & Predictive Analytics: Misfire, injector abnormality, lubrication issues, sensor drift, combustion instability, overheating, abnormal vibration.
- Section D: AI/ML Layer: Fault classification via XGBoost model (primary) with the rule/signature baseline as an independent cross-check; RUL trend analysis and predictive maintenance recommendations are driven by the XGBoost regressor model.
- Section E: Simulation & Replay: Historical replay, environmental simulation, high altitude, endurance, hot weather, rapid throttle transitions.
- Section F: Visualization Dashboard: Real-time health status, fault alerts, efficiency trends, maintenance advisory, mission-wise reports.
Model Basis & Parameter Provenance (Rotax 914 UL/F Benchmark)
4-cylinder · 4-stroke · horizontally opposed boxer · turbocharged with TCU wastegate · 1,211 cm³ displacement. AeroTwin's kinematic baselines and thermodynamic redlines are parameterized exclusively from public civil aviation type certificates and manufacturer maintenance documentation. Reference only. Not OEM telemetry. No partnership, proprietary data sharing, or official endorsement by BRP-Rotax is claimed or implied.
Parameter Register & Epistemic Provenance
Single Source of Truth for AeroTwin Twin Models| Engine Parameter | Published Specification (Rotax 914 UL/F Benchmark) | AeroTwin Physics Role | Epistemic Basis |
|---|---|---|---|
| Architecture & Layout | 4-stroke, 4-cylinder horizontally opposed boxer engine | Cylinder count & boxer-4 vibration harmonics | EASA.E.122 / FAA |
| Regulatory Classification | 914 UL: ASTM F2339 (Tactical UAV / Experimental) 914 F: FAR 33 (FAA TC E00058EN) & JAR-E (EASA TC EASA.E.122) |
Establishes certified airworthiness redlines & operational envelope | Dual Certification |
| Cooling Architecture | Liquid-cooled cylinder heads, ram-air cooled cylinders | Dual thermal baseline (CHT conduction vs. Oil convection) | OEM Spec |
| Aspiration & Boost | Turbocharged with integrated exhaust wastegate & TCU controller | Altitude compensation boundary (ceiling ~15,000 ft; MAP 39.9 inHg) | TCU Control Spec |
| Displacement & Bore/Stroke | 1,211.2 cm³ (73.91 cu in) · 79.5 mm bore × 61.0 mm stroke | Swept volume (Vd) intake displacement airflow | Certified Geometry |
| Compression Ratio | 9.0 : 1 | Peak thermodynamic combustion pressure calculation | OEM Spec |
| Power Output | 84.5 kW (115 HP) @ 5,800 RPM (Takeoff, 5 min) · 73.5 kW (100 HP) continuous | Shaft load & throttle-power translation | Operating Limits |
| Maximum Torque | 144 N·m (106 ft·lb) @ 4,900 RPM | Aerodynamic propeller torque absorption & shaft power coupling | OEM Datasheet |
| Reduction Gearbox | Rotax Gearbox Type 3 (i = 2.43 : 1) with overload clutch & hydraulic governor drive | Matches Layer 4 constant-speed propeller pitch governor physics | Configurator Spec |
| Configured Operating Mass | 75.5 kg (166.4 lb) itemized dry sum (from Rotax 914 Installation Manual; not independently verified): 64.0 kg engine+gearbox, 4.0 kg exhaust, 1.7 kg overload clutch, 2.0 kg suspension frame, 3.0 kg external alternator, 0.8 kg air baffle | Aircraft payload modeling & flight dynamics simulation | 3D Configurator |
| Certified Fuel Grades | min MON 85, RON 95, AKI 91 (AVGAS 100LL, Unleaded Mogas, Ethanol 10 / E10) | Stoichiometric combustion enthalpy (Q̇in = ṁf · LHV) | OEM Operations |
| Operating RPM Range | 5,500 RPM continuous · 5,800 RPM max takeoff · Idle ~1,400 RPM | Telemetry envelope & threshold gating | Certified Redlines |
| Fuel Delivery System | Dual constant-depression carburetors (mechanical metering, 914 UL/F baseline) | Fuel flow dynamics & stoichiometric combustion baseline | Architecture Scope |
3-Tier Parameter Classification (Epistemology Table)
First-Principles vs. OEM Spec vs. Empirical| Epistemic Tier | Physical Variable | Governing Formula / Boundary | Jury Defense Standard |
|---|---|---|---|
| Tier 1: Physics | ISA Troposphere & Air Density | T(h) = T_0 - L·h | ρ = P / (R·T) | Universal conservation laws; zero empirical curve-fitting. |
| Tier 1: Physics | Engine Breathing (Airflow) | ṁ_a = η_v · ρ_MAP · V_d · (N / 120) | 4-stroke Otto cycle displacement mass flow balance. |
| Tier 1: Physics | First Law Thermal Partition | Q̇_in = ṁ_f · LHV = P_shaft + Q̇_exh + Q̇_cool + Q̇_oil | Strict enthalpy conservation from hydrocarbon combustion. |
| Tier 1: Physics | Propeller Torque & Power | Q_prop = C_Q · ρ · n² · D⁵ | P = 2π·n·Q | Dimensional aerodynamic propeller loading scaling. |
| Tier 2: OEM Spec | Swept Displacement (V_d) | 1,211.2 cm³ (79.5 mm bore × 61.0 mm stroke) | Official Rotax 914 UL/F Type Certificate (EASA.E.122). |
| Tier 2: OEM Spec | Max Continuous Power & RPM | 73.5 kW (100 HP) @ 5,500 RPM (Takeoff: 115 HP @ 5800) | Published manufacturer operating limits & redlines. |
| Tier 2: OEM Spec | Turbo Boost Limit (MAP) | 39.9 inHg (1,350 hPa / 135 kPa) with TCU wastegate | Rotax TCU electronically controlled overboost ceiling. |
| Tier 3: Empirical | Thermal Inertia Time Constants | τ_egt ≈ 0.2s | τ_cht ≈ 25s | τ_oil ≈ 90s | Lumped thermal capacitance & slipstream convective cooling. |
AeroTwin exploits these distinct physical thermal capacitance domains to eliminate false alarms: instantaneous thermal shocks are mechanically impossible in liquid/metal substrates without precursor combustion anomalies, enabling deterministic fault vs. glitch discrimination.
Real-World OEM Service Bulletins (ASB/SB) vs. AeroTwin Fault Classes
Official BRP-Rotax Field Failure Mapping| AeroTwin Fault Class | Real-World Physical Failure Mechanism | Official Rotax Service Bulletins (SB / ASB) | Physics Residual Vector |
|---|---|---|---|
| Class 3 & 4: Fuel / Carburetor | Carburetor flange cracking (unmetered air intake), jet pin wear. | SB-914-019-UL (Carburetor Flange Cracking) | +EGT lean spike, ΔFuelFlow |
| Class 5: Lubrication Failure | Oil pump fastener torque relaxation, oil tank venting loss, foaming. | ASB-914-043 (Oil Pump Fixing Bolt Torque) | -OilPress, +OilTemp divergence |
Traditional post-flight ground software requiring a physical USB/serial dongle. Logs retrospective Diagnostic Trouble Codes (DTCs) triggered only after raw sensor limits are breached. No continuous prognostic forecasting or in-flight decision support.
Continuous in-flight digital twinning at 100 Hz. Physics residuals detect micro-drifts hours before static tripwires fire, calculating risk-calibrated Remaining Useful Life (RUL with 90% CI, nominal; empirical coverage not yet verified) and issuing autonomous mission verdicts (Continue / Modify / Inspect / Abort).
The FLYGAS GAS418HA is referenced as a public turbo-normalized UAV piston engine configuration. It is evaluated for Medium-Altitude Long-Endurance (MALE) integration (source: AeroExpo directory). It serves solely as an installation benchmark for long-endurance propulsion modeling, not as a source of proprietary flight or test telemetry.
0D/1D Reduced-Order Thermodynamic & Aerodynamic Architecture
Physics computes the expected engine state under current flight conditions; diagnostics evaluate observed deviation from that baseline.
This build is a software prototype. Engine telemetry is produced by a physics-informed simulator with an operator-controlled fault-injection mode; no physical MALE UAV engine is connected. Numeric operating envelopes are prototype defaults, not manufacturer-certified limits.
RUL, anomaly-score, fault-probability and mission-risk outputs are simulation-derived against synthetic degradation trajectories only. Field-grade validation would require a named reference engine, its performance maps, and real test-rig or flight telemetry (none of which are claimed here).
Module StatusBuild AuditCorrected against actual build state
- Primary XGBoost diagnostic classifier (v4.0.0 · 60 features · 8 classes · 2,544 trees · browser inference)
- XGBoost RUL Regressor (150 trees · 37 features · artifact reports 2.84h MAE, 3.97h RMSE, R² = 0.927 on its held-out synthetic split; not independently re-run here), with physics/linear-slope fallback (simulator batch: 1.09h MAE, 11.31h RMSE, 96.6% coverage; different splits, not directly comparable)
- 0D/1D thermodynamic & aerodynamic physics twin (ISA density, airflow, thermal balance, prop load)
- Rule / signature diagnostic baseline with dual-engine cross-check
- 1 Hz synchronized telemetry sampling layer (authoritative single trajectory)
- Multi-role access control shell with session authentication & audit log
- Client-side telemetry integrity checks & passkey lockdown workflow
- Model validation report rendering (Het's real held-out evaluation data)
- Mission replay engine with JSON/CSV telemetry recording & export
- Backend ML inference service bridge (swapping client runtime for remote server)
- Live telemetry ingestion adapter (Service.getTelemetry() interface / UDP stream)
- Edge deployment runtime wrappers (headless C++ / ONNX / WebAssembly interfaces)
- CAN / SocketCAN protocol parser hooks & frame decoding interface
- Physical MALE UAV engine testbed / dynamometer connection
- Physical CAN / SocketCAN hardware transceiver bus connection
- Hardware HSM-backed model-weight signing & mTLS channel encryption
- Physical edge deployment on airborne embedded computers (NVIDIA Jetson / Raspberry Pi)
- Empirical target-engine calibration against physical dynamometer maps
Deliverables ChecklistSpecification Audit
- Functional software demonstrator
- Digital twin architecture design
- Engine simulation model with mission profile
- Fault-injection engine (scheduled + live)
- XGBoost diagnostic classifier (integrated, primary)
- Rule/signature cross-check baseline
- RUL estimation module (ML XGBoost Regressor)
- Mission-risk scoring
- Sensor data-quality module
- Event timeline
- Mission replay capability
- JSON/CSV mission export
- Application shell, 3 role-based workspaces
- Model validation report (real eval data)
Build PhasingEngineering Roadmap
| Phase | Scope | Track |
|---|---|---|
| 1–3 | Simulator, mission profile, telemetry schema, application shell | core |
| 4–5 | Physics baseline, residual analysis, fault injection | core |
| 6–8 | Anomaly detection (rule), ML RUL, mission risk | core |
| 9–10 | Event timeline, replay, reports | core |
| 11 | XGBoost diagnostic classifier integration (1 Hz sampling, cross-check, validation report) | core |
| 12 | CAN / SocketCAN ingestion path, backend ML inference, edge deployment | integration-ready / planned |
| 13 | Physical engine testbed calibration, hardware HSM/mTLS cryptography, airborne edge deployment | planned |
Security
Multi-Device Threat Monitor SECURITY DEMO STATE
Real-time detection of coordinated unauthorized access (client-side demo state)
| Device | Type | Status | Requests | Action |
|---|
No coordinated attack detected.
AeroShield Security
Emergency protection for unauthorized multi-device access and telemetry integrity.
Module StatusBuild AuditCorrected against actual build state
- role-gated screen/action visibility
- session-local audit log
- client-side telemetry range/delta checks
- passkey-protected lockdown workflow (browser demo)
- remote security coordinator dispatch
- backend audit log aggregation API
- packet-level cryptographic authentication
- TLS/mTLS channel encryption
- real device attestation/fingerprinting
- HSM-backed model-weight signing
Architecture Integration Modules
Reserved integration points for zero-trust cryptographic verification, role-based access control, and telemetry anti-tamper interfaces for edge and ground telemetry streams.
User/role identity verification for Operator, Maintenance and Engineer access.
Service.getSecurityStatus().identityPrototype browser-enforced permission model gating screens and write actions per role. Not a certified defence-grade or server-side security boundary.
AeroTwin.permissions.canAccess(role, screen, action)Real-time range validation, sudden delta detection, and thermodynamic cross-sensor consistency monitoring.
checkTelemetryIntegrity()Cryptographic packet authentication, sequence replay protection, and UAV/Ground/ECU channel validation.
AeroTransportSecurity.check()Immutable log of mission actions, security alerts, fault injections, and administrative overrides.
auditSecurity()Cryptographic signature and hash verification for physics models, ML XGBoost weights, and fault thresholds.
AeroModelIntegrity.verify()