WorksComputer Science
The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks
Abstract
Training-data backdoors make multivariate time-series forecasters produce attacker-chosen futures whenever the input contains a trigger, while preserving ordinary forecasting accuracy. Existing defences assume clean reference data, class labels, attack knowledge, or a trained model, none of which a forecasting-data trainer may have. We observe that the attacker must supply training supervision from which the victim can learn the trigger-dependent forecast. In the published attacks we study, this supervision leaves target-side evidence that exceeds phase-matched natural dynamics, and it continues to do so when an adaptive attacker diversifies individual target shapes. SafeTime tests candidate target intervals against same-phase natural references and relabels the targets of suspicious channels before victim training. It requires no clean data, reference model, trigger or target specification, poisoning labels, or attacked-channel list. Experiments across five datasets, six forecasting architectures, and four published attacks show that SafeTime reduces implanted effects (attack success with the trigger minus without it) of up to 0.998 to at most 0.096, while lowering clean forecasting error in most configurations. Under a budgeted adaptive white-box search, full multichannel fixed-goal and outcome-goal poisons retain implanted effects of 0.73 to 0.95 before defence, but only 0.003 to 0.015 after relabelling and retraining.
Introduction
Multivariate time-series (MVTS) forecasting supports decisions in which errors carry direct costs, from transport [1] and electricity planning [2] to public-health interventions [3]. Modern forecasters [2], [4], [5], [6], [7], [8] learn from long histories of many interacting channels, often assembled from distributed sensors and heterogeneous sources [1], so an adversary who can modify part of a series may influence the deployed model without access to its parameters or training.
Backdoor attacks exploit this exposure: a compromised model behaves normally on ordinary inputs but produces an attacker-chosen output when a trigger is present [9], [10], which in forecasting is an attacker-chosen future after a triggered history [11]. Untriggered performance stays largely intact, so validation may not reveal the compromise, and defence is hard because poisoned targets may look plausible, short intervals contaminate overlapping windows, and the defender has only the untrusted series.
Trigger-based defences are brittle as attackers can optimise triggers against surrogate models [11], derive them from context [12], separate them from malicious response [13], or select poisoned variables and segments [14]. Defences developed for classification also transfer poorly. Adapting thirteen of them to forecasting, TIMEGUARD [15] finds two failure modes. When only some channels are poisoned, the backdoor signal is diluted, so sample filtering [16], trigger synthesis, and inference-time detection [17] gain little. Poisoned windows also reach clean-level training loss within a few epochs, so loss-based defences [18] fail. Fine-tuning and fine-pruning [19] mitigate the attack only partially and require a verified clean subset. TIMEGUARD addresses the dilution with channel-wise pools of reliable data selected during training, but does not remove the target-side supervision that teaches the malicious forecast.
Both failure modes arise when the backdoor is sought in the model or in whole windows. Our key observation, target-recurrence principle, is: although the attacker controls the trigger, the targets that teach the malicious response can betray it. Under squared error, targets after triggered histories must, on average, depart from their natural continuations; individual targets may vary, but their shared conditional component, the trigger-conditional label deviation, must recur across poisoning events, and we show that it equals the shift of the triggered conditional-mean forecast from the natural continuation. Each poisoning event therefore adds evidence to the defender’s received series (see Figure 1).
Figure 1. The victim learns the malicious forecast only from targets that deviate, on average, from the natural continuation of triggered histories; this deviation recurs within attacked channels and coincides across them. : a history ending with the trigger (, an analytical label, not a model input).
Traffic, load, and weather series are periodic, correlated across channels, and context dependent, so this evidence must be separated from natural structure. To utilise this, we propose SAFETIME, a clean-data-free, model-agnostic pre-training defence, tests whether the targets of unusual intervals recur more strongly than at phase-matched intervals shifted by whole days. It localises the affected channels without letting a channel support its own detection and confirms each decision on the part of the channel that the others do not explain. It then relabels flagged channels from unflagged ones, after which any forecaster can be trained.
Across five datasets, six architectures, and four published attacks, SAFETIME identifies 99.8% of attacked channels and reduces BACKTIME’s [11] mean implanted effect by 98.0%, from +0.644 to +0.013. Under the same information, it achieves lower attack success and clean forecasting error than TIMEGUARD [15], and detects 351 of the 352 channels attacked by an adaptive white-box adversary that runs the complete defence on its candidate poisons.
Contributions. This paper makes the following three main contributions:
Target-side formulation. We identify the trigger-conditional label deviation as the supervision that teaches a conditional-mean backdoor under squared error. This explains why varying the trigger or individual target shapes does not remove the evidence while a shared component remains, and we test transfer to Smooth-L1, squared-error, and L1 victims.
SAFETIME. We develop a clean-data-free, model-agnostic defence that detects target-side evidence against phase-matched dynamics, localises attacked channels without self-supporting evidence, and relabels the targets of flagged channels before training.
Adversarial evaluation. We evaluate SAFETIME against four attack families across five datasets and six architectures, including channel-level localisation, false-flag measurement, end-to-end retraining, and an adaptive white-box attack.
Background and Problem Formulation
Multivariate Time-Series Forecasting
Let denote a multivariate series with time steps and channels. We write for the rows with time indices . A forecaster maps a history window to a prediction of the following steps, whose target is . Training minimises the average forecasting loss over all windows of the training series,
where is the set of window origins and is a pointwise regression loss. Two properties of this objective shape the security problem. First, the supervision is drawn from the series itself, so the target of one window is part of the history of later windows. Second, consecutive windows are shifted by a single step, so a modified interval of steps enters training windows. Throughout, denotes the number of steps per day. The phase of time is its position in the daily cycle.
Trigger–Target Poisoning
A forecasting backdoor associates a trigger in history with an attacker-chosen forecast. With the clean target and indicating, for analysis only, whether ends with a trigger, poisoned training windows satisfy
where is the malicious deviation induced by the modifications of (3), including on overlapping windows; the attack makes follow it while preserving .
Concretely, the attacker selects channels , poisoning times , trigger length , and target patterns , and for each and writes
where , is the activation delay, and anchors the target to the local series level; is the deviation of this anchored target from the clean continuation.
Existing attacks differ in how they choose these components. BACKTIME [11] learns triggers with a graph neural network under bilevel optimisation and poisons high-error windows with . TDBA [13] samples for each event and channel. DEBA-MTS [14] selects variables and segments by autoencoder reconstruction error and applies a fixed trigger with the BACKTIME target. IFBA [12] selects variables and times by spectral consistency and generates context-dependent triggers with a recurrent network. BACKTIME, TDBA, and IFBA anchor the target to the preceding value.
Threat Model
Attacker. The attacker modifies bounded intervals of selected training channels, as in (3), to make a victim trained from scratch follow its target whenever a trigger is present while retaining clean utility. It may place triggers at deployment, knows the clean training series, and may train a surrogate from the victim family, but cannot alter victim training or intervene after delivering the series. In the adaptive evaluation (§ 5.2.5), it additionally knows SAFETIME’s deterministic algorithm, settings, and received series, and may test every candidate poison locally.
Defender. The defender receives only the untrusted series and its temporal geometry, including history length, forecast length, sampling period, and . It has no clean data, reference model, poisoning labels, or triggered inputs, and does not know the attack, trigger, target, attacked channels, poisoning times, or poisoning rate. It may inspect the series and relabel targets before training, while leaving the victim architecture, training configuration, and inference procedure unchanged. Motivated by the channel-subset nature of MVTS forecasting backdoor attacks observed by TimeGuard [15], SafeTime assumes that attacked channels form a subset and reconstructs their targets from the remaining channels.
Malicious Supervision
What the Victim Must Learn
The attacker chooses the trigger, but the victim learns only from history–target pairs, so the training series must contain, after triggered histories, targets that differ from their natural continuation. We make this requirement precise under squared error, whose population optimum is a conditional mean; the victims’ loss is discussed after the proposition. Consider a forecaster trained on the poisoned distribution of Eq. (2) to minimise . We say that a minimiser implements a conditional-mean backdoor if, on a set of triggered inputs of positive probability, its triggered forecast differs from the natural continuation, .
Proposition 1 (Trigger-conditional label deviation under squared error). Assume that the trigger indicator is determined by the history, for a measurable , that , , and . Every minimiser of over measurable forecasters satisfies, almost surely on ,
Consequently, a conditional-mean backdoor exists only if the trigger-conditional label deviation is nonzero on a set of triggered inputs of positive probability.
Proof. Because , a measurable function of is a measurable function of the history that the victim observes. Under squared error, every population-risk minimiser over such functions is a version of the conditional expectation, almost surely. On , Eq. (2) gives . Linearity of conditional expectation yields , which proves Eq. (4). If the conditional deviation vanishes almost surely on a set of triggered inputs, then equals the natural continuation on that set, and no conditional-mean backdoor exists there.
Its value for security is that it names the target-side quantity that an attack must preserve and that a pre-training defence can test.
Interpretation and scope. Proposition 1 does not require a fixed target. Writing with for poisoning event , the conditional-mean forecaster learns the shared component , which may be a level shift, a family of shapes, or a context-dependent response, and averages away . The attacker may diversify individual targets but cannot remove without removing the backdoor.
Our main victims minimise Smooth L1, following the attackers’ released code. Its minimiser forecasts a conditional Huber location, and that of L1 a conditional median, rather than the conditional mean of Eq. (4), so a backdoor still requires poisoning to shift that location for triggered histories, although the shift need not equal \mathbb{E}[\Delta\mid X,T=1]; Appendix C shows that SAFETIME’s effectiveness is not specific to Smooth L1. A trigger may also alter the natural continuation of a clean series. Since this response is learned from clean data rather than poisoning, a defence that restores the clean continuation cannot remove it and {xref}Section 5.2.1` separates it. The poisoning events that teach the shared response are present in the received series, at locations the defender does not observe. If the event-specific variations are independent, conditionally zero mean, and of bounded variance, the error in estimating their shared component falls as $1/\sqrt{n} over events, so each event strengthens both the attacker’s supervision and the defender’s evidence. A context-dependent component may cancel on average yet remain nonzero given the triggered history, and Proposition 1 permits (Section 5.2.5). Whether this evidence is distinguishable from benign behaviour depends on its magnitude relative to natural variation at the same phase, which we measure next.
Empirical Observations
Proposition 1 characterises the required supervision but does not yield a detection rule, since the defender observes neither nor . SAFETIME therefore seeks excess recurrence: shared poisoned targets that recur within attacked channels and appear together across channels poisoned at the same event, beyond the same-phase behaviour that periodicity and natural cross-channel dependence also produce. To measure these patterns, we poison the training splits of the five datasets of § 5.1 with BackTime [11] and TDBA [13] in their default configuration (30% of channels, events starting at 3% of training steps, 12-step history and forecast). Using the true poisoning times, which SAFETIME never receives, we compare the segments planted at those times with segments of the same channels at whole-day shifts, where an ordinary daily pattern would also appear, by the mean pairwise Pearson correlation of centred, unit-normalised segments (Table 1). Each row of Table 1 is one attack on one dataset. The within-channel columns compare a channel’s planted triggers and targets across events with its clean segments at whole-day-shifted target times and on the next day; the across-channel columns compare attacked channels at the same event with the same channels at day-shifted moments, on the clean and the poisoned series. Planted targets correlate at 1.000 in both directions, above every clean reference; Observations 1–3 interpret these gaps.
| Dataset | Attack | Within a channel: Trigger | Within a channel: Target | Within a channel: Shifted | Within a channel: Daily | Across channels: Target | Across channels: Shifted | Across channels: Poisoned |
| PEMS03 | BACKTIME [11] | 0.992 [0.787, 1.000] | 1.000 | 0.000 [0.000, 0.001] | 0.225 [0.216, 0.237] | 1.000 | 0.100 [0.094, 0.110] | 0.476 [0.407, 0.528] |
| TDBA [13] | 1.000 | 1.000 | 0.000 | 0.240 | 1.000 | 0.046 | 0.065 | |
| PEMS04 | BACKTIME | 0.955 [0.746, 1.000] | 1.000 | 0.000 [−0.001, 0.000] | 0.199 [0.190, 0.203] | 1.000 | 0.106 [0.102, 0.113] | 0.345 [0.309, 0.406] |
| TDBA | 0.994 | 1.000 | 0.000 | 0.200 | 1.000 | 0.072 | 0.073 | |
| PEMS08 | BACKTIME | 0.993 [0.526, 1.000] | 1.000 | 0.000 [0.000, 0.002] | 0.211 [0.196, 0.220] | 1.000 | 0.155 [0.146, 0.162] | 0.410 [0.343, 0.463] |
| TDBA | 1.000 | 1.000 | 0.001 | 0.193 | 1.000 | 0.076 | 0.079 | |
| WEATHER | BACKTIME | 0.978 [0.586, 1.000] | 1.000 | 0.003 [0.002, 0.004] | 0.345 [0.334, 0.395] | 1.000 | −0.019 [−0.021, −0.015] | 0.500 [0.374, 0.579] |
| TDBA | 0.811 | 1.000 | 0.003 | 0.365 | 1.000 | −0.052 | −0.004 | |
| ELECTRICITY | BACKTIME | 0.780 [0.407, 0.993] | 1.000 | 0.152 [0.068, 0.690] | 0.908 [0.719, 0.978] | 1.000 | 0.279 [0.174, 0.437] | 0.931 [0.756, 0.991] |
| TDBA | 0.619 | 1.000 | 0.205 | 0.939 | 1.000 | 0.210 | 0.143 |
Table 1. Segment correlation, median over attacked channels; BACKTIME poisons each of the six victims separately (median [range] over them). Within a channel: planted triggers and targets across events; shifted, clean segments at whole-day-shifted target times; daily, a clean target segment against the next day’s. Across channels: attacked channels at the same event, and at day-shifted moments on the clean and the poisoned series.
Observation 1: Within-channel recurrence. Both attacks reuse one target shape across events and vary only its anchor, which centring removes, so targets have median within-channel similarity 1.000 on every dataset. Clean day-shifted segments reach at most 0.004 on traffic and weather, but next-day segments reach 0.190–0.395, and up to 0.978 on ELECTRICITY, where 85% of the events of BACKTIME against iTransformer fall within one sixth of a day; recurrence must therefore be judged against phase-matched clean behaviour.
Observation 2: Cross-channel recurrence. Targets planted at the same event coincide across channels (median 1.000), whereas the same clean channels at day-shifted moments co-move weakly (−0.052 to 0.162 on traffic and weather, up to 0.437 on ELECTRICITY, whose channels share a daily profile). This agreement strengthens the evidence but is not conclusive, since channels may share system-wide behaviour and an attacker may poison one channel or uncorrelated channels, so a detector must combine it with a within-channel test.
Observation 3: Phase matching absorbs natural repetition. The defender builds its references from the possibly poisoned series, which makes the comparison conservative: 50% to 72% of day-shifted target windows overlap another poisoning event of the same channel, and on the poisoned series the across-channel similarity at day-shifted moments rises to 0.309 to 0.991 for BACKTIME (Table 1). A legitimate daily pattern, by contrast, appears at both the event and its whole-day shifts, so the comparison measures recurrence beyond ordinary daily behaviour.
Observation 4: Cross-channel redundancy supports confirmation and relabelling. On held-out clean days, a ridge regression on the remaining channels predicts each channel with a median coefficient of determination () of 0.927 to 0.984 on the traffic datasets and ELECTRICITY, and 0.999 on WEATHER after excluding missing-value codes, against 0.080 to 0.802 for the channel’s own time-of-day profile (Table 2). 4 of the 21 WEATHER channels fall below , against at most 2% elsewhere; they are attacked in nearly every WEATHER poison, yet clean error falls there, because the attack had already degraded them. Where redundancy holds, the other channels supply both a reference for ordinary behaviour and an estimate of a flagged channel’s values, which motivates residual confirmation and reconstruction.
| Dataset | Channels | Other channels: Median | Other channels: 10th pct. | Other channels: ≥ 0.9 | Other channels: ≥ 0.5 | Profile: Median |
| PEMS03 [20] | 358 | 0.984 | 0.938 | 94% | 100% | 0.802 |
| PEMS04 [20] | 307 | 0.946 | 0.810 | 75% | 99% | 0.757 |
| PEMS08 [20] | 170 | 0.938 | 0.813 | 75% | 98% | 0.777 |
| WEATHER [21] | 21 | 0.999 | 0.240 | 81% | 81% | 0.080 |
| ELECTRICITY [22] | 321 | 0.927 | 0.785 | 67% | 98% | 0.685 |
Table 2. Held-out of each clean channel predicted from all other channels (ridge) and from its own time-of-day profile; WEATHER excludes missing-value steps. ≥ 0.9, ≥ 0.5: share of channels at that level.
SafeTime
SafeTime does not estimate the deviation of Proposition 1 directly. It tests the recurrence of Observations 1 and 2 against the phase-matched reference of Observation 3, and uses the redundancy of Observation 4 to confirm flags on cross-channel residuals and to reconstruct flagged targets.
The Recurrence Contrast
Let be a set of candidate event times, and let denote a normalised profile of channel around (§ 4.2.1). Given a normalised template , the observed recurrence of channel is its mean match with the template,
Because periodicity and natural correlation also produce recurrence (§ 3.2), the relevant quantity is recurrence in excess of phase-matched behaviour. Let shift each event independently by a whole number of days within the series, preserving its daily phase but changing the event. The contrast underlying SafeTime is
Each test is an instance of this contrast: a template from a candidate group of channels tests cross-channel recurrence (Observation 2), a channel’s profiles at its other events test within-channel recurrence (Observation 1), and the same comparison on cross-channel regression residuals confirms persistence (Observation 4); each statistic is then standardised against the other channels (Sect. 4.2.3). Under the operational null, recurrence at the candidate events is no greater than at other observations of the same daily phase. Eq. (6) is a design contrast, not a complete test for all forecasting backdoors: a learnable deviation may not recur in these forms, and poisoned day-shift references reduce the contrast (Sect. 3.2). Detection therefore requires Observation 1 or 2; reconstruction also requires the redundancy of Observation 4 and a minority of attacked channels (Sect. 2.3).
SafeTime Operation
SafeTime realises these contrasts in six stages (Figure 2, Algorithm 1): (1) candidate generation selects movements unusual for their daily phase; (2) phase-matched recurrence testing compares within- and cross-channel recurrence with whole-day shifts; (3) channel localisation attributes excess recurrence to channels; (4) residual confirmation and expansion re-tests detections after unsuspected channels explain ordinary behaviour; (5) reconstruction and relabelling replaces all targets of flagged channels; and (6) victim training trains any forecaster on the relabelled targets.
Figure 2. SafeTime’s six stages. Stages 1–3 detect channels and events whose targets recur beyond phase-matched behaviour, stage 4 confirms them on cross-channel residuals, stage 5 relabels the flagged channels’ targets from unflagged channels, and stage 6 trains any forecaster.
Candidate Generation
A poisoning event introduces a target deviation at an unknown time. Testing every window would waste comparisons on intervals with no unusual structure, and the largest raw movements are legitimate daily events such as the morning rise in traffic, so candidate generation selects movements that are unusual for their phase of the day.
Let be the first difference of channel at time , standardised by the channel’s mean and standard deviation. For a set of channels with , the co-movement score is the mean pairwise product of the standardised changes,
and for a single channel it is the change energy . Scores are standardised at each phase by their median and median absolute deviation (MAD). Candidate moments, termed bursts, are selected greedily in decreasing order of standardised score above , where is the standard normal quantile function, each at least steps from those already selected. This threshold sets the breadth of screening rather than a significance level; the later comparisons decide whether a burst is suspicious.
Correlated-channel groups. For attacks on channels that are related under ordinary operation, each channel is linked to the channels whose first differences correlate most positively with its own, with negative correlations set to zero. Spectral clustering (-means, ten restarts) partitions the graph into at most 15 communities, chosen at the largest gap in the spectrum of the normalised graph Laplacian. Every community with at least two channels is a candidate group.
Co-extreme groups. Unrelated channels attacked together may still be extreme together at the poisoning events. Each channel is predicted by ridge regression from the channels most correlated with it in level, and a time step is extreme when its residual, standardised by the median and MAD at each phase, exceeds in absolute value. For each pair of channels, the co-extreme excess is the observed number of common extreme steps minus its expectation under independence given each channel’s extreme rate at each phase, divided by the square root of that expectation. Pairs in which either channel is among the other’s neighbours are set to the median excess, since ordinary dependence explains their coincidences. For each of the 15 leading eigenvectors of the median-centred excess matrix and each sign, the channels whose loading exceeds robust standard deviations form a candidate group if there are at least two.
Profiles and views. Shapes are compared in two views, the level and the first differences, each standardised per channel; bursts are always located on the first differences. The profile of channel at burst contains the samples starting steps before , without the burst sample itself, so that the movement that selected the burst does not dominate the shape comparison; it is centred and scaled to unit norm. The stage outputs the candidate groups , the bursts of each group and single channel, and their profiles. Groups with too few bursts to be tested still count in the multiplicity factor of Section 4.2.3.
Phase-Matched Recurrence Testing
A planted target may resemble a legitimate daily movement, such as Algorithm 1 SAFETIME.
Require: series ; , , ; level
Ensure: relabelled training targets
correlated and co-extreme groups ▷ §4.2.1
; ;
for with bursts, each view do
▷ §4.2.2, §4.2.3
end for
; ; mark spans
residual-confirmed members of ▷ §4.2.4
channels added by expansion
for do ▷ §4.2.5
replace all targets of by Eq. (8), fitted outside its spans
end for
train any forecaster on the relabelled targets
traffic sensors near rush hour, so SAFETIME evaluates recurrence through the contrast of Eq. (6), with whole-day shifts preserving the daily phase.
Cross-channel evidence. For a candidate group with at least three bursts , the template is the normalised mean, over bursts, of the group’s average profile, and every channel receives the match of Eq. (5). Each of 200 reference draws shifts every burst independently by a whole number of days, uniformly among the shifts that keep its profile within the series, and recomputes . The observed value minus the draws’ mean, divided by their standard deviation, gives , the standardised estimate of : large for a pattern confined to the candidate events, but not for a daily pattern that appears equally at the same phase elsewhere.
Within-channel evidence. Cross-channel testing cannot find an attack confined to one channel. After the group tests and localisation (§ 4.2.3), every channel that no group flags and that has at least three bursts of its own change energy is tested against its own history: each burst profile is correlated with the normalised sum of its profiles at its other bursts, and the mean correlation is standardised against 200 whole-day-shift draws in each view, keeping the larger. This completes the coverage of the three attack geometries.
Channel Localisation
The phase-matched statistic identifies excess recurrence, but not which channels carry it. A channel can match a template through its own contribution, and correlated channels and overlapping windows make the reference draws dependent, so their spread underestimates the variation across clean channels. SAFETIME therefore uses a leave-one-channel-out construction, a cross-channel reference, and cutoffs scaled to the number of tests.
Isolation from self-support. Each member of a candidate group is tested with bursts and a template recomputed from the other members only, so the tested channel cannot create the reference used to implicate it; in the within-channel test, each profile is compared only with the channel’s other bursts.
Cross-channel reference. Every statistic is standardised a second time, , against the channels outside the group (all channels when fewer than ten lie outside it) or, for the within-channel test, against the tested channels. This controls recurrence and reference variability shared across the series but not removed by day shifts.
Multiplicity-scaled decision. The group tests compare at most channel–group pairs in each of two views, so a channel is flagged by a group when , and a channel tested alone when its statistic exceeds . Counting unstable groups in makes the allocation conservative. A group that flags at least one channel is a flagged group. Each of the two test families allocates under a Gaussian approximation, so detection has nominal level ; as with the other thresholds, this scales a common level with the search rather than guaranteeing error control after selection.
Refinement. A group that mixes attacked and clean channels has a weakened template, so for each flagged group the bursts and template are recomputed from the flagged channels alone and the test is repeated, until the set no longer changes, falls below two channels or three bursts, or reaches ten rounds. If the set falls below two channels, SAFETIME returns to the earlier round with at least two channels whose own bursts recur most strongly against 50 day-shift draws, and only if that statistic also exceeds . Refinement never applies a less stringent threshold.
Detections and event localisation. The channels flagged by group tests, , and by the within-channel test, , form the detected set . For each flagged group, every window is scored by the mean match of the group’s channels with its template and by the match of the group’s average profile with that template, and compared with the median, over five random groups of unflagged channels of the same size, of that score’s quantile across windows; for a channel flagged alone, the reference is the quantile over five random unflagged channels. Windows above either reference are selected steps apart, each marking a span of the window plus steps on either side, which the reconstruction fit excludes (§ 4.2.5).
Residual Confirmation and Expansion
The preceding tests operate on the channels as observed, so ordinary cross-channel dynamics can still produce a recurring pattern after phase matching. Residual confirmation asks whether the pattern persists after channels not already suspected have explained the tested channel’s predictable behaviour. This evidence is confirmatory rather than necessary: an attack within clean cross-channel variation may leave little residual, whereas an attacked channel that matches a group only weakly may show the group’s pattern in its residual. The stage therefore both removes unsupported detections and expands flagged groups.
Residual construction. For channel , the residual is the standardised channel minus a ridge regression on all channels except , the detected set , and the channels whose first differences correlate most with , so that no co-attacked channel, detected or not, can explain the planted deviation away. The regression is fitted outside the residual windows of every set of bursts evaluated, after one trimming pass at robust standard deviations. For bursts , the residual profiles of are the windows of residual samples around each burst, without the burst sample, centred and scaled to unit norm; the residual recurrence is their mean pairwise correlation, standardised against 200 whole-day-shift draws to . A detected channel is evaluated at the bursts of each group that flagged it, or at its own bursts if flagged alone, and keeps the largest value.
Confirmation. A detected channel remains flagged when , or when the statistic is undefined because too few admissible regressors or bursts remain; a missing confirmation, which widespread detection can itself cause, is not taken as evidence of a benign channel, and § 5 measures its cost. Because a group member contributes only its own residual profiles, a flagged group whose median member statistic exceeds 2.0 is confirmed as a whole, and each member stays flagged unless its own statistic is at most 0, the centre of its reference, which is evidence against recurrence. The confirmed set contains the channels kept by either rule.
Expansion. A channel outside , called unflagged, may still carry a flagged group’s planted component. For each flagged group , the residual template is the normalised mean of its members’ residual profiles at the group’s bursts, and each unflagged channel’s mean correlation with it is standardised against whole-day shifts to . A channel is added, with the spans of the group that added it, when , where unflagged channels and flagged groups are searched in this single residual view. The final flagged set is plus the added channels. Expansion is a third Bonferroni family, so has nominal level , against for ; confirmation only removes channels.
Reconstruction and Relabelling
Detection identifies channels whose targets should not be trusted. Discarding them would also discard their ordinary response to triggered histories, and relabelling only the detected spans would keep every poisoned target that localisation misses. SAFETIME instead replaces all training targets of each flagged channel by a ridge regression on the unflagged channels at the same time step,
where is the received value of channel at time , with the regularisation set by generalised cross-validation (GCV) over 33 logarithmically spaced values.
Contamination-resistant fitting. The fit excludes the channel’s spans (all steps if fewer than fifty remain) and, because localisation may miss events, is trimmed: steps whose residual deviates from the median by more than robust standard deviations are dropped and the regression is refitted until the set is stable, for at most 20 iterations. A regressor’s missing value is replaced by its median at the same phase, and steps where the flagged channel itself is missing leave its fit sample.
Whole-channel relabelling. For the window with origin , the target of flagged channel becomes , while the history stays as received, so a history that still contains a trigger is paired with an estimate of ordinary behaviour, breaking the trigger–target association without finding the trigger. The spans determine which samples may not shape the reconstruction, not which targets are replaced; § 5 measures the clean-error cost of replacing them all.
Victim Training
The victim is trained on the original histories and the relabelled targets with the same architecture, loss, optimiser, and schedule of the corresponding undefended model, giving reconstructed and received targets equal weight. As part of the preprocessing, a window-channel pair is excluded when its history or target contains a value beyond three times the channel’s 0.5% to 99.5% quantile range. This removes sentinel values that encode missing observations and affects 0.065% of the WEATHER pairs and none elsewhere.
Evaluation
We evaluate SAFETIME on victims trained from scratch on the received series, before and after defence, and answer seven research questions: whether the attacks implant (RQ1), whether SAFETIME removes the malicious supervision (RQ2), whether detection is attributable to target-side evidence (RQ3), which components are needed (RQ4), whether the defence withstands an adaptive white-box attacker (RQ5), whether forecasting utility is preserved (RQ6), and whether SAFETIME is practical (RQ7).
Experimental Setup
Datasets and victims. We use the traffic-flow datasets PEMS03 [20], PEMS04, and PEMS08 [23], [20], WEATHER [21], [4], and ELECTRICITY [22], [24]. Each series is split chronologically 60/20/20% into training, validation, and test. Every model forecasts steps from . The victims are FEDformer [5], Autoformer [4], TimesNet [6], Informer [2], PatchTST [7], and iTransformer [8]. Each is trained for 100 epochs with the Smooth L1 loss of the attacks’ released code and Adam (learning rate , batch size 64), and evaluated after the final epoch.
Attacks. Each dataset is poisoned by BACKTIME [11] and TDBA [13]. Both attack 30% of the channels, and their poisoning events start at 3% of the training time steps. DEBA-MTS [14] runs from its released implementation and IFBA [12] from our implementation of its published algorithm, each on every dataset. Unless a table lists architectures, the victim is FEDformer, the attacks’ default forecaster; Table 18 shows that the results carry over.
| Attack | Dataset | FEDformer | FEDformer | FEDformer | FEDformer | Autoformer | Autoformer | Autoformer | Autoformer | TimesNet | TimesNet | TimesNet | TimesNet | Informer | Informer | Informer | Informer | PatchTST | PatchTST | PatchTST | PatchTST | iTransformer | iTransformer | iTransformer | iTransformer |
| DEBA-MTS | PEMS03 | .795 | −.001 | .144 | .440 | .002 | .134 | .501 | .002 | .199 | .130 | .000 | .213 | .579 | .001 | .153 | .860 | .038 | .167 | ||||||
| PEMS04 | .600 | .030 | .255 | .344 | .022 | .245 | .141 | .000 | .202 | −.012 | .000 | .218 | −.022 | .001 | .213 | .784 | .055 | .259 | |||||||
| PEMS08 | .779 | .001 | .150 | .422 | .004 | .139 | .293 | .001 | .209 | −.027 | .002 | .225 | .049 | .001 | .183 | .853 | .054 | .182 | |||||||
| WEATHER | .989 | .002 | .015 | .986 | −.010 | .018 | .797 | .000 | .015 | .280 | .000 | .015 | .989 | .000 | .026 | .988 | .002 | .015 | |||||||
| ELECTRICITY | .998 | .001 | .003 | .932 | .001 | .003 | .989 | .000 | .002 | .851 | .000 | .003 | .988 | .000 | .001 | .996 | .001 | .005 | |||||||
| IFBA | PEMS03 | .639 | .034 | .281 | .409 | .044 | .276 | .314 | .003 | .310 | .026 | .003 | .360 | .462 | −.000 | .258 | .526 | .078 | .293 | ||||||
| PEMS04 | .577 | .051 | .309 | .357 | .057 | .338 | .080 | .002 | .280 | −.005 | .001 | .302 | .253 | .004 | .292 | .477 | .124 | .345 | |||||||
| PEMS08 | .654 | .031 | .338 | .457 | .025 | .357 | .171 | .001 | .308 | −.008 | −.001 | .302 | .413 | .002 | .261 | .516 | .122 | .348 | |||||||
| WEATHER | .961 | −.001 | .039 | .946 | .000 | .050 | .833 | −.008 | .166 | .037 | −.005 | .255 | .962 | .001 | .045 | .958 | .021 | .055 | |||||||
| ELECTRICITY | .911 | .028 | .098 | .478 | .039 | .101 | .854 | −.007 | .118 | .268 | .008 | .104 | .883 | .003 | .098 | .888 | .083 | .123 | |||||||
| Adaptive | PEMS03 | .725 | .003 | .155 | .412 | −.008 | .132 | .472 | .001 | .215 | .007 | −.001 | .256 | .554 | .000 | .164 | .836 | .039 | .188 | ||||||
| ELECTRICITY | .938 | .009 | .019 | .892 | .011 | .022 | .914 | .010 | .024 | .207 | .006 | .040 | .933 | .006 | .019 | .967 | .034 | .046 | |||||||
| Direction | PEMS03 | .894 | .017 | .057 | .390 | .018 | .069 | .671 | .001 | .077 | −.003 | .000 | .079 | −.016 | .001 | .066 | .939 | .042 | .083 | ||||||
| ELECTRICITY | .937 | .007 | .009 | .804 | .008 | .010 | .978 | .008 | .011 | .032 | .007 | .014 | .878 | .006 | .007 | .921 | .016 | .019 | |||||||
| Direction | PEMS03 | .870 | .018 | .057 | .438 | .016 | .068 | .644 | .001 | .077 | −.004 | .000 | .077 | −.012 | .001 | .066 | .945 | .041 | .084 | ||||||
| ELECTRICITY | .932 | .007 | .009 | .814 | .009 | .011 | .972 | .009 | .011 | .030 | .006 | .013 | .856 | .006 | .008 | .919 | .016 | .019 |
Table 18. Victim architectures: DEBA-MTS, IFBA, the adaptive poison (outcome goal, feedback), and the direction poisons (: with feedback), retrained on every victim. ASR: with SafeTime.
Baselines. The main comparison is TIMEGUARD [15], run from its official implementation with its published hyperparameters on the same poisoned series and under the same information. We also adapt four defences to run on
| Setting | Value |
| Nominal level | |
| level | |
| Computational budget (larger values reduce sampling noise) | |
| reference draws (tests; reversion) | 200; 50 |
| refinement rounds; trimming fits | 10; 20 |
| -means restarts; random groups | 10; 5 |
| ridge penalty candidates (GCV) | 33, log-spaced |
| co-extreme eigenvectors | 15 |
| ridge penalty (co-extreme; residual) | ; fit steps |
| Minimum counts (for a statistic to be defined) | |
| bursts per test | 3 |
| channels for the cross-channel reference | 10 (within-channel: 3) |
| fit steps outside spans | 50 |
| Fixed design constants | |
| graph links ; maximum communities | 10; 15 |
| confirmation cut on | 2.0 |
| minimum group size | 2 |
| residual regressors exclude | , , neighbours |
| sentinel guard (training) | the 0.5–99.5% range |
Table 3. Settings of SafeTime, grouped by role. Every setting is shared by all datasets, attacks, and architectures.
| Setting (SafeTime) | Value | Found | All found | False | False clean |
| SafeTime | – | 2,759 | 35 | 124 | 16 |
| level () | 2,759 | 35 | 88 | 38 | |
| 2,754 | 35 | 144 | 28 | ||
| 100 | 2,761 | 36 | 134 | 46 | |
| 400 | 2,761 | 35 | 118 | 54 | |
| null draws (tests) (200) | 25 | 2,756 | 35 | 118 | 16 |
| 100 | 2,762 | 36 | 133 | 16 | |
| refinement rounds (10) | 5 | 2,756 | 35 | 114 | 42 |
| 20 | 2,761 | 35 | 124 | 16 | |
| graph links (10) | 5 | 2,760 | 36 | 241 | 15 |
| 20 | 2,763 | 37 | 126 | 10 | |
| max. communities (15) | 10 | 2,763 | 37 | 123 | 18 |
| 25 | 2,760 | 36 | 114 | 36 | |
| -means restarts (10) | 5 | 2,761 | 35 | 123 | 21 |
| 20 | 2,762 | 36 | 136 | 28 | |
| five count settings* | either | 2,759 | 35 | 124 | 16 |
| co-ext. eigenvectors (15) | 8 | 2,762 | 36 | 107 | 17 |
| 30 | 2,760 | 36 | 109 | 20 | |
| co-ext. ridge () (1) | 0.5 | 2,761 | 35 | 113 | 14 |
| 2 | 2,762 | 36 | 105 | 16 | |
| residual neighbours (10) | 5 | 2,759 | 35 | 119 | 15 |
| 20 | 2,759 | 35 | 159 | 12 | |
| residual null draws (200) | 100 | 2,760 | 35 | 147 | 42 |
| 400 | 2,759 | 35 | 121 | 41 | |
| residual ridge () (1) | 0.5 | 2,759 | 35 | 122 | 17 |
| 2 | 2,759 | 35 | 125 | 42 | |
| confirmation cut (2.0) | 1.0 | 2,759 | 35 | 139 | 45 |
| 4.0 | 2,759 | 35 | 83 | 13 |
Table 4. Detection with each setting of Table 3 changed in turn, the others at their default (main poisoned series and clean series). All found: series with every attacked channel flagged; False clean: flags on the clean series. *: random groups, random channels, bursts per test, empirical-null channels, and across-time minimum, each at either value.
Empirical Results
Do the attacks implant? (RQ1)
Measured by the implanted effect , every attack family implants a backdoor in a victim trained from scratch. BACKTIME reaches a mean implanted effect of +0.644 (Table 6), and DEBA-MTS and IFBA reach 0.600 to 0.998 and 0.577 to 0.961 (Table 5). The 17 adaptive white-box poisons in Table 12, 15 full and 2 channel-drop, reach 0.542 to 0.946. TDBA implants less, +0.185 (Table 6). Table 8 shows that its trigger also acts on clean-trained models (+0.207, and +0.115 for BACKTIME), which measures the trigger response clean data alone teach.
| Dataset | Undefended | SafeTime | |||||||
| Found | False | ASR | Attack MAE | ASR | Attack MAE | ||||
| DEBA-MTS [14] | PEMS03 | 107/107 | 0 | 0.925 | 0.795 | 10.9 | 0.144 | −0.001 | 37.2 |
| PEMS04 | 92/92 | 0 | 0.866 | 0.600 | 19.2 | 0.255 | 0.030 | 41.6 | |
| PEMS08 | 51/51 | 9 | 0.924 | 0.779 | 11.6 | 0.150 | 0.001 | 36.9 | |
| Weather | 6/6 | 9 | 1.000 | 0.989 | 3.9 | 0.015 | 0.002 | 85.4 | |
| Electricity | 96/96 | 12 | 0.999 | 0.998 | 168 | 0.003 | 0.001 | 3436 | |
| IFBA [12] | PEMS03 | 108/108 | 0 | 0.915 | 0.639 | 14.1 | 0.281 | 0.034 | 44.2 |
| PEMS04 | 92/93 | 0 | 0.876 | 0.577 | 19.5 | 0.309 | 0.051 | 55.9 | |
| PEMS08 | 51/51 | 0 | 0.919 | 0.654 | 14.2 | 0.338 | 0.031 | 57.4 | |
| Weather | 7/7 | 0 | 0.999 | 0.961 | 6.4 | 0.039 | −0.001 | 92.8 | |
| Electricity | 97/97 | 2 | 0.925 | 0.911 | 1847 | 0.098 | 0.028 | 5198 |
Table 5. DEBA-MTS and IFBA. Found, false: attacked and unattacked channels flagged. : implanted effect. Attack MAE: attack MAE.
| Attack | Dataset | ASR↓ Undef. | ASR↓ No-trig. | ASR↓ ST | ASR↓ TG | Attack MAE↑ Undef. | Attack MAE↑ ST | Attack MAE↑ TG | Clean MAE↓ Undef. | Clean MAE↓ ST | Clean MAE↓ TG | Clean ∆MAE (%)↓ ST | Clean ∆MAE (%)↓ TG |
| BACKTIME | PEMS03 | 0.787±0.008 | 0.182 | 0.162±0.007 | 0.201±0.007 | 17.5 | 39.1 | 37.5 | 19.1 | 18.4 | 19.4 | −3.6±0.3 | +2.2±0.4 |
| PEMS04 | 0.707±0.005 | 0.206 | 0.198±0.004 | 0.240±0.009 | 24.7 | 47.6 | 44.4 | 23.7 | 23.4 | 24.3 | −1.3±0.6 | +3.0±1.0 | |
| PEMS08 | 0.746±0.009 | 0.217 | 0.196±0.002 | 0.244±0.008 | 21.6 | 43.4 | 39.9 | 20.8 | 20.6 | 21.6 | −0.5±0.8 | +4.5±1.7 | |
| WEATHER | 0.880±0.017 | 0.123 | 0.112±0.004 | 0.692±0.012 | 31.0 | 97.7 | 50.3 | 17.0 | 16.1 | 16.2 | −4.7±4.8 | +0.9±2.5 | |
| ELECTRICITY | 0.854±0.019 | 0.028 | 0.023±0.001 | 0.178±0.093 | 1505 | 5068 | 3527 | 611 | 434 | 662 | −30.2±1.1 | +9.2±2.0 | |
| All | 0.795±0.009 | 0.151 | 0.138±0.001 | 0.311±0.020 | – | – | – | – | – | – | −8.0±1.0 | +3.9±0.7 | |
| TDBA | PEMS03 | 0.614±0.014 | 0.373 | 0.317±0.009 | 0.595±0.013 | 21.4 | 27.8 | 22.9 | 19.0 | 18.4 | 19.6 | −2.9±0.4 | +3.5±0.3 |
| PEMS04 | 0.533±0.017 | 0.337 | 0.290±0.006 | 0.534±0.006 | 30.3 | 37.7 | 31.9 | 23.4 | 22.9 | 24.2 | −1.8±0.4 | +3.8±0.0 | |
| PEMS08 | 0.546±0.026 | 0.360 | 0.304±0.005 | 0.575±0.007 | 26.2 | 34.2 | 27.5 | 20.6 | 20.4 | 21.7 | −0.6±0.8 | +6.1±0.6 | |
| WEATHER | 0.645±0.020 | 0.395 | 0.352±0.016 | 0.688±0.010 | 51.0 | 57.5 | 45.3 | 19.7 | 15.7 | 17.5 | −12.8±3.1 | +2.1±5.7 | |
| ELECTRICITY | 0.363±0.007 | 0.311 | 0.335±0.006 | 0.363±0.005 | 1688 | 1800 | 1906 | 416 | 412 | 473 | −1.5±1.7 | +15.6±1.4 | |
| All | 0.540±0.003 | 0.355 | 0.320±0.005 | 0.551±0.001 | – | – | – | – | – | – | −3.9±0.9 | +6.2±1.0 |
Table 6. End-to-end results, mean over six architectures (± standard deviation over training seeds). Undef.: undefended; No-trig.: undefended no-trigger rate; ST: SafeTime; TG: TimeGuard. Clean MAE: mean over the architectures and seeds; Clean ∆MAE: mean of each model’s own change, so the two can differ in sign. Bold: better of ST and TG.
Table 8. Residual attack effect. Impl.: ASR minus the model’s own no-trigger rate. ∆MAE: clean-MAE change (%).
| Dataset | Goal | Feedback | Channels / timing | Found | False | Undef. | SAFETIME | Undef. | SAFETIME | Undef. | SAFETIME | Removal | ΔMAE |
| PEMS03 | fixed | yes | all | 107/107 | 1 | 0.798 | 0.011 | 11.7 | 38.2 | 16.2 | 16.0 | 98.6 | −0.9 |
| outcome | no | all | 107/107 | 1 | 0.748 | 0.005 | 12.0 | 38.0 | 16.3 | 16.0 | 99.4 | −1.8 | |
| outcome | yes | all | 107/107 | 1 | 0.725 | 0.003 | 12.2 | 36.7 | 16.3 | 16.0 | 99.6 | −1.4 | |
| direction | no | all | 107/107 | 1 | 0.894 | 0.017 | 14.4 | 37.9 | 15.9 | 16.0 | 98.1 | +0.2 | |
| direction | yes | all | 107/107 | 1 | 0.870 | 0.018 | 15.9 | 38.0 | 16.0 | 16.0 | 98.0 | −0.3 | |
| PEMS04 | fixed | yes | all | 92/92 | 0 | 0.662 | 0.014 | 18.3 | 43.7 | 21.1 | 21.1 | 97.9 | −0.3 |
| outcome | no | all | 92/92 | 0 | 0.614 | 0.006 | 18.4 | 43.5 | 21.2 | 21.2 | 99.1 | +0.2 | |
| outcome | yes | all | 92/92 | 0 | 0.606 | 0.004 | 19.0 | 43.5 | 21.1 | 21.2 | 99.3 | +0.3 | |
| PEMS08 | fixed | yes | all | 51/51 | 6 | 0.756 | −0.000 | 13.2 | 40.7 | 17.6 | 17.8 | 100.0 | +1.3 |
| outcome | no | all | 51/51 | 1 | 0.695 | −0.006 | 12.7 | 39.6 | 17.8 | 17.9 | 100.9 | +1.0 | |
| outcome | yes | all | 51/51 | 1 | 0.699 | −0.008 | 13.2 | 39.3 | 17.7 | 17.9 | 101.2 | +1.1 | |
| WEATHER | fixed | yes | all | 6/6 | 2 | 0.943 | 0.002 | 12.3 | 90.8 | 10.4 | 10.3 | 99.8 | −1.7 |
| outcome | no | all | 6/6 | 2 | 0.932 | 0.005 | 13.0 | 93.0 | 10.5 | 9.7 | 99.5 | −7.3 | |
| outcome | yes | all | 6/6 | 2 | 0.929 | 0.003 | 16.2 | 96.0 | 9.9 | 9.2 | 99.7 | −6.8 | |
| ELECTRICITY | fixed | yes | all | 95/96 | 9 | 0.936 | 0.008 | 944 | 4229 | 529 | 397 | 99.1 | −24.9 |
| outcome | no | all | 95/96 | 7 | 0.946 | 0.015 | 922 | 4212 | 471 | 410 | 98.4 | −12.9 | |
| outcome | yes | all | 95/96 | 6 | 0.938 | 0.009 | 996 | 4259 | 492 | 394 | 99.0 | −20.0 | |
| direction | no | all | 95/96 | 8 | 0.937 | 0.007 | 1267 | 4170 | 435 | 399 | 99.2 | −8.3 | |
| direction | yes | all | 95/96 | 7 | 0.932 | 0.007 | 1287 | 4181 | 434 | 395 | 99.2 | −8.9 | |
| fixed | yes | drop | 0/1 | 3 | 0.542 | 0.495 | 96772 | 108152 | 401 | 402 | 8.7 | +0.2 | |
| outcome | yes | drop | 0/1 | 2 | 0.565 | 0.559 | 93823 | 96523 | 398 | 397 | 1.0 | −0.3 | |
| PEMS03 | outcome | no | per-channel offset, shared trig. | 88/107 | 1 | 0.048 | 0.037 | 33.2 | 34.2 | 16.4 | 16.3 | – | −0.5 |
| outcome | no | random per event, varied trig. | 51/107 | 1 | 0.045 | 0.044 | 34.4 | 34.9 | 16.4 | 16.4 | – | 0.0 | |
| fixed | no | random per event, varied trig. | 60/107 | 1 | 0.039 | 0.039 | 35.5 | 36.4 | 16.5 | 16.3 | – | −0.6 |
Table 12. Adaptive white-box attacker. Goal: fixed (published target), outcome (shared lift, any shape), or direction (shared zero-mean rising profile, no lift). Feedback: redraws of flagged channels. Channels: all kept, or flagged channels dropped. Bottom: controls without cross-channel timing coordination. Found, False: attacked and unattacked channels flagged. : implanted effect. Removal: (%). MAE: clean-MAE change (%).
Does SafeTime remove the malicious supervision? (RQ2)
Table 6 shows that SAFETIME removes nearly all implanted effect. Against BACKTIME, the mean implanted effect falls from +0.644 to +0.013 (98.0% removed) and the ASR from 0.795 to 0.138, below the undefended no-trigger rate on every dataset and below the undefended ASR for every dataset, victim, and training seed; against TDBA, the effect falls from +0.185 to +0.030 (ASR 0.540 to 0.320), and against DEBA-MTS and IFBA to at most 0.030 and 0.051 (Table 5), removals of at least 94.9% and 91.1%. On the other architectures (Table 18, Appendix A), no published-attack poison retains more than 0.096 (Figure 3), except IFBA on iTransformer (0.124). Against BACKTIME and TDBA, the residual effect is within 0.002 and 0.008 of perfect detection, which reconstructs every target of the true attacked channels outside the true trigger and target steps (+0.011 and +0.022), and below that of the clean-trained model (+0.115 and +0.207; Table 8), so relabelling removes the trigger-conditional deviation rather than masking it. Under the same information, TIMEGUARD leaves an ASR of 0.311 and 0.551 and an implanted effect of 0.181 and 0.211, and randomised smoothing, fine-tuning, and fine-pruning leave the ASR near its undefended value (Table 7), as does the per-channel mask where it has an admissible setting (0.896 and 0.613, against 0.893 and 0.624 undefended).
Table 7. Mean ASR and clean-MAE change (∆, %) of SAFETIME and the baselines. Bold: best without clean data. RS: randomised smoothing; FT: fine-tuning; FP: fine-pruning. †: uses a clean slice of the training series. a: mean over the cells with an admissible pruning ratio.
Figure 3. Implanted effect undefended and after SAFETIME; one line per poison and victim. BACKTIME, TDBA, DEBA-MTS, IFBA: every dataset on the six victims. Knowledgeable: ten lever combinations (§ 5.2.5) on PEMS03, ELECTRICITY, and WEATHER, and three on PEMS04 and PEMS08, on FEDformer.
Is detection attributable to target-side evidence? (RQ3)
SAFETIME localises the attacked channels almost exactly. Its recall and precision are 0.998 and 0.948 against BACKTIME and 0.998 and 0.986 against TDBA (Table 9), and 1.000 and 0.931 against DEBA-MTS and 0.997 and 0.978 against IFBA (Table 5). Table 10 removes the trigger, the shared lift, the target deviation, or the synchrony of the attacked channels from BACKTIME and from a PEMS03 poison whose targets add a shared lift to per-event shape variation (§ 5.2.5). The shared target deviation suffices: without the trigger, both poisons are flagged on all 107 attacked channels and still implant 0.652 and 0.745, whereas per-event shape variation alone, the negative control, implants 0.085 and is left unflagged. Under synchrony, the trigger alone suffices: without a shared target component, the poisons are flagged on all 107 channels while implanting only 0.019 to 0.025. Without synchrony, the lift poison is flagged on 88 channels (), or 68 when the trigger is also removed (0.057), and BACKTIME on all 107 (0.083).
Table 9. CHANNEL-LEVEL DETECTION ON THE POISONED SERIES AND CHANNELS FLAGGED ON THE CLEAN SERIES. C: NUMBER OF CHANNELS. RECALL: SHARE OF ATTACKED CHANNELS FLAGGED. PREC.: SHARE OF FLAGGED CHANNELS THAT ARE ATTACKED.
| Trigger | Target deviation | Sync. | Found | False | |
| yes | lift + varied shape | yes | 107/107 | 1 | 0.748 |
| no | lift + varied shape | yes | 107/107 | 1 | 0.652 |
| yes | none | yes | 107/107 | 1 | 0.019 |
| yes | varied shape only | yes | 107/107 | 1 | 0.025 |
| no | varied shape only† | yes | 0/107 | 1 | 0.085 |
| yes | lift + varied shape | no | 88/107 | 1 | 0.048 |
| no | lift + varied shape | no | 68/107 | 1 | 0.057 |
| yes | published target | yes | 107/107 | 1 | 0.806 |
| no | published target | yes | 107/107 | 1 | 0.745 |
| yes | none | yes | 107/107 | 1 | 0.023 |
| yes | published target | no | 107/107 | 1 | 0.083 |
Table 10. EVIDENCE REMOVED FROM PEMS03 POISONS (FIRST ROW OF EACH BLOCK: COMPLETE). TOP: SHARED LIFT PLUS PER-EVENT SHAPE VARIATION; BOTTOM: BACKTIME. SYNC.: SYNCHRONISED EVENTS. : UNDEFENDED IMPLANTED EFFECT. †: NEGATIVE CONTROL.
Which components are needed? (RQ4)
Every component contributes recall or precision. Each row of Table 11 removes one component and reruns detection on the main and clean series. SAFETIME finds 2,759 of the 2,765 attacked channels. The cross-channel test supplies most of the recall: without it, 915 are found. The co-extreme groups and expansion each add 4 channels. The within-channel test, which detects attacks on a single channel (Appendix B), changes no detection here: without it, false flags fall from 124 to 76 on the poisoned series but rise from 16 to 37 on the clean series. Phase matching (scoring bursts against the same phase rather than globally), the cross-channel reference, and residual confirmation supply precision. Without the residual stage, false flags rise from 124 to 173 on the poisoned and from 16 to 47 on the clean series. Without the cross-channel reference they reach 965 and 213, and with global burst scoring 394 and 42.
| Variant | Attacked found† | False (poisoned)↓ | False (clean)↓ |
| SAFETIME | 2,759 | 124 | 16 |
| No cross-channel test | 915 | 9 | 11 |
| No co-extreme groups | 2,755 | 132 | 7 |
| No within-channel test | 2,759 | 76 | 37 |
| No residual stage | 2,755 | 173 | 47 |
| No confirmation | 2,759 | 184 | 51 |
| No expansion | 2,755 | 113 | 12 |
| No group confirmation | 2,758 | 112 | 16 |
| All group members kept | 2,759 | 128 | 16 |
| No refinement fallback | 2,674 | 76 | 31 |
| No refinement | 2,762 | 253 | 63 |
| No cross-channel reference | 2,765 | 965 | 213 |
| Level view only | 2,621 | 62 | 20 |
| Change view only | 2,751 | 82 | 24 |
| No leave-one-out | 2,762 | 121 | 45 |
| Burst sample kept | 2,759 | 206 | 39 |
| Global burst scoring | 2,763 | 394 | 42 |
Table 11. DETECTOR ABLATION ON THE POISONED SERIES OF THE MAIN EVALUATION (2,765 ATTACKED CHANNELS) AND THE CLEAN SERIES; EACH ROW REMOVES ONE COMPONENT. FOUND: ATTACKED CHANNELS FLAGGED. FALSE: UNATTACKED CHANNELS FLAGGED.
Adaptive white-box evaluation (RQ5)
Attacker. The attacker knows SAFETIME’s algorithm, settings, and the defender’s exact series, runs SAFETIME locally, and seeks a backdoor that survives relabelling by diversifying the planted targets while keeping the shared deviation that, by Proposition 1, any learnable backdoor requires. It screens candidates with SAFETIME’s detection only; victims are retrained for the final poisons.
Variants and budget. Starting from the BACKTIME poison on PEMS03 (107 attacked channels), ELECTRICITY (96), PEMS04 (92), PEMS08 (51), and WEATHER (6), the attacker rewrites only the targets. Fixed-goal diversification adds to each copy of the published target an independent segment of the channel’s short-scale variation, scaled by . Outcome-goal diversification keeps only the published target’s mean lift, times one of five mean-one profiles (flat, rising, falling, hump, late), plus a natural segment, each copy scored on its own goal. Detector-guided variants redraw every flagged channel’s copies with raised by 0.25, for six rounds with (70 candidate poisons over the five datasets); channel-drop variants then revert the channels still flagged to the clean series, and controls desynchronise the events across channels. Every final poison is measured on an undefended victim.
Outcome. SAFETIME flags every attacked channel in every round on four datasets and 95 of 96 on ELECTRICITY (final round in Table 12). The full fixed- and outcome-goal poisons implant 0.606 to 0.946, and retraining on SAFETIME’s labels leaves at most 0.015, a removal of at least 97.9% (Table 12). Detector feedback gives the attacker no advantage: guided poisons keep at most 0.009, against 0.015 unguided, and at most 0.039 on any of the six architectures in Table 18. Without timing coordination across channels, the controls implant only 0.039 to 0.048. The one successful adaptive attack uses the ELECTRICITY channel that is never flagged: the channel-drop variants revert the other 95 channels and keep a single-channel backdoor, which implants 0.542 and 0.565 and keeps 0.495 and 0.559 after SAFETIME, at the cost of 95 of the attacker’s 96 channels. On the other four datasets, no attacked channel survives.
Shared direction without lift. Keeping only a shared direction, each planted target adds to the clean value one of five zero-mean rising profiles, scaled to the channel’s variability, plus a natural segment, with and without feedback. On PEMS03 and ELECTRICITY, these poisons implant 0.870 to 0.945 on FEDformer and iTransformer; SAFETIME flags 107/107 and 95/96 attacked channels and leaves 0.007 to 0.042 (Table 12 and Table 18).
Sign-changing deviation. For the case not covered by the averaging argument of § 3.1, the same attacker pushes each outcome-goal target in the direction the channel moved before the trigger, split at the channel’s median so that the deviation averages to about zero. SAFETIME flags 107/107 and 95/96 attacked channels with and without feedback. Where the poison implants, with effects of 0.552 to 0.703, retraining leaves 0.010 to 0.049 (Table 13); on FEDformer, the PEMS03 poison implants only 0.050 and 0.064.
| Dataset | Feedback | Victim | Found↑ | False↓ | Undef. | SAFETIME | Undef. | SAFETIME | Removal↑ | ΔMAE↓ |
| PEMS03 | no | FEDformer | 107/107 | 1 | 0.064 | 0.016 | 29.2 | 32.4 | 74.6 | −0.7 |
| iTransformer | 107/107 | 1 | 0.577 | 0.045 | 14.2 | 31.2 | 92.1 | +0.1 | ||
| yes | FEDformer | 107/107 | 1 | 0.050 | 0.016 | 29.8 | 32.4 | 67.2 | +0.2 | |
| iTransformer | 107/107 | 1 | 0.552 | 0.049 | 15.2 | 31.2 | 91.2 | +0.2 | ||
| ELECTRICITY | no | FEDformer | 95/96 | 2 | 0.688 | 0.010 | 2112 | 4170 | 98.5 | −10.1 |
| iTransformer | 95/96 | 2 | 0.703 | 0.025 | 2483 | 4312 | 96.5 | −4.1 | ||
| yes | FEDformer | 95/96 | 4 | 0.681 | 0.011 | 2126 | 4216 | 98.4 | −11.7 | |
| iTransformer | 95/96 | 4 | 0.701 | 0.024 | 2534 | 4501 | 96.6 | +3.4 |
Table 13. Sign-changing deviation: each target follows the channel’s pre-trigger direction, so the planted deviation averages to about zero. Feedback: redraws of flagged channels. and attack MAE are measured on this context-dependent goal. Removal: (%).
Knowledgeable lever combinations. A knowledgeable attacker combines levers aimed at SAFETIME’s assumptions: fewer channels or events; smaller, shorter, smooth, or diversified triggers; and camouflage, timing events to moments when the attacked channels already move together. Of 30 combinations on PEMS03, ELECTRICITY, and WEATHER (17 in Table 14; the other 13, and three run on PEMS04 and PEMS08, in Table 22 where they implant), every multichannel combination of Table 14 is flagged on all attacked channels or all but one, with a defended ASR of at most 0.136 and a higher attack MAE. On WEATHER, the ASR of C R S falls from 0.986 to 0.036, again 0.483 for TIMEGUARD, and stays at or below 0.04 on every victim in Table 21. One configuration evades detection while still implanting: a single PEMS03 channel with few events and a small trigger (0.135; Table 14). In Table 22, the PEMS03 corner combination also evades detection but barely implants (0.067), and the PEMS04 C R combination, flagged on only 11 of its 31 channels, still has its ASR lowered from 0.297 to 0.253.
| Dataset | Levers | Found↑ | ASR↓ Undef. | No-trig. | Impl. | ST | TG | Clean-tr. | Attack MAE↑ Undef. | ST | TG | Clean MAE↓ Undef. | ST | TG |
| PEMS03 | C R | 35/36 | 0.244 | 0.131 | 0.113 | 0.136 | 0.175 | 0.183 | 29.1 | 36.9 | 31.4 | 15.8 | 15.7 | 16.8 |
| C R N | 35/36 | 0.230 | 0.131 | 0.099 | 0.131 | 0.164 | 0.185 | 29.7 | 37.2 | 32.2 | 15.9 | 15.8 | 16.8 | |
| C R S | 36/36 | 0.615 | 0.134 | 0.481 | 0.131 | 0.253 | 0.321 | 22.1 | 38.5 | 27.8 | 15.7 | 15.8 | 16.8 | |
| C R E | 36/36 | 0.425 | 0.133 | 0.292 | 0.121 | 0.181 | 0.185 | 24.6 | 39.2 | 31.8 | 15.8 | 15.7 | 16.8 | |
| C R T | 36/36 | 0.709 | 0.123 | 0.586 | 0.116 | 0.166 | 0.178 | 20.9 | 39.7 | 31.9 | 15.7 | 15.7 | 16.7 | |
| C R N E T | 36/36 | 0.733 | 0.125 | 0.608 | 0.118 | 0.169 | 0.177 | 20.0 | 39.0 | 31.6 | 15.8 | 15.7 | 16.7 | |
| O R N | 0/1 | 0.232 | 0.097 | 0.135 | 0.228 | 0.164 | 0.191 | 25.8 | 25.6 | 26.0 | 15.7 | 15.7 | 16.8 | |
| O E T | 1/1 | 0.296 | 0.095 | 0.202 | 0.142 | 0.130 | 0.196 | 23.9 | 29.0 | 28.6 | 15.7 | 15.8 | 16.7 | |
| Electricity | C R | 32/32 | 0.893 | 0.004 | 0.890 | 0.017 | 0.019 | 0.055 | 1701 | 4589 | 4148 | 302 | 301 | 405 |
| C R N | 31/32 | 0.954 | 0.003 | 0.951 | 0.027 | 0.024 | 0.097 | 2414 | 5840 | 5364 | 312 | 312 | 390 | |
| C R N L | 31/32 | 0.890 | 0.005 | 0.886 | 0.019 | 0.019 | 0.011 | 3406 | 5915 | 6180 | 313 | 313 | 385 | |
| C R S | 31/32 | 0.613 | 0.004 | 0.609 | 0.084 | 0.030 | 0.024 | 3703 | 5415 | 5602 | 311 | 314 | 394 | |
| C R E | 31/32 | 0.954 | 0.003 | 0.951 | 0.026 | 0.024 | 0.099 | 2442 | 5765 | 5330 | 309 | 310 | 389 | |
| C R T | 32/32 | 0.015 | 0.004 | 0.011 | 0.008 | 0.007 | 0.011 | 2711 | 3503 | 3168 | 289 | 290 | 412 | |
| C R N E T | 31/32 | 0.356 | 0.003 | 0.353 | 0.008 | 0.014 | 0.019 | 2168 | 3748 | 3289 | 289 | 289 | 411 | |
| O E T | 1/1 | 0.456 | 0.000 | 0.456 | 0.000 | 0.001 | 0.001 | 1877 | 3234 | 2821 | 290 | 293 | 417 | |
| Weather | C R S | 2/2 | 0.986 | 0.032 | 0.954 | 0.036 | 0.483 | 0.045 | 34.2 | 83.3 | 49.2 | 9.6 | 9.9 | 10.8 |
Table 14. Knowledgeable attacker. Levers: C, 10% of channels attacked; R, 1% poisoning rate; N, four-fold trigger-magnitude penalty; L, two-step trigger; S, smooth trigger; E, diversified triggers; T, camouflage timing; O, one attacked channel. Found: attacked channels flagged. Undef., No-trig.: undefended ASR and no-trigger rate; Impl.: their difference; ST: SafeTime; TG: TimeGuard; Clean-tr.: clean-trained model. Bold: better of ST and TG.
| Dataset | Poison | Autoformer | TimesNet | Informer | PatchTST | iTransformer |
| PEMS03 | C R S | 0.54/0.12/0.20<br>−0.2/+14.9 | 0.24/0.17/0.17<br>−0.9/+0.3 | 0.25/0.22/0.21<br>+0.3/+1.0 | 0.21/0.13/0.14<br>−0.1/+10.6 | 0.67/0.51/0.82<br>−0.4/+6.9 |
| clean MAE | ||||||
| WEATHER | C R S | 0.94/0.03/0.45<br>−9.2/−14.8 | 0.57/0.02/0.11<br>−2.2/+7.1 | 0.03/0.02/0.02<br>−2.1/−38.2 | 0.05/0.02/0.03<br>+4.0/+10.6 | 0.99/0.04/0.99<br>+10.7/+4.5 |
| clean MAE | ||||||
| PEMS03 | one channel | 0.58/0.10/0.12<br>+1.9/+13.5 | 0.12/0.09/0.05<br>+1.3/−0.6 | 0.24/0.14/0.10<br>+1.7/+1.0 | 0.10/0.07/0.05<br>+1.3/+10.7 | 0.68/0.54/0.82<br>+0.7/+7.4 |
| clean MAE | ||||||
| PEMS08 | one channel | 0.49/0.16/0.44<br>−2.1/+10.0 | 0.33/0.25/0.20<br>−0.1/+6.6 | 0.28/0.19/0.22<br>−0.6/+1.9 | 0.17/0.17/0.15<br>−0.1/+11.9 | 0.70/0.64/0.85<br>−0.3/+8.4 |
| clean MAE | ||||||
| WEATHER | one channel | 0.30/0.06/0.08<br>+0.8/+10.0 | 0.56/0.05/0.05<br>−0.9/+15.4 | 0.09/0.05/0.05<br>−0.9/+5.0 | 0.09/0.05/0.05<br>+0.1/+5.8 | 0.95/0.80/0.76<br>+12.7/+5.8 |
| clean MAE | +4.4/−22.5 | −6.4/−15.4 | +18.1/−10.7 | +1.5/−8.2 | +12.7/+5.8 | |
| ELECTRICITY | one channel | 0.63/0.00/0.61<br>+3.0/0.0 | 0.56/0.00/0.00<br>+14.0/−0.0 | 0.14/0.00/0.00<br>+0.0/−0.0 | 0.12/0.00/0.00<br>+0.0/−0.0 | 0.50/0.38/0.76<br>+0.0/+38.0 |
| clean MAE | +0.5/+30.9 | −0.4/+23.9 | −0.3/−1.4 | −0.4/+54.3 | −1.4/+38.6 |
Table 21. Knowledgeable-attacker and single-channel poisons (mean over attacker poisons) on the other victims. Each entry: U / ST / TG ASR (first line) and clean-MAE change of ST / TG (second).
| Dataset | Setting | Found↑ | False↓ | Undef. | No-trig. | ST | TG | Attack MAE↑ (U / ST / TG) | Ratio↓ | ||
| U | ST | TG | |||||||||
| Stealthier settings, one changed at a time | |||||||||||
| PEMS03 | 10% channels | 36/36 | 2 | 0.739 | 0.161 | 0.129 | 0.152 | 18.3 | 37.9 | 35.5 | 0.99 |
| 5% channels | 18/18 | 19 | 0.809 | 0.202 | 0.132 | 0.174 | 17.2 | 39.3 | 33.4 | 1.02 | |
| 1% rate | 107/107 | 1 | 0.809 | 0.128 | 0.126 | 0.170 | 17.2 | 38.6 | 31.3 | 1.00 | |
| magnitude penalty ×4 | 107/107 | 1 | 0.928 | 0.135 | 0.130 | 0.157 | 11.6 | 37.5 | 34.5 | 0.98 | |
| trigger length 2 | 107/107 | 1 | 0.895 | 0.140 | 0.122 | 0.107 | 12.8 | 36.3 | 39.5 | 0.99 | |
| WEATHER | 10% channels | 2/2 | 1 | 0.966 | 0.043 | 0.033 | 0.496 | 25.0 | 90.2 | 49.1 | 1.01 |
| 5% channels | 1/1 | 3 | 0.381 | 0.062 | 0.064 | 0.089 | 49.4 | 93.9 | 61.2 | 1.02 | |
| 1% rate | 6/6 | 3 | 0.511 | 0.043 | 0.172 | 0.332 | 47.1 | 98.8 | 58.9 | 1.83 | |
| magnitude penalty ×4 | 6/6 | 1 | 0.992 | 0.043 | 0.047 | 0.642 | 8.2 | 92.3 | 40.9 | 0.94 | |
| trigger length 2 | 6/6 | 2 | 0.982 | 0.048 | 0.049 | 0.478 | 13.0 | 90.5 | 50.6 | 1.00 | |
| ELECTRICITY | 10% channels | 31/32 | 3 | 0.977 | 0.014 | 0.034 | 0.044 | 1619 | 4874 | 4801 | 0.93 |
| 5% channels | 16/16 | 2 | 0.945 | 0.015 | 0.003 | 0.003 | 753.5 | 3578 | 3210 | 0.96 | |
| 1% rate | 91/96 | 3 | 0.925 | 0.002 | 0.042 | 0.017 | 1237 | 4074 | 3603 | 0.98 | |
| magnitude penalty ×4 | 95/96 | 2 | 0.988 | 0.016 | 0.012 | 0.794 | 1112 | 4176 | 1861 | 0.77 | |
| trigger length 2 | 95/96 | 18 | 0.989 | 0.006 | 0.011 | 0.018 | 818.5 | 4212 | 4818 | 0.86 | |
| One poisoned channel, mean over three attacker poisons | |||||||||||
| PEMS03 | one channel | 3/3 | 8.7 | 0.339 | 0.100 | 0.151 | 0.119 | 24.1 | 30.7 | 29.4 | 1.01 |
| PEMS04 | one channel | 3/3 | 0.0 | 0.217 | 0.087 | 0.143 | 0.126 | 29.0 | 32.7 | 31.0 | 1.00 |
| PEMS08 | one channel | 3/3 | 3.7 | 0.405 | 0.124 | 0.180 | 0.189 | 26.0 | 35.5 | 32.5 | 1.00 |
| WEATHER | one channel | 3/3 | 3.7 | 0.147 | 0.021 | 0.021 | 0.030 | 52.6 | 86.2 | 66.9 | 0.93 |
| ELECTRICITY | one channel | 3/3 | 3.3 | 0.538 | 0.029 | 0.134 | 0.001 | 1846 | 2550 | 2799 | 1.01 |
| Several attackers on disjoint channel groups (attacker j of n) | |||||||||||
| PEMS03 | attacker 1 of 2 | 108/108 | – | 0.910 | 0.158 | 0.170 | 0.133 | 12.9 | 39.2 | 51.7 | 1.02 |
| attacker 2 of 2 | 0.926 | 0.121 | 0.167 | 0.191 | 12.0 | 30.2 | 28.9 | ||||
| attacker 1 of 3 | 108/108 | – | 0.832 | 0.195 | 0.174 | 0.142 | 16.0 | 39.1 | 41.2 | 1.02 | |
| attacker 2 of 3 | 0.830 | 0.181 | 0.165 | 0.164 | 18.0 | 41.9 | 39.5 | ||||
| attacker 3 of 3 | 0.722 | 0.142 | 0.189 | 0.204 | 17.6 | 31.3 | … | ||||
| ELECTRICITY | attacker 1 of 2 | 96/96 | – | 0.986 | 0.045 | 0.001 | 0.003 | 426.4 | 3519 | 2997 | 0.77 |
| attacker 2 of 2 | 0.963 | 0.005 | 0.002 | 0.020 | 710.7 | 2826 | 2746 | ||||
| attacker 1 of 3 | 96/96 | – | 1.000 | 0.050 | 0.000 | 0.000 | 360.4 | 3484 | 2832 | 0.76 | |
| attacker 2 of 3 | 0.972 | 0.062 | 0.010 | 0.030 | 635.1 | 4696 | 3688 | ||||
| attacker 3 of 3 | 0.952 | 0.001 | 0.002 | 0.023 | 585.4 | 2608 | 2720 | ||||
| WEATHER | attacker 1 of 2 | 6/6 | – | 1.000 | 0.000 | 0.000 | 0.000 | 4.3 | 80.8 | 74.3 | 1.04 |
| attacker 2 of 2 | 0.029 | 0.024 | 0.025 | 0.027 | 49.5 | 58.7 | 57.5 | ||||
| attacker 1 of 3 | 6/6 | – | 1.000 | 0.000 | 0.000 | 0.000 | 16.3 | 85.9 | 83.7 | 0.88 | |
| attacker 2 of 3 | 0.959 | 0.048 | 0.030 | 0.495 | 23.4 | 110.4 | 60.7 | ||||
| attacker 3 of 3 | 0.000 | 0.000 | 0.000 | 0.000 | 45.5 | 55.5 | 57.6 | ||||
| Realistic noise on every copy, BackTIME (, six victims) | |||||||||||
| PEMS03 | noise | 642/642 | 6 | 0.768 | 0.178 | 0.161 | 0.411 | 18.7 | 39.4 | 29.2 | 0.97 |
| PEMS04 | noise | 552/552 | 0 | 0.695 | 0.204 | 0.198 | 0.435 | 26.1 | 47.7 | 35.2 | 0.99 |
| PEMS08 | noise | 306/306 | 6 | 0.722 | 0.214 | 0.196 | 0.359 | 22.8 | 43.1 | 33.8 | 0.99 |
| WEATHER | noise | 36/36 | 12 | 0.619 | 0.125 | 0.143 | 0.537 | 61.0 | 107.5 | 64.9 | 1.00 |
| ELECTRICITY | noise | 572/576 | 36 | 0.486 | 0.014 | 0.022 | 0.459 | 3207 | 5108 | 3429 | 0.82 |
| All | 2,108/2,112 | 60 | 0.658 | 0.147 | 0.144 | 0.440 | 0.96 | ||||
| PEMS03, FEDformer: noise level and placement | |||||||||||
| PEMS03 | noise | 107/107 | 1 | 0.942 | 0.139 | 0.115 | 0.139 | 11.1 | 38.8 | 38.1 | 0.97 |
| noise | 107/107 | 1 | 0.940 | 0.138 | 0.116 | 0.487 | 11.1 | 38.9 | 22.5 | 0.98 | |
| noise | 107/107 | 1 | 0.923 | 0.129 | 0.110 | 0.873 | 12.1 | 39.8 | 15.2 | 0.98 | |
| noise on target only | 107/107 | 1 | 0.942 | 0.133 | 0.115 | 0.151 | 11.0 | 39.0 | 34.9 | 0.98 | |
| noise on trigger only | 107/107 | 1 | 0.946 | 0.140 | 0.120 | 0.131 | 10.7 | 38.6 | 41.3 | 0.97 | |
| Realistic noise on every copy, TDBA (, six victims) | |||||||||||
| PEMS03 | noise | 642/642 | 6 | 0.604 | 0.365 | 0.324 | 0.629 | 21.6 | 27.5 | 22.3 | 0.97 |
| PEMS04 | noise | 552/552 | 0 | 0.523 | 0.329 | 0.303 | 0.561 | 30.6 | 37.1 | 30.8 | 0.98 |
| PEMS08 | noise | 306/306 | 6 | 0.545 | 0.355 | 0.319 | 0.606 | 26.2 | 33.0 | 26.4 | 0.99 |
| WEATHER | noise | 36/36 | 12 | 0.662 | 0.365 | 0.399 | 0.688 | 69.4 | 60.0 | 54.7 | 0.91 |
| ELECTRICITY | noise | 555/576 | 27 | 0.360 | 0.306 | 0.325 | 0.373 | 1713 | 1813 | 1836 | 0.97 |
| All | 2,091/2,112 | 51 | 0.539 | 0.344 | 0.334 | 0.572 | 0.97 | ||||
| PEMS03, FEDformer: noise level and placement | |||||||||||
| PEMS03 | noise | 107/107 | 1 | 0.663 | 0.332 | 0.286 | 0.767 | 18.9 | 27.4 | 19.2 | 0.98 |
| noise | 107/107 | 1 | 0.650 | 0.319 | 0.290 | 0.743 | 19.1 | 27.3 | 19.1 | 0.99 | |
| noise | 107/107 | 1 | 0.618 | 0.312 | 0.291 | 0.735 | 19.6 | 27.3 | 18.9 | 0.99 | |
| noise on target only | 107/107 | 1 | 0.651 | 0.327 | 0.280 | 0.763 | 19.2 | 27.6 | 19.1 | 0.99 | |
| noise on trigger only | 107/107 | 1 | 0.656 | 0.319 | 0.286 | 0.758 | 19.0 | 27.3 | 19.1 | 0.99 | |
| Further knowledgeable-attacker combinations (levers as in Table 14; corner: 5% of channels, 0.5% rate, sixteen-fold penalty, two-step trigger) | |||||||||||
| PEMS03 | corner | 0/18 | 3 | 0.195 | 0.128 | 0.196 | 0.171 | 32.1 | 32.0 | 1.00 | |
| WEATHER | O E T | 1/1 | 3 | 0.423 | 0.058 | 0.061 | 0.080 | 50.8 | 96.3 | 70.4 | 1.04 |
| PEMS04 | C R | 11/31 | 0 | 0.297 | 0.172 | 0.253 | 0.245 | 36.0 | 39.1 | 35.3 | 1.00 |
| C R T | 31/31 | 0 | 0.280 | 0.170 | 0.186 | 0.223 | 33.1 | 41.5 | 35.8 | 1.00 | |
| C R N E T | 31/31 | 0 | 0.272 | 0.168 | 0.183 | 0.216 | 33.5 | 41.8 | 36.2 | 1.00 |
Table 22. STRONGER FIXED ATTACKERS: STEALTHIER BACKTIME SETTINGS, ONE POISONED CHANNEL, SEVERAL SIMULTANEOUS ATTACKERS, REALISTIC NOISE ON EVERY PLANTED COPY, AND THE FURTHER KNOWLEDGEABLE-ATTACKER COMBINATIONS THAT IMPLANT OR THAT SECTION 5.2.5 DISCUSSES (THE OTHER 11, AND THE THREE ON PEMS08, DO NOT IMPLANT) (EACH TRIGGER AND TARGET RECEIVES ITS OWN BLOCK OF NATURAL SHORT-SCALE VARIATION, SCALED BY ; PER DATASET: MEAN OVER THE SIX VICTIMS, FOUND AND FALSE SUMMED OVER THEM). RATIO: CLEAN MAE OF SAFETIME OVER UNDEFENDED (SEVERAL ATTACKERS: OF THE WHOLE MODEL).
Stronger fixed attackers. Stealthier BACKTIME settings, a single poisoned channel, several simultaneous attackers, random variation of every planted copy, and half of the channels attacked are evaluated in Appendix B.
Attacks on the reconstruction. An echo of at most one standard deviation on the unflagged channels that most influence the reconstruction, solved to rebuild the target, raises SAFETIME’s mean ASR from 0.069 to at most 0.128, against 0.276 to 0.390 for TIMEGUARD. False-flag decoys planted on 10% of the channels are all flagged, while 626 of 627 attacked channels are still found. Table 15 gives each setting.
| Attack | Undef. | ST | TG | Found | Δ |
| Echo, ε = 0.25 | 0.962 | 0.106 | 0.276 | 626/627 | +0.4 |
| Echo, ε = 0.5 | 0.964 | 0.105 | 0.294 | 626/627 | +1.4 |
| Echo, ε = 1 | 0.961 | 0.128 | 0.390 | 626/627 | +5.9 |
| False-flag decoys | 0.957 | 0.071 | 0.252 | 626/627 | +1.6 |
Table 15. Attacks on the reconstruction (BackTime; § 5.2.5). SafeTime’s ASR on the base poisons is 0.069; all 216 decoys are flagged. Δ: median clean-MAE change (%).
Is SafeTime practical? (RQ7)
In the main evaluation, SAFETIME lowers the average clean MAE by 8.0% (BACKTIME) and 3.9% (TDBA), most on ELECTRICITY (−30.2%), where poisoning itself raises the clean error: the mean clean MAE of the BACKTIME models is 611 undefended, 434 with SAFETIME, 393 with perfect detection, and 369 when trained on the clean series. It rises by more than 5% on no dataset and victim (Table 17), whereas TIMEGUARD raises the mean by 3.9% and 6.2% (Table 7). It changes by −24.9% to +1.3% on the full adaptive poisons of Table 12. It rises on WEATHER under DEBA-MTS (from 10.12 to 30.34, with 9 false flags) and by 4.7% to 31.6% on four datasets under IFBA, on FEDformer. On the clean series, the mean change per dataset is at most +0.22%, except on WEATHER (+4.40%; Table 16).
| Model | PEMS03 | PEMS04 | PEMS08 | Weather | Electricity |
| FEDformer | +1.64 | −0.28 | +1.40 | −2.60 | −0.46 |
| Autoformer | −0.04 | +1.24 | −0.51 | +0.26 | −3.11 |
| TimesNet | −0.70 | +0.00 | +0.04 | −13.02 | +0.01 |
| Informer | +0.46 | +0.54 | −2.50 | +37.30 | +0.07 |
| PatchTST | +0.10 | +0.00 | +0.01 | +2.19 | −0.10 |
| iTransformer | −0.35 | −0.19 | −1.71 | +2.28 | +2.84 |
| Mean | +0.19 | +0.22 | −0.54 | +4.40 | −0.13 |
Table 16. Cost of false alarms on clean data: change in clean MAE (%; lower is better) of each architecture trained on the clean series after SafeTime, relative to the same architecture trained on the unmodified clean series.
| Dataset | Model | BackTime [11] U | NT | ST | TG | AST | ATG | ST | TG | TDBA [13] U | NT | ST | TG | AST | ATG | ST | TG |
| PEMS03 | FEDformer | 0.949 | 0.141 | 0.122 | 0.123 | +264.4 | +309.7 | −2.4 | +4.1 | 0.666 | 0.325 | 0.282 | 0.747 | +46.6 | +4.0 | −1.3 | +4.5 |
| Autoformer | 0.674 | 0.161 | 0.129 | 0.183 | +96.4 | +89.5 | −5.2 | +1.0 | 0.626 | 0.350 | 0.312 | 0.677 | +34.0 | +1.0 | −3.1 | +3.8 | |
| TimesNet | 0.833 | 0.190 | 0.183 | 0.171 | +95.1 | +99.0 | −7.3 | −3.2 | 0.634 | 0.471 | 0.317 | 0.547 | +20.4 | +0.9 | −7.1 | −2.5 | |
| Informer | 0.441 | 0.319 | 0.222 | 0.228 | +32.1 | +24.9 | −4.8 | −2.7 | 0.555 | 0.494 | 0.386 | 0.565 | +17.9 | −0.7 | −4.3 | −0.5 | |
| PatchTST | 0.826 | 0.154 | 0.146 | 0.148 | +103.0 | +104.3 | −1.3 | +8.1 | 0.613 | 0.319 | 0.254 | 0.327 | +41.4 | +28.7 | −0.5 | +9.9 | |
| iTransformer | 0.997 | 0.125 | 0.171 | 0.353 | +1097.9 | +704.5 | −0.4 | +6.1 | 0.591 | 0.277 | 0.351 | 0.710 | +23.6 | +10.1 | −0.8 | +5.6 | |
| PEMS04 | FEDformer | 0.871 | 0.191 | 0.193 | 0.174 | +155.5 | +192.0 | −1.2 | +3.8 | 0.615 | 0.324 | 0.292 | 0.712 | +35.3 | −1.8 | −0.7 | +3.9 |
| Autoformer | 0.596 | 0.237 | 0.196 | 0.250 | +64.3 | +40.9 | +0.2 | +4.1 | 0.616 | 0.339 | 0.325 | 0.667 | +27.2 | −1.4 | −1.9 | +5.6 | |
| TimesNet | 0.731 | 0.186 | 0.177 | 0.168 | +77.5 | +77.8 | −4.5 | −3.4 | 0.469 | 0.369 | 0.241 | 0.361 | +20.2 | +5.1 | −5.5 | −2.6 | |
| Informer | 0.367 | 0.251 | 0.198 | 0.216 | +30.0 | +19.1 | −2.3 | −0.1 | 0.429 | 0.428 | 0.298 | 0.454 | +16.2 | −2.4 | −2.8 | +1.0 | |
| PatchTST | 0.680 | 0.193 | 0.176 | 0.180 | +74.2 | +73.5 | +0.8 | +8.3 | 0.444 | 0.274 | 0.240 | 0.273 | +26.3 | +21.7 | +0.2 | +9.1 | |
| iTransformer | 0.997 | 0.180 | 0.251 | 0.452 | +965.1 | +582.2 | −0.7 | +5.3 | 0.627 | 0.289 | 0.344 | 0.738 | +24.5 | +8.3 | −0.3 | +5.8 | |
| PEMS08 | FEDformer | 0.925 | 0.151 | 0.167 | 0.138 | +243.4 | +263.8 | +1.1 | +4.4 | 0.600 | 0.330 | 0.278 | 0.745 | +50.2 | +0.8 | +1.4 | +5.3 |
| Autoformer | 0.614 | 0.175 | 0.152 | 0.176 | +90.3 | +73.6 | −0.3 | +5.9 | 0.626 | 0.373 | 0.339 | 0.707 | +34.4 | +0.5 | −0.4 | +7.8 | |
| TimesNet | 0.774 | 0.231 | 0.216 | 0.163 | +82.6 | +90.7 | −2.9 | −0.1 | 0.491 | 0.419 | 0.289 | 0.433 | +20.4 | +3.4 | −4.4 | +1.1 | |
| Informer | 0.349 | 0.305 | 0.225 | 0.249 | +22.5 | +10.4 | −4.6 | −3.7 | 0.435 | 0.452 | 0.322 | 0.447 | +16.3 | −5.2 | −1.9 | −2.2 | |
| PatchTST | 0.821 | 0.299 | 0.212 | 0.175 | +77.3 | +74.2 | +3.9 | +13.1 | 0.503 | 0.309 | 0.268 | 0.354 | +44.0 | +23.9 | +3.3 | +15.8 | |
| iTransformer | 0.995 | 0.140 | 0.202 | 0.561 | +725.8 | +359.1 | −0.3 | +7.4 | 0.620 | 0.279 | 0.330 | 0.765 | +28.7 | +10.0 | −1.8 | +8.9 | |
| WEATHER | FEDformer | 0.992 | 0.043 | 0.044 | 0.704 | +704.4 | +214.3 | −0.8 | +21.0 | 0.619 | 0.256 | 0.288 | 0.788 | +64.6 | +5.5 | −6.3 | +37.9 |
| Autoformer | 0.986 | 0.055 | 0.057 | 0.640 | +299.5 | +130.6 | −5.5 | +10.7 | 0.788 | 0.299 | 0.305 | 0.674 | +50.3 | +1.6 | −10.3 | −3.6 | |
| TimesNet | 0.933 | 0.163 | 0.182 | 0.890 | +205.7 | +10.7 | −3.1 | +6.3 | 0.706 | 0.655 | 0.578 | 0.739 | −19.3 | −29.7 | −9.4 | +4.0 | |
| Informer | 0.375 | 0.398 | 0.278 | 0.281 | +19.5 | +6.2 | −6.3 | −24.1 | 0.596 | 0.578 | 0.500 | 0.645 | −4.0 | −23.3 | −34.6 | −36.0 | |
| PatchTST | 0.998 | 0.039 | 0.038 | 0.646 | +1415.5 | +813.6 | −2.3 | +4.7 | 0.603 | 0.171 | 0.172 | 0.708 | +77.2 | +5.1 | −10.6 | +18.9 | |
| iTransformer | 0.993 | 0.039 | 0.070 | 0.999 | +819.3 | +37.5 | −10.2 | −13.4 | 0.559 | 0.415 | 0.272 | 0.576 | +10.7 | +16.7 | −5.7 | −8.7 | |
| ELECTRICITY | FEDformer | 0.981 | 0.047 | 0.013 | 0.031 | +405.2 | +354.5 | −24.3 | +6.8 | 0.314 | 0.266 | 0.297 | 0.335 | +2.1 | +14.8 | −1.8 | +17.6 |
| Autoformer | 0.993 | 0.029 | 0.035 | 0.527 | +383.9 | +150.0 | −27.1 | −3.4 | 0.350 | 0.258 | 0.297 | 0.368 | +10.3 | +22.9 | −5.9 | +18.8 | |
| TimesNet | 0.902 | 0.014 | 0.004 | 0.084 | +551.2 | +346.5 | −46.9 | +12.5 | 0.285 | 0.251 | 0.285 | 0.274 | +4.6 | +10.9 | +2.8 | +4.6 | |
| Informer | 0.350 | 0.049 | 0.053 | 0.034 | +59.5 | +42.9 | −4.6 | +0.4 | 0.530 | 0.476 | 0.477 | 0.521 | +16.0 | +5.3 | +2.2 | +1.2 | |
| PatchTST | 0.920 | 0.018 | 0.005 | 0.026 | +239.3 | +134.9 | −42.9 | +18.7 | 0.327 | 0.304 | 0.317 | 0.318 | +5.3 | +10.3 | −0.7 | +23.4 | |
| iTransformer | 0.979 | 0.010 | 0.025 | 0.368 | +348.0 | +110.7 | −35.4 | +19.9 | 0.372 | 0.311 | 0.340 | 0.365 | +4.2 | +12.6 | −5.4 | +28.1 | |
| Mean | FEDformer | 0.944 | 0.114 | 0.108 | 0.234 | +354.6 | +266.8 | −5.5 | +8.0 | 0.563 | 0.300 | 0.287 | 0.666 | +39.8 | +4.7 | −1.8 | +13.9 |
| Autoformer | 0.773 | 0.131 | 0.114 | 0.355 | +186.9 | +96.9 | −7.6 | +3.6 | 0.601 | 0.324 | 0.316 | 0.618 | +31.2 | +4.9 | −4.3 | +6.5 | |
| TimesNet | 0.835 | 0.157 | 0.152 | 0.292 | +202.4 | +124.9 | −12.9 | +2.4 | 0.517 | 0.433 | 0.342 | 0.471 | +9.2 | −1.9 | −4.7 | +0.9 | |
| Informer | 0.376 | 0.264 | 0.196 | 0.202 | +32.7 | +20.7 | −5.5 | −6.0 | 0.509 | 0.485 | 0.397 | 0.526 | +12.5 | −5.3 | −8.3 | −7.3 | |
| PatchTST | 0.984 | 0.140 | 0.115 | 0.235 | +381.8 | +240.1 | −4.8 | +10.6 | 0.498 | 0.275 | 0.250 | 0.396 | +38.8 | +18.0 | −1.7 | +15.4 | |
| iTransformer | 0.992 | 0.099 | 0.144 | 0.545 | +791.2 | +358.8 | −9.4 | +5.1 | 0.554 | 0.314 | 0.327 | 0.631 | +18.3 | +11.5 | −2.8 | +7.9 |
Table 17. Results for every cell, and per victim (mean: over the five datasets). A: attack-MAE change (%).
Is SafeTime practical? (RQ7)
SAFETIME runs once per training series on one CPU core of an Intel Xeon Cascade Lake node, with single-threaded numerical libraries and a 5 GB memory allocation, independently of the architecture. On the main series, detection and relabelling took a median of 796, 380, 231, 75, and 785 s on PEMS03, PEMS04, PEMS08, WEATHER, and ELECTRICITY. Every victim is then trained as an undefended model, and inference is unchanged. TIMEGUARD instead acts during training and adds GPU time (NVIDIA A100 or L40S) to every model it protects, a median of 837, 535, 382, 301, and 924 s per model on the same series. The cost therefore depends on how many victims a series trains. With a single victim, SAFETIME’s one-off cost is 1.05 to 4.0 times lower than TIMEGUARD’s overhead; with all six architectures, TIMEGUARD adds 1,805 to 5,542 s per series, 6.3 to 24 times SAFETIME’s.
Discussion and Limitations
Relabelling cost depends on false flags and on how well the remaining channels predict a flagged one. On series with few channels, false flags raise the clean error without restoring the backdoor: SAFETIME flags 8 of the 21 WEATHER channels on its clean series, the largest clean-data cost (+4.40%, Table 16). Relabelling only the detected spans may lower this cost. Residual effects on architectures such as iTransformer, which respond to the triggers even when trained on clean data, reflect the forecaster’s own robustness. An attacker that reverts every flagged channel to the clean series keeps any channel that SAFETIME never flags, at the cost of the others (see Table 12).
Related Work
Backdoor attacks and defences. Backdoors were first demonstrated on image classifiers [9], then extended to other models [10] and to time-series classification [28, 29]. Forecasting attacks [11, 13, 14, 12] differ in the trigger, but all write the target supervision that SAFETIME analyses. Model-side defences need resources our defender lacks: clean data [30, 19, 31], a classifier’s predictions or output classes [17, 32], or, for regression, white-box access and benign data [33]; the failure analysis of Zhang et al. concerns image classifiers [34]. Data-side defences score examples through a model trained on them, by spectral signatures [16, 35], activation clustering [36], or learning speed [18, 37], or test feature–label co-occurrence in text [38]. The closest work, TimeGuard [15], counters the dilution of poisoned signals across channels with channel-wise pools of reliable data; SAFETIME instead tests target supervision before training, and relabels rather than discards.
Repeated patterns and robust learning. Motif discovery finds repeated subsequences, including multichannel ones [39], with significance assessed against a Markov-chain model that does not represent the daily cycle [40].
Nearest-neighbour discord detectors can miss an anomaly that occurs twice, which DAMP [41] is designed to avoid; a backdoor recurs by design. Cyber-physical detectors predict each sensor from the others [42], locate attacked channels by low-rank decomposition [43], or flag deviations from learned normal behaviour [44, 45], all on online measurements, and can be bypassed by false-data injections crafted with knowledge of the system configuration [46]. Trimmed regression [47, 48], robust estimators [49], and outlier removal with worst-case bounds [50] discard points that fit badly or look atypical, whereas a backdoor target is designed to be learned. Randomised smoothing [25], also used in forecasting [26, 27], addresses test-time perturbations.
Is forecasting utility preserved? (RQ6)
Conclusion
SafeTime shifts forecasting-backdoor defence from trigger inspection to target-side analysis. It tests the training targets for the trigger-conditional deviation that a forecaster must learn, against phase-matched natural dynamics, and relabels those that carry it before training. Across attacks, datasets, architectures, and adaptive white-box target diversification, it removes most implanted effect. Target-side supervision is therefore a practical defensive surface for forecasters trained on untrusted histories.
Appendix A: Results per Architecture and per Cell
Throughout the appendix, or Undef. denotes undefended; No-trig. or NT, the undefended no-trigger rate; ST, SAFETIME; TG, TIMEGUARD; or Impl., the implanted effect; Found and False, the attacked and unattacked channels flagged; AST and ATG, the attack MAE with SAFETIME and TIMEGUARD; , the clean-MAE change (%); Ratio, the clean MAE over the undefended model’s. Bold marks the better of ST and TG.
Table 17 reports Table 6 per cell and per victim. Under BACKTIME, SAFETIME has a lower ASR than TIMEGUARD on every architecture. Informer barely responds to the trigger even after poisoning, and iTransformer responds to the BACKTIME trigger even when trained on the clean series, which no relabelling can remove. Table 18 retrains the DEBA-MTS, IFBA, adaptive, and direction poisons on the other architectures: undefended, they implant up to 0.998, and on SAFETIME’s labels every model keeps at most 0.057 except IFBA on iTransformer (0.021 to 0.124). The clean error falls in 46 of the 72 DEBA-MTS, IFBA, and adaptive models and rises by more than 5% in 17, mostly on WEATHER under DEBA-MTS and on PEM508 and Electricity under IFBA. Table 13 reports every sign-changing poison, and Table 2 the cross-channel redundancy on which relabeling relies: 4 of the 21 WEATHER channels and at most 2% of the channels elsewhere fall below .
Appendix B: Stronger-Attacker Results
In Table 22, all 15 stealthier BackTime settings implant 0.318 to 0.984; SafeTime lowers the ASR to at most 0.172, whereas TimeGuard leaves an ASR above 0.4 in four. A single poisoned channel is flagged in all 15 poisons (Table 22), although without the within-channel test of Table 11 only 1 of the 14 in the ablation is flagged. With two or three simultaneous attackers (Table 22), every attacked channel is found and each attacker is left an ASR of at most 0.189.
Table 22 lists the remaining knowledgeable-attacker combinations that implant; on PEMS04, the C R combination is flagged on only 11 of 31 channels. On the other five victims (Table 21), the other Poison stays at an ASR of at most 0.04 under SafeTime, against up to 0.995 under TimeGuard; on iTransformer, whose clean-trained models already respond to the triggers, SafeTime leaves 0.51 on the PEMS03 combination. Under realistic noise (Table 22), SafeTime flags all 107 attacked PEMS03 channels at every level and placement; at , its mean ASR is 0.144 and 0.334, against 0.440 and 0.572 for TimeGuard, whose PEMS03 ASR under BackTime rises from 0.139 to 0.873 as the noise grows.
When BackTime attacks half of the channels, the edge of the minority that the threat model assumes (Section 2.3), SafeTime finds at least 98.8% of them and leaves at most 0.093, except PatchTST on Electricity (1 of 160 found), and less than TimeGuard on average on every dataset (Table 20). TimeGuard leaves 0.432 to 0.969 on Weather for every victim except Informer, 0.468 to 0.842 on Electricity except Informer and PatchTST, and up to 0.475 on the traffic datasets.
| Victim | PEMS03 TG | PEMS03 ST | PEMS04 TG | PEMS04 ST | PEMS08 TG | PEMS08 ST | WEATHER TG | WEATHER ST | ELECTRICITY TG | ELECTRICITY ST |
| FEDformer | .034 | .015 | .020 | .013 | .016 | .009 | .432 | −.003 | .611 | .013 |
| Autoformer | .013 | .001 | .029 | −.005 | .092 | .019 | .923 | .006 | .468 | .007 |
| TimesNet | −.004 | .002 | −.004 | .004 | −.012 | .004 | .807 | .000 | .520 | .000 |
| Informer | .001 | .001 | .000 | .001 | .002 | .001 | .032 | .000 | .005 | −.001 |
| PatchTST | −.001 | .000 | .002 | .002 | .003 | .003 | .466 | .000 | .007 | .949 |
| iTransformer | .059 | .036 | .236 | .045 | .475 | .093 | .969 | .000 | .842 | .015 |
Table 20. Implanted effect left by TimeGuard (TG) and SafeTime (ST) when BackTime attacks 50% of the channels. Bold: the lower of the two, negative effects counted as zero. : SafeTime finds fewer than half of the attacked channels.
Appendix C: Clean-Data Cost and Sensitivity
Table 16 lists the clean-data cost of Section 5.2.6 per model. Table 4 changes each setting of Table 3 in turn: recall stays between 0.996 and 0.999 (0.998 at the defaults), the false flags vary more, most with fewer graph neighbours, and settings that bound minimum counts change no flag. Varying the reconstruction settings keeps every series’ reconstruction error within 9% of its default value, except a minimum of 25 fit steps, which changes two series.
Victim training loss. Table 19 retrains the main FEDformer victims with squared error, the loss of Proposition 1, and with L1. SafeTime leaves at most 0.018 under
Table 19. Victim training loss: FEDformer victims trained with Smooth L1 (the loss of every other result), squared error, and L1 ( standard deviation over training seeds).
BackTime and 0.044 under TDBA, except TDBA on Weather with squared error (0.230), where a clean-trained squared-error model also responds to the trigger (0.648).
References
- [1]I. Lana, J. Del Ser, M. Velez, and E. I. Vlahogianni, “Road traffic forecasting: Recent advances and new challenges,” IEEE Intelligent Transportation Systems Magazine, vol. 10, no. 2, p. 93–109, 2018. [Online]. Available: http://dx.doi.org/10.1109/mits.2018.2806634
- [2]H. Zhou, S. Zhang, J. Peng, S. Zhang, J. Li, H. Xiong, and W. Zhang, “Informer: Beyond efficient transformer for long sequence time-series forecasting,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 12, p. 11106–11115, May 2021. [Online]. Available: http://dx.doi.org/10.1609/aaai.v35i12.17325
- [3]A. N. Desai, M. U. G. Kraemer, S. Bhatia, A. Cori, P. Nouvellet, M. Herringer, E. L. Cohn, M. Carrion, J. S. Brownstein, L. C. Madoff, and B. Lassmann, “Real-time epidemic forecasting: Challenges and opportunities,” Health Security, vol. 17, no. 4, p. 268–275, Aug. 2019. [Online]. Available: http://dx.doi.org/10.1089/hs.2019.0022
- [4]H. Wu, J. Xu, J. Wang, and M. Long, “Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting,” in Advances in Neural Information Processing Systems, vol. 34, 2021, pp. 22 419–22 430. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2021/file/bcc0d400288793e8bdc7c19a8ac0c2b-Paper.pdfarxiv.org/abs/2106.13008
- [5]T. Zhou, Z. Ma, Q. Wen, X. Wang, L. Sun, and R. Jin, “FEDFormer: Frequency enhanced decomposed transformer for long-term series forecasting,” in Proceedings of the 39th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 162. PMLR, 2022, pp. 27 268–27 286. [Online]. Available: https://proceedings.mlr.press/v162/zhou22q.htmlarxiv.org/abs/2201.12740
- [6]H. Wu, T. Hu, Y. Liu, H. Zhou, J. Wang, and M. Long, “TimesNet: Temporal 2d-variation modeling for general time series analysis,” in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=ju_Uqw384Oqarxiv.org/abs/2210.02186
- [7]Y. Nie, N. H. Nguyen, P. Sinthong, and J. Kalagnanam, “A time series is worth 64 words: Long-term forecasting with transformers,” in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=Jbdc0vTOcolarxiv.org/abs/2211.14730
- [8]Y. Liu, T. Hu, H. Zhang, H. Wu, S. Wang, L. Ma, and M. Long, “iTransformer: Inverted transformers are effective for time series forecasting,” in The Twelfth International Conference on Learning Representations, 2024. [Online]. Available: https://openreview.net/forum?id=JePfAI8faharxiv.org/abs/2310.06625
- [9]T. Gu, K. Liu, B. Dolan-Gavitt, and S. Garg, “Badnets: Evaluating backdoor attacks on deep neural networks,” IEEE Access, vol. 7, p. 47230–47244, 2019. [Online]. Available: http://dx.doi.org/10.1109/access.2019.2909068
- [10]Y. Liu, S. Ma, Y. Avery, W.-C. Lee, J. Zhai, W. Wang, and X. Zhang, “Trojaning attack on neural networks,” in Proceedings 2018 Network and Distributed System Security Symposium, ser. NDSS 2018. Internet Society, 2018. [Online]. Available: http://dx.doi.org/10.14722/ndss.2018.23291
- [11]X. Lin, Z. Liu, D. Fu, R. Qiu, and H. Tong, “Backtime: Backdoor attacks on multivariate time series forecasting,” in Advances in Neural Information Processing Systems 37, ser. NeurIPS 2024. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2024, p. 131344–131368. [Online]. Available: http://dx.doi.org/10.48550/arXiv.2407.079017-4174
- [12]G. Li, Y. Yu, G. Zhu, Z. Ma, J. Zhu, and Z. Qin, “IFBA: Frequency-aware backdoor attacks on multivariate time series forecasting via input-aware triggers and frequency-guided scheduling,” IEEE Transactions on Information Forensics and Security, vol. 21, pp. 9277–9290, 2026. [Online]. Available: http://dx.doi.org/10.1109/tifs.2026.3744617
- [13]Z. Liu, X. Liu, S. Xu, Y. Qiao, Y. Zhang, and X. Cai, “Beyond immediate activation: Temporally decoupled backdoor attacks on time series forecasting,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 40, no. 28, p. 23999–24007, Mar. 2026. [Online]. Available: http://dx.doi.org/10.1609/aaai.v40i28.39577
- [14]L. Zhong, Y. Zhou, L. Zhang, and C. Zhu, “Reconstruction-error based data-efficient backdoor attacks for multivariate time series forecasting,” IEEE Signal Processing Letters, vol. 33, pp. 3906–3910, 2026. [Online]. Available: http://dx.doi.org/10.1109/lsp.2026.3736349
- [15]Q. D. Nguyen, S. Liang, Y. Li, F. Huo, and D. Tao, “TimeGuard: Channel-wise pool training for backdoor defense in time series forecasting,” in Proceedings of the 43rd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 306. PMLR, 2026, pp. 92 497–92 540. [Online]. Available: https://proceedings.mlr.press/v306/nguyen26g.htmlarxiv.org/abs/2605.22365
- [16]B. Tran, J. Li, and A. Madry, “Spectral signatures in backdoor attacks,” in Advances in Neural Information Processing Systems, vol. 31, 2018. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2018/file/280cf18baf4311c92aa5a042336587d3-Paper.pdfarxiv.org/abs/1811.00636
- [17]Y. Gao, C. Xu, D. Wang, S. Chen, D. C. Ranasinghe, and S. Nepal, “Strip: a defence against trojan attacks on deep neural networks,” in Proceedings of the 35th Annual Computer Security Applications Conference, ser. ACSAC ’19. ACM, Dec. 2019, p. 113–125. [Online]. Available: http://dx.doi.org/10.1145/3359789.3359790
- [18]Y. Li, X. Lyu, N. Koren, L. Lyu, B. Li, and X. Ma, “Anti-backdoor learning: Training clean models on poisoned data,” in Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. Vaughan, Eds., vol. 34. Curran Associates, Inc., 2021, pp. 14 900–14 912. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2021/file/7d38b1e9b7d93df34f5e0e212a729a93c-Paper.pdfarxiv.org/abs/2110.11571
- [19]K. Liu, B. Dolan-Gavitt, and S. Garg, Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks. Springer International Publishing, 2018, p. 273–294. [Online]. Available: http://dx.doi.org/10.1007/978-3-030-00470-5_13
- [20]C. Song, Y. Lin, S. Guo, and H. Wan, “Spatial-temporal synchronous graph convolutional networks: A new framework for spatial-temporal network data forecasting,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 01, pp. 914–921, Apr. 2020. [Online]. Available: http://dx.doi.org/10.1609/aaai.v34i01.5438
- [21]Max Planck Institute for Biogeochemistry, “Wetterdaten (weather data),” https://www.bgc-jena.mpg.de/wetter/, accessed 15 November 2026.
- [22]A. Trindade, “ElectricityLoadDiagrams20112014,” 2015. [Online]. Available: https://archive.ics.uci.edu/dataset/321DOI
- [23]S. Guo, Y. Lin, N. Feng, C. Song, and H. Wan, “Attention based spatial-temporal graph convolutional networks for traffic flow forecasting,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, pp. 922–929, 2019.DOI
- [24]G. Lai, W.-C. Chang, Y. Yang, and H. Liu, “Modeling long- and short-term temporal patterns with deep neural networks,” in The 41st International ACM SIGIR Conference on Research and Development in Information Retrieval. ACM, 2018, pp. 95–104.arxiv.org/abs/1703.07015
- [25]J. Cohen, E. Rosenfeld, and Z. Kolter, “Certified adversarial robustness via randomized smoothing,” in Proceedings of the 36th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 97. PMLR, 2019, pp. 1310–1320. [Online]. Available: https://proceedings.mlr.press/v97/cohen19c.htmlarxiv.org/abs/1902.02918
- [26]T. Yoon, Y. Park, E. K. Ryu, and Y. Wang, “Robust probabilistic time series forecasting,” in Proceedings of The 25th International Conference on Artificial Intelligence and Statistics, ser. Proceedings of Machine Learning Research, vol. 151. PMLR, 2022, pp. 1336–1358. [Online]. Available: https://proceedings.mlr.press/v151/yoon22a.htmlarxiv.org/abs/2202.11910
- [27]L. Liu, Y. Park, T. N. Hoang, H. Hasson, and J. Huan, “Robust multivariate time-series forecasting: Adversarial attacks and defense mechanisms,” in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=ctmBS8iITaarxiv.org/abs/2207.09572
- [28]D. Ding, M. Zhang, Y. Huang, X. Pan, F. Feng, E. Jiang, and M. Yang, “Towards backdoor attack on deep learning based time series classification,” in 2022 IEEE 38th International Conference on Data Engineering (ICDE). IEEE, May 2022, p. 1274–1287. [Online]. Available: http://dx.doi.org/10.1109/icde53745.2022.002100
- [29]Y. Jiang, X. Ma, S. M. Erfani, and J. Bailey, “Backdoor attacks on time series: A generative approach,” in 2023 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML). IEEE, Feb. 2023, p. 392–403. [Online]. Available: http://dx.doi.org/10.1109/satml54575.2023.00034
- [30]B. Wang, Y. Yao, S. Shan, H. Li, B. Viswanath, H. Zheng, and B. Y. Zhao, “Neural cleanse: Identifying and mitigating backdoor attacks in neural networks,” in 2019 IEEE Symposium on Security and Privacy (SP). IEEE, May 2019, p. 707–723. [Online]. Available: http://dx.doi.org/10.1109/sp.2019.00031
- [31]R. Zhu, D. Tang, S. Tang, X. Wang, and H. Tang, “Selective amnesia: On efficient, high-fidelity and blind suppression of backdoor effects in trojaned machine learning models,” in 2023 IEEE Symposium on Security and Privacy (SP). IEEE, May 2023, p. 1–19. [Online]. Available: http://dx.doi.org/10.1109/sp46215.2023.10351028
- [32]H. Wang, Z. Xiang, D. J. Miller, and G. Kesidis, “Mm-bd: Post-training detection of backdoor attacks with arbitrary backdoor pattern types using a maximum margin statistic,” in 2024 IEEE Symposium on Security and Privacy (SP). IEEE, May 2024, p. 1994–2012. [Online]. Available: http://dx.doi.org/10.1109/sp54263.2024.00015
- [33]L. Du, Y. Liu, J. Jia, and G. Lan, “Defending deep regression models against backdoor attacks,” 2024. [Online]. Available: https://arxiv.org/abs/2411.04811
- [34]K. Zhang, S. Cheng, G. Shen, G. Tao, S. An, A. Makur, S. Ma, and X. Zhang, “Exploring the orthogonality and linearity of backdoor attacks,” in 2024 IEEE Symposium on Security and Privacy (SP). IEEE, May 2024, p. 2105–2123. [Online]. Available: http://dx.doi.org/10.1109/sp54263.2024.00225
- [35]J. Hayase, W. Kong, R. Somaini, and S. Oh, “SPECTRE: Defending against backdoor attacks using robust statistics,” in Proceedings of the 38th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, M. Meila and T. Zhang, Eds., vol. 139. PMLR, 2021, pp. 4129–4139. [Online]. Available: https://proceedings.mlr.press/v139/hayase21a.htmlarxiv.org/abs/2104.11315
- [36]B. Chen, W. Carvalho, N. Baracaldo, H. Ludwig, B. Edwards, T. Lee, I. Molloy, and B. Srivastava, “Detecting backdoor attacks on deep neural networks by activation clustering,” in Proceedings of the AAAI Workshop on Artificial Intelligence Safety 2019 (SafeAI 2019), co-located with the Thirty-Third AAAI Conference on Artificial Intelligence (AAAI 2019), ser. CEUR Workshop Proceedings, vol. 2301. CEUR-WS.org, 2019. [Online]. Available: https://ceur-ws.org/Vol-2301/paper_18.pdf
- [37]Y. Jiang, X. Ma, S. M. Erfani, Y. Li, and J. Bailey, “End-to-end anti-backdoor learning on images and time series,” 2024. [Online]. Available: https://arxiv.org/abs/2401.03215
- [38]X. He, Q. Xu, J. Wang, B. Rubinstein, and T. Cohn, “Mitigating backdoor poisoning attacks through the lens of spurious correlation,” in Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2023, p. 953–967. [Online]. Available: http://dx.doi.org/10.18653/v1/2023.emnlp-main.60
- [39]C.-C. M. Yeh, N. Kavantzas, and E. Keogh, “Matrix profile vi: Meaningful multidimensional motif discovery,” in 2017 IEEE International Conference on Data Mining (ICDM). IEEE, Nov. 2017, p. 565–574. [Online]. Available: http://dx.doi.org/10.1109/ICDM.2017.66
- [40]N. C. Castro and P. J. Azevedo, “Significant motifs in time series,” Statistical Analysis and Data Mining: The ASA Data Science Journal, vol. 5, no. 1, p. 35–53, Feb. 2012. [Online]. Available: http://dx.doi.org/10.1002/sam.11134
- [41]Y. Lu, R. Wu, A. Mueen, M. A. Zuluaga, and E. Keogh, “Matrix profile xxiv: Scaling time series anomaly detection to trillions of datapoints and ultra-fast arriving data streams,” in Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, ser. KDD ’22. ACM, Aug. 2022, p. 1173–1182. [Online]. Available: http://dx.doi.org/10.1145/3534678.3539271
- [42]A. Ghafouri, Y. Vorobeychik, and X. Koutsoukos, “Adversarial regression for detecting attacks in cyber-physical systems,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, ser. IJCAI-2018. International Joint Conferences on Artificial Intelligence Organization, Jul. 2018, p. 3769–3775. [Online]. Available: http://dx.doi.org/10.24963/ijcai.2018/524
- [43]P. Gao, M. Wang, J. H. Chow, S. G. Ghiocel, B. Fardanesh, G. Stefopoulos, and M. P. Razanousky, “Identification of successive “unobservable” cyber data attacks in power systems through matrix decomposition,” IEEE Transactions on Signal Processing, vol. 64, no. 21, p. 5557–5570, Nov. 2016. [Online]. Available: http://dx.doi.org/10.1109/TSP.2016.2597131
- [44]J. Audibert, P. Michiardi, F. Guyard, S. Marti, and M. A. Zuluaga, “USAD: Unsupervised anomaly detection on multivariate time series,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, ser. KDD ’20. ACM, Aug. 2020, p. 3395–3404. [Online]. Available: http://dx.doi.org/10.1145/3394486.3403392
- [45]A. Deng and B. Hooi, “Graph neural network-based anomaly detection in multivariate time series,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 5, p. 4027–4035, May 2021. [Online]. Available: http://dx.doi.org/10.1609/aaai.v35i5.16523
- [46]Y. Liu, P. Ning, and M. K. Reiter, “False data injection attacks against state estimation in electric power grids,” in Proceedings of the 16th ACM conference on Computer and communications security, ser. CCS ’09. ACM, Nov. 2009, p. 21–32. [Online]. Available: http://dx.doi.org/10.1145/1653662.1653666
- [47]M. Jagielski, A. Opres, B. Biggio, C. Liu, C. Nita-Rotaru, and B. Li, “Manipulating machine learning: Poisoning attacks and countermeasures for regression learning,” in 2018 IEEE Symposium on Security and Privacy (SP). IEEE, May 2018, p. 19–35. [Online]. Available: http://dx.doi.org/10.1109/sp.2018.00057
- [48]J. Jiao, Z. Tang, P. Zhang, M. Yue, and J. Yan, “Cyberattack-resilient load forecasting with adaptive robust regression,” International Journal of Forecasting, vol. 38, no. 3, p. 910–919, Jul. 2022. [Online]. Available: http://dx.doi.org/10.1016/j.ijforecast.2021.06.009
- [49]P. J. Rousseeuw, “Least median of squares regression,” Journal of the American Statistical Association, vol. 79, no. 388, pp. 871–880, Dec. 1984. [Online]. Available: http://dx.doi.org/10.1080/01621459.1984.10477105
- [50]J. Steinhardt, P. W. Koh, and P. S. Liang, “Certified defenses for data poisoning attacks,” in Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Eds., vol. 30. Curran Associates, Inc., 2017. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2017/file/9d7311ba459f9e45ed746755a32dcd11-Paper.pdfarxiv.org/abs/1706.03691
Machine contribution statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.


