How Many Bits per Day Does Depression Tracking Need?

Phones and wearables that track mental health stream large amounts of behavioral data (location, screen use, sleep, typed text) to a server. The server only needs to answer a narrow question: is this person's depression risk stable, rising, or recovering? We propose to measure, and then exploit, how little information that question requires. The device runs a small encoder and sends a variable number of bits each day. The bits carry only what changes the server's running estimate of the person's trajectory, given what the server already knows. On stable days it sends almost nothing. Around transitions it sends more. A controller decides when to spend bits and local computation under a long-term energy budget.

The bet is not mainly about saving bandwidth. It is that a hard cap on the information leaving the device acts as a principled filter against cohort-specific noise. If the code can only carry trajectory-relevant content, it should carry less of the incidental behavior that differs between universities, countries, or years. That incidental behavior is exactly what makes these models collapse when moved to a new population. The project produces two things: the first measured rate-distortion curve for a longitudinal mental-health state, and a test of whether operating near the low end of that curve transfers better across cohorts than an unconstrained model.

Core Claim

Semantic communication is the idea of transmitting only the meaning a receiver needs rather than reproducing every bit. Its theory models a source as "many-to-one": many different observations count as the same meaning. A Theory for Semantic Channel Coding With Many-to-One Source proves coding theorems for such sources, using a "semantic Fano inequality" that bounds semantic rather than bit errors. Fundamental Limitation of Semantic Communications: Neural Estimation for Rate-Distortion estimates the semantic rate-distortion function, meaning the minimum rate needed to keep the semantic error below a target. On MNIST it finds a sharp knee: labels survive at about $\log_2(10)$ bits even when pixel reconstruction is poor. Both works treat memoryless sources with an instantaneous label. The gap list in the research file confirms that nobody has defined or estimated this quantity when the semantic state is a trajectory.

Our claim has three parts. First, for passive-sensing depression tracking, the trajectory-level rate-distortion curve has a knee at a very small number of bits per day. Second, most of those bits are concentrated on a minority of days near state transitions. Third, codes trained near the knee generalize across cohorts at least as well as, and we hypothesize better than, the same architecture trained without a rate constraint. The third part is the one that could fail, and it is what makes the work worth doing.

The motivating evidence comes from longitudinal mental-health research. De Choudhury et al. and Park et al. report that the speed and shape of behavioral change predict depressive episodes better than averages. Language and Mental Health: Measures of Emotion Dynamics from Text as Linguistic Biosocial Markers finds that rise and recovery rates carry condition-specific signal. If the meaning lives in change, a code that pays only for change should lose little.

The Objective

At day $t$ the device observes behavior $x_t$ and emits a quantized, entropy-coded message $z_t$. The server keeps a recurrent state $h_{t-1}$ built from past messages and predicts a semantic state $\hat{s}_t$. The semantic state has two parts: the term-level depression label, and the sign of the next weekly change in self-reported depression score. We train

$$ \mathcal{L} = \sum_t \Big( d_s(s_t, \hat{s}_t) + \beta \, \mathbb{E}\big[-\log_2 p_\theta(z_t \mid h_{t-1})\big] \Big), $$

where $d_s$ is the semantic distortion (cross-entropy on both parts of $s_t$), $p_\theta$ is a learned probability model for messages conditioned on the server's current state, and $\beta$ sets the price of a bit. The second term is the actual code length in bits under that conditional model, not a variational bound. Sweeping $\beta$ therefore traces a measured operational rate-distortion curve in real bits per day.

Conditioning the probability model on $h_{t-1}$ is what makes this "innovation coding": content the server can already predict costs almost nothing to send. This is the temporal analogue of the shared probability graph in A Joint Communication and Computation Design for Semantic Wireless Communication with Probability Graph. In that system the transmitter drops relations the receiver can infer from a static shared graph. Our shared knowledge is instead a learned, evolving state.

The joint communication-computation layer uses Lyapunov drift-plus-penalty control. This is a method for meeting long-run average constraints by solving a small optimization each time slot, without knowing future channel or arrival statistics. The penalty is semantic distortion, and a virtual queue $Q_t$ tracks overspending against an energy budget $\bar{E}$. Each day the controller picks an encoder depth $k_t$ (a cheap shallow or more expensive deeper on-device encoder) and a rate level $\beta_t$ by minimizing

$$ V \, \hat{d}_s(k_t, \beta_t) + Q_t \, \big(E^{\text{comp}}(k_t) + E^{\text{radio}}(R_t, \text{channel}_t)\big), $$

where $V$ trades accuracy against energy and $\hat{d}_s$ is a predicted distortion. This reuses the control machinery of Adaptive resource optimization for edge inference with goal-oriented communications and Lyapunov-Based Optimization of Edge Resources for Energy-Efficient Adaptive Federated Learning. Our version differs in three ways. A single variable-rate model replaces discrete pre-trained encoder pairs, addressing a limitation that paper itself names. The workload is a sequence with memory rather than independent images. And the distortion predictor uses the server's uncertainty about the trajectory.

Research Program

The first stage is measurement. We build the encoder, the recurrent server, and the conditional probability model on GLOBEM Dataset: Multi-Year Datasets for Longitudinal Human Behavior Modeling Generalization. GLOBEM has 497 participants and 705 person-years across four yearly cohorts, DS1 to DS4, with weekly PHQ-4 surveys (a short depression and anxiety questionnaire) and term-end BDI-II scores (a longer depression inventory). We sweep $\beta$ over roughly three orders of magnitude and report semantic distortion against bits per day.

We test whether the curve has a knee and where it sits relative to the raw entropy of the daily feature vector. We also run two diagnostics: whether bits cluster near weeks where PHQ-4 changes, and whether the bits that are spent align with emotion-dynamics quantities such as rise and recovery.

The second stage is generalization. We use leave-one-cohort-out evaluation on GLOBEM, following the protocol of GLOBEM: Cross-Dataset Generalization of Longitudinal Human Behavior Modeling. We also use leave-one-country-out evaluation on DiversityOne, which has 782 students in eight countries, with raw smartphone signals and daily mood. We ask whether held-out-cohort performance as a function of $\beta$ peaks at a nonzero rate constraint.

A cross-cohort, cross-country design is our available stand-in for cross-institutional deployment. It is weaker than the hospital-to-hospital setting where EchoGen: Generating Conclusions from Echocardiogram Notes documents a "transferability wall." We do not claim clinical-site transfer. DiversityOne's country splits are the closest analogue, since documentation and device habits differ by site.

Within this stage we also test "knowledge-base mismatch," which semantic communication theory names as a source of decoding error. We pair a server state and probability model trained on one cohort with devices from another. We then measure how much the conditional code length inflates. That inflation, in bits, is a direct, label-free measure of how far a new institution's behavior departs from what the server expects. We will check whether it predicts the accuracy drop at that site.

The third stage is the resource layer. We use DiversityOne's raw accelerometer and connectivity streams, where uploading raw data is not negligible, and published device energy models (no measured phone energy figures are in our file, so these are modeled). We compare three options under the same energy budget: uploading raw data for server-side features, computing standard features on-device and uploading them, and the Lyapunov-controlled innovation code.

Baselines

The naive reference points are the majority-class predictor for classification and the training-mean predictor for regression. They matter because both GLOBEM and BALMS show that sophisticated methods often fail to beat them. GLOBEM reports that traditional and domain-generalization baselines across cohorts barely exceed a majority balanced accuracy of 0.500. BALMS: Benchmarking Agentic LLMs for Longitudinal Mental Health Sensing reports a mean-baseline MAE of 0.58 on DiversityOne. Any result we present must clear these on held-out cohorts, not just within a cohort.

The strongest existing method for cross-cohort transfer on GLOBEM is Reorder. It is a self-supervised task that predicts the temporal order of shuffled behavior sequences, and GLOBEM reports it improves cross-dataset balanced accuracy by 15.9% over its baseline. It is the right competitor because it attacks the same failure, cross-cohort collapse, by enforcing temporal structure, which is close to our own intuition. We run it with the GLOBEM codebase's feature set, splits, and a matched hyperparameter search budget. Beating it means higher mean leave-one-cohort-out balanced accuracy over the four held-out cohorts, with paired bootstrap intervals that exclude zero. We will also combine Reorder with our rate constraint, because the two may be complementary rather than rival.

For sequence models on the same data, we use AttentiveGRUAE: An Attention-Based GRU Autoencoder for Temporal Clustering and Behavioral Characterization of Depression from Wearable Data. It is a multi-task recurrent autoencoder that reports depression AUC 0.74 on DS1 and DS2 and 0.61 on the external DS3 and DS4 cohorts. We reproduce that discovery-to-external split exactly. Beating 0.61 external AUC at a rate below a few dozen bits per day would be a clear win; matching it at that rate is already a compression result. On DiversityOne the strongest reported number in our file is Claude-Haiku-4.5 at 0.42 MAE on BALMS task T1. We report against it on the same task definition, while noting that it is a zero-shot model and not a trained competitor.

The ablations isolate the key ingredient, a trajectory target with a rate that is conditional on the server's state. The first is the identical architecture with $\beta = 0$, the full-rate model. It tells us whether the rate constraint helps or merely costs nothing. The second is a variational information bottleneck with an instantaneous weekly label and an unconditional prior. It tests whether "trajectory" and "innovation" matter or whether any bottleneck suffices. The third matches the total bit budget but spreads it uniformly across days. It tests whether event-driven allocation is real.

For the resource layer, the baseline is the discrete encoder-switching Lyapunov controller of the goal-oriented edge inference paper, adapted to our encoders. It reports about 82% GTSRB accuracy with a 48-value feature tensor, though that number is on images and only indicates that method's operating regime. We also compare against fixed daily on-device features. Winning means lower modeled energy at equal held-out distortion.

Why not just…?

Why not just compute daily summary features on the phone and upload them? This is the most serious threat to any bandwidth claim. Daily summaries are a few kilobytes, so radio energy for them is small. BALMS also finds that compact abstracted features beat raw sensor series for LLMs. We concede the point for summary-level data, and so the core claim rests on generalization and on the measured curve, not on bandwidth. The full-rate ablation is exactly "upload good features." If it transfers across cohorts as well as the rate-constrained code, the generalization hypothesis is false and we will say so. Energy savings are claimed only for the raw-stream setting in stage three.

Why not just apply domain generalization or Reorder? GLOBEM shows that nine standard domain-generalization methods, including domain-adversarial training, Mixup, and invariant risk minimization, perform near the 0.500 majority level across cohorts. That rules out the generic route. Reorder is a real competitor, which is why it is our strongest baseline and why we also test it combined with our method. What our approach adds that Reorder cannot is a measurable quantity, bits per day and code-length inflation at a new site. That quantity serves as a shift detector even when Reorder ties on accuracy.

Why not just use a standard information bottleneck or heavy regularization? A plain bottleneck on the weekly label might give the same transfer benefit, which would make the temporal framing decorative. The instantaneous-label, unconditional-prior ablation settles this. We expect it to underperform if trajectory meaning lives in change, as the emotion-dynamics and De Choudhury findings suggest. If it does not, the contribution shrinks to "bottlenecks help cross-cohort transfer," which is still useful but smaller.

Why not just prompt a large language model with the raw history? BALMS reports that most zero-shot agents fail to beat the mean baseline, that longer histories dilute signal, and that tool-using agents invent thresholds. Context Clues: Evaluating Long Context Models for Clinical Prediction Tasks on EHR Data shows quadratic-attention models scaling poorly on long clinical sequences. We include the BALMS number as a reference, not as the main competitor.

Proposed Experiments and Decisive Checks

All experiments use GLOBEM DS1 to DS4 and DiversityOne. We report balanced accuracy and AUROC for term-level depression, accuracy on the direction of weekly PHQ-4 change, MAE for daily mood, measured bits per day, and modeled device energy. Every number is averaged over held-out cohorts or countries with participant-level bootstrap intervals.

The first decisive check is whether a knee exists. Within-cohort semantic distortion should stay near its full-rate value down to some small rate and then rise sharply. If distortion instead degrades smoothly from the start, the many-to-one picture does not describe this source, and the theory adds little.

The second check is whether bits concentrate around transitions. The fraction of bits spent in weeks with a PHQ-4 change should clearly exceed the fraction of such weeks.

The third and central check is whether held-out-cohort balanced accuracy, plotted against $\beta$, peaks at a nonzero rate constraint, and whether that peak exceeds both the full-rate model and Reorder. A flat or monotonically decreasing curve falsifies the generalization claim.

The fourth check is whether code-length inflation under a mismatched server predicts the per-site accuracy drop, measured by rank correlation across held-out countries.

The fifth check is whether, on raw DiversityOne streams, the controlled innovation code reaches the full-rate model's held-out distortion at lower modeled energy than both raw upload and fixed on-device features.

The second and third checks carry the scientific claim. The fifth is the engineering payoff, and we treat it as secondary.