Skip to main content
Springer logoLink to Springer
. 2026 Aug 18;58(9):272. doi: 10.3758/s13428-026-03132-8

Linking signal integrity to probabilistic models of behavioral dynamics

Reza Sayfoori 1,✉, Hung Cao 1,2,3
PMCID: PMC13486021  PMID: 42613487

Abstract

Quantitative analysis of rodent behavior in naturalistic settings is crucial for neuroscience, yet traditional methods often lack precision or scalability. While ultra-wideband (UWB) sensor tracking provides centimeter-level localization, standard metrics like root mean square error (RMSE) fail to capture the probabilistic and sequential nature of behavior. We introduce a probabilistic, information-theoretic framework that leverages high-resolution UWB sensor trajectories to address this gap. By integrating Shannon entropy to quantify uncertainty, Bernoulli modeling to assess accuracy thresholds, and first-order Markov chains to characterize state dynamics, our approach derives interpretable behavioral markers directly linked to signal quality. Empirical evaluation in an open-field arena demonstrated robust tracking under line-of-sight (LoS; RMSE: 20 mm) and non-line-of-sight (NLoS; RMSE: 35 mm) conditions. Crucially, we show that physical-layer impairments propagate to behavioral metrics: NLoS conditions increased entropy from 1.15 to 1.78 bits, reduced the probability of achieving sub-20 mm accuracy from 63.2% to 27.7%, and decreased state persistence, indicating greater behavioral fragmentation. By treating UWB signals as a probabilistic information source, our computationally efficient framework establishes a methodological bridge between engineering performance and neuroscience, enabling scalable, reproducible, and low-bias behavioral quantification suitable for preclinical research in complex environments.

Keywords: Ultra-wideband (UWB), Behavioral phenotyping, Markov chains, Information-theoretic analysis, Signal integrity, Quantitative ethology, Sensor-based behavioral modeling

Introduction

Understanding behavior within complex, naturalistic environments is a fundamental goal in neuroscience, providing critical insights into neural function and dysfunction, particularly how experience shapes neural circuits (Polley, Kvašňák, & Frostig, 2004). Rodents, as key experimental models for neurological disorders and therapeutic evaluation, offer a valuable platform for these investigations (Durbin, Eddy, Krogh, & Mitchison, 1998). However, accurately quantifying their behavior in settings that mimic natural habitats presents significant challenges (Rabiner, 1989). While automated tracking systems have advanced beyond labor-intensive manual scoring, many current approaches focus narrowly on simple metrics like spatial occupancy or gross locomotion (Jurafsky & Martin, 2019). These methods often neglect the rich temporal dependencies, probabilistic structure (Papoulis & Pillai, 2002), and context-driven transitions that shape complex behavioral sequences, particularly in more naturalistic scenarios (Patterson, Thomas, Wilcox, Ovaskainen, & Matthiopoulos, 2008). Such limitations hinder the development of sensitive behavioral assays needed for translational research.

These shortcomings reduce sensitivity to subtle phenotypic differences, hinder early detection of behavioral biomarkers, and obscure inter-individual variability (Anderson & Johnson, 2015). In translational neuroscience, where reproducibility and sensitivity are essential, such limitations are critical. To address them, we extend ultra-wideband (UWB) sensor tracking beyond its typical application for localization accuracy. UWB sensor delivers centimeter-level spatial precision, high temporal resolution, and robustness against multipath interference, minimally constraining naturalistic behavior (Guo, Chen, & Li, 2021; Molisch, 2011). Yet, most UWB signal and sensor studies emphasize deterministic accuracy metrics (e.g., RMSE, SNR), failing to exploit the richer probabilistic and temporal information embedded within the high-resolution trajectories (Sayfoori et al., 2025). This gap limits the translation of precise positional data into systematic models of behavioral variability and dynamics.

We introduce a probabilistic and information-theoretic framework that leverages UWB sensor tracking to overcome these limitations. Shannon entropy (Shannon, 1948) quantifies uncertainty in error distributions and behavioral transitions (Schreiber, 2000), Bernoulli modeling estimates the probability of meeting accuracy thresholds, and first-order Markov chains characterize sequential state dynamics (Bush & Larkins, 2005; Wiltschko et al., 2015). First formalized by Andrey Markov (Markov, 1906), these computationally efficient models uncover latent temporal structure and quantify variability, providing probabilistic state representations (Bush & Larkins, 2005). While machine learning approaches exist (Luxem et al., 2022; Pereira, Shaevitz, & Murthy, 2020), they often require extensive annotated datasets and lack interpretability, whereas Markov models offer a balance of simplicity and transparency well-suited for moderate datasets (Bush & Larkins, 2005). By integrating these complementary analyses, our framework transforms continuous UWB sensor trajectories into interpretable behavioral markers that link system-level accuracy with biological meaning. For example, elevated entropy in exploratory transitions may indicate fragmented search strategies in anxiety models, while persistence probabilities can reflect drug-induced stabilization of feeding–resting cycles.

To address the gap in current UWB sensor applications, we propose an integrated framework combining UWB sensor RTLS with these information-theoretic and sequential analyses. Continuous trajectories are discretized into ethologically relevant states—resting, exploring, feeding, and burrowing—and transition matrices are constructed to quantify behavioral dynamics. To the best of our knowledge, this is the first application of an entropy-, Bernoulli-, and Markov-based probabilistic toolkit specifically within a UWB tracking system, establishing a physics-to-behavior pipeline that unifies communication theory with behavioral neuroscience.

This study builds directly upon our earlier work published recently (Sayfoori et al., 2025), where we validated the technical accuracy of UWB localization under LoS and NLoS conditions using deterministic metrics like RMSE and SNR. While that work confirmed system reliability, it did not address how signal-level impairments affect behavioral interpretation. The present study extends that foundation by applying the proposed probabilistic framework—integrating Shannon entropy, Bernoulli success modeling, and Markov chain analysis—to the UWB-derived trajectories. In doing so, we reframe UWB not merely as a localization technology but as a probabilistic information source capable of nuanced behavioral phenotyping, thereby complementing and significantly extending our prior findings.

Methods

This study develops and validates a probabilistic framework for modeling rodent behavioral dynamics using high-precision UWB sensor localization data. Building upon our earlier work that focused on deterministic localization accuracy metrics (Sayfoori et al., 2025), the present analysis reuses a previously validated dataset and shifts the emphasis from localization fidelity alone to probabilistic behavioral interpretation. The analysis proceeded in the following order: first, UWB localization performance was characterized under LoS and NLoS signal conditions; second, continuous (x, y) trajectories were converted into discrete behavioral states using predefined spatial and kinematic criteria; third, localization reliability was quantified using error entropy and Bernoulli threshold modeling; fourth, behavioral-state sequences were modeled using first-order Markov chains; and finally, model reproducibility was evaluated using prediction accuracy, stationary-distribution agreement, entropy rate, persistence probabilities, and Frobenius-distance comparisons.

Experimental setup

Experiments were conducted in a custom-built open-field arena (122×61 cm), constructed from epoxy-coated glass to minimize multipath reflections and electromagnetic interference (Sayfoori et al., 2025). Eight UWB sensor anchors (Decawave sensors, MDEK1001 sensor development boards with DWM1001-DEV sensor modules) were distributed around the perimeter following geometric dilution of precision (GDOP) analysis, ensuring optimal LoS coverage and minimizing positional bias. Anchor coordinates were measured and calibrated through GDOP-based optimization, yielding reproducible spatial geometry across sessions.

The UWB sensor system employed a symmetric two-way ranging (TWR) protocol. For each anchor–tag pair, distance d was estimated from the round-trip time-of-flight (ToF) as

d=cΔt2, 1

where c is the speed of light and Δt is the measured round-trip propagation delay. To mitigate clock offsets and measurement noise, an extended Kalman filter (EKF) (Kalman, 1960) was applied to sequential distance estimates. Filtered ranges were fused across anchors using trilateration to recover two-dimensional positions.

The rodent was equipped with a lightweight UWB sensor tag (≈20–25 grams including housing and battery) mounted on a custom-fabricated harness designed to minimize discomfort and behavioral interference. The animal was habituated to the harness and arena across multiple sessions before formal experiments to promote naturalistic activity. Localization accuracy was benchmarked against a synchronized ground-truth video tracking system. Under LoS conditions, mean positional errors were approximately 20 mm, while controlled NLoS conditions produced approximately 35 mm of error (Sayfoori et al., 2025). Position data were sampled at 10 Hz and logged for offline analysis. This dataset, initially collected for UWB sensor validation (Sayfoori et al., 2025), was reanalyzed here to extract behavioral structure using probabilistic and information-theoretic methods.

The reanalyzed dataset consisted of four 5-min tracking sessions obtained from one rodent and sampled at 10 Hz, yielding 3000 position samples per session. Two sessions were analyzed under LoS conditions and two sessions under controlled NLoS conditions. No pharmacological, disease-model, treatment, or multi-animal subject groups were introduced in the present reanalysis; therefore, “group” refers only to signal condition (LoS versus NLoS), not to independent animal cohorts. NLoS recordings corresponded to sessions in which direct signal propagation between the mobile tag and one or more anchors was partially obstructed by a physical barrier or arena obstruction, whereas LoS recordings preserved direct anchor–tag visibility. This design allowed the same probabilistic workflow to be evaluated under two signal-quality regimes while avoiding additional biological manipulations. Because the present work reanalyzes an existing localization dataset from a single-animal proof-of-concept study, session order was not treated as an experimental factor and formal counterbalancing was not performed; this limitation is acknowledged when interpreting condition-level comparisons.

Signal integrity modeling

To contextualize localization fidelity, the Shannon–Hartley theorem (Shannon, 1948) was employed to estimate an upper bound on UWB sensor link capacity:

C=Blog21+SN, 2

where C is the channel capacity (bits/second), B is the effective bandwidth (Hz), and S/N is the signal-to-noise ratio (SNR).

In practical deployments Fig. 1, multipath propagation, antenna misalignment, and partial occlusions degrade the effective SNR, which in turn increases positioning error. This effect can be characterized through the variance of the estimation error, σe2, which is inversely proportional to SNR:

σe2∝1SNR, 3

a relationship consistent with the Cramér–Rao lower bound (CRLB) for time-of-flight (ToF)–based ranging estimators. Here, σe2 denotes the variance of the localization estimation error, and SNR is the signal-to-noise ratio as defined below.

Fig. 1.

Fig. 1

Theoretical Shannon–Hartley channel capacity compared with measured UWB sensor positioning errors under LoS and NLoS conditions. LoS preserves high capacity with low error, whereas NLoS reduces capacity and increases error, illustrating how channel quality propagates into localization accuracy

The instantaneous SNR was computed as

SNR(t)=Psignal(t)Pnoise(t), 4

where Psignal(t) and Pnoise(t) denote signal and noise power at time t, respectively. Session-averaged SNR values were then compared across LoS and NLoS conditions, providing a physical basis for observed differences in entropy and trajectory variability.

Behavioral state segmentation

Continuous UWB sensor trajectories were discretized into four ethologically meaningful states: resting, exploring, feeding, and burrowing. These states represent fundamental rodent activities relevant to preclinical neuroscience and ethology. Segmentation combined spatial zoning with kinematic thresholds to ensure ecological validity and compatibility with the 10-Hz sampling rate.

Velocity at time t was estimated as

v(t)=(xt-xt-1)2+(yt-yt-1)2Δt, 5

where (xt,yt) is the two-dimensional UWB-derived position and Δt=0.1 s is the sampling interval. Sustained inactivity (velocity <5 cm/second for ≥2 seconds) was classified as resting.

Spatial zones were annotated in arena coordinates using the lower-left corner of the arena as the origin. The food-access zone was defined as 0.10≤x≤0.20 m and 0.10≤y≤0.20 m, and occupancy within this zone for ≥1 s was classified as feeding. The bedding zone was defined as 0.80≤x≤1.00 m and 0.40≤y≤0.60 m. Occupancy within this bedding zone with velocity <5 cm/s for ≥1 s was classified as burrowing. Samples not meeting the criteria for resting, feeding, or burrowing, but showing locomotion between zones, were classified as exploring.

This discretization produced symbolic sequences required for probabilistic modeling, converting continuous UWB sensor data into categorical trajectories suitable for entropy, Bernoulli, and Markov analyses.

Information-theoretic and probabilistic analysis

Deterministic metrics such as RMSE and SNR quantify positional fidelity but do not explain how degraded signals reshape uncertainty or alter sequential dynamics in behavior. To address this gap, we apply Shannon entropy to measure the dispersion of localization errors, Bernoulli modeling to estimate the probability of achieving behaviorally relevant accuracy thresholds, and Markov chains to capture transition structure between states. Together, these complementary analyses establish a physics-to-behavior framework in which impairments in UWB sensor signal quality manifest as systematic changes in behavioral variability.

Shannon entropy of localization errors

Uncertainty in error distributions was quantified as

H=-∑i=1npilog2pi, 6

where pi is the probability of an absolute localization error falling within the ith fixed-width error interval. In this study, localization errors were discretized into 20-mm intervals, defined as 0–20 mm, 20–40 mm, 40–60 mm, 60–80 mm, 80–100 mm, and 100–120 mm. The same binning scheme was applied to both LoS and NLoS conditions before computing Shannon entropy. Higher entropy corresponds to more dispersed and less predictable localization errors, while lower entropy indicates more concentrated and predictable localization.

To avoid redundancy with the Markov-chain entropy-rate formulation below, transition uncertainty was quantified using Hrate (Eq. 12) rather than as a separate conditional-entropy statistic. This definition keeps the reported LoS–NLoS comparison tied to one Markov-chain metric, expressed in bits per transition.

Bernoulli modeling of localization success

Localization accuracy was reformulated as a binary success process:

X=1,if|e|≤ϵ0,if|e|>ϵ, 7

where e denotes the absolute localization error relative to the ground truth, and ϵ=20 mm is the behavioral tolerance threshold.

The empirical success probability was then estimated as

p^=1N∑k=1NXk, 8

with N the total number of trials. A 95% confidence interval was computed using the normal approximation to the binomial distribution:

p^±1.96p^(1-p^)N. 9

This probabilistic formulation links technical accuracy (error magnitude) to statistical confidence in behavioral classification, enabling interpretable thresholds for LoS and NLoS conditions.

Markov chain modeling of trajectory dynamics

Sequential dependencies in movement were modeled using a first-order Markov chain:

Pij=Pr(Xt+1=j|Xt=i), 10

where Xt denotes the discrete behavioral state at time t, with states defined as resting, exploring, feeding, or burrowing, and P is the row-stochastic transition matrix.

Long-term structure of trajectories was characterized by the stationary distribution:

πP=π,∑iπi=1, 11

where π represents the equilibrium probabilities of occupying each state.

Variability in movement dynamics was quantified by the entropy rate of the chain:

Hrate=-∑i=1nπi∑j=1nPijlog2Pij, 12

where π denotes the stationary distribution of the transition matrix P, and Pij is the transition probability from state i to state j. This metric, which is the standard measure of the chain’s unpredictability, captures the average uncertainty of the next state. Higher Hrate indicates more variable trajectories, while lower values reflect more stereotyped or constrained movement patterns.

Markov chain model construction

States si were defined as discrete behavioral categories, corresponding to resting, exploring, feeding, and burrowing. No separate spatial-zone Markov chain was modeled in the present analysis; spatial coordinates were used only to assign behavioral categories according to the operational criteria in Table 1. Transitions between behavioral states were estimated empirically as

Pij=N(si→sj)∑k=1nN(si→sk), 13

where N(si→sj) counts observed movements from state si to sj.

Table 1.

Operational definitions for behavioral states used in Markov modeling. States are defined using kinematic thresholds and spatial zones, enabling reproducible segmentation

State Criteria
Resting Velocity <5 cm/s maintained for ≥2 s.
Exploring Locomotion between zones that did not satisfy the criteria for resting, feeding, or burrowing.
Feeding Occupancy in the food-access zone (0.10≤x≤0.20 m, 0.10≤y≤0.20 m) for ≥1 s.
Burrowing Occupancy in the bedding zone (0.80≤x≤1.00 m, 0.40≤y≤0.60 m) with velocity <5 cm/s for ≥1 s.

For an observed sequence X1,⋯,XT, transition probabilities were estimated directly from empirical transition counts using Eq. 13. Long-term occupancy patterns were characterized by the stationary distribution, obtained as the dominant eigenvector of P. Temporal variability was quantified using the Markov-chain entropy rate and state-persistence probabilities, which were the reported dynamic metrics used to compare LoS and NLoS conditions.

For the split-cell difference heatmap in Fig. 2, the baseline transition matrix was computed by pooling transition counts across all four sessions, including both LoS and NLoS recordings, to represent the average behavioral-transition structure of the reanalyzed dataset.

Fig. 2.

Fig. 2

Split-cell difference heatmap illustrating the change in transition probabilities from the baseline. Each cell represents a single transition (e.g., resting to exploring). The number in the center of the cell is the absolute baseline probability. Each cell is split diagonally: the color of the upper-left triangle shows the change for the LoS condition, and the color of the lower-right triangle shows the change for the NLoS condition, according to the color bar on the right (red indicates an increase, blue indicates a decrease)

Prediction accuracy

Short-term predictive reliability was assessed via leave-one-session-out cross-validation. Accuracy was computed as

Accuracy=CorrectPredictionsTotalTransitions×100 14

Binomial confidence intervals were used to quantify uncertainty around prediction accuracy. Prediction accuracy was retained as the primary short-term model-performance metric because it directly quantifies the proportion of correctly predicted state transitions across held-out sessions.

Stationary distribution consistency

Long-term agreement between model-predicted and empirically observed occupancies was evaluated using Kullback–Leibler divergence:

DKL(P‖Q)=∑iP(i)logP(i)Q(i) 15

where P is the empirically observed stationary distribution and Q is the model-predicted stationary distribution. Kullback–Leibler divergence was retained as the primary distributional-agreement metric because it directly quantifies the discrepancy between empirical and model-predicted stationary occupancies.

Variability across sessions and recordings

To assess reproducibility, transition matrices were compared using normalized Frobenius distance:

dF(P1,P2)=‖P1-P2‖F‖P1‖F 16

where P1 and P2 are two transition matrices being compared and ‖·‖F is the Frobenius norm.

Together, these analyses provide a multidimensional evaluation of model fidelity. Prediction accuracy assesses short-term model performance, Kullback–Leibler divergence tests long-term agreement between empirical and model-predicted stationary distributions, entropy rate reflects behavioral flexibility, and Frobenius-distance comparisons capture reproducibility across sessions and recordings. Integrating these complementary perspectives demonstrates the robustness of UWB-based probabilistic behavioral modeling under both LoS and NLoS conditions.

Reproducibility and data-processing pipeline

To enhance reproducibility, the complete analysis workflow was organized as a stepwise pipeline. First, time-stamped two-dimensional position files (t, x, y) were imported and separated by signal condition (LoS or NLoS). Second, localization errors were computed relative to the synchronized video-derived ground truth and summarized using RMSE, empirical cumulative distribution functions, Bernoulli success probabilities, and Shannon entropy. Third, continuous trajectories were converted into symbolic behavioral-state sequences using the operational definitions in Table 1. Fourth, empirical transition matrices were estimated from consecutive state pairs and used to compute stationary distributions, entropy rate, persistence probabilities, prediction accuracy, Kullback–Leibler divergence, and Frobenius-distance comparisons. Finally, all summary tables and figures were generated from the processed files using the analysis scripts deposited in the OSF repository. This pipeline provides a direct path from tracking coordinates to the reported probabilistic behavioral metrics.

Results

The Results are organized to follow the analytical workflow described in the Methods: behavioral-state transition structure is presented first, followed by graph-based transition visualization, information-theoretic and Bernoulli reliability analyses, UWB system-performance summaries, and the link between channel capacity and positioning accuracy.

Behavioral transition matrices

First-order Markov chain models (Durbin et al., 1998) revealed structured organization in rodent activity. To visualize how LoS and NLoS conditions altered these patterns, we plotted the change in transition probabilities relative to the baseline in Fig. 2. This split-cell difference heatmap highlights the specific transitions that were most affected by signal quality. For context, the strongest transitions in the baseline data were exploring → feeding (P=0.30) and feeding → resting (P=0.20), forming a recurrent exploratory–feeding–resting cycle. Direct resting → burrowing transitions were rare (P<0.05), suggesting burrowing typically followed exploratory activity.

Figure 2 summarizes the baseline transition probabilities and the LoS–NLoS deviations from this baseline. Session-level consistency was high, with inter-session Frobenius norm differences <0.12, indicating reproducible transition patterns across recordings. Session-level variability was most pronounced in transitions involving exploring and burrowing, reflecting differences in exploratory drive and burrowing tendencies across recordings.

Stationary distributions derived from transition matrices closely matched empirically observed occupancies (mean Kullback–Leibler divergence <0.04), confirming that the models captured long-term behavioral tendencies. Because the present reanalysis was based on a single-rodent proof-of-concept dataset, reproducibility was evaluated descriptively using normalized Frobenius-distance comparisons across sessions. Inter-session distances were <0.12, providing a direct matrix-level measure of reproducibility, whereas the largest session-level variability was observed in transitions involving exploring and burrowing.

Entropy-rate values further distinguished LoS and NLoS conditions: under NLoS, the Markov-chain entropy rate increased to 1.28±0.04 bits per transition versus 1.10±0.03 bits per transition under LoS, reflecting greater next-state unpredictability when localization reliability decreased. Because entropy rate was summarized at the session level, this LoS–NLoS entropy-rate comparison was interpreted descriptively rather than as a primary inferential test.

Figure 3 provides a detailed visualization of the session, complementing the transition matrices. The top panel illustrates the short-term dynamics by showing the moment-to-moment behavioral sequences, while the bottom panel quantifies the long-term organization by summarizing the total time allocated to each state. Model-performance metrics across sessions are summarized in Table 2, which reports prediction accuracy, Kullback–Leibler divergence, and Markov-chain entropy-rate values used to evaluate reproducibility.

Fig. 3.

Fig. 3

Comprehensive visualization of a behavioral session. Top: A timeline showing the sequence and duration of discrete behavioral states derived from UWB sensor tracking. Bottom: A summary bar chart quantifying the total percentage of time spent in each state, which represents the empirically observed stationary distribution

Table 2.

Model performance across sessions. Prediction accuracy (PA), Kullback–Leibler divergence (KL), and Markov-chain entropy rate demonstrate stable reproducibility across sessions

Session PA (%) KL Entropy rate (bits/transition)
1 83.1 0.035 1.21
2 81.7 0.041 1.18
3 82.9 0.038 1.23
4 84.0 0.033 1.20
Mean ± SD 82.9 ± 1.0 0.037 ± 0.003 1.21 ± 0.02

State transition graphs

Graph-based analyses provided a complementary view of behavioral connectivity, as shown in Fig. 4. Across sessions, exploring consistently emerged as a behavioral hub, with the highest centrality (mean 0.41), linking active and resource-directed states. Conversely, burrowing had the lowest connectivity (mean 0.12), consistent with its role as a more terminal state.

Fig. 4.

Fig. 4

Revised state-transition diagram of rodent behavior. Directed curved arrows indicate unidirectional transition probabilities between behavioral states, with each probability label positioned next to its corresponding arrow to avoid ambiguity between reciprocal transitions. Node size is proportional to the stationary distribution, and the value inside each node represents the persistence probability for that state

Graph density averaged 0.68±0.07, indicating a moderately interconnected behavioral network. Variability was greatest in exploring ↔ burrowing transitions, reflecting session-level differences in exploratory drive. Modularity analysis revealed stable clustering of exploring and feeding (Q=0.42±0.05), whereas resting and burrowing formed peripheral modules. The average shortest path length was 1.87±0.12, showing most states were accessible within two transitions.

Information-theoretic and probabilistic results

Information-theoretic analyses revealed systematic condition-dependent effects. The full distribution of localization error entropy under both conditions is visualized in Fig. 5a, showing a clear increase in both the mean and the variance of entropy from LoS (mean: 1.15 bits) to NLoS (mean: 1.78 bits). The full cumulative distribution of localization errors is shown in Fig. 5b. This ECDF plot, with the 20-mm threshold and annotated empirical success probabilities, visualizes the probability of achieving any given error threshold. For instance, at the 20-mm threshold indicated by the dashed line, the empirical success probability declined from 63.2% under LoS to 27.7% under NLoS. A two-proportion test confirmed that this reduction was statistically significant (p<0.001), with an absolute difference of 35.5 percentage points and a 95% confidence interval of 33.8–37.2 percentage points.

Fig. 5.

Fig. 5

Comparison of information-theoretic measures under LoS and NLoS conditions. (a) The raincloud plot shows the full distribution of Shannon entropy. (b) The ECDF plot shows the cumulative probability of localization error, with the 20-mm threshold and empirical success probabilities explicitly annotated. At this threshold, the empirical success probability was 63.2% under LoS and 27.7% under NLoS, confirming reduced fine-scale localization reliability under NLoS

Markov analysis further indicated that state persistence decreased from 68% in LoS to 52% in NLoS (see Table 3), demonstrating more variable and fragmented sequences when tracking fidelity declined. A paired state-level comparison across the four behavioral categories showed that this persistence reduction was significant (t(3)=11.32, p=0.0015), with a mean decrease of 16.3 percentage points and a 95% confidence interval of 11.7–20.8 percentage points.

Table 3.

State persistence probabilities under LoS and NLoS conditions. Persistence (the diagonal of the transition matrix) decreased significantly under NLoS, indicating more fragmented behavior

State Persistence (LoS) Persistence (NLoS)
Resting 0.68 0.50
Exploring 0.62 0.50
Feeding 0.70 0.52
Burrowing 0.72 0.55
Average 0.68 0.52

UWB sensor system performance

To validate suitability for behavioral modeling, UWB sensor signal integrity and positioning accuracy were evaluated. Shannon–Hartley estimates (“Signal integrity modeling” section) indicated theoretical channel capacities exceeding 50 Mbps under both LoS and NLoS, despite reduced SNR in NLoS.

Empirical localization errors were approximately 20 mm under LoS and 35 mm under NLoS. Thus, LoS performance falls within the approximate range reported for high-end video tracking systems (15–25 mm), whereas NLoS performance shows reduced precision relative to that range while remaining suitable for coarse behavioral-state segmentation (Sayfoori et al., 2025).

Theoretical vs. practical channel capacity and positioning

Although NLoS reduced SNR, practical link throughput remained sufficient for continuous high-frequency tracking. Errors under both conditions remained within ethologically relevant thresholds, enabling robust segmentation and probabilistic modeling. Table 4 summarizes the relationship between SNR, theoretical capacity, throughput, and observed error.

Table 4.

Comparison of UWB sensor localization performance under LoS and NLoS conditions. SNR decreases under NLoS, reducing theoretical capacity and increasing error, while practical throughput (PL) remains stable

Condition SNR (dB) TC (Mbps) PL (Mbps) Error (mm)
LoS 20 3329.1 6.8 20
NLoS 10 1729.7 6.8 35

Discussion

This study demonstrates that information-theoretic and probabilistic tools provide a deeper interpretation of UWB-based sensor tracking. The framework links physical signal quality to behavioral variability, showing how impairments in SNR cascade into uncertainty, reduced reliability, and altered state transitions. The results in Figs. 2–5 trace this physics-to-behavior pathway: from structured transition patterns and connectivity graphs to entropy- and Bernoulli-based quantification of uncertainty and reliability. The observed increase in Markov-chain entropy rate under NLoS conditions is likely driven by the corresponding decrease in state-persistence probabilities (the diagonal elements of the transition matrix) and the diffusion of probabilities to off-diagonal elements, reflecting more fragmented and unpredictable behavioral sequences.

Relative to our earlier Sensors Journal publication (Sayfoori et al., 2025), which established technical accuracy, the present work contributes a probabilistic analysis that transforms positional data into models of behavioral dynamics. Deterministic metrics provide point estimates of fidelity, whereas the probabilistic approach quantifies uncertainty, likelihood of success, and sequential dependencies, supporting reproducible behavioral phenotyping and aligning with calls for quantitative rigor in preclinical neuroscience (Luxem et al., 2022; Pereira et al., 2020).

Integrating Shannon–Hartley capacity analysis provides a mechanistic link: reductions in SNR limit channel capacity, degrade localization reliability, and elevate behavioral entropy (Molisch, 2011; Shannon, 1948). This connection unifies communication theory with ethology by showing how physical constraints manifest as higher-order variability in observed behavior.

Although the present study focuses on UWB-based localization, the proposed probabilistic modeling layer is not restricted to UWB signals. Once time-stamped two-dimensional coordinates are available, the same entropy, Bernoulli-threshold, stationary-distribution, and Markov-chain analyses can be applied to trajectories obtained from video-based tracking or other center-of-mass localization systems. In this sense, UWB provides the physical-layer case study used here to examine how signal degradation propagates into behavioral uncertainty, whereas the computational framework itself is sensor-agnostic and can support broader quantitative ethology workflows, including open-source video-tracking pipelines (Hsu & Yttri, 2021; Pereira et al., 2020).

This broader interpretation is consistent with prior spatial-behavior studies showing that center-of-mass trajectories can be transformed into quantitative descriptors of behavioral dynamics. In particular, León et al. demonstrated that spatial location, entropy-like measures, divergence, and multidimensional trajectory features can reveal structured behavioral organization in modified open-field settings and machine-learning-assisted behavioral analysis (León et al., 2020, 2021). These studies support the present work by situating our UWB-derived probabilistic metrics within a broader behavioral-analysis tradition rather than treating them only as engineering-performance outputs.

Beyond methodology, the framework addresses a practical need for quantitative, reproducible markers sensitive to dise-ase progression and pharmacological interventions. Elevated entropy in exploratory transitions may indicate fragmented search strategies in anxiety models, while changes in persistence probabilities could reveal drug-induced stabilization of feeding–resting cycles, highlighting translational potential. For instance, in a preclinical mouse model of a neurodegenerative disorder like Huntington’s disease, subtle behavioral fragmentation often precedes the onset of overt motor defi-cits. We hypothesize that our probabilistic metrics could serve as powerful early-stage biomarkers. An affected animal might exhibit a measurable increase in Markov-chain entropy rate as its movements become more disorganized, or a dec-rease in persistence probabilities for states such as resting or feeding as it struggles to maintain focused behaviors. Detecting such subtle changes long before they are visible through traditional scoring methods could provide a crucial window for evaluating the efficacy of therapeutic interventions.

Limitations and future directions

Limitations

The first-order Markov assumption neglects higher-order dependencies and context, which can matter in memory- or decision-based tasks. Non-stationarity in social or perturbed environments may limit generalizability. Data sparsity for rare transitions (e.g., resting → burrowing) can destabilize estimates, motivating hierarchical Bayesian approaches or hidden Markov models (HMMs) (Sayfoori et al., 2025). The behavioral state segmentation relies on specific kinematic thresholds (e.g., speed and duration); the sensitivity of the probabilistic outputs to variations in these parameters was not explored and remains an area for future validation. Because this study reanalyzed a single-rodent localization dataset, session order and counterbalancing were not manipulated as independent experimental factors. Future prospective experiments should include multiple animals and counterbalance LoS and NLoS recording order across subjects to further separate signal-condition effects from possible order, fatigue, or habituation effects.

Future work

Extensions include multi-animal tracking with interaction modeling, and multimodal integration (e.g., EEG or cardiovascular signals) for joint neural–behavioral inference. Systematic benchmarking against computer vision pipelines (Hsu & Yttri, 2021; Pereira et al., 2020) will further clarify requirements for reproducibility, scalability, and annotation. Future studies could also test the framework’s performance in more complex, three-dimensional, or enriched environments, where behavioral states may be more diverse and challenging to classify.

Conclusion

This study establishes a novel framework that transforms high-precision UWB sensor localization data into a rich source of probabilistic behavioral information. By integrating information-theoretic and Markovian analyses, we demonstrated that physical-layer signal impairments directly propagate to behavioral metrics. Specifically, under non-line-of-sight conditions, localization error entropy increased from 1.15 to 1.78 bits, the probability of achieving sub-20-mm accuracy declined from 63.2% to 27.7%, and behavioral state persistence decreased from 68% to 52%. The robustness of our framework was validated by the close match between model-predicted and empirical stationary distributions (KL divergence <0.04) and a predictive accuracy exceeding 82% across sessions.

By reframing UWB sensor trajectories as a probabilistic information source rather than a simple locator, our work provides an interpretable, reproducible, and scalable methodology for quantitative behavioral phenotyping. This enables the sensitive detection of phenotypic changes in disease models, the evaluation of pharmacological interventions, and longitudinal monitoring. Furthermore, the approach establishes a platform for multimodal neuroscience; integrating these probabilistic behavioral markers with physiological recordings, such as EEG, opens new avenues for mechanistic studies of brain–behavior relationships.

Taken together, these findings position this UWB-based sensor probabilistic approach as a precise, resource-efficient, and powerful complement to video-based systems, poised to accelerate translational research in preclinical and systems neuroscience.

Open practices statement

The processed, de-identified data, materials, final figures, reproducibility tutorial, provenance manifest, and analysis scripts required to reproduce the reported figures and probabilistic metrics are available on the Open Science Framework at https://osf.io/s4ug9/. The study was not preregistered (Sayfoori and Cao 2025).

Acknowledgements

The authors thank the University of California, Irvine, for institutional support.

Author Contributions

R.S. and H.C. conceived the study. R.S. performed the data analysis, created the figures, and wrote the manuscript. H.C. supervised the project, acquired funding, and revised the manuscript. Both authors approved the final manuscript.

Funding

This work was supported in part by the National Science Foundation EFRI Award #2422412 (H.C.).

Availability of data and materials

Processed, de-identified datasets and all analysis code supporting this study are publicly available through the Open Science Framework (OSF): https://osf.io/s4ug9/. The repository includes final figures, a provenance manifest (docs/MANIFEST. json), a reproducibility tutorial (docs/TUTORIAL.md), processed data (errors, state sequences, transition matrices, and summary metrics), and analysis scripts required to regenerate the reported figures and probabilistic metrics (raw data not included) (Sayfoori and Cao 2025).

Declarations

Ethics approval and consent to participate

No new animal experiments were conducted for the present study. The analysis reuses a previously collected localization dataset described in Ref. Sayfoori et al. (2025); ethical approval and animal-procedure details for the original data collection were reported in the original study.

Consent for publication

Not applicable. The manuscript contains no data from human participants or identifiable individuals.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  1. Anderson, C., & Johnson, R. (2015). Markov chains for modeling weather patterns: A case study. Journal of Applied Meteorology and Climatology,54(6), 1231–1243. [Google Scholar]
  2. Bush, A. C., & Larkins, C. (2005). Hidden Markov models for behavioral state identification in animals. Behavior Research Methods,37(4), 514–523. [Google Scholar]
  3. Durbin, R., Eddy, S. R., Krogh, A., & Mitchison, G. (1998). Biological sequence analysis: Probabilistic models of proteins and nucleic acids. Cambridge, U.K.: Cambridge University Press. [Google Scholar]
  4. Guo, Y., Chen, L., & Li, X. (2021). High-accuracy indoor localization for animal tracking using UWB sensor technology. Sensors,21(14), 4675.34300417 [Google Scholar]
  5. Hsu, A.I., & Yttri, E.A. (2021). B-SOiD: An open source unsupervised algorithm for discovery of spontaneous behaviors. eLife, 10, e63720. [DOI] [PMC free article] [PubMed]
  6. Jurafsky, D., & Martin, J. H. (2019). Speech and language processing (3rd ed.). Upper Saddle River, NJ, USA: Prentice Hall. [Google Scholar]
  7. Kalman, R. E. (1960). A new approach to linear filltering and prediction problems. Transactions of the ASME-Journal of Basic Engineering,82(1), 35–45. [Google Scholar]
  8. León, A., Hernández, V., Huerta, U., Hernández-Linares, C. A., Toledo, P., Avendaño-Garrido, M. L.,... Guzmán, I. (2020). Ecological location of a water source and spatial dynamics of behavior under temporally scheduled water deliveries in a modified open-field system: An integrative approach. Frontiers in Psychology, 11, Article 577903. 10.3389/fpsyg.2020.577903 [DOI] [PMC free article] [PubMed]
  9. León, A., Hernández, V., López, J., Guzmán, I., Quintero, V., Toledo, P., & Escamilla, E. (2021). Beyond single discrete responses: An integrative and multidimensional analysis of behavioral dynamics assisted by machine learning. Frontiers in Behavioral Neuroscience,15, 681771. 10.3389/fnbeh.2021.681771 [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Luxem, B., Fuhrmann, M., Kürschner, T., et al. (2022). Identifying behavioral structure from deep variational embeddings of animal motion. Nature Methods,19, 1482–1492. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Markov, A. A. (1906). Extension of the law of large numbers to quantities depending on each other. Izvestiya Fiziko-Matematicheskogo Obshchestva pri Kazanskom Universitete,15(4), 135–156. [Google Scholar]
  12. Molisch, A. F. (2011). UWB propagation channels: Theory, Measurement, and Modeling (2nd ed.). Hoboken, NJ, USA: Wiley-IEEE Press. [Google Scholar]
  13. Papoulis, A., & Pillai, S. U. (2002). Probability, random variables, and stochastic processes (4th ed.). New York, NY, USA: McGraw-Hill.
  14. Patterson, T. A., Thomas, L., Wilcox, C., Ovaskainen, O., & Matthiopoulos, J. (2008). State-space models of animal movement. Ecological Modelling,219(2), 161–174. [DOI] [PubMed] [Google Scholar]
  15. Pereira, T. D., Shaevitz, D. E., & Murthy, M. (2020). Quantifying behavior to understand the brain. Nature Neuroscience,23(12), 1537–1549. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Polley, D. B., Kvašňák, E., & Frostig, R. D. (2004). Naturalistic experience transforms sensory maps in the adult cortex of caged animals. Nature,429(6992), 67–71. [DOI] [PubMed] [Google Scholar]
  17. Rabiner, L. R. (1989). A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of the IEEE,77(2), 257–286.
  18. Sayfoori, R., & Cao, H. (2025). Linking signal integrity to probabilistic models of behavioral dynamics — data & code. Open Science Framework. Retrieved from https://osf.io/s4ug9/ [DOI] [PMC free article] [PubMed]
  19. Sayfoori, R., Huang, M.-H., Naderi, A., Bhatti, M., Frostig, R. D., & Cao, H. (2025). High-Precision UWB Sensor-Based Real-Time Locating System for Rodent Behavioral Studies. IEEE Sensors Journal,25(13), 25551–25559. 10.1109/JSEN.2025.3572031 [DOI] [Google Scholar]
  20. Schreiber, T. (2000). Measuring information transfer. Physical Review Letters,85(2), 461–464. [DOI] [PubMed] [Google Scholar]
  21. Shannon, C.E. (1948). A mathematical theory of communication. Bell System Technical Journal, 27, 379–423, (Also pp. 623–656)
  22. Wiltschko, A. B., Johnson, M. J., Iurilli, G., Peterson, R. E., Katon, J. M., Pashkovski, S. L.,... Datta, S. R. (2015). Sub-second structure in mouse behavior. Neuron, 88(6), 1121–1135. [DOI] [PMC free article] [PubMed]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Processed, de-identified datasets and all analysis code supporting this study are publicly available through the Open Science Framework (OSF): https://osf.io/s4ug9/. The repository includes final figures, a provenance manifest (docs/MANIFEST. json), a reproducibility tutorial (docs/TUTORIAL.md), processed data (errors, state sequences, transition matrices, and summary metrics), and analysis scripts required to regenerate the reported figures and probabilistic metrics (raw data not included) (Sayfoori and Cao 2025).


Articles from Behavior Research Methods are provided here courtesy of Springer

RESOURCES