Pseudo-Label Errors Come in Runs: Sticky Reliability Models for Self-Training on Sensor Streams

When a model trained on one population is adapted to another (sleep recordings from a new hospital, accelerometer data from a new wearer), the usual approach is self-training. The model labels the new, unlabeled data itself, and its confident guesses, called pseudo-labels, are then used as training targets. Every standard safeguard judges each pseudo-label on its own: keep it if the model is confident, drop it otherwise. On continuous sensor streams that judgement misses how the errors are structured. A loosened electrode, a subject whose deep sleep looks unusual, or a watch worn on the other wrist does not corrupt one isolated 30-second window. It corrupts a stretch of minutes, and the model is often confidently wrong across that whole stretch. Treating each window as independent lets the whole run of errors through. The obvious temporal fix, smoothing predictions with a model of which labels tend to follow which, can make things worse: a consistent run of wrong labels looks exactly like a clean segment, and smoothing makes it more confident.

This note proposes to model pseudo-label reliability itself as a hidden state that persists over time. A hidden-Markov model (a model in which an unobserved state evolves step by step and generates the observations) carries two chains per recording. One tracks the true label, with transition statistics learned on the labeled source data. The other is a slowly switching "reliable / unreliable" chain that decides whether the classifier's vote at that moment should be trusted or passed through a recording-specific confusion matrix. Inference gives, for every window, both a corrected label posterior and a probability that the surrounding stretch is corrupted. Self-training then uses the first and down-weights by the second. The prediction is that this beats both per-window filtering and plain temporal smoothing exactly where errors are persistent, and that the size of the gain tracks how long the error runs are, which can be measured.

Core Claim

The claim has two parts, and the second one is what separates this from existing smoothing methods. First, on dense-label sensor streams under domain shift, pseudo-label errors are strongly autocorrelated: runs of consecutive errors are much longer than an independent-error model with the same overall error rate would produce. This is an empirical claim, and the project tests it first. Second, if errors come in runs, the right correction does not enforce agreement between neighbouring windows. It infers when the classifier is unreliable, using evidence that does not come from neighbour agreement. Neighbour agreement is precisely what a run of confident errors has.

Concretely, for one target recording with windows $t=1,\dots,T$, true labels $y_t$, reliability states $r_t \in \{\text{reliable}, \text{unreliable}\}$, and classifier output $\hat p_t$, the model is

$$ p(y_{1:T}, r_{1:T} \mid \text{obs}) \propto \prod_{t} A_{y_{t-1} y_t}\, B_{r_{t-1} r_t}\, \big[\hat p_t(y_t)/\pi(y_t)\big]^{\mathbb{1}[r_t=\text{rel}]}\big[(C^\top \hat p_t)(y_t)/\pi(y_t)\big]^{\mathbb{1}[r_t=\text{unrel}]}\, g_{r_t}(d_t). $$

Here $A$ is the label transition matrix estimated on source data, and $B$ is a sticky two-state transition matrix whose self-transition probability sets the expected length of a corrupted stretch. $\pi$ is the class prior, used to turn classifier probabilities into likelihood-like evidence. $C$ is a per-recording confusion matrix, fitted by expectation-maximisation. $g_{r}(d_t)$ is a density over an auxiliary disagreement signal $d_t$, namely the divergence between the classifier's predictions on weakly and strongly augmented versions of window $t$.

The disagreement term $d_t$ is what lets the model detect unreliability that neighbour agreement cannot reveal. It gives the reliability chain evidence that is local in time but independent of label consistency. The label chain supplies a second check: a stretch whose implied label sequence has implausible transitions or dwell times relative to the source statistics gets pushed toward the unreliable state.

Relation to Prior Work

Two papers motivate the proposal by showing that temporal structure matters for noisy labels. Learning under Temporal Label Noise models a time-varying noise matrix $Q(t)$ and corrects the loss through it. On the moving dataset under mixed temporal noise it reports 4.2% test error, against 14.9% for the best static noise-robust baseline. That work is supervised, meaning it assumes human noisy labels are given. It also assumes one noise function shared across all series. Our setting has no labels on the target at all, and the noise process is per-recording and piecewise: a stretch is either corrupted or not, rather than following a smooth global curve. TransPL uses first-order transition matrices over quantised patch codes to produce pseudo-labels for time-series domain adaptation, reporting an average 6.1% gain in pseudo-label accuracy. It labels whole instances. It models the dynamics of the input signal, not the persistence of the classifier's own errors, and it has no notion of a corrupted stretch within a stream.

A second group supplies temporal machinery but leaves pseudo-label filtering point-wise. SLARDA adds an autoregressive discriminator and forecasting pretraining, but its teacher's pseudo-labels pass a per-sample confidence threshold. CPDA aligns class-conditional latent paths and weights them by the classifier's soft pseudo-labels. Its authors note that it degrades when initial target error is high, which is exactly the regime of long confident error runs. TS-TFC propagates labels over pooled per-instance embeddings. We reuse SLARDA's code and ADATIME's protocols as infrastructure, and we treat CPDA's failure mode as motivation.

A third group constrains the design. AdaConG replaces softmax confidence with conformal prediction set size, reporting up to 5.98% gains over FixMatch on CIFAR-10 at 40 labels. Its guarantees rest on exchangeability, which autocorrelated windows violate, so it is a baseline rather than a component. CTW shows that loss-based selection starves hard classes. This is a direct warning for sleep staging, where N1 is both rare and short. The smoothing literature, including Dynamask and f-VAT, shows that enforcing temporal continuity helps but risks erasing genuine brief events. Our sticky reliability chain faces the same risk, so short-class recall is a primary metric, not an afterthought. NoCo lists sequence pseudo-label failure modes for video (bad boundaries, missed short instances, merged instances). We borrow that taxonomy for error analysis, but NoCo relies on video-level tags that we do not have.

Research Program

The first stage is a measurement study, and it can kill the project. For each source-to-target scenario on sleep staging and on continuous activity recognition, we train source-only and SLARDA-style models and record the per-window correctness of their target pseudo-labels, both for all windows and for those above a confidence threshold. We then compare the empirical distribution of error-run lengths with the geometric distribution implied by an independent-error model at the same rate. We also measure how often confident errors sit inside runs, as opposed to being isolated. If confident errors are mostly isolated, simple smoothing is the right answer and this proposal is unnecessary.

The second stage builds the two-chain model. The label transition matrix $A$ and dwell statistics come from source recordings. $B$ and $C$ are fitted per target recording by expectation-maximisation, with a strong prior pulling $C$ toward the identity to prevent label-permutation degeneracies. The disagreement density $g$ is a two-component mixture fitted on pooled target windows. Inference is forward-backward over a state space of size (number of classes × 2), which is linear in recording length and cheap next to CPDA's quadratic batch kernels.

The third stage plugs the model into self-training. Each round, the student trains on posterior-marginal soft labels weighted by $1 - p(r_t=\text{unrel})$, with class-normalised weights in the spirit of CTW to protect minority stages. The teacher is an exponential moving average of the student, as in SLARDA. We also study identifiability on synthetic data. We inject corruption runs of controlled length and severity into labeled target recordings, then check whether the recovered unreliable segments match the injected ones and at what run length detection breaks down.

Baselines

The naive reference is a source-only model evaluated on the target, together with vanilla self-training that takes the argmax pseudo-label of every window. Both are run with the same backbone (ADATIME's 1D-CNN) and the same ADATIME model-selection protocol (few-shot target selection) as every other method.

The per-window filtering baseline is FixMatch-style self-training with a 0.95 confidence threshold. Its conformal counterpart replaces that threshold with AdaConG set-size weighting, calibrated on the same small target subset used for model selection. AdaConG is the strongest method that ignores time, so it isolates whether time matters at all.

The strongest temporal competitors are three. The first is SLARDA, run from its official code. On sleep staging the file reports only a relative 5% average improvement over baselines. No reported absolute result was found on Lacuna for Sleep-EDF Macro-F1, so we will rerun it ourselves. The second is TransPL, applied with windows as instances. It reports a 6.1% average pseudo-label accuracy gain across its suite, but no reported per-dataset result was found on Lacuna. The third is a direct adaptation of Learning under Temporal Label Noise, which treats the teacher's pseudo-labels as noisy labels and fits its continuous $Q(t)$ estimator. This last one is the most natural competitor, because it already models time-varying noise, only with a global smooth $Q(t)$ rather than per-recording persistent corruption.

Three ablations isolate the key ingredient. The first removes the reliability chain, leaving HMM smoothing with source transitions, which is the obvious simpler method. The second keeps the reliability state but sets $B$ to be non-sticky, making it an independent mixture per window. The third removes the disagreement signal $d_t$. An oracle variant that is given the true corrupted segments gives an upper bound.

All methods share the same data splits, backbone, number of training epochs, and a matched hyperparameter search budget. Our method has three hyperparameters: the prior on $B$'s stickiness, the strength of the identity prior on $C$, and the mixture initialisation. It gets no more search trials than SLARDA. Beating the baselines means exceeding the best of SLARDA, TransPL, and the $Q(t)$ adaptation on target Macro-F1, averaged over ADATIME sleep scenarios, by more than the across-seed standard deviation, while not lowering N1 F1 relative to source-only.

Why not just…?

Why not just smooth pseudo-labels with an HMM using source transition statistics? This is the real threat, and it is ablation one. Our argument is that smoothing fixes isolated errors but cements runs of errors, because a run of consistent wrong labels satisfies the transition prior. The measurement study predicts where smoothing should suffice: scenarios whose error runs are near-geometric. The ablation should show our gain over smoothing growing with measured mean run length. If smoothing matches us even on long-run scenarios, the reliability chain adds nothing and we will report that.

Why not just use the temporal label noise estimator on pseudo-labels? Learning under Temporal Label Noise shares one smooth $Q(t)$ across all series, while corruption under domain shift is recording-specific and switches on and off. We also run our model in the supervised setting of that paper, on the moving and sleeping suite. If our per-recording piecewise model cannot approach their reported 4.2% error on moving under mixed noise, its noise model is miscalibrated for time-varying noise. If it does approach that figure there and wins on unsupervised adaptation, the difference comes from the per-recording structure.

Why not just train a sequence model over windows and threshold its confidence? A model that sees context over many windows may learn to be uncertain in corrupted stretches. In practice, though, it inherits the same systematic confidence under shift that AdaConG documents for softmax scores. We test this directly by swapping in a sequence-context backbone for every baseline and for our method. The claim survives only if the reliability chain still adds value on top of the stronger backbone.

Why not just calibrate conformal thresholds per recording? Per-recording calibration needs target labels in every recording, which unsupervised adaptation does not have. Even with block-wise calibration, a threshold cannot distinguish a confident run of errors from a confident correct segment. The AdaConG baseline, given this advantage, bounds how much it matters.

Proposed Experiments and Decisive Checks

The primary benchmark is the set of Sleep-EDF cross-subject scenarios from ADATIME, which has dense, naturally ordered 30-second epochs and severe imbalance, with SHHS-1 and SHHS-2 transfers as in SLARDA. The secondary benchmark is Opportunity continuous activity recognition. The controlled benchmark is the temporal label noise suite (moving, sleeping) with synthetic run-structured corruption. Metrics are target Macro-F1, pseudo-label accuracy per round, per-class F1 with N1 reported separately, precision and recall of detected corrupted segments against injected ones, and error-run-length distributions before and after correction.

Three results would decide the question. First, the measurement study must show confident-error runs substantially longer than an independent-error model predicts. Otherwise we stop. Second, the gain over HMM smoothing must increase with measured run length across scenarios. A flat relationship falsifies the mechanism, even if average Macro-F1 improves. Third, N1 recall must not fall relative to source-only. A drop would mean the sticky chain is erasing genuine brief transitions, the failure that f-VAT and Dynamask-style smoothing warn about, and we would then add dwell-time-aware transitions to the label chain before claiming success.