Skip to content

Menu

WorksComputer Science

The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_g288u5zf. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

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. XX: a history ending with the trigger (T=1T=1, 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 X∈RN×CX \in\mathbb{R}^{N \times C} denote a multivariate series with NN time steps and CC channels. We write X[a:b]X[a:b] for the rows with time indices a,…,b−1a,\ldots,b-1. A forecaster fθ:RL×C→RH×Cf_\theta: \mathbb{R}^{L \times C} \to\mathbb{R}^{H \times C} maps a history window xt=X[t−L:t]\mathbf{x}_t = X[t-L:t] to a prediction of the following HH steps, whose target is yt=X[t:t+H]\mathbf{y}_t = X[t:t+H]. Training minimises the average forecasting loss over all windows of the training series,

min⁡θ1∣O∣∑t∈Oℓ(fθ(xt),yt),(1)\min_\theta\frac{1}{|\mathcal{O}|}\sum_{t\in\mathcal{O}} \ell\left(f_\theta(\mathbf{x}_t),\mathbf{y}_t\right), \tag*{(1)}

where O\mathcal{O} is the set of window origins and ℓ\ell 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 kk steps enters L+H+k−1L+H+k-1 training windows. Throughout, dd denotes the number of steps per day. The phase of time tt is its position t mod dt \bmod d in the daily cycle.

Trigger–Target Poisoning

A forecasting backdoor associates a trigger in history XX with an attacker-chosen forecast. With Y0Y_0 the clean target and T∈{0,1}T\in\{0,1\} indicating, for analysis only, whether XX ends with a trigger, poisoned training windows satisfy

Y=Y0+TΔ,(2)Y=Y_0+T\Delta, \tag*{(2)}

where Δ\Delta is the malicious deviation induced by the modifications of (3), including on overlapping windows; the attack makes f(X,1)f(X,1) follow it while preserving f(X,0)f(X,0).

Concretely, the attacker selects channels S⊆{1,…,C}\mathcal{S}\subseteq\{1,\ldots,C\}, poisoning times Tatk\mathcal{T}_{\mathrm{atk}}, trigger length ℓg\ell_g, and target patterns pc∈Rℓp\mathbf{p}_c\in\mathbb{R}^{\ell_p}, and for each τ∈Tatk\tau\in\mathcal{T}_{\mathrm{atk}} and c∈Sc\in\mathcal{S} writes

X[τ:τ+ℓg,c]←gτ,c,X[sτ,c:sτ,c+ℓp,c]←pc+aτ,c1,(3)\begin{aligned} X[\tau:\tau+\ell_g,c] &\gets g_{\tau,c},\\ X[s_{\tau,c}:s_{\tau,c}+\ell_p,c] &\gets\mathbf{p}_c+a_{\tau,c}\mathbf{1}, \tag*{(3)} \end{aligned}

where sτ,c=τ+ℓg+δτ,cs_{\tau,c}=\tau+\ell_g+\delta_{\tau,c}, δτ,c≥0\delta_{\tau,c}\geq0 is the activation delay, and aτ,ca_{\tau,c} anchors the target to the local series level; Δ\Delta 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 δτ,c=0\delta_{\tau,c}=0. TDBA [13] samples δτ,c∈[0,H−ℓp]\delta_{\tau,c}\in[0,H-\ell_p] 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 dd. 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 f(X,T)f(X,T) trained on the poisoned distribution of Eq. (2) to minimise R(f)=E∥Y−f(X,T)∥2\mathcal{R}(f)=\mathbb{E}\lVert Y-f(X,T)\rVert^2. 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, f∗(X,1)≠E[Y0∣X,T=1]f^*(X,1)\ne\mathbb{E}[Y_0\mid X,T=1].

Proposition 1 (Trigger-conditional label deviation under squared error). Assume that the trigger indicator is determined by the history, T=ϕ(X)T=\phi(X) for a measurable ϕ\phi, that Pr⁡(T=1)>0\Pr(T=1)>0, E∥Y0∥2<∞\mathbb{E}\lVert Y_0\rVert^2<\infty, and E∥Δ∥2<∞\mathbb{E}\lVert\Delta\rVert^2<\infty. Every minimiser of R\mathcal{R} over measurable forecasters satisfies, almost surely on {T=1}\{T=1\},

f∗(X,1)−E[Y0∣X,T=1]=E[Δ∣X,T=1].(4)f^*(X,1)-\mathbb{E}[Y_0\mid X,T=1]=\mathbb{E}[\Delta\mid X,T=1]. \tag*{(4)}

Consequently, a conditional-mean backdoor exists only if the trigger-conditional label deviation E[Δ∣X,T=1]\mathbb{E}[\Delta\mid X,T=1] is nonzero on a set of triggered inputs of positive probability.

Proof. Because T=ϕ(X)T=\phi(X), a measurable function of (X,T)(X,T) 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, f∗(X,T)=E[Y∣X,T]f^*(X,T)=\mathbb{E}[Y\mid X,T] almost surely. On {T=1}\{T=1\}, Eq. (2) gives Y=Y0+ΔY=Y_0+\Delta. Linearity of conditional expectation yields f∗(X,1)=E[Y0∣X,T=1]+E[Δ∣X,T=1]f^*(X,1)=\mathbb{E}[Y_0\mid X,T=1]+\mathbb{E}[\Delta\mid X,T=1], which proves Eq. (4). If the conditional deviation vanishes almost surely on a set of triggered inputs, then f∗f^* 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 Δi=μ(Xi)+εi\Delta_i=\mu(X_i)+\varepsilon_i with E[εi∣Xi,T=1]=0\mathbb{E}[\varepsilon_i\mid X_i,T=1]=0 for poisoning event ii, the conditional-mean forecaster learns the shared component μ\mu, which may be a level shift, a family of shapes, or a context-dependent response, and averages away εi\varepsilon_i. The attacker may diversify individual targets but cannot remove μ\mu 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 nn 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 TT nor Y0Y_0. 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.

DatasetAttackWithin a channel: TriggerWithin a channel: TargetWithin a channel: ShiftedWithin a channel: DailyAcross channels: TargetAcross channels: ShiftedAcross channels: Poisoned
PEMS03BACKTIME [11]0.992 [0.787, 1.000]1.0000.000 [0.000, 0.001]0.225 [0.216, 0.237]1.0000.100 [0.094, 0.110]0.476 [0.407, 0.528]
TDBA [13]1.0001.0000.0000.2401.0000.0460.065
PEMS04BACKTIME0.955 [0.746, 1.000]1.0000.000 [−0.001, 0.000]0.199 [0.190, 0.203]1.0000.106 [0.102, 0.113]0.345 [0.309, 0.406]
TDBA0.9941.0000.0000.2001.0000.0720.073
PEMS08BACKTIME0.993 [0.526, 1.000]1.0000.000 [0.000, 0.002]0.211 [0.196, 0.220]1.0000.155 [0.146, 0.162]0.410 [0.343, 0.463]
TDBA1.0001.0000.0010.1931.0000.0760.079
WEATHERBACKTIME0.978 [0.586, 1.000]1.0000.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]
TDBA0.8111.0000.0030.3651.000−0.052−0.004
ELECTRICITYBACKTIME0.780 [0.407, 0.993]1.0000.152 [0.068, 0.690]0.908 [0.719, 0.978]1.0000.279 [0.174, 0.437]0.931 [0.756, 0.991]
TDBA0.6191.0000.2050.9391.0000.2100.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 (R2R^2) 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 R2=0.5R^2 = 0.5, 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.

DatasetChannelsOther channels: MedianOther channels: 10th pct.Other channels: ≥ 0.9Other channels: ≥ 0.5Profile: Median
PEMS03 [20]3580.9840.93894%100%0.802
PEMS04 [20]3070.9460.81075%99%0.757
PEMS08 [20]1700.9380.81375%98%0.777
WEATHER [21]210.9990.24081%81%0.080
ELECTRICITY [22]3210.9270.78567%98%0.685

Table 2. Held-out R2R^2 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 B\mathcal{B} be a set of candidate event times, and let uc(b)\mathbf{u}_c(b) denote a normalised profile of channel cc around b∈Bb \in\mathcal{B} (§ 4.2.1). Given a normalised template q\mathbf{q}, the observed recurrence of channel cc is its mean match with the template,

Ac(B,q)=1∣B∣∑b∈B⟨uc(b),q⟩(5)A_c(\mathcal{B},\mathbf{q}) = \frac{1}{|\mathcal{B}|}\sum_{b\in\mathcal{B}}\langle\mathbf{u}_c(b),\mathbf{q}\rangle \tag*{(5)}

Because periodicity and natural correlation also produce recurrence (§ 3.2), the relevant quantity is recurrence in excess of phase-matched behaviour. Let Sd(B)\mathcal{S}_d(\mathcal{B}) 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

Γc=Ac(B,q)−ESd[Ac(Sd(B),q)].(6)\Gamma_c = A_c(\mathcal{B},\mathbf{q})-\mathbb{E}_{\mathcal{S}_d}\left[A_c(\mathcal{S}_d(\mathcal{B}),\mathbf{q})\right]. \tag*{(6)}

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 ηc,t\eta_{c,t} be the first difference of channel cc at time tt, standardised by the channel’s mean and standard deviation. For a set of channels mm with ∣m∣≥2|m| \ge2, the co-movement score is the mean pairwise product of the standardised changes,

σt(m)=(∑c∈mηc,t)2−∑c∈mηc,t2∣m∣(∣m∣−1),(7)\sigma_t(m) = \frac{\left(\sum_{c\in m}\eta_{c,t}\right)^2-\sum_{c\in m}\eta_{c,t}^2}{|m|(|m|-1)}, \tag*{(7)}

and for a single channel it is the change energy ηc,t2\eta_{c,t}^2. Scores are standardised at each phase t mod dt \bmod d by their median and median absolute deviation (MAD). Candidate moments, termed bursts, are selected greedily in decreasing order of standardised score above Φ−1(1−α)\Phi^{-1}(1-\alpha), where Φ−1\Phi^{-1} is the standard normal quantile function, each at least L+HL+H 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 K=10K=10 channels whose first differences correlate most positively with its own, with negative correlations set to zero. Spectral clustering (kk-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 KK 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 Φ−1(1−α/2)\Phi^{-1}(1-\alpha/2) 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 KK 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 Φ−1(1−α)\Phi^{-1}(1-\alpha) 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 uc(b)u_c(b) of channel cc at burst bb contains the L+HL+H samples starting ⌊(L+H)/2⌋\lfloor(L+H)/2\rfloor steps before bb, 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 M\mathcal{M}, 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 X∈RN×CX \in\mathbb{R}^{N \times C}; LL, HH, dd; level α\alpha

Ensure: relabelled training targets

  1. M←\mathcal{M} \leftarrow correlated and co-extreme groups ▷ §4.2.1

  2. κ←Φ−1(1−α2C∣M∣)\kappa\leftarrow\Phi^{-1}\left(1-\frac{\alpha}{2C|\mathcal{M}|}\right); κs←Φ−1(1−α2C)\kappa_s \leftarrow\Phi^{-1}\left(1-\frac{\alpha}{2C}\right); G←∅\mathcal{G} \leftarrow\varnothing

  3. for m∈Mm \in\mathcal{M} with ≥3\ge3 bursts, each view do

  4. G←G∪REFINE⁡({c:zc(m)>κ})\mathcal{G} \leftarrow\mathcal{G} \cup\operatorname{REFINE}(\{c : z_c(m) > \kappa\}) ▷ §4.2.2, §4.2.3

  5. end for

  6. W←{c∉G:zc(rc)>κs}\mathcal{W} \leftarrow\{c \notin\mathcal{G} : z_c(r_c) > \kappa_s\}; D←G∪W\mathcal{D} \leftarrow\mathcal{G} \cup\mathcal{W}; mark spans

  7. Dconf←\mathcal{D}_{\mathrm{conf}} \leftarrow residual-confirmed members of D\mathcal{D} ▷ §4.2.4

  8. F←Dconf∪\mathcal{F} \leftarrow\mathcal{D}_{\mathrm{conf}} \cup channels added by expansion

  9. for c∈Fc \in\mathcal{F} do ▷ §4.2.5

  10. replace all targets of cc by Eq. (8), fitted outside its spans

  11. end for

  12. 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 mm with at least three bursts B\mathcal{B}, the template q\mathbf{q} is the normalised mean, over bursts, of the group’s average profile, and every channel cc receives the match AcA_c 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 AcA_c. The observed value minus the draws’ mean, divided by their standard deviation, gives zc0z_c^0, the standardised estimate of Γc\Gamma_c: 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 rcr_c 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, zc=(zc0−med⁡(z0))/(1.4826MAD⁡(z0))z_c = (z_c^0 - \operatorname{med}(z^0))/(1.4826\operatorname{MAD}(z^0)), 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 C∣M∣C|\mathcal{M}| channel–group pairs in each of two views, so a channel is flagged by a group when zc>κ=Φ−1(1−α/(2C∣M∣))z_c > \kappa= \Phi^{-1}(1-\alpha/(2C|\mathcal{M}|)), and a channel tested alone when its statistic exceeds κs=Φ−1(1−α/(2C))\kappa_s = \Phi^{-1}(1-\alpha/(2C)). Counting unstable groups in ∣M∣|\mathcal{M}| makes the allocation conservative. A group that flags at least one channel is a flagged group. Each of the two test families allocates α\alpha under a Gaussian approximation, so detection has nominal level 2α2\alpha; 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 κ\kappa. Refinement never applies a less stringent threshold.

Detections and event localisation. The channels flagged by group tests, G\mathcal{G}, and by the within-channel test, W\mathcal{W}, form the detected set D=G∪W\mathcal{D} = \mathcal{G} \cup\mathcal{W}. 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 1−α/21-\alpha/2 quantile across windows; for a channel flagged alone, the reference is the 1−α1-\alpha quantile over five random unflagged channels. Windows above either reference are selected H/2H/2 steps apart, each marking a span of the window plus H/2H/2 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 cc, the residual ec,te_{c,t} is the standardised channel minus a ridge regression on all channels except cc, the detected set D\mathcal{D}, and the KK channels whose first differences correlate most with cc, 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 Φ−1(1−α/2)\Phi^{-1}(1-\alpha/2) robust standard deviations. For bursts B\mathcal{B}, the residual profiles of cc are the windows of L+HL+H residual samples around each burst, without the burst sample, centred and scaled to unit norm; the residual recurrence Rc(B)R_c(\mathcal{B}) is their mean pairwise correlation, standardised against 200 whole-day-shift draws to zcr(B)z_c^r(\mathcal{B}). 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 zcr>2.0z_c^r>2.0, 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 Dconf\mathcal{D}_{\mathrm{conf}} contains the channels kept by either rule.

Expansion. A channel outside D\mathcal{D}, called unflagged, may still carry a flagged group’s planted component. For each flagged group mm, 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 zcx(m)z_c^x(m). A channel is added, with the spans of the group that added it, when max⁡mzcx(m)>Φ−1(1−α/(nung))\max_m z_c^x(m)>\Phi^{-1}(1-\alpha/(n_u n_g)), where nun_u unflagged channels and ngn_g flagged groups are searched in this single residual view. The final flagged set F\mathcal{F} is Dconf\mathcal{D}_{\mathrm{conf}} plus the added channels. Expansion is a third Bonferroni family, so F\mathcal{F} has nominal level 3α3\alpha, against 2α2\alpha for D\mathcal{D}; 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 cc by a ridge regression on the unflagged channels at the same time step,

x^c,t=βc,0+∑j∉Fβc,jxj,t,(8)\hat{x}_{c,t}=\beta_{c,0}+\sum_{j\notin\mathcal{F}}\beta_{c,j}x_{j,t}, \tag*{(8)}

where xj,tx_{j,t} is the received value of channel jj at time tt, 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 Φ−1(1−α/2)\Phi^{-1}(1-\alpha/2) 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 tt, the target of flagged channel cc becomes (x^c,t,…,x^c,t+H−1)(\hat{x}_{c,t},\ldots,\hat{x}_{c,t+H-1}), while the history xt\mathbf{x}_t 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 H=12H=12 steps from L=12L=12. 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 10−410^{-4}, 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.

AttackDatasetFEDformer IIFEDformer UUFEDformer II ST↓ST\downarrowFEDformer ASR↓ASR\downarrowAutoformer IIAutoformer UUAutoformer II ST↓ST\downarrowAutoformer ASR↓ASR\downarrowTimesNet IITimesNet UUTimesNet II ST↓ST\downarrowTimesNet ASR↓ASR\downarrowInformer IIInformer UUInformer II ST↓ST\downarrowInformer ASR↓ASR\downarrowPatchTST IIPatchTST UUPatchTST II ST↓ST\downarrowPatchTST ASR↓ASR\downarrowiTransformer IIiTransformer UUiTransformer II ST↓ST\downarrowiTransformer ASR↓ASR\downarrow
DEBA-MTSPEMS03.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
IFBAPEMS03.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
AdaptivePEMS03.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
DirectionPEMS03.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
Directionf^{f}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 (ff: 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

SettingValue
Nominal level
level α\alpha10−310^{-3}
Computational budget (larger values reduce sampling noise)
reference draws (tests; reversion)200; 50
refinement rounds; trimming fits10; 20
kk-means restarts; random groups10; 5
ridge penalty candidates (GCV)33, log-spaced
co-extreme eigenvectors15
ridge penalty (co-extreme; residual)10−3N10^{-3}N; 10−2×10^{-2}\times fit steps
Minimum counts (for a statistic to be defined)
bursts per test3
channels for the cross-channel reference10 (within-channel: 3)
fit steps outside spans50
Fixed design constants
graph links KK; maximum communities10; 15
confirmation cut on zcz^c2.0
minimum group size2
residual regressors excludecc, D\mathcal{D}, KK neighbours
sentinel guard (training)3×3\times 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)ValueFound↑\uparrowAll found↑\uparrowFalse↓\downarrowFalse clean↓\downarrow
SafeTime–2,7593512416
level α\alpha (10−310^{-3})10−410^{-4}2,759358838
10−210^{-2}2,7543514428
1002,7613613446
4002,7613511854
null draws (tests) (200)252,7563511816
1002,7623613316
refinement rounds (10)52,7563511442
202,7613512416
graph links KK (10)52,7603624115
202,7633712610
max. communities (15)102,7633712318
252,7603611436
kk-means restarts (10)52,7613512321
202,7623613628
five count settings*either2,7593512416
co-ext. eigenvectors (15)82,7623610717
302,7603610920
co-ext. ridge (×10−3N\times10^{-3}N) (1)0.52,7613511314
22,7623610516
residual neighbours (10)52,7593511915
202,7593515912
residual null draws (200)1002,7603514742
4002,7593512141
residual ridge (×10−2\times10^{-2}) (1)0.52,7593512217
22,7593512542
confirmation cut (2.0)1.02,7593513945
4.02,759358313

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 II, 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.

DatasetUndefendedSafeTime
Found↑\uparrowFalse↓\downarrowASR↓\downarrowI↓I\downarrowAttack MAE↑\uparrowASR↓\downarrowI↓I\downarrowAttack MAE↑\uparrow
DEBA-MTS [14]PEMS03107/10700.9250.79510.90.144−0.00137.2
PEMS0492/9200.8660.60019.20.2550.03041.6
PEMS0851/5190.9240.77911.60.1500.00136.9
Weather6/691.0000.9893.90.0150.00285.4
Electricity96/96120.9990.9981680.0030.0013436
IFBA [12]PEMS03108/10800.9150.63914.10.2810.03444.2
PEMS0492/9300.8760.57719.50.3090.05155.9
PEMS0851/5100.9190.65414.20.3380.03157.4
Weather7/700.9990.9616.40.039−0.00192.8
Electricity97/9720.9250.91118470.0980.0285198

Table 5. DEBA-MTS and IFBA. Found, false: attacked and unattacked channels flagged. II: implanted effect. Attack MAE: attack MAE.

AttackDatasetASR↓ Undef.ASR↓ No-trig.ASR↓ STASR↓ TGAttack MAE↑ Undef.Attack MAE↑ STAttack MAE↑ TGClean MAE↓ Undef.Clean MAE↓ STClean MAE↓ TGClean ∆MAE (%)↓ STClean ∆MAE (%)↓ TG
BACKTIMEPEMS030.787±0.0080.1820.162±0.0070.201±0.00717.539.137.519.118.419.4−3.6±0.3+2.2±0.4
PEMS040.707±0.0050.2060.198±0.0040.240±0.00924.747.644.423.723.424.3−1.3±0.6+3.0±1.0
PEMS080.746±0.0090.2170.196±0.0020.244±0.00821.643.439.920.820.621.6−0.5±0.8+4.5±1.7
WEATHER0.880±0.0170.1230.112±0.0040.692±0.01231.097.750.317.016.116.2−4.7±4.8+0.9±2.5
ELECTRICITY0.854±0.0190.0280.023±0.0010.178±0.093150550683527611434662−30.2±1.1+9.2±2.0
All0.795±0.0090.1510.138±0.0010.311±0.020––––––−8.0±1.0+3.9±0.7
TDBAPEMS030.614±0.0140.3730.317±0.0090.595±0.01321.427.822.919.018.419.6−2.9±0.4+3.5±0.3
PEMS040.533±0.0170.3370.290±0.0060.534±0.00630.337.731.923.422.924.2−1.8±0.4+3.8±0.0
PEMS080.546±0.0260.3600.304±0.0050.575±0.00726.234.227.520.620.421.7−0.6±0.8+6.1±0.6
WEATHER0.645±0.0200.3950.352±0.0160.688±0.01051.057.545.319.715.717.5−12.8±3.1+2.1±5.7
ELECTRICITY0.363±0.0070.3110.335±0.0060.363±0.005168818001906416412473−1.5±1.7+15.6±1.4
All0.540±0.0030.3550.320±0.0050.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.

ModelBACKTIME [11] ASR↓BACKTIME [11] Impl.↓BACKTIME [11] ∆MAE↓TDBA [13] ASR↓TDBA [13] Impl.↓TDBA [13] ∆MAE↓
Undefended0.795+0.644–0.540+0.185–
SAFETIME0.138+0.013−8.00.320+0.030−3.9
Perfect detection0.132+0.011−9.80.307+0.022−4.5
Clean-trained0.230+0.115−10.70.489+0.207−6.0

Table 8. Residual attack effect. Impl.: ASR minus the model’s own no-trigger rate. ∆MAE: clean-MAE change (%).

DatasetGoalFeedbackChannels / timingFoundFalseUndef.SAFETIMEUndef.SAFETIMEUndef.SAFETIMERemovalΔMAE
PEMS03fixedyesall107/10710.7980.01111.738.216.216.098.6−0.9
outcomenoall107/10710.7480.00512.038.016.316.099.4−1.8
outcomeyesall107/10710.7250.00312.236.716.316.099.6−1.4
directionnoall107/10710.8940.01714.437.915.916.098.1+0.2
directionyesall107/10710.8700.01815.938.016.016.098.0−0.3
PEMS04fixedyesall92/9200.6620.01418.343.721.121.197.9−0.3
outcomenoall92/9200.6140.00618.443.521.221.299.1+0.2
outcomeyesall92/9200.6060.00419.043.521.121.299.3+0.3
PEMS08fixedyesall51/5160.756−0.00013.240.717.617.8100.0+1.3
outcomenoall51/5110.695−0.00612.739.617.817.9100.9+1.0
outcomeyesall51/5110.699−0.00813.239.317.717.9101.2+1.1
WEATHERfixedyesall6/620.9430.00212.390.810.410.399.8−1.7
outcomenoall6/620.9320.00513.093.010.59.799.5−7.3
outcomeyesall6/620.9290.00316.296.09.99.299.7−6.8
ELECTRICITYfixedyesall95/9690.9360.008944422952939799.1−24.9
outcomenoall95/9670.9460.015922421247141098.4−12.9
outcomeyesall95/9660.9380.009996425949239499.0−20.0
directionnoall95/9680.9370.0071267417043539999.2−8.3
directionyesall95/9670.9320.0071287418143439599.2−8.9
fixedyesdrop0/130.5420.495967721081524014028.7+0.2
outcomeyesdrop0/120.5650.55993823965233983971.0−0.3
PEMS03outcomenoper-channel offset, shared trig.88/10710.0480.03733.234.216.416.3–−0.5
outcomenorandom per event, varied trig.51/10710.0450.04434.434.916.416.4–0.0
fixednorandom per event, varied trig.60/10710.0390.03935.536.416.516.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. II: implanted effect. Removal: 1−Iafter/Ibefore1 - I_{\mathrm{after}}/I_{\mathrm{before}} (%). Δ\DeltaMAE: 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).

DefenceBACKTIME [11] ASR↓BACKTIME [11] ∆↓TDBA [13] ASR↓TDBA [13] ∆↓
Undefended0.795–0.540–
SAFETIME0.138−8.00.320−3.9
TIMEGUARD [15]0.311+3.90.551+6.2
RS [25]0.776+1.40.537+1.8
FT [19]0.783+2.90.545+3.8
FP [19]0.692+2.50.564+3.8
FT+clean†0.552−6.00.482−0.3
FP+clean†a0.354−5.00.534−0.2

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 (I=0.048I = 0.048), or 68 when the trigger is also removed (0.057), and BACKTIME on all 107 (0.083).

DatasetCCBackTime [11] Recall↑BackTime [11] Prec.↑TDBA [13] Recall↑TDBA [13] Prec.↑Clean flags↓
PEMS033581.0000.9911.0000.9912
PEMS043071.0001.0001.0001.0000
PEMS081701.0000.9301.0000.9813
WEATHER211.0000.7501.0000.7508
ELECTRICITY3210.9910.8850.9900.9793
All0.9980.9480.9980.98616

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.

TriggerTarget deviationSync.FoundFalseII
yeslift + varied shapeyes107/10710.748
nolift + varied shapeyes107/10710.652
yesnoneyes107/10710.019
yesvaried shape onlyyes107/10710.025
novaried shape only†yes0/10710.085
yeslift + varied shapeno88/10710.048
nolift + varied shapeno68/10710.057
yespublished targetyes107/10710.806
nopublished targetyes107/10710.745
yesnoneyes107/10710.023
yespublished targetno107/10710.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. II: 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.

VariantAttacked found†False (poisoned)↓False (clean)↓
SAFETIME2,75912416
No cross-channel test915911
No co-extreme groups2,7551327
No within-channel test2,7597637
No residual stage2,75517347
No confirmation2,75918451
No expansion2,75511312
No group confirmation2,75811216
All group members kept2,75912816
No refinement fallback2,6747631
No refinement2,76225363
No cross-channel reference2,765965213
Level view only2,6216220
Change view only2,7518224
No leave-one-out2,76212145
Burst sample kept2,75920639
Global burst scoring2,76339442

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 ρ\rho. 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 ρ\rho raised by 0.25, for six rounds with ρ≤2\rho\le2 (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.

DatasetFeedbackVictimFound↑False↓Undef.SAFETIMEUndef.SAFETIMERemoval↑ΔMAE↓
PEMS03noFEDformer107/10710.0640.01629.232.474.6−0.7
iTransformer107/10710.5770.04514.231.292.1+0.1
yesFEDformer107/10710.0500.01629.832.467.2+0.2
iTransformer107/10710.5520.04915.231.291.2+0.2
ELECTRICITYnoFEDformer95/9620.6880.0102112417098.5−10.1
iTransformer95/9620.7030.0252483431296.5−4.1
yesFEDformer95/9640.6810.0112126421698.4−11.7
iTransformer95/9640.7010.0242534450196.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. II and attack MAE are measured on this context-dependent goal. Removal: 1−Iafter/Ibefore1 - I_{\mathrm{after}}/I_{\mathrm{before}} (%).

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.

DatasetLeversFound↑ASR↓ Undef.No-trig.Impl.STTGClean-tr.Attack MAE↑ Undef.STTGClean MAE↓ Undef.STTG
PEMS03C R35/360.2440.1310.1130.1360.1750.18329.136.931.415.815.716.8
C R N35/360.2300.1310.0990.1310.1640.18529.737.232.215.915.816.8
C R S36/360.6150.1340.4810.1310.2530.32122.138.527.815.715.816.8
C R E36/360.4250.1330.2920.1210.1810.18524.639.231.815.815.716.8
C R T36/360.7090.1230.5860.1160.1660.17820.939.731.915.715.716.7
C R N E T36/360.7330.1250.6080.1180.1690.17720.039.031.615.815.716.7
O R N0/10.2320.0970.1350.2280.1640.19125.825.626.015.715.716.8
O E T1/10.2960.0950.2020.1420.1300.19623.929.028.615.715.816.7
ElectricityC R32/320.8930.0040.8900.0170.0190.055170145894148302301405
C R N31/320.9540.0030.9510.0270.0240.097241458405364312312390
C R N L31/320.8900.0050.8860.0190.0190.011340659156180313313385
C R S31/320.6130.0040.6090.0840.0300.024370354155602311314394
C R E31/320.9540.0030.9510.0260.0240.099244257655330309310389
C R T32/320.0150.0040.0110.0080.0070.011271135033168289290412
C R N E T31/320.3560.0030.3530.0080.0140.019216837483289289289411
O E T1/10.4560.0000.4560.0000.0010.001187732342821290293417
WeatherC R S2/20.9860.0320.9540.0360.4830.04534.283.349.29.69.910.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.

DatasetPoisonAutoformerTimesNetInformerPatchTSTiTransformer
PEMS03C R S0.54/0.12/0.20<br>−0.2/+14.90.24/0.17/0.17<br>−0.9/+0.30.25/0.22/0.21<br>+0.3/+1.00.21/0.13/0.14<br>−0.1/+10.60.67/0.51/0.82<br>−0.4/+6.9
clean Δ\DeltaMAE
WEATHERC R S0.94/0.03/0.45<br>−9.2/−14.80.57/0.02/0.11<br>−2.2/+7.10.03/0.02/0.02<br>−2.1/−38.20.05/0.02/0.03<br>+4.0/+10.60.99/0.04/0.99<br>+10.7/+4.5
clean Δ\DeltaMAE
PEMS03one channel0.58/0.10/0.12<br>+1.9/+13.50.12/0.09/0.05<br>+1.3/−0.60.24/0.14/0.10<br>+1.7/+1.00.10/0.07/0.05<br>+1.3/+10.70.68/0.54/0.82<br>+0.7/+7.4
clean Δ\DeltaMAE
PEMS08one channel0.49/0.16/0.44<br>−2.1/+10.00.33/0.25/0.20<br>−0.1/+6.60.28/0.19/0.22<br>−0.6/+1.90.17/0.17/0.15<br>−0.1/+11.90.70/0.64/0.85<br>−0.3/+8.4
clean Δ\DeltaMAE
WEATHERone channel0.30/0.06/0.08<br>+0.8/+10.00.56/0.05/0.05<br>−0.9/+15.40.09/0.05/0.05<br>−0.9/+5.00.09/0.05/0.05<br>+0.1/+5.80.95/0.80/0.76<br>+12.7/+5.8
clean Δ\DeltaMAE+4.4/−22.5−6.4/−15.4+18.1/−10.7+1.5/−8.2+12.7/+5.8
ELECTRICITYone channel0.63/0.00/0.61<br>+3.0/0.00.56/0.00/0.00<br>+14.0/−0.00.14/0.00/0.00<br>+0.0/−0.00.12/0.00/0.00<br>+0.0/−0.00.50/0.38/0.76<br>+0.0/+38.0
clean Δ\DeltaMAE+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).

DatasetSettingFound↑False↓Undef.No-trig.STTGAttack MAE↑ (U / ST / TG)Ratio↓
USTTG
Stealthier settings, one changed at a time
PEMS0310% channels36/3620.7390.1610.1290.15218.337.935.50.99
5% channels18/18190.8090.2020.1320.17417.239.333.41.02
1% rate107/10710.8090.1280.1260.17017.238.631.31.00
magnitude penalty ×4107/10710.9280.1350.1300.15711.637.534.50.98
trigger length 2107/10710.8950.1400.1220.10712.836.339.50.99
WEATHER10% channels2/210.9660.0430.0330.49625.090.249.11.01
5% channels1/130.3810.0620.0640.08949.493.961.21.02
1% rate6/630.5110.0430.1720.33247.198.858.91.83
magnitude penalty ×46/610.9920.0430.0470.6428.292.340.90.94
trigger length 26/620.9820.0480.0490.47813.090.550.61.00
ELECTRICITY10% channels31/3230.9770.0140.0340.0441619487448010.93
5% channels16/1620.9450.0150.0030.003753.5357832100.96
1% rate91/9630.9250.0020.0420.0171237407436030.98
magnitude penalty ×495/9620.9880.0160.0120.7941112417618610.77
trigger length 295/96180.9890.0060.0110.018818.5421248180.86
One poisoned channel, mean over three attacker poisons
PEMS03one channel3/38.70.3390.1000.1510.11924.130.729.41.01
PEMS04one channel3/30.00.2170.0870.1430.12629.032.731.01.00
PEMS08one channel3/33.70.4050.1240.1800.18926.035.532.51.00
WEATHERone channel3/33.70.1470.0210.0210.03052.686.266.90.93
ELECTRICITYone channel3/33.30.5380.0290.1340.0011846255027991.01
Several attackers on disjoint channel groups (attacker j of n)
PEMS03attacker 1 of 2108/108–0.9100.1580.1700.13312.939.251.71.02
attacker 2 of 20.9260.1210.1670.19112.030.228.9
attacker 1 of 3108/108–0.8320.1950.1740.14216.039.141.21.02
attacker 2 of 30.8300.1810.1650.16418.041.939.5
attacker 3 of 30.7220.1420.1890.20417.631.3…
ELECTRICITYattacker 1 of 296/96–0.9860.0450.0010.003426.4351929970.77
attacker 2 of 20.9630.0050.0020.020710.728262746
attacker 1 of 396/96–1.0000.0500.0000.000360.4348428320.76
attacker 2 of 30.9720.0620.0100.030635.146963688
attacker 3 of 30.9520.0010.0020.023585.426082720
WEATHERattacker 1 of 26/6–1.0000.0000.0000.0004.380.874.31.04
attacker 2 of 20.0290.0240.0250.02749.558.757.5
attacker 1 of 36/6–1.0000.0000.0000.00016.385.983.70.88
attacker 2 of 30.9590.0480.0300.49523.4110.460.7
attacker 3 of 30.0000.0000.0000.00045.555.557.6
Realistic noise on every copy, BackTIME (ρ=1\rho= 1, six victims)
PEMS03noise ρ=1\rho= 1642/64260.7680.1780.1610.41118.739.429.20.97
PEMS04noise ρ=1\rho= 1552/55200.6950.2040.1980.43526.147.735.20.99
PEMS08noise ρ=1\rho= 1306/30660.7220.2140.1960.35922.843.133.80.99
WEATHERnoise ρ=1\rho= 136/36120.6190.1250.1430.53761.0107.564.91.00
ELECTRICITYnoise ρ=1\rho= 1572/576360.4860.0140.0220.4593207510834290.82
All2,108/2,112600.6580.1470.1440.4400.96
PEMS03, FEDformer: noise level and placement
PEMS03noise ρ=0.5\rho= 0.5107/10710.9420.1390.1150.13911.138.838.10.97
noise ρ=1\rho= 1107/10710.9400.1380.1160.48711.138.922.50.98
noise ρ=2\rho= 2107/10710.9230.1290.1100.87312.139.815.20.98
noise on target only107/10710.9420.1330.1150.15111.039.034.90.98
noise on trigger only107/10710.9460.1400.1200.13110.738.641.30.97
Realistic noise on every copy, TDBA (ρ=1\rho= 1, six victims)
PEMS03noise ρ=1\rho= 1642/64260.6040.3650.3240.62921.627.522.30.97
PEMS04noise ρ=1\rho= 1552/55200.5230.3290.3030.56130.637.130.80.98
PEMS08noise ρ=1\rho= 1306/30660.5450.3550.3190.60626.233.026.40.99
WEATHERnoise ρ=1\rho= 136/36120.6620.3650.3990.68869.460.054.70.91
ELECTRICITYnoise ρ=1\rho= 1555/576270.3600.3060.3250.3731713181318360.97
All2,091/2,112510.5390.3440.3340.5720.97
PEMS03, FEDformer: noise level and placement
PEMS03noise ρ=0.5\rho= 0.5107/10710.6630.3320.2860.76718.927.419.20.98
noise ρ=1\rho= 1107/10710.6500.3190.2900.74319.127.319.10.99
noise ρ=2\rho= 2107/10710.6180.3120.2910.73519.627.318.90.99
noise on target only107/10710.6510.3270.2800.76319.227.619.10.99
noise on trigger only107/10710.6560.3190.2860.75819.027.319.10.99
Further knowledgeable-attacker combinations (levers as in Table 14; corner: 5% of channels, 0.5% rate, sixteen-fold penalty, two-step trigger)
PEMS03corner0/1830.1950.1280.1960.17132.132.01.00
WEATHERO E T1/130.4230.0580.0610.08050.896.370.41.04
PEMS04C R11/3100.2970.1720.2530.24536.039.135.31.00
C R T31/3100.2800.1700.1860.22333.141.535.81.00
C R N E T31/3100.2720.1680.1830.21633.541.836.21.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 ρ\rho; 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.

AttackUndef.STTGFoundΔ
Echo, ε = 0.250.9620.1060.276626/627+0.4
Echo, ε = 0.50.9640.1050.294626/627+1.4
Echo, ε = 10.9610.1280.390626/627+5.9
False-flag decoys0.9570.0710.252626/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).

ModelPEMS03PEMS04PEMS08WeatherElectricity
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.

DatasetModelBackTime [11] UNTSTTGAΔ\DeltaST↑\uparrowAΔ\DeltaTG↑\uparrowΔ\DeltaST↓\downarrowΔ\DeltaTG↓\downarrowTDBA [13] UNTSTTGAΔ\DeltaST↑\uparrowAΔ\DeltaTG↑\uparrowΔ\DeltaST↓\downarrowΔ\DeltaTG↓\downarrow
PEMS03FEDformer0.9490.1410.1220.123+264.4+309.7−2.4+4.10.6660.3250.2820.747+46.6+4.0−1.3+4.5
Autoformer0.6740.1610.1290.183+96.4+89.5−5.2+1.00.6260.3500.3120.677+34.0+1.0−3.1+3.8
TimesNet0.8330.1900.1830.171+95.1+99.0−7.3−3.20.6340.4710.3170.547+20.4+0.9−7.1−2.5
Informer0.4410.3190.2220.228+32.1+24.9−4.8−2.70.5550.4940.3860.565+17.9−0.7−4.3−0.5
PatchTST0.8260.1540.1460.148+103.0+104.3−1.3+8.10.6130.3190.2540.327+41.4+28.7−0.5+9.9
iTransformer0.9970.1250.1710.353+1097.9+704.5−0.4+6.10.5910.2770.3510.710+23.6+10.1−0.8+5.6
PEMS04FEDformer0.8710.1910.1930.174+155.5+192.0−1.2+3.80.6150.3240.2920.712+35.3−1.8−0.7+3.9
Autoformer0.5960.2370.1960.250+64.3+40.9+0.2+4.10.6160.3390.3250.667+27.2−1.4−1.9+5.6
TimesNet0.7310.1860.1770.168+77.5+77.8−4.5−3.40.4690.3690.2410.361+20.2+5.1−5.5−2.6
Informer0.3670.2510.1980.216+30.0+19.1−2.3−0.10.4290.4280.2980.454+16.2−2.4−2.8+1.0
PatchTST0.6800.1930.1760.180+74.2+73.5+0.8+8.30.4440.2740.2400.273+26.3+21.7+0.2+9.1
iTransformer0.9970.1800.2510.452+965.1+582.2−0.7+5.30.6270.2890.3440.738+24.5+8.3−0.3+5.8
PEMS08FEDformer0.9250.1510.1670.138+243.4+263.8+1.1+4.40.6000.3300.2780.745+50.2+0.8+1.4+5.3
Autoformer0.6140.1750.1520.176+90.3+73.6−0.3+5.90.6260.3730.3390.707+34.4+0.5−0.4+7.8
TimesNet0.7740.2310.2160.163+82.6+90.7−2.9−0.10.4910.4190.2890.433+20.4+3.4−4.4+1.1
Informer0.3490.3050.2250.249+22.5+10.4−4.6−3.70.4350.4520.3220.447+16.3−5.2−1.9−2.2
PatchTST0.8210.2990.2120.175+77.3+74.2+3.9+13.10.5030.3090.2680.354+44.0+23.9+3.3+15.8
iTransformer0.9950.1400.2020.561+725.8+359.1−0.3+7.40.6200.2790.3300.765+28.7+10.0−1.8+8.9
WEATHERFEDformer0.9920.0430.0440.704+704.4+214.3−0.8+21.00.6190.2560.2880.788+64.6+5.5−6.3+37.9
Autoformer0.9860.0550.0570.640+299.5+130.6−5.5+10.70.7880.2990.3050.674+50.3+1.6−10.3−3.6
TimesNet0.9330.1630.1820.890+205.7+10.7−3.1+6.30.7060.6550.5780.739−19.3−29.7−9.4+4.0
Informer0.3750.3980.2780.281+19.5+6.2−6.3−24.10.5960.5780.5000.645−4.0−23.3−34.6−36.0
PatchTST0.9980.0390.0380.646+1415.5+813.6−2.3+4.70.6030.1710.1720.708+77.2+5.1−10.6+18.9
iTransformer0.9930.0390.0700.999+819.3+37.5−10.2−13.40.5590.4150.2720.576+10.7+16.7−5.7−8.7
ELECTRICITYFEDformer0.9810.0470.0130.031+405.2+354.5−24.3+6.80.3140.2660.2970.335+2.1+14.8−1.8+17.6
Autoformer0.9930.0290.0350.527+383.9+150.0−27.1−3.40.3500.2580.2970.368+10.3+22.9−5.9+18.8
TimesNet0.9020.0140.0040.084+551.2+346.5−46.9+12.50.2850.2510.2850.274+4.6+10.9+2.8+4.6
Informer0.3500.0490.0530.034+59.5+42.9−4.6+0.40.5300.4760.4770.521+16.0+5.3+2.2+1.2
PatchTST0.9200.0180.0050.026+239.3+134.9−42.9+18.70.3270.3040.3170.318+5.3+10.3−0.7+23.4
iTransformer0.9790.0100.0250.368+348.0+110.7−35.4+19.90.3720.3110.3400.365+4.2+12.6−5.4+28.1
MeanFEDformer0.9440.1140.1080.234+354.6+266.8−5.5+8.00.5630.3000.2870.666+39.8+4.7−1.8+13.9
Autoformer0.7730.1310.1140.355+186.9+96.9−7.6+3.60.6010.3240.3160.618+31.2+4.9−4.3+6.5
TimesNet0.8350.1570.1520.292+202.4+124.9−12.9+2.40.5170.4330.3420.471+9.2−1.9−4.7+0.9
Informer0.3760.2640.1960.202+32.7+20.7−5.5−6.00.5090.4850.3970.526+12.5−5.3−8.3−7.3
PatchTST0.9840.1400.1150.235+381.8+240.1−4.8+10.60.4980.2750.2500.396+38.8+18.0−1.7+15.4
iTransformer0.9920.0990.1440.545+791.2+358.8−9.4+5.10.5540.3140.3270.631+18.3+11.5−2.8+7.9

Table 17. Results for every cell, and per victim (mean: over the five datasets). AΔ\Delta: 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, UU or Undef. denotes undefended; No-trig. or NT, the undefended no-trigger rate; ST, SAFETIME; TG, TIMEGUARD; II or Impl., the implanted effect; Found and False, the attacked and unattacked channels flagged; AST and ATG, the attack MAE with SAFETIME and TIMEGUARD; Δ\Delta, 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 R2=0.5R^2 = 0.5.

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 ρ=1\rho= 1, 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.

VictimPEMS03 TGPEMS03 STPEMS04 TGPEMS04 STPEMS08 TGPEMS08 STWEATHER TGWEATHER STELECTRICITY TGELECTRICITY 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.949o^{o}
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. o^{o}: 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

AttackDatasetSmooth L1 IISmooth L1 ST↓ST\downarrowSmooth L1 Δ↓\Delta\downarrowSquared error IISquared error ST↓ST\downarrowSquared error Δ↓\Delta\downarrowL1 IIL1 ST↓ST\downarrowL1 Δ↓\Delta\downarrow
BACKTIME [11]PEMS030.808±0.0040.808\pm0.0040.010±0.0000.010\pm0.000−2.4±0.3-2.4\pm0.30.783±0.0080.783\pm0.0080.003±0.0020.003\pm0.002−2.9±0.6-2.9\pm0.60.817±0.0100.817\pm0.0100.008±0.0010.008\pm0.001−1.9±1.2-1.9\pm1.2
PEMS040.680±0.0000.680\pm0.0000.014±0.0030.014\pm0.003−1.2±0.6-1.2\pm0.60.646±0.0110.646\pm0.0110.010±0.0010.010\pm0.001−1.0±0.2-1.0\pm0.20.683±0.0020.683\pm0.0020.015±0.0010.015\pm0.001−1.2±0.3-1.2\pm0.3
PEMS080.774±0.0110.774\pm0.0110.004±0.0020.004\pm0.002−1.1±0.7-1.1\pm0.70.732±0.0100.732\pm0.010−0.001±0.002-0.001\pm0.002−2.1±0.7-2.1\pm0.70.776±0.0030.776\pm0.0030.002±0.0010.002\pm0.001−0.6±0.2-0.6\pm0.2
WEATHER0.949±0.0020.949\pm0.0020.004±0.0010.004\pm0.001−0.8±6.1-0.8\pm6.10.863±0.0420.863\pm0.0420.018±0.0420.018\pm0.042−19.8±5.3-19.8\pm5.30.944±0.0050.944\pm0.0050.002±0.0010.002\pm0.001−10.7±3.8-10.7\pm3.8
ELECTRICITY0.934±0.0150.934\pm0.0150.009±0.0000.009\pm0.000−24.3±0.7-24.3\pm0.70.951±0.0180.951\pm0.0180.011±0.0020.011\pm0.002−28.9±4.7-28.9\pm4.70.933±0.0130.933\pm0.0130.009±0.0000.009\pm0.000−23.1±2.0-23.1\pm2.0
TDBA [13]PEMS030.341±0.0210.341\pm0.0210.032±0.0170.032\pm0.017−1.3±0.3-1.3\pm0.30.248±0.0080.248\pm0.0080.043±0.0110.043\pm0.011−0.9±0.8-0.9\pm0.80.339±0.0090.339\pm0.0090.032±0.0130.032\pm0.013−1.8±0.2-1.8\pm0.2
PEMS040.292±0.0050.292\pm0.0050.020±0.0040.020\pm0.004−0.7±0.6-0.7\pm0.60.261±0.0110.261\pm0.0110.024±0.0100.024\pm0.010−0.7±0.6-0.7\pm0.60.306±0.0200.306\pm0.0200.015±0.0010.015\pm0.001−0.8±0.3-0.8\pm0.3
PEMS080.270±0.0410.270\pm0.0410.018±0.0200.018\pm0.0201.4±1.31.4\pm1.30.237±0.0250.237\pm0.0250.044±0.0120.044\pm0.0121.3±0.51.3\pm0.50.250±0.0560.250\pm0.0560.015±0.0300.015\pm0.0301.4±0.21.4\pm0.2
WEATHER0.362±0.1410.362\pm0.1410.078±0.0660.078\pm0.066−6.3±0.9-6.3\pm0.90.321±0.0750.321\pm0.0750.230±0.2070.230\pm0.207−6.8±0.4-6.8\pm0.40.436±0.0410.436\pm0.0410.035±0.0660.035\pm0.066−3.3±15.7-3.3\pm15.7
ELECTRICITY0.048±0.0020.048\pm0.0020.034±0.0040.034\pm0.004−1.8±0.3-1.8\pm0.30.045±0.0060.045\pm0.0060.020±0.0090.020\pm0.009−9.8±3.4-9.8\pm3.40.044±0.0010.044\pm0.0010.038±0.0050.038\pm0.005−1.9±2.0-1.9\pm2.0

Table 19. Victim training loss: FEDformer victims trained with Smooth L1 (the loss of every other result), squared error, and L1 (±\pm 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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [21]Max Planck Institute for Biogeochemistry, “Wetterdaten (weather data),” https://www.bgc-jena.mpg.de/wetter/, accessed 15 November 2026.
  22. [22]A. Trindade, “ElectricityLoadDiagrams20112014,” 2015. [Online]. Available: https://archive.ics.uci.edu/dataset/321DOI
  23. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Contents

Pick where to look, or just type