Separating Biology from Coding Contagion in Pediatric Long COVID with a Hybrid Preferential-Attachment Model of Diagnosis Accrual

After a SARS-CoV-2 infection, a child's medical record keeps gaining new diagnoses. Some of those diagnoses reflect real downstream biology, such as a respiratory problem followed by a neurological one. Others reflect how healthcare works. A child who already has one post-COVID diagnosis gets more workup and so collects more codes. A diagnosis that has become common across clinics gets assigned more readily to the next child. Current pediatric post-acute studies estimate one excess risk per condition, using propensity-weighted regression on electronic health records (EHRs). That design cannot tell these sources apart. It is also why the most common pediatric complaints, fatigue and concentration difficulty, are so hard to interpret or predict from records.

We propose to treat each child's growing record as a growing network and fit it with a hybrid preferential-attachment model. Preferential attachment is a growth rule in which items that are already well connected attract new links faster ("rich get richer"). Our version adds new diagnoses to children with a separate, estimable parameter for each mechanism. The first is a within-child "diagnosis begets diagnosis" term, whose offset tunes how heavy the tail of per-child diagnosis counts is. The second is a cohort-level popularity term for each diagnosis code, which captures how common that code has become across the cohort and stands in for ascertainment or coding contagion. The third is an organ-system affinity matrix that governs cross-organ spread. Infection status and age modify each parameter. Because EHR timestamps give the exact order in which diagnoses arrive, the arrival-order assumption that makes these models hard to fit elsewhere is satisfied here by construction. The question we answer is whether excess pediatric post-acute burden is biological cross-organ rewiring or record-keeping dynamics, and how that split changes from toddlers to adolescents.

Core Claim

Children infected with SARS-CoV-2 show excess post-acute diagnoses relative to matched controls. We claim this excess can be decomposed into three interpretable and separately identifiable components, and that the decomposition answers questions the per-condition hazard ratios cannot. One question is whether the excess for subjective codes (fatigue, cognitive complaints, sleep) runs mainly through the cohort-popularity channel, which would mark it as ascertainment-sensitive. Another is whether the excess for objective codes runs through the cross-organ affinity matrix. A third is whether the off-diagonal (cross-organ) mass of that matrix grows with age. If the age trend holds, it would give a mechanistic reading of the age gradient reported by Li et al., 2024, who followed 2,001 children after Omicron and found heavier multi-system symptom loads at 12–17 years than at 0–2 years.

The directions play different roles in this proposal. Hybrid preferential attachment supplies the mechanism. Tunable degree distributions supply the knob for the heavy tail of per-child burden. Pediatric post-acute sequelae are the application setting and supply the scientific question.

The Model

For child $i$ at time $t$, let $k_i(t)$ be the number of distinct post-acute diagnosis codes already in the record. Let $n_c(t)$ be the number of children in the cohort who already carry code $c$. Let $S_i(t)$ be the set of organ systems already represented in child $i$'s record. The rate at which child $i$ acquires code $c$, which belongs to organ system $g(c)$, is

$$\lambda_{ic}(t) = \mu_i \,\big(k_i(t) + a\big)\,\big(n_c(t) + b\big)^{\rho}\,\Big(w_{0,g(c)} + \sum_{h \in S_i(t)} w_{h,g(c)}\Big).$$

In this rate, $\mu_i$ is a baseline rate that depends on covariates. The offset $a$ tunes how strongly existing codes accelerate new ones within a child, and therefore how heavy the tail of $k_i$ is. The exponent $\rho \ge 0$ weights cohort-level code popularity. The entries $w_{h,g}$ form the organ-system affinity matrix, and $w_{0,g}$ is the rate of onset in system $g$ in a child with no prior codes. Infection status $E_i$ and age stratum enter as multiplicative shifts on $a$, $\rho$, and the matrix $W$, so each mechanism has its own exposure effect.

Each piece of this rate comes from earlier work, adapted. The additive offset $k + a$ and the batched arrivals, where one visit adds a Poisson-distributed number of codes, come from Sheridan et al.. They grew networks with Poisson edge counts and an offset, obtained a tunable exponent $\gamma = 3 + a/\lambda$, and gave a tractable likelihood. We reuse that likelihood structure on a patient–diagnosis graph with two kinds of nodes rather than claim their closed-form exponent; instead we check the fitted tail of $k_i$ against the observed one. The block affinity term follows the block preferential-attachment model of Tang et al., who proved that maximum-likelihood estimates are consistent when block memberships and arrival order are known. Both conditions hold here, because organ systems come from diagnosis-code chapters and arrival order comes from timestamps. That is a real advantage over the latent-community setting they flag as unsolved. The mix of popularity and affinity mirrors Lee et al.'s PAGA, which showed that degree plus affinity keeps power-law behavior while letting communities carry different local tails. They used static citation networks; we use time-varying patient states, which addresses the "static attributes" limitation of that line of work.

Research Program

The work has three stages.

The first stage is identifiability by simulation. Within-child contagion ($a$) and heterogeneity between children ($\mu_i$) are notoriously hard to tell apart from counts alone. We will therefore generate synthetic cohorts at PEDSnet-like sizes and code vocabularies and measure how well $a$, $\rho$, and $W$ are recovered. We will do this with and without random effects on $\mu_i$, and with timestamps that are exact or coarsened to visit level. This stage tells us which parameters the real data can support before we fit anything clinical.

The second stage fits the model to the pediatric RECOVER EHR data in PEDSnet, the network used by the RECOVER T1D study and the chronic-conditions utilization study. Infected children are matched to test-negative children. As a second comparator group, we use children with documented non-COVID respiratory infection, which separates SARS-CoV-2-specific effects from generic post-viral or post-contact effects. The post-acute window follows the 30–180 day design of Zang et al., 2023. The model is fit separately in the age strata 0–4, 5–11, and 12–20.

The third stage contrasts children with adults by fitting the same model to the adult RECOVER INSIGHT and OneFlorida+ cohorts. The purpose is to test whether the pediatric excess leans more on the popularity channel than the adult excess does.

The main deliverables are three. The first is the exposure effects on $a$, $\rho$, and $W$, with uncertainty, by age. The second is a per-code attribution of excess post-acute burden to the three channels. The third is a released fitting procedure, so the decomposition can be rerun on other post-acute settings.

Baselines

The naive reference point is the per-condition propensity-weighted Cox analysis of Zang et al., 2023. In adults it reports, for example, an adjusted hazard ratio for pulmonary fibrosis of 2.49 (95% CI 2.29–2.72) in INSIGHT. In children, the PEDSnet T1D study reports a non-significant HR of 1.45 (95% CI 0.97–2.16) for diabetic ketoacidosis or severe hypoglycemia. We will rerun this analysis on exactly our matched cohort, windows, and code groupings.

This baseline gives the marginal excess per code. Our first sanity check is that the model reproduces those marginal excesses when its intensities are integrated over the window. If it does not, the decomposition is not trustworthy.

The strongest existing method for both prediction and mechanism on this data is the comparison of regularized Cox models, gradient boosting, and deep networks in Zang et al., 2024. That paper reports a C-index above 0.80 for dementia, heart failure, and acute kidney failure, and about 0.60 for fatigue, sleep disturbance, and anxiety. We will train gradient boosting on the same features plus each child's code history up to the prediction time, with the same hyperparameter search budget as our model. For the decomposition question itself, no reported result was found on Lacuna, because no prior study attributes pediatric post-acute burden to separate mechanisms.

The competitor that matters most mechanistically is a multivariate self-exciting point process (a Hawkes process). In this model each organ system's past codes raise the rate of future codes in every system, which is our model with $\rho = 0$ and no cohort coupling. It shares our timestamps, covariates, and estimation budget.

Setting $\rho = 0$ in our own model is the key ablation, because it isolates the cohort-popularity ingredient. A further ablation sets $W$ to be diagonal, which isolates cross-organ spread.

Beating the baselines has a specific meaning here. Our model must improve held-out log-likelihood of the next code over the Hawkes model and over the $\rho = 0$ ablation, particularly for subjective codes. It must also show a SARS-CoV-2 effect on at least one channel that survives the non-COVID respiratory comparator. Improving on the 0.60 C-index for fatigue is a secondary, not required, outcome.

Why not just…?

Why not just run per-condition propensity-weighted regression, as RECOVER already does? It answers a different question. A hazard ratio for fatigue cannot say whether the fatigue arrived because the child already had three other codes, because fatigue codes were becoming routine across clinics, or because a respiratory problem preceded it. Regression stays in the program as the calibration target. The decomposition is what is new, and the comparison of integrated intensities against the hazard ratios shows that the two approaches agree where they should.

Why not just fit a multivariate Hawkes process over organ systems? This is the real threat. It already captures within-child cascades and cross-organ excitation, so our model is only worth building if coupling across the cohort ($\rho > 0$) matters. The experiments settle this directly. If $\rho$ is near zero and held-out likelihood does not improve over the Hawkes fit, we will report the Hawkes decomposition as the result and drop the popularity claim. We expect $\rho$ to matter mostly for subjective codes. That expectation follows from the under-ascertainment of subjective symptoms in young children noted across the pediatric literature and from the poor predictability reported by Zang et al., 2024, but it is a hypothesis, not a finding.

Why not just train a better classifier for pediatric long COVID? Zang et al., 2024 shows that flexible learners stall near a C-index of 0.60 on exactly the subjective outcomes that dominate in children. Fatigue and concentration difficulty account for 12.1% and 22.1% of cases in the Beijing cohort of Li et al., 2024. If much of that signal is ascertainment, a classifier will learn coding habits rather than biology, and a better score would not make it more interpretable. We still run gradient boosting with the same budget, so any predictive gain or loss is measured rather than assumed.

Why not just cluster co-occurring codes, as the 4CE sub-phenotyping did? The 4CE study found seven temporal sub-phenotypes with Louvain community detection on learned representations of hospitalized patients. Clustering describes which codes travel together but not why. The network-medicine bias study shows that networks built from phenotype codes lose their local neighborhood structure when compared against molecular data. That finding constrains our model too. We therefore interpret $W$ as structure among recorded codes, not molecular mechanism, and we make no interactome claims.

Why not just model overdispersed counts with a negative binomial regression? A negative binomial model captures the heavy tail of per-child burden but cannot say whether the tail comes from contagion within a child or from heterogeneity between children. With ordinary counts these are not distinguishable. Our model can only separate them through the ordering of timestamps. The simulation stage tests whether that ordering is informative enough at realistic sizes, and we report $a$ only if recovery passes.

Proposed Experiments and Decisive Checks

The first check is recovery. On simulated cohorts matched to PEDSnet size, $a$, $\rho$, and the off-diagonal sum of $W$ must be recovered within prespecified error, including when random effects on $\mu_i$ are present. Any parameter that fails is reported only descriptively.

The second check is specificity. The SARS-CoV-2 effect on each channel is estimated twice, once against test-negative controls and once against non-COVID respiratory-infection controls. A channel whose effect disappears against the second comparator is labeled post-viral rather than specific to SARS-CoV-2. Negative-control code groups unlikely to be affected by infection, such as injuries, should show no exposure effect on $W$. If they do, residual confounding is present.

The third check is calendar-time behavior of the popularity channel. Ascertainment-driven popularity should grow as clinical awareness of pediatric long COVID spreads. We therefore expect $\rho$ for subjective codes to rise across successive calendar periods in the infected cohort, and expect no comparable rise for objective codes. If $\rho$ is flat over time, we will not interpret it as ascertainment.

The fourth check is the age gradient. The off-diagonal mass of the infected-cohort $W$, minus that of controls, should increase from the youngest to the oldest stratum if the gradient reported by Li et al., 2024 reflects cross-organ spread. If the gradient instead sits in $\rho$, it suggests that younger children's symptoms are under-recorded rather than absent. Either outcome is informative, and the two readings are distinguishable.

The fifth check is prediction. We compare held-out next-code log-likelihood and the 180-day C-index for fatigue and cognitive codes against gradient boosting, the Hawkes model, and the $\rho = 0$ ablation, all on the same splits.