← Lab /AI/ML

FRAG detects FHIR race conditions with 90% F1 score

The FRAG algorithm achieves a 90.0% F1 score in detecting healthcare interoperability race conditions

AI/ML arXiv 3 Apr 2026 Method Prototype evidence

Published as “Analyzing Healthcare Interoperability Vulnerabilities: Formal Modeling and Graph-Theoretic Approach”

Why it matters

FRAG can reliably flag certain FHIR race conditions when complete, high-resolution logs are available, but its utility is limited in real deployments lacking mandatory ETag logging or finer-grained timestamps.

Summary

FRAG detects Simultaneous Write Conflict and TOCTOU Authorization Violation with near-perfect F1 scores (98.0% and 99.9%) under fully concurrent, unsynchronized access, but its overall F1 drops to 78.5% versus a 98.8% baseline and collapses to 26.4% when partial ETag synchronization is present; detection of Cascading Update Race remains low (41.5% F1). The evidence comes from evaluation on 1,500 synthetic FHIR R4 transaction logs.

What they found 2

  1. Under full concurrent unsynchronized access (C2), FRAG achieves 98.0% F1 on SWC and 99.9% F1 on TAV.

    “FRAG attains a 78.5% F1 score vs. 98.8% for the baseline, with FRAG achieving 98.0% on SWC and 99.9% on TAV while the baseline fails to distinguish CUR chains.”

  2. When partial ETag synchronization is applied (C3), FRAG overall F1 drops to 26.4% due to recall collapse.

    “FRAG attains a 26.4% overall F1, a significant drop from C2 (78.5%→26.4%).”

Caveats 6

  • Overall detection performance under C2 is 78.5% F1, substantially lower than the baseline's 98.8% F1.
  • Cascading Update Race detection remains weak at 41.5% F1 under C2.
  • Recall and overall F1 collapse under partial ETag synchronization (C3), limiting practical usefulness.
  • The simulation uses artificial transaction logs.
  • The FRAG model requires access logs to be available.
  • Timestamp resolution of 100 ms is a conservative estimate of FHIR server log granularity.

What’s new here 4

  • Introduces a formally defined directed graph model (FRAG) to represent resource access in FHIR systems.
  • Defines three clinically relevant race condition classes (SWC, TAV, CUR) with formal connections to graph properties.
  • Presents a three-pass graph-traversal detection algorithm for these race classes.
  • Evaluates the approach on synthetic FHIR transaction logs and releases the implementation as open source.