Skip to main content
Diversion Engine v2.0 — Validation Report

EMS Drug Diversion Detection — Validated Across 1,005 Scenarios

NarcTrack's diversion detection engine is validated against 1,005 synthetic clinical and adversarial test cases before updates ship. Every stage of custody runs through the engine, covering Schedule II–V controlled substances as well as non-controlled ALS and BLS box medications.

1,005

Test Cases

Across 63 clinical categories

100%

Pass Rate

Zero failures, zero regressions

26

Pattern Detectors

Independently validated

4

Risk Domains

Access · Inventory · Behavioral · Geographic

What we detect

26 validated pattern detectors

Every detector is independently tested against boundary conditions, real-world drug-specific parameters, and compound multi-pattern scenarios.

Access Domain

6 access pattern detectors

Off-Hours Access

Flags controlled substance movements outside a provider's established shift window, with graduated penalty by hours outside shift.

Access Domain

High-Frequency Access

Detects movement counts exceeding 2× a provider's rolling 30-day average, surfacing access patterns inconsistent with patient load.

Access Domain

Atypical Transfer Routes

Compares each drug movement origin-destination pair against the provider's established common routes. Unusual pairings are flagged.

Access Domain

Rapid Successive Access

Triggers when consecutive controlled substance accesses occur fewer than 20 minutes apart, with elevated severity under 10 minutes.

Access Domain

Shift-Boundary Activity

Monitors events within ±15 minutes of shift handoff times (07:00 and 19:00 ET), a known high-risk window for diversion incidents.

Access Domain

Chronic Shift-Boundary Pattern

Identifies providers whose events cluster near shift boundaries at a rate exceeding 30% of all events over 30 days.

Access Domain

Inventory Domain

7 inventory pattern detectors

Inventory Variance

Detects discrepancies between expected par levels and actual controlled substance counts. Schedule II drugs carry a 1.5× severity multiplier.

Inventory Domain

Waste Documentation Gap

Flags any controlled substance administration event missing corresponding waste documentation — a direct DEA compliance indicator.

Inventory Domain

Systematic Shrinkage

Identifies consistent, small-amount shortages across consecutive events — the hallmark of incremental diversion designed to avoid detection.

Inventory Domain

Micro-Shortage Tracking

Tracks sub-10mg individual event shortages (0.1–9.9mg) that fall below typical single-vial alert thresholds.

Inventory Domain

Cumulative Shortage — Elevated (50mg+)

Escalates automatically once rolling micro-shortages across a provider or unit cross the 50mg cumulative threshold.

Inventory Domain

Cumulative Shortage — Critical (100mg+)

Triggers high-priority supervisor case escalation when rolling micro-shortages cross 100mg cumulative loss.

Inventory Domain

Concentration Verification

Compares recorded drug concentrations against the organization's controlled substance catalog. Deviations greater than 5% indicate possible substitution.

Inventory Domain

Behavioral Domain

10 behavioral pattern detectors

Self-Witness Accountability

Detects when a provider records themselves as witness on their own controlled substance events — eliminating the independent oversight requirement.

Behavioral Domain

Chronic Self-Witness Pattern

Escalates when self-witnessed events represent 3 or more occurrences in a 30-day window, indicating a structural accountability failure.

Behavioral Domain

Pharmacodynamic Interval Validation

Validates that repeat administrations respect minimum safe intervals for each drug class — fentanyl (20 min), morphine (30 min), oxycodone (45 min), and more.

Behavioral Domain

Statistical Outlier — Moderate (2σ+)

Computes z-scores against org-wide 30-day drug usage baselines, flagging providers more than 2 standard deviations above peer norms.

Behavioral Domain

Statistical Outlier — Severe (3σ+)

Escalates statistically extreme peer deviations of 3+ standard deviations to priority supervisory diversion review.

Behavioral Domain

Sub-Therapeutic Dosing Detection

Identifies doses below 60% of weight-based minimums for fentanyl, morphine, midazolam, and ketamine — a key indicator of possible drug substitution or diversion.

Behavioral Domain

Prior Alert History

Incorporates a provider's 30-day alert history as a behavioral context signal, with graduated impact up to 40 points for 4+ prior alerts.

Behavioral Domain

Extended Custody Monitoring

Flags when a controlled substance box remains in a single provider's custody for more than 8 hours, with severity scaling beyond 16 hours.

Behavioral Domain

Chronic Sub-Therapeutic Pattern

Escalates when a provider exceeds 5 sub-therapeutic dosing events in 30 days, indicating a systematic pattern rather than an isolated incident.

Behavioral Domain

Peer Frequency Deviation

Benchmarks each provider's movement rate against the organization's mean and standard deviation, flagging significant outliers in access frequency.

Behavioral Domain

Geographic Domain

3 geographic pattern detectors

Location Anomaly Detection

Compares GPS coordinates of each drug movement against expected dispatch location. Events more than 500m off-location are escalated; beyond 3km is critical.

Geo Domain

Geospatial Impossibility Detection

Uses haversine calculations to identify physically impossible travel between consecutive GPS-logged events — a definitive indicator of falsified location data.

Geo Domain

Manual Override Monitoring

Flags events where location or system safeguards were manually overridden, providing a full audit trail of circumvention activity.

Geo Domain

How we validate

Rigorous by design

Every release of the diversion engine runs against the full 1,005-case validation suite. No deployment ships with a regression.

01

Boundary Condition Testing

Every numeric threshold in the engine is tested at threshold − 1, exactly at threshold, and threshold + 1. This covers 15 distinct boundary types across all detectors — eliminating off-by-one errors that produce false negatives at the exact edge.

02

Drug-Specific Parametric Sweeps

Each controlled substance has unique pharmacodynamic intervals, dosing guidelines, and scheduling classifications. Tests are generated per drug — fentanyl, morphine, hydromorphone, oxycodone, midazolam, ketamine, and more — with weight-adjusted dose calculations across four patient weight classes.

03

Compound Pattern Validation

Real diversion rarely involves a single flag. The suite includes 326 compound tests — 2-pattern through 6-pattern combinations — confirming that multi-signal events score and escalate correctly without pattern interference or double-counting.

04

Isolated Mock Data Injection

Detectors that depend on historical database state — prior administrations, peer drug usage, substance catalog concentrations — use injected mock fixtures. Each test runs against a known, controlled state, making results deterministic and reproducible across environments.

05

Clean Event Verification

Equally important: 28 clean-event test categories confirm the engine does not flag normal clinical activity. Tests span all controlled drug classes, mid-shift hours, standard routes, and correct dose ranges — validating specificity alongside sensitivity.

06

Risk Level Escalation Tests

The scoring model's four risk levels (low, medium, high, critical) and escalation rules are validated independently. Escalator conditions — such as 4+ high-severity patterns or patterns spanning 3+ risk domains — are tested to confirm correct floor behavior.

"Every release of the diversion engine validates against all 1,005 test scenarios before it ships. Whenever we add a new detector, the prior scenarios verify zero regressions."
— NarcTrack Engineering

Test coverage

Every detector, by the numbers

Pattern detectors sorted by times exercised across the full validation suite. Each was verified to fire correctly and to stay silent when it should.

High-Frequency Access350
Off-Hours Access344
Rapid Successive Access215
Self-Witness169
Micro-Shortage153
Extended Custody147
Inventory Variance147
Location Anomaly139
Atypical Routes137
Prior Alert History128
Waste Documentation119
Systematic Shrinkage111
Manual Override104
Sub-Therapeutic Dose59
Shift-Boundary Event26
Cumulative Shortage — Critical15
Chronic Shift-Boundary12
Cumulative Shortage — Elevated11
Concentration Substitution11
Chronic Self-Witness10
Statistical Outlier — Severe10
Chronic Sub-Therapeutic6
Statistical Outlier — Moderate2
Pharmacodynamic Violation2
Geospatial Impossibility2
Peer Frequency Deviation1

All 63 test categories — 100% pass rate

Every category from boundary conditions to real-world compound scenarios passed without exception on the current engine build.

Access14/14
Baseline2/2
Behavioral20/20
Boundary — Cumulative Shortage13/13
Boundary — Custody16/16
Boundary — Dose Variance12/12
Boundary — GPS17/17
Boundary — High Frequency10/10
Boundary — Off-Shift13/13
Boundary — Prior Alerts9/9
Boundary — Rapid Access15/15
Boundary — Self-Witness8/8
Boundary — Shift Boundary Rate10/10
Boundary — Sub-Therapeutic9/9
Clean — All Drugs9/9
Clean — High Usage1/1
Clean — Interval6/6
Clean — Inventory3/3
Clean — New Provider1/1
Clean — Shift Config5/5
Clean — Witness3/3
Combo — 2-Pattern66/66
Combo — 3-Pattern100/100
Combo — 4-Pattern60/60
Combo — 5-Pattern100/100
Combo — 6-Pattern100/100
Concentration10/10
Concentration — Drug-Specific3/3
Dosing — Fentanyl Sweep48/48
Dosing — Morphine Sweep15/15
Edge — Empty2/2
Edge — Extreme5/5
Edge — Missing2/2
Edge — Multi-Drug3/3
Edge — Par Level2/2
Edge — Patient Weight10/10
Edge — Time1/1
Edge — Zeros1/1
Escalator — 1 High + 3 Total1/1
Escalator — 2 High, 2 Cat9/9
Escalator — Additional3/3
Escalator — Baseline2/2
Escalator — High2/2
Escalator — Medium2/2
Escalator — No Escalation2/2
Escalator — Single Isolation12/12
Geographic5/5
Inventory11/11
Multi-Drug Accumulation10/10
Per-Drug — Clean9/9
Per-Drug — Dose Variance9/9
Per-Drug — Missing Waste9/9
Per-Drug — Non-Controlled5/5
Per-Drug — Outlier9/9
Per-Drug — Self-Witness9/9
Per-Drug — Shrinkage9/9
Real-World Scenarios10/10
Real-World — Drug-Specific4/4
Real-World — Shift Boundary7/7
Risk Levels1/1
Single Pattern — Custody14/14
Single Pattern — GPS14/14
Sweep — Custody14/14
Sweep — Dose Variance15/15
Sweep — Frequency13/13
Sweep — GPS13/13
Sweep — Prior Alerts9/9
Time — Frequency Sweep24/24
Time — Rapid Access Sweep24/24

Ready to see it in action?

The validation report is one part of the story. See how the diversion engine performs against your agency's real workflows.