The Nile constitutes the essential source of life in Egypt; it provides people with their fresh water needs. It is an essential factor of production and vital for agriculture, transport, tourism and henceforth the socio-economic development of the country. However, the Nile has become, to a great extent, adversely affected by human activities. On the other hand, industrial waste discharge, leakage of sewage by urban agglomeration and agricultural runoff directly lead to the Nile contamination ( Abd El-Daiem, 2011).
Surface water quality deterioration at the intakes of Cairo water treatment plants along River Nile due to increasing level of some pollutants concentration above the guidelines paid the attention of public concern and may cause health hazards. Thus, the need for better management of Cairo treatment plants water sources quality is becoming essential.
The water quality can be characterized by many parameters that represent a water composition in specific localities and time. Real raw data are mostly huge; it means that they are not normally distributed, often co-linear or autocorrelated, including outliers or errors etc. Due to this reason, multivariate methods such as principal component analysis, cluster analysis, the factor analysis, and the discriminant analysis, are used (Zen & Rasmussen, 2005).
Principal Components Analysis( PCA) is a data analysis tool that is usually used to reduce the number of variables of a large number of interrelated variables, while retaining as much of the information (variation) as possible. PCA calculates an uncorrelated set of variables. These factors are ordered so that the first few retain most of the variation present in all of the original variables.
In cluster analysis, the objects are grouped on the basis of similarities within a class and dissimilarities among different classes (Panda et al., 2006). The similarities and dissimilarities are obtained on the basis of distance measures which are Euclidean and Manhattan (Kaufman & Rousseeuw, 1990).
Fuzzy clustering generalizes partition clustering methods by allowing an individual to be partially classified into more than one cluster. In regular clustering, each individual is a member of only one cluster. Fuzzy C-means (FCM) can be achieved through more careful and informed initialization based on data content. By carefully selecting the cluster centers in a way which disperses the initial cluster centers through the data space, the resulting FCM approach determines the cluster centers during the initialization phase. The cluster centers are well spread in the input space, resulting in both faster convergence times and higher quality solutions.
K-means can be used for cauterizing monitoring stations with similar water quality characteristics. K-means cluster analysis is a divisive clustering method with k number of groups set a priori to analysis (Akume & Weber, 2002). Once the number of clusters is set as an input and cluster centroids are initialized, observations are added iteratively to the most similar cluster, whose centroid is then recalculated until all of the observations are grouped (Davis, 2002).
2. Study Area
The Nile River enters Egypt at its southern boundary with Sudan and runs through 1000 km long narrow valley, then divided at a distance of 25 km north of Cairo into two branches (Rosetta and Damietta) forming a delta which ends at the Mediterranean Sea. Cairo, located on the Nile River south of the Mediterranean Sea, just upstream of the point where the river widens into the Delta. Cairo has an area of 353 km2 with an average reach length along the river about 50 km (from 900 km to 950 km referenced to Aswan High Dam).Figure 1 illustrates
Figure 1. Study area layout.
the study area layout which covers Cairo governorate along the River Nile, bounded by El Saff town (Giza Governorate) at 877.00 km from the South and El Kanater town (Qalubia Governorate) at 953.00 km from the North. The study scope will focus on the upstream of drinking water plants located in Cairo governorate along Nile River (Tibeen, Kafr Elw, North Helwan, Maadi, Fostat, El Roda and Rod Farg).
Cairo Drinking Water Plants (CDWPs)
Cairo water company (CWC), a subsidiary of the Holding Company of Water and Wastewater, produces potable water with an amount reaches to 6 million m3/day used by inhabitants of Greater Cairo (CDWC, Central Laboratory Annual Technical Report, 2018). This is done through 13 Cairo drinking water plants (Tibeen, Kafr Elw, North Helwan, Maadi, Fostat, El Roda, Rod El Farg, Amerea, Mostrod, El Marg, El Obour, El Asher, Shubra el Khiema) distributed in Greater Cairo. Table 1 shows the annual average raw water, treated water and sludge & washing water for Greater Cairo drinking water plants (CDWC, Central Laboratory Annual Technical Report, 2018).
From Table 1 and according to the study scope which focus on seven CDWPs located on Cairo governorate along Nile River only (Tibeen, Kafr Elw, North Helwan, Maadi, Fostat, El Roda and Rod Farg).
3. Materials and Methods
3.1. Data Requirements
Surface Water samples were collected from various sampling locations of rivers,
Table 1. CDWPs surface water source, annual average raw water and treated water.
canal, drains and industrial pollution sources of the study area. The analyses of water samples were carried on twenty water quality parameters for twelve consequence months during two years (2017, 2018) to show the effect of the spatial and temporal variation.
These water quality parameters included: pH, Turbidity, Electric Conductivity(EC), Total hardness, Total dissolved solids (TDS), Total alkalinity, Sulfates, Chlorides, Ammonia (NH3), Nitrates (NO3), Nitrites(NO2), Phosphate, Iron, Manganese, Calcium, Magnesium, Aluminum, Biological Oxygen Demand (BOD), Chemical Oxygen Demand (COD), Dissolved Oxygen (DO), Total Coliform (TC).
The methods consisted of three main components as follows:-
1) Perform the principal component analysis;
2) Develop the dominant water quality parameters;
3) Develop the optimum number of clusters by using Fuzzy C-Means (FCM);
4) Apply K-means algorithm technique to produce the generalized characteristics of clusters using the dominant parameters normalized data.
3.2.1. Principal Component Analysis
Principal component analysis (PCA) is mainly applied for the removal of data noise by the reduction of their dimensionality (Jolliffe, 2002). PCA searches new abstract orthogonal principal components (eigenvectors) which explain most of the data variation in a new coordinate system. Each principal component (PC) is a linear combination of the original variables and describes a different source of variation.
where xi and wi are the original variable and the component weight, respectively. The principal component weights are used as measures of the correlation between the variables and the principal components. The largest or first PC is oriented in the direction of largest variation of the original variables and passes through the center of the data. The second largest PC lies in the direction of the next largest variation, passes through the center of the data and is orthogonal to the first PC. The third largest PC is directed towards the next largest variance, goes through the data center and is orthogonal to the first and second PCs, and so forth. Classical PCA is based on the decomposition of a covariance/correlation matrix by the eigenvalue decomposition or by the singular value decomposition of real data matrices. The eigenvalues or singular values indicate variations among the observed variables (Yu et al., 2003).
Before the computation, the testing data were standardized in order to avoid misclassifications arising from different orders of magnitude of tested variables. Therefore the original data were meaning (average) centered and scaled by the standard deviations.
Procedural steps of the PCA (Suhr, 2005) are:
· Number of components equal to number of variables is generated;
· The number of components to retain is determined;
· Components are rotated (rotations is a linear transformation of the solution to make interpretation easier);
· Rotated solution is interpreted.
3.2.2. Dominant Water Quality Parameters
In this study, to determine the main dominant water quality parameter, varimax rotation used as an effective orthogonal rotation method that minimized the number of variables that have high loading on each factor. The Varimax coefficient having correlation greater than 0.75 are considered as strong and indicate high proportion of its variance explained by the factor, between 0.50 and 0.75 is considered as moderate loading while 0.30 - 0.50 as weak significant factor loading, indicating much of that attribute’s variance remains unexplained and it is less important (Reghunath et al., 2002).
3.2.3. Fuzzy C-Means Clustering (FCM) Analysis
FCM applied for clustering the raw data into several categories using the selected operators without respect to any predetermined criteria in relation to each category. Most of the rules designed for FCM are based on the proper search for centroids or representative objects around which all observations will be clustered on a minimum basis (Selim, 1984; Trauwaert et al., 1991).
FCM seeks to minimize the following objective function, C, made up of cluster memberships and distances (Kaufman & Rousseeuw, 1990).
where mik represents the unknown membership of the object i in cluster k and dij is the dissimilarity between objects i and j. The memberships are subject to constraints that they all must be non-negative and that the memberships for a single individual must sum to one.
One of the most difficult tasks in cluster analysis is choose the appropriate number of clusters. In fuzzy clustering, the following coefficients are used:
1) The amount of “fuzziness” in a solution may be measured by Dunn’s partition coefficient which measures how close the fuzzy solution is to the corresponding solution. This hard solution is formed by classifying each object into the cluster which has the largest membership. The formula for Dunn’s partition coefficient is:
This coefficient ranges from 1/K to 1. Its value is 1/K when all memberships are equal to 1/K. The value of one results when, for each object, the value of one membership is unity and the rest are zero.
2) Dunn’s partition coefficient may be normalized so that it varies from 0 (completely fuzzy) to 1 (hard cluster). The normalized version is
3) Another partition coefficient, given in Kaufman and Rousseeuw (1990) is:
4) The normalized version of this equation is:
Fc(U) and Dc(U) together give a good indication of an optimum number of clusters. We should choose K so that maximize the value of Fc(U) and minimizes Dc(U) (Kaufman & Rousseeuw, 1990).
3.2.4. K-Means Algorithm
K-means is a simple and efficient algorithm. It divides n observations into given K clusters and each observation belongs to cluster with nearest mean.
It uses the sum of square error criteria. The cluster pattern is assigned when sum of square error is minimum. The sum of square error equation (SSE) for K-means is given by:
where mi is the mean of the ith cluster and is a pattern assigned to that cluster. The K-means clustering has advantage over other methods as it can be used to assign new cases to the existing clusters.
4. Results and Discussion
4.1. Descriptive Statistics
Basic statistics were carried out in order to give initial information about the water quality data.Table 2 shows the details of descriptive statistics for the water quality variables measured in two years.
4.2. Principal Component Analysis
The calculated principal components loadings, eigenvalues, total variance and cumulative variance are shown in Table 3 while the scree plot of the eigenvalues of observed components is depicted in Figure 2.
The results of principal components analysis illustrated in Table 3 and Figure 2 of Cattel scree plot (Cattel, 1966) show that of the 20 components, only 6 had extracted eigenvalues over 1. This is based on Chatfield and Collin (1980) assumption which stated that components with an eigenvalue of less than 1 should be eliminated. The extracted 6 components were subsequently rotated according to varimax rotation in order to make interpretation easier and fundamental significance of extracted components to the water quality status of the selected study period. The result of rotation revealed further, the percentages of the total variances of the 6 extracted components when added account for 75.82% (that is their cumulative variance) of the total variance of the observed variables. This indicates that the variance of the observed variables had been accounted for by these 6 extracted components.
As it is obvious, the first principal component (PC1), accounts for 31.48% from total variation, can be called as an indication of salt component because it is mainly saturated with conductivity, hardness (including calcium). PC1 accounts show a strong loading on EC (0.902), TDS (0.889), Total Hardness (0.887), Sulfates (0.883), Chlorides (0.881), Magnesium (0.811), while moderate loading on Calcium (0.726), Nitrates (0.674) and Total Alkalinity (0.65). Electric Conductivity (EC) measurements indicate the presence of dissolved salts and electrolytic contaminants, but it gives no information about specific ion compositions (Adekunle et al., 2007). There was a strong positive correlation between TDS and EC values which revealed positively strong correlation to each other (r =
Table 2. Mean and standard deviation of surface water quality parameters.
Table 3. Principal component analysis after varimax rotation.
Figure 2. Scree plot of the eigenvalues of observed components.
+0.99), so the study results were in accordance with Toufeek and Korium (2009).
The second principal component (PC2), accounts for 13.29%, is associated with strong loading on Iron (0.879) and Manganese (0.819), while moderate loading on Calcium (0.536). The concentration of iron and manganese recorded higher attribute due to the intense of human activities and industrial effluents from for iron and steel companies.
The third principal component (PC3) described 9.73% of the total variance had a strong positive loading on BOD (0.938) and COD (0.926). These factors loading explained the effects of organic pollution and reflect strong influence of anthropogenic activities in the area, probably from domestic waste and industrial waste. High BOD and COD levels in the study area are related to the existence of high bacterial load and organic matters as well as relative high temperatures which enhance the enumeration of bacteria. However all results of study area water samples were higher than the permissible limit guidelines (COD should not exceed 10 mg/l) according to Egyptian National water quality standards, Egyptian Governmental Law No. 48, 1982 regarding the protection of the River Nile and waterways from pollution.
Out of the total variance, 6.55% is explained by the fourth principal component (PC4), is mainly carried by TC with a positive strong correlation (0.76) that is indicators for water contamination. The high counts of total coliform might be due to pollution by industrial activities discharging their wastes to the Nile water in Cairo (Saleh, 2009). All results of Nile water samples were higher than the permissible limit guidelines (TC should not exceed 5000 cfu/100 ml) according to Tebbutt (1998).
Additionally, 7.36% of the total variance of water quality is exhibited by NH3 with a strong positive loading under the fifth principal component (PC5). NH3 is closely related to the organic matter contents of the sediment and this high amount of nutrients might also result from the application of manure in agricultural activities (Terceiro et al., 2008).
The six principal component (PC6), with 7.4% of the total variance, consists mainly of pH (0.701) and DO (0.701) with a moderate loading. This factor resulted due to the anaerobic conditions in the river from the strong loading of dissolved organic matter which leads in the formation of organic acids. pH value has an effect on the biological, chemical reactions, as well as it controls the metal ion solubility and thus it affects the natural aquatic life. The study results were in accordant with Toufeek and Korium (2009).
Based on the component loadings, the variables are grouped accordingly with their designated components as follows:
· Component 1: EC, TDS, Total Hardness, Sulfates, Chlorides, Magnesium, Calcium, Nitrates and Total Alkalinity.
· Component 2: Iron and Manganese.
· Component 3: BOD and COD.
· Component 4: TC.
· Component 5: NH3.
· Component 6: pH and DO.
4.3. Dominant Water Quality Parameters
The dominant parameters identified by the PCA are: EC, Iron, BOD, TC, NH3 and pH (see Table 3). The previous discussion indicated that most of measured water quality parameters such as EC, TDS, Total Hardness, different major ions and Total Alkalinity, loaded with positive values, and they have strong effects on PC1. EC has the maximum strong loading value in PC1. Thus, EC is considered as a dominant parameter.
The Iron is considered as the next dominant water quality parameter as it is loaded strong in PC2 with the highest positive values. Also, the concentrations iron in the Nile water cause the exceedance of the drinking water guidelines, particularly at the anthropogenic impact points, where, iron is regulated by secondary drinking water contaminant that may cause offensive taste, odor, color corrosion or staining problems (EWQS, 2007).
The BOD is considered as the third dominant water quality parameter as it is loaded strong in PC3 with highest value (0.938). These two parameters (BOD and COD) may have a strong relationship with each other, particularly the discharge of industrial and agricultural effluents containing a large amount of organic matter (Goher et al., 2014).
The TC is considered as the fourth dominant water quality parameter as it is loaded strong in PC4 with highest value (0.760).
The Ammonia is considered as the fifth dominant water quality parameter as it is loaded strong in PC4 with highest value (0.853). Ammonia may result from fertilizers that are present in soil and it is relatively easily oxidized to nitrite and finally to nitrate (Karavoltsos et al., 2008) and it possesses a serious threat to public health.
The pH is considered as the third dominant water quality parameter as it is loaded strong in PC6 with highest value (0.701). pH value has an effect on the biological, chemical reactions, as well as it controls the metal ion solubility and thus it affects the natural aquatic life. Moreover pH could control the pathogenic microorganism growth (Zamxaka et al., 2004).
4.4. Cluster Analysis
4.4.1. Optimum Number of Clusters
FCM applied to determine the optimum number of clusters (k) that maximize the value of Fc(U) and minimizes Dc(U) (Kaufman & Rousseeuw, 1990). Table 4 illustrates the values of Fc(U) and Dc(U) with the corresponding number of clusters.
FCM results illustrated in Table 4, it noticed that the optimum number of clusters for the study area is three clusters which satisfies the above conditions.
4.4.2. Clusters Characteristics
According to the optimum number of clusters which determined by using FCM in the previous step, K-means algorithm applied to produce the generalized clusters characteristics using the dominant parameters. After finding medians of clusters, the clusters are developed by assigning each object of dataset to the nearest medians of the clusters. The dissimilarities from each of the objects in the dataset from these centers of the clusters are determined using Euclidean distance. Cluster Centers are selected on the basis of the minimum distance. Silhouette is used for interpretation and validation of clusters (Kaufman & Rousseeuw, 1990). Table 5 and Figure 3 illustrate generalized characteristics mean
Table 4. Results of optimum number determination.
Table 5. Clusters centers mean values.
values and the six dominant parameters mean values of the three clusters respectively.
It is obvious from Table 5 and Figure 3 for the K-means algorithm results, as the cluster number changed from 1 to 3, the value of the six dominant parameters and the water quality deterioration increased.
4.4.3. DWPs and Monitoring Stations Clusters Allocation
According to the K-means algorithm generalized clusters characteristics results, the allocation for CDWPs and monitoring stations clusters were developed. The output of the cluster characteristics analysis is dispensed in dendogram, Figure 4.
Figure 3. Dominant Parameters mean values.
Figure 4. Cluster analysis dendrogram based on the measured parameters
Dendogram gives the picture of the clusters describing the spatial variation in the water quality and the grouped monitoring stations, CDWPs of each cluster.
Based on the results of cluster analysis, stations and CDWPs grouped under each cluster in Figure 4, it was concluded that:
The first cluster, mainly located in the upstream of the study area with less polluted (LP) stations, included the stations from (878.00) to (868.00) and three DWPs (Tibeen, Kafr Elw and North Helwan). The changes in water quality in this cluster were mainly due to the agricultural drainage water mixed with partially treated or untreated domestic wastewater, industrial wastewater and wastewater from these three drinking water plants sludge disposal. The second cluster, comprised only the three DWPs (Maadi, Fostat and El Roda) with moderate pollution (MP), is mainly affected by the cumulative pollution from the previous cluster in additional to the wastewater from the three mentioned drinking water plants sludge disposal. The common feature of these sites was relatively high dominant parameters concentrations compared to the first cluster. The third cluster located in the downstream of the study area, included Rod El Farag DWP and the different stations from (932.00) to (950.00) along the river, had the highest pollution level (HP). These stations are distinguished from other stations concerning the level of pollution and have the most distance from other stations.
This study revealed the usefulness of multivariate statistical techniques for analysis and interpretation of complex data sets, and in water quality assessment, understanding temporal variations in water quality management. The PCA revealed that six principal components (PCs) were able to explain ~75.82% of the variability and the dominant water quality parameters were total EC, Iron, BOD, TC, NH3 and pH.
In this study, a methodology for clustering twenty one locations along Nile River uses dominant water quality parameters. FCM indicated three as the most optimum number of clusters. K-means clustering technique is used on the normalized data of the dominant parameters to obtain the generalized characteristics of three clusters. The water quality deteriorated as the cluster number increased from 1 to 3. Pattern-match using K-means clustering technique was applied to allocate clusters to all monitoring station including seven CDWPs along Nile River for two consecutive years (2017 and 2018). The Cluster analysis confirmed the existence of three types of clusters water quality (i.e. low-, medium-, and high-polluted). According to the study methodology, the decision makers can develop optimal strategy in which sampling stations can be reduced, identifying the specific pollutants in source waters for designing economical, targeted and effective management for drinking water plants facilities.
 Adekunle, L., Adetunji, M., & Gbadebo, A. (2007). Assessment of Ground Water Quality in a Typical Rural Settlement in South Nigeria. International Journal of Environmental Research and Public Health, 4, 307-318.
 Egyptian Governmental Law No. 48 (1982). The Implementer Regulations for Law 48/1982 Regarding the Protection of the River Nile and Water Ways from Pollution (pp. 12-35). Map. Periodical Bulletin, 3-4 December.
 Goher, M. E., Hassan, A. M., Abdel-Moniem, I. A., Fahmy, A. H., & El-Sayed, S. M. (2014). Evaluation of Surface Water Quality and Heavy Metal Indices of Ismailia Canal, Nile River, Egypt. Egyptian Journal of Aquatic Research, 40, 225-233.
 Karavoltsos, S., Sakellar, A., Mihopoulos, N., Dassenakis, M., & Scoullos, M. J. (2008). Evaluation of the Quality of Drinking Water in Regions of Greece. Desalination, 224, 317-329.
 Panda, U. C., Sundaray, S. K., Rath, P., Nayak, B. B., & Bhatta, D. (2006). Application of Factor and Cluster Analysis for Characterization of River and Estuarine Water Systems—A Case Study: Mahanadi River (India). Journal of Hydrology, 331, 434-445.
 Reghunath, R., Murthy, S. T. R., & Raghavan, B. R. (2002). The Utility of Multivariate Statistical Techniques in Hydrogeochemical Studies. An Example from Karnataka, India. Water Research, 36, 2437-2442.
 Terceiro, P., Lobo-Ferreira, J. P., & Leitão, T. E. (2008). Análise da qualidade da água e questões de governan-ciana Albufeirado Alqueva. Comunicaçãoapresen-tada no 9o Congresso da água-água: Desafios de hoje, exigências de amanhã. Cascais, Portugal. (In Portuguese)
 Trauwaert, E., Kaufman, L., & Rousseeuw, P. (1991). Fuzzy Clustering Algorithms Based on the Maximum Likelihood Principle. Fuzzy Sets and Systems, 42, 213-227.
 Yu, S., Shang, J., Zhao, J., & Guo, H. (2003). Factor Analysis and Dynamics of Water Quality of the Songhua River Northeast China. Water, Air, & Soil Pollution, 144, 159-169.
 Zamxaka, M., Pironcheva, G., & Muyima, N. Y. O. (2004). Microbiological and Physico-Chemical Assessment of the Quality of Domestic Water Sources in Selected Rural Communities of the Eastern Cape Province, South Africa. Water SA, 30, 333-340.
 Zeng, X., & Rasmussen, T. C. (2005). Multivariate Statistical Characterization of Water Quality in Lake Lanier, Georgia, USA. Journal of Environmental Quality, 34, 1980-1991.