Monitoring and control of water treatment plants play an essential role in ensuring high quality drinking water and avoiding health-related problems or economic losses. The most common quality variables, which can be used also for assessing the efficiency of the water treatment process, are turbidity and residual levels of coagulation and disinfection chemicals. In the present study, the trend indices are developed from scaled measurements to detect warning signs of changes in the quality variables of drinking water and some operating condition variables that strongly affect water quality. The scaling is based on monotonically increasing nonlinear functions, which are generated with generalized norms and moments. Triangular episodes are classified with the trend index and its derivative. Deviation indices are used to assess the severity of situations. The study shows the potential of the described trend analysis as a predictive monitoring tool, as it provides an advantage over the traditional manual inspection of variables by detecting changes in water quality and giving early warnings.
INTRODUCTION
There is a growing demand to improve water treatment management to ensure high quality water for consumers at as low as possible operating cost. Efficient monitoring and control have a key role in high quality drinking water processing at water treatment plants (WTPs). Many process measurements are available in modern WTPs, but the quality of the processed water is not measured until it is leaving the plant for distribution to consumers and corrective control actions have no effect on water quality. In addition, water treatment processes are very challenging for monitoring, modelling and control because they are complex, nonlinear processes where several (partly unknown) variables affect the functionality and quality of water. Poorly operating WTPs and low quality water may cause health problems to consumers and significant economic losses to a WTP. Health effects can be due to single exposures to microbial pathogens or long-term exposure to chemicals. Economic losses include excessive chemical and energy consumption, cleaning the distribution system, compensation to consumers and process improvements. The contamination of the water can be prevented, reduced or eliminated by the proper control of the process. Successful control, on the other hand, requires accurate monitoring of the process. Specific limits of the operating and quality variables are monitored by on-line or laboratory analysis (WHO (World Health Organization) 2003, 2008).
The quality of drinking water and the efficiency of a WTP can be assessed by many parameters, but the most common are turbidity and residual chemical level. Surface waters are typically treated by a chemical coagulation-based process, and aluminium or iron salts are widely used as coagulants to reduce the organic matter, colour and turbidity of raw water (WHO (World Health Organization) 2008). Aluminium has a good ability to coagulate and flocculate both organic and inorganic compounds, but using aluminium salts in a water treatment process may lead to an increased concentration of residual aluminium in drinking water if the coagulant is overdosed or the water treatment process is dysfunctional. In Finland, for residual aluminium, the maximum target value of the quality recommendation, defined in the Health Protection Act of the Ministry of Social Affairs and Health, is 0.2 mg/litre (FINLEX 2000). If the residual aluminium level in drinking water rises above 0.1–0.2 mg/litre, it is usually noticed by consumers. It has been found that the residual aluminium level in drinking water is affected by, inter alia, the raw water temperature, raw water KMnO4 (potassium permanganate) value, raw water pH, turbidity, Al/KMnO4-ratio, pH of coagulation and silicate concentration (Driscoll & Letterman 1995; Juntunen et al. 2012; Tomperi et al. 2013a). The residual aluminium also increases the water turbidity (WHO (World Health Organization) 2008). The residual aluminium concentration in drinking water can be minimized, for example, by optimizing water pH, avoiding excessive dosing of aluminium, good mixing of coagulants, optimum paddle speed in the flocculation process and efficient floc filtration (WHO (World Health Organization) 2008).
Turbidity is caused by suspended particles, which reduce the clarity of water. Suspended particles usually come from the raw water source due to inadequate water treatment or from the resuspension of sediments in a distribution system. The limit for acceptable drinking water turbidity is around 5 NTU (WHO (World Health Organization) 2008). Higher turbidity indicates problems in the treatment process. Particles that cause turbidity can protect microorganisms from the effects of disinfection and stimulate bacterial growth, which causes health effects for consumers. Thus, the turbidity must be as low as 0.1 NTU for effective disinfection. Among others, the coagulation chemical dose, the turbidity of the raw water, the temperature of the water, the raw water KMnO4 value and water pH affect the turbidity of drinking water (Juntunen et al. 2012). Residual aluminium and turbidity in drinking water have been found to be strongly correlated (Tomperi et al. 2011).
The qualitative scaling defined by episodes shown in Figure 1 generates a multiscale structure of trend descriptions over different time scales from process data (Stephanopoulos et al. 1997). Generalized norms provide tools for analysing different effects (Lahdelma & Juuso 2011a, 2011b). These norms and the nonlinear scaling approach (Juuso & Lahdelma 2010) are combined with the method introduced in Juuso et al. 2009 to form the trend analysis method presented in Juuso (2011).
In the present study, the described trend analysis is applied to the water quality variables and operating conditions that have been found to affect the water quality. Before the trend analysis, all measurements are scaled to the range [−2, 2] by using a nonlinear scaling approach which is based on generalized norms and skewness. The scaling is necessary to perform the trend analysis, as it uses only values between −2 and 2. The goal is to demonstrate the potential of the presented trend analysis, which shows the direction, speed and severity of the changing situation, as a monitoring tool in a slow water treatment process. The trend analysis can also be applied to various other measurements and processes. Here, the trend analysis is utilized with a short period of water treatment data where the quality of the water changes drastically, as against in our earlier study, in which the trend analysis was applied to fewer variables and proved functional for a longer period (Tomperi et al. 2014). By using a properly tuned trend analysis, the changes in water quality can be forecast in advance, an early warning can be received and it is possible to perform control or proactive actions to avoid the problems.
MATERIAL AND METHODS
The water treatment plant
Data was collected from a Finnish WTP, which uses the surface water of a lake as raw water. The raw water is treated with chemical flotation and filtration. The coagulation chemical is dosed as a function of raw water KMnO4 value. KMnO4 is an oxidizing agent that is used for measuring the chemical oxygen demand (COD) which indicates the amount of organic compounds in water. UV-radiation and sodium hypochlorite are used for disinfection and the pH is adjusted to the optimal value with calcium hydroxide.
Nonlinear scaling
The typical way to tune the membership definition (based on the generalized skewness) is to define the central value and the core [], the ratios and from the range [1/3, 3], and calculate the support []. The membership definitions of each variable are configured with four parameters {} and the central value . The upper and the lower parts of the scaling functions can be convex or concave, independently of each other (Figure 3). Simplified functions can also be used, for example, a linear membership definition requires two parameters and an asymmetrical linear definition requires three. Additional constraints can be taken into account for derivatives, for example, a locally linear function results if the continuous derivative is chosen in the central value (Juuso 2009).
In the analysis of the corner points, the value range of is divided into two parts by the central tendency value , and the core area (Figure 2) is limited by the central tendency values of the lower and upper part. The central point is chosen as the point where the skewness changes from positive to negative. Then the data set is divided into a lower part and an upper part and the same analysis is done for both subsets. The estimates of the corner points, and , are the points where skewness goes to zero. The iteration is performed with generalized norms. Then the ratios and are forced inside the range [1/3, 3] by changing the corner points and or the upper and lower limits and/or . The linearity requirement at the central point is taken into account, if possible (Juuso 2009).
The trend indices applied
In simple terms, the trend episodes and deviation indices resulting from the trend analysis show the direction, speed and severity of the change in the observed variable. Here, they provide warnings of changes in the water quality and environmental conditions that affect the water quality.
The derivative of the index , denoted as , is used for analysing triangular episodic representations (Figure 1). The derivative is calculated simply as a difference of subsequent values of the trend index. An increase is detected if the trend index exceeds a threshold and correspondingly, for a decrease. The trends are linear if the derivative is close to zero:. Concave upward monotonic increase (D) and concave downward monotonic decrease (B) are dangerous situations where the situation is bad and it is getting worse at an increasing rate. Concave downward monotonic increase (A) and concave upward monotonic decrease (C) mean that an unfavourable trend is stopping. In process monitoring, the concave upward monotonic increase (D) requires special attention. New phenomena are activated when the system moves from the linear increase to this area. The scaling functions should be defined for the whole operating area. However, a wide range of measurements is only available after failure. Initial estimates are needed at the beginning for the corner points. Parameters for the lower part [−2, 0] are updated when a change to episode D is detected with the trend analysis based on the initial estimates of the scaling functions. Parameters for the upper part [0, 2] can be updated recursively (Juuso et al. 2009).
This index has its highest absolute values, when the difference from zero is very large and is getting still larger at a rapidly increasing rate (Juuso et al. 2009).This can be understood as an additional dimension in Figure 1.
Weight factors and parameters for trend analysis affect the accuracy of the trend analysis and its forecasting ability. They are selected separately for every measurement. The trend episodes are visualized step by step during the operation, and thus the sequence of the points is not seen when all the points are presented in the same plot. The direction of the change in the trend episodes at the time of remarkable change is marked with arrows in Figures 5 and 6.
RESULTS AND DISCUSSION
In the present study, trend indices were calculated using scaled measurement values to find trend episodes and deviation indices for a short period and several variables, whereas in our earlier study the trend analysis was performed and proved to be efficient using a 16-month long dataset (Tomperi et al. 2014). In the present study, the dataset for trend analysis was a continuous 2,500-hour long period when the potable water quality changed drastically. However, to include seasonal changes and all different conditions available, the scaling was performed using the whole original 16-month dataset, not only the short selected period. The original data was smoothed to delete single spikes and to make presented figures clearer.
In addition to the common quality variables (turbidity, residual coagulation chemical and residual disinfection chemical), important operating condition variables that have been found to affect the water quality and water treatment process efficiency were also selected for the trend analysis. Operating conditions like raw water temperature, raw water KMnO4 value (representing the COD of raw water) or raw water turbidity are not controllable variables, but their values depend on the season of the year, heavy rains, and snow melting, for example. The KMnO4 value indicates the amount of organic matter in water and should be as low as possible. It is typically high in autumn and spring. Decreasing temperature reduces the performance of the coagulation chemical, whereas the higher the temperature is, the better the water treatment coagulation chemical works. However, a water treatment process can be improved by optimizing the coagulation chemical dosage, mixing speed, flow, sodium hypochlorite and calcium hydroxide dosages, for example. The coagulation chemical dose has been found to be a major factor for residual aluminium level (Tomperi et al. 2013a).
CONCLUSION
The accurate monitoring and control of a water treatment process are essential to ensure high quality drinking water. By using proper control, the water treatment process is functional, the quality of potable water remains at the required level, and environmental problems, health effects, excessive energy consumption and financial losses are avoided. However, the control of the process can only be as accurate as the monitoring is. In the present study, the trend analysis presented was used for the most common water quality variables, and some important raw water variables that have been found to affect the drinking water quality and water treatment process functionality. It was shown that using trend analysis for indirect measurements of water quality and the operating conditions, the water quality can be forecast in advance; that is, early warnings of changes can be received and control or other proactive actions such as preventing water distribution to consumers can be performed. The information from trend analysis can be exploited by, for example, optimizing the coagulation chemical dose, and adjusting the pH or mixing speed. The trend analysis of the measured variables gives an advantage compared to the common, approximate examination done by the process operators, as visual monitoring is not efficient in detecting slow changes of process variables, especially if the viewed monitoring period is short.
ACKNOWLEDGEMENTS
The writing of this paper was financially supported by KAUTE Foundation, which is thereby warmly acknowledged. The data used in this study were collected during the project ‘Development of a comprehensive water quality management system’.