Sam Abbott

Sam Abbott

@seabbs.bsky.social

Real-time infectious disease modelling. Developing methods for outbreak response, surveillance, and pandemic preparedness. samabbott.co.uk Come join me on the epinowcast forum: https://community.epinowcast.org/latest

1.5K followers786 following1.1K posts

Pinned

Sam Abbott reposted

Sam Abbott reposted

New Preprint: A classic property of epidemic time series is that they get increasingly stochastic and episodic at smaller spatial scales. Metapopulation theory says that dynamics that can't persist at the local scale CAN be rescued and stabilized at larger scales ... which is unbelievably cool.

Another casual afternoon in LLM world with a package now existing in 4 languages...

Sam Abbott@seabbs.bsky.social

Had some fun with llms knocking up a little interactive and supporting packages to show various methods for imputing missing onsets under epidemic settings samabbott.co.uk/epidemic-imp...

After quite a long time sitting as a development package epidist is now on CRAN. It extends brms with a framework for epidemiological extensions.

View full thread

In general, I wish as a field this was a more common approach as it lets you have the generality/robustness of widely used tools alongside the tweaks we specifically need

And avoids the we could extend this simple demo tool to do X,Y,Z but won't, as its a PhD project or even worse here is 5 years of papers each adding a small feature that is already widely available outside of domain.

After quite a long time sitting as a development package epidist is now on CRAN. It extends brms with a framework for epidemiological extensions.

View full thread

I am aware of a few users of the development package but please reach out if running into issues or finding feature gaps. Also, please cite this, as this kind of work is very, very, very hard to find funding for (in my experience impossible but can but try!)

Extending brms (and more generally widely available non-domain specific tools) has been something I have wanted to do for a long time so great to see this come together.

After quite a long time sitting as a development package epidist is now on CRAN. It extends brms with a framework for epidemiological extensions.

Sam Abbott reposted

Will be interesting to see what "sticks" from this vibe-coded software revolution. It's clear that you can get to impressive ends really easily (just don't think about the means too much), but maintaining that is much more difficult (see all those "games in a browser" that worked - for about a day).

View full thread

In a follow up I also aim to tackle spatial mixing more deeply as this is curently a modulated gravity model for both provinces and then within health zones. The two options I am exploring are increasing the flexibility of the modulation or backing the central estimate to be flowminder based.

View full thread

The model code and analysis were drafted by a language model, then reviewed and revised under human oversight. The named authors are responsible for that oversight.

Note in this release I see a spike in Rt just before detection. I don't think this is real and I think is driven by an artefact in the symptom onset data (see the Rt estimates by data set for this). There are likely other issues that I will aim to deal with in future releases.

View full thread

This work adds an external view of the current situation, drawing on our understanding of real-time infectious disease dynamics and the infection process behind the observed surveillance counts. We are developing it and encourage feedback, so please get in touch. We support reuse and adaptation.

This release contains quite a bit of refactoring and attempts to make tools for the Bayesian workflow accessible. It continues to run in Github CI and so that constrains what can be done. Here we have added a Markov-Melded health zone patch model to give lower-level outputs.

Who also has this really nice preprint (which I am honestly still digesting) that looks like it could have viral loads shoved into it as a bursy mechanism.... bsky.app/profile/skis...

Stephen Kissler@skissler.bsky.social

I'm excited to share a preprint that's been years in the making: the idea took shape during the COVID pandemic. Anecdotally, people would sometimes spread COVID at work but not at home, and vice versa. Why? One explanation would be if infectiousness is fleeting...

i.e. "This decomposition mirrors within-host viral dynamics: stochastic viral replication early in infection creates variation in the onset of detectable virus (the latent period), while subsequent shedding kinetics are more consistent across individuals (the burst)"

Sam Abbott reposted

I'm excited to share a preprint that's been years in the making: the idea took shape during the COVID pandemic. Anecdotally, people would sometimes spread COVID at work but not at home, and vice versa. Why? One explanation would be if infectiousness is fleeting...

medrxiv.orgHow bursty infectiousness shapes epidemic dynamicsAn epidemic’s expected course is determined by the magnitude and timing of a typical person’s infectiousness — captured, in turn, by the basic reproduction number and the generation-time distribution....

An obvious question from all of this and one we are still exploring is what happens when you jointly model with viral load data. That is still in the works but for now here is the impact of different prior choices (i.e. informed by viral load data and not).

This has been a big collaborative effort with a huge amount of work from Nyall in particular. Some cool follow ups to this to come including thinking about applying the idea to othe diseases and joint fitting with viral load data. Please reach out if interested in being involved!

We also found that in a few case studies a viral load based distribution fit the data better than the distribution used as the best fit in the original study and that this changed the estimated parameters in ways that might have impacted downstream modelling and hence decisions.

The TLDR is that yes you can do this, yes it is fairly elegant (in my opinion), yes you can connect this specialised distribution to common ones with different assumptions,

In conversations (via Epiengange part of the CDC funded insight net project) Nyall, Laren Meyer and I realised that maybe if we thought about the generation time (and its component distributions) as being driven by within host processes in the same way Nyall had been thinking about the incubation

period we could develop an epidemiologically motivated model for the serial interval, generation time, and all its component delays.

Coming back to the Charniga work it would have also enabled us to give some advice beyond try a few things and cross your fingers (i.e your a distribution motivated by the within host mechanisms of your disease).

So nothing else to do? Not quite. Alongside all of this a big gap that remains in using common outbreaks models is understanding what the generation time (i.e time from infection to infection) is and how to model it.

As someone who doesn't love Burrrs I did not initially find this that exciting but after reading more closely I realised that the main motivation for the modified Burrr here was an argument that the incubation period is an emergent property of within host viral kenetics which got me very excited!

The lack of mechanism in that approach is potentially problematic both in that it will struggle under sparse data but also that it can struggle in settings with compound and complex delays such as generation times.

A lot of that work solid and I hope has moved the field forward a bit. However, there was a gap when it came to how to select a distribution for fitting to your data. We said try a few, report all of them, and give an indication of which fits best (via best fit metrics etc. etc.)