betaFeedback

WorksComputer Science

Auditing Identity and Timing Signals in Operational Logs

Abstract

Models that predict events from operational logs, such as sepsis in ICU records or failures in hard drives, can score well by recognizing which patient or drive a record came from, or when it was recorded, instead of predicting the event. I introduce two simple audits that measure how much of this information a dataset carries before any event-prediction model is trained, and apply them to seven public datasets in six domains. One asks whether a classifier can tell that two records came from the same unit; the other asks which of two records from the same unit came later. Under the stated nulls, both have expected AUC 0.5. In ICU data, the identity audit flags a common preprocessing step: carrying the last measurement forward raises identity AUC from 0.916 to 0.993. On a 12-hour sepsis forecasting task, carrying forward makes a model look 0.163 AUC better than raw values when a patient's hours are split between training and test, but only 0.046 better when patients are held out. The exaggeration under patient overlap also appears in a second ICU dataset with mortality as the outcome. On the sepsis task, a chronological control with complete follow-up, in which training sees only a patient's earlier, resolved hours, shows no positive mean overlap gap. Timing is a strong predictor: with complete follow-up, hour of stay and measurement counts alone, with no clinical value, score 0.761 on held-out patients, and adding the raw clinical values changes that by +0.018. Outside the ICU, 95% of drives and 75% of loans have records on both sides of a calendar cut, and the overlap gap persists under a calendar split. The audits show which features and preprocessing choices to check; the evaluation protocol decides the consequences. I release the code, a library that runs the audits on any table with a unit column and a time column, and a guide to using the audits.

Preprint

Introduction

An event-prediction model may recognize the patient, loan or drive that produced a record, or infer where that record falls in time. When labels are correlated within units, recognizing a unit seen in training can improve test scores without improving predictions for new units. Prior work documents these evaluation failures [16, 14, 36, 4]. The appropriate split follows from deployment: new units require unit-disjoint evaluation, while predictions for known units require training information available before prediction. An audit score does not change those requirements.

I introduce two audits, both run on units with no recorded event (Figure 1A). The identity test distinguishes same-unit from different-unit pairs matched on time and offset. The temporal test distinguishes earlier from later records within a unit. Using established classification and verification methods [21, 12], I measure unit identity and temporal ordering as dataset properties, without fitting a downstream event-prediction model and with expected held-out AUC 0.5 under the stated nulls. To my knowledge, no earlier work measures both signals together on the same panels across domains. Controlled downstream comparisons then examine how their consequences depend on preprocessing and evaluation design.

The two audits and what they flag, showing identity and temporal tests, overlap contrast, and overlap AUC minus disjoint AUC

Figure 1. The two audits and what they flag. (A) Both audits pair records of event-free units. The overlap contrast scores the same test rows after training without or with other rows of the test units, at matched per-class training counts. (B) Overlap AUC minus disjoint AUC for the 13 rows of Table 4, with each row’s identity AUC. Points are means over 200 replicates, bars are 2.5–97.5 percentile ranges, and a filled point has a range that excludes zero. In the ICU, unlimited carry-forward (∞\infty) raises the gap from +0.017 on raw values to +0.120. Clickstream gaps are near zero, with ranges that include zero.

What the audit adds is a measurement of which features and preprocessing choices make records recognizable, and that measurement points at real problems. In ICU data, carry-forward imputation makes records from the same patient much easier to match (identity AUC 0.916 to 0.993), and it exaggerates its own benefit more than threefold when a patient’s hours are randomly split across training and test (0.163 against 0.046). The overlap effect also appears in a second ICU dataset with mortality as the outcome. On the sepsis task, a within-patient chronological control with complete follow-up shows no positive mean overlap gap, so a recognizable patient does not produce an inflated score under every protocol. Timing works the same way: the audit locates timing signal in ICU measurement counts, and on the sepsis task evaluated here hour of stay plus those counts, with no clinical value, scores 0.761 on held-out patients. Adding the raw clinical values raises that to 0.779 (complete follow-up). A calendar split does not remove the unit: 95% of drives and 75% of loans have records on both sides of an 80th-percentile cut, and the overlap gap persists there (+0.041 for drives, +0.043 for mortgages).

Contributions

  1. Controlled evaluation experiments. Fixed test rows and matched training counts isolate the effect of replacing other-unit training rows with test-unit rows. The experiments cover six datasets in five of the six domains, including both ICU datasets, and add multiple imputations and sepsis forecasting with chronological and clock-baseline controls (§ 4–§ 5).

  1. A survey of seven datasets in six domains. Feature ablations locate identity and timing information in operational logs. Mortgage clocks account for most timing discrimination; ICU measurement counts carry both signals. Drawing the different unit from those most similar to the first shows that the identity signal belongs to individual units in drives, mortgages, vessels and ICU records, and mostly to the kind of student in clickstreams (§ 3).

  1. Reusable software and practical guidance. A panel adapter and a declaration of units, timestamps, features and offsets are enough to run the audits. § 6 explains how to use them to choose follow-up comparisons, and Appendix § 15 provides a demonstration

tion requiring no data download. A separate library, whowhen, runs the audits on any table from one call (Appendix § 22).

The Two Tests

Identified units ii produce feature rows xi,tx_{i,t}. Fix an offset range [δmin⁡,δmax⁡][\delta_{\min}, \delta_{\max}] suited to the domain’s sampling interval; both tests use the same range per dataset.

Identity test. Take a record, pair it with either a later record from the same unit or a record from a different unit at the same moment, and ask a classifier which kind of pair it is. If nothing in the records identifies the unit, it can only guess. Formally, sample an anchor (i,t1)(i,t_1) and offset δ\delta; emit (xi,t1,xi,t1+δ)(x_{i,t_1},x_{i,t_1+\delta}) with label 1 and, for the same anchor and the same t1+δt_1+\delta, (xi,t1,xj,t1+δ)(x_{i,t_1},x_{j,t_1+\delta}) for a random j≠ij \ne i observed at that time, with label 0. Both classes share the anchor distribution, the calendar, and the offset; only identity differs. Features are (xa,xb,∣xa−xb∣)(x_a,x_b,|x_a-x_b|). Units are split before any pair is drawn, and anchor and impostor come from the same side, so the split breaks no matched pair. Intervals come from a unit-level bootstrap (Appendix § 17). The null is that no persistent unit-specific dependence remains once calendar and offset are matched, (Xi,t1,Xi,t1+δ)=d(Xi,t1,Xj,t1+δ)(X_{i,t_1},X_{i,t_1+\delta}) \mathrel{\overset{d}{=}} (X_{i,t_1},X_{j,t_1+\delta}) under the matching controls. Under it the two classes are identically distributed.

Temporal test. Take two records from the same unit, hours or days apart, and ask a classifier which one came first. If nothing in the records changes with time, it can only guess. Formally, a pair is (xi,t1,xi,t2)(x_{i,t_1},x_{i,t_2}), t2−t1∈[δmin⁡,δmax⁡]t_2-t_1 \in[\delta_{\min},\delta_{\max}], drawn from a unit with no recorded adverse event; rows are labeled by temporal position alone. A classifier trains on 80% of units and is evaluated on held-out units. The temporal AUC is the pooled AUC with a unit-clustered bootstrap interval. The null is exchangeability of a unit’s ordinary windows across the offset range, (Xi,t,Xi,t+δ)=d(Xi,t+δ,Xi,t)(X_{i,t}, X_{i,t+\delta}) \overset{d}{=} (X_{i,t+\delta}, X_{i,t}) for δ∈[δmin⁡,δmax⁡]\delta\in[\delta_{\min}, \delta_{\max}] under the declared pairing and weighting. Under it the labels are a symmetric convention and the expected AUC is 0.5 for any scorer.

Under the null, expected empirical AUC is exactly 0.5. If exchanging the two items of every matched test pair leaves the joint law of the test pairs unchanged, the pooled empirical AUC with mid-rank ties has expectation one half, for any scorer fit without the held-out labels and any number of pairs (Proposition 1, Appendix § 16). The swap invariance is the null hypothesis itself. For dependent matched pairs it is stronger than equal class distributions, and the unit-disjoint split does not establish it: the split only keeps the scorer from being fit on the held-out units, which the result also requires.

Each test controls for the other property. In the identity test, matching on time and offset controls those coordinates when comparing same-unit and different-unit pairs. The match is on the panel’s time coordinate, which for the ICU is hours since admission; matching on hospital as well is a separate control (Appendix § 21). The identity test uses feature values only; identity carried by when a unit is observed is outside it. In the temporal test both windows come from one unit, so unit identity does not separate the labels. A cross-unit placebo (Appendix § 20) measures how much of the temporal AUC is structure shared across units.

What the numbers are. Both audits use only units with no recorded event, and neither classifier is fit to an event outcome. Each AUC comes from one fixed configuration of LightGBM gradient boosting ([17]), varied in Appendix § 18, so it is a lower bound on how well the pairing task can be solved, and it depends on the declared offsets and features. It is not an event-prediction score and cannot be subtracted from, or compared with, a detector’s AUC. The value 0.5 is a reference point, and a score of 0.5 does not establish that an evaluation is valid. Rows are scored pooled across the test set. I report each quantity with all features, with declared clock columns removed, and for a single channel, as means over five pair-draw seeds with unit-level bootstrap intervals (Appendix § 17).

Eligibility

Both tests require five things: (1) identified units observed repeatedly; (2) enough units for a unit-disjoint split (tens of thousands is comfortable; twenty works with wide intervals for the temporal test and fails for the identity test, Appendix § 14); (3) per-unit spans longer than the offset range; (4) features at each timestamp; (5) a clock declaration from the analyst. They do not require a prediction task, labeled events beyond the column that excludes event-bearing units, completeness, or any particular sampling rate. For example, two public maintenance datasets do not qualify: MetroPT has one unit, and Scania APS has one snapshot per truck.

Identity and Timing Signals Across Six Domains

Identity Signal

Table 1 reports the identity survey. Each domain follows the same protocol: an adapter maps raw data to the panel format, a declaration fixes offsets, feature sets (tiers) and clocks, and the measurement runs. Appendix § 14 describes each domain and gives the drive, vessel and wind results in full. Drive identity survives restricting impostors to the anchor’s own drive model, and vessel identity survives removing position. Clickstreams, near chance on time (§ 3.2), still give identity AUC 0.660.

DomainOffsetsAll featuresFewer features
Drives30–90 d1.0000.998 (no clocks)
Mortgage6–18 mo1.0000.994 (no clocks)
ICU (carry-forward)6–24 h0.9930.879 (counts only)
Vessels14–60 d0.9550.886 (no location)
ICU (no carry-forward)6–24 h0.9160.850 (values only)
ICU, PhysioNet 2012 (carry-forward)6–24 h0.9980.939 (counts only)
ICU, PhysioNet 2012 (no carry-forward)6–24 h0.974n/a
Clickstreams14–60 d0.6600.540 (totals only)
Wind14–60 dn/an/a

Table 1. Identity AUCs (five-seed means). The last column repeats the test on the named subset of the features: without the clock columns, without location, on the ICU measurement counts or raw values alone, or on a student’s total clicks and sites visited without the per-activity breakdown. The ICU rows of each dataset include the six-hour measurement counts and differ only in carry-forward. n/a marks a subset that was not run and, for wind, a test that twenty units cannot support.

Measurement counts alone identify patients. How often each ICU channel was measured in the last six hours, with no physiological values, gives identity AUC 0.879 [0.860, 0.897]. Raw values alone give 0.850 [0.828, 0.871], consistent with physiological biometrics (Odinaka et al., [27]). Care patterns are known to identify patients (Johnson et al., [13]); my measurement differs in unit and purpose (Appendix § 24). The same counts also carry temporal position (0.634), which extends the finding that observation patterns encode the care process (Agniel et al., [2]).

Carry-forward imputation raises identity AUC. Each imputation variant keeps the measurement counts and differs only in how missing values are filled. Raw values plus counts give 0.916, and carrying the last value forward gives 0.993. Carried-forward values recur across a patient’s windows, providing additional information for linking records. The same choice leaves the temporal AUC almost unchanged, so preprocessing belongs inside the audit.

Discrimination persists against feature-similar controls. A high identity AUC could mean only that the two units of a different-unit pair are of different kinds: a tug and a tanker, a frail patient and a robust one. To assess this explanation I repeat the test with the different unit drawn from the units most similar to the first. Each unit is summarized by its mean of every audited feature, standardized across units, and the different unit is drawn from the five nearest among up to 256 units observed at the matched time. Similarity is computed within each side of the unit split. Table 2 gives the result. Drives, mortgages, vessels and carried-forward ICU records stay at 0.923 or above, providing evidence of discrimination beyond this control for unit type. This does not rule out all group-level explanations. ICU records without carry-forward fall from 0.916 to 0.790, and the measurement counts alone from 0.879 to 0.685: part of that signal is the kind of patient and part is the individual. Clickstreams fall from 0.660 to 0.542, close to chance, so what little identity signal clickstreams carry is mostly the kind of student.

DomainAny other unitMost similar unit[95% interval]
Drives1.0000.993[0.987, 0.997]
Mortgage1.0000.998[0.995, 0.999]
ICU (carry-forward)0.9930.977[0.969, 0.983]
Vessels0.9550.923[0.894, 0.947]
ICU (no carry-forward)0.9160.790[0.766, 0.814]
Clickstreams0.6600.542[0.504, 0.577]

Table 2. Identity AUC on all features when the different unit is any other unit observed at the matched time (Table 1) and when it is one of the five units most similar to the first. Five-seed means; intervals pool the unit bootstrap over seeds. Offsets, pairs and classifier are those of Table 1.

Timing Signal

Table 3 reports the temporal survey, on the same panels and offset ranges as the identity survey.

DomainOffsetsAll featuresFewer featuresSingle channel
Mortgage6–18 mo0.8340.5490.500 (rate)
ICU6–24 h0.7180.6770.634 (counts)
ICU (PhysioNet 2012)6–24 h0.6620.6380.595 (counts)
Drives30–90 d0.5980.5270.507 (temp.)
Wind14–60 d0.5390.5400.517 (ambient)
Clickstreams14–60 d0.5340.520n/a
Vessels14–60 d0.5270.5170.505 (kinematics)

Table 3. Temporal AUCs in six operational-log domains (five-seed means). “Fewer features” uses the subsets of Table 1 (ICU: raw values without counts).

Mortgages span nearly the whole range. With amortization clocks (balance, age, remaining term) the temporal AUC is 0.834, because a vintage’s loans amortize in lockstep. Without them it drops to 0.549. The loan’s fixed rate alone gives 0.500, the value symmetry forces for a feature that is constant within a unit.

ICU temporal AUC is high and does not come from clock columns. It is 0.718 [0.706, 0.730] on never-septic stays. Values alone give 0.677, and measurement counts alone, with no physiological values, give 0.634: how often each channel is measured changes over a stay. A cross-unit placebo (Appendix § 20) reproduces most of it, so most of this is structure shared across patients at matched stay hours. The within-unit AUC contrast is only 0.021 at these offsets. § 5 shows a consequence: the hour of stay alone outscores raw values that omit it on sepsis forecasting. The second ICU dataset shows the same pattern, with measurement counts alone at 0.595 [0.572, 0.619].

Three domains are near chance. Wind SCADA gives 0.539 (weather decorrelates within days), student clickstreams give 0.534 (on active days the mix of activity is nearly stationary; the calendar mainly decides which days are active), and casualty-free vessel tracks give 0.527 [0.496, 0.558], or 0.517 without position. A linear classifier gives the same within-domain conclusions with one exception, the order of two ICU tiers (Appendix § 18), and Appendix § 19 shows how the temporal AUC grows with the time offset.

From Audit Scores to Inflated Evaluation

The audit measures information detectable by a specified probe. This section tests sensitivity to overlap under controlled evaluation designs. I start with unit-labeled case-control classification, in which every row of an event unit is positive and every row of a sampled non-event unit is negative. § 5 tests the same comparison on a fixed-horizon forecasting task. Wind has no event labels and is absent. For vessels the event is a Coast Guard casualty.

Design. Each overlap contrast in Table 4 scores the same test rows with matched per-class training counts. About 20% of units are selected for testing; each of their sampled rows is independently assigned to test with probability one half. Overlap training replaces some remaining-unit rows with other rows of test units, matching class counts. Disjoint training uses only remaining units. The calendar contrast tests beyond the 80th time percentile and trains at or before it; the embargo tests beyond the 90th and trains at or before the 70th. Δ\Delta is overlap AUC minus disjoint AUC, a protocol contrast rather than a decomposition of recognition alone.

DomainTierIdentity AUCOverlapDisjointΔ\Delta unitΔ\Delta calendarΔ\Delta embargo
ICUcarry-forward0.9930.9080.788+0.120+0.116+0.060
ICUcarry-forward 6 h0.9460.8280.770+0.057+0.028+0.011
ICUmodel fill0.9780.8340.781+0.053+0.052+0.024
ICUraw0.9160.7690.752+0.017+0.013+0.007
ICUmean fill0.9140.7690.751+0.018+0.013+0.007
Mortgagefull1.0000.9470.886+0.061+0.043+0.032
Mortgageno clocks0.9940.8120.766+0.046+0.064+0.027
Drivesfull1.0000.9130.867+0.045+0.041+0.019
Drivesno clocks0.9980.8740.829+0.045+0.038+0.021
Clickstreamsfull0.6600.5880.586+0.002+0.003+0.002
Clickstreamstotals0.5400.5400.540+0.000+0.000+0.000
Vesselsfull0.9550.8840.865+0.019+0.014+0.013
Vesselsno location0.8860.8360.824+0.012+0.009+0.007

Table 4. Controlled case-control experiment. Each Δ\Delta compares two fits on the same test rows with the same per-class training counts, replacing some other-unit rows with test-unit rows in the overlap arm. Overlap and Disjoint are the unit contrast’s mean AUCs. ICU and clickstream time is counted from each unit’s start, so their calendar and embargo columns hold out late-in-record rows rather than later history. Mean-fill and model-fill event fits are fit on training rows; the associated identity audits use panel-wide fits. Intervals are in the text and released results.

Each cell averages 200 replicates, sampling up to 4,000 units per class from fixed supersets and up to 20 rows per unit from fixed reservoirs capped at 100 rows. A class with no surplus units retains all its units. Intervals are the empirical 2.5–97.5 percentile ranges over pool, row, split and fit variation, conditional on those supersets; they are not confidence intervals for a population mean. Tiers share each replicate.

A separate training-size control changes AUC by at most 0.0022 (Appendix § 23).

Longer carry-forward increases the measured overlap gap. In the ICU, the five variants retain the same six-hour measurement counts and differ only in how missing values are filled. The patient-overlap gap is +0.017 on raw values and +0.018 with mean fill, rises to +0.057 when values are carried forward for up to six hours, and reaches +0.120 [+0.108, +0.131] when they are carried forward without limit. The paired difference between unlimited carry-forward and raw values is +0.103 [+0.091, +0.114]. Identity AUC shows the same increase with carry-forward duration (raw 0.916, mean fill 0.914, six-hour 0.946, unlimited 0.993); raw and mean fill are close on both.

A model-based fill falls between raw values and unlimited carry-forward. The fifth variant fills each missing value with a regression prediction from the hour’s observed values, each variable’s last earlier value and the counts (chained ridge regressions, fit on training rows only). Its overlap gap is +0.053 [+0.047, +0.060], +0.036 above raw values and level with six-hour carry-forward (difference -0.004 [-0.010, +0.002]). Its identity AUC is 0.978, above raw values and above six-hour carry-forward. The audit therefore separates the fills that draw on a patient’s own history from those that do not; it does not order the three history-based fills by the size of their gaps. Filling with training-row means rather than one panel-wide constant changes the mean-fill Δ\Delta by at most 0.0002.

The rows with the lowest identity AUC show no clear overlap gap. Table 4 has 13 rows across five domains, plotted in Figure 1B. The overlap gap’s range excludes zero in 10 of them: every ICU variant, mortgages, drives, and vessels with all features. It includes zero in the other 3, which are also the rows with the lowest identity AUCs: clickstreams (Δ\Deltas +0.002 [-0.003, +0.006] and +0.000 [-0.004, +0.003]) and vessels without position (+0.012 [-0.001, +0.025]). The rows are not independent, since five are ICU variants and each other domain contributes two, so this pattern describes these datasets and is not a threshold.

The score does not give the size of a gap. Vessels with all features read 0.955 and show +0.019 [+0.006, +0.030]; a casualty vessel has only a few windows, so little of a test vessel reaches training, which likely limits the gap. ICU six-hour carry-forward reads 0.946 and shows +0.057.

Substantial identity discrimination remains within hospital. Matching impostors on hospital lowers identity AUC from 0.993 to 0.989 under carry-forward and from 0.916 to 0.879 on raw values, and a hospital-holdout arm shows no clear imputation effect (Appendix § 21).

The result replicates on a second ICU dataset. The PhysioNet 2012 challenge data ([34]) contain 12,000 ICU stays from MIMIC-II. Using hourly rows over the first 48 hours, in-hospital death as the event, and the same fills, counts and controls (Table 5) gives the same unit-overlap pattern. Identity AUC and overlap gap rise in the same steps. Unlimited carry-forward minus raw values is +0.083 [+0.068, +0.099] on the gap, six-hour minus raw is +0.022 [+0.014, +0.031], and mean fill minus raw is +0.001 [-0.005, +0.006]. Carry-forward leads raw values by 0.150 AUC with shared patients and by 0.068 held out. One of the two PhysioNet 2019 hospital systems is the source of MIMIC-II, so this is a second dataset and a second outcome, not an independent hospital.

FillIdentity AUCOverlapDisjointΔ\Delta unit [range]
carry-forward0.9980.9460.815+0.132 [+0.117, +0.146]
carry-forward 6 h0.9850.8690.797+0.071 [+0.063, +0.080]
raw0.9740.7960.746+0.049 [+0.042, +0.057]
mean fill0.9720.7950.745+0.050 [+0.042, +0.059]

Table 5. Replication on PhysioNet 2012, event in-hospital death. Same design as Table 4: fixed test rows, matched per-class training counts, 200 replicates. Every fill keeps the six-hour measurement counts.

Holding Out the Future Does Not Hold Out the Unit

A temporal holdout need not exclude units seen in training. Whether retaining those units is appropriate depends on deployment. At the 80th-percentile cut, 95% of drives, 75% of loans, 64% of learners and 52% of stays have rows on both sides. In the ICU and clickstream panels time is counted from each unit’s own start, so no absolute-calendar split can be built from these time columns. On mortgages and drives, the overlap gap survives the calendar split in every cell: mortgages +0.043 [+0.022, +0.064] and +0.064 [+0.049, +0.081], drives +0.041 [+0.022, +0.062] and +0.038 [+0.024, +0.055]. An embargo between training and test helps unevenly. On mortgages the gap stays positive (+0.032 [+0.003, +0.065]); on drives the interval covers zero (+0.019 [-0.006, +0.044]). On vessels both ranges include zero (calendar +0.014 [-0.010, +0.038], embargo +0.013 [-0.016, +0.047]). A calendar split and a unit split are separate controls, and applying one does not provide the other.

Fixed-Horizon Forecasting

I also test whether a model can predict recorded sepsis onset within a fixed time horizon using ICU records. Onset is six hours after the first positive challenge label. At hour tt, the target is recorded onset within the next 12 hours. Rows at or after onset and 426 stays positive from their first recorded hour are excluded; the latter have no identifiable onset from the shifted-label transition. Raw values use the current hour; carry-forward and measurement counts use current and past hours. Reported mean-fill fits estimate constants from training rows.

Random Patient-Hour Overlap

Each of 200 replicates retains all 2,506 eligible septic stays, samples 4,000 never-septic stays, and includes every positive hour and up to 20 negative hours per stay. Some septic stays have no eligible negative hour. Negatives mean no recorded onset in the horizon; no additional follow-up requirement is imposed near the end of a record. The unit contrast randomly divides sampled test-patient hours: overlap training can therefore include later hours and labels from those patients. Section 5.2 compares this design with training restricted to earlier, resolved patient hours.

Patient overlap raises AUC by +0.147 under carry-forward and +0.031 on raw values, a paired difference of +0.117 [+0.102, +0.131] (Table 6). The gap is larger than in case-control classification. Disjoint AUCs remain different (0.740 versus 0.694): carry-forward also improves this measured disjoint performance. Identity AUC and the overlap gap both increase with carry-forward duration, while raw and mean fill are close. This association is observed in one domain and one horizon, not a validated rule for predicting gap magnitudes.

ImputationIdentity AUCOverlapDisjointΔ95% range
carry-forward0.9930.8870.740+0.147[+0.133, +0.162]
carry-forward 6 h0.9460.8160.706+0.110[+0.097, +0.121]
model fill0.9780.8080.734+0.074[+0.065, +0.083]
raw0.9160.7240.694+0.031[+0.025, +0.038]
mean fill0.9140.7250.693+0.032[+0.026, +0.039]

Table 6. ICU sepsis forecasting, onset within 12 hours. Approximately half of each test patient’s sampled hours enter the overlap training pool. Both fits score the same test hours with matched per-class training counts. Ranges are empirical replicate percentiles. Identity AUC for mean and model fill uses panel-wide fits, whereas forecasting fits them on training rows.

A shared-patient comparison can pick the wrong fill. With shared patients, unlimited carry-forward leads the model fill by 0.079 AUC; with patients held out the two are level (0.006). Six-hour carry-forward is level with the model fill when patients are shared (-0.008 for the model fill) and behind it when they are held out (+0.028); the difference in their overlap gaps is -0.035 [-0.048, -0.022].

Within-Patient Chronological Control

This comparison requires complete follow-up for negative labels and restricts training to a test patient’s earlier hours whose labels have resolved by the prediction cut. For each test patient the cut is the ceiling of the median sampled hour. Test hours are at or after the cut; training hours must end their prediction horizon by the cut. Negative hours without a full 12-hour follow-up are excluded. Both arms score identical test rows with matched per-class training counts.

Requiring complete follow-up preserves the random-overlap effect: carry-forward minus raw is +0.117 [+0.104, +0.130] on the gap. The chronological comparison shows no positive mean gap for any fill (Table 7). Earlier hours contribute training data for 805 of 1,305 test patients. All admissible hours are negative, so this control changes both the information and the amount of training data supplied by test patients. High identity AUC accompanies inflation under random patient-hour overlap, but not under this chronological protocol.

ImputationRandom overlap Δ\Delta [range]Chronological overlap Δ\Delta [range]
raw+0.034 [+0.028, +0.040]-0.004 [-0.008, -0.000]
mean fill+0.035 [+0.029, +0.040]-0.004 [-0.007, +0.000]
carry-forward 6 h+0.120 [+0.108, +0.132]-0.006 [-0.012, -0.000]
carry-forward+0.151 [+0.138, +0.164]-0.007 [-0.014, +0.001]

Table 7. Sepsis forecasting with complete follow-up. Each column compares overlap and disjoint training on identical test rows with matched training counts. Test rows differ between columns because the chronological design uses only hours at or after each patient’s cut. Ranges are empirical percentiles over 200 replicates.

The Clinical Values Add Little Beyond the Clock and Measurement Counts

On the complete-follow-up cohort, hour of stay plus measurement counts, with no clinical values, scores 0.761 on held-out patients. Adding the raw clinical values gives 0.779, a difference of +0.018 [+0.008, +0.026], so the clinical values add a small increment to what the clock and the measurement pattern already give. Hour of stay alone scores 0.728. The clinical-value variants of Table 7 omit hour of stay, and without it raw values with counts score 0.681, below hour of stay alone (difference +0.046 [+0.023, +0.070]), and unlimited carry-forward of every value scores 0.732, below hour of stay plus counts (difference +0.029 [+0.013, +0.047]). Claims that physiological measurements add predictive value should be evaluated against these baselines on the same target, cohort and split.

The random-split exaggeration, the chronological control and the hour-of-stay baseline each hold within each of the two PhysioNet 2019 hospital systems analyzed separately (Table 8).

HospitalFillOverlapDisjointRandom-split gap [range]Chronological gap [range]
Acarry-forward0.9230.741+0.182 [+0.162, +0.200]-0.007 [-0.016, +0.002]
Acarry-forward 6 h0.8490.697+0.151 [+0.135, +0.169]-0.005 [-0.014, +0.001]
Araw0.7420.697+0.045 [+0.036, +0.055]-0.003 [-0.008, -0.000]
Bcarry-forward0.9420.756+0.187 [+0.165, +0.206]-0.013 [-0.025, -0.000]
Bcarry-forward 6 h0.8640.711+0.153 [+0.130, +0.177]-0.006 [-0.016, +0.002]
Braw0.7450.698+0.047 [+0.036, +0.060]-0.004 [-0.009, +0.002]

Table 8. Sepsis forecasting within each PhysioNet 2019 hospital system, complete-follow-up cohort, 200 replicates each. The carry-forward minus raw difference in random-split gaps is +0.138 [+0.117, +0.158] in hospital A and +0.140 [+0.118, +0.163] in hospital B. Hour of stay alone scores 0.730 and 0.771 on held-out patients, +0.033 [+0.006, +0.062] and +0.073 [+0.034, +0.114] above raw values.

Using the Audit

Choose the evaluation split from the intended use before running the audit. Test on unseen units when deployment concerns new units; for known units, restrict training to information available before prediction. Apply these requirements regardless of the audit score. Then use the audits to locate features and preprocessing choices for further checks (Table 9).

Audit resultFollow-up comparison
Identity discrimination increases under preprocessingCompare preprocessing choices under the deployment split, using the same test rows and matched training counts. The tested random-overlap protocols exaggerate the gains of carry-forward imputation.
Timing discrimination falls after feature removalCompare the event model with a baseline using those features alone, provided they are available at prediction time.
Timing discrimination survives feature removalCompare against a time-only baseline on the same target and test rows; information about temporal position remains in the features.
Scores change with temporal offsetTake held-out data as far past training as the model will be used: drive records a month apart are nearly indistinguishable (temporal AUC 0.525) and clearly different after three to six months (0.734). Waiting does not remove identity; drive identity AUC is 1.000 at that gap.
Either AUC is near 0.5This probe detected little signal at these offsets. Retain the evaluation split required by deployment.

Table 9. Using the audit to choose follow-up comparisons. Audit AUC measures discrimination on the pairing task; the downstream comparison measures its consequence for event prediction.

Scope and interpretation. High audit AUC establishes that the tested representation contains recoverable unit identity or temporal ordering; it does not by itself establish inflated event-prediction performance. Such information can support a misleading evaluation when it is associated with the prediction target and the evaluation protocol permits its use in ways unavailable in deployment. My experiments illustrate why recoverability alone is insufficient. Clickstream records identify the student above chance (identity AUC 0.660) and show no clear positive overlap gap (+0.002 [-0.003, +0.006]). Carry-forward ICU records identify the patient almost perfectly (0.993), and the gap they show under random patient-hour overlap is absent when training uses only a patient’s earlier, resolved hours (-0.007 [-0.014, +0.001]). For known-unit forecasting, shared identity can be appropriate when training uses only information available before prediction. The audits therefore identify features and preprocessing choices for follow-up comparisons under deployment-aligned splits; they do not provide a mapping from audit AUC to downstream inflation.

For example, a sepsis model for new patients requires held-out patients under every preprocessing choice. Carry-forward’s higher identity AUC motivates checking whether a shared-patient comparison overstates its benefit. On the complete-follow-up cohort, its advantage over raw values is +0.167 with random overlap and +0.050 with held-out patients. Report the latter comparison alongside the hour-of-stay baseline from the same cohort (§ 5.3).

Related Work

Both tests apply negative-control reasoning [20], and each has established predecessors. For identity, these are biometric verification [12, 27] and privacy studies of how unique individual records are [6, 31], including re-identification of patients from laboratory orders alone [13]. For time, the precedents are the self-matching of the case-crossover design and its time-trend corrections [22, 35], placebo tests [1], and classifier two-sample tests [21, 5]. Both audits are gradient-boosted classifiers on matched pairs of windows from one panel: the identity test matches windows on the declared time coordinate and offset, and the temporal test pairs windows within units. Temporal-order pretext tasks [23, 39] pose the same ordering question to learn representations; here it measures a dataset.

Leakage taxonomies [16, 14], reporting standards [15], meta-reviews of evaluation failure [19], and a catalog of forecasting pitfalls [11] describe how evaluations can fail and how to check them. My audits complement that work by measuring identity and temporal information in the data before an event-prediction model is fit. Work on dataset documentation calls for measured, comparable properties of datasets [24]; the two AUCs are such properties, with a known null expectation. Large-scale leakage measurement compares leaky and clean evaluation of trained models [33], which requires classification labels and a task. My audits require event status to select event-free units, but no forecasting target. Where unit identity crossing a split inflated published results [40] or, in controlled experiments, drastically inflated performance [32], an identity audit of the kind used here could have been run on the data before any of those models were fit. Recognition can also act at the level of a group: Zech et al. [42] show that a chest radiograph model identifies the hospital system that produced an image, and that differences in disease prevalence between hospitals then confound its predictions. My identity test concerns the individual unit; the most-similar-unit pairs of Table 2 and the hospital-matched pairs and cohort holdouts of Appendix § 21 address the group level. Appendix § 24 compares the closest methods.

Limitations

Audit AUC depends on the probe, feature set, pairing population and offset range. The six-domain results describe these declared measurements; different task designs prevent interpreting identity and temporal AUCs as a common information scale. Matching controls the panel’s time coordinate, not every shared environmental factor: hours since admission do not match admission dates. Hospital-matched results address one such factor (Appendix § 21).

The imputation effect holds on two ICU datasets that share a source hospital. Forecasting covers one dataset and one horizon; sampled hours do not represent deployment prevalence. Replicate ranges describe variation conditional on the available pools. Unit overlap can be appropriate for known-unit deployment when training uses only information available before prediction, as the chronological control illustrates. The audits do not detect leakage introduced by resampling before splitting [37] or model selection on evaluation data [26].

Conclusion

Ordinary records reveal which unit they came from and when, and two simple audits measure how much before any event-prediction model is trained. Across two ICU datasets, carry-forward imputation makes patients far easier to recognize and exaggerates its own measured benefit when a patient’s hours are split between training and test. On the sepsis task, a within-patient chronological control shows no positive mean gap, so recognizability does not become inflation under every protocol. With complete follow-up on the same task, hour of stay and measurement counts, with no clinical value, score 0.761 on held-out patients, and the raw clinical values add +0.018. On drives and mortgages, a calendar split leaves most units on both sides and the overlap gap in place. The audits tell a practitioner which features and preprocessing choices to check, and the released code runs both the audits and the checks.

Reproducibility Statement

The supplementary material contains the complete harness (an installable package with invariant tests for the forced-null, split, placebo, and controlled-overlap constructions), panel adapters, declarations and stored results for the six-domain harness measurements, the controlled overlap and forecasting experiments with their stored results, the PhysioNet 2012 adapter, and the scripts that build the ICU and drive panels from the public raw downloads. The vessel adapter reads per-window summaries published with the linked maritime corpus, whose computation from raw tracks is not included. Appendix § 15 and the supplementary README state these boundaries. The supplementary material also includes the manuscript source, in which every reported AUC, gap and interval is generated from the stored result files. Sections 2 and 2.1 specify the construction and its preconditions; Appendix § 17 validates the interval machinery. The pipeline is seeded throughout, and a full regeneration of the 30 temporal, identity and placebo measurement files reproduces the stored per-seed AUCs and interval bounds to the fourth decimal.

Public-data runs require the corresponding source downloads and panel preparation. The package also includes a self-contained demonstration, aa-floor-demo, that needs no download and no credentials. It synthesizes a panel with signal planted on known columns, runs both tests on it through the same entry points used for the six-domain audit measurements, and checks each tier against what was planted: each test must read its own axis above the null, read the other test’s axis at the null, and read pure noise at the null. It reports whether each feature tier meets its expected result and exits non-zero if any tier misses. Appendix § 15 gives the construction.

I also release whowhen version 0.3.1 (https://github.com/mojolearn/whowhen; Hendel, [10]), a Python library that runs identity and timing audits on panel tables. The user names the unit and time columns; the report includes re-identification, time-order and timing-placebo scores. When event labels permit, it also provides corresponding evaluation checks for overlap, chronological and calendar splits, and comparison with time alone. The library fits its classifiers with mojolearn (Hendel, [9]). For the release used here, the numerical outputs of the turbine report agreed exactly between an Apple M4 and an NVIDIA RTX 4090; execution metadata is excluded from that comparison. Appendix § 22 reports the library’s audit values on the six domains and specifies its protocol. Every other number in this paper comes from the supplementary research harness, which uses a different classifier.

AI Use Statement

Large language models were used to retrieve and discover related literature, support research ideation and hypothesis refinement, assist with methodology and experiment design, and aid software implementation (including the code that synthesizes the released demonstration’s panel from a random seed; no model produced any data), mathematical formulation and proof assistance for Proposition 1 and its proof in Appendix § 16, interpretation of results, and manuscript drafting and editing, including drafting sections and polishing their writing. Empirical values are outputs of executed experiments, with the synthetic demonstration distinguished from the public-data measurements. Harness values pass through generated macros and transcription audits. These audits check consistency with stored results, not the validity or provenance of the experiments themselves. The research questions and study design were chosen, the experiments executed and audited, the proof checked, and the reported results and citations verified by the human authorship of this paper, which takes responsibility for its contents.

Broader Impact

The audits help practitioners find evaluation results that overstate how a model will perform on new patients, drives or loans, which matters most where predictions inform clinical or financial decisions. All measurements use public, de-identified datasets under their published terms. The identity test asks only whether two windows within a dataset share an anonymous unit label; no window is linked to an external identity, and results are reported as aggregate AUCs. The same measurement shows that de-identified operational records remain linkable to one another within a dataset, in the ICU from measurement counts alone. That is useful to data stewards assessing a release, and it could also inform an attempt to link records across releases of the same data; I report aggregate discrimination only and release no linkage of individual records. A near-chance audit score does not certify an evaluation, and reading it as a certificate could give false assurance.

Competing Interests

The author declares no competing interests.

Datasets

DomainSourceUnitsSamplingOffsets
ICUPhysioNet 2019 [30]40,336 stayshourly6–24 h
ICU (2012)PhysioNet 2012 [34]12,000 stayshourly6–24 h
DrivesBackblaze [3]360,106 drivesdaily30–90 d
MortgageFreddie Mac [7]162,490 loansmonthly6–18 mo
ClickstreamsOULAD [18]29,228 registrationsactive days14–60 d
WindPlumley (2022a,b)20 turbinesdaily14–60 d
VesselsLinked AIS corpus [8]6,248 vesselsweekly windows14–60 d

Table 10. The six panels and the second ICU dataset used for replication. Each is mapped to the panel format by an adapter, and a declaration fixes its offsets, feature tiers and clock columns.

Table 10 lists the panels. The drive panel’s clock columns are power-on hours and total writes. The mortgage clocks are balance, age and remaining term; without them the remaining timing signal is carried by the quarterly loan-to-value index. Clickstream windows are measured on days a student is active. For the overlap experiment the vessel panel adds the corpus’s 768 casualty vessels, each with its pre-incident window and earlier windows of the same vessel. The audited vessel panel is the casualty-free pool of a public corpus that links casualty investigations to AIS tracks, with one window about every seven days over two years, summarized into kinematics, history statistics, AIS reporting counts and position.

Drives are identified individually, not by model. Drive identity AUC is 1.000 with clocks and 0.998 without, so the wear-state pattern alone is unit-specific. Restricting every impostor to the anchor’s own drive model, so that model and capacity carry no information, leaves 0.996 [0.992, 0.998], so the classifier is not only recognizing drive models.

Vessels are identifiable without position. Vessel identity AUC is 0.955 [0.932, 0.973] on windows whose temporal AUC is 0.527. Removing latitude and longitude leaves 0.886: speed profile and reporting frequency identify the vessel, and reporting frequency alone gives 0.732, the counterpart of the ICU measurement-count result.

Twenty turbines are too few for the identity test. Five-seed means range 0.747–0.948 and the pooled interval [0.617, 0.999] spans more than a third of the AUC axis, and a single draw (0.917) is not representative of its own seeds. Pooled temporal scoring draws power from thousands of rows, while the identity test’s effective sample size is the number of units.

The mortgage rate-only tier reads the null. The loan’s fixed rate is constant within a unit, and its temporal AUC is 0.500 to four decimals, the value symmetry forces.

Harness

The released harness measures both quantities, and the placebo, for any eligible panel from one parquet file and one JSON declaration. Per-seed values and intervals ship in the supplementary material, and the numbers in this paper are generated from those files.

aa-floor-demo needs no download. It synthesizes a panel with a timing signal on one group of columns (a calendar counter and a trend shared by every unit), an identity signal on another (per-unit constant offsets plus noise) and pure noise on a third. It then runs the published entry points unmodified and checks that each test detects its own signal and reads 0.5 on the other’s and on the noise.

Proof of the Forced Null

Proposition 1 (Forced null). Let the test set be mm matched pairs from the declared protocol, pair kk contributing a scored item UkU_k labeled 1 and an item VkV_k labeled 0, and let ss be any scorer that is a fixed measurable function of the features and independent of the held-out labels. If the joint law of ((U1,V1),…,(Um,Vm))((U_1,V_1),\ldots,(U_m,V_m)) is invariant to exchanging UkU_k with VkV_k for every kk at once, then the pooled empirical AUC with mid-rank ties satisfies E[AUC^]=1/2\mathbb{E}[\widehat{\mathrm{AUC}}]=1/2, for every such ss and every mm.

Proof. Write the pooled empirical AUC with the mid-rank tie correction as

AUC^=1m2∑k=1m∑l=1m[1{s(Uk)>s(Vl)}+121{s(Uk)=s(Vl)}].\widehat{\mathrm{AUC}}=\frac{1}{m^2}\sum_{k=1}^{m}\sum_{l=1}^{m}\left[\mathbf{1}\{s(U_k)>s(V_l)\}+\frac{1}{2}\mathbf{1}\{s(U_k)=s(V_l)\}\right].

Let σ\sigma exchange UkU_k with VkV_k for every kk at once. By hypothesis σ\sigma preserves the joint law of the test sample, and ss is held fixed, so AUC^∘σ\widehat{\mathrm{AUC}}\circ\sigma has the same distribution as AUC^\widehat{\mathrm{AUC}}. Relabeling the summation indices, the (k,l)(k,l) term of AUC^∘σ\widehat{\mathrm{AUC}}\circ\sigma pairs with the (k,l)(k,l) term of AUC^\widehat{\mathrm{AUC}} to give 1{a>b}+1{b>a}+1{a=b}=1\mathbf{1}\{a>b\}+\mathbf{1}\{b>a\}+\mathbf{1}\{a=b\}=1 with a=s(Uk)a=s(U_k) and b=s(Vl)b=s(V_l), so AUC^∘σ=1−AUC^\widehat{\mathrm{AUC}}\circ\sigma=1-\widehat{\mathrm{AUC}} pointwise. Taking expectations, E[AUC^]=E[1−AUC^]\mathbb{E}[\widehat{\mathrm{AUC}}]=\mathbb{E}[1-\widehat{\mathrm{AUC}}], and the claim follows. □

Why the ordered pair and not the marginals. Equal marginals do not force the null, because the two items of a pair are dependent and the within-pair comparisons enter the statistic. The temporal null is therefore exchangeability of the ordered window pair, which is strictly stronger than stationarity of Xi,tX_{i,t} and is the sense in which the paper uses the word throughout. The identity null is already in this form, the same-unit and different-unit continuations of a shared anchor being exchangeable once calendar and offset are matched.

What the statement fixes. Randomness. The expectation is over the draw of the test pairs, with the training units, the fitted scorer, and the scorer’s own seed held fixed by conditioning. The published values additionally average over pair-draw seeds and the intervals resample units; both sit outside the proposition and are reported separately. Independence. The scorer must not depend on the held-out labels. The unit-disjoint split keeps the held-out units out of fitting, and in the identity test the units are split before any pair is drawn, so no unit contributes to both fitting and scoring. Ties. Gradient-boosted ensembles produce many ties, so the mid-rank convention matters. The involution needs the 12\frac{1}{2} weight for the three indicators to sum to one, and it is the convention the reported AUCs already use. Scope of “every classifier.” Every scorer measurable in the features and independent of the held-out labels, which covers any model fit on the training units by any procedure. It excludes a procedure that reads the held-out labels, which is the failure the design prevents. Finite sample. The conclusion concerns the expected empirical AUC at the realized mm and not a population limit, so the bootstrap width and the seed spread quoted throughout describe spread around a mean that the null fixes at exactly one half.

Where the released construction departs from the idealization. The proposition assumes every anchor yields a matched pair. In the identity test the units are split before any pair is drawn and the impostor is drawn from the anchor’s own side, so the split discards nothing; the one residue is an anchor whose matched time offers no impostor on its side, which emits its same-unit row unmatched. The proposition applies to the matched subsample under its stated joint-invariance assumption; the unmatched residue requires a separate qualification. Class imbalance alone does not establish AUC bias. The harness records the per-side class counts in every results file, and Table 11 replays the published seeds and reports them: the test sides are balanced to within the residue, which is zero on every large panel, one or two rows under cohort-matched impostors, and at most fifteen on the twenty-turbine wind panel, where a matched time sometimes offers no impostor among four test units. The temporal test has no analogous residue, since both windows of a pair come from the same unit by construction. Neither test assumes the null is true. The proposition gives the expected reading if it were true, which is why AUC above 0.5 can be read as signal in the data.

PanelTrain sameTest sameTest differentTest unmatched
Drives8,0002,0002,0000
Drives (cohort matched)8,000–8,0022,0011,999–2,0001–2
Mortgage8,0002,0002,0000
Vessels3,2008008000
Clickstreams8,0002,0002,0000
ICU (carry-forward)8,0002,0002,0000
ICU (raw)8,0002,0002,0000
Wind251–33558–13758–1220–15

Table 11. Identity matching diagnostics, ranges across the five published seeds, replayed from the stored seeds without refitting. Train same is the number of same-unit training pairs; test same and test different are the two test classes; test unmatched counts same-unit test rows whose matched time offered no impostor on the test side. Per-seed counts ship in results/identity_balance.json and in each results file.

Interval Validation and Additional Controls

Checks on the measurement machinery. Reading the pooled interval. A single-seed interval conditions on that seed’s pairs, which is how a five-seed mean can fall outside it. The pooled interval describes the spread of one measurement while the quoted point averages five, so it describes a different target from a confidence interval for the five-seed mean. No general coverage guarantee is claimed. Coverage. Identity intervals come from a dyadic cluster bootstrap that resamples units over both pair roles. It was compared against a 200-repetition full-regeneration bootstrap on the two headline unsaturated cells, which resamples units, redraws pairs, refits, and rescores, and so includes every source of variation. Regeneration intervals [0.639, 0.674] (clickstreams) and [0.836, 0.859] (ICU values only) sit inside the reported pooled intervals [0.624, 0.694] and [0.828, 0.871], with regeneration means within 0.004 of the five-seed means. Pooling widens the dyadic interval relative to its primary-seed version ([0.624, 0.684] and [0.823, 0.865]), so the pooled intervals are wider than the regeneration intervals in these two checked cells. This comparison does not establish nominal coverage or conservativeness on other panels. Cohort matching. Drive impostors restricted to the anchor’s model leave identity AUC at 0.996, and ICU impostors matched on hospital are in Appendix § 21; the equivalent test has not been run for clickstreams, where course cohort remains a possible explanation for part of that number. Retention. The pairing rule narrows no domain by more than about a quarter, and eligible units exceed 90% of ordinary units in every large panel except vessels, whose weekly windows leave 4,628 of 6,248 with two windows 14–60 days apart. Retention ships with every result.

Scorer Sensitivity

Full-tier temporal AUCs under the harness tree and under a linear classifier (logistic regression, median-imputed, standardized; five seeds each). Mortgage 0.834 vs 0.821, ICU 0.718 vs 0.636, drives 0.598 vs 0.522, wind 0.539 vs 0.536, clickstreams 0.534 vs 0.542, vessels 0.527 vs 0.506. The mortgage rate-only rows agree across classifiers to the fourth decimal. All shifts are downward or within noise, consistent with each fitted AUC being at most its Bayes-optimal value. Within-domain tier conclusions hold with one exception: the ICU values and measurement-count tiers swap order under the linear classifier. The order of the mid-table domains also changes.

The Temporal AUC Depends on the Time Offset

Offset curves in two domains measure the full tier at a short, published, and long offset range. Drive temporal AUCs are 0.525, 0.598, 0.734 at 7–29, 30–90, and 90–180 days; ICU temporal AUCs are 0.592, 0.718, 0.881 at 3–6, 6–24, and 24–48 hours. Both curves are monotone and steep. Within a single domain the temporal AUC therefore spans nearly as much as the whole cross-domain spread of Table 3, so a temporal AUC is a property of a dataset together with a declared offset range, and should be measured at offsets relevant to the intended use. The cross-unit placebo tracks both curves in full (Appendix § 20), showing that shared time structure is sufficient to reproduce the increases.

Identity moves the other way and far less. ICU identity AUC at the same three offset ranges is 0.963, 0.916 and 0.860 on raw values with counts, and 0.997, 0.993 and 0.979 under carry-forward. Drive identity AUC is 1.000, 1.000 and 1.000 at 7–29, 30–90 and 90–180 days, and 0.999, 0.998 and 0.998 without time columns.

The second ICU dataset behaves the same way. On PhysioNet 2012 the temporal AUC is 0.556, 0.662 and 0.883 at 3–6, 6–24 and 24–40 hours (its records end at 48 hours, so the long range is shorter), while identity AUC is 0.993, 0.974 and 0.939 on raw values with counts and 1.000, 0.998 and 0.993 under carry-forward.

The Cross-Unit Placebo: Shared Structure versus Within-Unit Signal

Under pooled scoring, label-1 rows are on average one offset later than label-0 rows on the panel’s clock, so a classifier can detect structure shared across the population at matched clock positions without learning anything about an individual unit. The control is a cross-unit placebo. Draw the anchor (xi,t1)(x_i,t_1) and the offset exactly as the real construction does, but take the second window from a different unit observed at t2=t1+δt_2=t_1+\delta, label earlier/later, and score pooled as usual. The pairing carries no within-unit information, so any signal it detects is population structure. I compare its AUC with the within-unit pairing AUC. Their difference is a diagnostic contrast, not an additive statistical decomposition; AUC is nonlinear, and the contrast may be negative.

DomainOffsetsTemporalPlaceboDifference
Drives7–29 d0.5250.544 [0.521, 0.565]-0.020
Drives30–90 d0.5980.592 [0.579, 0.605]0.006
Drives90–180 d0.7340.715 [0.702, 0.727]0.019
ICU3–6 h0.5920.586 [0.570, 0.602]0.005
ICU6–24 h0.7180.697 [0.684, 0.708]0.021
ICU24–48 h0.8810.872 [0.857, 0.891]0.009
ICU (PhysioNet 2012)6–24 h0.6620.659 [0.641, 0.679]0.003
Mortgage (clocks)6–18 mo0.8340.736 [0.718, 0.753]0.098
Mortgage (no clocks)6–18 mo0.5490.529 [0.516, 0.542]0.020
Mortgage (rate only)6–18 mo0.5000.507 [0.490, 0.523]-0.007
Clickstreams14–60 d0.5340.555 [0.542, 0.567]-0.021
Wind14–60 d0.5390.563 [0.529, 0.599]-0.024
Vessels14–60 d0.5270.546 [0.510, 0.580]-0.019

Table 12. Cross-unit placebo beside the matched within-unit temporal AUC (five-seed means, seed-0 unit-clustered bootstrap intervals on the placebo; full tier except the labeled mortgage variants). “Difference” is temporal AUC minus placebo AUC, reported as a diagnostic contrast rather than an additive within-unit component. The placebo reproduces most of the temporal AUC everywhere except the mortgage clock tier, whose temporal structure is unit-anchored; in the PhysioNet 2019 ICU 6–24 h, drive 90–180 d and mortgage no-clock rows the temporal AUC sits above the placebo interval.

The placebo reproduces most of the temporal AUC in every measured cell except mortgages with clock features (Table 12). In ICU records, matching stay hours across patients retains the temporal discrimination; in drives, matching calendar positions does the same. Shared time structure is therefore sufficient to reproduce these scores. The mortgage clock tier differs: cross-unit pairing lowers AUC by 0.098, consistent with balance and age ordering records within a loan more reliably than across loans. These comparisons identify shared structure that can support discrimination; they do not isolate every source of temporal information.

Cohort Holdouts and Hospital-Matched Identity

The controlled runs also measured a cohort arm not shown in the main tables (Table 13), and hospital-matched identity for every ICU variant (Table 14). In the cohort arm, the test rows are half the units of held-out cohorts (loan vintage for mortgages, drive model for drives, hospital for ICU). Both training sets exclude the test units; overlap training adds their sibling units from the same cohorts, and disjoint training uses other cohorts only. Test rows and per-class training counts are fixed as in Table 4. A positive Δ\Delta means that seeing other members of a test unit’s cohort raises AUC.

ExperimentDomain (cohort)TierΔ\Delta cohort [range]
Case-controlMortgage (vintage)full+0.070 [-0.006, +0.216]
Case-controlMortgage (vintage)no clocks+0.037 [-0.005, +0.111]
Case-controlDrives (model)full+0.105 [+0.037, +0.219]
Case-controlDrives (model)no clocks+0.048 [+0.008, +0.100]
Case-controlICU (hospital)carry-forward+0.085 [+0.054, +0.115]
Case-controlICU (hospital)carry-forward 6 h+0.070 [+0.052, +0.087]
Case-controlICU (hospital)model fill+0.096 [+0.060, +0.159]
Case-controlICU (hospital)raw+0.076 [+0.053, +0.099]
Case-controlICU (hospital)mean fill+0.075 [+0.055, +0.096]
ForecastingICU (hospital)carry-forward+0.054 [+0.023, +0.097]
ForecastingICU (hospital)carry-forward 6 h+0.059 [+0.031, +0.087]
ForecastingICU (hospital)model fill+0.080 [+0.056, +0.116]
ForecastingICU (hospital)raw+0.074 [+0.053, +0.095]
ForecastingICU (hospital)mean fill+0.072 [+0.052, +0.091]

Table 13. Cohort arm of the controlled experiments. Ranges are empirical 2.5–97.5 percentile ranges over 200 replicates. ICU raw includes the six-hour measurement counts, as in Table 4.

ICU variantAll different-patient pairsSame-hospital pairs
carry-forward0.9930.989 [0.984, 0.992]
carry-forward 6 h0.9460.920 [0.905, 0.933]
model fill0.9780.971 [0.963, 0.978]
raw0.9160.879 [0.859, 0.899]
mean fill0.9140.876 [0.852, 0.896]
counts only0.8790.820 [0.791, 0.847]

Table 14. Identity AUC for every ICU variant, with different-patient pairs drawn from any hospital or matched to the anchor’s hospital. Means over five seeds; brackets are intervals for the matched column.

Drives show a cohort effect that excludes zero in both tiers: training on other drives of the same model raises AUC on held-out drives by +0.105, and by +0.048 without clock columns. Mortgage ranges include zero and are wide, because vintages differ greatly in size and vintage is close to collinear with the calendar. In the ICU, the hospital effect is similar across imputations in both experiments: the forecasting contrast between carry-forward and raw values is -0.019 [-0.045, +0.015], and the case-control contrast is +0.009 [-0.030, +0.048]. Both paired intervals include zero, so I see no clear imputation effect on hospital composition, unlike the clear effect on patient overlap.

Matching on hospital lowers identity AUC for every variant, most for measurement counts alone and least under unlimited carry-forward, and keeps the order of the variants: unlimited carry-forward, then the model fill, then six-hour carry-forward, then raw values and mean fill, then counts alone. The ranking of preprocessing choices used in § 4 therefore holds within a hospital.

The Library on the Six Domains

The whowhen 0.3.1 library implements corresponding identity (re-identification) and timing (time-order) tests. Its classifier is mojolearn 0.8.66 gradient boosting with symmetric trees (Hendel, [9]), whereas the main-text harness uses LightGBM. WhoWhen uses mojolearn’s default identical mode for bitwise reproducibility across supported Apple, NVIDIA and AMD GPUs and Apple silicon (ARM64) and Linux x86-64 CPUs, given the same release, numerical profile, inputs, hyperparameters and seed. The library chooses offsets from the median gap between consecutive observations up to half the median unit span. It uses three fixed repeats, each holding out a quarter of the units; the harness uses five random seeds with a fifth held out.

Library identity controls match on time, event status and automatically detected unit-constant group columns. Here these include drive model and capacity, mortgage vintage and ICU site. Identity sampling retains event-bearing units; timing and placebo sampling use event-free units. Pairs without eligible controls are dropped together. These changes in sampling, offsets and classifier make the comparison descriptive, rather than a controlled replication of the main-text estimates. The feature sets are those of Table 1. The reported library results cover the identity, timing, placebo and gap checks, with no forecast horizon specified; they do not rerun the main-text forecasting experiments.

The library shows high identity AUCs for drives, mortgages, vessels and carried-forward ICU records, with lower values for raw ICU records and clickstreams. These estimates use matched controls rather than the nearest-neighbor construction of Table 2. Timing AUCs are not comparable row for row with Table 3, because they depend on the offset (Appendix § 19) and the sampling protocol. The placebo differs from timing AUC by at most 0.060 across the reported feature sets, and sometimes exceeds it, consistent with substantial time structure shared across units.

Table 16 splits each library offset range at its midpoint. The largest short-to-long identity AUC drop is 0.073. Timing AUC is higher on the longer half in every domain except vessels, where it is near chance on both.

Domain (all features)IdentityTiming
Shorter halfLonger halfShorter halfLonger half
Drives0.9940.9920.5790.781
Mortgage1.0001.0000.6290.756
ICU (carry-forward)0.9940.9850.5950.754
ICU (no carry-forward)0.9430.8700.5780.680
Vessels0.9600.9490.5270.522
Clickstreams0.6790.6630.5350.591
Turbines——0.5520.732

Table 16. Library AUCs on the shorter and the longer half of each offset range of Table 15.

Domain (features)Library offsetsIdentityTiming
Main textLibraryLibraryPlacebo
Drives (all)1–227 d1.0000.9910.6310.638
Drives (no clocks)1–227 d0.9980.9800.5420.552
Mortgage (all)31–242.5 d1.0001.0000.6730.664
Mortgage (no clocks)31–242.5 d0.9940.9960.5250.534
ICU (carry-forward)1–18.5 h0.9930.9920.6370.621
ICU (no carry-forward)1–18.5 h0.9160.9210.6020.590
Vessels (all)11–132.5 d0.9550.9560.5180.574
Vessels (no location)11–132.5 d0.8860.8910.5120.571
Clickstreams (all)1–117 d0.6600.6760.5460.568
Turbines (all)1–182 d——0.5660.556

Table 15. WhoWhen 0.3.1 audit AUCs. Main text repeats the research-harness identity AUC of Table 1. Placebo uses a later row from a different unit observed at that time. Means over three repeats. Turbine identity estimates are omitted because twenty units are insufficient for reliable identity inference; its timing estimates are exploratory.

Training-Size Control

To measure sensitivity to training-set size, I keep the test rows fixed and compare a fit on all remaining-unit training rows with a fit on a random 80% of those rows. The largest absolute mean AUC difference across the controlled survey cells is 0.0022. The overlap comparisons in the main text match per-class training counts between arms.

Closest Methodological Comparisons

Identity verification. Biometric verification [12, 27, 25] provides the same-unit versus different-unit classification task. Patient re-identification from laboratory orders [13] is a close clinical precedent: it ranks a day’s orders against candidate patients to measure privacy risk. Here, pairs are matched on the panel’s time coordinate and offset, and discrimination is compared with event-evaluation gaps. Studies of identity confounding [36, 4] measure the downstream consequence; the audit measures recognizability before fitting an event predictor.

Temporal discrimination. Classifier two-sample tests [21, 5] provide the methodological background. Within-unit pairing also follows the self-matching principle of case-crossover designs, whose time-trend corrections address changes that survive matching [22, 35]. The cross-unit placebo checks whether shared time structure is sufficient for the observed discrimination. Unlike downstream temporal-degradation studies [38], the audit requires no fitted event model.

Temporal-order pretext tasks [23, 39] and instance discrimination [41] use related signals for representation learning (§ 7). Their usefulness for training does not make them evaluation errors: the deployment target and information available at prediction determine whether using them is appropriate.

References

  1. [1]Alberto Abadie, Alexis Diamond, and Jens Hainmueller. Comparative politics and the synthetic control method. American Journal of Political Science, 59(2):495–510, 2015.DOI
  2. [2]Denis Agniel, Isaac S. Kohane, and Griffin M. Weber. Biases in electronic health record data due to processes within the healthcare system: retrospective observational study. BMJ, 361:k1479, 2018.DOI
  3. [3]Backblaze, Inc. Hard drive reliability test data. https://www.backblaze.com/cloud-storage/resources/hard-drive-test-data, 2026. Daily drive snapshots released quarterly, accessed August 2026.
  4. [4]Elias Chaibub Neto, Abhishek Pratap, Thanneer M. Perumal, Meghasyam Tummalacharla, Phil Snyder, Brian M. Bot, Andrew D. Trister, Stephen H. Friend, Lara Mangravite, and Larsson Omberg. Detecting the impact of subject characteristics on machine learning-based diagnostic applications. npj Digital Medicine, 2:99, 2019.DOI
  5. [5]Stéphan Clémençon, Marine Depecker, and Nicolas Vayatis. AUC optimization and the two-sample problem. In Advances in Neural Information Processing Systems 22, pages 360–368, 2009.
  6. [6]Yves-Alexandre de Montjoye, César A. Hidalgo, Michel Verleysen, and Vincent D. Blondel. Unique in the crowd: the privacy bounds of human mobility. Scientific Reports, 3:1376, 2013.DOI
  7. [7]Freddie Mac. Single family loan-level dataset. https://www.freddiemac.com/research/datasets/sf-loanlevel-dataset, 2026. Sample acquisition and monthly performance files, accessed August 2026.
  8. [8]Andrew Hendel. A deterministically linked corpus of U.S. Coast Guard marine casualty investigations, public AIS vessel tracks, and vessel regulatory history, 2024–2025. Zenodo, 2026a. https://doi.org/10.5281/zenodo.21743546.
  9. [9]Andrew Hendel. Bitwise-identical machine learning across GPUs and CPUs. Zenodo, 2026b. https://doi.org/10.5281/zenodo.23829035.
  10. [10]Andrew Hendel. whowhen: audit panel data for identity and timing signals. Zenodo, 2026c. Version 0.3.1. https://doi.org/10.5281/zenodo.24406266.
  11. [11]Hansika Hewamalage, Klaus Ackermann, and Christoph Bergmeir. Forecast evaluation for data scientists: common pitfalls and best practices. Data Mining and Knowledge Discovery, 37(2):788–832, 2023.arxiv.org/abs/2203.10716
  12. [12]Anil K. Jain, Arun Ross, and Salil Prabhakar. An introduction to biometric recognition. IEEE Transactions on Circuits and Systems for Video Technology, 14(1):4–20, 2004.DOI
  13. [13]Kipp W. Johnson, Jessica K. De Freitas, Benjamin S. Glicksberg, Jason R. Bobe, and Joel T. Dudley. Evaluation of patient re-identification using laboratory test orders and mitigation via latent space variables. In Pacific Symposium on Biocomputing, volume 24, pages 415–426, 2019.pubmed.ncbi.nlm.nih.gov/30864342
  14. [14]Sayash Kapoor and Arvind Narayanan. Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9):100804, 2023.DOI
  15. [15]Sayash Kapoor, Emily M. Cantrell, Kenny Peng, Thanh Hien Pham, Christopher A. Bail, Odd Erik Gundersen, Jake M. Hofman, Jessica Hullman, Michael A. Lones, Momin M. Malik, Priyanka Nanayakkara, Russell A. Poldrack, Inoliuwa Deborah Raji, Michael Roberts, Matthew J. Salganik, Marta Serra-Garcia, Brandon M. Stewart, Gilles Vandewiele, and Arvind Narayanan. REFORMS: consensus-based recommendations for machine-learning-based science. Science Advances, 10(18):eadk3452, 2024.DOI
  16. [16]Shachar Kaufman, Saharon Rosset, Claudia Perlich, and Ori Stitelman. Leakage in data mining: formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data, 6(4):15:1–15:21, 2012.
  17. [17]Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. LightGBM: a highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems, volume 30, 2017.
  18. [18]Jakub Kuzilek, Martin Hlosta, and Zdenek Zdrahal. Open university learning analytics dataset. Scientific Data, 4:170171, 2017. doi: 10.1038/sdata.2017.171.DOI
  19. [19]Thomas Liao, Rohan Taori, Inioluwa Deborah Raji, and Ludwig Schmidt. Are we learning yet? A meta-review of evaluation failures across machine learning. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2021.
  20. [20]Marc Lipsitch, Eric Tchetgen Tchetgen, and Ted Cohen. Negative controls: a tool for detecting confounding and bias in observational studies. Epidemiology, 21(3):383–388, 2010.DOI
  21. [21]David Lopez-Paz and Maxime Oquab. Revisiting classifier two-sample tests. In International Conference on Learning Representations, 2017.
  22. [22]Malcolm Maclure. The case-crossover design: a method for studying transient effects on the risk of acute events. American Journal of Epidemiology, 133(2):144–153, 1991.pubmed.ncbi.nlm.nih.gov/1985444
  23. [23]Ishan Misra, C. Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conference on Computer Vision, pages 527–544, 2016.arxiv.org/abs/1603.08561
  24. [24]Margaret Mitchell, Alexandra Sasha Luccioni, Nathan Lambert, Marissa Gerchick, Angelina McMillan-Major, Ezinnwane Ozoani, Nazneen Rajani, Tristan Thrush, Yacine Jernite, and Douwe Kiela. Measuring data. arXiv preprint arXiv:2212.05129, 2022.arxiv.org/abs/2212.05129
  25. [25]Fabian Monrose and Aviel D. Rubin. Keystroke dynamics as a biometric for authentication. Future Generation Computer Systems, 16(4):351–359, 2000.DOI
  26. [26]Marcel Neunhoeffer and Sebastian Sternberg. How cross-validation can go wrong and what to do about it. Political Analysis, 27(1):101–106, 2019.DOI
  27. [27]Ikenna Odinaka, Po-Hsiang Lai, Alan D. Kaplan, Joseph A. O’Sullivan, Erik J. Sirevaag, and John W. Rohrbaugh. ECG biometric recognition: a comparative analysis. IEEE Transactions on Information Forensics and Security, 7(6):1812–1824, 2012.DOI
  28. [30]Matthew A. Reyna, Christopher S. Josef, Russell Jeter, Supreeth P. Shashikumar, M. Brandon Westover, Shamim Nemati, Gari D. Clifford, and Ashish Sharma. Early prediction of sepsis from clinical data: The PhysioNet/computing in cardiology challenge 2019. Critical Care Medicine, 48(2):210–217, 2020. doi: 10.1097/CCM.0000000000004145.DOI
  29. [31]Luc Rocher, Julien M. Hendrickx, and Yves-Alexandre de Montjoye. Estimating the success of re-identifications in incomplete datasets using generative models. Nature Communications, 10:3069, 2019.DOI
  30. [32]Matthew Rosenblatt, Link Tejavibulya, Rongtao Jiang, Stephanie Noble, and Dustin Scheinost. Data leakage inflates prediction performance in connectome-based machine learning models. Nature Communications, 15:1829, 2024.DOI
  31. [33]Simon Roth. Which leakage types matter? A quantitative landscape across 2,047 benchmark datasets. arXiv preprint arXiv:2604.04199, 2026.
  32. [34]Ikaro Silva, George Moody, Daniel J. Scott, Leo A. Celi, and Roger G. Mark. Predicting in-hospital mortality of ICU patients: The PhysioNet/Computing in Cardiology challenge 2012. In Computing in Cardiology, volume 39, pages 245–248, 2012.
  33. [35]Samy Suissa. The case-time-control design. Epidemiology, 6(3):248–253, 1995.
  34. [36]Iulian Emil Tampu, Anders Eklund, and Neda Haj-Hosseini. Inflation of test accuracy due to data leakage in deep learning-based classification of OCT images. Scientific Data, 9:580, 2022.DOI
  35. [37]Gilles Vandewiele, Isabelle Dehaene, György Kovács, Lucas Sterckx, Olivier Janssens, Femke Ongenae, Femke De Backere, Filip De Turck, Kristien Roelens, Johan Decruyenaere, Sofie Van Hoecke, and Thomas Demeester. Overly optimistic prediction results on imbalanced data: a case study of flaws and benefits when applying over-sampling. Artificial Intelligence in Medicine, 111:101987, 2021.DOI
  36. [38]Daniel Vela, Andrew Sharp, Richard Zhang, Trang Nguyen, An Hoang, and Oleg S. Pianyкh. Temporal quality degradation in AI models. Scientific Reports, 12:11654, 2022.DOI
  37. [39]Donglai Wei, Joseph J. Lim, Andrew Zisserman, and William T. Freeman. Learning and using the arrow of time. In IEEE Conference on Computer Vision and Pattern Recognition, pages 8052–8060, 2018.DOI
  38. [40]Junhao Wen, Elina Thibeau-Sutre, Mauricio Diaz-Melo, Jorge Samper-González, Alexandre Routier, Simona Bottani, Didier Dormont, Stanley Durrleman, Ninon Burgos, and Olivier Colliot. Convolutional neural networks for classification of Alzheimer’s disease: overview and reproducible evaluation. Medical Image Analysis, 63:101694, 2020.DOI
  39. [41]Zhirong Wu, Yuanjun Xiong, Stella X. Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3733–3742, 2018.DOI
  40. [42]John R. Zech, Marcus A. Badgely, Manway Liu, Anthony B. Costa, Joseph J. Titano, and Eric Karl Oermann. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study. PLOS Medicine, 15(11):e1002683, 2018. doi: 10.1371/journal.pmed.1002683.DOI

Paper details

vlnc:W_pjz7vcr4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Large language models

View statement
Looking for related papers…
Contents