✦ For everyone, free.

Practical knowledge for real and everyday life

Home

Temporal and Sequential Representations

Temporal and Sequential Representations model how signals evolve over time, enabling analysis of patterns in dynamic data through ordered sequences.

Temporal and Sequential Representations are structured forms of Behavioral Representations that explicitly incorporate ordered succession, temporal coordinates, element supports, durations, event or state ordering, or causal availability as intrinsic parts of their meaning. It is critical to understand that terms such as sequence order, physical time, sampling regularity, support, timestamp, duration, padding, mask, and model state are not synonyms and denote distinct aspects of temporal and sequential data. An ordered sequence can exist without any known physical timing; conversely, an irregularly timed sequence can preserve exact timestamps without uniform sampling. A Temporal or Sequential Representation records the temporal organization of elements but does not by itself constitute a dynamical model, transition model, forecasting rule, or causal process.


Meaning and Boundaries of Temporal and Sequential Representation

A Temporal or Sequential Representation is an ordered or temporally coordinated collection of representation elements whose element identity, order, sequence coordinate, physical-time coordinate when known, support, validity, and availability semantics are declared sufficiently for scientific comparison and interpretation. The elements comprising such a representation may be samples, frames, descriptor vectors, events, tokens, states, poses, latent vectors, relational objects, or other representation units. Importantly, these elements themselves are not synonymous with the original source objects they represent; the representation abstracts and encodes aspects of these objects without conflation.

Different conceptual objects in temporal and sequential data include:

  • Sequence: A collection of elements arranged in ordered succession.
  • Time Series: A sequence where each observation is assigned a temporal coordinate.
  • Segment/Episode: A support-bearing unit defined by a temporal or ordered interval.
  • Window: An analytical construction defining a temporal or ordinal support over elements.
  • Event Stream: A sequence of explicitly declared event occurrences.
  • State Sequence: An ordered encoding of state identities or state representations.

These objects are related but not interchangeable; each carries distinct semantic and structural properties.

Key components defining a sequential representation include:

  • Sequence Definition: The abstract schema specifying element identity, order semantics, and temporal coordinate conventions.
  • Sequence Instance: A concrete instantiation of a sequence definition with specific element values, length, timestamps, supports, masks, and provenance.
  • Sequence Element: An individual unit within the sequence, conforming to the declared element schema.
  • Element Schema: The metadata or formal specification describing the element's structure and semantics.
  • Sequence Length: The number of elements in a sequence instance.
  • Sequence Coordinate: The ordinal or relative position of an element within the sequence.
  • Temporal Coordinate: The physical or relative time assigned to an element when available.
  • Element Support: The temporal or ordered interval over which the element is defined or valid.
  • Sequence Support: The overall temporal or ordinal extent containing or organizing all elements.
  • Validity Mask: An explicit annotation indicating the validity or usability of elements or positions.
  • Context/Availability Semantics: Metadata indicating when evidence underlying elements is available or valid relative to the represented time.

Multiple sequence instances can share one sequence definition but differ in element values, length, timestamps, supports, masks, or provenance.

ObjectScientific MeaningCritical Non-Equivalence
Sequence DefinitionAbstract schema specifying element identity, order, and temporal coordinate conventionsNot a concrete data instance; no element values or timestamps
Sequence InstanceConcrete realization of a sequence definition with specific elements, length, timestamps, masksDifferent instances may vary in length, timing, masks, and provenance
Sequence ElementIndividual unit conforming to the element schemaNot the original source object; abstracted representation unit
Sequence PositionOrdinal index indicating element order within the sequenceNot equivalent to physical time or timestamp
Temporal CoordinatePhysical or relative time coordinate associated with an elementNot synonymous with sequence position or duration
Element SupportTemporal or ordered interval over which the element is defined or validDifferent from timestamp; support may span a longer interval than a single time point
Sequence SupportOverall temporal or ordinal extent containing all elementsLarger scope than element support; may represent an episode, trial, or session
Mask/ValidityExplicit annotation indicating validity or usability of elements or positionsNot interchangeable with padding or missing data flags; semantic meaning must be declared
AvailabilityMetadata describing when evidence underlying an element is available or validDistinct from timestamp or support; relates to causal or operational timing

Order, Position, and Physical Time

Ordinal position and physical time are distinct properties in temporal and sequential representations. Positions labeled 1, 2, 3, … define an ordered succession of elements but do not reveal the physical temporal intervals separating adjacent elements. These intervals could be milliseconds, seconds, irregular durations, unknown gaps, or may carry no physical-time interpretation at all. Conversely, timestamps can define temporal relations even when elements are stored out of chronological order, requiring reordering before temporal interpretation.

A generic temporally indexed sequence can be expressed as:

Zi = ( ( zi1 , ti1 ) , , ( ziLi , tiLi ) )

where i indexes the sequence instance, L_i is the number of elements in instance i, z_{il} denotes element l under the declared element schema, t_{il} is the authoritative temporal coordinate associated with that element (when physical or relative time is represented), and Z_i is the resulting temporally indexed sequence. The temporal coordinate t_{il} can be omitted when only ordinal order is meaningful. Explicit timestamps need not be equally spaced.

Sequence forms include:

  • Order-only: Elements have an ordinal succession without physical or temporal coordinates.
  • Uniformly timed: Elements have timestamps equally spaced under a declared authoritative time coordinate.
  • Irregularly timed: Elements have timestamps at irregular intervals, preserving exact times.
  • Event-relative: Temporal coordinates are relative to a specific event or anchor point.
  • Duration-bearing: Elements have explicit durations or supports.
  • Partially ordered: Elements have constraints such as A before B without a total order.

A sequence can preserve meaningful precedence relations without a calibrated clock. Partially ordered representations encode constraints without defining a complete total ordering.

Permutation of elements generally produces a different representation when order carries meaning. Some representations explicitly declare order invariance or adopt a canonical ordering used solely for serialization. Storage order must not silently substitute for scientific sequence order, participant order, event order, or chronological order.

FormOrdering InformationTemporal InformationCommon Misinterpretation
Order OnlyTotal ordinal successionNoneAssuming equal or physical timing from position
Uniform Physical TimeTotal ordinal successionEqually spaced timestampsTreating nominal sample rate as authoritative timing
Irregular Physical TimeTotal ordinal successionPrecisely recorded irregular timestampsAssuming regular timing from stored order
Event-Relative TimeOrder relative to an anchor eventCoordinates relative to event anchorConfusing relative time with absolute physical time
Duration-Bearing SequenceOrder and explicit element durationsElement supports span intervalsTreating single timestamp as instantaneous observation
Partially Ordered StructurePartial order constraintsMay lack total temporal orderAssuming total order or ignoring ordering constraints

Temporal Coordinates and Element Support

Temporal coordinates distinguish absolute timestamps, elapsed time, relative time, event-relative time, frame-center time, onset, offset, interval start/end, duration, sample time, and corrected/synchronized time as separate concepts. Each requires specification of time origin, unit, clock/time base, and correction state when relevant. A timestamp must not silently stand for onset, offset, detection time, reporting time, or support center when these differ substantively.

An element's reference timestamp is distinct from its temporal support. For example, a descriptor computed over a two-second window can be assigned the center timestamp but represents evidence from the entire interval. An event may have onset, offset, peak, and anchor times. A state can occupy a continuous duration. Support-bearing elements must not be interpreted as instantaneous observations solely because one timestamp is attached.

Element supports can overlap: adjacent frames, windows, event-centered intervals, or cycles may share substantial evidence, inducing statistical and informational dependence despite being represented as separate sequence positions. Dense placement increases sampling density but does not necessarily increase independent information or physical temporal resolution.

Sequence support is the declared temporal or ordered scope containing or organizing element supports. It may represent a finite episode, trial, session interval, event-aligned interval, rolling stream, or other defined scope. Changing sequence support can alter sequence length, boundary context, available history, normalization, and interpretation even when element definitions remain constant.

Element SupportPossible Reference CoordinateKey Interpretation Risk
InstantSingle timestampMistaking supportless point for interval evidence
Finite WindowStart and end times, center timeConfusing center timestamp with onset or offset
EventOnset, offset, peak, anchor timesUsing onset timestamp as sole event time
IntervalStart and end timesIgnoring partial coverage or overlapping intervals
CycleTemporal start/end or phase within periodicityAssuming independence of overlapping cycles
Persistent StateSupport spanning continuous durationTreating state as instantaneous
Event-Aligned ElementRelative time anchored to event onset or peakMisinterpreting relative time as absolute time
Rolling ElementMoving window with continuously shifting supportTreating overlapping windows as independent

Spacing, Irregularity, Gaps, and Multi-Rate Structure

Inter-element temporal spacing is defined as:

Δtil = til ti,l1

where i is the sequence-instance index, l is the element position with a preceding valid temporal coordinate, t_{il} and t_{i,l-1} are consecutive authoritative temporal coordinates, and Δt_{il} is their signed interval. Constant positive Δt_{il} supports regular timing only under the declared authoritative time coordinate and does not follow merely from equal array spacing or nominal sample-rate metadata.

Sequence temporal structures include:

  • Regular: Constant positive Δt intervals under authoritative time.
  • Irregular: Variable Δt intervals preserving exact timing.
  • Gapped Regular: Mostly regular intervals with missing observations.
  • Duplicate-Time: Multiple elements sharing identical timestamps.
  • Asynchronous Multi-Rate: Multiple channels or modalities with differing timing and timestamps.
  • Regularized/Interpolated: Resampled or interpolated sequences constructed from irregular data.
  • Unknown-Time: Absence of authoritative temporal coordinates.

Distinguish genuinely irregular schedules from missing data on otherwise regular schedules and from regularized representations created by interpolation or resampling. These forms can appear similar after storage conversion but differ critically in provenance and uncertainty.

Asynchronous and multi-rate representations may store per-source timestamps or use a common global timeline with masks indicating data presence or absence. Aligning, binning, interpolating, or resampling to a single grid creates a new temporal representation, potentially introducing assumptions, duplicated values, smoothing, latency, or artificial simultaneity.

Temporal duplicates and ordering ties occur when multiple elements share one timestamp due to simultaneous events, multiple entities, quantized timestamps, or acquisition batching. Representations must declare whether ties are unordered, secondarily ordered, treated as a set at one time, or resolved by other rules. Arbitrary serialization order should not be interpreted as physical precedence.

Temporal StructureWhat Is KnownWhat Was ConstructedPrimary Risk
RegularConstant positive inter-element intervalsNoneAssuming uniform physical time without verification
IrregularPrecise irregular timestampsNoneMisinterpreting irregular sampling as noise
Gapped RegularRegular schedule with missing observationsMissing data imputation or removalConfusing missingness with irregularity
Duplicate-TimeMultiple elements share identical timestampsNoneInferring order from serialization
Asynchronous Multi-RateMultiple asynchronous channels with own timestampsUnified timeline alignment or binningIntroducing artificial simultaneity or latency
Regularized/InterpolatedOriginal irregular data resampled or interpolatedNew uniform timing constructedTreating interpolated data as observed
Unknown-TimeNo authoritative temporal coordinatesNoneTreating sequence order as physical time

Variable Length, Masks, Padding, Truncation, and Packing

Sequences can be represented with fixed or variable length. Equal length may arise from naturally fixed support, controlled protocols, temporal normalization, cropping, padding, pooling, or resampling; each has distinct scientific implications. Variable length can itself encode meaningful duration or event-count information and should not be automatically removed for computational convenience.

Padding inserts placeholder positions to enable variable-length sequences to share a rectangular storage shape. Padding must specify the padding side, pad value or token, true sequence length or mask, and whether temporal coordinates exist at padded positions. Padded positions do not represent observed behavioral evidence and must not be included in aggregation, distance calculations, loss functions, or statistics unless operations explicitly define such treatment.

Masks are explicit statements of validity, availability, or participation and differ from simple zero/one indicators. Types include padding masks, missing-data masks, quality/validity masks, causal-attention-style availability masks, modality-presence masks, and structurally inapplicable positions. A single mask can serve multiple roles only when those roles have identical semantics.

Ragged, packed, and length-indexed representations retain variable-length structure without treating padding as evidence. Packing may reorder or reorganize storage for computational efficiency while preserving sequence boundaries and metadata; ragged structures preserve per-instance lengths directly. These are representational and storage forms, not scientific definitions of sequence dynamics.

Truncation, cropping, clipping, and maximum-length policies remove sequence elements, changing support and potentially discarding critical data such as beginnings, endings, rare events, delayed responses, or long-duration cases. Preserving metadata on original length, retained range, truncation side or rule, and semantic validity after shortening is essential.

FormTrue Length Preserved?Artificial Positions?Scientific Caution
Native Fixed LengthYesNoLength reflects natural or protocol-defined support
Ragged/Variable LengthYesNoVariable length encodes meaningful duration/count
PaddedYes (via mask)YesDo not treat padding as observed data
PackedYes (metadata preserved)Yes (reordered)Preserve sequence boundaries despite storage reordering
Masked DenseYes (via mask)YesExplicitly declare mask meaning; do not conflate roles
TruncatedNo (length reduced)PotentiallyDocument truncation rules and impact on validity
Pooled Fixed LengthYes (summary length)NoPooling alters temporal resolution and support

Alignment, Context, and Causal Availability

Temporal alignment declares the mapping between sequence coordinates and a reference time such as recording time, stimulus onset, event onset, event peak, response onset, or protocol phase. Event-relative sequences enable comparison around anchors while removing absolute timing, potentially mixing elements with different pre/post-event support availability.

Sequence context encompasses the surrounding evidence intentionally attached to each element or instance, including past context, future context, symmetric context, static repeated context, neighboring events, or higher-level support metadata. Repeating the same static context vector at every sequence position is a representational broadcasting choice and does not create repeated observations.

Distinguish event time, evidence time, computation time, and availability time. For example, a descriptor timestamp may refer to a window center although computation is only possible after the window ends; annotations may be attached retrospectively; synchronized signals may be corrected post-acquisition. For online or prospective use, preserving when each element becomes available—not merely the time it describes—is essential.

Representation semantics include:

  • Causal/Trailing: At time t, only evidence available up to t is used.
  • Offline/Future-Inclusive: Future samples or full-episode context may be used legitimately.
  • Bidirectional: Use of both past and future evidence symmetrically.
  • Event-Aligned: Elements aligned relative to event anchors.
  • Streaming Provisional: Elements and boundaries may be provisional and subject to revision.
  • Finalized Retrospective: Elements finalized with stable timestamps and boundaries.

Future-inclusive evidence is appropriate for retrospective analysis but constitutes leakage when scientific claims require information available only up to the represented decision time.

Provisional and revisable elements occur in streaming or delayed-processing contexts; values, event boundaries, synchronization corrections, or quality states may be updated as later evidence arrives. Preserve whether elements are provisional or finalized and whether retroactive revision is permitted. Revision history differs fundamentally from physical temporal evolution of represented behavior.

Availability SemanticsEvidence UsedLegitimate UseLeakage/Interpretation Risk
Past-Only/CausalEvidence up to current time onlyReal-time or causal inferenceLeakage if future evidence is used
Trailing WindowPast window of evidenceOnline filtering or causal smoothingLeakage if window extends into future
Centered WindowPast and future symmetric windowOffline smoothing or analysisLeakage if misinterpreted as causal
Future-Inclusive/OfflineFull episode or future evidenceRetrospective analysisLeakage if claimed as causal or real-time
Event-AlignedEvidence relative to event anchorCross-event comparisonConfounding absolute timing with relative timing
Streaming ProvisionalPartial, provisional evidenceOnline monitoring, delayed annotationInterpretation variability due to revision
Finalized RetrospectiveStable, finalized evidenceArchived or published analysesMisinterpretation as real-time availability

Temporal Abstraction and Hierarchical Sequence Structure

Local sequential representations preserve fine temporal or ordered structure at the element level. Global sequence-level representations summarize the sequence as a whole. Operations such as pooling, temporal binning, thinning, run-length encoding, or event condensation reduce length and emphasize broader organization but discard or transform specific temporal information.

Temporal pooling and binning at the representation level require careful specification of bin definitions: equal-duration, equal-count, event-relative, protocol-phase, or adaptive bins each have distinct exposure semantics. Empty bins, partial bins, masks, and overlapping bins require explicit treatment. Pooling represented elements is not equivalent to recomputing their source descriptors or measurements over pooled support.

Multiresolution and hierarchical sequences contain elements at multiple temporal or ordinal granularities, such as frame→event→episode or sample→window→segment structures. Containment or correspondence mappings across levels must be preserved. Coarse elements should not be assumed to be averages of fine elements; higher-level elements can have distinct semantics and supports.

Thinning, subsampling, event-based retention, change-based retention, and run-length-like compression reduce representation length by preserving selected order or change points but lose short events, dwell-time details, absolute timing, repeated states, or local variability. Such reductions differ fundamentally from resampling the underlying source signal.

Operation/FormInformation PreservedInformation Lost or AlteredKey Boundary
Element-Level SequenceFull temporal or ordinal structureNoneHighest temporal resolution
Temporal BinningAggregated elements in defined binsFine temporal detail within binsBin definition and coverage
PoolingSummarized representations over intervalsSource measurement recomputation not guaranteedSource vs. pooled support distinction
Uniform ThinningOrder preservation with reduced densityShort or rare events, fine timingThinning method and selection criteria
Event-Based RetentionKey event order and occurrenceInter-event intervals, dwell-time durationEvent definition and inclusion rules
Run-Length EncodingState change points and durationsRepeated states, local variabilityEncoding assumptions and loss of detail
Hierarchical/Multi-Resolution SequenceMulti-level granularity with containmentCross-level averaging or assumption risksPreservation of mappings and semantic distinctions

Comparability, Quality, and Provenance

Comparability and quality of Temporal and Sequential Representations depend on compatibility of element schema, order semantics, time base, temporal origin, support, spacing, alignment, true length, masks, padding/truncation, context, availability, and abstraction level. Sensitivity to timing jitter, synchronization correction, support-boundary changes, irregular sampling, interpolation, dropped or missing elements, alignment-anchor uncertainty, and alternative but defensible representation choices must be considered. Downstream prediction accuracy alone does not establish that temporal representation semantics are valid or comparable.

Worked Example

Consider a behavioral episode represented as:

  1. Regularly timed frame-wise descriptor sequence: A fixed-length sequence of frame descriptors sampled at uniform intervals with known timestamps and no missing data. Sequence index and physical time differ but are aligned by constant spacing; element timestamps correspond to frame centers; no padding; causal context limited to past frames.

  2. Irregular timestamps with dropped frames: The same sequence but with some frames dropped, resulting in irregular timestamps. True lengths reflect missing frames; validity masks mark missing data; timestamps preserve exact physical time; causal context remains past-limited but irregular.

  3. Padded member of a variable-length batch: The irregular sequence is padded with placeholder elements to a fixed batch length. Masks indicate padding positions explicitly; padded positions have no valid timestamps or supports; causal context unchanged but masked positions excluded from computations.

  4. Event-aligned representation: The sequence is aligned relative to a specific event (e.g., stimulus onset), shifting timestamps to relative times. Alignment anchor and uncertainty declared; support changes to event-relative window; causal context may include pre- and post-event data; masking reflects availability relative to event.

  5. Pooled or hierarchical sequence: The sequence is temporally pooled into bins or summarized hierarchically across multiple temporal scales. Pooling changes support and resolution; original timestamps replaced by bin centers; masking indicates bins with partial or missing data; causal context depends on pooling window.

A failure case arises when two identical rectangular arrays represent sequences with different timestamp conventions, masks, true lengths, or alignment semantics. One may represent a causal, regularly timed sequence; the other an offline, event-aligned, padded sequence. Ignoring these metadata differences leads to scientifically incompatible interpretations despite identical data arrays.

Temporal and Sequential Representation provenance includes all metadata necessary to reconstruct and interpret both the reusable sequence definition and each sequence instance. This encompasses representation definition/version, element schema and source identities, sequence ordering, authoritative time coordinate/time base/origin/units, element and sequence supports, timestamp conventions, durations, spacing, overlap, true length, variable-length policy, masks and their semantics, padding/packing/truncation, alignment anchor and uncertainty, irregular/multi-rate structure, interpolation/resampling state, context, causal/offline availability, provisional/final status, pooling/binning/thinning/hierarchy, missing/invalid states, implementation/version, comparability conditions, uncertainty, and sensitivity findings. A defensible temporal representation states not only what elements occur and in what order but also what temporal structure is known, constructed, unavailable, or intentionally discarded.