Introduction

As a significant natural resource, groundwater is required to sustain all forms of life on Earth due to its natural purity and status as one of the most significant sources of pure water on the surface of the planet17,21,42,48. The quality of groundwater and its applications are primarily influenced by several variables, including the overall condition of the sub-surface environment, the composition of lithological formations, hydro geochemical interactions occurring within the aquifer, and numerous human activities3,27,62. The identification of sources of groundwater chemistry is of utmost importance in the context of addressing issues related to water supply–demand dynamics and socio-economic development, particularly in the face of challenges like as overexploitation and droughts resulting from climate change15. The chemical composition of groundwater is typically subject to various influences, including precipitation patterns, geological formations, rock types, and the duration of residence along the flow paths of groundwater19,28,38.

According to the 6th Minor Irrigation Census, India is the world's largest extractor of groundwater, withdrawing over 250 cubic kilometers annually, which is about 25% of the global total. Groundwater is crucial for India, supplying 62% of irrigation, 85% of rural water, and 50% of urban water. Moreover, it is worth noting that in the nation of India, there exist expansive mountainous and hilly regions, which account for approximately 30% of the total land area. These topographical features play a crucial and noteworthy role in the supply of water resources to the nation. This is primarily due to their unique characteristics, including heightened precipitation levels compared to lowland regions, reduced evapotranspiration rates at higher elevations, and substantial water reservoirs in various forms53. The Western Ghats, a mountain range running parallel to India's western coast 30–50 km inland, covers about 140,000 km2 and stretches 1600 km. It extends from the northern Satpura Range through Goa, Karnataka, Kerala, and Tamil Nadu, ending at Kanyakumari, where it embraces the Indian Ocean. Therefore, it is equally crucial to examine groundwater hydrochemistry in this area.

The two main challenges pertaining to groundwater are issues of water scarcity and water quality. The severity of these issues varies greatly and is directly correlated to the geology, hydrogeology, climate, and geochemical mechanisms. The chemical composition of groundwater is influenced by many key factors, including the quality and quantity of recharged water, the geologic structure, and the mineralogy of the aquifer68. According to the findings of the hydrochemical studies, the quality of groundwater is dependent on lithological and pedogeochemical compositions, as well as numerous geochemical compositions of the rocks and anthropogenic activities2,26,49. Groundwater chemistry may be affected by a variety of anthropogenic causes, including waste disposal approaches and sanitary conditions. Lithology and geochemistry can potentially modify groundwater hydrochemical characteristics through subsurface movement6,15,49,58,59,67. Comprehending the quality of groundwater and its underlying mechanisms is of utmost importance in order to facilitate efficient management and ensure the long-term sustainability of this vital resource for many applications. The chemical composition of groundwater is influenced by several geochemical processes that occur throughout its flow. Therefore, accurately identifying the aquifer's location is crucial in order to understand the dispersion and mechanisms of the dominant ion chemistry within the area25,56. The groundwater chemistry of an area is typically not homogeneous, being affected by factors such as flow, geochemical processes, evaporation, evapotranspiration, and possible pollution sources55,58. The comprehension of many interconnected geochemical processes is crucial for comprehending the underlying factors contributing to changes in water quality resulting from aquifer interaction, particularly in formations characterized by weathered rock. Hydrogeochemical techniques may be used for the purpose of preparing and sustaining polluted locations, with the aim of conserving aquifers that have been compromised due to both natural and human-induced factors. Hence, it is imperative to possess a comprehensive understanding of the intricate mechanisms governing groundwater chemistry in order to effectively comprehend and address the various concerns associated with this vital natural resource29,49,54.

The Water Quality Index (WQI) provides a concise, single-number representation of water quality at different usage stages, covering physical, chemical, and biological characteristics. It effectively summarizes the overall condition of surface water51,52,61,63. The WQI is calculated by combining several criteria into a single number, indicating water quality or pollution status. It helps predict contaminants, compare water quality from different sources, and guide water resource management16,47. The task of computing the WQI becomes challenging due to the complexity and size of the data matrix, which encompasses several characteristics. In order to address this issue and mitigate subjectivity, several multivariate approaches like as Principal Component Analysis (PCA), component analysis, and others are used to provide a more comprehensive interpretation of the findings1,20.

Therefore, this study aims to provide a baseline for evaluating water quality in the Southern Western Ghats, particularly in Kerala, India, with the following main objectives.

  • Evaluated physico-chemical characteristics of groundwater samples and assessed hydrogeochemical processes using geochemical modeling, hydrochemical facies studies, and various graphical plots (Chadha diagrams, Gibbs plots, ion exchange reaction plots).

  • Analyzed ion exchange, rock-water interaction, dissolution processes, and calculated saturation indices for selected minerals, correlating them with electrical conductivity.

  • Applied statistical methods including PCA, correlation matrix with z-score standardization, and conducted Pearson correlation analysis to determine key factors influencing water quality, followed by calculating the water quality index

Methodology

Study Area

The study area encompasses part of the Western Ghats located within the state of Kerala, spanning across 11 out of the total 14 districts. The Western Ghats (hills) constitute a faulted escarpment that is mostly built out of the Deccan plateau and spans roughly 1600 kms parallel to the west coast of India from Gujarat to Tamil Nadu. The current study area extends 25,261 square kilometres and is situated between the boundaries of Tamil Nadu state to the east and the midland of Kerala. The area exhibits an average elevation of 900 m, featuring numerous peaks surpassing the altitude of 1800 m. This area gives rise to a total of 41 rivers that flow in a westward direction, while only three rivers flow in an eastward direction. The region experiences an average annual rainfall of 3060 mm, primarily occurring during the Southwest Monsoon season, which spans from May to September, followed by the Northeast Monsoon season, which takes place in November and December.

This region is characterized by the presence of significant plantations, including those dedicated to the cultivation of tea, coffee, rubber, and a variety of spices. This region is characterized by the presence of significant plantations, including those dedicated to the cultivation of tea, coffee, rubber, and various spices. This geographical region is commonly referred to as the Cardamom Hills. This particular geographical area is renowned for its significant contribution to the production of various spices, with a particular emphasis on cardamom, from which it derives its distinctive appellation. The highest peak in India after the Himalayas, Anaimudi (2694 m), is located in the Munnar region of the Western Ghats64. In certain areas of their ranges, they are rich in mineral resources such as iron, manganese, and bauxite ores. The practice of sand mining has become a significant concern in this region. The implementation of flawed cultivation practices, inadequate maintenance of drainage systems, and unsustainable mining activities have contributed to heightened susceptibility to landslides, compromised water sources, and impaired agricultural productivity.

The study area is situated within the Precambrian terrain of South India, characterized by the prevalence of charnockites and charnockitic gneisses as the dominant rock types (Fig. 1). The Western Ghats in Kerala are predominantly characterized by the presence of charnockitic gneisses and pyroxene-bearing granulites, particularly in the central and northern regions. These rocks cover around 40–50% of the entire area of the state. The prevalence of charnockites and their associated gneisses persists along the trends of the Western Ghats until reaching the Palaghat Gap. In addition to the mentioned above, the Palakkad and Idukki districts exhibit exposed rocks from the Peninsular Gneissic Complex, primarily consisting of hornblende-biotite gneisses and foliated granites. In the southern region, situated beyond the Palaghat Gap, the predominant rock formations consist primarily of khondalites accompanied by garnet-sillimanite-bearing gneisses. The state is characterized by the presence of extensive coastline, which is primarily composed of tertiary sedimentary deposits9.

Figure 1
figure 1

Study area. (A) Hydrogeological characteristics (B) Sample locations. This map was generated using ESRI's ArcGIS 10.7 for Desktop software (http://www.esri.com), version 10.7.1.

Sampling and analysis

A total of 57 samples were included in this study, which were collected from the study area during the pre-monsoon season of 2021. For the collection of groundwater samples, two approaches were used: one for basic parameters, including hydrogen-ion-concentration (pH), electrical conductivity (EC), total dissolved solids (TDS), calcium (Ca2+), magnesium (Mg2+), sodium (Na+), potassium (K+), bicarbonate (HCO3) chloride (Cl), sulphate (SO42−), nitrate (NO3), and fluoride (F),and another for metals such as iron and manganese following the standard chemical water quality procedures of American Public Health Association (APHA 2012). The groundwater samples were determined for the chemical parameters at Regional Chemical Laboratory, Central Ground Water Board, Kerala Region, Trivandrum, India. In order to perform basic parameter analysis, the groundwater samples were collected using one-liter HDPE bottles without acidification. While, for metals analysis, 100 mL polyethylene bottles were used. Samples were filtered using a mixed cellulose esters (MCE) membrane filter with a 0.45 μm pore size and acidified with ultrapure 65% nitric acid (0.5 mL per 100 mL of water) after filtration. This acidification step was performed to prevent any potential alterations in concentrations. Upon completion of the sample collection process, the samples were appropriately labeled, stored, and subsequently transported to the chemical laboratory for comprehensive chemical analysis.

For the analysis of the corresponding parameters, calibrated pH and EC meters were employed. The EC was employed to calculate the TDS using the formula TDS (mg/L) = EC (µS/cm) × 0.64, as suggested by Elumalai15. The procedures for analysis were implemented by the American Public Health Association4. Analyses of bicarbonate were conducted using an acid titration method with phenolphthalein and methyl orange as indicators. The Ion Chromatography instruments (Metrohm 930) were used to analyse the anions and cations30. To ensure the accuracy and precision of the analysis, standards and blanks were run repeatedly. Analytical precision and measurement reproducibility were under 2%, whereas the ionic balance error for analyzed ions was ± 5%. The Atomic absorption spectrophotometer -Flame was used to analyze heavy metals (PerkinElmer 800, Waltham, Massachusetts, USA). The detection limits for the metals Fe and Mn were 0.05 and 0.02 mg/L, respectively. The standard solution was made from a 1000 mg/L stock solution of metals of interest to obtain the metal ion calibration curve. Laboratory quality control and quality assurance measures, including standard operating procedures, standard calibration, and reagent blank analysis, were used to ensure the accuracy of the analytical results.

Water quality index

The WQI is a grading technique that evaluates the collective impact of various water quality parameters on the overall suitability of water for human consumption. It is often used to describe the availability and suitability of potable water resources for domestic use. There are numerous water indices developed by national and international organizations, such as the Weight Arithmetic Water Quality Index (WAWQI), the National Sanitation Foundation Water Quality Index (NSFWQI), the Canadian Council of Ministers of the Environment Water Quality Index (CCMEWQI), and the Oregon Water indices, which are employed worldwide.

The current research used the Weight Arithmetic Water Quality Index methodology as outlined by Subba Rao57. The calculation included the values of 13 parameters that were analyzed in a total of 57 samples. The computation of Water Quality Index included a series of five steps. The first step included the assignment of unit weight (UW) to each chemical parameter (i), based on its relative significance in relation to human health. In this particular case, 5 were given to the parameter with the highest significance and 1 to the parameter with the lowest significance (Table 1). The calculation of the relative weight (RW) for each chemical parameter was performed in the second step, as described by Eq. (1). The percentage of quality rating scale (QR) was calculated in the third step by dividing the concentration of chemical parameter (C) by its standard drinking water quality (D) for each chemical parameter (Eq. 2). In the fourth step, the determination of the relative rating (RR) was computed by multiplying the relative weight (RW) with the quality rating (QR) for each chemical parameter, as seen in Eq. (3). Finally, the WQI was calculated by summing all RR in each sample (Eq. 4).

Table 1 Particulars of desirable limits (D), unit weight (Uw) and relative weight (Rw) for WQI.
$${R}_{w}=\frac{{U}_{w}}{\sum_{i=1}^{n}{U}_{w}}$$
(1)
$${Q}_{R}=\frac{C}{D}\times 100$$
(2)
$${R}_{R}= {R}_{w}\times {Q}_{R}$$
(3)
$$WQI=\sum {R}_{R}$$
(4)

Saturation indices

Saturation indices are calculated using the equation SI = log (IAP/Ks), where IAP and Ks are the ion activity and solubility products, respectively. If SI = 0, the corresponding mineral is in equilibrium in the aquifer, whereas SI > 0 and SI < 0 indicate oversaturation and undersaturation of the mineral in the water, respectively. This approach has been employed in other studies to investigate how mineral weathering affects the chemistry of water32,69

Multivariate statistical methods

The Multivariate statistical analysis approach was used to identify geochemical processes, dissolved constituent sources, and their origins. Pearson correlation analysis and hierarchal cluster analysis were performed using Origin Pro 2022 (OriginLab), while IBM Statistical Package of Social Studies (SPSS) version 26 software was used for the factor analysis, which was computed with the help of the principal component analysis extraction method. PCA analysis was performed using Varimax rotation with Kaiser Normalization. The analysis considered eigenvalues greater than one and extracted three main components. These three components were plotted in a three-dimensional box to facilitate a better understanding of geochemical data. To group the sampling locations with similar hydrogeochemical behavior, a hierarchical cluster analysis was carried out in the form of a polar heat map, which was performed using the squared Euclidean distance and Ward's technique. To eliminate bias and the effects of individual factors, the water quality data set was standardized and converted into a z-score prior to carrying out the PCA and HCA analyses14,45 . The correlation between variables was estimated using Pearson's correlation coefficient (r). Microsoft Excel 2016 was used throughout the process of both the descriptive statistics and the data management.

Results and discussion

The results of descriptive statistical analysis on the quality data are shown in Fig. 2. The pH of the groundwater ranged from 3.06 to 8.35, with an average value of 7.08, suggesting that it is acidic to alkaline in nature (SI Table 1. Statistics for analysed parameter). Groundwater samples may be categorized as acidic (pH < 6.5, 12%, N = 7), neutral (pH 6.5–7.5, 44%, N = 25), or alkaline (pH > 7.5, 44%, N = 25). Groundwater samples with high acidic pH include S6 (3.06), S16 (4.40), S43 (4.00), S47 (4.10), and S48 (3.60). The lower pH might be attributed to the high rain fall and low water table condition, which favors slightly acidic water in shallow aquifer systems, especially lateritic terrains like the samples above12,13,22,24). The EC ranged from 50 to 970 μS/cm, with an average of 266 μS/cm. EC < 250 μS/cm is found in around 67% of the samples (N = 38). TDS was determined from EC using the formula TDS (mg/L) = EC (µS/cm) × 0.64, and the average value ranged from 32 to 621 mg/l. Results showed that the TDS levels were found to be < 100 mg/l in 26 samples (46%) and < 250 mg/l in 46 samples (81%). The low TDS is a result of the high rainfall received here during the monsoon season. Because of this intense rainfall and steep topographic gradient actively flushes the products of weathering leading to low dissolved solids in ground water. According to WHO,66, the results of the total hardness (TH) classification show that there are different classes of groundwater in the study area, including soft groundwater (TH < 60 mg/l, N = 34), moderately hard groundwater (60 > TH < 120 mg/l, N = 13), hard groundwater (120 > TH < 180 mg/l, N = 5), and very hard groundwater (TH > 180 mg/l, N = 5).

Figure 2
figure 2

Box pot showing the chemical composition of groundwater in study area.

EC, TDS, and TH have corresponding standard deviations of 231 µS/cm, 148 mg/l, and 69 mg/l. The descriptive statistical analysis of the major cations and anions are shown in SI Table 1. The standard deviation is an excellent tool for determining groundwater features in any location15,60,70. High standard deviations in TDS, EC, and TH were reported in this research, indicating that the sources of chemical components in this aquifer come from diverse geochemical processes.

High enrichments of Fe and Mn are reported in this study area. The Fe ranges between < 0.05 mg/l and 2.83 mg/l, with an average of 0.32 mg/l. (Fig. 2).The samples with N = 19 show Fe > 0.3 mg/L, which is above the acceptable limit as prescribed by BIS7, for drinking purpose, while the samples with N = 37 show 0.1 > Fe < 0.3 mg/l. Similarly, the Mn ranges between < 0.02 mg/l and 6.05 mg/l, with a mean of 0.27 mg/l. (Fig. 2). The samples with N = 16 show Mn > 0.1 mg/L, which is beyond the acceptable limit as recommended by BIS for drinking purpose, whereas the samples with N = 9 show 0.05 > Mn < 0.1 mg/l.

Water quality index (WQI)

Based on the WQI20,31,35, groundwater quality is graded as follows: excellent quality (< 25), good quality (25–50), average quality (51–75), poor quality (76–100), and unsuitable quality (> 100). The computed values of the WQI in the present study area is ranged from 14 to 621 in the groundwater samples, with an average value of 60. Among these samples, 42% (N = 24) were classified as having good quality (WQI 26–50), while 26% (N = 15) were categorized as having excellent quality (WQI < 25). Furthermore 19% (N = 11) were categorized as having average quality (WQI 51–75). Interestingly, only a small share of the samples, specifically 5% (N = 3), fell into the Poor Quality category (WQI 76–100). These findings highlight the overall favourable water quality conditions observed in the samples analysed. It is worth noting that only a small proportion of the samples, specifically 7% (N = 4), were classified as belonging to the category of unsuitable quality, as indicated by a WQI > 100. Thus, the aforementioned results underscore the overall good water quality characteristics seen in the studied samples.

Using the spatial distribution of WQI as depicted in Fig. 3A, it is possible to evaluate the variation of WQI classes throughout the study area. About half of the study area, including 12,735 square kilometres, is classified as Excellent to Good Quality and this classification encompasses mainly Kollam, Kozhikode, Kannur and Wayanad districts. About 39% (9,971 sq. km) and 3% (885 sq. km) of the total area fell into the categories of Average Quality and Poor Quality, respectively, with the majority of these areas located in the districts of Palakkad, Kottayam, Thiruvananthapuram and Idukki. Subsequently, the unsuitable drinking water quality category encompasses about 8% (1953 sq. km) of the overall study area, mostly concentrated in the south part of Idukki district and a north portion of Pattanamtitta district. Additionally, south eastern part of Wayanad district also fall in this category. The high WQI value in this region is due to excessive concentration of Fe and Mn in the groundwater, which primarily derives from the geogenic source (Fig. 3B, C).

Figure 3
figure 3

Spatial distribution of Iron (A), Manganese (B), and Water Quality Index (C) in study area. This map was generated using ESRI's ArcGIS 10.7 for Desktop software (http://www.esri.com), version 10.7.1.

Hydrochemical facies

Lithospheric composition, groundwater movement, and other natural activities all affect the hydrochemical facies in the groundwater. In this study area, ions that prevail in groundwater are Na+  > Ca2+  > Mg2+  > K+ and HCO3 > Cl > NO3 > SO42−. The Chadha diagram10 (Fig. 4D) are used to investigate the hydrochemical facies of the study region. The Chadha diagram reveals that the groundwater samples were scattered across three major zones, with the exception of four samples. The samples have been clustered together as follows: CaHCO3 facies (46%) > CaMgCl facies (30%) > NaCl facies (17%) > NaHCO3 facies (7%). The facies of NaCl and CaMgCl of groundwater show the effect of ion exchange processes, evaporation, and prolonged storage/residence but the mineral weathering process is only expected to have an impact on groundwater with CaHCO3 facies14,45. The CaHCO3 facies is observed in the majority of the samples from the district of Wayand, Pathanamthitta, Palakkad and Thrissur, and it exhibits the Recharging water features. Furthermore, CaMgCl facies indicate the reverse ion exchange properties of water, as found in the majority of samples from districts of Kazikhode, Malappuram, and Kottyayam. However, the NaCl facies is only seen in the majority of Trivandrum district samples. This facies represents salt water as a result of a high EC. Subsequently, only four samples, two from the Idukki district and two from the Kollam district, exhibit NaHCO3 facies, which is indicative of the base ion exchange properties of the water. The samples from the districts of Idukki and Kollam display mixed hydrochemical facies with an asymmetrical trend. SI Table 2 (Hydrochemical facies distribution) displays the hydrochemical facies distribution across district.

Figure 4
figure 4

Factors influencing the chemistry groundwater chemistry. (A) Gibbs plot for cation, (B) Gibbs plot for anion, (C) Relation between Na/Cl and EC, (D) Chadha diagram.

Influencing hydrogeochemical processes

To distinguish the influential hydrogeochemical processes in this aquifer, Gibbs and bivariate plots were used.

Gibbs plots

Gibbs employed the TDS and ionic ratios as a means of discerning the primary geochemical mechanisms that govern the chemical composition of water. In the cation plot and the anion plot (Fig. 4A, B), the TDS is plotted against the Na+  + K+/Na+  + K+  + Ca2+ ratio and against the Cl/Cl + HCO3 ratio, respectively. Evaporation, mineral weathering, and rainfall input may all be readily distinguished using these graphs. Ca2+ and HCO3 will be removed from the system during the process of evaporation by carbonate precipitation, which will then be followed by TDS enrichment in the aquifer45. As a result, the concentrations of Na+ and Cl in groundwater will rise. In the current study, around 10% of the samples are fall in precipitation zone and rest of the samples cluster in a zone of mineral weathering. No samples are depicted on the evaporation zone. Mineral weathering is the dominant process fallowed by precipitation in the area of study.

Evaporation

As reported by Jankowski and Acworth23, the plot of EC against Na+/Cl will not change with increasing salinity (EC) if evaporation is the dominating process in water chemistry. When Na+/Cl is plotted against EC, as shown in Fig. 4C, only a few wells follow the trend of evaporation. This demonstrates that evaporation is not the dominant factor that influences the chemistry of wate44. Figure 4C shows that the Na+/Cl ratios are enriched and depleted, indicating that silicate dissolution and the ion exchange mechanism are primarily controlling the water chemistry36,44.

Carbonate dissolution on water chemistry

Ionic ratios and bivariate plots are used in order to evaluate the influence of carbonate dissolution on chemistry water. Results of carbonate mineral dissolution in the groundwater yield of Ca2+, Mg2+, and HCO333,44,46. In this study, the average Ca2+/Mg2+ molar ratio is 2.6, which varied from 0.19 to 9.7 (one sample is eliminated because of its exceptional value of 24.5), and it is greater than 1 in 74% of the samples (Fig. 5). About 40% of the samples have a Ca2+/Mg2+ ratio greater than 2. According to Maya and Loucks33, dolomite dissolution will retain a ratio of 1, whereas calcite dissolution will result in a ratio greater than 1. The higher ratio of Ca2+/Mg2+ (> 2) is due to silicate weathering in the system43,46. In the present study area, water samples that are close to Ca2+/Mg2+ the = 1 line indicates that dolomite dissolution, while clusters that are between 1 and 2 reveal that the dissolution of calcite. The existence of an impact from silicate weathering in this aquifer is indicated by higher ratios, (Ca2+/Mg2+  > 2).

Figure 5
figure 5

Influence of mineral weathering and ion exchange processes on groundwater chemistry. (A) Plot of HCO3 Vs Ca2+/Mg2+ for Carbonate dissolution, (B) Plot of HCO3 + SO42− Vs Na+/Cl for Silicate weathering, (C) Plot of Ca2+/Na Vs HCO3/Na+ for distinguish the effects of weathering, (D) Plot of HCO3 Vs Na+ + K+ for elucidation of ion exchange processes, (E) Plot of Cl over Na+ + K+ for elucidation of hydrochemical process, (F) Plot of Na+ + K+–Cl Vs Ca2+ + Mg2+–Alk–SO42 for weathering and ion exchange processes.

Silicate weathering

As previously stated, silicate weathering influenced the major ion chemistry in this aquifer43. Furthermore, the Na+/Cl ratio in this aquifer ranges from 0.05 to 3.58, with an average of 1.45 (Fig. 5). The dissolution of halite will maintain a 1:1 Na+/Cl ratio. However, the weathering of silicates and cation exchange resulted in a rise in the system's sodium content, which led to a ratio of sodium to chloride greater than one. In this study area, around 81% of samples indicate a higher ratio (Na+/Cl > 1), and the sodium content in these wells is obtained through silicate weathering and cation exchange. In order to confirm the impact of mineral weathering and ion exchange reaction, the relationship between Ca2+  + Mg2+ and HCO3 + SO42− is exercised. If the Ca2+ and Mg2+ resulted as a consequence of the weathering of carbonate, sulphate (gypsum, anhydrite), and silicate minerals, then the HCO3 + SO42− will balance both of those elements8,34. The water samples plotted on or near the 1:1 line in Fig. 5B illustrate the influence of mineral weathering on water chemistry in the current study. However, samples plotted above or below the equiline indicate the existence of alternative processes. Similarly, to investigate and distinguish the effects of weathering of silicates, carbonates, and evaporites/evaporation in the aquifer, molar Ca2+/Na+ is plotted versus molar HCO3/Na+18,46. The samples were distributed in a cluster between the evaporation zone and the silicate weathering zone, as shown in Fig. 5. These elements are mostly derived through silicate weathering. The precipitation of carbonate minerals and the subsequent increase in Na+ concentration in the aquifers are explained by samples plotted on or near the evaporation zone. As a result of the weathering of soda feldspar (albite), potash feldspar, orthoclase, and microcline, Na+ and K+ ions are released into the aquifer15,39.

Ion exchange reactions

Cation exchange or silicate weathering are accountable for the enriching of Na+ over Cl, while reverse ion exchange events are accountable for the depleting of Na+ over Cl. The ion exchange process is further confirmed by the plot of Ca2+  + Mg2+ vs HCO3 + SO42− in Fig. 5B. The presence of a high Ca2+  + Mg2+ concentration over HCO3 + SO42− in about 20% of the samples suggests a reverse ion exchange process. Ca2+  + Mg2+ depletion over HCO3 + SO42− confirms that Ca2+  + Mg2+ is withdrawn from groundwater by cation exchange reaction or Na+/K+ silicates weathering should have increased HCO345. Similarly, the ratio of Na+ + K+ to HCO3 demonstrates an elevation of Na+ + K+ in relation to HCO3 as a result of cation exchange activities (Fig. 5D). Schoellar, described the chloroalkaline indices (CAI 1 and CAI 2), which were used in several studies to elucidate ion exchange processes in groundwater50.

The negative values of CAI 1 and CAI 2 indicate cation exchange process whereas positive values indicate reverse ion exchange. High concentrations of Na+ + K+ over Cl result in negative values in these calculations, indicating cation exchange processes, whereas high concentrations of Cl over Na+ + K+ result in positive values, indicating reverse ion exchange reactions. The majority of the samples (91%) had negative values and show a negative trend, as seen in Fig. 5E. Therefore, cation exchange reaction plays a crucial role in controlling water chemistry, whereas only five samples exhibit positive values indicative of reverse ion exchange reaction. In the case of a cation exchange reaction, the plot of Ca2+ + Mg2+–Alk–SO42− versus Na+ + K+–Cl will exhibit a negative slope and a significant negative correlation. Figure 5F depicts a negative slope with a significant negative correlation, proving that cation exchange reactions in addition to mineral weathering influence the water chemistry in the study area.

Geochemical modelling

Commonly, aqueous geochemical calculations are often used to examine the interactions between rocks and minerals employing a thermodynamic database. The identification of silicate weathering and carbonate mineral dissolution is facilitated by these calculations11. Based on available data, the PHREEQC algorithm was used to determine the ionic strength and saturation indices for selected minerals40,41. Ionic strength in the current study ranged from 0.0009 to 0.014, with an average value of 0.004. The ionic strength has a significant correlation with EC as seen in Fig. 6. Further, the average value of the partial pressure of CO2 (pCO2) was found to be 2.88, and it ranged from − 9.24 to 0.03. At the location of the study, the pCO2 levels in the water samples are mainly greater than the atmospheric pCO2 (− 3.4), with the exception of six wells. Wells with more salinity water have pCO2 higher values, which are strongly associated with the atmosphere, and the relationship between EC and pCO2 also shows a positive tendency (Fig. 6). The pCO2 numbers may be related to the groundwater level, and deep wells tend to have low EC and pCO2. However, groundwater level data is not used to conform this information for sampling wells.

Figure 6
figure 6

Saturation indices of carbonate minerals and their relation with salinity in the groundwater.

According to SI calculations and Fig. 6, about 20% of groundwater sample wells are saturated with carbonate minerals such as calcite (CaCO3), aragonite (CaCO3), dolomite (CaMg(CO3)2), siderite (FeCO3), and rhodochrosite (MnCO3), indicating that dissolution of carbonate minerals regulates groundwater chemistry. The fact that the groundwater has high concentrations of Ca2+, Mg2+, and HCO3, as well as a neutral to alkaline pH, is further evidence that carbonate reactions are crucial for preserving the hydrochemistry of the groundwater in multilevel wells. The dolomite saturation index values range widely across the sample wells (− 10.5 to 3.1). The existence of carbonate minerals and their wide variation are crucial because ground level variations in the sample wells may have caused calcite and aragonite to dolomitize as a result of an interaction with groundwater that contains magnesium.

Groundwater tends to be supersaturated with hematite (Fe2O3), goethite (FeOOH), and ferrihydrite (Fe(OH)), as shown in Fig. 7. This indicates that there is a suitable thermodynamic environment for the precipitation of Fe(III) phases from groundwater. Meanwhile, when Fe(II) and Mn(II) concentrations increase, correspondingly increases the SI of siderite and rhodochrosite. Fe(II) and Mn(II) concentrations in groundwater are constrained by adsorption onto or co-precipitation with CaCO3, according to the saturation of groundwater with calcite, siderite, and rhodochrosite5. CaCO3 may be partially substituted with Mn, which can lead to the creation of rhodochrosite37,65. Therefore, these minerals have the ability to act as a sink by removing Fe(II) and Mn(II) ions from anoxic groundwater that contains a high concentration of HCO3. Such processes can accelerate the rate at which Fe and Mn oxyhydroxide are reduced by shifting the equilibrium of redox towards the reduced phases of Fe (II) and Mn (II), respectively.

Figure 7
figure 7

Saturation indices of Iron minerals and their relation with salinity in the groundwater.

Multivariate statistical analysis

Pearson correlation analysis

Pearson correlation analysis was performed in this study and results are presented in Fig. 8A. Variables namely pH, Fe and Mn does not correlate with other variables. Additionally, pH shows significant negative correlation with NO3 and K+. EC and TH express strong positive correlation with all variables except NO3, K+ and pH. NO3 shows the significant correlation with only Na+, K+ and Cl and rest of the parameter are not correlated with it whereas K+ shows correlation with only NO3. The positive correlation between NO3 and K+ (r 2 > 0.59) suggest that both are derived from anthropogenic sources in this aquifer. Sulphate and chloride minerals are highly undersaturated in this aquifer. Therefore, Cl and SO42− are good indicator of anthropogenic input. Variables correlated with Cl and SO42− are partially or completely derived from anthropogenic sources. Similarly, with the exception of pH, K+, and NO3, HCO3 has a substantial positive correlation with all variables. Also, none of the relationships between the concentration of metals (Fe and Mn) in water samples were significant. This means that the Fe and Mn in the water samples were not related to other parameter of water and may have come from different sources in the study area.

Figure 8
figure 8

Multivariate statistical analysis. (A) Results of Pearson correlation analysis, (B) Results of Principle component analysis, (C) Results of Hierarchical cluster analysis in polar heat-map. The polar heat-map was generated using Originlab’s, Origin 2022 for Desktop software (https://www.originlab.com/origin), version Origin Pro 2022.

Principal component analysis (PCA)

One effective approach for identifying the origins of variables and geochemical processes is the PCA analysis. In PCA, the water analysis data is reduced and simplified into components. Tables 2 and 3 depicts the number of obtained factors with Eigen values greater than one, as well as variance and cumulative variance. Similarly, a graphical illustration is shown in Fig. 8B. In the current study, three factors account for about 77.1% of the variance. Factor 1 has a substantial positive loading on EC, TH, Na+, Mg2+, Cl, HCO3, and SO42−, and it accounts for 50.2% of the variance. The main source of chemical constituents in this aquifer is mineral weathering which to some extent includes gypsum and halite for the contributing Cl and SO42− in the aquafer. Therefore, elevated HCO3 loading implies those processes. Therefore, factor 1 validates the impact of geogenic processes. Factor 2 accounts for 17.9% of total variance and has a high positive loading of K+ and NO3. This factor illustrates the anthropogenic NO3 inflow into this aquifer. There is no correlation between NO3 and Cl, SO42−, or other variables. Consequently, nitrification is the most probable source of NO3 in this aquifer. The application of fertilizers and manures in agricultural practices results in an increased presence of NO3 in groundwater due to infiltration in the vadose zone. Factor 3, which accounts for 9.0% of the total variance, exhibits positive loadings only for Fe and Mn. This indicates that the lack of correlation between Fe and Mn and other water characteristics suggests that their presence may be due to the weathering of local geological formations rich in these minerals, such as Laterite and Archaeans.

Table 2 Results of total variance in PCA.
Table 3 Loading of Component matrix in PCA.

Hierarchical cluster analysis (HCA)

The results of HCA presented in the form of polar heat-map (Fig. 8C) with vertical dendrogram (Q-mode) represent the cluster of water parameters and horizontal dendrogram (R- mode) represent the cluster of sample location. There are four groups shown in Q-mode. Group 1 is associated with the elements EC, TH, Na+, Mg2+, Cl, HCO3, and SO42−, which suggests that silicate and carbonate weathering, as well as gypsum and halite, are present to a certain extent. Group 2 consists of two variables, including NO3 and K+, and these variables indicate anthropogenic origins. Only pH exists in Group 3, and it is not affected by weathering or anthropogenic factors. Group 4 includes metals like Fe and Mn, which may indicate a potential independent origin such as the weathering of Laterite and Archaeans. Furthermore, in R-mode, there are three clusters with 75% samples (n = 43) fall under cluster 1, which is less mineralized, and the EC values with an average of 160 μS/cm which suggest that groundwater is located nearby the aquifer recharge area. Cluster 2 accommodates 17% (n = 10) samples with an average of 470 μS/cm. This cluster indicates that waters that were recharged relatively long ago and have flown a certain distance within the aquifer are moderately mineralized. The locations included in this cluster are mainly from Malappuram district and some parts of Idukki district. Only 4 samples (3 from Palakkad district and 1 from Malappuram district) are grouped in cluster 3. Groundwater in these wells is highly mineralized and EC, with an average value of 900, indicating high mineralization.

Conclusion

The study in the Western Ghats of the Kerala region utilized a multifaceted approach to unravel the complexities of groundwater chemistry. Results indicate groundwater has a pH range of neutral to alkaline with a acidic in certain samples, with EC and TDS below 1000 μS/cm and 700 mg/l, respectively, for all samples, and it is classified as soft to very hard. This area has high Fe and Mn enrichments. The samples with 33 and 28% exceed the Fe and Mn BIS drinking limits, respectively. WQI analysis revealed that a majority of the groundwater samples (68%) were classified as being within the excellent to good category for drinking purposes. Conversely, only 7% of the samples were deemed unfit for consumption owing to pollution from nitrates.

The predominant hydrochemical facies are CaHCO3, followed by CaMgCl facies. Gibbs plots demonstrate that mineral weathering influences water chemistry. Alkaline earth metals exceed alkali metals in 72% of samples. About 47.4% are CaMgHCO3 type, indicating direct recharge, while 26.3% are CaMgClSO4 type, affected by evaporation and gypsum. The presence of both types in the groundwater indicates temporary and permanent hardness. Silicate weathering is the primary source of elements in this aquifer, as shown by various molar ratios and plots. Water chemistry is mainly influenced by cation exchange and reverse ion processes. The dissolution of carbonate minerals (calcite, aragonite, dolomite, siderite, and rhodochrosite) and their supersaturation with hematite, goethite, and ferrihydrite influence groundwater chemistry. High Fe (II) and Mn (II) levels raise the SI of siderite and rhodochrosite. These metals are limited by adsorption or co-precipitation with CaCO3.

Pearson correlation analysis shows EC and TH are highly associated with all variables except NO3, K+, and pH. A strong correlation between NO3 and K+ suggests anthropogenic origins. The positive correlation between HCO3 and Cl+ indicates that wastewater recharge influences mineral weathering and increases its concentrations. The HCA analysis in R mode showed four groups, with Cluster 1 (EC, TH, Na+, Mg2+, Cl, HCO3, and SO42−) showing the impact of silicate and carbonate weathering. Cluster 2 (NO3 and K+) indicates the influence of anthropogenic factors. Cluster 3 (pH only) is not affected by weathering or anthropogenic factors. Cluster 4 includes Fe and Mn, suggesting a separate origin for these variables. Q-mode HCA yielded 3 clusters, with Cluster 1 (75% of wells) having less mineralized groundwater, Cluster 2 indicating wells having more mineralized groundwater than Cluster 1 wells, and cluster 3 showing high mineralization with an EC of 900 μS/cm, average. In the same way, PCA results show that Factor 1 makes up half of all samples and shows mineral weathering. Factors 2 (17.9%) and 3 (9.0%), on the other hand, show human/agricultural impact and different sources for Fe and Mn. Overall, the study highlights the complex interplay of natural processes and human factors shaping water quality in the region, emphasizing the need for comprehensive management strategies to safeguard groundwater quality in this ecologically sensitive region.