---
library: "brainference"
slug: "SpatioTemporalNullModel"
name: "SpatioTemporalNullModel"
ref: "SpatioTemporalNullModel#3576"
hash: "sema:SpatioTemporalNullModel#mh:SHA-256:3576582815f7cac5bb54c54b13d3a0f7cdf0fab3d808480b18b96c12527ce6e5"
type: "Dynamics"
layer: "Physics"
version: "1.0.0"
root: "8d7193fc97804cdc3aa9080728d8094732206c114f34d36b8ca2b89b943b3990"
license: null
url: "https://semahash.org/vocabularies/brainference/patterns/SpatioTemporalNullModel"
---

# SpatioTemporalNullModel

Simulate agents that move like the real ones but ignore each other, to test for social structure

Physics · Dynamics

## Mechanism

A [NullModelBaseline](https://semahash.org/vocabularies/brainference/patterns/NullModelBaseline.md) for trajectory data that keeps individual kinematics and removes coordination. From pooled tracking data estimate: (1) a two-state stationary/moving Markov chain, with an agent stationary when speed < v_min (1 px/frame) and persistence P_SS = N_SS/(N_SS+N_SM), P_SM = N_MM/(N_MM+N_MS); (2) a first-order speed-transition matrix over N_v = 30 speed bins with Laplace smoothing, P[m,n] = (T_mn + eps)/sum_l(T_ml + eps), eps = 0.01; (3) speed-conditioned turning angles, dtheta | v_i ~ N(mu_i, sigma_i^2), so slow agents turn more; (4) entry statistics (x0, y0, v0, theta0) from first appearances. Simulate agents independently: spawn at edges to match the empirical head-count timeline N_a(t), remove those that exit, switch motion state with probabilities 1-P_SS and 1-P_SM, update speed with momentum v_{t+1} = zeta v_t + (1-zeta) v_sampled (zeta = 0.6), give stationary agents U(0, 0.3) px/frame jitter to mimic tracking noise, wrap heading to [-pi, pi], and step x += v cos(theta), y += v sin(theta). Run many realisations (25 per experiment) through the same network construction. Differences that remain are evidence of interaction rules, memory or task allocation rather than motion statistics.

## Invariants

- Each synthetic agent moves independently of every other agent
- Marginal speed distribution, speed autocorrelation, speed-dependent turning and entry/exit timeline match the data
- Synthetic trajectories pass through the identical interaction and network pipeline

## Preconditions

- Tracked trajectories with stable identities and a speed cutoff that removes non-physical jumps (e.g. 120 px/frame)

## Failure modes

- Pooling kinematics across behavioural regimes blurs regime-specific motion that is itself a product of coordination
- Unmodelled environmental drivers (pheromone fields, food, boundaries) let the null miss structure that is not social
- Too few realisations to estimate the null distribution of the measure

## Where this came from

- Thesis: do_2026_ant_collective_behavior (Ch. 3.1.2 'Spatio-Temporal Null Model', Eqs. 3.11-3.21; Fig. 4.5)

## Builds on

- [NullModelBaseline](https://semahash.org/vocabularies/brainference/patterns/NullModelBaseline.md) (references)

## Used by

- [InteractionSequenceEntropySignature](https://semahash.org/vocabularies/brainference/patterns/InteractionSequenceEntropySignature.md) (references)

## Identity

- Library: brainference 1.0.0 (root 8d7193fc9780)
- Ref: SpatioTemporalNullModel#3576
- Hash: sema:SpatioTemporalNullModel#mh:SHA-256:3576582815f7cac5bb54c54b13d3a0f7cdf0fab3d808480b18b96c12527ce6e5

## Links

- Page: https://semahash.org/vocabularies/brainference/patterns/SpatioTemporalNullModel
- JSON: https://semahash.org/vocabularies/brainference/patterns/SpatioTemporalNullModel.json
- Library: https://semahash.org/vocabularies/brainference
- Library index: https://semahash.org/vocabularies/brainference/index.json
