Water guide: Difference between revisions

From Opasnet
Jump to navigation Jump to search
 
(29 intermediate revisions by 2 users not shown)
Line 8: Line 8:
[[File:Water risk assessment.png|thumb|500px]]
[[File:Water risk assessment.png|thumb|500px]]


'''Obs! Water guide will be updated during summer 2019. Currently the results can only be seen by updating the result page approximately a minute after beginning to run the code.'''


'''Water guide - An assessment of the health impacts of water quality''' addresses the potential microbiological health risks of drinking water. These microbiological risks are due to the contamination of raw water with microbes that cause potential health problems for people using tap water, as well as the efficiency of drinking water treatment, which can be insufficient for removing harmful microbes from drinking water. The assessment will be used to determine, how high the health risk is from certain microbes in raw water. The assessment is based on a mathematical Water guide -model, which can be found below.
'''Water guide - An assessment of the health impacts of water quality''' addresses the potential microbiological health risks of drinking water. These microbiological risks are due to the contamination of raw water with microbes that cause potential health problems for people using tap water, as well as the efficiency of drinking water treatment, which can be insufficient for removing harmful microbes from drinking water. The assessment will be used to determine, how high the health risk is from certain microbes in raw water. The assessment is based on a mathematical Water guide -model, which can be found below.
Line 36: Line 35:
name:total_population|default:10000|description:Size of the exposed population|
name:total_population|default:10000|description:Size of the exposed population|


         name:rawconsumption|default:0.769|description:The amount (in liters) of unboiled tap water consumed per person per day|
         name:rawconsumption|default:0.25|description:The amount (in liters) of unboiled tap water consumed per person per day|


name:Campylo|description:Campylobacter concentration (microbes/l)|default:0|
name:Campylo|description:Campylobacter concentration (microbes/l)|default:0|
category:Microbe concentrations of raw water|
category:Microbe concentrations of raw water|
category_conditions:rawclass;'User'|
category_conditions:rawclass;'User'|
name:E.coli|description:E.coli O157:H7 concentration (microbes/l)|default:0|
name:E.coli|description:''E.coli'' O157:H7 concentration (microbes/l)|default:0|
name:Rota|description:Rotavirus concentration (microbes/l)|default:0|
name:Rota|description:Rotavirus concentration (microbes/l)|default:0|
name:Noro|description:Norovirus concentration (microbes/l)|default:0|
name:Noro|description:Norovirus concentration (microbes/l)|default:0|
        name:Sapo|description:Sapovirus concentration (microbes/l)|default:0|
name:Crypto|description:Cryptosporidium concentration (microbes/l)|default:0|
name:Crypto|description:Cryptosporidium concentration (microbes/l)|default:0|
name:Giardia|description:Giardia concentration (microbes/l)|default:0|
name:Giardia|description:Giardia concentration (microbes/l)|default:0|
Line 49: Line 49:
name:treatment|description:Water cleaning methods in use|type:checkbox|
name:treatment|description:Water cleaning methods in use|type:checkbox|
options:
options:
'Traditional cleaning';Traditional cleaning;
'Coagulation and flotation';Coagulation and flotation;
'Well working cleaning';Well working cleaning;
'Enhanced cleaning';Enhanced cleaning;
'Slow sand filtration';Slow sand filtration;
'Slow sand filtration';Slow sand filtration;
'Limestone filtration';Limestone filtration;
'Limestone filtration';Limestone filtration;
'Active carbon filtration';Active carbon filtration;
'Active carbon filtration';Active carbon filtration|
'UV';UV;
'Ozonization';Ozonization|
category:Water cleaning: Cleaning process and chlorination|
category:Water cleaning: Cleaning process and chlorination|
name:chlorinedose|default:0|description:Chlorine dose (mg/l)
name:chlorinedose|default:0|description:Chlorine dose (mg/l)|
        name:ozonedose|default:0|description:Ozone dose (mg/l)|
        name:uvdose|default:0|description:UV dose (mW/cm^2)|
        name:uvtime|default:0|description:UV time (s)
"
"
>
>
Line 73: Line 72:
Treatment <- Ovariable("Treatment", data=data.frame(TreatmentMethod=c(treatment, "None"), Result=1))
Treatment <- Ovariable("Treatment", data=data.frame(TreatmentMethod=c(treatment, "None"), Result=1))
ChlorineDose <- Ovariable("ChlorineDose", data=data.frame(Result=chlorinedose))
ChlorineDose <- Ovariable("ChlorineDose", data=data.frame(Result=chlorinedose))
UVdose <- Ovariable("UVdose", data=data.frame(Result=uvdose))
UVtime <- Ovariable("UVtime", data=data.frame(Result=uvtime))
OzoneDose <- Ovariable("OzoneDose", data=data.frame(Result=ozonedose))
RawConsumption <- Ovariable("RawConsumption", data=data.frame(Result=rawconsumption))
RawConsumption <- Ovariable("RawConsumption", data=data.frame(Result=rawconsumption))
# divide the given population size to different age groups based on age distribution of all of Finland
# divide the given population size to different age groups based on age distribution of all of Finland
Line 102: Line 104:
         "rotavirus",
         "rotavirus",
         "norovirus",
         "norovirus",
        "sapovirus",
         "cryptosporidium",  
         "cryptosporidium",  
         "giardia"),
         "giardia"),
Line 109: Line 112:
         Rota,
         Rota,
         Noro,
         Noro,
        Sapo,
         Crypto,
         Crypto,
         Giardia)
         Giardia)
Line 116: Line 120:


BoDattr <- EvalOutput(BoDattr, verbose=FALSE, forceEval=TRUE)
BoDattr <- EvalOutput(BoDattr, verbose=FALSE, forceEval=TRUE)
# calculate the number of cases
cases <- BoDattr/case_burden


cat("Pathogen concentrations in the raw water, microbes/l.\n")
cat("Pathogen concentrations in the raw water, microbes/l.\n")
Line 123: Line 129:
cat("Disease burden, DALYs caused per day (DALY = disability adjusted life years) \n")
cat("Disease burden, DALYs caused per day (DALY = disability adjusted life years) \n")
oprint(summary(BoDattr, marginals=c("Response","Exposure_agent")))
oprint(summary(BoDattr, marginals=c("Response","Exposure_agent")))
cat("Number of illness cases caused daily by pathogens in drinking water. \n")
oprint(summary(cases, marginals=c("Response","Exposure_agent")))
cat("exposure \n")
colnames(exposure@output)[exposure@marginal]
cat("MicrobeLogDecrease \n")
colnames(MicrobeLogDecrease@output)[MicrobeLogDecrease@marginal]
cat("OzoneEfficiency \n")
colnames(OzoneEfficiency@output)[OzoneEfficiency@marginal]


label <- oapply(BoDattr, c("Exposure_agent", "Iter"), sum)
label <- oapply(unkeep(label, sources=TRUE), NULL, mean, "Iter")@output$BoDattrResult
ggplot(
ggplot(
   oapply(unkeep(BoDattr, sources=TRUE), NULL, mean, "Iter")@output,
   oapply(unkeep(BoDattr, sources=TRUE), NULL, mean, "Iter")@output,
Line 131: Line 148:
     labs(
     labs(
     title="Disease burden of waterborne microbes",
     title="Disease burden of waterborne microbes",
     subtitle=paste("in a population of", sum(result(population))),
     subtitle=paste("in a population of", format(total_population, scientific = F)),
     y = "Disease burden (DALY/day)"
     y = "Disease burden (DALY/day)",
     )
     x = "Pathogen") +
 
  annotate("text", x = c(1:6), y = label, label = round(label,2), size=6)
# calculate the number of cases
cases <- BoDattr/case_burden


label2 <- oapply(cases, c("Exposure_agent", "Iter"), sum)
label2 <- oapply(unkeep(label2, sources=TRUE), NULL, mean, "Iter")@output$Result
ggplot(
ggplot(
   oapply(unkeep(cases, sources=TRUE), NULL, mean, "Iter")@output,
   oapply(unkeep(cases, sources=TRUE), NULL, mean, "Iter")@output,
Line 146: Line 163:
   labs(
   labs(
     title="Ilnesses caused by waterborne microbes",
     title="Ilnesses caused by waterborne microbes",
     subtitle=paste("in a population of", sum(result(population))),
     subtitle=paste("in a population of", format(total_population, scientific = F)),
     y = "Cases of illness"
    y = "Cases of illness",
   )
    x = "Pathogen") +
  annotate("text", x = c(1:6), y = label2, label = round(label2,2), label=6)
 
# cases as percent of beachgoers
cases_percent <- cases*100/total_population
label3 <- oapply(cases_percent, c("Exposure_agent", "Iter"), sum)
label3 <- oapply(unkeep(label3, sources=TRUE), NULL, mean, "Iter")@output$Result
ggplot(
  oapply(unkeep(cases_percent, sources=TRUE), NULL, mean, "Iter")@output,
  aes(x=Exposure_agent, weight=Result, fill=Response)) +
  geom_bar() +
  coord_flip() +
  theme_gray(base_size=24)+
  labs(
    title="Proportion of the population that gets ill daily",
    subtitle=paste("in a population of", format(total_population, scientific = F)),
     y = "Proportion of population (%)",
    x = "Pathogen") +
   annotate("text", x = c(1:6), y = label3, label = round(label3,2), label=6)


cat(paste("In Finland, the illness cases due to drinking water should be on average less than 0.01% of the population per year, or 1 case for every 10 000 people. The graphs here show the case burdens and numbers of cases for each of the pathogens that are caused in one day in a population of", total_population, ", with the average daily cold water consumption of", rawconsumption, "liters per person. \n"))
cat(paste("In Finland, the illness cases due to drinking water should be on average less than 0.01% of the population per year, or 1 case for every 10 000 people. The WHO guidelines give a target of less than 10^-6 DALY per person per year, or 0.01 DALYs per 10 000 people. The graphs here show the case burdens and numbers of cases for each of the pathogens that are caused in one day in a population of", total_population, ", with the average daily cold water consumption of", rawconsumption, "liters per person. \n"))


</rcode>
</rcode>
Line 176: Line 211:
'''4. Choose treatment processes used.''' Obs! You can choose multiple options. If none of the first six treatment processes are used, choose "None of the above cleaning methods". If neither UV nor ozone is used, choose "None of the above disinfection methods".
'''4. Choose treatment processes used.''' Obs! You can choose multiple options. If none of the first six treatment processes are used, choose "None of the above cleaning methods". If neither UV nor ozone is used, choose "None of the above disinfection methods".


'''5. Choose whether chlorination is used or not''' by inputing the chlorine dose used (mg/l). If there is no chlorination, the dose will be 0 mg/l (default 1.5 mg/l).
'''5. Choose whether chlorination is used or not''' by giving the chlorine dose used (mg/l). If there is no chlorination, the dose will be 0 mg/l (default 0 mg/l). The model only calculates the effect of chlorine on the water in treatment plants, and ignores any further cleansing effects residual chlorine may have after the water moves onward to the pipe network.


'''6. You can see the results in a new tab by pressing 'Run code''''
'''6. You can see the results in a new tab by pressing 'Run model'''' This opens a new tab, in which the results will appear after the model is done running. This takes approximately 45 seconds.
 
The first two tables and one Figure at the end of the page you can see the starting values inputed into the model. The health effects are reported as two measures:
*How many cases of gastroenteritis there are in the area per year.
*How many [[DALY]]s or disability adjusted life years are lost due to those cases of gastroenteritis each year in the area.
}}
}}


Line 211: Line 242:
=== Dependencies ===
=== Dependencies ===


* Op_en2949 [[Population of Finland]]
{| {{prettytable}}
* Op_en2261 [[HIA]]
|+ '''Pages containing the data and codes used by the model
** Op_en7948 [[ERF of waterborne microbes]]
! Page !! What data or code the page has !! What is it used for !! Other observations
** Op_fi2994 [[:op_fi:Paikkakuntakohtaiset tiedot talousveden käsittelyyn]] (in Finnish) [[Water treatment in Finland]]
|----
** Op_en7957 [[Health impacts of waterborne microbes]]
| Op_en2949 [[Population of Finland]] || Data on the age distribution of Finns || Age distribution is used, because susceptibility to diseases and their severity changes with age. The burden of disease and cases of illness are calculated for each age group, then summed. ||
*** Op_en7947 [[Case burden of waterborne microbes]]
|----
*** Op_en7953 [[Pathogen concentrations in raw water]]
| Op_en7956 [[Drinking water chlorination efficiency]] || Log-decrease in pathogens due to chlorination, with different doses || The code on this page uses the data on the page and user-given dose for chlorine to calculate the case-specific decrease in pathogens due to chlorination. This is summed with log-decrease of other treatment and disinfection methods to produce the total log-decrease in pathogens from water treatment. || The model only takes into account any decrease in pathogens that happens in water treatment plants. Any further effect residual chlorine has after it enters the pipes is not included.
*** Op_en7954 [[Drinking water treatment efficiency]] (Filtration etc.)
|----
*** Op_en7955 [[Drinking water disinfection efficiency]] (UV, ozone)
| Op_en7955 [[Drinking water disinfection efficiency]] || Log-decreases of pathogens due to ozonization and UV || If the user has chosen one or both of these disinfection methods, the decrease from the chosen one(s) is summed with the decrease due to chlorination and other treatment methods to produce the total log-decrease in pathogens from water treatment. || Currently the qualities of water, such as turbidity, are not taken into account in the efficiency of disinfection methods. The dose for both methods is also set.
*** Op_en7956 [[Drinking water chlorination efficiency]]
|----
| Op_en7954; [[Drinking water treatment efficiency]] || Log-decreases of pathogens due to different treatment methods. These methods are traditional cleaning, well working cleaning, enhanced cleaning, slow sand filtration, limestone filtration and active carbon filtration. || If the user has chosen one of multiple of these treatment methods, the decrease of pathogens they produce is summed with the decreases due to chlorination and other disinfection methods to produce the total log-decrease in pathogens from water treatment. ||
|----
| Op_en7953 [[Pathogen concentrations in raw water]] || The concentrations of pathogens of different raw water classes || If the user has chosen one of the raw water classes, the amounts of pathogens in that class and the total log-decrease of pathogens from treatment are used to calculate the amount of pathogens left in drinking water. If the user has given pathogen concentrations by hand, those values are used instead of the data on this page. ||
|----
| Op_en7947 [[Case burden of waterborne microbes]] || Case burdens of different pathogens, or how severe and long-lasting the diseases caused by them are || This data is used to calculate the health detriments caused by the pathogens in drinking water. ||
|----
| Op_en7957 [[Health impacts of waterborne microbes]] || Doesn't contain data, only code || These codes use water consumption given by the user, total decrease in pathogens and the pathogen concentrations in raw water to calculate the exposure to pathogens experienced by one individual, or how many of each pathogen an individual swallows daily with drinking water. ||
|----
| Op_en7948 [[ERF of waterborne microbes]] || Describes the exposure-response functions for the pathogens || These functions tell, how likely an individual is to get sick with different exposures. This and the exposure are used to estimate the cases of illness. ||
|----
| Op_en2261 [[HIA]] || Code that combines all of the above || The code on the page uses exposure, exposure-response functions and the case burdens to calculate the total burdens caused by pathogens in drinking water. From here it is also possible to calculate the number of people getting ill from drinking water. These are the final results of the model. ||
|}




Line 581: Line 624:


treatment <- list(c("None"),
treatment <- list(c("None"),
                   c("Slow sand filtration", "None"),
                   c("Slow sand filtration"),
                   c("Slow sand filtration", "UV"),
                   c("Slow sand filtration"),
                   c("None"),
                   c("None"),
                   c("None", "UV"),
                   c("None"),
                   c("Slow sand filtration", "UV"),
                   c("Slow sand filtration"),
                   c("Slow sand filtration", "UV", "Active carbon filtration"))
                   c("Slow sand filtration", "Active carbon filtration"))
uvct <- c(0,0,10,0,10,10,10)
rawclass <- c(rep("Ground water - clean", 3), rep("Surface water - high contamination", 4))
rawclass <- c(rep("Ground water - clean", 3), rep("Surface water - high contamination", 4))
labels <- c("Ground - none", "Ground - sand", "Ground - sand+uv", "Surface - none",
labels <- c("Ground - none", "Ground - sand", "Ground - sand+uv", "Surface - none",
            "Surface - uv", "Surface - sand+uv", "Surface - sand+carbon+uv")
          "Surface - uv", "Surface - sand+uv", "Surface - sand+carbon+uv")


plotdata_illness <- data.frame(matrix(ncol=5, nrow=0))
plotdata_illness <- data.frame(matrix(ncol=5, nrow=0))
Line 597: Line 641:
plotdata_path <- data.frame(matrix(ncol=5, nrow=0))
plotdata_path <- data.frame(matrix(ncol=5, nrow=0))
colnames(plotdata_path) <- c("Exposure_agent", "ClDose", "RawWaterClass", "BoDattrResult", "label")
colnames(plotdata_path) <- c("Exposure_agent", "ClDose", "RawWaterClass", "BoDattrResult", "label")
 
plotdata_path_gastro <- data.frame(matrix(ncol=6, nrow=0))
colnames(plotdata_path_gastro) <- c("Exposure_agent", "Response", "ClDose", "RawWaterClass", "BoDattrResult", "label")


for(i in 1:length(treatment)){
for(i in 1:length(treatment)){
   RawClass <- Ovariable("RawClass", data=data.frame(RawWaterClass = rawclass[i], Result=1))
   RawClass <- Ovariable("RawClass", data=data.frame(RawWaterClass = rawclass[i], Result=1))
   Treatment <- Ovariable("Treatment", data=data.frame(TreatmentMethod=treatment[[i]], Result=1))
   Treatment <- Ovariable("Treatment", data=data.frame(TreatmentMethod=treatment[[i]], Result=1))
  UVCT <- Ovariable("UVCT", data=data.frame(Result=uvct[i]))
   BoDattr <- EvalOutput(BoDattr, forceEval=TRUE)
   BoDattr <- EvalOutput(BoDattr, forceEval=TRUE)
   plotdata <- oapply(BoDattr, c("Response","Exposure_agent","ClDose","RawWaterClass", "Iter", "Age"), sum)
   plotdata <- oapply(BoDattr, c("Response","Exposure_agent","ClDose","RawWaterClass", "Iter", "Age"), sum)
   plotdata <- oapply(plotdata, FUN=mean, cols="Iter")
   plotdata <- oapply(plotdata, FUN=mean, cols="Iter")
 
  cases <- BoDattr/case_burden
  casedata <- oapply(cases, c("Response","Exposure_agent","ClDose","RawWaterClass", "Iter", "Age"), sum)
  casedata <- oapply(casedata, FUN=mean, cols="Iter")
    
    
   plotdata_illness <- rbind(plotdata_illness, data.frame(
   plotdata_illness <- rbind(plotdata_illness, data.frame(
Line 616: Line 666:
     label = labels[i]))
     label = labels[i]))
    
    
  plotdata_path_gastro <- rbind(plotdata_path_gastro, data.frame(
    oapply(casedata, FUN=sum, cols=c("Age"))@output,
    label = labels[i]))
    
    
}
}


 
# SUOMENNOKSET, JOS HALUTAAN SUOMENKIELISET KUVAT
levels(plotdata_illness$Response) <- c("kliininen Guillian-Barrén oireyhtymä", "kuolema",
                                      "loppuvaiheen munuaistauti", "gastroenteriitti",
                                      "hemolyyttis-ureeminen oireyhtymä", "suolistoverenvuoto",
                                      "reaktiivinen niveltulehdus",
                                      "Guillian-Barrén jäännösoireet")
levels(plotdata_path$Exposure_agent) <- c("kampylobakteeri", "kryptosporidium", "E. coli O157:H7",
                                          "giardia", "norovirus", "rotavirus")
levels(plotdata_illness$label) <- c("pohjavesi - ei puhdistusta", "pohjavesi - hiekka",
                                    "pohjavesi - hiekka+uv", "pintavesi - ei puhdistusta",
                                    "pintavesi - uv", "pintavesi - hiekka+uv",
                                    "pintavesi - hiekka+aktiivihiili+uv")
levels(plotdata_path$label) <- c("pohjavesi - ei puhdistusta", "pohjavesi - hiekka",
                                "pohjavesi - hiekka+uv", "pintavesi - ei puhdistusta", "pintavesi - uv",
                                "pintavesi - hiekka+uv", "pintavesi - hiekka+aktiivihiili+uv")
levels(plotdata_age$label) <- c("pohjavesi - ei puhdistusta", "pohjavesi - hiekka",
                                "pohjavesi - hiekka+uv", "pintavesi - ei puhdistusta", "pintavesi - uv",
                                "pintavesi - hiekka+uv", "pintavesi - hiekka+aktiivihiili+uv")


### DALYS CAUSED BY DISEASE ----
### DALYS CAUSED BY DISEASE ----
Line 638: Line 709:
                             y=illness_data$response[illness_data$label==levels(illness_data$label)[i]], # y (exposure agent) on y
                             y=illness_data$response[illness_data$label==levels(illness_data$label)[i]], # y (exposure agent) on y
                             visible = illness_data$visible[illness_data$label==levels(illness_data$label)[i]], # is this trace visible
                             visible = illness_data$visible[illness_data$label==levels(illness_data$label)[i]], # is this trace visible
                            #                            text = aval$pathogen[aval$rawclass==levels(aval$rawclass)[i]], # text to be used as a label
#                            text = aval$pathogen[aval$rawclass==levels(aval$rawclass)[i]], # text to be used as a label
                             mode="markers",
                             mode="markers",
                             marker = list(size=10, # marker size
                             marker = list(size=10, # marker size
                                           colorscale = list(c(0, "#00000010"), list(1, "#8B15C4FF")), # sets the colors used when color=0 and color=1
                                           colorscale = list(list(0, 'rgba(200,200,200,0.2)'), list(1, 'rgba(0,181,204,1)')), # sets the colors used when color=0 and color=1
                                           color = c(rep(1, 8), # the first 17 markers use color 1
                                           color = c(rep(1, 8), # the first 17 markers use color 1
                                                     rep(0, 8*5))), # the rest use color 0
                                                     rep(0, 8*5))),
#                                          opacity = c(rep(1, 8), # the first 17 markers use color 1
#                                                      rep(0.05, 8*5))), # the rest use color 0
                             hoverinfo = "x", # what is the info shown when mouse on top of marker
                             hoverinfo = "x", # what is the info shown when mouse on top of marker
                             showlegend=F)
                             showlegend=F)
 
 
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
            method = 'restyle',
              method = 'restyle',
            label= levels(illness_data$label)[i]) # Sets the text label to appear on the menu  
              label= levels(illness_data$label)[i]) # Sets the text label to appear on the menu  
   bw$args[[2]][i] = TRUE  # set data on step i to be visible when step i is chosen
   bw$args[[2]][i] = TRUE  # set data on i+1 step to be visible when step i is chosen
   buttons_water1[[i]] = bw # make a list with all the steps
   buttons_water1[[i]] = bw # make a list with all the steps
}   
}   
Line 679: Line 752:
                       label = "0.5")
                       label = "0.5")
)
)


# add slider control to plot
# add slider control to plot
illness_plot <- illness_plot %>%
illness_plot <- illness_plot %>%
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
                             currentvalue = list(prefix = "Chlorine dose: "),  
                             currentvalue = list(prefix = "Klooriannos mg/l:"), #suomeksi
#                            currentvalue = list(prefix = "Chlorine dose: "), # in English
                             # the text under the graph that tells what the slider values mean
                             # the text under the graph that tells what the slider values mean
                             steps = steps_cl1)),
                             steps = steps_cl1)),
         updatemenus = list(list(active = 0,
         updatemenus = list(list(active = 0,
                                 buttons = buttons_water1)),
                                 buttons = buttons_water1,
        #                                type = "buttons")),
                                y = -0.15,
        #                                y = ,
                                x = -0.1,
        #                                direction = "right")),
                                direction = "up")),
        title = paste('Burdens of disease of drinking water in a population of', total_population),
#        title = paste('Burdens of disease of drinking water in a population of', total_population), # in English
        title = paste("Juomaveden aiheuttama tautitaakka", total_population, "hengen populaatiossa"), # suomeksi
         xaxis = list(title ="DALY"),
         xaxis = list(title ="DALY"),
         yaxis = list(title =""))
         yaxis = list(title =""))


illness_plot
illness_plot
#


### DALYS BY AGE GROUP ----
### DALYS BY AGE GROUP ----
Line 721: Line 797:
                         y=age_data$age[age_data$label==levels(age_data$label)[i]], # y (exposure agent) on y
                         y=age_data$age[age_data$label==levels(age_data$label)[i]], # y (exposure agent) on y
                         visible = age_data$visible[age_data$label==levels(age_data$label)[i]], # is this trace visible
                         visible = age_data$visible[age_data$label==levels(age_data$label)[i]], # is this trace visible
                        #                        text = aval$pathogen[aval$rawclass==levels(aval$rawclass)[i]], # text to be used as a label
#                        text = aval$pathogen[aval$rawclass==levels(aval$rawclass)[i]], # text to be used as a label
                         mode="markers",
                         mode="markers",
                         marker = list(size=10, # marker size
                         marker = list(size=10, # marker size
                                       colorscale = list(c(0, "#00000010"), list(1, "#8B15C4FF")), # sets the colors used when color=0 and color=1
                                       colorscale = list(list(0, 'rgba(200,200,200,0.2)'), list(1, 'rgba(0,181,204,1)')), # sets the colors used when color=0 and color=1
                                       color = c(rep(c(1,0,0,0,0,0), 6))),
                                       color = c(rep(c(1,0,0,0,0,0), 6))),
                         hoverinfo = "x", # what is the info shown when mouse on top of marker
                         hoverinfo = "x", # what is the info shown when mouse on top of marker
Line 731: Line 807:
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
             method = 'restyle',
             method = 'restyle',
             label= levels(illness_data$label)[i]) # Sets the text label to appear on the menu  
             label= levels(age_data$label)[i]) # Sets the text label to appear on the menu  
   bw$args[[2]][i] = TRUE  # set data on step i to be visible when step i is chosen
   bw$args[[2]][i] = TRUE  # set data on i+1 step to be visible when step i is chosen
   buttons_water2[[i]] = bw # make a list with all the steps
   buttons_water2[[i]] = bw # make a list with all the steps
}   
}   
Line 767: Line 843:
age_plot <- age_plot %>%
age_plot <- age_plot %>%
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
                             currentvalue = list(prefix = "Chlorine dose: "),  
                             currentvalue = list(prefix = "Klooriannos mg/l:"), #suomeksi
                            # the text under the graph that tells what the slider values mean
#                            currentvalue = list(prefix = "Chlorine dose: "), #in English
                             steps = steps_cl2)),
                             steps = steps_cl2)),
         updatemenus = list(list(active = 0,
         updatemenus = list(list(active = 0,
                                y = -0.15,
                                x = -0.1,
                                direction = "up",
                                 buttons = buttons_water2)),
                                 buttons = buttons_water2)),
         #                                type = "buttons")),
         title = paste("Juomaveden aiheuttama tautitaakka", total_population, "hengen populaatiossa"), # suomeksi
        #                                y = ,
#        title = paste('Burdens of disease of drinking water in a population of', total_population), # in English
        #                                direction = "right")),
        title = paste('Burdens of disease of drinking water in a population of', total_population),
         xaxis = list(title ="DALY"),
         xaxis = list(title ="DALY"),
         yaxis = list(title =""))
         yaxis = list(title =""))
Line 781: Line 858:
age_plot
age_plot


 
#


### DALYS CAUSED BY PATHOGEN ----
### DALYS CAUSED BY PATHOGEN ----
Line 800: Line 877:
pathogen_plot <- plot_ly()
pathogen_plot <- plot_ly()
for (i in 1:length(treatment)) {
for (i in 1:length(treatment)) {
  pathogen_plot <- add_trace(pathogen_plot, # add traces to illness_plot
pathogen_plot <- add_trace(pathogen_plot, # add traces to illness_plot
                            type = 'scatter', mode="markers", showlegend=F,
                            type = "scatter",
                             x=pathogen_data$result[pathogen_data$label==levels(pathogen_data$label)[i]], # x (BoD) on x
                            x=pathogen_data$result[pathogen_data$label==levels(pathogen_data$label)[i]], # x (BoD) on x
                             y=pathogen_data$pathogen[pathogen_data$label==levels(pathogen_data$label)[i]], # y (exposure agent) on y
                            y=pathogen_data$pathogen[pathogen_data$label==levels(pathogen_data$label)[i]], # y (exposure agent) on y
                             visible = pathogen_data$visible[pathogen_data$label==levels(pathogen_data$label)[i]], # is this trace visible
                            visible = pathogen_data$visible[pathogen_data$label==levels(pathogen_data$label)[i]], # is this trace visible
                            mode="markers",
                            marker = list(size=10, # marker size
                                          colorscale = list(list(0, 'rgba(200,200,200,0.2)'), list(1, 'rgba(0,181,204,1)')), # sets the colors used when color=0 and color=1
                                          color = c(rep(1, 6), # the first 17 markers use color 1
                                                    rep(0, 6*5))), # the rest use color 0
                            hoverinfo = "x", # what is the info shown when mouse on top of marker
                            showlegend=F)
 
  bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
            method = 'restyle',
            label= levels(pathogen_data$label)[i]) # Sets the text label to appear on the menu
  bw$args[[2]][i] = TRUE  # set data on i+1 step to be visible when step i is chosen
  buttons_water3[[i]] = bw # make a list with all the steps
 
 
steps_cl3 <- list(list(args = list('marker.color', # marker color is changed
                                  array(c(rep(1, 6), rep(0, 6*5)), dim=c(1, 36))), # these are the new markers with color 1 and 0
                      method = 'restyle', # restyling the markers
                      label = "0"), # label on the slider
                  list(args = list('marker.color',
                                  array(c(rep(0, 6), rep(1, 6), rep(0, 6*4)), dim=c(1, 36))),
                      method = 'restyle',
                      label = "0.1"),
                  list(args = list('marker.color',
                                  array(c(rep(0, 6*2), rep(1, 6), rep(0, 6*3)), dim=c(1, 36))),
                      method = 'restyle',
                      label = "0.2"),
                  list(args = list('marker.color',
                                  array(c(rep(0, 6*3), rep(1, 6), rep(0, 6*2)), dim=c(1, 36))),
                      method = 'restyle',
                      label = "0.3"),
                  list(args = list('marker.color',
                                  array(c(rep(0, 6*4), rep(1, 6), rep(0, 6)), dim=c(1, 36))),
                      method = 'restyle',
                      label = "0.4"),
                  list(args = list('marker.color',
                                  array(c(rep(0, 6*5), rep(1, 6)), dim=c(1, 36))),
                      method = 'restyle',
                      label = "0.5")
)
 
 
# add slider control to plot
pathogen_plot <- pathogen_plot %>%
  layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
                            currentvalue = list(prefix = "Klooriannos mg/l:"), # suomeksi
#                            currentvalue = list(prefix = "Chlorine dose: "), # in English                              # the text under the graph that tells what the slider values mean
                             steps = steps_cl3)),
        updatemenus = list(list(active = 0,
                                y = -0.15,
                                x = -0.1,
                                direction = "up",
                                buttons = buttons_water3)),
        title = paste("Juomaveden aiheuttama tautitaakka", total_population, "hengen populaatiossa"), # suomeksi
#        title = paste('Burdens of disease of drinking water in a population of', total_population), # in English
        xaxis = list(title ="DALY"),
        yaxis = list(title =""))
 
 
pathogen_plot
 
 
### DALYs BY PATHOGEN, ONLY GASTROENTERITIS ----
 
# a data frame with the relevant columns
pathogen_gastro_data <- plotdata_path_gastro[plotdata_path_gastro$Response == "gastroenteritis",]
colnames(pathogen_gastro_data) <- c("response", "pathogen", "cldose", "rawclass", "result", "label")
 
pathogen_gastro_data$visible <- F
pathogen_gastro_data$visible[pathogen_gastro_data$label==levels(pathogen_gastro_data$label)[1]] = T # ground water + none visible
 
#levels(pathogen_data$rawclass) <- c("clean", "almost", "high", "low", "medium")
#pathogen_data$rawclass <- factor(pathogen_data$rawclass, levels(pathogen_data$rawclass)[c(2,4,5,3,1)])
#pathogen_data$visible[pathogen_data$rawclass==levels(pathogen_data$rawclass)[1]] = T # clean ground water visible
 
# create steps and plot all traces
buttons_water3 <- list()
path_gastro_plot <- plot_ly()
for (i in 1:length(treatment)) {
  path_gastro_plot <- add_trace(path_gastro_plot, # add traces to illness_plot
                            type = "scatter",
                            x=pathogen_gastro_data$result[pathogen_gastro_data$label==levels(pathogen_gastro_data$label)[i]], # x (BoD) on x
                             y=pathogen_gastro_data$pathogen[pathogen_gastro_data$label==levels(pathogen_gastro_data$label)[i]], # y (exposure agent) on y
                             visible = pathogen_gastro_data$visible[pathogen_gastro_data$label==levels(pathogen_gastro_data$label)[i]], # is this trace visible
                             mode="markers",
                             mode="markers",
                             marker = list(size=10, # marker size
                             marker = list(size=10, # marker size
                                           colorscale = "bluered", # list(list(0, "#00000010"), list(1, "#8B15C4FF")), # sets the colors used when color=0 and color=1
                                           colorscale = list(list(0, 'rgba(200,200,200,0.2)'), list(1, 'rgba(0,181,204,1)')), # sets the colors used when color=0 and color=1
                                           color = c(rep(1, 6), # the first 17 markers use color 1
                                           color = c(rep(1, 6), # the first 17 markers use color 1
                                                     rep(0, 6*5))), # the rest use color 0
                                                     rep(0, 6*5))), # the rest use color 0
Line 815: Line 977:
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
   bw <- list(args = list('visible', rep(FALSE, length(treatment))), # set all steps to not visible
             method = 'restyle',
             method = 'restyle',
             label= levels(pathogen_data$label)[i]) # Sets the text label to appear on the menu  
             label= levels(pathogen_gastro_data$label)[i]) # Sets the text label to appear on the menu  
   bw$args[[2]][i] = TRUE  # set data on step i to be visible when step i is chosen
   bw$args[[2]][i] = TRUE  # set data on i+1 step to be visible when step i is chosen
   buttons_water3[[i]] = bw # make a list with all the steps
   buttons_water3[[i]] = bw # make a list with all the steps
}   
}   


steps_cl3 <- list(list(args = list('marker.color', # marker color is changed
steps_cl3 <- list(list(args = list('marker.color', # marker color is changed
Line 846: Line 1,009:
)
)


# Add marker line
line <- list(
  type = "line",
  line = list(color = "red"),
  xref = "x",
  yref = "y"
)
lines <- list()
line[c("x0", "x1")] <- 1
line["y0"] <- -0.5
line["y1"] <- 5.5
lines <- c(lines, list(line))


# add slider control to plot
# add slider control to plot
pathogen_plot <- pathogen_plot %>%
path_gastro_plot <- path_gastro_plot %>%
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
   layout(sliders = list(list(active = 0, #Determines which button (by index starting from 0) is active.
                             currentvalue = list(prefix = "Chlorine dose: "),  
                             currentvalue = list(prefix = "Klooriannos mg/l:"), # suomeksi
                            # the text under the graph that tells what the slider values mean
#                            currentvalue = list(prefix = "Chlorine dose: "), # in English the text under the graph that tells what the slider values mean
                             steps = steps_cl3)),
                             steps = steps_cl3)),
         updatemenus = list(list(active = 0,
         updatemenus = list(list(active = 0,
                                y = -0.15,
                                x = -0.1,
                                direction = "up",
                                 buttons = buttons_water3)),
                                 buttons = buttons_water3)),
         #                                type = "buttons")),
         shapes = lines,
         #                                y = ,
         title = paste("Juomaveden päivässä aiheuttamat suolistotautitapaukset", total_population, "hengen populaatiossa"), # suomeksi
        #                                direction = "right")),
#        title = paste('Number of gastroenteritis cases caused daily by drinking water in a population of', total_population), # in English
        title = paste('Burdens of disease of drinking water in a population of', total_population),
         xaxis = list(title ="Tautitapaukset"),
         xaxis = list(title ="DALY"),
         yaxis = list(title =""))
         yaxis = list(title =""))




pathogen_plot
path_gastro_plot
 




#


#### STEPS TO CHANGE SIZE ----
#### STEPS TO CHANGE SIZE ----
Line 895: Line 1,073:
#                              color = 'rgba(128,0,128,0.7)'),
#                              color = 'rgba(128,0,128,0.7)'),


# pushIndicatorGraph(pathogen_plot, 84)
# PUSH INDICATOR GRAPH ----
pushIndicatorGraph(illness_plot, 188)
pushIndicatorGraph(age_plot, 189)
pushIndicatorGraph(pathogen_plot, 190)
 
 
 
</rcode>
</rcode>


Line 909: Line 1,093:
* [[:op_fi:Mikrobien määrä juomavedessä]]
* [[:op_fi:Mikrobien määrä juomavedessä]]
* [[:op_fi:Mikrobien määrä pohjavedessä]]
* [[:op_fi:Mikrobien määrä pohjavedessä]]
*[[Bathing water guide]]


* WHO: [https://apps.who.int/iris/bitstream/handle/10665/246195/9789241565370-eng.pdf?sequence=1 Quantitative Microbial Risk Assessment: Application for Water Safety Management]
*http://www.fao.org/docrep/006/y4666e/y4666e06.htm#TopOfPage
*http://www.fao.org/docrep/006/y4666e/y4666e06.htm#TopOfPage
*http://wiki.camra.msu.edu/index.php?title=Main_Page
*http://wiki.camra.msu.edu/index.php?title=Main_Page

Latest revision as of 14:33, 23 March 2020


Water guide - An assessment of the health impacts of water quality addresses the potential microbiological health risks of drinking water. These microbiological risks are due to the contamination of raw water with microbes that cause potential health problems for people using tap water, as well as the efficiency of drinking water treatment, which can be insufficient for removing harmful microbes from drinking water. The assessment will be used to determine, how high the health risk is from certain microbes in raw water. The assessment is based on a mathematical Water guide -model, which can be found below.

Question

How to assess the microbiological risks of drinking water as well as their health effects? Information of water treatment plants must be possible to use as raw data.

Answer

Situation

Classification of raw water:

Size of the exposed population:

The amount (in liters) of unboiled tap water consumed per person per day:

Microbe concentrations of raw water

Campylobacter concentration (microbes/l):

E.coli O157:H7 concentration (microbes/l):

Rotavirus concentration (microbes/l):

Norovirus concentration (microbes/l):

Sapovirus concentration (microbes/l):

Cryptosporidium concentration (microbes/l):

Giardia concentration (microbes/l):

Water cleaning: Cleaning process and chlorination

Water cleaning methods in use:
Coagulation and flotation
Slow sand filtration
Limestone filtration
Active carbon filtration

Chlorine dose (mg/l):

Ozone dose (mg/l):

UV dose (mW/cm^2):

UV time (s):

+ Show code

The result page opens in a new tab by pressing the Run model -box. It will take approximately 40 seconds for the model to run, after which the results will appear on the result page.

User instructions for the Water guide -model


1. Choose classification of raw water

  • Ground water - Clean: clean ground water
  • Ground water - Surface water load: f.ex. shore infiltration
  • Surface water - Low load: relatively clean surface water
  • Surface water - Medium load: f.ex. low waste water load
  • Surface water - High load: f.ex. waste water load

OR

Choose 'I will determine microbe concentration by hand'. Write pathogen concentrations in their respective boxes.

2. State the concumption of drinking water per 24 h in liters per day per person (default 1.153 l/d).

3. State the population size of target area. (default 100000)

4. Choose treatment processes used. Obs! You can choose multiple options. If none of the first six treatment processes are used, choose "None of the above cleaning methods". If neither UV nor ozone is used, choose "None of the above disinfection methods".

5. Choose whether chlorination is used or not by giving the chlorine dose used (mg/l). If there is no chlorination, the dose will be 0 mg/l (default 0 mg/l). The model only calculates the effect of chlorine on the water in treatment plants, and ignores any further cleansing effects residual chlorine may have after the water moves onward to the pipe network.

6. You can see the results in a new tab by pressing 'Run model' This opens a new tab, in which the results will appear after the model is done running. This takes approximately 45 seconds.

Rationale

The model has been translated from Analytica to R. You can find the original model here (page in Finnish, link to the model code at the top): op_fi:Tiedosto:Vesiopas.ANA. If the user does not give concentrations for the pathogens, the values on page Pathogen concentrations in raw water will be used.

Health-based quality requirements and recommendations have been implanted on the quality of household water. In Finland, the ministry of social affairs and health is responsible for the legislation of the quality, and monitoring it is the responsibility of municipal health protection officials. Upholding and developing good water quality require high-standard research and cooperation between different parties. Ground waters and artificial ground waters are usually not disinfected. The chemicals and microbes in raw water and byproducts of disinfection produced in household water production can present health risks to the people using the household water. Water leaving the treatment plant can stay in the pipes for a long time. If the circumstances are favourable for microbial growth, the water can become low in quality and even detrimental to health while in the pipe network.

Household water is produced from either ground or surface water. The problems of these types of waters as raw water are different. Using surface water always requires establishing an actual treatment plant and the associated knowledge, skills, technologies and educated monitoring personnel. Ground water on the other hand doesn't require very complex treatment, so not many treatment plant personnel are needed, and there is less monitoring. Additionally today there are many treatment plants that produce artificial ground water. The qualities of artificial ground water can be similar to good ground waters, but the quality of the water is often only be equal to medium quality surface water.

Treatment of ground water usually includes increasing the pH and and hardness of water. This can be done using different techniques, of which the use of calcium hydroxide and carbon dioxide to regulate pH are the most common. Sometimes also precipitation of iron or manganese is required using strong oxidisers such as permanganate or chlorine. Low quality ground water is also disinfected.

In order to make surface water drinkable, it has to be heavily treated. The hardest thing is to precipitate the humus. This is done by using not only different precipitation chemicals, also for example adjust pH and breaking down the humus with strong oxidisers such as ozone. On top of that, the precipitated chemicals (such as salts of aluminium and iron) need to be removed and water hardness raised so that the pipelines don't disintegrate over time. Also, the population has to be protected from the microbes always present in surface waters, so the water needs to be disinfected to remove pathogens.

The quality of water is also affected by the condition of the pipelines and the water spends in them. If there is a lot of coagulation in the pipelines, these dregs include not only different inorganic compounds but also a large amout of bacterial mass. The coagulates in the pipelines and their qualities have started to be researched in Finland only recently.

The purpose of risk assessment is to produce information of the true size of the risk for decision-making. Risk assessment is a scientific process in which experts hold a key role. Because there are any kinds of risks to study, risk assessment processes can be very different. In environmental health risk assessment consists of four steps:

  1. Identifying the danger (does the variable researched pose a danger to humans?)
  2. Assessing the exposure-response function (how big a dose results in how big a response?)
  3. Assessing exposure (how much are humans exposed?)
  4. Characterising the risk (how high is the health risk?)[1]

All water treatment plants should periodically do risk assessment on on the household water they produce. It is done to identify actions to be taken in different crisis situations and prepare plans for different problematic situations and possible damage. Different treatment plants and for example vacation centers need different kinds of plans and implementations.

Dependencies

Pages containing the data and codes used by the model
Page What data or code the page has What is it used for Other observations
Op_en2949 Population of Finland Data on the age distribution of Finns Age distribution is used, because susceptibility to diseases and their severity changes with age. The burden of disease and cases of illness are calculated for each age group, then summed.
Op_en7956 Drinking water chlorination efficiency Log-decrease in pathogens due to chlorination, with different doses The code on this page uses the data on the page and user-given dose for chlorine to calculate the case-specific decrease in pathogens due to chlorination. This is summed with log-decrease of other treatment and disinfection methods to produce the total log-decrease in pathogens from water treatment. The model only takes into account any decrease in pathogens that happens in water treatment plants. Any further effect residual chlorine has after it enters the pipes is not included.
Op_en7955 Drinking water disinfection efficiency Log-decreases of pathogens due to ozonization and UV If the user has chosen one or both of these disinfection methods, the decrease from the chosen one(s) is summed with the decrease due to chlorination and other treatment methods to produce the total log-decrease in pathogens from water treatment. Currently the qualities of water, such as turbidity, are not taken into account in the efficiency of disinfection methods. The dose for both methods is also set.
Op_en7954; Drinking water treatment efficiency Log-decreases of pathogens due to different treatment methods. These methods are traditional cleaning, well working cleaning, enhanced cleaning, slow sand filtration, limestone filtration and active carbon filtration. If the user has chosen one of multiple of these treatment methods, the decrease of pathogens they produce is summed with the decreases due to chlorination and other disinfection methods to produce the total log-decrease in pathogens from water treatment.
Op_en7953 Pathogen concentrations in raw water The concentrations of pathogens of different raw water classes If the user has chosen one of the raw water classes, the amounts of pathogens in that class and the total log-decrease of pathogens from treatment are used to calculate the amount of pathogens left in drinking water. If the user has given pathogen concentrations by hand, those values are used instead of the data on this page.
Op_en7947 Case burden of waterborne microbes Case burdens of different pathogens, or how severe and long-lasting the diseases caused by them are This data is used to calculate the health detriments caused by the pathogens in drinking water.
Op_en7957 Health impacts of waterborne microbes Doesn't contain data, only code These codes use water consumption given by the user, total decrease in pathogens and the pathogen concentrations in raw water to calculate the exposure to pathogens experienced by one individual, or how many of each pathogen an individual swallows daily with drinking water.
Op_en7948 ERF of waterborne microbes Describes the exposure-response functions for the pathogens These functions tell, how likely an individual is to get sick with different exposures. This and the exposure are used to estimate the cases of illness.
Op_en2261 HIA Code that combines all of the above The code on the page uses exposure, exposure-response functions and the case burdens to calculate the total burdens caused by pathogens in drinking water. From here it is also possible to calculate the number of people getting ill from drinking water. These are the final results of the model.


Table of decisions used in drawing plotly graphs.

Decisions(-)
ObsDecisionOptionVariableCellChangeDescriptionResult
1AdjustGround - noneRawConcentrationRawWaterClass: Ground water - surface water contaminationRemove
2AdjustGround - noneRawConcentration

Well, this doesn't work at all.

Calculations

Initiate model

+ Show code

Plotly test

+ Show code

Another plotly test

+ Show code

Plotly with two sliders

+ Show code

See also

Municipality-specific data

References