ai-drift-detector

Certificate-Based Drift Detection Audit for Time-Series Forecasting (Electricity Demand × Weather)

Keywords: drift detection, time-series forecasting, model monitoring, MLOps, audit trail, reproducibility, accountability, electricity demand forecasting

Raw data → deterministic audit → certificate → PASS/FAIL

Protocol overview: Raw data → deterministic audit → certificate → PASS/FAIL.

Here, “drift” means an operational integrity breach (data/logic/config mismatch) that makes the verdict non-reproducible—not a statistical change optimized by post-hoc tuning. ai-drift-detector is a deterministic audit protocol for time-series operations. It binds inputs and logic to tamper-evident fingerprints, then outputs a reproducible certificate and an append-only ledger so any third party can re-run the same audit and obtain the same PASS/FAIL verdict.

Note: Bundled CSVs are reproducibility datasets provided to verify the audit protocol. The system is designed with strict data binding; it will cease execution if the input integrity or logic identity does not match the predefined fingerprints.


🔗 Quick Links


📑 Audit Report (PDF)


💎 Design Philosophy: From “Probabilistic” to “Accountable”

To address the “opaque inference” problem in conventional AI operations, this framework provides:

[!TIP] Audit-First Design
Alongside running predictions, it automatically generates objectively verifiable evidence for third parties.

[!IMPORTANT] Tamper-Evident Fingerprints
It fixes hash fingerprints of input data and configuration parameters, making post-hoc modifications mathematically detectable.

[!NOTE] Verifiable Integrity
Rather than mere statistical optimality, it makes visible the model’s faithful adherence to operational rules.


🛠 Technical Specifications

System Requirements

Project Structure

.
├── ghost_drift_audit_JP.py    # Core Logic & Audit Engine
├── electric_load_weather.csv  # Input: Weather (dummy for smoke test)
├── power_usage.csv            # Input: Demand (dummy for smoke test)
└── adic_out/                  # Output: Accountability Ledger


⚙️ Execution Profiles

Strictness is selected in ai-drift-detector.py.

Configuration (ai-drift-detector.py)

STRICT_AUDIT_MODE = True : Logic Identity + BOM resilience enabled

🚀 Deployment & Usage

1) Setup

pip install numpy pandas matplotlib

2) Data

Place power_usage.csv and electric_load_weather.csv next to the .py script.

[!CAUTION] Strict Mode has no synthetic fallback. Use the provided reproducibility datasets or your own audited datasets (valid headers required).

3) Run

python ai-drift-detector.py

4) Outputs

🎯 Scope & Limits

🛡️ Threat Model

📜 License & Notice

Code:MIT

From “prediction” to “accountability.” GhostDrift Mathematical Institute (GMI)