When to Wait: What an Average Delay Hides in Streaming Classification
A classifier that labels a data stream can often label a sample better if it waits for later samples. Waiting delays the label. We study how much waiting helps, whether a policy can choose when to wait, and what its usual summary can hide. We use networks that differ only in how many later samples they see. We first removed preprocessing that read future samples. Across 11 mouse and fly behaviors on development recordings, the gain from a 0.2 s wait was then larger for behaviors with shorter bouts (Spearman rho = -0.82). A second planned test at the longest delay showed no clear trend. We then let policies choose the delay for each sample. On a smartphone activity task, with tests fixed before any label was loaded, a history-dependent policy had higher macro F1 than a fixed 0.1 s delay (+0.028, 95% interval [+0.021, +0.035]) at a lower mean delay (0.091 against 0.100 s). Yet it waited 0.327 s on samples of rare postural transitions against 0.068 s on other samples. The median time until a transition first received its correct label was 0.48 s instead of 0.16 s. This delay remained under stricter definitions of detection that we checked afterwards. A confidence threshold also delayed transitions. On mouse social behavior, a locked evaluation again favored the history-dependent policy in macro F1. An exploratory analysis found later detection of mounting. When both policies were compared on the same events, the effect for attack was weak. The gain over a confidence threshold was small on both tasks. It was fragile across activity subjects and did not extend consistently to fruit flies. We also show by example that accuracy weighted by inverse class frequency can rank two policies opposite to F1. We recommend reporting delay and event-onset latency for each class that matters.
Authors
- Ava Sajjadi (ORCID: https://orcid.org/0009-0006-0051-4425)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24640318
- Primary Topic
- Data Stream Mining Techniques
- Type
- preprint