Well welcome everyone I'm pleased to see so many of you here and uh also welcome to anyone who will be catching us later on YouTube we know there are a couple of other meetings on today but a great turnout um for those of you who don't know me I'm Claudia piari I convene the ealth interdisciplinary research group here in Edinburgh and the master's program in global ealth and uh it's my great pleasure today to Welcome Professor Peter digle here to give our latest Global ealth seminar also part of our Public Health uh research series um
I was very uh intrigued when I heard or saw a snippet of uh Peter's presentation on St SCH methods in ealth sometime ago uh had worked on a number of eal evaluation projects data linking projects trials other types of projects in which uh the complexities of ealth and the challenges of doing statistical research in E Health were um apparent and I was hoping for the grand solution in the form of this this seminar here and I had a good look at Peter's profile on the web and first of all I was very comforted to see
that he's a graduate of the University of Esra having taken his first degree in mathematics in the Aon power when it's all shiny and new unlike it is today we a bit spiling off it but undergoing refurbishment shortly I'm told uh he then moved on to to post in a number of Other universities including the University of Oxford and he's held Post in Australia he's got fellowships in John Hopkins in the UK in the USA and so forth and he now has a joint appointment with the University of Lancaster and University of Liverpool now I
think is very interesting it in the sense that he's combined a longstanding interest in Computer Science and Mathematics with the study of population Health he's Represented on a sedur for patient safety research for example he's working in tropical disease medicine in fact I downloaded a YouTube video on what statistics can tell us about tropical disease epidemiology not not that long ago very interesting has worked on all sorts of different areas and really represents an interdisciplinary scientist of the type that we encourage in this network um so without further Ado I'm Going to hand over now
to our single speaker I should say one more thing he's been elected and is currently in the position of president of the royal statistical Society so again a a great sort of high five to the statistical Society for electing truly interdisciplinary scientists and I'll pass you over now uh thank you Claudia and thanks for the invitation um this is a bit of a kind of a a tour of a range of problems starting with something That's both complete and very simple and finishing up with things uh which are in various states of incompleteness and uh
what I should acknowledge straight away and I I don't need to tell this audience is that if you ask the question what is ealth then depending on who you ask you'll get very different answers uh and I think it's fair to say that the the network of e health research centers recently established by MRC one of which is based here is not in this building But ish uh one of which is in the Northwest which is where I work one in I think London and one in Wales I think although they're all badged as ealth
research centers what they actually do is really quite different and the interesting thing will be when we eventually all get together whether we can really do some cross fertilization Not Just Between the disciplines within our respective institutions but across the network as a whole um so uh having Offered the uh the lazy students answer to it on my next slide which is to go to Wikipedia I'll um talk about the kind of statistical tools that seem to me to be likely to prove most useful in ealth research um arguing in particular that that that randomized
trials beautiful though they are are not going to cut it for a lot of the kind of ealth databased problems we encounter and Main mainly the talk is is a series of case studies Which I hope will end with a bit of a a general message of a Way Forward um I can pause for a minute if you guys want to get some more comfy seats there several spare at the front okay so here's the lazy student and indeed the lazy professor's answer to what is ealth uh from the Wikipedia uh encyclopedia um it's hard
to disagree with any of those words it's just that you could have written a lot of different words as well and what is Perhaps more pertinent to how I got involved and and and how the network of ealth research centers was formed in the UK is the MRC call um and uh the focus there being to assess risks to Public Health which is the kind of thing I I kind of do uh so that um allowed me to get involved um and uh the question is if you want to do ealth research with a view
to understanding risks to Public Health what kind of tools do you need and you need well you need data right so You need access to electronic health records and linkage of those health records with other relevant variables and in the UK setting we can imagine that we want to look at so economic records which we can access in principle from the Census there's an increasing amount of geospatial information accessible electronically on the physical environment that we live in and things like real-time weather updating data and all that sort of stuff um and Also there's there
are increasingly a pressure I think a perfectly reasonable one for uh publicly funded researchers to make their data accessible more widely and so a lot of the is that not working know you want it maybe I should have plug Ro okay it's only for him fine but can you hear me at the back no worries good okay um what about the methodological tools Well of course the thing that lets me in is that it seems to me that there are statistics and computer science of key disciplines and I I'm a statistician primarily certainly that's the
only thing I've been trained in uh and I never quite know what informatics is but but I think of it as some kind of blend of Statistics computer science and subject matter science uh and it's worth mentioning in this context that of course the the buzzword Bioinformatics these days tends to have a very molecular flavor and health informatics has more of a population flavor and certainly what I'm interested in is Health informatics not particularly bioinformatics so all the geneticists can leave the room now and I won't be offended now if we're going to do statistics
for ealth data then what kind of Statistics do we need now within our own ealth uh Center in the northwest of England there is a program in clinical trials methodology and quite right too uh I'm not going to um downplay the importance of clinical trials in public health research just as in pharmaceutical research but in terms of the kind of innovative statistical methodology that we need I think the focus in ealth research is bound to be very much on observational data and in particular a lot of the data that we can now access electronically is
is Referenced both in time and in geographical space and usually both of those dimensions are relevant to understanding the phenomenon that that we're dealing with a lot of public health issues have an obvious seasonal pattern some public health issues have emerging Trends which you'd really like to know about sooner rather than later of which Ebola is a spectacular example at the moment and um for different reasons in both developed and developing Country settings where you live is a reasonable predictor of the kind of Health outcomes you can expect certainly a partial predictor and worth understanding
ing the nature of that geographical variation in relation to health outcomes the other thing that electronically recorded data ought to imply is Real Time analysis and without replacing carefully designed and executed and reported studies that go on take place on a time scale of years if You've got real time data being generated in real time there must be a place for at least some form of real-time analysis to filter that data so that you can begin to focus people attentions on the important parts of the data and the way I sometimes actually um uh set
sort of articulate this recently is that for about a 100 years statisticians have been occupied in trying to get the best possible most efficient analysis from sparse data you Know every statistician in the last 100 years will say can you get me more data right well with ealth research I think we could we need an opposite Paradigm we need a par a theoretical Paradigm for how to op imally throw away data so we need to basically ignore 99.9% of the data that's out there but picking the 0.1% is hard and whether there are methodological theoretical
tools that have yet to be developed that can enable a principled approach to that uh Analogous to the principled approaches to making the best possible use of sparse data I think it's an interesting open question there will be a place for offline analysis and a sort of a crude distinction is between if you want to make decisions you need real-time results if you want to make policy is you can reflect consider options do things [Music] offline okay now what does the Statistical modeler do with observational data I think above all else they buy dat buy
information with assumptions so our models are not true they're devices that we use to answer questions and the quality of the answers depends partly on the quality of the data partly on the quality of thought that went into posing those questions and partly which is where the status ition has a very specific role to play in The Art of balancing model complexity Which improves Mo fit to the data and model Simplicity or parsimony which makes the model more robust for outside validation okay out of sample results are often very disappointing if you overfit a model
to a given set of data now a fundamental part in how we do that is by using likelihood based inflence wherever possible we there are many fewer arguments than they used to be about whether you should be basian or non- basian but what all schools of Statistical inference agree on is that the likelihood is the key to inference you can't always deal with the likelihood sometimes it is just too messy or the model doesn't have enough um faith in it scientific faith in it to be used um in a literal sort of sense but generally
speaking where you can articulate a good statistical model that will answer a scientist's question you should aim to do likelihood based inference now when you're model building The the this phrase a model should be not demonstrably inconsistent with the data is not original uh I I first heard it articulated by David Cox but he didn't claim it was original either but it's a typically cautious statistical wording we don't say we've got a good model for the data we' say we've got a model that isn't demonstrably bad right and you can argue that's just playing with
words but it's it's conveying the idea that we know our models are not Going to be perfect but also we know that elaborating them is going to come at a cost we would like to incorporate under underlying scientific knowledge where that's well understood but there's no point in pretending we've got precise knowledge if we don't and subject to those two constraints Simplicity rules in statistics it's to me the a very fundamental difference between mathematical modeling and statistical modeling is that statistical modeling Explicitly penalizes complexity whereas mathematical modeling doesn't because it's deductive and it's about it
presumes there is a truth out there where statistical modeling knows there isn't a truth out there and it and it therefore is very cautious about elaborating the models um the other analogy I I I like on that is with the possibly apocryphal interchange between mosart and his uh Imperial sponsor back in wherever it was Saltsburg Vienna um which I I think is supposed to be because uh the emperor couldn't play his new piece and Mozart's response to the complaint there were too many notes was that there were only as many as there needed to be
and statistical models are like that they only ever have as many parameters as they need to be as opposed to any absolute number that really are there in nature because they're all wrong okay so here's an offline Incredibly simple example and I only tell it because it's a true story and and you might some of you might like me despair on the level of numeracy and NHS Senior Management when on this story so in 2009 the health services [Music] Journal uh had this rather alarming uh statement about increase in MRSA which caused Edward Lee conservative
MP who did the best of my knowledge is not an expert in health to say that this was Threatening all those who use our Healthcare System um in the same year rather surprisingly the health protect promotion agency which one would hope takes a rather more objective view of of things than conservative MPS uh reported that uh Mr rates had actually been falling very substantially since they first started being concerned about them in 2002 um so it's kind of interesting that Both of those statements could come out in the same year now in two Lancashire hospitals
that serve the area near where I live and form a single NHS trust uh the data on MRSA infections which they monitor regularly um over a period of months stretching for seven years plus looked like this now you may laugh at this and you're and in fact you're right to laugh but I followed it through just to make a point where the question mark is pointing down the the head of the Path lab had actually got a a call from the chief exec's PA saying the chief exec wants to see you can you explain the
increase in mrsi incidents what should we be doing about it well every case of MRSA is one too many but signal and noise happen in uh things like acquiring in hospital so the question that would arise in the statisticians mind is well yes there is a lot of noise in those data but if we simply say it's all noise perhaps we're being a little Bit um uh Cavalier let's actually analyze those data and see what's going on and I I would guess you can you can guess roughly what the answer is but we'll just follow
through the details anyway it's always nice to plot data like that as cumulative incidents rather than absolute incidence we've actually got that the dates of each case so we don't need to group them into monthly counts we just plot them cumulatively or weekly counts or anything else and you Can see there pretty clearly that the black solid line has a convexity to it and what that means is that the rate is falling in line with the health protection agency's findings the dashed line is pretty much align pretty much linear and that means that in the
other Hospital which is much smaller which is why it's got fewer cases there's been no particular uh Improvement on the other hand you can see it's also shallower than the other lines so there was less Room for improvement because they were already doing better in terms of rate per you know 100,000 patients okay well let's dig a little bit deeper and if we really did just have noise right then what we'd expect to see is a pron process the pron process is a completely random pattern of events in time it's it is a this diagram
is supposed to show although the the the confidence intervals are practically Invisible on this on the screen for which I apologize but those smooth curves on the two plots are the fitted Trends okay over the period of the data and they're going materially downwards in the big hospital downwards but not significantly so in the smaller hospital so that's consistent that's just formalizing what you saw in that picture there is a an unequivocally significant drop in incidents in the large Hospital over the time period there's a Non-significant small drop in the in in the smaller hospital
but the reason why I wanted to fit those Trends was because I wanted to ask what the residuals about that Trend look like and if the residuals about that Trend just look like a pron process then what that's saying is that anything else that you may or may not see in that pattern is just noise so looking back at this raw data which is what was in front of the well I don't suppose the graph was in Front of the CEO's desk it's probably just an Excel spreadsheet but what you see as a downward trend
is real but any sense of oh we're having a bad time now that's that's just noise statistical statistically speaking so it doesn't mean you don't worry about every individual case that's a different issue but in terms of whether the hospital systemically is having a problem the answer is no there's a very good fit again I apologize for the faint lines But the the solid and dashed lines here are the theoretical and fitted cumulative residual plots these are Point process residuals um and I'm not going to Define them but they're as you'd expect a good a
well-fitting model has the empirical solid curve close to the theoretical dashed curve and they look pretty good to me also if you look at the intervals between successive cases you find that they're uncorrelated so you don't get clusters of short Intervals followed by spaces so what you want to do in this case in other words is if you think that these cases um need to be reduced you want to get the trend down but what you've not got are outbreaks that are because of periodic uh slackness on the part of individuals or whatever okay so
that's just a simple offline analysis using simple modeling tools to actually uh distinguish whether there's something actually worth Following up here and the statistical answer is no if you want to do something about this and you want to get the the long-term average down you've got to think long-term average policies but jumping in because this month we've got more cases than we thought is a complete waste of time it's just following the noise and you you don't improve Quality Care quality of care by following noise you improve it by following the signal okay any questions
on That you'll have time at the end as well but U okay so now let's look at something which is moving more towards real time and certainly a much more substantial data set and a very real problem which is dealing with renal failure in the UK um the site that I got these data off seems not to have been updated since 2008 and uh I I I'm surprised that I've been unable to find a more upto-date slide that's probably just haven't looked hard enough but Certainly over the early parts of this Century uh UK mortality
attributed to renal failure was increasing quite a lot and there are a number of reasons for that one of which is the shortage of organs for transplantation one of which is the changes in lifestyle that that mean people are more prone to diabetes and diabetes is a causal factor for renal failure but it's a big problem that's that's the point um it's easy to diagnose kidney failure you measure Serium creatinine in the blood you convert that by a quantitatively dubious but qualitatively very sensible formula into something called estimated glomular filtration rate which is the function
that the kidney is actually doing um and so it ought to be easy to actually find out when people's kidneys are failing the reason in practice it isn't is that kidney failure can be asymptomatic for many years and unless you're actively monitoring for it and doing the right Blood test there's no reason to suppose there's anything wrong with somebody's kidneys until they're down to about 10 or 20% of normal function and by that time uh they suddenly feel ill and they've been told your kidneys have failed okay well um can we do better right so
uh well firstly why do we want to do better we want to do better because most forms of kidney disease are irreversible some are but most are not but also most Can have their rates of progression slowed by aggressive control of blood pressure so if you know that somebody's at risk of kidney failure you really look at their blood pressure you give them anti-hypertensives and you can slow the rate of Decline and what that means is that it is actually rather important to be able to do that because uh renal replacement therapy in the UK
is not actually uh easy to get there there is more demand for it than there is Supply The the the supply and demand imbalance is particularly accute in transplantation but even in dialysis uh even when you've been diagnosed with endstage renal failure you might think you'd be on dialysis within 24 hours it's not true certainly not all around the country if it's true where you live then that's great um and transplants are really great things because if you compare the 5year survival rates admittedly marginalized over all sorts Of other risk factors um you can see
that with dialysis it keeps you alive for a while but the long-term prognosis is superficially not good I mean frankly because a lot of people get k KY failure in their old age a lot of this may be dying for re reasons unconnected with kidney failure but the transplant prognosis is much much better and the quality of life on transplant is infinitely better than the quality of life on Dialysis okay so what is this getting round to well it's getting round to the fact that having established from Clinical experts the early diagnosis can slow rate
of progression the question was put to me by the renal department at the big teaching Hospital in sford Greater Manchester the Royal sulfur how could we use routinely collected Primary Care data of people at risk to monitor the decline in renal function and actually identify at the earliest Possible stage that they needed to be referred to secondary care and so I asked the question well when would you want somebody referred to secondary care and after a bit of debate they said if we knew that somebody was losing 5% of kidney function per year we'd want
them referred to secondary care okay now you could say fine all you have to do is take two blood tests take the difference between the two divide by the time interval and is the answer bigger than 0.005 and of course that's just analyzing the noise and what you want to do as in my simple first example is separate the signal from the noise because you want the signal to be decaying by more than 5% of the year uh of of kidney function per year and the assay for serum creatinin which is what you calculate egfr
from is noisy now we're in the Fantastic position in sulf which is particularly perent to the ealth agenda that all of The primary and secondary care data from sulfur City goes to a single server overnight and is accessible to Bonafide researchers who have to go through a formal application procedure but compared to the hurdles of going on a project by project basis to Medical ethics it's really very easy to access these data and every clinical event is lodged there and so for this project we extracted data on somewhere shiny of 200,000 patients In within which
in particular there was a cohort of primary care patients so these are patients who had never been referred to secondary care for their renal conditions um but they were because of their co-morbidities and or other risk factors they were judged to be at risk of kidney failure and if you look at the records on these people they've all had blood tests some of them have had a remarkably large number of blood tests because that when you suffer Acute illness if any of you've been in hospital the one thing they do all the time is stick
needles in your arm and take blood okay uh some of them have had rather few uh but that's a big big set of data and what we want is to look at some simple covariant that we can be sure we can get measured alongside their egfr and here we've got age sex diabetes yes no and albam manua yes no and say what do those time sequences actually look like and could we therefore build a Predictive model that we could run in real time to identify the patients who ought to be transferred to secondary care care
now if you look at the data cross-sectionally in other words you just do a scatter plot of age against egfr it looks a horrible mess uh as Scatter Plots of big data sets usually do but there is an obvious trend in there okay and it's kind of at the rate of 1 or 2% of kidney loss per year which is probably what a lot of you are Suffering without realizing it but don't worry because unless you're suffering a lot more than that your kidneys will last you out and other things will get you first if
you look longitudinally at the data that means focusing on the trajectories on individual patients you can see the variation that we need to deal with because some people are ostensibly getting better over time and indeed egfr itself is a proxy for the True state of your kidney health and if you go on a fitness regime and change your muscle mass you'll change your serium catenin and the formula for converting serium coratin into egfr is not perfect so there are a lot of extraneous factors here which mean that some people are genuinely getting better on egfr
we just have to live with with that but the ones we really want to identify are the ones like this person who's clearly on a downward progression But there's a lot of data in there and the question is could we have identified that person as being at risk earlier if we had done something a bit cleverer not a lot clever a bit clever than just plotting their their data okay so here's a a clearer picture of some sample traces from individuals and you can see there's a lot of variation between individuals at a given age
there's a lot of variation over time there are some apparently quite Convincing Trends which suddenly get reversed it's really very messy data but that's what currently clinicians have to make decisions on and they probably as I said earlier don't even have the plots they just have the uh the piece of paper from the lab uh you could you don't it's not silly to just fit straight lines to individual people's records and calculate the slope the trouble is if you do that from Very few points there obvious very unstable and I've chosen here examples where we've
got a reasonable amount of data but all we're trying to do is do something say a little bit more sophisticated than that which we can do in real time and update as new data come in so what we do is we build a model and the model is really just a regression model but it recognizes that there are variations happening in these data which we can't capture in the covariant that We've got measured so we model on a log scale because that seems to be the right thing to do I'm not going through any of
the technical details here and we build a regression model in which we include both fixed effects which are the covariates and random effects and the random effects have two components based on what we see in this slide we posit that there is a random level that each person has having corrected for their co-variants but there's also a random Slope and that random slope is not constant you know there there are phases when somebody's coming down quite hard and then something happens to make them go back up I don't don't know what that something was and
I'm not going to be able to find out so that we but we need to capture those phenomena in the model so what we do is we build a stochastic process C of T which is the integral of a random walk and it's that random walk B that is the slope so it's basically a Dynamic linear regression with an a subject specific intercept right and a randomly but smoothly varying slope over time and you you then have some parameters that you have to estimate so you maximize the likelihood or if you're B and you put
a prior on and integrate the likelihood doesn't make any difference cuz the data swamp any reasonable prior and you get this picture and you can see that what I've done is really just smooth out the data By something that wants to be linear if the data don't tell it otherwise but will respond cautiously to changes in the empirical slope and what that model is doing is balancing it's it's not ignoring the changes in behavior of the data but it's skeptical of them because it's estim ated the signal to noise ratio and so that is now
if you like our Point estimate of the time varying slope for each of those four patients but what's more important I Think is that because this is all based on likelihood analysis of a probability model we can compute probabilities that we're interested in and in particular we can compute the rate of progression at time t as a function of the data observed up to time T and we can't we can do more than just compute its value we can compute its distribution so the result of fitting this model to data is that at any time
T and for any patient I we get A distribution of what we think their current slope is and we can turn from that distribution we can calculate the probability that that patient meets the clinician Criterion of referral to secondary care namely loss of at least 5% per year so we produce pictures like this of which you only need to look at the top left and bottom right the others are just checking that the algorithms have converged and top left is a typically noisy profile in which at the End of the series it's pretty clear that
that person has got a long-term decline in their kidney function but it's less clear early in the series so what we do is we start off with a with a 50-50 call you have to start somewhere and uh 50-50 call is probably uh uh not quite right for these data but what happens is as the data come in initially the model is not terribly impressed because it doesn't have much information but as the series gets longer it begins to feel Happier that um this person really does have a decreasing Trend and it reaches a probability
of about 7even or a bit more at that person's Trend uh underlying Trend at that time remember the trend is changing over time is we don't know what it is but we do we're pretty well we're 70% sure it's less than minus 05 in other words that person should be referred to to secondary care with probability. 7 it's not a sure thing um and for data like that the predictor Probably will never go to one because of all the noise in the data but um you know it certainly responds and it responds cautiously but honestly
to the to the noise signal balance in the data now what a CL condition should do about that is none of my business and I I one of the things I like about this example is that this person is 84 years old and for all I know may have other frailties that would mean that major surgery would be inadvisable but the point is that That is taking what is a noisy record which I would claim is actually very hard to interpret into something that objectively says you've told me the clinical Criterion you're interested in I'm
telling you this patient has a 70% probability of meeting that Criterion you now have to make a clinical decision taking into account other factors not least your skill and judgment as a clinician okay uh this is an example that just shows the algorithm Works uh If you really push it because this is another patient who plausibly has given a bad data point right I I've been called into Hospital more than once in my life through one data point like that okay the model is so totally unimpressed right but it was wise to take another one
and indeed that was an outlier here we've got a catastrophic fall right and the model responds very quickly and says I'm pretty sure this person is losing more Than 5% of kidney function a year what happened there I don't know but strongly suspect this person had an accident and they had that what they were suffering from was acute kidney failure which is which is remediable they probably have bleeding kidneys and after after an acute injury you can sometimes get a catastrophic but reversible falling kidney function whereas chronic kidney disease is mostly irreversible um and again
there's a Context there that I I'm not privy to but it may be that this person was already in hospital being treated for trauma uh and the kidney damage was a side effect and it proved reversible and you can see that they got back up to there now interestingly this also illustrates a problem I'm not talking about today but we are now working on with the sulfur Royal people which is they call these things acute kidney injuries they're defined by what they do To the kidneys rather than a certain class of events but they have
a um an open research question as to whether typically when you have one of these acute kidney injuries you actually get back to where you were before or you suffer a long-term consequence this person on the face of it may have suffered a long-term reduction in their kidney function through that traumatic injury I don't know but statistics can help us find Out okay that's the end of the second case study again any quick questions of clarification or we'll come back at the end for general ones now revealing my colors one of the few good things
the UK government has done in its tenure is to um move towards more open data and in particular anybody including any of you can download from the web the complete prescrip describing patterns by NHS doctors on a monthly basis rather Ironically in view of Current political developments I believe you can only do that for England and Wales but you may have a different system in Scotland which is even better like most of your Social Services um but it's an extremely useful tool if you want to actually quickly scan through surprising features in the geographical distribution
of what NHS doctors are actually up to because you can link these data to a GP data Bas which will tell you where the GPS are what their Capitation lists are stratified by sex and age group you can link it to the National census and that will give you socio demographic information on who actually lives near those practices now that doesn't mean they use them but broadly speaking people use GPS near to where they live so there's quite a lot of um potential there for for asking interesting questions and using these data to get answers
and um as a very simple first pass through these days you Can simply say um we've got a location we know how much they spend a month we know how many patients they've got on their register so we can have a crude prescribing rate which is the ratio of those two things it's not quite Fair because a lot of drugs as you know have different makes which cost slightly different and some people might want the pink ones or the blue ones or the sugary ones but roughly speaking that's our proxy for the volume the prescribing
Rate and what we then do is we argue that that partly because we want to smooth out the noising the data and partly because we don't know exactly where people live who go to particular GP we we we surround each practice by a circle whose radius is chosen so that we include GPS with a total capitation of some number which the bigger that number is the smoother the the results will be so instead of doing it on a per practice basis we're doing it on a per Circle Basis of practices that total capitation and I
think we I think from memory we used something like 8 or 10,000 for m and then what we basically is we we we use the uh the simple device of a kernel smoother with weights which vary okay according to how far each practice is from the center of that Circle uh and that gives us a kind of continuously moving spatial average of prescribing rates in the locality of each GP and if you do that for uh the Frontline medication for diabetes in England you get this map and you get a lot of variation the numbers
are not clear but the dark blue is 2 p per person on average and the dark red is 30 P per person on average so there's a 15-fold ratio in prescribing rates now I am not competent to know whether that's reasonable or not but what I can do is say well where are the really statistically unusual things on that map or is it just like my very first example Random variation about an underlying mean of about 15 p a patient well if you just zoom in to places you're interested in you can see in London
it sure as hell isn't random there is a a very obvious difference between what goes on in roughly speaking Central London and what goes on in the periphery particularly the northern periphery and many of you will know that these um South Asian minority populations of London live more in in The north and in particular the Northwest around places like like eling and Southall and also ethnicity is a risk factor for diabetes so there's a very clear geographical pattern there that may or may not because you have to know about London to answer the question be
a reasonable reflection of difference in risk factors which you could then model through the census or whatever but um uh Sheffield similarly you can see these local partitions and if you know About Sheffield you can speculate on why the blues are to the west and the reds are to the right um other than the football colors um in order to actually pick out what I think are I call I like the word anomaly because I I don't like the word cluster because a cluster implies some sort of mechanism that you think you understand whereas an
anomaly is something that clearly you don't understand and I think that's the Right appropriately humble way for a statistician to express their results okay so the working hypothesis of uniform prescribing rates would tell you what you expect these smooth estimates to look like and we do a kind of a significance test but it's a kind of a significance test in which we choose a ratio C and we say for example if C equals 4 which it is on my next map what's the probability okay that um the local Estimate is more than 4 times the
overall average okay so it's sort of like testing a null hypothesis a one-sided null hypothesis that the local rate is less than or equal to four times the national average and on the other way it's like saying testing a hypothesis that the local rate is at least a quarter of the national average I mean Dennis Lindley would turn in his grave with these kind of words but uh it's as a kind of way of because if you Just do significance testing everything's significant because things vary for all sorts of good reasons and we've got huge
amounts of data so there's no point in doing standard significance tests but these kind of shifted significance tests seem to me to be a reasonable tool for filtering out the data so if you redraw the uh the maps on that scale and look at attention deficit hyperactivity disorder which has huge variations in how much money people Spend on it and you hone in on somewhere you actually uh no which in my case is Liverpool in the northwest of England oops um there you have it you have the the the city of Liverpool full of blue
which is low prescribing rates for ADHD and you have the WHL which is the peninsula between the Mery and and the uh the d uh full of red now I don't know how well you know merys side but there's a lot of Poverty in central Liverpool and there's a lot of affluence on the WHL okay so I'll leave you to speculate on what causes ADHD or rather what causes people to prescribe for ADHD now again I'm no expert uh but it seems to me that that is shouting at you so loudly why hadn't anybody noticed
it before and it was on Radio 4 just a couple of months ago someone saying why are people prescribing ADHD in Wales as though they just discovered it well the information Has been there all the time and uh and the point is you know unless you've got a lot of time if you look at Maps like that you just haven't got time to hone in on everything so it's nice to have that filter that really says no where are the really oh yes there are only two or them and in fact oh no that's that's
a road marking I thought maybe the North Wales one show up at well ah no it didn't cuz this is just English data we're just analyzing in England had we Analyzed whales presume we would have found that as well never mind a second example of of using the prescribing data to sort of look at what health authorities are up to is if you if you look at the PCT level these are the English pcts and I'm going to look at the northeast of England of which again I know something uh and uh if you look
in the Northeast here that's the top left plot something rather obvious hits you okay Which is that within the Northeast most things look like they look everywhere else except for this one thing here so if we just expand that that one I mean again the writing's criminally small I forgive you but that's actually rural North umland and for some reason the GPS in rural North umberland are doing a lot more influenza vaccinations than any of the other areas of Northland this is one Winters record um I haven't actually looked at The more recent one but
we should and what's interesting is that there's a notional count of who ought to get a flu vaccine in each area you know based on whether they're old or have risk factors or whatever and the the scaling here which again you you can't read this is a really good good lecture in bad graphical presentation is there so actually all these guys they may take a few months to get there but they get to just about where the government says They should so this Authority is actually giving flu Jabs to two or three times as certainly
at least about twice as many people as the government guidelines say should receive them now again whether that's good or bad I'm not qualified to judge but it's very different and it shows out immediately from looking at these kind of data so that's the that's the outlier rural North umberland And I don't do the the the Computing stuff despite Claudia's kind introduction uh I have an extremely able colleague called Barry rolinson who who builds all the systems for these applications and and this is just indicating the way you need to have in four data repositories
all of which are readily available and you have to link them to get the information you need to draw these Maps Okay last case study Gastrointestinal disease when I first gave this talk which is more than a year ago this was an old problem and it's become a new problem again because we've got a sudden burst of injection of funds uh from the impetus of the um of the far and uh um a grant from welcome so we're Reviving this problem so um I feel I can talk about it again um there's a lot of
gastrointestinal disease in the UK uh a lot of it is presumed to be foodborn it's also presumed that the true burden Of disease is much much larger than the number of reported cases and my colleagues in Liverpool you know know about these diseases and have have a view that these are important public health problems what we first did in about 1999 2000 was built a realtime surveillance system based on the then new NHS direct it may be in 2 I can't remember whenever NHS started the project started just before NHS direct Came online and NHS
direct was its salvation because NHS direct um has a very strong administrative infrastructure which means that anybody who phones NHS direct you can be sure that their the the time and date will have been recorded we only use the date and their postcode will have been recorded and that you can convert into a location so minimally you know when they called and where they lived and finally they have to log uh a code for the Primary reason for the call and if the code was sickness and or vomit uh sickness and or diarrhea we called
that a case a potential case so this is not very non-specific first past surveillance and if you look at those uh data empirically the pattern is really very sporadic but you do occasionally get a parent clusters I said I didn't like that word which why I've put it in inverted commas um of cases that might Reflect some Public Health event that you actually want to do something about um these things are pretty um Slender in the in the following sense uh this is the county of Hampshire and what I'm going to do is I'm going
to run an animation which in real time shows you a window moving window of 5 days worth of cases so you can see that the cases are mainly concentrated surprisingly where people live and the question is what happens Over time to that geographical distribution of cases and uh what happens is that it begins to hurt your eyes after a minute or two because it really just looks completely lacking in any kind of pattern right and and that's actually the kind of pattern that for which statistical modeling is particularly useful because this def I think this
defeats the capacity of just the human eye to spot an unusual concentration whereas when You very occasionally see these patches of red appearing on the map like that that's where according to a model that I'll describe in a couple of slides there's a very high predictive probability that the local rate there and then was at least twice what it should have been for that time of year in that place adjusting for its population and these Maps were actually running in about 2002 on the public health um uh laboratory system in Southampton and every morning there
was a daily update based on the latest cases but it's subtle the the the clustering isn't terribly strong and just as to emphasize what I mean by subtle although this is not something I want to talk about in any detail there's a similar animation here of the foot and mouth epidemic in cumber in 2001 and you can see although notionally it's just again points appearing on a map it's completely different you can see very Clearly what's going on with foot mouth it's being spread through an infectious agent which we know is infected droplets EX hailed
by infected animals and you know the epidemic modelers can have a field day with data like this they can build differential equation models they can do all sorts of things because the the process has really got a very strong signal to it but the kind of signals you get from human disease are always weaker because human beings don't behave as They as they're told whereas animals unfortunately have no choice so they have to U so that's just a very you know that's just to emphasize that that this pattern is doesn't obviously have much of a
signal going for it okay so if we go back to the business of the day what's our model our model here because we don't really understand the science because the science here is as much Social as natural right I mean what Causes people to call NHS toade I don't know it's a million things I can't measure on them right so what we do is we say well what we see is what we expect times what we don't expect it's a bit like weather weather is what you get and climate is what you expect right so
what we expect is for certain places to make more use of NHS direct and we expect certain times of year to make more calls to NHS direct because risk of disease varies Seasonally if foodborn disease is typically has peaks in the early summer in this country and sometimes uh as I'll you'll see shortly sometimes it has a kind of double Peak which uh apparently intrigues people the idea then is to say that when when I say unexpected I have in my mind a stochastic process because to me probability is simply formalizing uncertainty or if you
want to be unkind it's formalizing ignorance we don't know why what we expect doesn't happen so we Model it stochastically but this is a stochastic process which recognizes that things close apart in space are more similar than things far apart and things close apart in time are more similar than things far apart in time but again what we do and it's really a spatial temporal version of the renal monitoring problem is we use the historic data that we've got which in for this project 3,000 cases uh over 3 years in Hampshire to build the model
for Lambda Nord the Model for R and then we run it and we calculate these predictive probabilities of R being greater than 2 4 6 8 whatever the clinician wants um and we map them okay so that's just repeating the previous slide with a bit more notation and the important part of this notation is that if all you've got is a single data set of this process you can't unambiguously separate out what you expect from what you get in classical statistics what you expect is what's Reproducible on replication what you get is random variation about
that we only have one realization so we can't use the data to tell us what's expected and what's unexpected so we make a structural assumption that what we expect is different places to show different calling rates and we expect different times to show different falling rates but we think those things should operate independently in other words there Should be a general rise in summer not a localized rise wouldn't be true if we're doing this globally because season different weather patterns would have different effects in different places but Hampshire is a pretty small place and on
that basis anything that doesn't separate into a product of purely space and purely time we call it stochastic and that's what we're trying to predict it's that term that we're saying is that term bigger than two bigger than four Bigger than eight and the numbers two four and eight are the numbers that would get a public health person to get out of bed and worry about what was happening so it's not again not my choice it's the expert's choice right and so what we've got here is a model for a pron process of the kind
I fitted right at the beginning of the talk to that simple problem in the lisher hospitals except that now it's a Spatial temporal process and we don't know what the correct model is for the intensity function so we model it stastically we take out what we expect and are not interested in and we look at what's left that's basically as uh remember I was using adaptive kernel smoothing in the prescribing data this is the same idea this is simply a smoothed map of where people on average over time use NHS direct it's similar to but
not equal to A population map because different demographics have differential use of NHS direct so you can't just use population denominators arguably you could use um uh age sex stratified population denominators but For Better or For Worse what we chose to do was to use a smooth version of the time averaged uh pattern of cuse and there's our model for what we expect a peak reproduced in two successive years uh and a rising Trend Which we're almost certain uh was basically telling us about the increased uptake of what was then a new service rather than
campy so again in terms of even although that's artificial it's right to put it in the model because you want to eliminate it because it's artificial right what we're what I really want to do is saying when when are the Big Res uals about this about this model okay if you look at the coari Structure of the stochastic part the the the algebraic form of these functions is UN important what what what it's trying to convey is that on the left there is statistical evidence of correlation in the sense that rates are similar when they're
close in space up to a distance of about a kilometer or so and on the right rates are similar if they're close in time up to a distance of about 5 days and remember this is acute gastrointestinal illness so the will Will be varying latencies between when people get infected and when they call NHS direct uh but days rather than weeks is the right kind of order of magnitude so that's encouraging and then we basically just turn the handle uh um we which is the Royal weed I mean me it means one of my much
younger colleagues writes an mcmc algorithm so that we can generate samples from this underlying unknown part of the process conditional on the Data we've seen and we can map the probabilities that that ratio of what we get to what we expect exceeds whatever threshold the clinician is actually interested in and so that was in case the animation didn't work that's a static map of the 6th of March 2003 with apparently three anomalies here here and here using a threshold of Two And if you Tamp up the threshold to four or eight you can see that
they largely disappear and indeed I I if there is something that's actually of Public Health significance you'd expect really quite a high threshold um because at any one pixel in this map the expected number of cases is a lot less than one right so as soon as you start getting multiple cases you you know you're into ratios that really quite large and that's why it's a bad idea to try to estimate risk because it'll just be very spiky uh it's much better to say I'm not interested in estimating risk I Just want to know if
it's sufficiently high to be a public health concern um the way we presented this to the users all those years ago was was through a web page like this uh which was being updated invisibly every day but you could look back uh if you wished it's really a demonstration site at different dates uh and you could say okay that's uh with an exceedence of two that's an exceedence of four that's an exceedence of eight yeah what Would happen tomorrow I wonder uh oh not a lot uh uh oh there's something there that just might be
and you know and you could play around with it but that's that's that was the basic idea and what we've now got is to say a new slug of money to build a new version of this system in which we're hoping to to have something a little bit more Dynamic but the principle is the same that we we'll get data feed of cases we'll run the model we'll report back anomalies that The the exciting difference from a public health point of view is that we're now working with people who understand the diseases and our system
will now trigger follow-up sampling which is focused and which uses high throughput uh methods to get quick diagnostic answers of case of cases in those potentially anomalous areas so rather than the scaton approach of just taking samples wherever you can find them it'll focus the sampling in Proactively on areas where there seems to be potentially a problem and some of those will be false alarms I'm well aware of that but the idea again is it's a kind of First Line Filter that's followed up with work by people who actually know about the science okay so
that's about it really um to me as a statistician there are methodological challenges here of which the obvious one is we need to combine information from multiple data sets Which are not all collected on the same spatial or temporal units and that's a long-standing problem in geography called the modifiable aerial unit problem uh but I think with modern computational tools we can get a more principled statistical solution um based on the likelihood for the for the model and several of my younger colleagues in Lancaster are working on that as we speak uh incomplete coverage is
always a problem because the incompleteness may Be biased and so having offline projects that can actually understand why particular subsets of the population do or do not access particular sorts of Health Care seems to me to be essential to interpret these kind of automatic results corle correctly you know it's having biased results is bad but it's not so bad if you know why they're biased because you can make an informed decision about what to do about them and that's where you Need something much more multidisiplinary it's really all about you know public Understanding Psychology sociology
economics uh transport access all sorts of things come into the the notion there um the a long-standing problem in epidemiology which people usually ignore because they don't know what to do about it is the substantive relevance of uh residential locations I mean we we tend in spatial EP almost always to codify People by where they Live um but people move about uh and there are beginning to be some interesting uh projects where we use very simple modern technology like mobile phones so that we the data can consist of people's tracks through exposure space rather than
just points and I think it's interesting to know how you would model and analyze data where where each person's data tells you what their what they did over the last 24 hours and relate that to something like An air pollution surface or whatever um a lot of my colleagues in the physical sciences tell me they've got data on climate and they haven't got any such thing what they've got are models that produce pseudo data and I think understanding the difference between model outputs and measured data uh has some statistic implications that that we need to
think through and again this is not statistical but I think it's absolutely Vital there are two things to do about uncertainty one is to actually pretend it's not there which people like and the other is to work very hard at communicating it which is what you should do but communicating uncertainty is not necessarily something that statisticians are particularly good at and again I think some of the social sciences have something to offer in terms of effective and ineffective ways of communicating uncertainty to Intelligent lay people um the one that really uh uh I'm trying to
work on at the moment is is the notion of of of data synthesis in which we have the approach would be to say that the phenomena we're interested in are operating in a spao temporal Continuum the discreteness of space and time comes artificially because of political or economical or technological constraints but rather than modeling in that artificial space you should build Your models in the natural space and then the challenge for statisticians which is really this modifiable aerial unit problem again is to derive likelihood based methods of inference for the data that you've got and
in particular for combining multiple data sources and a lot of what I think we're doing in statistics with data of this kind should really switch not only from testing which is easy to criticize but also from Estimation cuz mostly it's about prediction it's it's prediction to prompt action prediction to prompt thought prediction to prompt reflection on policy or possibly to propose an objective study uh of a controlled kind but it's not really about estimating parameters and the parameters are just devices that allow you to draw these predictive Maps so to me the the real challenge
is to communicate the idea of predictive Probability to health professionals and and and decisionmakers okay lots to do fantastically interesting and as I said I think gold gold standard the RCT may be a gold standard in some people's eyes but I don't think it's going to cut it for for E health and I actually think rather more heretically that sometimes the obsession with rcts mean that you settle for answering a rather less Interesting question because you know it can answer it well rather than following chuki's advice which is that it's better to have an approximate
answer to the right question than a precise answer to the wrong question okay uh all of this is either published or or um about to be published and if anybody does want to follow it up I hope those references are are useful um and happy to take questions thank you for your Attention thank you that was an excellent presentation and and very well-rounded