Next Article in Journal
Research on the Treatment and Comprehensive Utilization of Phenylhydrazine Hydrochloride Effluent
Previous Article in Journal
An Increase of Abundance and Transcriptional Activity for Acinetobacter junii Post Wastewater Treatment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Groundwater Quality Assessment: An Improved Approach to K-Means Clustering, Principal Component Analysis and Spatial Analysis: A Case Study

by
Ana Elizabeth Marín Celestino
1,2,
Diego Armando Martínez Cruz
3,*,
Elena María Otazo Sánchez
2,
Francisco Gavi Reyes
4 and
David Vásquez Soto
5
1
CONACYT-Instituto Potosino de Investigación Científica y Tecnológica, A.C. División de Geociencias Aplicadas, Camino a la Presa San José 2055, Col. Lomas 4ta Sección, San Luis Potosí CP. 78216, San Luis Potosí, Mexico
2
Área Académica de Química, Universidad Autónoma del Estado de Hidalgo, Carretera Pachuca-Tulancingo Km. 4.5, Mineral de la Reforma CP. 42184, Hidalgo, Mexico
3
CONACYT-Centro de Investigación en Materiales Avanzados, S.C. Calle CIMAV 110, Ejido Arroyo Seco, Col. 15 de mayo (Tapias), Durango CP. 34147, Durango, Mexico
4
Postgrado en Hidrociencias, Colegio de Postgraduados, Carr. Fed. Mexico-Texcoco km. 36.5, Montecillo, Texcoco CP. 56230, Estado de Mexico, Mexico
5
Colegio Mexicano de Especialistas en Recursos Naturales, Callejón de las flores No. 8, Texcoco CP. 56220, Estado de Mexico, Mexico
*
Author to whom correspondence should be addressed.
Water 2018, 10(4), 437; https://doi.org/10.3390/w10040437
Submission received: 7 January 2018 / Revised: 31 March 2018 / Accepted: 2 April 2018 / Published: 6 April 2018
(This article belongs to the Section Water Resources Management, Policy and Governance)

Abstract

:
K-means clustering and principal component analysis (PCA) are widely used in water quality analysis and management. Nevertheless, numerous studies have pointed out that K-means with the squared Euclidean distance is not suitable for high-dimensional datasets. We evaluate a methodology (K-means based on PCA) for water quality evaluation. It is based on the PCA method to reduce the dataset from high dimensional to low for the improvement of K-means clustering. For this, a large dataset of 28 hydrogeochemical variables and 582 wells in the coastal aquifer are classified with K-means clustering for high dimensional and K-means clustering based on PCA. The proposed method achieved increased quality cluster cohesion according to the average Silhouette index. It ranged from 0.13 for high dimensional k-means clustering to 5.94 for K-means based on PCA and the practical spatial geographic information systems (GIS) evaluation of clustering indicates more quality results for K-means clustering based on PCA. K-means based on PCA identified three hydrogeochemical classes and their sources. High salinity was attributed to seawater intrusion and the mineralization process, high levels of heavy metals related to domestic-industrial wastewater discharge and low heavy metals concentrations were associated with industrial wastewater punctual discharges. This approach allowed the demarcation of natural and anthropogenic variation sources in the aquifer and provided greater certainty and accuracy to the data classification.

Graphical Abstract

1. Introduction

Researchers use multivariate analysis to study the temporal and spatial characteristics of water quality [1,2,3,4,5,6,7,8]. Because current water quality assessment standards are not uniform and there are multiple and complex sources of water contamination, K-means clustering and principal component analysis (PCA) are widely used in water quality analysis and management [3,5,9,10]. Traditional clustering and PCA methodology for the evaluation of water quality is performed on the entire high dimensional hydrochemical dataset [3,9]. Clustering high dimensional data is the cluster analysis of data with anywhere from a few dozen to many thousands of dimensions. This approach allows identification of the significant characteristics or parameters that define the data structure by PCA and K-means allows the grouping of monitoring stations by similarities between the samples. Nevertheless, numerous studies have pointed out that K-means with the squared Euclidean distance is not suitable for high-dimensional data clustering because of dimensionality [11,12]. One alternative to solving this problem is to use alternative distance functions [13]. Another option to tackle this problem is to employ dimension reduction for high dimensional data. It is achieved apart from the traditional methods such as the Principal Component Analysis (PCA), with Multidimensional Scaling and Singular Value Decomposition [11,12].
The frequent problem in the application of cluster analysis is to decide an optimal number of clusters which suitably fit a data set. A significant advantage of the K-means algorithm is that it can evaluate the clustering results with the application of cluster validity indexes quantitatively and objectively, perceiving how many clusters are hidden in the dataset [11,14,15]. Cluster validity or clustering evaluation is formally defined as giving objective evaluations to clustering results in a quantitative way [16]. They are a necessary but challenging task in cluster analysis. It has even been stated that clustering validation be regarded as decisive as the clustering itself [11]. Every clustering algorithm will discover clusters even in a dataset that has no natural cluster structure. Indeed, cluster validity has become the core task of cluster analysis, for which a significant number of validation measures have been proposed and, with precision, analyzed in the literature [15]. Geographic information systems (GIS) can provide helpful tools for the manipulation and analysis of spatial information but is not complete for multivariate statistical and spatial studies [17]. The use of GIS as a visual tool allows the researcher to explore statistical outputs that would otherwise be difficult to interpret [18].
For the reasons previously mentioned, we present a methodology for water quality evaluation—called the K-means based on PCA method—to reduce the dataset from high dimensional to low for the improvement of K-means clustering in addition to spatial analysis (GIS). No systematic study into its benefits over traditional clustering methods has been performed. It allows the identification of the dominant hydrogeochemical processes controlling groundwater chemical composition and to achieve more comprehension of natural and anthropogenic sources influencing the spatial distribution of groundwater quality in the coastal aquifer Santo Domingo, Mexico.

2. Materials and Methods

2.1. Study Case: Santo Domingo Aquifer

The Valley of Santo Domingo (SD) is located in the state of Baja California Peninsula in Mexico and it lies between 24.9°36.1′30.3″ of latitude north and 111°23.8′26.8″ of longitude west (Figure 1). The SD Valley climate is arid, the mean annual temperature shows a broad span, between 1.9 °C and 43.3 °C. The average annual precipitation reaches only 150 mm, with minimum and maximum values of 50 and 300 mm/year, respectively [19]. The rainfall period occurs between July and September and the dry one from April to June. The annual evapotranspiration is 2270 mm/year, with maximum values of 370 mm/month [20]. The SD basin is the most extensive agricultural region in the Baja California Peninsula in Mexico. The agricultural extension covers an area of 72,409 ha, 49.4% of them are irrigated. During the agricultural period from 2013 to 2014 water withdrawals were 158,579 m3 [21].

2.2. Geology Setting

The geology of the Valley of Santo Domingo encloses two regional geological provinces: Purísima Sub-basin and The Giganta Volcanic Belt. The Purísima Sub-basin comprises Triassic sedimentary rocks and partially serpentized ultramafic rocks [22]. There are three main lithological formations included in the Purísima Sub-basin: Paleocene lutites from Santo Domingo Formation and Paleocene Eocene sandstone and lutite sequences of Tepetate Formation. The geological structure of the Purísima Sub-basin consists of a syncline around 600 km long, occupied by Upper Cretaceous to Lower Tertiary sediments [23].
The Giganta Volcanic Belt, located in the eastern region, is 500 km long by 30–50 km wide and comprises volcanic material as well as pyroclasts, lava flows and breccias, in addition to continental sand from the Comondú Formation [24]. The Salt Formation is widespread mainly in the central area. It is constituted by sand particles of quartz, feldspar and igneous rocks. The maximum thickness (185 m) is found in the northern region and it depends on the subsoil structure since the Quaternary sediments are assorted (fluvial, eolian and alluvial). Previous researchers reported high levels of carbonates in some aquifer zones, such as calcrete layers and a cementing material [24,25].

2.3. Hydrogeology Setting

The study area comprises part of three hydrographic basins: in the North by the Santo Domingo basin, in the middle part of the Las Bramonas watershed and to the South by the Santa Cruz basin [20,26]. It is defined as an unconfined granular aquifer composed principally of the Salts Formation and Quaternary sediments [27].
The distribution of hydraulic conductivity in the SD Basin is unequal. The amount of silt and clay in the Salt Formation increases towards the west, so a low hydraulic conductivity can be deduced.
In the SD Basin groundwater system, water flows from recharge areas in the western edge of the Sierra La Giganta Mountains towards the west in the Pacific Ocean [25].
In 1957, the elevation of the static water level in wells was above sea level (a.s.l.) in the entire SD Valley, whereas in 1996 the water level was 20 m a.s.l. in the direction of the east, but, in the center of the SD basin, the water level in wells was below mean sea level. Two local drawdown cones between 20 and 25 m below sea level (b.s.l.) are demarcated in the central area [25]. Previous studies in the 1980s reported high extractions reaching withdrawals of up to 450 Mm3/year (million m3 per year) and around 2.4 times the annual average recharge [25]. In the following years, the average annual recharge (188 Mm3) nearly equaled the extraction rate (168 Mm3) [26].

2.4. Water Sampling

Groundwater samples from 600 agricultural use wells (Figure 1) were collected at depths between approximately 16 m and 83 m between March and July 2010 in the aquifer area. Duplicate 250 mL polyethylene bottles were utilized; one contained HNO3 added to 2 mL of 0.02 N for metals determination. The other sample was kept unacidified for anions and cations analysis [28,29].

2.5. Analytical Techniques

A total of 28 hydrogeochemical parameters were determined. The electrical conductivity (EC) was measured using a conductivity meter in units of deciSiemens (dS) (Model 162A, Thermo-Orion, Thermo Fisher Scientific, Waltham, MA, USA), and pH was measured with a pH meter (Metrohm E-632, Metrohm, Herisau, Switzerland) and the total dissolved solids (TDS) with a multi-parameter WTW (Wissenschaftlich-Technische-Werkstätten) (P3 MultiLine pH/LF-SET, Xylem Inc., Rye Brook, NY, USA).
Also, significant cations such as Ca2+, Mg2+, Na+ and K+ were determined by atomic absorption (AAS) and a flame photometer (Model: Systronics Flame Photometer 128, SYSTRONICS, Ahmedabad, India). A titration procedure determined the HCO3 concentration with H2SO4 and the Cl with AgNO3, SO42− and NO3 were measured by turbidimetry. Br, B, F and PO43− were determined with an automated flow injection analyzer (FIA) (Model: Quik Chem 8000, Lachat Instruments, Loveland, CO, USA). Trace metals concentrations (Al3+, Cd3+, Co2+, Cr3+, Cu2+, Fe3+, Li+, Mn2+, Ni2+, Pb2+, Sr2+ and Zn2+) were obtained by inductively coupled plasma optical emission spectroscopy (ICP-OES) (Mod-04 Lec-28, Shelton, CT, USA) [28]. The accuracy of the chemical analysis was validated by calculating charge balance errors (%CBE) with Equation (1):
% C B E = c a t i o n s a n i o n s c a t i o n s + a n i o n s × 100 %
where all cations and anions are specified as milliequivalents per liter. The ion balance errors for all groundwater samples ranged from −1.7 to 9%.

2.6. Multivariate Statistical Analysis

2.6.1. Research Approach

The approach used for this research involved five main components: Phase I Database pretreatment; Phase II K-means clustering on the original high dimension dataset; Phase III, to reduce dimensional space; Phase IV, K-means clustering on the low dimensional dataset; Phase V, cluster evaluation. The RStudio v. 1.0.153 (Copyright RStudio Inc., Boston, MA, USA) was utilized to perform descriptive statistics, study the distribution of the measured variables, the correlations matrix, perform the principal components analysis (PCA) and the cluster analysis (CA) (Figure 2).

2.6.2. Phase I Database Pretreatment

Eighteen wells exhibited incomplete data or were found to be outliers and they were removed from the original dataset (600 registers). Data that included values frequently lower than the detection limit of the method were excluded. When no recognition of ions was recorded, they were completed by the mean values of the neighboring data [30].
Most multivariate statistical methods require a log-normal data distribution. Therefore, the Kolmogorov-Smirnov (K-S) statistics were applied to test the goodness-of-fit of the data to a log-normal distribution. A 95% confidence log-normal distribution was obtained with a high significance level for all the parameters (p < 0.05) according to the K-S test [31].
Spearman’s rank was used to analyze the correlation between variables to account for the non-normal distribution of water quality parameters [32]. Kaiser Meyer Olkin (KMO) and Bartlett’s Sphericity statistics were performed to test the data accuracy and suitability for PCA, on the parameter correlation matrix. KMO is used to measure the sampling adequacy, which indicates the proportion of shared variance, that is, what might be caused by unknown factors. A high value (close to 1) commonly indicates that PCA may be useful as confirmative in this study (KMO 0.79). Bartlett’s test of Sphericity is employed to check the null hypothesis corresponding to uncorrelated variables [31]. It afforded a significance level less than 0.05, indicating excellent relationships among variables.

2.6.3. Phase II K-Means on the Original High Dimensional Dataset

The R package NbClust provided 24 indexes (Table S1) to determine the optimal number of clusters in a dataset [15]. The K-means algorithm based on within-cluster variation is a measure to form homogeneous clusters [14]. The clustering process starts with initial choosing observations and numbers the desired cluster to create initial centers—also called cluster centers—setting out from some initial values known seed-points. Each observation was placed randomly in a cluster to which it is closest, creating temporary clusters. K-means clustering was formulated as the sum of squared errors as is shown in the below equation [14,33,34]:
K = l = 1 k x C l | | x m l | | 2
where X = { x 1 , , x n } is the data; m l = x C l x n l is known as the centroid of cluster C l ,   1 l K ; n l is the number of data objects in the cluster and K is the number of clusters.
The gravity centers of each temporary cluster are calculated and these become the new cluster centers. The data are partitioned randomly and iteratively reassigned to another cluster based on the nearest distance to the cluster’s center [14,33]. The procedure finishes when there is no reassignment to any data from one cluster to another [35].

2.6.4. Phase III to Reduce Dimensional Space

Principal Component Analysis (PCA) was employed to identify the most meaningful hydrochemical parameters.
The principal component (PC) approach is expressed as:
Z i j = a i 1 x 1 j + a i 2 x 2 j + a i 3 x 3 j + + a i m x m j
where is the component score; a is the component loading; x is the measured value of the variable; i is the component number, j is the sample number and m indicate the total number of variables [9,36]. Similar studies were successfully applied to assess water quality [3,36,37].

2.6.5. Phase IV K-Means Clustering on the Low Dimensional Dataset

We analyzed the efficiency of the K-means clustering in low-dimensional space. It was integrated by the reduced projected dataset ( Y ^ ) into a new coordinate axis by applying W ^ to X .
Y ^ = W ^ X
where W ^ is the transformation matrix consisting of the most significant PC and X is the matrix of the measured values. Its computational complexity is dominated by the M-step. The distance between each data point to all K centroids is computed: O(nKp), where n, K and p are the number of data points, the number of clusters and the dimension of the data, respectively. Thus, our approach utilizes this advantage because we work in the PCA subspace ( Y ^ ) with a small dimensionality.

2.6.6. Phase V Cluster Evaluation of Technical Quality

Various measures are used to quantify the “goodness” of a cluster solution. In a good cluster solution, the elements within a cluster are similar to one (cohesive) while the clusters themselves are entirely different (separated) [38]. A popular measure is the silhouette coefficient, which is a measure of both cohesion and separation [39]. The silhouette measure varies from −1 to +1. In a good solution, the within-cluster distances are small and the between-cluster distances are extensive, resulting in a silhouette measure close to the maximum value of 1. Clusters obtained were contrasted with the spatial visualization of wells by ArcGIS v.10.3 (Copyright ESRI Inc., Redlands, CA, USA), to analyze the relationship between their characteristics and the activities on the surface.

2.7. Spatial Analysis and Modeling

The hydrochemical characterization of the 582 groundwater samples were assessed using the means of major cations (Ca2+, Mg2+, Na+, K+) and anions (Cl, CO32−, HCO3, SO42−). The hydrochemical data were subjected to graphical treatment by plotting them in Piper´s Trilinear and using AquaChem v. 5.1 software (Copyright Waterloo Hydrogeologic, Waterloo, ON, Canada) and Stiff plots mapping was carried out using AquaChem v. 5.1 and ArcGIS v. 10.3. These methods were useful for understanding and identifying the water composition in different types.

3. Results and Discussion

3.1. Hydrochemical Analysis

Analysis of the 28 hydrochemical variables of groundwater in the study are presented in the descriptive statistical summary in Table 1. The water samples were slightly acidic to alkaline with pH values between 6.40 and 8.78 and electrical conductivity (EC) values ranging from 0.01 to 8.76 ∂S/m. Total dissolved solids (TDS) showed wide ranges of values from 326.4 to 5606.4 mg/L, with an average of 1285.10 and a standard deviation of 765.79 (Table 1), indicating wide variations in the concentrations of TDS attributed mainly to the seawater intrusion also reported in previous research [25]. Chloride concentrations with values ranging from 42.54 to 456.32 mg/L showed wide dissimilarities which are observed in the standard deviation of 355.44 (Table 1). Therefore Na+, Ca2+, HCO3, Mg2+ and SO42− concentrations presented wide variations with standard deviations of 126.50, 99.20, 60.83, 42.46 and 34.53 respectively.
Table 2 shows the main parameters obtained by the Spearman’s rank correlation matrix, from which can be observed a highly significant positive correlation of 0.90, 0.95, 0.92 and 0.82 between Ca2+ and Mg2+, Cl and TDS, Cl and Mg2+, in addition to Ca2+ and TDS respectively (Figure 3a–d). These demonstrate the significant contribution of these elements to the mineralization processes and salinization. Reference [40] studied variations in coastal aquifer groundwater and reported similar correlations (>0.9) between Cl, Na+, Mg2+ and TDS.
A very high correlation (0.90) between Ca2+ and Mg2+ suggests the dissolution of calcite (CaCO3) and dolomite CaMg(CO3)2 (Figure 3a) [41,42], the main component of sedimentary rocks, existing in these zones. High correlations of 0.92 and 0.83 between Cl with Mg2+ and Ca2+ (Figure 3e) and low correlations between HCO3 with Ca2+ and Mg2+ (Figure 3f) confirm that the salinization process is crucial in the aquifer [43]. A good correlation (0.85) between Sr2+ and Cl shows the aquifer mineralization process. Also, Br concentrations are well correlated with Cl and Mg2+ (0.75 and 0.75, respectively). These facts corroborate that their high levels are attributed to seawater intrusion in the aquifer.
Low concentrations of SO42− with an average of 29.23 mg/L (Table 1) were observed throughout the aquifer. Despite NO3 levels being mostly within the maximum permissible limits [44,45], the highest values observed were between 20 and 30 mg/L. The NO3 boost could originated from agricultural and livestock activities when shallow static levels are present, allowing a direct infiltration of pollutants.
Therefore, high concentrations of Co2+, Cr3+, Cu2+, Fe3+, Mn2+, Ni2+ and Pb2+ (Table 1) were located near to urban and agricultural areas, these concentrations exceed the permissible values for drinking water [44] and irrigation [45] (Table S2 and Figure S1). Huge Cu2+ concentrations between 8.83 and 3.8 mg/L were observed nearby to settlements. High concentrations of Fe3+ between 3.2 and 4.2 mg/L also occur near urban areas. Moreover, critical levels of Pb2+ and Mn2+ (0.49 and 0.33 mg/L, respectively) are observed in the North and East. A high positive correlation of 0.92 between Cr3+ and Zn (Table 2) could indicate that industrial activities are its principal source.

3.2. Water Types

The hydrochemical data analysis of the samples was plotted using Piper’ Trilinear diagram (Figure S2). Also, the samples were plotted with a Stiff diagram and projected with ArcGIS v. 10.3 (Figure 4). Piper’s diagram is a suitable method to reveal the relations, dissimilarities and to classify water types based on the ionic composition of different groundwater samples [46].
The main water types were identified and categorized on the basis of significant ion concentrations, arranged in decreasing order of abundance, where the percentage reveals the amount of groundwater samples that fall into a water type. The Piper’s diagram shows that the main water types identified in the SD basin are mixed water types where these types cannot be recognized, due to neither anions nor cations being dominant, considering that no one cation−anion pair exceeds 50%.

3.2.1. Mixed of Ca2+-Mg2+-Na+-Cl-HCO3 (38%)

The plot showed that 38% of the groundwater samples belong to mixed water of Ca2+-Mg2+-Na+-Cl-HCO3. This water type covers the central and northeastern areas, in intermediate-depth wells between 30 to 60 m. It observed that this combined water is located nearby to SD and Bramonas rivers, irrigation canals and natural flow streams (Figure 4). The spatial location of wells suggests that this water class is related to urban, industrial and agricultural wastewater discharges in water bodies.

3.2.2. Mixed of Ca2+-Mg2+-Na+-Cl (30.8%)

The Piper´s diagram revealed that 30.8% of groundwater samples pertain to a combined water of Ca2+-Mg2+-Na+-Cl. This water class includes the northern and western regions, where deep wells (60 to 80 m) are located near to settlements and shallow wells (16.91 to 30 m) occur nearby coastal zones (Figure 4). The spatial location of wells indicates that this water type is associated with wastewater discharge from anthropogenic sources and in addition to natural processes (intrusion seawater and mineral dissolution) in deep wells and shallow wells respectively.

3.2.3. Mixed of Na+-Mg2+-Cl-HCO3 (13.7%)

The plot showed that only a few groundwater samples (13.7%) belong to mixed water of Na+-Mg2+-Cl-HCO3. This water type covers most of the northern region, intermediate-depth wells between 30 and 60 m, generally located near agricultural zones and far from urban settlements (Figure 4). The spatial location of wells suggests that this water type is related to anthropogenic wastewater discharges from agricultural, industrial and urban activities. The results are similar to those reported in Reference [25].

3.3. K-Means Clustering on High Dimensional Dataset

Partition method K-means clustering was applied to a large dataset of 28 hydrogeochemical variables and 582 wells. Ten indexes from the R package NbClust suggested that wells are grouped in three clusters (See Table S3). Hence, further non-spatial and spatial analyses were performed based on this criterion.
The partition method K-means clustering, employed on a big dataset, resulted in three groups of wells. The spatial analysis showed high scattering among wells that belong to the same group (Figure 5). Wells within each group disclosed dissimilar hydrogeochemical characteristics. The cluster validity was carried out with the Silhouette index, which was from 0.13 as shown in Figure S3. Therefore, K-means clustering used on a large dataset revealed a grouping that was not suitable.

3.4. Principal Component Analyst (PCA)

Principal component analysis was used to decrease the dimensional space of the large dataset in order to improve the clustering. PCA considerably reduced 28 hydrogeochemical variables to 16 variables. PCA revealed that four components explain 71.6% of the total variance, with the salinization process and anthropogenic activities being the main factors controlling the groundwater quality variability. The PCA results are shown in Table 3. The PCA approach identified four components that have the most critical loading (Figure 6).

3.4.1. PCA1

The first component (PCA1) explains 33.96% of the total variance and encompasses the following main ions: Cl (0.95), TDS (0.95), EC (0.95), Na+ (0.86), Mg2+ (0.84), Ca2+ (0.82) and SO42− (0.80) were strongly related (Table 3 and Figure 6). The significant variables (Na+, Mg2+, Ca2+, SO42−, Cl TDS and EC) within PCA1 followed the same direction and showed a major increase related to salinity. PCA1 demonstrates that the salinization process is the main factor controlling the groundwater quality variability and the importance of mineralization process. Natural processes such as seawater intrusion, cations exchange, calcite dissolution, dolomitization and sulfate reduction occur and they are increased by anthropogenic activities. Other researchers reported assessed water quality in coastal aquifers and found the same parameters representativeness TDS, Cl, Na+, Mg2+, SO42− and Ca2+ as PCA1 with 42.30% [2,10,40].

3.4.2. PCA2

The second component (PCA2) explains 16.55% of the total variance and was assembled by Cr3+ (0.91), Cu2+ (0.86), Pb2+ (0.79) and Zn (0.79), showing high correlations among themselves toward the same direction (Table 3). The main variables (Cr3+, Cu2+, Pb2+ and Zn2+) within PCA2 demonstrated an increase caused by metal pollution in the Valley (Figure 6). High concentrations occur near urban areas and small settlements. In this component, the primary cause of pollution is industrial activity. Furthermore, this process is reinforced by the high levels of Cl in the aquifer through Chloride complexation. This process makes metal mobility in the aquifer easy [47].

3.4.3. PCA3

The third component (PCA3) accounts for 12.07% of the total variance and describes the significant contributions of HCO3 (−0.84), K+ (0.76) and the static water level (0.82) (Table 3 and Figure 6), disclosing good correlations among themselves. PCA3 revealed an inverse correlation between HCO3 and the static water level, demonstrating that when increasing the static water level, concentrations of HCO3 decrease. High concentrations of HCO3 are found in shallow wells. Commonly, K+ concentrations in aquifers are low (<10 mg/L); otherwise, external sources overcome the permitted limit [48,49]. The high K+ concentrations (10 to 24.24 mg/L) occur in urban areas and near agricultural zones. This result indicates that domestic wastewater discharges and potassium fertilizers are essential sources (Figure 7).

3.4.4. PCA4

The fourth component (PCA4) explains 9.02% of the variance and shows the highest correlation between Mn2+ (0.89) Fe3+ and (0.76) (Table 3 and Figure 6), conducted toward the same direction. Both elements are naturally simultaneous and PCA4 stated the same source for Fe3+ and Mn2+ ions. Higher concentrations are observed near the urban areas; they could be released to the environment by any industrial and domestic wastewater punctual discharge, as there is no mining activity in the zone.

3.5. K-Means Clustering on Low Dimensional Dataset

The low dimensional dataset was obtained by Equation (4), where W ^ is the matrix of the main four PCs found and X is the matrix of values observed and ( Y ^ ) is the matrix of transformed data (582 X 4). We realized K-means clustering on a low dimensional dataset and showed significant improvement in the grouping. K-means clustering on a low dimensional dataset was achieved to increase quality cluster cohesion according to an average Silhouette index. The index ranged from 0.13 (Figure S3) for high dimensional K-means clustering to 5.94 (Figure S4) for K-means based on PCA. Both groupings were projected spatially for practical evaluation. K-means based on PCA clustered samples with similar hydrogeochemical characteristics, showing higher quality results (Figure 8 and Table 4).

3.5.1. First Class: 160 Wells

Dominant parameters are EC, TDS, Cl, Ca2+, K+ and Na+ with average values of 3.39, 2169.94, 872.41, 217.96, 9.18 and 287.90 respectively (See Table 4). The groundwater class is mostly affected by salinity, caused by different factors such as the mineralization process, seawater intrusion, industrial and urban wastewater discharges, infiltration of leachates from open dumps and poorly designed sanitary landfills, fertilizer application and water over pumping in deep wells. Deep wells are located near to urban and agricultural areas while shallow wells are proximate to coastal zones (see red zones in Figure 8).
For example, high concentrations of K+ are observed mainly in class 1 (Figure 7a) and could be attributed to domestic and agricultural wastewater discharges. Groundwater samples from class 1 and class 3 collected from wells belong to agricultural and livestock zones and urban zones (Figure 8). Smaller concentrations of K+ showed in class 2 (Figure 7a) due to the fact that pollutants do not reach distant zones. Water samples from class 2 were collected from regions further away from settlements and agricultural activities.

3.5.2. Second Class: 166 Wells

Groundwater quality is perturbed by metals such as Al3+, Cr3+, Co2+, Cu2+, Fe3+, Pb2+ and Zn2+ with average values of 0.02, 0.01, 0.13, 0.23, 0.02 and 0.02 mg/L respectively (Table 4 and Figure 7b).
Figure 7b shows high concentrations of Al3+, Pb2+, Cu2+ and Cr3+ in class 2. Industrial and domestic wastewater are poured into drainage irrigation canals and natural flow streams and cause damage [50]. Wells have intermediate depths, located near channels and flow streams such as Bramonas and the Santo Domingo rivers (see yellow zones in Figure 8).

3.5.3. Third Class: 256 Wells

Class 3 has better water quality and therefore it is less influenced by industrial and domestic wastewater discharges. The slight increases of 0.01, 0.01, 0.01 and 0.02 mg/L (Table 4) in ion concentrations such as Co2+, Mn2+, Ni2+ and Pb2+ respectively could be attributed to industrial wastewater punctual discharges and agriculture and natural geological conditions. Deeper wells are mainly dedicated to agricultural irrigations and are located in this zone (see orange zones in Figure 8).

3.6. Discussion

K-means clustering based on PCA allows the finding of the location of 160 wells (class 1). Shallow wells are located mainly in coastal zones and deep wells are located in urban and agricultural areas of the aquifer. They are related to variables highly significant for PCA1 (TDS, EC, Cl, Na+, Mg2+, Ca2+ and SO42−) and PCA3 (HCO3, K+ and static level). High concentrations of these species found in wells belong to class 1 and class 3 respectively. The water quality of the wells is related to the salinization process and seawater intrusion, the primary source controlling the groundwater quality variability in the aquifer.
The K-means algorithm grouped 166 wells (class 2) near to drainage irrigation canals and flow streams. They were linked to the significant variables of PCA2 (Cu2+, Zn2+ and Cr3+) and PCA4 (Fe3+). High levels of these ions observed in wells belong to class 2 and class 1 respectively. In these wells, the water quality influenced by heavy metals sourced from industrial and domestic wastewater poured into surface streams.
The third class includes 250 wells (class 3) located mainly in agricultural zones in the center and north aquifers. They correlated with the variables of PCA2 (Pb2+ and Zn2+) and PCA4 (Mn2+). High concentrations of these species found in wells belong to class 3. In this group of wells, the primary source influencing the groundwater quality is the location of industrial wastewater punctual discharges. Class 3 has better water quality than classes 1 and 2.
In addition to the previous results, the improved method (K-means clustering based on PCA) allowed definition of the characteristics and hydrogeochemical processes of the aquifer. The determination of hydrogeochemistry is essential for establishing a conceptual model and distinguishing the natural processes of an aquifer. However, the factors that affect hydrochemistry are mainly controlled by stochastic processes, so they vary in time and space. For these reasons, the sources of variation must identify for the correct determination of the hydrogeochemical model. In this case study, there is excellent spatial coverage, 600 wells distributed throughout the aquifer. However, little attention is paid to temporal variation, so the analysis does not allow us to analyze the temporal factors that cause variation in water quality, such as a change due to randomness (storm, rainfall) and changes due to climatic seasons (temperature, rainfall). Therefore, these monitoring systems show a static but excellent spatial representation of the hydrochemical structure of the aquifer and allow us to analyze the principal sources of variability by cross-referencing with the spatial distribution of water quality.

4. Conclusions

The proposed method achieved improvement of the cluster cohesion Silhouette index ranging from 0.13 for high dimensional k-means clustering to 5.94 for K-means clustering based on PCA and practical spatial GIS evaluation of clustering indicated high-quality results for K-means based on PCA.
K-means clustering based on PCA identified three hydrogeochemical classes and their sources. High salinity was attributed to seawater intrusion and mineralization process, high levels of heavy metals related to domestic-industrial wastewater discharge and low heavy metals concentrations were associated with industrial wastewater punctual discharges. This approach allowed the demarcation of natural and anthropogenic variation sources in the aquifer and provided greater certainty and accuracy of the data classification.
Three hydrochemical classes of groundwater were identified. The first class (Cluster 1): Shallow wells and deeper wells consistent with proximity to the coast and urban zones respectively. This class of water was associated with high salinity, which comes from seawater intrusion and the mineralization process. The second class (Cluster 2): Intermediate and deep wells located in urban-industrial zones and settlements. This type of water correlated with high concentrations of heavy metals, which it could attribute to domestic-industrial wastewater discharge in drains and flow streams. The third class (Cluster 3): Deeper wells located mainly in agricultural and urban areas. This water-type related to a slight increase in some heavy metals, which was attributed to industrial wastewater punctual discharges.
The proposed method showed a static but excellent spatial representation of the hydrochemical structure of the aquifer and allowed us to analyze the principal sources of variability by cross-referencing with the spatial distribution of water quality. The improved method could be applied to optimize sampling and to schemes monitoring groundwater quality.

Supplementary Materials

The following are available online at https://www.mdpi.com/2073-4441/10/4/437/s1, Figure S1: Comparison between the concentrations of ions and Maximum Permissible Limit (MPL) recommended by national standards for drinking water and irrigation water, Figure S2: Groundwater types plotted on a Piper trilinear diagram, Table S1: Indexes provided by R NbClust Package, Table S2: Comparison of the groundwater quality in relation to drinking water and irrigations standards, Figure S3: Silhouette plot of the clustering with high-dimensional dataset, Figure S4: Silhouette plot of the clustering with low-dimensional dataset, Table S3: Number of clusters suggested by each index.

Acknowledgments

A.E.M.C. thanks the National Council of Science and Technology (CONACYT) for a postdoctoral fellowship and the Autonomous University of the State of Hidalgo (UAEH). The authors wish to thank the National Water Commission (CONAGUA) for supporting this work within the framework of the Agreement (No. CNA-DLBCS-CP-01/2010 and No. CNA-DLBCS-CP-02/2010).

Author Contributions

A.E.M.C. designed, carried out the results and database analysis and wrote the paper. D.A.M.C. designed, carried out the statistical analysis and reviewed the manuscript. E.M.O.S. designed, reviewed and edited the manuscript. F.G.R. analyzed database and assisted with data obtaining and D.V.S. assisted with data obtaining.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Al-Mutairi, N.; Abahussain, A.; El-Battay, A. Spatial and temporal characterizations of water quality in Kuwait Bay. Mar. Pollut. Bull. 2014, 83, 127–131. [Google Scholar] [CrossRef] [PubMed]
  2. Uddameri, V.; Honnungar, V.; Hernandez, E.A. Assessment of groundwater water quality in central and southern Gulf Coast aquifer, TX using principal component analysis. Environ. Earth Sci. 2014, 71, 2653–2671. [Google Scholar] [CrossRef]
  3. Usman, U.N.; Toriman, M.E.; Juahir, H.; Abdullahi, M.G.; Rabiu, A.A.; Isiyaka, H. Assessment of groundwater quality using multivariate statistical techniques in Terengganu. Sci. Technol. 2014, 4, 42–49. [Google Scholar]
  4. Belkhiri, L.; Narany, T.S. Using Multivariate Statistical Analysis, Geostatistical Techniques and Structural Equation Modeling to Identify Spatial Variability of Groundwater Quality. Water Resour. Manag. 2015, 29, 2073–2089. [Google Scholar] [CrossRef]
  5. Sharif, S.M.; Kusin, F.M.; Asha’ari, Z.H.; Aris, A.Z. Characterization of Water Quality Conditions in the Klang River Basin, Malaysia Using Self Organizing Map and K-means Algorithm. Procedia Environ. Sci. 2015, 30, 73–78. [Google Scholar] [CrossRef]
  6. Ling, T.-Y.; Soo, C.-L.; Liew, J.-J.; Nyanti, L.; Sim, S.-F.; Grinang, J. Application of multivariate statistical analysis in evaluation of surface river water quality of a tropical river. J. Chem. 2017, 2017, 5737452. [Google Scholar] [CrossRef]
  7. Zhang, X.; Qian, H.; Chen, J.; Qiao, L. Assessment of Groundwater Chemistry and Status in a Heavily Used Semi-Arid Region with Multivariate Statistical Analysis. Water 2014, 6, 2212–2232. [Google Scholar] [CrossRef]
  8. Zhang, Y.; Xu, M.; Li, X.; Qi, J.; Zhang, Q.; Guo, J.; Yu, L.; Zhao, R. Hydrochemical Characteristics and Multivariate Statistical Analysis of Natural Water System: A Case Study in Kangding County, Southwestern China. Water 2018, 10, 80. [Google Scholar] [CrossRef]
  9. Singh, H.; Singh, D.; Singh, S.K.; Shukla, D.N. Assessment of river water quality and ecological diversity through multivariate statistical techniques, and earth observation dataset of rivers Ghaghara and Gandak, India. Int. J. River Basin Manag. 2017, 15, 347–360. [Google Scholar] [CrossRef]
  10. Masoud, A.A. Groundwater quality assessment of the shallow aquifers west of the Nile Delta (Egypt) using multivariate statistical and geostatistical techniques. J. Afr. Earth Sci. 2014, 95, 123–137. [Google Scholar] [CrossRef]
  11. Wu, J. Advances in K-Means Clustering: A Data Mining Thinking; Springer Science & Business Media: Berlin, Germany, 2012. [Google Scholar]
  12. Xu, Q.; Ding, C.; Liu, J.; Luo, B. PCA-guided search for K-means. Pattern Recognit. Lett. 2015, 54, 50–55. [Google Scholar] [CrossRef]
  13. Steinbach, M.; Karypis, G.; Kumar, V. A Comparison of Document Clustering Techniques. In Proceedings of the Sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Boston, MA, USA, 20–23 August 2000; pp. 525–526. [Google Scholar]
  14. Mooi, E.; Sarstedt, M. Cluster Analysis. A Concise Guide to Market Research: The Process, Data, and Methods Using IBM SPSS Statistics; Springer: Berlin/Heidelberg, Germany, 2011; pp. 237–284. [Google Scholar]
  15. Charrad, M.; Ghazzali, N.; Boiteau, V.; Niknafs, A. NbClust: An R Package for Determining the Relevant Number of Clusters in a Data Set. J. Stat. Softw. 2014, 61, 1–36. [Google Scholar] [CrossRef]
  16. Lee, H.T.; Chen, S.H.; Lin, J.M. K-means method for rough classification of R&D employees’ performance evaluation. Int. Trans. Oper. Res. 2006, 13, 365–377. [Google Scholar]
  17. Lee, I. Mining Multivariate Associations within GIS Environments. In Innovations in Applied Artificial Intelligence, Proceedings of the 17th International Conference on Industrial and Engineering Applications Intelligence and Expert Systems, Ottawa, ON, Canada, 17–20 May 2004; Springer: Berlin/Heidelberg, Germany, 2004. [Google Scholar]
  18. Wieczorek, W.F.; Delmerico, A.M. Geographic information systems. Wiley Interdiscip. Rev. Comput. Stat. 2009, 1, 167–186. [Google Scholar] [CrossRef] [PubMed]
  19. CNA. Determinación de la Disponibilidad de Agua en el Acuífero Santo Domingo Estado de Baja California Sur, Subgerencia de Evaluación y Modelación Hidrogeológica, Mexico; Comisión Nacional del Agua: Mexico City, Mexico, 2002. (In Spanish) [Google Scholar]
  20. Jobst, W.; Miguel, I.; Aurora, S.; Enrique, T.; Alba, V.; Bernardo, M. El problema del agua en zonas áridas: Dos ejemplos de Baja California Sur. In Uso y Gestión del Agua en las Zonas Semiáridas y áridas: El Caso de La Región de Murcia (España) y Baja California Sur (Mexico); Editum Series; Universidad de Murcia: Murcia, Spain, 2010; pp. 91–110. (In Spanish) [Google Scholar]
  21. CONAGUA. Estadísticas Agrícolas de los Distritos de Riego; Año agrícola 2013–2014; Comisión Nacional del Agua: Mexico City, Mexico, 2015; p. 408. (In Spanish) [Google Scholar]
  22. Mina, U. Bosquejo geológico del territorio sur de la Baja California. Boletín de la Asociación Mexicana de Geólogos Petroleros 1957, 9, 139–267. (In Spanish) [Google Scholar]
  23. De Cserna, Z. An Outline of the Geology of Mexico. In The Geology of North America An Overview; Geological Society of America: Boulder, CO, USA, 1989; pp. 233–264. [Google Scholar]
  24. Zenteno, D.J.M. The Geology of the Mexican Republic; American Association of Petroleum Geologists: Boulder, CO, USA, 1994. [Google Scholar]
  25. Cardona, A.; Carrillo-Rivera, J.J.; Huizar-Álvarez, R.; Graniel-Castro, E. Salinization in coastal aquifers of arid zones: An example from Santo Domingo, Baja California Sur, Mexico. Environ. Geol. 2004, 45, 350–366. [Google Scholar] [CrossRef]
  26. Wurl, J.; Imaz-Lamadrid, M.A. Coupled surface water and groundwater model to design managed aquifer recharge for the valley of Santo Domingo, B.C.S., Mexico. Sustain. Water Resour. Manag. 2017. [Google Scholar] [CrossRef]
  27. DESISA. Actualización del Estudio Geohidrológico del Valle de Santo Domingo, Baja California Sur; Comisión Nacional del Agua: Mexico City, Mexico, 1997. Unpublished. (In Spanish) [Google Scholar]
  28. APHA; WPCF. Standard Methods for the Examination of Water and Wastewater; American Public Health Association: Washington, DC, USA, 1998. [Google Scholar]
  29. Brown, E.; Skougstad, M.; Fishmen, M. Method for Collection and Analyzing of Water Samples for Dissolved Minerals and Gases; US Govt Printing Office: Washington, DC, USA, 1983; Volume 75.
  30. Simeonov, V.; Stratis, J.A.; Samara, C.; Zachariadis, G.; Voutsa, D.; Anthemidis, A.; Sofoniou, M.; Kouimtzis, T. Assessment of the surface water quality in Northern Greece. Water Res. 2003, 37, 4119–4124. [Google Scholar] [CrossRef]
  31. Shrestha, S.; Kazama, F. Assessment of surface water quality using multivariate statistical techniques: A case study of the Fuji river basin, Japan. Environ. Model. Softw. 2007, 22, 464–475. [Google Scholar] [CrossRef]
  32. Alberto, W.D.; del Pilar, D.A.M.A.; Valeria, A.M.A.; Fabiana, P.S.; Cecilia, H.A.; de los Ángeles, B.M.A. Pattern Recognition Techniques for the Evaluation of Spatial and Temporal Variations in Water Quality. A Case Study: Suquı́a River Basin (Córdoba–Argentina). Water Res. 2001, 35, 2881–2894. [Google Scholar] [CrossRef]
  33. Žalik, K.R. An efficient k′-means clustering algorithm. Pattern Recognit. Lett. 2008, 29, 1385–1391. [Google Scholar] [CrossRef]
  34. Morissette, L.; Chartier, S. The k-means clustering technique: General considerations and implementation in Mathematica. Tutor. Quant. Methods Psychol. 2013, 9, 15–24. [Google Scholar] [CrossRef]
  35. Weatherill, G.; Burton, P.W. Delineation of shallow seismic source zones using K-means cluster analysis, with application to the Aegean region. Geophys. J. Int. 2009, 176, 565–588. [Google Scholar] [CrossRef]
  36. Juahir, H.; Zain, S.; Yusoff, M.; Hanidza, T.I.T.; Armi, A.S.M.; Toriman, M.; Mokhtar, M. Spatial water quality assessment of Langat River Basin (Malaysia) using environmetric techniques. Environ. Monit. Assess. 2011, 173, 625–641. [Google Scholar] [CrossRef] [PubMed]
  37. Hatvani, I.; Magya, N.; Tanos, P.; Korponai, J.; Székely, I.; Herzig, A.; Kovács, J. Determining Anthropogenic Effects Using Principal Component Analysis on a Fluvial (E Hungary) and Two Lake Ecosystems (W Hungary, E Austria). In Proceedings of the CMA4HC: Use of Multivariate Analysis and Chemometrics in Cultural Heritage and Environment, Rome, Italy, 27–30 May 2012; pp. 27–30. [Google Scholar]
  38. Gan, G.; Ma, C.; Wu, J. Data Clustering: Theory, Algorithms, and Applications; SIAM (Society for Industrial and Applied Mathematics): Philadelphia, PA, USA; American Statistical Association: Alexandria, VA, USA, 2007. [Google Scholar]
  39. Rousseeuw, P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 1987, 20, 53–65. [Google Scholar] [CrossRef]
  40. Charfi, S.; Zouari, K.; Feki, S.; Mami, E. Study of variation in groundwater quality in a coastal aquifer in north-eastern Tunisia using multivariate factor analysis. Quat. Int. 2013, 302, 199–209. [Google Scholar] [CrossRef]
  41. Aiuppa, A.; Bellomo, S.; Brusca, L.; D’Alessandro, W.; Federico, C. Natural and anthropogenic factors affecting groundwater quality of an active volcano (Mt. Etna, Italy). Appl. Geochem. 2003, 18, 863–882. [Google Scholar] [CrossRef]
  42. Jiang, Y.; Wu, Y.; Groves, C.; Yuan, D.; Kambesis, P. Natural and anthropogenic factors affecting the groundwater quality in the Nandong karst underground river system in Yunan, China. J. Contam. Hydrol. 2009, 109, 49–61. [Google Scholar] [CrossRef] [PubMed]
  43. Qin, R.; Wu, Y.; Xu, Z.; Xie, D.; Zhang, C. Assessing the impact of natural and anthropogenic activities on groundwater quality in coastal alluvial aquifers of the lower Liaohe River Plain, NE China. Appl. Geochem. 2013, 31, 142–158. [Google Scholar] [CrossRef]
  44. Mexican Official Norm. Environmental Health, Water Use and Human Consumption: Permissible Limits of Quality and Treatments to Be Bound Water for Drinking Water; Mexican Official Norm: D.F. Mexico, 1994. [Google Scholar]
  45. Ayers, R.S.; Westcot, D.W. Water Quality for Agriculture; FAO Irrigation and Drainage Paper No. 29, Rev. 1; U. N. Food and Agriculture Organization: Rome, Italy, 1985; Available online: http://www.fao.org/DOCReP/003/T0234e/T0234e00.htm (accessed on 27, July, 2016).
  46. Al-Kalbani, M.S.; Price, M.F.; Ahmed, M.; Abahussain, A.; O’Higgins, T. Environmental quality assessment of groundwater resources in Al Jabal Al Akhdar, Sultanate of Oman. Appl. Water Sci. 2017, 7, 3539–3552. [Google Scholar] [CrossRef]
  47. Singh; Malik, A.; Mohan, D.; Singh, V.K.; Sinha, S. Evaluation of groundwater quality in northern Indo-Gangetic alluvium region. Environ. Monit. Assess. 2006, 112, 211–230. [Google Scholar] [CrossRef] [PubMed]
  48. Nagarajan, R.; Rajmohan, N.; Mahendran, U.; Senthamilkumar, S. Evaluation of groundwater quality and its suitability for drinking and agricultural use in Thanjavur city, Tamil Nadu, India. Environ. Monit. Assess. 2010, 171, 289–308. [Google Scholar] [CrossRef] [PubMed]
  49. Subba, R.N. Geochemistry of groundwater in parts of Guntur district, Andhra Pradesh, India. Environ. Geol. 2002, 41, 552–562. [Google Scholar] [CrossRef]
  50. CONAGUA. Programa de medidas preventivas y de mitigación de la sequía Consejo de Cuenca Baja California Sur; Comisión Nacional del Agua: Mexico City, Mexico, 2018. (In Spanish) [Google Scholar]
Figure 1. Location map of the study area showing the distribution and identification of sampled wells, main rivers, settlements and urban zones.
Figure 1. Location map of the study area showing the distribution and identification of sampled wells, main rivers, settlements and urban zones.
Water 10 00437 g001
Figure 2. K-means clustering processes followed in the study.
Figure 2. K-means clustering processes followed in the study.
Water 10 00437 g002
Figure 3. Bivariate plots of the most significant parameters of groundwater samples in the study area, (a) Mg2+ vs Ca2+, (b) TDS vs Cl, (c) Mg2+ vs Cl, (d) TDS vs Ca2+, (e) Ca2+ vs Cl, (f) Ca2+ + Mg2+ vs HCO3.
Figure 3. Bivariate plots of the most significant parameters of groundwater samples in the study area, (a) Mg2+ vs Ca2+, (b) TDS vs Cl, (c) Mg2+ vs Cl, (d) TDS vs Ca2+, (e) Ca2+ vs Cl, (f) Ca2+ + Mg2+ vs HCO3.
Water 10 00437 g003
Figure 4. Spatial distribution map of the water types demonstrated by Stiff diagram.
Figure 4. Spatial distribution map of the water types demonstrated by Stiff diagram.
Water 10 00437 g004
Figure 5. Spatial distribution of groups using K-means clustering on high dimensional dataset.
Figure 5. Spatial distribution of groups using K-means clustering on high dimensional dataset.
Water 10 00437 g005
Figure 6. Principal component analysis (PCA) plot of variable space deduced from the geochemical analysis.
Figure 6. Principal component analysis (PCA) plot of variable space deduced from the geochemical analysis.
Water 10 00437 g006
Figure 7. Clustering wells (class 1, class 2 and class 3), related to the hydrogeochemical dataset resulted. (a) Parameters mainly linked to salinity (b) Parameters linked to heavy metals pollution.
Figure 7. Clustering wells (class 1, class 2 and class 3), related to the hydrogeochemical dataset resulted. (a) Parameters mainly linked to salinity (b) Parameters linked to heavy metals pollution.
Water 10 00437 g007
Figure 8. Spatial distribution of clusters: class 1, class 2 and class 3.
Figure 8. Spatial distribution of clusters: class 1, class 2 and class 3.
Water 10 00437 g008
Table 1. Statistical summary of hydrochemical parameters of groundwater.
Table 1. Statistical summary of hydrochemical parameters of groundwater.
ParameterMinMaxMean ValueS.D.
pH6.408.788.100.31
TDS326.405606.401285.10765.79
EC0.018.762.011.20
HCO336.60683.20237.5060.83
Cl42.542613.37456.32355.44
SO42−2.73325.7329.2334.53
Ca2+4.41731.26109.4699.20
Mg2+11.79238.5064.6842.46
K+1.1724.246.903.49
Na+16.101051.10194.00126.50
NO30.0130.306.854.14
PO43−0.0014.270.030.23
B0.185.000.500.43
Fe3+0.0015.060.230.56
Mn2+0.0010.330.010.02
F0.030.950.340.14
Br0.025.670.980.66
Li+0.010.140.020.01
Sr2+0.074.330.640.52
Cu2+0.0018.830.070.38
Zn2+0.00040.530.020.04
Al3+0.0017.470.190.43
Cr3+0.0010.530.020.04
Ni2+0.000.220.0050.01
Pb2+0.00020.490.020.02
Co2+0.00020.080.010.0044
Cd3+0.000020.0030.00010.0004
S.W.L.16.9181.0055.8914.00
Note: Ion concentration (mg/L), pH (Standard Units), EC (∂S/m), TDS (mg/L). S.W.L. (Static Water Level in meters). S.D. indicates standard deviation.
Table 2. Spearman’s rank correlation matrix for the groundwater quality data.
Table 2. Spearman’s rank correlation matrix for the groundwater quality data.
VariableECTDSCa2+Mg2+Na+K+ClSO42−BrLiSrZnCrStatic Level
EC1
TDS0.991
Ca2+0.820.821
Mg2+0.910.910.901
Na+0.720.720.370.581
K+0.460.460.360.380.491
Cl0.950.950.830.920.720.491
SO42−0.770.770.610.750.660.280.721
Br0.740.740.660.750.480.240.750.531
Li0.650.650.710.630.350.280.660.380.571
Sr0.840.840.850.840.530.550.850.570.690.801
Zn−0.04−0.04−0.04−0.030.01−0.02−0.02−0.06−0.02−0.02−0.031
Cr−0.03−0.03−0.03−0.020.00−0.05−0.02−0.05−0.01−0.02−0.030.921
Static water Level0.040.040.110.01−0.060.500.07−0.130.03−0.030.18−0.04−0.031
Note: Coefficients greater than 0.5 are underlined.
Table 3. Principal component and varimax rotated component matrix.
Table 3. Principal component and varimax rotated component matrix.
VariablesComponent Matrix
PC1PC2PC3PC4Communality
pH0.1550.1470.3600.1100.187
TDS−0.9520.364−0.043−0.0071.041
EC−0.9500.303−0.033−0.0071.036
HCO30.543−0.030−0.8430.2500.929
Cl−0.954−0.059−0.2500.0200.916
SO42−−0.800−0.121−0.2100.1630.725
Ca2+−0.8190.1970.112−0.2010.762
Mg2+−0.8430.285−0.042−0.0570.797
K+−0.203−0.1000.7640.1530.659
Na+−0.864−0.010−0.3230.3020.888
NO3−0.0810.047−0.399−0.2930.254
Fe3+−0.134−0.1870.1200.7680.658
Mn2+−0.238−0.0530.1420.8960.883
Cu2+0.3100.865−0.0390.0180.846
Zn2+0.2010.794−0.033−0.1640.698
Cr3+0.2160.910−0.049−0.1410.897
Pb2+0.0590.792−0.0290.0100.631
Static water level0.372−0.0440.823−0.1370.836
Eigen values6.1133.3112.4141.804
Variability (%)33.9616.55312.0729.021
Cumulative (%)33.9650.51462.58671.607
Note: A Rotation method: varimax with Kaiser normalization.
Table 4. Statistics of the three categories found from the K-means clustering analysis.
Table 4. Statistics of the three categories found from the K-means clustering analysis.
ParameterClass 1 (n = 160)Class 2 (n = 166)Class 3 (n = 256)
MinMaxMeanMedianS.D.MinMaxMeanMedianS.D.MinMaxMeanMedianS.D.
pH6.408.387.857.840.247.148.788.218.210.326.978.788.188.150.26
TDS6.405606.402169.941926.40883.22326.40998.40671.77665.60130.56576.002035.201126.481100.80280.38
EC0.018.763.393.011.380.511.561.051.040.200.903.181.761.720.44
HCO385.40683.20235.29228.1471.91131.76475.80247.56244.0054.4536.60500.20232.45231.8056.44
Cl141.802613.37872.41754.02409.3242.54384.99169.31170.1653.60192.49811.45380.81357.69117.91
SO42−4.64325.7357.0740.3251.972.8935.9111.159.226.652.7399.2323.5019.3216.51
Ca2+46.89731.26217.96183.57123.914.41129.0643.5140.4821.2016.83257.7183.8176.2540.77
Mg2+18.58238.50116.16107.7741.8411.7961.1129.1428.379.6017.62123.4455.3553.2219.79
K+1.9524.249.188.604.231.179.784.554.302.031.9615.256.987.042.63
Na+80.501051.10287.90239.20185.2616.10264.50119.84112.7044.6266.70533.60183.21174.8067.49
NO30.0129.608.387.414.930.4330.306.835.904.100.3723.705.905.173.26
PO43−0.0012.490.030.010.200.0024.270.060.020.390.0010.190.020.010.02
B0.183.470.010.420.550.185.000.0050.360.440.192.450.0050.370.30
Fe3+0.0024.130.290.070.650.0033.820.230.050.540.0015.060.200.040.52
Mn2+0.0010.110.010.010.010.0010.060.010.010.010.0010.330.010.010.02
F0.0910.660.300.300.100.110.950.390.380.150.030.760.340.340.13
Br0.045.670.021.610.730.022.860.0050.450.290.242.300.010.880.39
Li+0.010.140.030.030.010.010.030.020.020.000.010.040.020.020.01
Sr2+0.294.330.011.100.620.070.680.0030.250.090.131.500.010.500.19
Cu2+0.0010.660.070.070.110.0018.830.130.070.700.0010.650.040.070.05
Zn2+0.00040.450.020.020.050.0010.530.020.020.040.0010.300.020.010.02
Al3+0.0011.220.170.190.150.0017.470.250.190.670.0024.760.160.120.35
Cr3+0.0010.450.020.020.040.0010.530.020.020.040.0010.300.020.020.02
Ni2+0.0010.220.010.000.020.0010.050.0040.0020.010.0010.120.010.010.01
Pb2+0.00020.090.020.020.010.0010.490.020.020.040.0010.140.020.020.01
Co2+0.00020.080.010.010.010.0010.010.010.010.0010.0010.070.010.010.005
Cd3+0.000020.00290.00010.000020.00050.000020.0020.000050.000020.00020.000020.0030.00010.000020.0004
S.W.L.16.9177.10554.6961.0116.6717.7674.7652.3954.0912.5421.1881.0058.8961.2812.91
Note: Ion concentration (mg/L), pH (Standard Units), EC (∂S/m), TDS (mg/L). S.W.L. signal static level (meters). S.D. indicates standard deviation. n indicate number wells by cluster.

Share and Cite

MDPI and ACS Style

Marín Celestino, A.E.; Martínez Cruz, D.A.; Otazo Sánchez, E.M.; Gavi Reyes, F.; Vásquez Soto, D. Groundwater Quality Assessment: An Improved Approach to K-Means Clustering, Principal Component Analysis and Spatial Analysis: A Case Study. Water 2018, 10, 437. https://doi.org/10.3390/w10040437

AMA Style

Marín Celestino AE, Martínez Cruz DA, Otazo Sánchez EM, Gavi Reyes F, Vásquez Soto D. Groundwater Quality Assessment: An Improved Approach to K-Means Clustering, Principal Component Analysis and Spatial Analysis: A Case Study. Water. 2018; 10(4):437. https://doi.org/10.3390/w10040437

Chicago/Turabian Style

Marín Celestino, Ana Elizabeth, Diego Armando Martínez Cruz, Elena María Otazo Sánchez, Francisco Gavi Reyes, and David Vásquez Soto. 2018. "Groundwater Quality Assessment: An Improved Approach to K-Means Clustering, Principal Component Analysis and Spatial Analysis: A Case Study" Water 10, no. 4: 437. https://doi.org/10.3390/w10040437

APA Style

Marín Celestino, A. E., Martínez Cruz, D. A., Otazo Sánchez, E. M., Gavi Reyes, F., & Vásquez Soto, D. (2018). Groundwater Quality Assessment: An Improved Approach to K-Means Clustering, Principal Component Analysis and Spatial Analysis: A Case Study. Water, 10(4), 437. https://doi.org/10.3390/w10040437

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop