Monday, March 23, 2020

Uncertainty in the COVID-19 model

Time for James to Speak to the Nation. Well, Speak to my Reader at least. Rather than subjecting myself to the waffling windbag, here are some fun experiments in parameter estimation that I've been doing.

The setup is very simple. The SEIR model I've been using has 3 main internal parameters, being the reproduction number R0, the latent period, and the infectious period. They can all be estimated to some extent from case studies, but the appropriate numbers to use in a model are not precisely known. Beyond these parameters, the only remaining tunable value is the number of infected people at the start date (this date isn't worth changing itself as you just go up and down the exponential curve). It seems that Ferguson et al picked the biological numbers from the recent literature and then chose the start value to hit a given number of deaths from their simulations on a date in mid-March. No uncertainties are reported in their analysis, though they have used a few different R0 values in some scenarios. So I think it's worth investigating how much the parameters could reasonably vary, and how much difference this might make.

I've just done a very simple tuning, fitting to values at the start of Feb and 20th March. Since the data are essentially exponential there is little point in using more intermediate data. All it can tell me is the rate of growth and its current level.

Priors for the model parameters are chosen rather arbitrarily by me, based on my previous tuning.
R0 ~ N(2.4,0.3)
Latent_p ~ N(4,1)
Infectious_p ~ N(4.5,1)
Start ~ exp(N(-20,1))

All uncertainties quoted at one standard deviation.

Sampling from this prior gives a wide range of possible epidemics, as shown below. The blue plume is the 5-95% range with the median line also drawn. This plume may be a bit misleading as it seems to include the possibility of no epidemic at all! Actually what is happening here is the different parameter sets lead to a different timing of the peak, so at any moment in time quite a lot of them have either not started, or ended. I've plotted a handful of the individual curves as red lines to show that. In fact all parameter sets do lead to a large epidemic, which is an immediate and unavoidable consequence of the R0 value.




Now for the tuning.

For the data....I assume a significant amount of under-reporting in the official case numbers, as discussed by many. Kucharski today suggested the true value (and note this is even for symptomatic cases) was about 16x the reported values, though I'm not sure if this applies from day1. Vallance recently made the heroic claim that the number of cases might be 1000 times the number of deaths at any given time, presumably in a desperate attempt to pretend that the mortality rate is really low as that's what he staked his advice on. I guess if you include newly infected, it's reasonable. My constraint on March 20 (which I'm taking as relating to the total symptomatic and recovered cases) doesn't include his value, but ranges from 22k-162k (median of 60k) on the day when the official number was 4k and deaths were 177. My early Feb constraint is centred on 20 with a range of 7-55. Mostly just because the log of 20 is very close to 3, I guess on reflection that range is probably a bit high but note that it has to account also for further imported cases (which the model does not simulate) rather than just home-grown ones. The initial growth is exponential so it only really makes sense to do these constraints in log space. A little simplistically, I assume uncorrelated errors on these two data points. In reality, the degree of under-reporting might be expected to be somewhat related.

The below plot shows the prior and posterior spread over the initial segment on a log scale. The two red Hs are the constraints I've used with red circles at their means, the dark circles below are the actual reported numbers. My pale blue prior has a broad spread, and the green posterior (just tuned by rejection sampling, nothing fancy) focusses nicely on the plausible range.



And what about the projected epidemic? Here we have it:



Compared to the prior, it's greatly constrained with the timing of the peak ranging from about mid-April to the end of May. Again the lower limit in that plume is made up of the start of late epidemics and end of early ones, it doesn't represent a realistic trajectory in itself.

I think one thing that can probably be concluded is that the parametric uncertainty isn't hugely important for the broad policy advice. Rather like climate science, in fact :-) In the absence of strong action, we are getting an epidemic in the next couple of months, and that's really all we need to know. Though the timing is somewhat uncertain...I may investigate that further...watch this space...

Edit: I realised overnight that the way I have calculated the percentiles was a bit clumsy and misleading and will change for future work. Basically I calculated the percentiles of each model compartment first, with the various diagnostics being generated from these, whereas I should have calculate the diagnostics first, and then presented the percentiles of them. A bit of a silly error really. I'll leave it up as a testament to the limitations of doing stuff quickly.




Sunday, March 22, 2020

Mitigation vs suppression

Next thing to do is look at suppression. Vallance recently made an absolutely terrible comment that I find hard to excuse, describing the difference between mitigation and suppression as "semantic". It is not, the distinction is absolutely fundamental to the overall strategy.

The only excuse I can find for his comment is if he just meant we have to make strong efforts to reduce R0 as much as practicable in either case. But still, mitigation (R0 greater than 1) gives us an epidemic, perhaps slowed to some extent ("flattening the curve") but still spreading through a large part of the population until it burns out through herd immunity. Whereas suppression (R0 less than 1) means we control the epidemic, immediately reducing its spread from the moment controls are introduced (though it may take a week or two to see this clearly in the statistics). This threshold of R0=1 is a clear "tipping point" in the system, much more so than is apparent in just about any climate science I've seen. It is extremely implausible that a mitigation scenario would not exceed the figure of 20,000 deaths that Whitty talked about - it would almost certainly be upwards of 100,000 unless there are serious errors in the understanding of data currently available.

Here is a comparison between mitigation and suppression. At the day indicated by the vertical line, a policy is introduce which changes R0 from the base level of 2.5 (odd final digit just for convenience) to the values shown in the legend. The epidemics play out as shown. You may be a little bit puzzled that the number of visible lines doesn't match the legend.



Let's blow up the plot around the imposition of the controls. Oh there they are! All the R0 < 1 values drop away rapidly after a small delay of a few days. 



This also shows up strongly in the number of total cases over the duration of the epidemic. Mitigation (unless you get very close to 1 indeed) always ends up with a substantial proportion of the population infected. Suppression never does. They are as different as apples and kippers. By the way, the total population here is taken to be 67 million, so the R0=2.5 case gets about 90% of us. The suppression strategies are all well under 1%.



Suppression does need to be continued basically indefinitely however, at least until some external change to the paradigm like vaccines are produced. And it may be impossible to keep R0 under 1 indefinitely, due to economic realities. But at a minimum, it bears carefully looking at. It appears to be the current policy of the govt, but is not compatible with Johnson's claim that this will all be over in 12 weeks. That's what happens when you elect an incompetent buffoon to be PM. He might be able to bluff his way through a late-night essay crisis with a bit of cod Latin (haven't we all done that in our time) but when faced with a technical problem that requires attention to detail he is utterly out of his depth.

Ferguson et al describes some suppression controls (basically the current policy of widespread social distancing, plus case isolation and home quarantining) which together achieve R0 less than 1 in their model. Let's have a look at their figures and try to work out how effective they think these suppression policies should be. Their Fig 4 is the clearest guide - assuming a basic value of R0=2.2, they claim to keep a lid on the epidemic with policies in place for about 2/3rds of the time and off for the remaining 1/3 of the time. 



The plot suggests the policies need to be in place a bit more than that I think, but let's take their word for it. I further assume that the "off" state means no controls at all, ie reverting back to R0=2.2. Back of the envelope calculation suggests that the suppressed state should correspond to R0=sqrt(1/2.2) = 0.67 but that turns out to not quite be adequate and even R0=0.6 gives a very gradual rise over time with the drops seen during 20 days of the controls not quite cancelling out the growth in the uncontrolled 10 day periods. I haven't bothered to implement the thresholding procedure as described in Ferguson et al, just done a straightforward 20 days on, 10 days off to see what happens.


The vertical dashed line is drawn 3 days after the change in policy and roughly coincides with the turning point in the epidemic, showing the lag inherent to the system. I think the lag in this model is unrealistically short due to various reasons which are quite obvious when you look at the equations. It isn't designed to simulate changes over such short time scales as a few days. It would take even longer to observe in reality due to observing, testing and reporting delays. It would probably take at least a week to really see it.

Note that this calculation made the possibly optimistic assumption of R0=2.2. If we revert back to the original R0=2.4, and assume the suppressed state has an equivalently scaled value of 2.4/2.2* 0.6 = 0.65 (just my simple assumption but it seems a reasonable starting point), then in order to keep a lid on things we need to impose the controls for 22 days in every 30 days period and only have 8 days off, which is what is shown below. Or you could perhaps say 3 weeks on, one off. That's 3/4 of the time rather than 2/3rds. On the other hand I'm sure I saw someone estimate R0=0.3 from Wuhan during the lockdown. I can't find a link to that right now though and it did require very draconian control that we probably wouldn't tolerate.
Perhaps it would be more realistic to find a more sustainable approach which just kept moderate control maintaining R0 ~ 1 indefinitely. Even R0=1.3 would be a huge relief and buy us many months according to my top plots. That's one for the behavioural policy experts and epidemiologists jointly to work out. I have to say I'm not optimistic about the chances of the current govt and population collectively being able to control the epidemic indefinitely though I could imagine that widespread cheap and fast testing (for the virus, or better still, for antibodies) would radically change policy options and make control much easier to achieve.


Saturday, March 21, 2020

Calibration and some interventions

In this post I'll try to do some basic calibration of the House model that I played with in the previous post. And then try a small experiment in which I vary the timing of some interventions.

I'm not trying to do anything properly scientific here, at least not yet. However, in the same way that simple climate models can be used for insight and exploration much more effectively than full GCMs, I am hopeful that this simple modelling can be informative (at least to me!) in a similar manner. Rather than trying to use real data, I'm calibrating the model against the Ferguson et al results since they simulate the full epidemic and also describe some of their model parameters.

I start with the base scenario of no interventions. I have tuned the latent and infectious periods a little to match the Ferguson et al comments reasonably, eg they say it takes 5.1 days to go from initial infection to becoming symptomatic, but people are infectious from one day prior to this so I use 4 days as the latent period. They also say their model has an average generational time scale of 6.5 days (I assume this means the time taken to get a factor R0=2.4 increase in cases) which requires a fairly short infectious period of 4.5 days in my model.

The remaining tunable parameter is just the initial state which they say was tuned in their model achieve the right number of deaths by 14 March. This seems an extraordinarily sensitive target (relying as it does on both the infection date and time to death of a mere handful of people with the most severe underlying health conditions) but on the other hand at least it's probably a fairly secure data point. The alternative of targetting reported/estimated infections etc is subject to uncertainty as to what that actually represents and how well it's measured. Anyway, this model does not explicitly simulate deaths but an initial condition of i0=2e-9 in the model on 1st Jan gives reasonable outputs. This mean we have about a quarter of an infected person at the start of Jan, or equivalently 10 infectious cases (plus another 15 exposed, latent) at the start of Feb. While these values may seem just a little, high don't forget that as well as under-reporting, there will have been ongoing import of cases from abroad since that date which this model does not account for. It's not a ridiculous number at any rate.

With these model parameters, we get almost 10,000 infectious cases today (21st March) , or 24,000 including latent cases. In the base uncontrolled case, the epidemic peaks around 20 May in terms of the infectious cases. To enable easier comparison with Ferguson's Figure 1 I have plotted the infectious curve, shifted by 21 days, to roughly simulate the shape (but not the size!) of their death curve. This is based on the values of 5 days from sypmtoms to hospitalisation and a typical stay of 16 days, presented in their report. I'm not expecting close agrementm but hoping to be in the right ballpark. And it doesn't look too far off to me, by eye. The vertical grid lines are drawn at the 20th of each month (which just to be clear start at the appropriately labelled tick marks, ie the month names are on the 1st). It took some effort to produce plots quite as awful as the Ferguson et al report, which might be generated in Excel perhaps?
Above plot is mine, below is Fig 1 from Ferguson et al

I'm actually really impressed by how well this simple model agrees!

Next up, let's explore the interventions, which were applied in the Ferguson et al model (Figure 2) for a period of 3 months from April 20 to July 20. My main reason for doing this is that I was interested in exploring what sort of change to the basic R0 values they represent, as the report didn't mention that. I'm not trying to match each curve precisely but just interested in the general range of values that they represent. Based on muy results, it seems that the more aggressive controls seems to represent quite a change from R0 = 2.4 to perhaps as low as R0 = 1.65 (black curves, various line styles).
It is nnoticeable that the difference between the two lowest curves of Ferguson et al (light brown and blue), which differ only in the addition of social distancing for the over-70s, is primarily in their height rather than shape or timing. I reckon the reason for this is that the R0 value hasn't actually changed much between them, so the overall dynamics of the epidemic hasn't changed, but the relationship between the number of cases and of critical care demands has altered due to fewer cases occurring in this particularly vulnerable older group. Therefore I'm not surprised that I haven't quite managed to match this largest drop. Decreasing R0 still further below 1.65 in the House model delays and spreads the peak in a manner that doesn't match that curve.

This plot also answers a question I was asked on Twitter: what is the effect of bringing forward the start date for these interventions to today, rather than waiting a month as was assumed in the report? The answer turns out to be quite straightforward. Starting a month earlier delays each epidemic, but does not change the overall shape. With hindsight this is obvious though I didn't realise it before doing the simulations. The early intervention just slows the growth over the initial exponential part (compared to the base case), with the magnitude of the delay depending on the magnitude of reduction in R0. Up to almost a month in the case of the strongest interventions. Of course interventions have a cost and I've made no attempt to evaluate this.
Above is mine, below is Ferguson et al Fig 2

Enough for now. A simple message is that starting controls sooner rather than later, delays the epidemic, without doing much else.

Friday, March 20, 2020

Timing is nothing

Recently mathematical epidemiologist Thomas House published a nice blogpost (see link) in which he argued that it was important to time population control measures in epidemics such as the current one. He presented a simple example in which acting too early in the epidemic would give worse results, just like acting too late. He helpfully presented his model code which I've translated into R and will be using here. (I haven't included the code as I can't work out how to do it neatly like he did on this blogging platform.)

My aim here is to critically examine his example. I believe that while it is technically correct, it has the potential to be catastrophically misleading.

His model is basically a SEIR model with the acronym representing susceptible, exposed, infectious, resistant/recovered (sources seem to differ on what the R really represents). Exposed means those who are infected but not yet infectious due to a latent period which is 5 days in this case. Thomas seems to have implemented this model with two consecutive stages for each of the exposed and infectious phases, giving 6 boxes in all. I'm guessing that this is in order to model the delay between the stages better than a simple 4 box scheme would give, but I could well be wrong about that. A detail that most readers probably don't care about anyway. The figures below replicate the ones Thomas plotted, so I've clearly replicated the model adequately.




Thomas' scenario which I have replicated here is where we start with a baseline of an uncontrolled epidemic, and have the option to implement a 3-week lock-down at the time of our choosing, that temporarily reduces the reproductive rate R0 from 2.5 to 0.75. The top row of plots is a zoom into the early stages of the epidemic, the second row is the full thing. Thomas argued that timing the intervention was critical and in particular that it should not be implemented too early, because getting it right is crucial to minimising the peak. See the different lines in the left hand plots and especially that the maximum of the red curve in the lower left hand plot is lower than the others. His claim is true but I would argue that in our current situation it is also potentially misleading to a catastrophic degree.

The next graph demonstrates my point. It shows an estimate of the critical cases arising from the epidemic, which I take to be 2% of infectious cases at any moment in time. This is a very rough estimate, but the value must surely be significantly greater than the overall mortality which is generally expected to be about 1% (when properly treated). The maximum capacity of intensive care beds in the UK is about 5000 (from the Ferguson et al Imperial College report) and I've plotted this as the cyan line.




Oops.

I hope you all see the problem here. The red peaks may be lower than the others, but none of the model results are in the same postcode let alone ballpark as the capacity. If capacity was some 20 times higher (dashed line) then Thomas' analysis would be entirely correct and important. But actually, "let's wait a month or two before we do anything" is in this example a catastrophic policy and although it's still technically true that a greater proportion of cases are properly treated in his scenario (ie the area under the cyan line and also under the red curve), the vast majority are not. In the base case, 7% are treated and this rises to just over 10% in the best case. Well, while those additional 3% of victims would surely appreciate it, it's a bit like taking a band-aid to a trauma ward and fussing over where to optimally apply it.

I believe a more appropriate conclusion to draw from this analysis is that the short sharp shock of a temporary lock-down is basically useless as a strategy, and we need to develop a better solution. My intuition suggests to me that such a better strategy should be implemented as soon as possible rather than waiting for the epidemic to grow first, as I'll investigate in future posts.

This model appears to give somewhat worse results than the Ferguson et al report, which uses a vastly more detailed model with lots of different sub-populations rather than just one homogeneous bunch of people. Their results suggest only exceeding capacity by a factor of about 20 in the case of no action, versus the 40 here (ie the dashed cyan line would have to be twice as high again to cover the blue peak). Maybe they expect a higher proportion of isolated older people to escape the disease. Anyway I do not expect this model to provide precise and accurate answers, but it does look like a broadly reasonable tool.


Wednesday, March 18, 2020

How they got it so wrong - a theory

Think I will restrict the coronavirus stuff to appearing here, it's not really our professional work at blueskiesresearch.org.uk and I only posted there because of the Rmarkdown to Wordpress publishing thing which isn't actually as useful as I'd hoped it would be.

Anyway.

Recent events have got me thinking - how could the Govt have got it so wrong with their COVID-19 strategy? What has changed (if anything) in the science, and their response? And what should they actually be doing? Especially in light of the research published a couple of days ago, which seemed to merely state the obvious. The Lancet editor Richard Horton has been tweeting critically (eg quoted in this post) and wrote this article in the Guardian:
Indeed, it didn’t need this week’s predictions by Imperial College scientists to estimate the impact of the government’s complacent approach. Any numerate school student could make the calculation. With a mortality of 1% among 60% of a population of some 66 million people, the UK could expect almost 400,000 deaths. The huge wave of critically ill patients that would result from this strategy would quickly overwhelm the NHS.
The UK has a long-standing pandemic plan - specifically for flu, but while COVID-19 is technically not flu, it is a respiratory disease with strong similarities. The UK has gone through a number of flu pandemics, as recently as 1957 which many of the older generation (including my mother) remember well. 

It is explicitly baked into the strategy that 
Stopping the spread or introduction of the pandemic virus into the UK is unlikely to be a feasible option 
 (Appendix 1, here)

While the plan does mention as many as 750,000 deaths, it may be that people didn't really think that sort of figure was plausible. A few tens of thousands maybe, a bit worse than a normal bad flu year, but hardly existential. So, the basic paradigm seems to be, the govt only ever considered the possibility of the epidemic running through the population, killing as many as it happened to, according to its specific parameters for spread and lethality. Strategies for controlling the epidemic at a lower level, to eliminate it before it burnt itself out, just weren't in their solution space.

Hence, “taking it on the chin ” and “herd immunity”. That's just what we do, cos that's what we have always done, cos that's how these things work. The pandemic plan considered the necessity of dealing  with the excess deaths, and things like how to reduce the spread to some extent (social distancing and cocooning of particularly vulnerable people are beneficial strategies, albeit with limited effect). But it just never considered whether it might be appropriate to stop the disease entirely. 

But actually, when you do the sums, you see that a death rate of 1% (and I'm getting bored of pointing this out, but this estimate is only valid when the incidence of illness is low and victims get good healthcare!) occurring over a time frame of a couple of months is horrific and will see piles of bodies in mass graves, with the NHS totally overwhelmed in the meantime. And we also see from other countries that an alternative approach is possible, one in which stricter controls on social mixing, combined with more aggressive testing and quarantining of contacts of cases, can actually control the epidemic. The key is in whether we can get R0, the basic reproductive rate of the virus, below 1 or not (and keep it there on a sustainable basis). If we can, then we can beat the disease with only a few hundred or thousand deaths, rather than hundreds of thousands.

So that's my theory as to what “changed”. It wasn't the science of the disease. It was the demonstration of an alternative solution, one in which the epidemic is controlled at the outset. If the epidemic had simply overwhelmed China first, before spreading across the world like a dark cloud, swamping nation after nation as it did so, maybe we would have all accepted that a moderate percentage of the population were going to die, and the rest of us would pick up the pieces afterwards. But we've now seen that this is not inevitable, and it seems awfully defeatist to not even try to do better.

BlueSkiesResearch.org.uk: Snap

A week ago, I blogged the graph on the left. Last night, one of the epidemiological modelling teams advising the Govt published the graph on the right. Billed as "new research", it has formed the basis of the new Govt guidelines on social distancing to deal with the coronavirus pandemic. Apart from the choice of colours, probably the most significant difference appears to be that I explicitly considered the possibility that we might increase our healthcare capacity over time (the green line rising in the left plot), whereas the modellers in Imperial College did not (the red line along near the x-axis).

The contrast between these two sets of projections of the epidemic, and the fatuous “flatten the curve” plots that I discussed here is stark. While my calculation was relatively trivial, it’s good enough to indicate that hoping to “flatten the curve” sufficiently to cope with the full progression of an epidemic is foolish at best.

Its very curious to me that the IC research has been billed as "new science" that justifies a new approach from the Govt. All the underlying data has been known for weeks, months even. The Editor of the Lancet is one of those who has been particularly vocal in pointing this out,
also here
and a horde of twitterati have been saying the same.
It would be interesting to know what has really changed. Is it just that the Govt realised that its genocidal policy of "taking it on the chin" wouldn’t be acceptable once people realised the consequential death toll?

One remaining problem with the IC research is their use of the standard mortality rate of about 1% overall that makes no attempt to account for the obviously deleterious effect of running out of hospital beds. If 15% require intensive care, and it’s not available, it is ludicrous to believe that only the same 1% will die.

Sloppy of journalists to not query this more forensically.

Tuesday, March 17, 2020

BlueSkiesResearch.org.uk: Herd all about it

Published this three days ago on the other place but forgot to forward here. Things are moving fast and I'll have more to say shortly.
-----------------------------

Here are a few numbers that I've been bouncing around my head. The govt's strategy is clear: they want the disease to spread widely, in order that we as a population may achieve "Herd Imunity". A simple relationship that has some importance to this blogpost: if the basic reproductive rate is R0, then herd immunity requires a critical proportion pc = 1-1/R0 of the population to achieve immunity (as this reduces the effective R0 in the population to 1, meaning infections do not spread). In the absence of a vaccine, the only way of achieving immunity is for this proportion to actually catch the disease. R0 for coronavirus is uncertain but probably around 3, meaning we need 2/3rds to be infected and subsequently immune, say 40 million people in round numbers.

In order to achieve this over the spring/summer, we have about 20 weeks. 2 million cases per week on average, let's say 4 million per week around the peak (it won't be a completely flat infection rate). That's more than half a million per day.

The Govt's estimate of the death rate is no more than 1% (and they claim to be confident about this), but that is still 5000 deaths per day. On average, there are currently about 1700 deaths per day from all causes in the UK — that's just demographics and average mortality.

Incidentally, at the time of writing, about 10% of Italy's daily deaths are now due to the coronavirus, despite the total number of recorded cases being less than 0.03% of their population.

So, getting back to the UK, the govt's explicitly stated plan is for the death rate to increase by a factor of about 4 for a sustained period, with ¾ of these due to COVID-19. Along with the deaths, we may reasonably expect a rather larger number to require hospital treatment. 5% would be 25,000 new hospital admissions per day. Every day. For a sustained period. It doesn't take a genius to work out that this will not happen, people will not be treated and in reality this is likely to push the death rate higher. I find it hard to believe that a 1% mortality rate will stick when people who need urgent critical care are left to fend for themselves.

I find this "plan" to be abhorrent and sociopathic. Unless there is quite literally no better alternative. However, the Govt has made no attempt to argue the case.

What I feel we should be doing is taking steps to reduce the spread, while also aiming to limit the economic damage. The Chinese approach of a full lockdown is clearly not sustainable in the long term, but South Korea, Japan and Singapore all seem to have achieved markedly better control with weaker restrictions and might all provide useful lessons.

We don't need to stop all transmission to win! We only need to reduce transmission by a factor of about R0 to stop the epidemic in its tracks. If infected people generate fewer than one new case on average, it will die out. Someone estimated that China achieved a 10-fold reduction, getting the effective R0 down to 0.3 in their full lockdown. Something in between "nothing" and "stay in your room" could surely balance our socioeconomic needs with the health of the nation.

Even if we simply cannot get the effective reproductive rate down below 1 on any plausible basis, it is still surely worth lowering it from the current level. Let's say we halve transmission by (eg) getting as many people as possible to work from home, reducing social mixing events substantially. I'm only talking about halving our daily interactions, not becoming hermits! If the effective R0 is halved from 3 to 1.5 then the growth rate over time is reduced by a factor of almost 3. And the total number of cases to achieve herd immunity is reduced from 2/3 to 1/3. Half as many cases over 3 times the time interval is a factor of 6 in the stress on the system. Getting R0 to 1.2 would have dramatic effects, with a growth rate 5 times slower and a total penetration of 1/6th of the population. That's a factor of 20 compared to my original calculation.

if the govt thinks this is unachievable or too costly, I'd like to see their working. Currently, they don't show any indication that they are even trying.

Saturday, March 14, 2020

Turning Japanese


I have seen the suggestion that the Japanese haven't got their numbers right. I think this is just racism, and don't see a reason to suspect them of making it up any more than anywhere else is making it up.

The Japanese obligation for for super-cleanliness used to annoy me when I lived there, as it is basically abused to make women's lives even more difficult. It is even worse than you might expect, as washing machines don't really wash, cleaning chemicals don't really clean, and vacuum cleaners totally suck (ie Don't Suck! I hate to say it, but Dyson saved us from the dust capybaras.). So, armed with such weapons and total cultural requirement for being super-clean, women ... well let's just say that the women spend an awful lot of scrubbing. I suppose it keeps them fit (and too tired to complain).

I had realised that the cleanliness has been historically very good for Japanese health, especially in the days before modern medicine, slowing the spread of disease in a warm humid densely populated place, and probably being a big reason why people live so long. However, until about a fortnight ago I believed that the quirks of Japanese behaviour were meaningless, and just demonstrated how arbitrary social rules such a politeness really are.

But now I list them I see they are almost all part of the social distancing regime we are now all being advised to adopt.

There is, basically, no skin to skin contact. For example, when people give you change in a shop, it goes on the table and you pick it up. People bow from 1-2 metres away rather than shake hands. Even when squashed together on a train, there's a merciful layer of clothing dividing people.

People rarely touch their faces but do cover their mouths a lot; often when talking, which can be quite annoying when you are trying to understand what people are saying! And of course when they feel at all unwell, a facemask is worn.

No oozing from orifices! The Japanese sniff in public and blow their noses in private. Japanese people even carry a small personal towel with them to dry their hands in case they have to use a less than perfectly clean public convenience.

Food is minimally touched, and is eaten with chopsticks, including "finger food" from communal plates. You haven't lived until you have seen pizza eaten with chopsticks...

I guess I noticed these things more than some, as women are much keener on doing it all properly, and the men are relatively dirty. It always amazed me that Japanese women could wear pure white from top to bottom (did they throw their clothes away after each wearing?). But with the women scrubbing up the men's mess - well, there's your herd protection! When I came back to the UK I was a bit revolted; it felt like I was living among a nation of sticky toddlers.

Furthermore, the Japanese have defeated the ego. The group is way more important than the individual, and everyone is very used to making considerable sacrifices in terms of time, and personal discomfort, for the sake of the group, and, often, their elders.

Thursday, March 12, 2020

BlueSkiesResearch.org.uk: Capacity

I was so excited by learning how to embed R code in my blogpost on Monday that I didn’t explain the motivation behind my post very well 🙂

Recently a lot of "flatten the curve" graphics have been doing the rounds recently on Twitter. This is a typical example which is presented and explained in more detail in this post. Covid-19-curves-graphic-social-v3

and here is a slightly more sophisticated version showing much the same thing. Though oddly it’s not based on a logistic curve which suggests to me it is just a graphic artist drawing pretty curves. Not that this really matters.

flatten-the-curve-smaller
They have been widely lauded as great communication. However I wonder whether they are actually rather misleading. As a scientist I want to see those axes labelled and scaled properly, and the "capacity" line put in the right place.

So that’s why I did the simple calculations in the previous post. My numbers are not authoritative but on the other hand at least there are numbers involved, which can be queried and tested, rather than just pretty lines on a page. Back of the envelope calculations suggest that "capacity" in the UK and elsewhere is actually right down near the zero line compared to plausible epidemic peaks, rather than being about half way up even in the uncontrolled case as these graphics suggest. I’d love to have people tell me why I’m wrong here. From what I’ve read, the healthcare system in Italy is totally overwhelmed and they are only right at the start of the upslope with 10,000 cases nationally (under 0.02% of their population).

I also saw a real UK-based doctor on a forum saying that their healthcare centre had done some calculations and thought they could cope if the peak was stretched out over 10 weeks, but not if it came over 3. I asked about the basis of the numbers but didn’t get a reply. If a total of a million people are infected over a period of 10 weeks, that means 14,000 per day, maybe 1000 needing admission to hospital for treatment. Per day. Every day, over a long period. Of course they don’t all stay in hospital indefinitely, but this still seems to be a huge additional load. And that’s if we assume only a million cases in total, which is well under 2% of the population. Epidemics can easily reach a third (eg 1918 "Spanish flu", 1957 "Asian flu").

So, I don’t really get it. Are they assuming (hoping) that there is a huge proportion of undetected, uninfectious, asymptomatic cases such that each recorded diagnosis actually represents 5 or 10 cases? That would give a far lower fatality rate per case and allow for a widespread infection without overwhelming healthcare. It seems lot to pin your hopes on though.

If my calculations are reasonable, then the message would be that we need to actually control the epidemic fully by getting R0 down below 1, not just stretching out the doubling time a bit. R0 here is the reproductive rate, ie number of new cases that each case generates, currently thought to be about 2-3 in the case of no social distancing. China achieved this by locking down a whole city (and South Korea may be achieving similar results with less draconian action). We’ll see how Italy performs shortly. It currently looks like the UK is aiming to emulate them rather than learn from them.

Tuesday, March 10, 2020

BlueSkiesResearch.org.uk: Coronavirus

This is mostly an excuse to publish a blogpost using Rmarkdown. This is a system for combining R code in a "markdown" text document which can be readily compiled into html or pdf etc and also automatically published on WordPress which hosts the Blueskiesresearch blog. One slight problem I've not been able to solve is how to handle graphs: while I can automatically generate them as separate files (eg png format) I can't automatically upload them to WordPress and so have to manually edit the post and fix the figures after compiling and uploading the post. If any readers know how to automate this, I'd like to hear about it. Anyway, on with the show.

Before I start I should point out that I have no particular authority to speak on this topic. I'm writing about coronavirus COVID-19 from a position of no more knowledge than anyone else who has followed the media. I hope I'm being pessimistic but I do think it's likely to be a major problem. The 1%(ish) mortality rate is not the reason. A bit more than 1% of the population dies in any given year and if a substantial additional chunk of people, the vast majority of who are already suffering from health challenges, were to die a little quicker than expected then it would be sad for them and their families but the broader impact would be modest.

The real problem appears to me to be the combination of (a) roughly 10-20% needing hospital treatment ranging up to the level of intensive care and (b) the rapidity of the spread of the virus when unchecked by social distancing. To put it simply, if we all get ill at the same time there is not the capacity to treat a significant population in hospital. England has enough hospital beds for 0.04% of the population — the lowest in the developed world, for which we can all thank the Tories, but there's no point banging on about that as it's not going to change in the next 3 months. Less than a tenth of these are intensive care beds – enough for about 0.0035% of the population at any one time. Say 2000 beds. If people (optimistically) need only 5 days in hospital then we can treat 400 new people each day, meaning 4000 cases per day (at a 10% hospitalisation rate) is the limit of our capacity. More than that, and people with serious breathing difficulties simply won't be treated. Which will put the death rate up, perhaps substantially.

I've seen graphics representing the impact of social distancing and other ways of slowing the spread, but they seem mostly rather schematic. I thought it would be nice to have some actual calculations. So here are a few simple logistic simulations based on different doubling times and total penetration of the epidemic. All of them start out with a total of 300 cases on the 9th March. Recent data in the UK and also Italy, Germany has suggested a rather rapid doubling time of around 3 days but I am hoping that's a bit of a blip due to catching up on cases and/or that it could be easily stretched out a bit by people behaving a bit more cautiously. Taking a look at Japan, they are taking significant but not draconian action and their doubling time is more like a week. As well as different doubling times, the red, blue and orange curves also have a different total penetration of 80%, 60% and 40% respectively of the UK population. These are largely guesses on my part but slower spread does also generally mean more people manage to avoid it. There is also the effect of summer with warmer/drier weather, which we may hope to help reduce spread. I haven't explicitly accounted for this.
growth-1”
The green line is the most fictional of the lot, it is my presentation of what capacity we might currently have and what the effect could be of ramping this up. As described above, I've assumed as a starting point that we can currently cope with 4000 new cases per day — probably optimistic in itself, but hopelessly inadequate in the face of an uncontrolled epidemic. The area that lies under each epidemic curve but above the green line represents the number of cases that will exceed the capacity to treat them (well actually it's 10 times that number, under my assumption of a 10% hospitalisation rate). My additional assumption is that we can ramp this up with a doubling time of 14 days. I should emphasise this is just make-believe for the sake of plotting pretty graphs and is in no way an informed estimate. Ramping up capacity has almost no effect for the red curve, but it would mean a far higher proportion of cases being properly treated for the blue curve and would keep us ahead of the orange curve — even though the epidemic growth rate in that case is initially more rapid than the capacity growth rate. If capacity is not increased, however, even the orange case would be very challenging for our health care system. While I don't want these simple calculations to be taken too seriously, they do suggest that working out how to treat people adequately and efficiently with limited resources might be an important part of the solution. But we certainly have to do what we can to stretch out the doubling time beyond a week at least.

Let's hope I'm wrong and that these graphs are shown to be hopelessly pessimistic. Here are a few ways that things could turn out better:
* There may be a much higher proportion of mild cases (often undetected and non-infectious) meaning less hospital treatment required as a proportion of total cases.
* Warming weather may slow the spread substantially from May onwards.
* We may actually be able to slow the doubling time down substantially with a bit more attention to hygiene and social distancing without completely killing the economy.

For some perspective, the "Spanish" flu pandemic of 1918 infected about 1/3rd of the global population and killed 2–3% of these (Wikipedia numbers). The numbers I've presented are worse in some ways but not wholly incomparable. We do have much stronger connectivity these days and COVID-19 seems to be quite challenging in various ways.

If people have ideas for more credible calculations I can easily test them out. But I don't want anyone to suffer under the misapprehension that this is in any way authoritative or believable. It's just lines on a screen.