Submitted:
05 September 2026
Posted:
07 September 2026
You are already at the latest version
Abstract
Healthcare has led every industry in average breach cost for more than a decade, and the largest recent incidents in the sector began with credentials that were valid at entry and were never re-verified afterwards. Continuous authentication targets that failure, but the literatures that could supply it are each incomplete: reinforcement-learning risk engines adapt without justifying their decisions, explainable-AI authentication explains only after the fact, and neither prices the cost of obstructing a clinician, which in a clinical setting is a patient-safety event rather than a usability nuisance. This paper presents the Hybrid Explainable Adaptive Authentication Framework (HEAAF), a zero-trust policy engine that produces an exact attribution inside the decision cycle and carries patient safety as an explicit policy term. HEAAF is evaluated by simulation: the behavioural channel is the real CMU keystroke-dynamics benchmark under a genuine template-ageing split, coupled to a documented clinical context generator supplying six labelled attack scenarios with ground-truth driver sets and hard negatives, with every policy read at a matched 1% clinical friction budget over eight seeds. Three results follow. Grouping makes exactness affordable: sixteen evidence features partition into eight semantic groups, so exact group Shapley values cost 28 = 256 coalition evaluations in one batched pass, and a complete decision with an exact justification takes 0.611ms against 1.214ms for the same decision explained by approximate integrated gradients; we further show that summing feature attributions into groups is not the group Shapley value and that the two disagree on the dominant factor once in eight decisions. An explicit clinical safety valve removes emergency denials outright, from 1.10% to 0.000% for a G mean cost of 0.005, and the graded escalation ladder delivers the same detection for 7.6 rather than 26.5 clinician-hours of annual friction. Contrary to our starting hypothesis the reinforcement learning risk score is not the strongest detector: a supervised detector in the same policy engine gains 0.378 G-mean, which relocates the contribution of reinforcement learning to the graded action policy. Code, seeds and the scripts that regenerate every reported number are released.
Keywords:
continuous authentication
; explainable AI
; Shapley values
; zero trust architecture
; smart healthcare
; Internet of Medical Things
; reinforcement learning
; keystroke dynamics
1. Introduction
Smart healthcare couples electronic health records (EHRs), Internet of Medical Things (IoMT) devices, telemedicine and cloud platforms into a single data-driven care pathway, and in the United Kingdom the NHS sits at the centre of national critical infrastructure on that basis [1]. The same integration widens the attack surface. IBM’s 2025 analysis places healthcare at the top of the breach-cost table for the fourteenth consecutive year, at an average of USD 7.42 million per breach, with a mean of 279 days to identify and contain [2]; credentials remain the dominant entry vector [3].
Two incidents define the problem. In February 2024, attackers entered Change Healthcare through a remote-access portal that did not enforce multi-factor authentication, using valid credentials, and moved laterally for nine days before deploying ransomware; the breach affected an estimated 192.7 million individuals. In June 2024 the Qilin group encrypted systems at Synnovis, the pathology provider for two large London NHS trusts; NHS England recorded delays to over 11,000 outpatient and elective appointments [4], 1,710 operations were postponed, and King’s College Hospital NHS Foundation Trust subsequently confirmed that the disruption contributed to a patient death.
The common structure is that authentication was a gate rather than a process: once the gate was passed, nothing re-verified the identity behind the session while it enumerated records for days. This is the failure the NIST Zero Trust Architecture (ZTA) model is designed to eliminate, by requiring access decisions to be re-evaluated continuously from identity, behaviour and environmental signal [5,6].
Two research directions supply components of such a system, and neither is deployable in a hospital alone. Reinforcement-learning risk engines adapt the challenge to contextual risk — RLAuth reports a G-mean of [7], and Bansal and Ouda show keystroke dynamics support continuous verification via a deep Q-network [8] — but both are opaque, and RLAuth’s authors observe that their system cannot detect attacks mounted from known environments, such as a colleague at a familiar workstation [7], which is exactly the insider case that dominates healthcare enforcement action. Explainable authentication combines CTGAN augmentation with LIME for keystroke authentication [9] and applies SHAP and LIME to touch-stroke continuous authentication [10], but explanation is post-hoc and evaluated on a closed corpus, with no adaptive control loop.
A third gap belongs to neither literature. In a clinical environment the cost of a false challenge is neither symmetric with the cost of a missed detection nor constant: interrupting a billing query and interrupting a resuscitation are different events. Koppel et al.’s ethnography documents the consequence when this is ignored — staff share credentials, defeat logout and route around controls, because the controls were designed without reference to clinical tempo [11]. Any policy that treats friction as a scalar nuisance will reproduce that outcome.
1.1. Contributions
We make four contributions, each stated with the evidence that supports it so that a reader can go directly to the experiment that would falsify it.
- 1.
- Exactness through grouping, and a correction to common practice. The explanation disclosed to a clinician need not be an approximation. The sixteen evidence features partition into eight semantic groups, so the group game admits exact Shapley values at coalition evaluations, which form a single batched forward pass. Measured at ms, a full decision with an exact justification costs ms end to end — cheaper than the same decision explained by approximate integrated gradients ( ms). We prove, and verify numerically, that summing feature-level Shapley values within a block is not the Shapley value of that block in the quotient game once interactions of order three or above straddle groups unevenly, and we measure the disagreement (; the two name a different dominant group in of decisions). The caution applies wherever attributions are aggregated for readability, well beyond authentication. Evidence: Section 4.4, Section 6.4; Table 5.
- 2.
- A clinical safety valve and graded escalation ladder, specified and isolated. We map HEAAF onto the NIST zero-trust policy engine / policy administrator / policy enforcement point decomposition and add a safety valve making patient-safety cost an explicit term in the decision: under declared emergency the engine may escalate but can never deny — a structural guarantee our test suite verifies exhaustively rather than an empirical tendency. Holding detector and friction budget fixed, the valve takes denial under emergency from to for a G-mean cost of , and the graded ladder delivers identical detection at lower annual clinician-hour cost, because escalation substitutes an eight-second challenge for a forty-five-second denial. Evidence: Section 4, Section 6.1; Table 3Table 4.
- 3.
- A negative result that relocates the value of reinforcement learning. The RL-derived risk score is outperformed on detection by a supervised detector inside the same policy engine, by G-mean with a paired bootstrap interval excluding zero by a wide margin. The same agent’s action-values, routed through the calibrated head, graded ladder and valve, take benign interruption from to . The contribution of the RL formulation therefore lies in the action layer, not in scoring — against our own starting hypothesis and against the framing of much of the adaptive-authentication literature. Evidence: Section 6.1, Table 3.
- 4.
- The explanation channel treated as an attack surface, in a released and mechanically checked artefact. An adversary against a continuous-authentication system controls the features being attributed and can probe repeatedly, so a signed attribution vector paired with a score approaches a gradient oracle. We implement role-scoped disclosure and quantify what each audience receives: the challenged subject is given one group of eight and a three-level band with no score, at most bits per decision, covering of the positive attribution mass. The pipeline, simulator, seeds and an invariant test suite checking the axioms and safety properties the argument depends on are released at github.com/riteshmukherjee/heaaf. Evidence: Section 7, Section 1.1.
An earlier revision injected a supervised gradient-boosting score as a seventeenth feature shared by every policy. That configuration is withdrawn: it placed a supervised detector underneath both the RL agent and the supervised baseline it is compared with, making the central comparison uninterpretable, and on held-out data it also degraded the supervised detector (AUROC with the extra feature, without). Every policy reported here consumes the same sixteen interpretable features; removing the stacked feature weakens the RL score, which makes our third contribution harder for us rather than easier.
2. Related Work and Positioning
Table 1 positions this work against sixteen representative studies, ordered by year within theme so the recent trajectory of the field is visible. Three axes matter.
Adaptive authentication. Statistical risk-based authentication in the style of Freeman et al. [12] multiplies per-feature likelihood ratios and is the design measured at scale by Wiefling et al. [15] over 31.3 million logins; the same group finds users perceive it as more usable than blanket two-factor authentication [24], and Gavazzi et al. document how uneven its adoption remains [25]. Reinforcement-learning formulations [7,8,14] replace the hand-tuned score with a learned one, and sensor-based continuous schemes extend the evidence base [13]. None of these systems explains itself, and none carries a cost term that distinguishes clinical urgency.
Attribution. The dominant estimators are KernelSHAP [26] and integrated gradients [27]; the estimator landscape and its error behaviour are surveyed [28], KernelSHAP’s regression formulation improved [29], the theory of integrated gradients tightened [30], and estimation amortised into a learned network [16]. Applied security has adopted these tools quickly, attaching attribution to intrusion detection in cyber-physical systems [17], industrial IoT threat response [18] and multimodal phishing detection [20], alongside deep detectors that remain opaque [19]. All of this literature treats exactness as unattainable in deployment and competes on the approximation frontier. Our observation is narrower and, here, decisive: exactness is unattainable over sixteen features, but the quantity a clinician is shown is defined over eight groups, and there it is affordable. The relationship between a game and its quotient under a partition is classical [31,32]; what appears not to have been noted is that the block-sum shortcut used in practice does not recover the quotient value, and we measure the gap.
Zero trust, clinical cost and explanations as an attack surface. Zero trust is now the reference architecture for clinical estates [5,6], and healthcare-specific reviews and roadmaps argue the case [21,22]; a companion study quantifies how much risk individual controls remove from a simulated hospital estate [23], but at the level of a control portfolio rather than a single access decision. What none of this work supplies is a per-decision policy whose objective distinguishes obstructing a clinician from obstructing an ordinary user. Separately, explanations leak: attributions disclose membership [33], Shapley vectors permit reconstruction of private inputs [34], post-hoc explainers can be actively fooled [35], and the surface is surveyed [36,37]. In authentication the risk is sharper than in classification, because the adversary controls the very features being attributed and can iterate. To our knowledge no authentication paper treats its own explanation output as a channel to be budgeted; Section 7 does.
3. Threat Landscape and Requirements
We ground the design in five threat classes, each instantiated by a documented incident, and derive a requirement from each. Ransomware: Synnovis degraded blood-transfusion capability across south-east London and produced nearly 600 recorded patient-safety incidents [4], so R1: containment must occur within the session, not at the next audit cycle. IoMT device vulnerabilities: connected monitors and infusion pumps run aged firmware and often cannot present certificates, placing them outside a conventional zero-trust boundary [38], so R2: the control must operate on session evidence rather than device-side attestation. Credential-based attacks: Change Healthcare exposed one portal without MFA, and HHS OCR’s proposed rulemaking would remove the “addressable” designation for MFA [39], so R3: possession of valid credentials must not confer an unchallenged session. Supply-chain compromise: Synnovis was a supplier rather than a trust, and MCNA Dental exposed roughly 8.9 million records through a single vendor, so R4: third-party sessions require scope enforcement, not merely authentication. Insider misuse is where behavioural biometrics are weakest, because the genuine user is at the keyboard, so R5: detection must fuse access-pattern with behavioural evidence. Finally, from the clinical-workaround literature [11], R6: the policy must distinguish emergency from routine context and price obstruction accordingly.
4. The HEAAF Framework
4.1. Architecture
HEAAF comprises four layers, shown in Figure 1. The Behavioural and Contextual Data Layer continuously assembles evidence across eight semantic groups: keystroke dynamics (kd_dist, kd_speed_dev, kd_flight_var), device posture (dev_unknown, dev_risk), network and location (net_zone_risk, geo_novel, impossible_travel), temporal context (time_dev), access pattern (vol_z, no_care_rel), peer-group behaviour (peer_dev), session assurance (auth_age, fail_recent) and clinical context (res_sens, emergency). The partition is mutually exclusive and jointly exhaustive — asserted at import time and unit-tested, because the exactness and completeness guarantees of Section 4.4 depend on it — and is the unit at which the clinician-facing disclosure is made. The Adaptive Risk Evaluation Layer maps that evidence to a calibrated risk score. The Explainable Decision Layer (EDL) attributes the score across the eight groups in the same decision cycle. The Adaptive MFA Trigger converts score and attribution into one of four enforcement actions.
In ZTA terms [5], the risk layer and EDL constitute the policy engine, the MFA trigger is the policy administrator, and the EHR or IoMT gateway is the policy enforcement point.
4.2. Decision Problem
A session is a sequence of decision epochs. At epoch t the engine observes , , and selects . The episode terminates when the session ends, when a challenge contains an adversary, or on denial. Actions change the state the next request is judged in — a step-up resets the strong-authentication clock — so the problem is sequential rather than a sequence of independent classifications.
Writing for the action-value function learned by a Double DQN [40,41], the risk score is the calibrated advantage of challenging over allowing,
where is the logistic function and are fitted by Platt scaling [42] on the validation split so that the number the policy thresholds — and the EDL attributes — is calibrated rather than an arbitrary margin [43].
The reward encodes the clinical asymmetry that motivates the design. A missed compromise costs , scaling with data sensitivity; a frictionless allow on benign traffic earns a small positive reward, so the agent is not rewarded for blanket suspicion; challenges carry a friction penalty graded by clinician time plus an additional penalty under declared emergency, with denial penalised far more heavily than a one-time code; and correctly challenging a compromised session earns a reward graded by how much of the session remains to be contained. The complete reward, hyperparameter and cost configuration is released as a single file rather than tabulated here, so it cannot diverge from the code that consumed it.
4.3. Policy Engine and Clinical Safety Valve
Let denote data sensitivity and flag a declared emergency context. With , a sensitivity floor and an emergency relief term , and writing :
The valve has a specific semantics: under emergency context the system may escalate but may never deny. A clinician is never locked out of a resuscitation by an automated risk score; the worst case is a second factor. This is a structural guarantee, not an empirical tendency, and our test suite verifies it exhaustively over the whole risk range (Section 1.1). It implements R6 directly, and Section 6.1 isolates its effect.
4.4. Explainable Decision Layer
The EDL attributes the risk logit rather than the probability, so contributions combine on an additive scale, and uses a fixed clinical reference — the median benign ward access — so every explanation is contrastive against stated routine activity rather than an uninterpretable zero vector [44].
Two games, not one
Let N be the sixteen features and the characteristic function that switches a subset on against the reference. Exact Shapley values over N require evaluations. Let be the semantic partition (Section 4) and define the quotient game on eight players. Exact Shapley values of require evaluations.
| Algorithm 1:HEAAF decision cycle at one epoch |
|
It is tempting — and common — to compute feature attributions and sum them within blocks. That is not the same object. Writing v in the unanimity basis , block B receives by summation but in the quotient game, where is the set of blocks T touches. For these coincide for every partition; they first diverge at when a term splits unevenly, for instance against for a two-one split. Both remain complete, so the disagreement is purely in how credit is apportioned. Since a ReLU Q-network carries interactions of order above two, the divergence is real here, and Section 6.4 measures it. We report the exact quotient value as the disclosed quantity.
Cost and rendering
The 256 coalition states of one request form a single matrix, so the whole exact group attribution is one batched forward pass — which is why exactness is affordable inline, and why it is measured (Section 6.5) to be cheaper than a sixteen-step integrated-gradients approximation needing sixteen sequential backward passes. Attributions are rendered through templates into one line of clinical English, for example: “A one-time code was requested: the connection is coming from an unusual place. This was the main factor in the decision.” Section 7 explains why the subject sees one group and a band rather than a vector and a score.
5. Experimental Methodology and Simulation Design
5.1. Why Simulation, and What It Can and Cannot Support
The evaluation instrument is a simulation: a hybrid environment in which the behavioural channel is a real biometric corpus and the clinical context around it is generated by a documented stochastic model. We are explicit about this because the choice determines which claims are admissible. It is not a physical testbed, and no production hospital traffic, patient data or partner telemetry is involved.
Simulation is the necessary instrument here for three reasons, none of which a production access log satisfies. First, the central attribution claim requires ground truth about causation: every malicious event must carry the set of features the adversary actually perturbed, so an explanation can be scored against the causal mechanism rather than against another explainer. A real access log records what happened, not which signals an attacker moved. Second, the study requires control of the base rate and of confounding benign behaviour, so friction is measured against legitimate-but-unusual activity rather than an easy baseline. Third, evaluating denial under declared emergency requires generating emergencies deliberately, which cannot ethically be arranged in a live clinical setting.
The environment therefore supports relative comparison of policies under identical conditions, the form of every claim in Section 6: each policy sees the same events, at the same matched budget, over the same seeds. Absolute rates are properties of the generator, not estimates of hospital reality (Section 8). Two independent checks constrain the simulator rather than leaving it unfalsifiable: the behavioural channel must reproduce the published error rate of its verifier (Section 6.7), and the malicious base rate is fixed to the operational order of magnitude reported for clinical estates.
5.2. Behavioural Channel: Real Keystroke Dynamics
The behavioural channel is real. We use the CMU keystroke-dynamics benchmark [45]: 51 subjects typing the password .tie5Roanl 400 times across 8 sessions separated by at least 24 hours. Sessions 1–4 enrol the per-subject template, sessions 5–6 supply training and validation behaviour, and sessions 7–8 — the most template-aged — supply test behaviour. The split therefore contains genuine template ageing rather than a random shuffle, which is a stricter test than the shuffled evaluations common in the keystroke literature. The verifier is the scaled-Manhattan detector, the strongest of the fourteen algorithms in the original study; we reproduce its error rate as a sanity check and enforce it as a unit test (Section 6.7).
5.3. Clinical Context Simulator
No public corpus couples keystroke biometrics to clinical role, shift pattern, resource sensitivity and labelled insider compromise. The contextual, access-pattern and clinical channels are therefore generated around each real keystroke sample by a documented generator with an explicit parameter table, covering roles, three-shift rotas, device estates, ward geography and resource sensitivity. Each simulated access event draws a role and shift, samples a device and network location conditional on that role, derives temporal and peer-group deviation features against the role’s rolling profile, and attaches a sensitivity level and emergency flag to the requested resource; the real keystroke sample supplies the behavioural features unchanged.
Three properties of the simulation are load-bearing. Every malicious event carries a ground-truth driver set — the features the generator perturbed — which is what makes the attribution-grounding results of Section 6.4 possible. Adversaries carry a per-session stealth parameter and trip only a random subset of their scenario’s drivers, so the corpus contains both loud and quiet intrusions. And the benign class contains hard negatives — unrostered night cover, replacement workstations, locum first shifts, code-blue access, cross-ward cover, remote on-call — which are unusual and legitimate, so a false-positive rate measured here reflects clinical friction rather than an easy separation. Six attack scenarios are labelled and anchored to documented incident classes: stolen-credential remote login ( of malicious events; Change Healthcare 2024), insider privilege misuse (; NHS ICO enforcement cases), post-intrusion lateral movement (; HSHS 2023), third-party account abuse (; MCNA Dental 2023), IoMT gateway impersonation (; Philips patient-monitor advisories [38]) and mid-session takeover (; adversary-in-the-middle MFA bypass). Each declares a ground-truth driver set of three or four of the sixteen features, and complete driver sets are in the released configuration.
Table 2 summarises the resulting corpus. The malicious rate is deliberately near to reflect operational base rates; accuracy is therefore uninformative and we report G-mean, AUROC and operational friction instead.
5.4. Baselines
- B1-AlwaysMFA — challenge every access; the maximal reading of a mandatory-MFA rule.
- B2-StaticLogin — authenticate at the gate only; the Change Healthcare configuration.
- B5-RLAuth-style — a binary, bandit-formulated deep RL detector without a graded policy engine and without clinical cost terms [7].
Each baseline is evaluated with its own native decision rule. Running a baseline through HEAAF’s policy engine would transplant the contribution under test into the baseline and make the comparison vacuous. We additionally report budget-matched variants (suffix @budget) in which the threshold is moved so the baseline spends the same clinical friction budget, but the baseline keeps its own action mapping.
5.5. Operating Point and Metrics
Policies produce scores on incomparable scales, so comparing them at a shared numeric threshold is meaningless. A hospital does not buy a threshold; it buys an interruption rate. We therefore fix a clinical friction budget — the fraction of benign accesses that may be interrupted, set to — read each policy’s threshold off the validation split at that budget, and report detection at matched cost.
Beyond AUROC and G-mean we report: interrupt rate on benign traffic, interrupt rate on hard negatives, denial rate under emergency context (the patient-safety failure mode), session containment rate, median epochs to containment, expected calibration error, and an operational translation — department clinician-hours lost per year to authentication friction, obtained by weighting each action by its measured clinician-facing latency (8 s for a one-time code, 25 s for strong re-authentication, 45 s for a denial including the recovery path).
5.6. Statistical Protocol
Two distinct sources of variability matter and are reported separately.
Training variability is handled by repeating the entire pipeline over 8 independent seeds and reporting mean ± standard deviation; ablations use 5 seeds and the drift study 3, for compute reasons stated in each caption. Paired Wilcoxon signed-rank tests across seeds are released with the artefact; we note candidly that with 8 seeds the smallest attainable two-sided p is , so after Holm correction over twelve policies that test cannot reach significance for any effect, however large. No claim rests on it.
Test-sampling variability is the binding constraint: at a base rate a -event split contains 749 malicious events. We use a stratified paired bootstrap [46] over test events, resampling positives and negatives separately so every replicate preserves the base rate, and pooling replicates across seeds so the interval carries both sources of variation. Because each metric is the mean of a indicator over a fixed stratum and both policies see the same events, a resample is described completely by a multinomial draw over the four joint outcome cells; sampling those counts is exactly equivalent to resampling indices and reduces cost from to . Multiplicity across the eight pre-specified contrasts is controlled with Holm–Bonferroni [47], valid under arbitrary dependence.
6. Results and Discussion
All numbers are produced by the released pipeline and written directly into this manuscript by a generation script, so no value here is transcribed by hand (Section 1.1). Results are reported in Section 6.1, Section 6.2, Section 6.3, Section 6.4, Section 6.5, Section 6.6 and Section 6.7 and discussed together in Section 6.8.
6.1. Main Comparison
Table 3 reports every policy at the clinical friction budget over 8 seeds. Any single row is one point on a curve; the full security–friction frontier, over which the supervised detector dominates and the RL score does not, is released with the artefact.
Table 3.
Main comparison at a clinical friction budget, mean ± s.d. over 8 seeds. Bold marks the best value among policies that actually operate at the matched budget. B1/B2 are degenerate references, not competitors. Note that annual clinician-hours is not monotone in interruption rate, because the graded ladder substitutes short challenges for long denials.
Table 3.
Main comparison at a clinical friction budget, mean ± s.d. over 8 seeds. Bold marks the best value among policies that actually operate at the matched budget. B1/B2 are degenerate references, not competitors. Note that annual clinician-hours is not monotone in interruption rate, because the graded ladder substitutes short challenges for long denials.
![]() |
Four findings follow, and the first is a refutation of our own hypothesis.
The RL risk score is not the strongest detector
Our starting position was that an agent trained with clinically weighted rewards would learn a better risk ordering than a supervised detector. It does not. HEAAF’s RL score reaches AUROC against for the same architecture driven by a supervised random forest; the paired bootstrap puts the G-mean gap at , , , and the TPR gap at (Table 4). The RL score is not even reliably better than a Freeman-style baseline at the same budget (, , not significant).
The explanation is structural rather than a tuning failure. The supervised detector receives a dense, per-event signal; the agent receives a sparse, delayed, heavily imbalanced reward at roughly a positive rate and must learn a ranking and a policy simultaneously. What it does learn is visible in the last row of Table 3: acting greedily on its own action-values it attains the highest containment in the table () at an interruption rate of . It has learned that challenging is usually worth it, which is a statement about action value, not ranking. This is the asymmetry Bansal and Ouda observe when placing a supervised verifier ahead of an RL controller [8], and is consistent with RLAuth’s reported blind spot for attacks from known environments [7]. We therefore relocate the contribution of RL to the action layer and report the detector-agnostic variants as first-class results.
The policy engine is where the value is
Comparing rows RL agent, no policy engine and HEAAF isolates the engine: the same action-values, routed through the calibrated head, graded ladder and valve, move benign interruption from to and annual friction from to clinician-hours, converting an unusable controller into a deployable one.
The safety valve removes emergency denials outright
The cleanest test holds detector and budget fixed and varies only policy shape. HEAAF-SupervisedRisk and B4-XAI-Static@budget share the same random forest, budget and AUROC (), differing only in what the policy does with the score. Denial under declared emergency falls from to — , , — for a G-mean cost of . Roughly one in a hundred emergency accesses is no longer blocked by an automated risk score, at half a percentage point of G-mean.
HEAAF’s own emergency denial rate is by construction: Eq. (3) cannot emit deny when holds, and the test suite verifies this exhaustively across the risk range. The empirical comparison quantifies what the guarantee prevents; it does not establish it.
The graded ladder is cheaper than it looks
Annual clinician-hours are not monotone in interruption rate. HEAAF-SupervisedRisk interrupts more benign traffic than B4-XAI-Static@budget ( versus ) and reaches the same detection ( versus TPR, same containment ), yet costs rather than clinician-hours per year — a reduction — because the binary baseline can only deny, at 45 measured seconds, whereas the graded ladder answers most elevated-risk events with an eight-second code.
Table 4.
Pre-specified contrasts, stratified paired bootstrap over test events with replicates pooled across seeds; Holm–Bonferroni over the eight rows. Negative differences favour the first policy for emergency denials.
Table 4.
Pre-specified contrasts, stratified paired bootstrap over test events with replicates pooled across seeds; Holm–Bonferroni over the eight rows. Negative differences favour the first policy for emergency denials.
![]() |
Where the effect is not significant, we say so
Contrasting HEAAF against its own no-valve ablation gives , , not significant. This is not a failure of the valve but a consequence of the weak RL score: a valve forbidding denial matters only when the detector reaches the denial band, and the RL score rarely does. The valve’s value is conditional on detector strength, which the B4 contrast demonstrates directly.
6.2. Calibration
Platt scaling on the validation split keeps expected calibration error at for the RL score and for the supervised detector; reliability diagrams are released with the artefact. Calibration matters operationally because the friction budget is expressed as a threshold on the score: an uncalibrated score makes the budget unenforceable, which is exactly what the w/o risk calibration ablation shows once thresholds are re-derived (Section 6.6).
6.3. Per-Scenario Detection
Detection broken down by attack scenario gives an ordering that is informative and consistent across policies: noisy remote credential theft is easiest ( for the supervised detector) and mid-session takeover hardest (); the full per-policy breakdown is released with the artefact. That ranking is a property of the evidence, not of the classifier — a token-theft adversary who inherits an authenticated session on a known device from a known network perturbs few contextual features, and the residual signal is behavioural. It also matches the blind spot RLAuth reports for attacks from known environments [7], and is the case where our behavioural channel matters most.
Insider misuse () and IoMT impersonation () sit between these extremes. All three RL-driven policies degrade sharply on the quieter scenarios: the RL score detects of credential theft but only of IoMT spoofing.
6.4. The Explanation Need Not Be Approximate
This is the result we consider most transferable beyond authentication.
Table 5(a) is the conventional picture over sixteen features: exact Shapley costs ms and every practical method is an approximation on a cost–fidelity frontier. KernelSHAP-512 reaches at ms; integrated gradients reach at – ms. Grad×Input is fastest, least faithful (), and has a completeness gap of — it does not decompose the score it claims to explain. Table 5(b) is the picture at the level a clinician actually reads, and it is qualitatively different: exact Shapley over the eight semantic groups costs ms per explanation in this benchmark and ms at the median when batched on the decision path (Section 6.5). Exactness is not a reference point here; it is the cheapest faithful option, and it is what HEAAF discloses.
Table 5.
Attribution cost and fidelity. (a) Feature level, measured against exact Shapley over coalitions (300 instances, seed 0). (b) Group level — the quantity actually disclosed — measured against exact group Shapley over coalitions (500 instances, seed 0). Exactness is a reference point in (a) and the cheapest faithful option in (b).
Table 5.
Attribution cost and fidelity. (a) Feature level, measured against exact Shapley over coalitions (300 instances, seed 0). (b) Group level — the quantity actually disclosed — measured against exact group Shapley over coalitions (500 instances, seed 0). Exactness is a reference point in (a) and the cheapest faithful option in (b).
![]() |
Figure 2.
Cost against fidelity. (a) At the feature level exactness is a 57 ms reference point and every method is an approximation. (b) At the group level — the disclosed quantity — exactness costs ms in this benchmark and dominates every approximation. Block-summed exact feature Shapley is more expensive and disagrees with the group value it is meant to stand in for.
Figure 2.
Cost against fidelity. (a) At the feature level exactness is a 57 ms reference point and every method is an approximation. (b) At the group level — the disclosed quantity — exactness costs ms in this benchmark and dominates every approximation. Block-summed exact feature Shapley is more expensive and disagrees with the group value it is meant to stand in for.

Block sums are not group Shapley values
Summing exact feature-level Shapley values into blocks — the standard shortcut — attains Spearman against the exact group value, recovers the dominant group in only of cases, and carries relative error , while costing ms against ms. Both quantities are complete, so this is not an approximation error in the usual sense but a genuine disagreement about how credit is apportioned, exactly as Section 4.4 predicts. Practitioners who aggregate SHAP values into groups for readability are reporting a different quantity from the group Shapley value, and here the two disagree on the headline factor roughly one time in eight.
Approximation degrades faster at the group level
Integrated gradients transfer poorly under aggregation: IG-32 reaches only against the group ground truth with top-1 agreement of , and its completeness gap () is now visible against a target that has none. Since the disclosed statement names one group, top-1 agreement is the operationally relevant figure, and means a cheap explainer would name the wrong dominant factor in two cases out of five.
Do the explanations point at the true cause?
Because the simulator records which features each attack perturbs, attribution can be scored against the causal mechanism rather than against another explainer. The exact group attribution names a true driver group as the single dominant factor in of malicious events and places one in its top two in . At the feature level, the top-3 attribution recovers at least one declared driver for of malicious events, ranging from (insider misuse) to (mid-session takeover) The mean attribution signature also differs per scenario in the direction the generator intends — session assurance dominates IoMT spoofing, peer-group deviation mid-session takeover, access pattern insider misuse — which is the property an investigator needs when triaging an alert; per-scenario signature heat maps are released with the artefact.
6.5. Decision-Path Latency
Measured over 200 repetitions on a single CPU core with no GPU, risk scoring costs ms, the policy engine is free to three decimal places, and the exact group attribution over eight groups costs ms at p50 ( p95, p99). The headline is that the exact explanation is cheaper than the approximate one: a complete end-to-end decision — score, explain, apply policy — costs ms at the median with exact group Shapley and ms with sixteen-step integrated gradients. The reason is architectural rather than algorithmic: the 256 coalition states form one matrix scored in a single batched forward pass, whereas integrated gradients require sixteen sequential gradient evaluations whose per-call overhead dominates at batch size one. At p99 the exact path costs ms against ms, three orders of magnitude inside the ∼500 ms threshold at which interface latency becomes perceptible. Explanation is not the bottleneck in this design, and there is no efficiency argument for disclosing an approximation.
6.6. Ablations
Table 6 removes one component at a time. Every arm is given the threshold that spends the same friction budget on validation, so the comparison is “same cost to clinicians, how much security do you get” — an earlier version compared arms at a fixed threshold, which conflated components that improve ranking with components that merely shift the score distribution.
Both evidence channels contribute, and the contextual channel contributes more () than the behavioural channel (), consistent with four of six scenarios being primarily contextual; this supports R5, that neither channel alone is sufficient. Sequential credit assignment contributes modestly (), weaker evidence for the sequential formulation than we expected and consistent with the finding that the RL layer is not where detection comes from.
Three arms deserve honest comment because they do not support the design. Removing the graded ladder improves G-mean (): collapsing four actions to allow/deny concentrates the same friction budget into denials, which contain more sessions. G-mean does not see the cost of doing so; the clinician-hours and emergency-denial columns do. Removing clinical cost terms also nudges G-mean up (, well inside one standard deviation) — the reward’s clinical weighting buys patient-safety behaviour, not raw separability. Removing risk calibration changes G-mean by , because once thresholds are budget-matched calibration is a monotone reparameterisation and cannot change the ranking; its value is that the budget becomes expressible at all and that the number the EDL attributes is a probability rather than an arbitrary margin. We report these null and adverse results rather than dropping the arms, and read them as a caution against optimising a single scalar.
The safety-valve arm is the only one that moves the patient-safety metric: emergency denials rise from to when it is removed, at essentially unchanged G-mean.
6.7. Template Ageing
Behavioural templates decay. Enrolling on sessions 1–4 and testing on progressively later sessions, keystroke EER rises monotonically from at session 5 to at session 8 — a relative increase of across four sessions. Our session-7–8 figure of is consistent with the Killourhy and Maxion report for scaled Manhattan [45], which is the sanity check that the behavioural channel is wired up correctly; we make this a unit test rather than a claim (Section 1.1).
The end-to-end effect is far smaller: HEAAF’s G-mean moves within its seed noise across session blocks (full figures over 3 seeds are released with the artefact), because multi-channel fusion absorbs behavioural decay — contextual, temporal and access-pattern evidence do not age on the same clock. This is an argument for fusion and simultaneously a caution: a system relying on keystroke evidence alone would require re-enrolment on a schedule this experiment suggests is measured in weeks.
6.8. Discussion
Read together the results support the four contributions of Section 1.1 and carry three implications we think generalise past this system.
The policy layer, not the classifier, is where clinical safety is won. The largest effect in the study is not a detection improvement but the transformation of the same RL action-values from a controller interrupting of benign traffic into one interrupting , together with the elimination of emergency denial at a G-mean cost of . Two systems with the same ROC curve — HEAAF-SupervisedRisk and B4-XAI-Static@budget share an AUROC of — impose and clinician-hours of annual friction respectively. A literature that ranks adaptive-authentication systems by detection metrics alone cannot see that difference, and it is the difference a hospital pays for. It is also why we report the ablation in which removing the graded ladder improves G-mean: a single scalar is the wrong instrument.
Grouping changes what is affordable, not merely what is readable. Semantic grouping is usually presented as a convenience, but it changes the feasible set: at sixteen features exactness costs ms and every deployable method is an approximation, whereas at eight groups exactness costs ms on the decision path and dominates every approximation on both fidelity and latency. The corollary is a warning. Because block-summed feature attributions are a different quantity from the group Shapley value — disagreeing on the dominant factor in of decisions here — practitioners who aggregate SHAP values into groups for readability, including in recent security applications [17,18], are reporting something other than the group value, and can compute the correct quantity more cheaply once the partition is small.
Reinforcement learning earns its place in the action space. Our negative result is not that RL is unsuited to authentication, but that a sparse, delayed, -positive reward is a poor substitute for per-event supervision when the task is ranking. The agent nonetheless attains the highest containment in Table 3 acting greedily on its own action-values. The constructive reading, consistent with Bansal and Ouda [8], is a division of labour: supervise the score, learn the policy.
Governance follows from the architecture. Under the EU AI Act [48] a system of this kind in a clinical setting is plausibly high-risk, attracting obligations on risk management, logging, transparency and human oversight; under UK GDPR and the NHS Data Security and Protection Toolkit [1], per-decision attributions provide the evidence trail that access controls are risk-proportionate. Three properties address these directly: attributions are generated at decision time and stored with the decision, satisfying record-keeping without post-hoc reconstruction from a retrained model; the graded ladder and valve keep a human in the loop by construction, since the strongest action against a clinician in a declared emergency is to request a second factor; and role-scoped disclosure separates the transparency duty owed to the data subject from the completeness duty owed to the regulator.
7. The Explanation Channel as an Attack Surface
Every explanation returned to a challenged user is information returned to whoever is at the keyboard, adversary included. The XAI-authentication literature does not treat this as a design constraint [9,10], but the wider XAI-security literature is unambiguous that it should: attributions leak membership [33], Shapley vectors permit reconstruction of private inputs [34], post-hoc explainers can be actively fooled [35], and the surface is now surveyed [36,37,49].
Authentication is the sharper case. Unlike a loan applicant, an adversary here controls the very features being attributed, can issue many probes, and receives feedback each time. A signed per-feature attribution vector paired with a numeric score is close to a gradient oracle: it identifies which coordinate to change and in which direction, and repeated probing reduces evasion to hill-climbing — the threat model Agrawal et al. demonstrate against touch-based continuous authentication [50].
HEAAF resolves the tension between the transparency duty and this leakage by refusing to emit one explanation, projecting the same attribution vector differently per audience. The subject being challenged receives one dominant semantic group, named in clinical English, with a three-level magnitude band and no numeric score: measured over the test instances this releases 1 coordinate of 8, carries at most bits per decision, and the named group accounts for of the positive attribution mass, so more than two-fifths of the evidence is undisclosed. The analyst receives the complete signed eight-vector, the calibrated score and the reconciliation against the clinical reference. The audit record receives everything, written at decision time; because the justification is generated inside the decision cycle (Figure 1) it cannot later be reconstructed from a retrained model, which is what makes it admissible as a record of why that decision was taken.
Three caveats. Coarsening reduces the leak rate but does not eliminate it, and an adversary who can force many challenges still accumulates information; rate-limiting disclosure per subject per interval is a natural companion control, not evaluated here. We quantify the channel but do not run an adaptive adversary against it, the most important piece of future work this design implies. And coarsening trades against the GDPR Article 22 interest in meaningful information about automated decision-making [51]: our position is that the subject receives a meaningful reason and the regulator the complete record, but this is a defensible design choice rather than a settled legal question.
8. Limitations and Threats to Validity
Several of these bear directly on how far the results generalise.
The clinical context is simulated. The behavioural channel is the real CMU corpus with a genuine ageing split, but role, shift, device, geography, resource sensitivity and attack labels come from a parameterised generator (Section 5.1). Absolute rates are therefore properties of the generator, not estimates of hospital reality, and should not be quoted as such; what the simulation supports is relative comparison under identical conditions, which is what every claim in Section 6 is.
Generator–detector circularity. Detectors are evaluated on data whose generative process is known to us. We mitigate this with per-session stealth parameters, partial driver activation and a hard-negative class designed to be unusual but legitimate, but the mitigation is partial, and the absolute detection rates in Table 3 would be optimistic on real traffic.
Single behavioural modality, and no adaptive adversary. The CMU corpus is fixed-text password typing on a desktop keyboard, whereas clinical workflows involve tablets, shared workstations, gloved hands and voice; free-text and touch dynamics carry different error characteristics, so our conclusions about the behavioural channel do not automatically transfer. Attacks are also drawn from a fixed taxonomy and do not respond to the defence: given that we return explanations to the person being challenged, an adaptive-adversary evaluation is the single most important missing experiment (Section 7).
Seed count and comparability. Eight seeds give a stable mean but a small sample for a rank test; as noted in Section 5.6 no claim rests on the seed-level Wilcoxon test, and all significance claims come from the event-level bootstrap. Separately, we do not compare against RLAuth’s published G-mean of [7]: our B5 is a faithful reimplementation of the formulation — binary, bandit-style, no clinical cost terms — evaluated on our corpus, not a reproduction of their result on different data with a different base rate and action space.
Cost parameters are illustrative. Clinician-seconds per action and breach costs are plausible published estimates, not measurements from a partner site. The friction reduction depends on the ratio between challenge and denial time, which we report explicitly in Section 5 so it can be re-derived under other assumptions.
9. Conclusion
We set out to build an adaptive continuous-authentication system that could justify itself inside the decision cycle and price patient safety explicitly, testing the hypothesis that reinforcement learning would supply the detection. That hypothesis was wrong, and we report it as such: a supervised detector inside the same policy engine gains G-mean over the RL-derived score. The contribution of the RL formulation lies in the action layer — routed through the calibrated head, graded ladder and safety valve, the same agent goes from interrupting of benign traffic to .
Two positive results stand. The explanation disclosed to a clinician need not be an approximation: because sixteen evidence features partition into eight semantic groups, exact group Shapley values cost 256 coalition evaluations, run in ms, and make a complete decision with an exact justification cheaper ( ms) than the same decision explained approximately ( ms); and summing feature attributions into groups is a different quantity from the group Shapley value, disagreeing on the dominant factor about one time in eight — a caution applying wherever attributions are aggregated for readability. Second, an explicit clinical safety valve eliminates emergency denials: holding detector and friction budget fixed, denial under declared emergency falls from to for G-mean, and the graded ladder delivers the same detection at rather than clinician-hours of annual friction.
The wider lesson is that in clinical security the policy layer, not the classifier, is where safety is won or lost — and that a system which must explain itself to the person it is challenging should decide, in advance, how much it is willing to say. Future work follows from Section 8: an adaptive adversary against the disclosure channel, free-text and touch modalities, and validation of the generator against a partner site.
Reproducibility and Artefact Availability
The implementation, clinical-context simulator, evaluation harness, seeds and the scripts that regenerate every figure and table are released under the MIT licence at github.com/riteshmukherjee/heaaf [52]. Three properties are worth noting for a reader wishing to check the argument mechanically.
Numbers cannot drift. Every table is emitted by scripts/make_tables.py directly from the persisted result files and input as a fragment; no value is transcribed by hand, so re-running the pipeline regenerates the manuscript’s numbers.
The argument’s premises are unit-tested. A suite of 35 invariant tests (pytest -q) checks the properties the claims rest on rather than merely exercising the code: that exact Shapley satisfies efficiency, symmetry and the dummy axiom and matches the closed form on a linear model; that group and feature games coincide under pairwise interaction and diverge under three-way interaction, as Section 4.4 argues; that the safety valve never denies a declared emergency, checked exhaustively over the risk range; that the policy is monotone in risk; that the subject disclosure never contains the numeric score nor names more than one group; and that the scaled-Manhattan verifier reproduces the published EER range. scripts/stage.py runs each stage independently against persisted artefacts and make all reproduces the full results directory, so a reviewer can re-run one experiment without repeating the pipeline.
References
- NHS England. Data Security and Protection Toolkit. 2025. Available online: https://digital.nhs.uk/services/data-security-and-protection-toolkit.
- IBM Security and Ponemon Institute. Cost of a Data Breach Report 2025; Technical report; IBM Corporation, 2025. [Google Scholar]
- Verizon. 2025 Data Breach Investigations Report; Technical report; Verizon Business, 2025. [Google Scholar]
- NHS England. Synnovis Cyber Incident, 2024. Available online: https://www.england.nhs.uk/synnovis-cyber-incident/.
- Rose, S.; Borchert, O.; Mitchell, S.; Connelly, S. 2020. Zero Trust Architecture. Technical Report NIST SP 800-207. National Institute of Standards and Technology. [Google Scholar] [CrossRef]
- Syed, N.F.; Shah, S.W.; Shaghaghi, A.; Anwar, A.; Baig, Z.; Doss, R. Zero Trust Architecture (ZTA): A Comprehensive Survey. IEEE Access 2022, 10, 57143–57179. [Google Scholar] [CrossRef]
- Picard, C.; Pierre, S. RLAuth: A Risk-Based Authentication System Using Reinforcement Learning. IEEE Access 2023, 11, 61129–61143. [Google Scholar] [CrossRef]
- Bansal, P.; Ouda, A. Continuous Authentication in the Digital Age: An Analysis of Reinforcement Learning and Behavioral Biometrics. Computers 2024, 13, 103. [Google Scholar] [CrossRef]
- Abdel Raouf, H.; Fouda, M.M.; Ibrahem, M.I. Revolutionizing User Authentication: Exploiting Explainable AI and CTGAN-Based Keystroke Dynamics. IEEE Open J. Comput. Soc. 2024, 6, 97–108. [Google Scholar] [CrossRef]
- Mohd Nizam, M.N.; Ooi, S.Y.; Ramalingam, S.; Pang, Y.H. Continuous Authentication Through Touch Stroke Analysis with Explainable AI. Electronics 2026, 15, 542. [Google Scholar] [CrossRef]
- Koppel, R.; Smith, S.; Blythe, J.; Kothari, V. Workarounds to Computer Access in Healthcare Organizations: You Want My Password or a Dead Patient? Stud. Health Technol. Inform. 2015, 208, 215–220. [Google Scholar] [CrossRef]
- Freeman, D.; Jain, S.; Dürmuth, M.; Eisenbarth, B.; Ristenpart, T. Who Are You? A Statistical Approach to Measuring User Authenticity. In Proceedings of the Proc. Network and Distributed System Security Symp. (NDSS), 2016. [Google Scholar] [CrossRef]
- Acar, A.; Aksu, H.; Uluagac, A.S.; Akkaya, K. A Usable and Robust Continuous Authentication Framework Using Wearables. IEEE Trans. Mob. Comput. 2021, 20, 2140–2153. [Google Scholar] [CrossRef]
- Xiao, L.; Lu, X.; Xu, T.; Zhuang, W.; Dai, H. Reinforcement Learning-Based Physical-Layer Authentication for Controller Area Networks. IEEE Trans. Inf. Forensics Secur. 2021, 16, 2535–2547. [Google Scholar] [CrossRef]
- Wiefling, S.; Jørgensen, P.R.; Thunem, S.; Lo Iacono, L. Pump Up Password Security! Evaluating and Enhancing Risk-Based Authentication on a Real-World Large-Scale Online Service. ACM Trans. Priv. Secur. 2022, 26, 6:1–6:36. [Google Scholar] [CrossRef]
- Jethani, N.; Sudarshan, M.; Covert, I.; Lee, S.I.; Ranganath, R. FastSHAP: Real-Time Shapley Value Estimation. In Proceedings of the Proc. Int. Conf. Learning Representations (ICLR), 2022. [Google Scholar]
- Tsado, Y.; Khandan, S.; Popoola, S.I. Explainable Artificial Intelligence for Intrusion Detection in Cyber-Physical Systems. Secur. Priv. Cyber-Phys. Syst. Emerg. Trends Technol. Appl. 2025, 77–108. [Google Scholar] [CrossRef]
- Khandan, S.; Beyazgul, D.; Jogunola, O.; Tsado, Y.; Dargahi, T. Explainable AI-Driven Threat Detection and Response for Industrial IoT. In Proceedings of the Proc. 10th IEEE Int. Workshop on Cyber-Physical Systems Security (CPS-Sec), Avignon, France, 2025. [Google Scholar] [CrossRef]
- Popoola, S.I.; Tsado, Y.; Ogunjinmi, A.A.; Sanchez-Velazquez, E.; Peng, Y.; Rawat, D.B. Multi-Stage Deep Learning for Intrusion Detection in Industrial Internet of Things. IEEE Access 2025, 13, 60532–60555. [Google Scholar] [CrossRef]
- Khandan, S.; Tabatabaei, M.; Uzoatu, I.B.; Jogunola, O.; Tsado, Y.; Dargahi, T. An Explainable Multimodal Framework for Phishing Attack Detection. In Proceedings of the Computer Security. ESORICS 2025 International Workshops., 2026; Springer Nature Switzerland; Lecture Notes in Computer Science. [Google Scholar]
- Zakhmi, H.S.; et al. Evolving Zero Trust Architectures for AI-Driven Cyber Threats in Healthcare and Other High-Risk Data Environments: A Systematic Review. Cureus 2025, 17, e85446. [Google Scholar] [CrossRef] [PubMed]
- Chaudhary, U.; Rajkumar, S.; Jayakody, D.N.K.; Tsado, Y.; Adebisi, B. Blockchain and Emerging Technologies for Secure Data Transmission and Patient Safety: Roadmap for Next-Generation Wireless Healthcare. Comput. Mater. Contin. 2026, 88. [Google Scholar] [CrossRef]
- Adhikari, A.; Mukherjee, R.; Tsado, Y. Quantifying Security-Control Effectiveness in Hospital Networks: A Reproducible Attack-Graph and Monte Carlo Framework. Companion Study Releases A Hosp. Attack-Graph Simulator 2026. [Google Scholar]
- Wiefling, S.; Dürmuth, M.; Lo Iacono, L. More Than Just Good Passwords? A Study on Usability and Security Perceptions of Risk-Based Authentication. In Proceedings of the Proc. Annu. Computer Security Applications Conf. (ACSAC), 2020; pp. 203–218. [Google Scholar] [CrossRef]
- Gavazzi, A.; Williams, R.; Kirda, E.; Lu, L.; King, A.; Davis, A.; Leek, T. A Study of Multi-Factor and Risk-Based Authentication Availability. In Proceedings of the Proc. USENIX Security Symp., 2023; pp. 2043–2060. [Google Scholar]
- Lundberg, S.M.; Lee, S.I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), 2017; pp. 4765–4774. [Google Scholar]
- Sundararajan, M.; Taly, A.; Yan, Q. Axiomatic Attribution for Deep Networks. In Proceedings of the Proc. Int. Conf. Machine Learning (ICML), 2017; pp. 3319–3328. [Google Scholar]
- Chen, H.; Covert, I.C.; Lundberg, S.M.; Lee, S.I. Algorithms to Estimate Shapley Value Feature Attributions. Nat. Mach. Intell. 2023, 5, 590–601. [Google Scholar] [CrossRef]
- Covert, I.; Lee, S.I. Improving KernelSHAP: Practical Shapley Value Estimation Using Linear Regression. In Proceedings of the Proc. Int. Conf. Artificial Intelligence and Statistics (AISTATS), 2021; pp. 3457–3465. [Google Scholar]
- Lundstrom, D.D.; Huang, T.; Razaviyayn, M. A Rigorous Study of Integrated Gradients Method and Extensions to Internal Neuron Attributions. Proc. Proc. Int. Conf. Mach. Learn. (ICML) 2022, Vol. 162, 14485–14508. [Google Scholar]
- Owen, G. Values of Games with a Priori Unions. In Mathematical Economics and Game Theory; Springer, 1977; pp. 76–88. [Google Scholar] [CrossRef]
- Shapley, L.S. A Value for n-Person Games. Contrib. To Theory Games 1953, 2, 307–317. [Google Scholar] [CrossRef]
- Shokri, R.; Strobel, M.; Zick, Y. On the Privacy Risks of Model Explanations. In Proceedings of the Proc. AAAI/ACM Conf. AI, Ethics, and Society (AIES), 2021; pp. 231–241. [Google Scholar] [CrossRef]
- Luo, X.; Jiang, Y.; Xiao, X. Feature Inference Attack on Shapley Values. In Proceedings of the Proc. ACM SIGSAC Conf. Computer and Communications Security (CCS), 2022; pp. 2233–2247. [Google Scholar] [CrossRef]
- Slack, D.; Hilgard, S.; Jia, E.; Singh, S.; Lakkaraju, H. Fooling LIME and SHAP: Adversarial Attacks on Post Hoc Explanation Methods. In Proceedings of the Proc. AAAI/ACM Conf. AI, Ethics, and Society (AIES), 2020; pp. 180–186. [Google Scholar] [CrossRef]
- Baniecki, H.; Biecek, P. Adversarial Attacks and Defenses in Explainable Artificial Intelligence: A Survey. Inf. Fusion 2024, 107, 102303. [Google Scholar] [CrossRef]
- Nguyen, T.T.; Huynh, T.T.; Ren, Z.; Nguyen, T.T.; Nguyen, P.L.; Yin, H.; Nguyen, Q.V.H. A Survey of Privacy-Preserving Model Explanations: Privacy Risks, Attacks, and Countermeasures. arXiv 2024, arXiv:2404.00673. [Google Scholar]
- Cybersecurity and Infrastructure Security Agency. CISA ICS Medical Advisory ICSMA-20-254-01; Philips Patient Monitoring Devices (Update C). Technical report. 2023.
- U.S. Department of Health and Human Services; Office for Civil Rights. HIPAA Security Rule Notice of Proposed Rulemaking to Strengthen Cybersecurity for Electronic Protected Health Information, 2025. 90 Fed. Reg. 898. 2025. [Google Scholar] [PubMed]
- van Hasselt, H.; Guez, A.; Silver, D. Deep Reinforcement Learning with Double Q-Learning. In Proceedings of the Proc. AAAI Conf. Artificial Intelligence, 2016; pp. 2094–2100. [Google Scholar]
- Mnih, V.; Kavukcuoglu, K.; Silver, D.; et al. Human-Level Control Through Deep Reinforcement Learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [PubMed]
- Platt, J.C. Probabilistic Outputs for Support Vector Machines and Comparisons to Regularized Likelihood Methods. In Proceedings of the Advances in Large Margin Classifiers, 1999; pp. 61–74. [Google Scholar]
- Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On Calibration of Modern Neural Networks. In Proceedings of the Proc. Int. Conf. Machine Learning (ICML), 2017; pp. 1321–1330. [Google Scholar]
- Aas, K.; Jullum, M.; Løland, A. Explaining Individual Predictions When Features Are Dependent: More Accurate Approximations to Shapley Values. Artif. Intell. 2021, 298, 103502. [Google Scholar] [CrossRef]
- Killourhy, K.S.; Maxion, R.A. Comparing Anomaly-Detection Algorithms for Keystroke Dynamics. In Proceedings of the Proc. IEEE/IFIP Int. Conf. Dependable Systems and Networks (DSN), 2009; pp. 125–134. [Google Scholar] [CrossRef]
- Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman and Hall/CRC, 1994. [Google Scholar]
- Holm, S. A Simple Sequentially Rejective Multiple Test Procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- European Parliament and Council. Regulation (EU) 2024/1689 Laying Down Harmonised Rules on Artificial Intelligence (Artificial Intelligence Act), 2024. OJ L 2024. [Google Scholar]
- Quan, P.; Chakraborty, S.; Jeyakumar, J.V.; Srivastava, M. On the Amplification of Security and Privacy Risks by Post-Hoc Explanations in Machine Learning Models. arXiv 2022, arXiv:2206.14004. [Google Scholar]
- Agrawal, M.; Mehrotra, P.; Kumar, R.; Shah, R.R. Defending Touch-Based Continuous Authentication Systems from Active Adversaries Using Generative Adversarial Networks. In Proceedings of the Proc. IEEE Int. Joint Conf. Biometrics (IJCB), 2021. [Google Scholar] [CrossRef]
- European Parliament and Council. Regulation (EU) 2016/679 (General Data Protection Regulation), 2016. 2016, OJ L 119. [Google Scholar]
- Mukherjee, R.; Adhikari, A.; Tsado, Y. HEAAF reference implementation. 2026. Available online: https://github.com/riteshmukherjee/heaaf.
Figure 1.
HEAAF mapped onto the NIST zero-trust decomposition. The explanation layer sits inside the policy engine, so the justification exists at the moment of the decision and is logged with it.
Figure 1.
HEAAF mapped onto the NIST zero-trust decomposition. The explanation layer sits inside the policy engine, so the justification exists at the moment of the decision and is logged with it.

Table 1.
Positioning against representative prior work, ordered by year within theme. “Inline” means the explanation is produced within the decision cycle rather than reconstructed afterwards; “Exact” means the disclosed attribution is a Shapley value computed over all coalitions rather than sampled or approximated; “Clinical cost” means the objective distinguishes obstructing a clinician from obstructing an ordinary user.
Table 1.
Positioning against representative prior work, ordered by year within theme. “Inline” means the explanation is produced within the decision cycle rather than reconstructed afterwards; “Exact” means the disclosed attribution is a Shapley value computed over all coalitions rather than sampled or approximated; “Clinical cost” means the objective distinguishes obstructing a clinician from obstructing an ordinary user.
| Work | Year | Adaptive | Graded | Explains | Inline | Exact | Clinical | Released | Evaluation |
|---|---|---|---|---|---|---|---|---|---|
| policy | actions | decisions | expl. | expl. | cost | artefact | data | ||
| Adaptive and risk-based authentication | |||||||||
| Freeman et al. [12] | 2016 | partial | — | — | — | production logins | |||
| Acar et al. [13] | 2021 | — | — | — | — | — | — | wearable sensors | |
| Xiao et al. [14] | 2021 | — | — | — | — | — | — | CAN bus traces | |
| Wiefling et al. [15] | 2022 | — | — | — | — | — | 31.3M logins | ||
| RLAuth [7] | 2024 | — | — | — | — | — | synthetic contexts | ||
| Bansal & Ouda [8] | 2024 | — | — | — | — | — | — | keystroke corpus | |
| Explainable authentication and security analytics | |||||||||
| FastSHAP [16] | 2022 | n/a | n/a | — | n/a | vision / tabular | |||
| Abdel Raouf et al. [9] | 2024 | — | — | — | — | — | — | keystroke corpus | |
| Tsado et al. [17] | 2025 | — | — | — | — | — | — | CPS intrusion corpora | |
| Khandan et al. [18] | 2025 | — | — | — | — | — | — | IIoT telemetry | |
| Popoola et al. [19] | 2025 | — | — | — | — | — | — | — | IIoT intrusion corpus |
| Khandan et al. [20] | 2026 | — | — | — | — | — | — | phishing corpora | |
| Mohd Nizam et al. [10] | 2026 | — | — | — | — | — | — | touch corpus | |
| Zero trust and risk quantification for healthcare | |||||||||
| Zakhmi et al. [21] | 2025 | — | — | — | — | — | — | systematic review | |
| Chaudhary et al. [22] | 2026 | — | — | — | — | — | — | roadmap / survey | |
| Adhikari et al. [23] | 2026 | — | — | — | — | — | simulated estate | ||
| HEAAF (this work) | 2026 | real keystroke + | |||||||
| generated context | |||||||||
Table 2.
Simulated evaluation corpus. Rates are per access event.
![]() |
Table 6.
Component ablations at a matched friction budget, mean ± s.d. over 5 seeds.
![]() |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.




