Introduction

Water is a vital natural resource with significant social and economic importance. The increasing scarcity of water poses a substantial threat to human survival. Both surface water and groundwater serve as primary sources of drinking water globally (Chidiac et al. 2023; Tokatli et al. 2022). Groundwater, in particular, plays a crucial role as a freshwater source, fulfilling diverse human needs in various regions worldwide (Adimalla et al. 2022). Approximately 43% of the world's water for agricultural purposes is sourced from groundwater. Moreover, groundwater serves as a substantial source of water for domestic activities in numerous regions (Wang et al. 2024; Krishnamoorthy et al. 2023).

Industrialization, agricultural activities, urbanization, and other human activities have led to significant increases in pollution levels of raw water, including groundwater, especially in developing countries (Varol and Tokatlı 2022; Wang et al. 2023). Therefore, the assessment of groundwater quality stands as a critical aspect of environmental science, crucial for comprehending the ecological health and long-term sustainability of underground aquifers (World Water Quality Alliance 2021; Ustaoğlu et al. 2021).

Certain metals are indispensable for life forms, categorized as micronutrients (e.g., Se, Cu, Zn, Cr, Mn, Mo, Fe, and Co) and macronutrients (e.g., Mg, Ca, P, S, and Na). Yet, elevated concentrations of these metals can exert toxic effects on various organisms, including humans, disrupting vital processes such as reproduction, biotransformation, and growth (Rashid et al. 2023; Yüksel et al. 2021). However, lead, cadmium, mercury, and antimony are among the toxic metals frequently employed in industrial activities, and pose a significant environmental health risk (Topaldemir et al. 2023). Sources of contamination can be both geological and human-induced. Potentially toxic metals and chemical ions, along with other organic and inorganic contaminants, are linked to pollution in drinking water sources (Ullah et al. 2023).

The presence of PTEs in groundwater poses significant environmental and public health risks due to potential contamination. Natural constituents of the Earth's crust, such as lead, arsenic, cadmium, and chromium, are among these elements (Nafi and Taseidifar 2022). However, anthropogenic activities such as industrial effluents, agricultural runoff, and improper waste disposal can cause these elements to leach into groundwater. Even at low concentrations, exposure to these metals can result in chronic diseases, developmental complications, and other health issues (Siddiqua et al. 2022). Their ability to persist in the environment can prolong exposure, compounding associated risks (Manisalidis et al. 2020).

Assessing metal concentrations in groundwater is crucial for ensuring the safety of drinking water supplies and evaluating water quality (Alrowais et al. 2023; Rezaei et al. 2019). Metal analysis provides essential data for regulatory compliance, hazard assessment, and effective water management strategies. Understanding and monitoring the distribution and concentrations of potentially hazardous metals in groundwater are fundamental to informed decision-making processes aimed at preventing environmental pollution and safeguarding public health (Laonamsai et al. 2023).

Water quality assessment utilizing trace elements is essential for environmental research and public health. Low levels of trace elements affect water quality, aquatic ecosystems, and human health (Tekin-Özan et al. 2024). Toxic metals should be monitored due to their toxicity and environmental persistence. At high concentrations, these elements, can affect aquatic organisms, ecosystems, and humans through the food chain (Mitra et al. 2022). Trace elements reveal pollution sources and pathways. Comprehensive water quality researches promote pollution prevention and water resource management. Water trace element assessment protects ecosystems, humans, and the environment from waterborne pollutants (Turdi and Yang 2016). Computational toxicology and water quality assessment represent innovative approaches to understanding and protecting the environment and human health (Tokatlı et al. 2023; Arcega et al. 2023). Furthermore, the quality of irrigation water varies between different countries, nations, and locations due to factors such as the method of groundwater collection and use, the intensity of rainfall, and the subsequent recharge of aquifers. In arid regions with little rainfall, the use of groundwater for agriculture causes groundwater salinity to increase, thus limiting the variety of products that can be grown. Historically, the main problems with irrigation water quality have been soil salinization and reduced agricultural productivity. In recent years, the amount of data suggesting the presence of geogenic contaminants in waters has increased. The quality of the irrigation water has a significant impact on the production of greenhouse crops. Therefore, it is imperative to evaluate the caliber of irrigation water. Assessment of irrigation water quality can be done using various factors (Aloui et al. 2023; Malakar et al. 2019; Zaman et al. 2018).

Both multivariate and bivariate statistical analyzes are useful tools in interpreting the sources of elements in water bodies. Principal Component Analysis (PCA), Hierarchical Cluster Analysis (HCA), Pearson Correlation Coefficient (PCC), and Positive Matrix Factorization (PMF) are statistical techniques that can provide complementary assistance in distinguishing patterns, relationships, and sources of variability in the data (Din et al. 2023).

Türkiye's Black Sea coast, known for its abundant biological variety and important strategic value, faces increasing challenges in protecting the quality of groundwater resources. Considering the increasing urbanization, industry, and especially hazelnut farming activities in the region, a comprehensive assessment of the effects of human activities on groundwater quality is of great importance. Furthermore, groundwater is a critical resource, often perceived locally as superior in taste and health benefits compared to other sources. However, public authorities in coastal regions have limited systematic analysis of groundwater quality. This study addresses this gap by analyzing groundwater samples along a 90-km coastal stretch, focusing on 12 key sampling points used for drinking and irrigation. Therefore, this study attempts to achieve several objectives: i) measurement of potentially toxic element (PTE) levels in groundwater samples; ii) use of multivariate and bivariate statistical tools to categorize the natural and anthropogenic resources and factors affecting groundwater quality; iii) assessing the quality of groundwater samples designated for drinking purposes using indices such as heavy metal evaluation index (HEI), heavy metal pollution index (HPI), and water quality index (WQI); iv) evaluation of irrigation water quality through sodium adsorption ratio (SAR), magnesium hazard (MH), Kelly's ratio (KR), and Na%; and v) assessment of health risks using the hazard quotient (HQ), hazard index (HI), and carcinogenic risk (CR) indices.

Materials and methods

The flowchart in Fig. 1 provides a brief overview of the sample collection process, the specific PTEs examined, the analytical method used, and the many indicators used to assess statistical, ecological, water quality, and health risks.

Fig. 1
figure 1

Flowchart of the study plan

Sampling region of the research

Ground water sampling was carried out from twelve stations in the coastal areas of Giresun province, overlooking the Southern Black Sea, consisting of high-sloping valleys divided by streams. Settlement was concentrated in small plains where rivers reach the sea, and provincial and district centers were established at these points. The mountain ranges running parallel to the coast in the south of the province have made passage to Central Anatolia difficult and squeezed the human settlements in the province into the narrow coastline. The amount of precipitation in the Giresun Coastal Region varies between 1300 and 1760 mm. The precipitation, which is notably elevated along the coast, diminishes progressively inland. Giresun coastal region is the second region with the highest rainfall in Turkey after Rize. Temperature fluctuations in this region range from + 9.8 °C to + 37.3 °C. The northern part, characterized by abundant precipitation, has diverse vegetation. In this region, there are hazelnut and other fruit trees up to an elevation of 600 m, as well as deciduous trees such as alder, maple, beech, hornbeam, oak, fir, linden, and chestnut. Sampling was conducted in November 2023 during the rainy season when surface runoff is abundant, resulting in significant water infiltration into the subsurface. Hence, twelve strategically chosen points along the 90-km coastal stretch of Giresun province, famous for its hazelnut farming industry in Türkiye, are positioned in the region's most frequented and densely populated areas along the coastline. These locations are crucial for evaluating the effects of human activities on groundwater quality and comprehending related health risks (Fig. 2).

Fig. 2
figure 2

Map of study region

Chemicals and standard solutions

Calibration plots were calculated using multi-element stock solutions obtained from VHG LABS (Manchester, NH, USA). The concentration of each element is equal to 10 mg/L. Quantification stability of the instrument was regulated by obtaining an internal standard multi-element stock solution for each element from Agilent®, USA. 65% v/v nitric acid solution (HNO3, Merck, Darmstadt, Germany) was provided to produce sample solutions and calibration standards. The validity of the test was evaluated using UME CRM 1201 Spring Water, a certified reference material (CRM) obtained from Tubitak, Türkiye. A locally based Turkish supplier then supplied argon gas with 99.999% analytical purity.

Water sample pretreatment

Following filtering of the samples using an Acrodisc® Minispike PTFE membrane with a pore size of 0.45 µm (Merck, Germany), 10 mL of the samples was mixed with an equal amount of 8% (v/v) nitric acid. Calibration standards were established by diluting a multi-element calibration stock solution obtained from VHG Labs in Manchester, NH, USA, using the appropriate amount of 4% (v/v) nitric acid. Calibration standards were prepared with concentrations of 1.0, 5.0, 10.0, 25.0, 50.0, and 100.0 µg/L. Before analysis, glassware (Analitik Kimya, Istanbul, Türkiye) was immersed in 10.0% (v/v) nitric acid solution for 24 h to reduce the possibility of cross-contamination (Yüksel and Arica 2018).

ICP-MS instrument parameters: setting and validation

An inductively coupled plasma-mass spectrometer (ICP-MS, Agilent 7700X, Agilent Corporation, USA) was used to quantify certain metals (Na, Mg, K, Ca, Al, Cr, Ni, Mn, Fe, Cu, Zn, V, As, Cd, and Pb) in groundwater samples. Direct-Q8 system (Merck-Millipore, Germany) was used to produce ultrapure water with a resistivity of 18 MΩ cm specifically for sample processing. The device was configured with the operating parameters listed below. Water samples were injected over a period of sixty seconds at a rotational rate of 0.3 revolutions per second using a Meinhard® nebulizer and a cold spray chamber. Within the specified time period, the autosampler was quickly placed in the sampling stand without the use of a flow injection valve. The forward and reflected powers of the argon gas plasma were measured as 1300 W and 7.0 W, respectively, as per the specified parameters. Additionally, the discharge rates of auxiliary, plasma, and nebulizer gases were changed to 1.0 L/min, 16.0 L/min, and 1.0 L/min, respectively. Following this, the device began to be used in peak bounce mode using nickel interface cones. Similarly, during intervals between infusions, the autosampler pump was subjected to a three-step sanitization procedure: flushed with ultrapure water for 30 s, flushed with 2% (v/v) nitric acid for 50 s, and then flushed again with ultrapure water for an additional 50 s.

It is known that determining trace element concentrations in natural water samples is difficult due to the presence of matrix elements such as Mg, Na, Cl, K and Ca in water. (Yüksel et al. 2021). Consequently, a 10 mL volume of 8% (vol/vol) nitric acid was added to the water samples to reduce the potential impact of additional substances that may be present in the samples. As a result, the use of 205Tl at the high end, 89Y in the middle range, and 7Li with a low mass facilitated the production of the most robust signal for multi-element quantification, particularly at very low concentrations. In accordance with the ISO/IEC 17025 standard, 11 measurements of UME CRM 1201 Spring Water (Tubitak, Türkiye) were taken into account to validate the ICP-MS test in terms of precision, accuracy, bias, recovery, matrix effect, and limit of detection. The methodology used to determine precision was coefficient of variation, as described in previous studies (Öncü et al. 2024; Bozalan et al. 2019; Arica et al. 2018), while relative error was used to convey accuracy. The results of the validation study, as shown in Table S1, confirm that the methodology is accurate and precise.

Analysis of indicators for water quality

Water quality assessment was carried out based on heavy metal pollution index (HPI), water quality index (WQI), and heavy metal evaluation index (HEI). Similarly, the irrigation water quality of the study samples was evaluated using sodium adsorption ratio (SAR), sodium percentage (%Na), Kelley's ratio (KR), and magnesium hazard (MH) measures.

Heavy metal pollution index (HPI)

Application of the Heavy Metal Pollution Index (HPI) is a key methodology for assessing the collective impact of multiple heavy metal indicators on water quality as a whole. As a result, the HPI metric is employed by scientists to provide a comprehensive assessment of the overall water quality impact from heavy metal pollution. (Hemachandra and Sewwandi 2023; Ahmed et al. 2023; Tokatli and Ustaoğlu 2020). HPI calculation performed in accordance with the formulas (13) outlined by Mohan et al. (1996).

$$HPI=\frac{\sum_{i=1}^{n}\left({Q}_{i}{W}_{i}\right)}{\sum_{i=1}^{n}{W}_{i}}$$
(1)
$${Q}_{i}=\frac{{C}_{i}}{{S}_{i}}\times 100$$
(2)
$${W}_{i}=\frac{k}{{S}_{i}}$$
(3)

The variable "Wi" represents the unit weight of metals, "Qi" represents the sub-index of each metal, "Ci" represents the detected concentration value of metals, WHO (2011) approved standard values for Si parameters in drinking water, and "k" represents a constant value of 1. When the HPI drops below 45, the pollution level is considered low. Similarly, a Health Pollution Index (HPI) score between 45 to 90 indicates a moderate level of pollution, as mentioned in previous articles (Agwu et al. 2023; Rahman et al. 2022).

Water quality index (WQI)

WQI is a very effective classification method because it takes into account the combined effect of multiple water quality parameters on overall water quality (Lukhabi et al. 2023). WQI is a quantitative measure that documents the suitability of water for various purposes, such as domestic, agricultural, industrial, and others (Nihalani and Meeruty 2021). It therefore provides a comprehensive and accurate assessment of the quality of water. Water quality control researchers have actively utilized the WQI since its establishment in the United States by Horton (1965). With respect to the Water Quality Index (WQI), water quality is divided into five different groups: WQI values equal to or greater than 300 indicate that the water is undrinkable; WQI values between 200 and 300 indicate very bad water quality; WQI values between 100 and 200 indicate poor water quality; WQI values between 50 and 100 indicate fair water quality; and WQI values below 50 indicate outstanding water quality (Xiao et al. 2019).

Considering that groundwater is the main source of drinking water in many developing countries globally, ensuring the quality of groundwater is vital for the sustainable and long-term use of this resource for various purposes, including drinking and irrigation (Krishnamoorthy et al. 2023). Water Quality Index (WQI) is a pragmatic and applicable approach to assess the overall quality of surface and groundwater as well as its suitability for human consumption (Ustaoğlu et al. 2021). Consequently, it has been widely used in water quality assessment research during the last decade (Wang et al. 2017; Varol and Tokatli 2021; Şener et al. 2023). Water Quality Index (WQI) was calculated using the formula (4):

$$WQI=\sum \left[{W}_{i}\times \left(\frac{{C}_{i}}{{S}_{i}}\right) \times 100\right]$$
(4)

Relative weight (Wi) is calculated by dividing the weight (wi) by the sum of all weights (Σwi), as shown in Table 1. As determined in a previous article (Ustaoğlu and Aydin 2020), the Wi value varies between 1 and 5 and reflects the relative importance of factors to human health and water quality. Ci represents the concentrations of variables included in the calculation, while Si represents standard values for drinking water according to WHO (2011) guidelines.

Table 1 Relative weight of each water quality parameters

Heavy metal evaluation index (HEI)

Evaluation of water pollution caused by heavy metals was carried out using the HEI index (Varol and Tokatli 2023; Edet and Offiong 2002). This facilitates a comprehensive understanding of the extent of water pollution. As a result, HEI was calculated using the formula given below.

$$HEI=\sum_{i=1}^{n}\frac{{H}_{C}}{{H}_{MAC}}$$
(5)

The equation assigns the symbol Hc to indicate the value found for each component, whereas Hmac represents the maximum acceptable concentration (MAC) for all variables according to the World Health Organization (WHO 2011). Within the MAC framework, increased metal concentrations are responsible for the decline in water quality (El-Degwy et al. 2023). Typically, it is recommended not to consume water that exceeds the MAC value for a given metal, indicated by an HEI greater than 10. When metal concentrations are below or above MAC limits, water quality is compromised with additional consequences. As a result, HEI is divided into three specific categories: significant contamination is indicated by a value greater than 20 HEI, moderate contamination is believed to be between 10 to 20 HEI, and minimal contamination is indicated by a value less than 10 HEI (Saleh et al. 2019).

Comprehensive analysis of irrigation water quality

The quality of irrigation water directly affects the protection of the environment, the abundance and diversity of agricultural crops, and the general health of the soil. Therefore, this research evaluated the irrigation water quality in the coastal groundwater of Giresun Province by determining the parameters KR, SAR, %Na, and MH using the formulas (69) as provided in a previous article (Ravikumar et al. 2013).

$$KR=\frac{{Na}_{meq}^{+}}{{Ca}_{meq}^{2+}+{Mg}_{meq}^{2+}}$$
(6)
$$SAR=\frac{{[Na}_{meq}^{+}]}{\sqrt{\frac{{[Ca}_{meq}^{2+}]+{[Mg}_{meq}^{2+}]}{2}}}$$
(7)
$$Na \%=\frac{\left({Na}_{meq}^{+}+{K}_{meq}^{+}\right)\times 100}{{Na}_{meq}^{+}+{Ca}_{meq}^{2+}+{Mg}_{meq}^{2+}+{K}_{meq}^{+}}$$
(8)
$$MH=\left(\frac{{Mg}_{meq}^{2+}}{{Ca}_{meq}^{2+}+{Mg}_{meq}^{2+}}\right)\times 100$$
(9)

Health risk overview

Heavy metals enter the human body through the epidermis through contact with freshwater and digestion. The potential health consequences of ingestion and cutaneous exposure, including both non-carcinogenic and carcinogenic consequences, can be evaluated using experimental models. The current study used the health risk assessment methodology recommended by USEPA (2004). As stated by Wang et al. (2017), data on toxicological properties of specific metals can be found in Table 2. Formulas 10 and 11 were used to calculate the average daily dose (ADD) by skin absorption (ADD cutaneous) and direct ingestion (ADD ingestion), respectively (Saleem et al 2019; Zeng et al. 2015).

Table 2 Toxicological parameters of the investigated metals used for health risk assessment
$${ADD}_{ingestion }=\frac{{C}_{water}\times IR\times {ABS}_{g }\times EF\times ED}{BW\times AT}$$
(10)
$${ADD}_{dermal }=\frac{{C}_{water}\times SA\times {K}_{p }\times ET\times EF\times ED\times CF}{BW\times AT}$$
(11)

The variables ADDingestion and ADDdermal reflect average daily dosages received via ingestion and dermal route, respectively. Both variables are represented in micrograms per kilogram per day (μg/kg/d). The variable "Cwater" denotes the concentration of heavy metals in freshwater, measured in micrograms per liter (μg/L). "IR" is the rate at which something is ingested, measured in liters per day. In this research, the ingestion rate was determined as 2 in adults and 0.64 in children. The results of study show that adults were exposed to the stimulus for a period of 70 years, while children for a period of 6 years. Additionally, the exposure frequency was appeared to be 365 days per year. Kp represents the cutaneous permeability coefficient in water, measured in centimeters per hour. The research found that daily exposure while bathing and showering was0.58 h. The unit conversion factor, CF, is equal to 1 L per 1,000 cubic centimeters. The mean body weight (in kg) of the participants in this research was 70 for adults and 20 for children. In addition, the average day length for newborns was 2,190 and for adults was 25,550. The exposed skin area (cm2) is represented as SA, with a value of 6,600 for infants and 18,000 for adults. The gastrointestinal tract has been shown to contain ABSg, an absorption factor that has no dimensions (Xiao et al. 2019). The hazard quotient (HQ) and hazard index (HI) were calculated using Eqs. 12 and 13 to quantify the possible non-carcinogenic impacts of heavy metals absorbed or penetrated into the epidermis.

$$HQ=\frac{{ADD}_{ingestion}/{ADD}_{dermal}}{{RfD}_{ingestion}/{RfD}_{dermal}}$$
(12)
$$HI=\sum_{i=1}^{n}({ADD}_{ingestion}+ {ADD}_{dermal})$$
(13)

A Hazard Quotient (HQ) of less than 1 means that the likelihood of experiencing adverse health consequences is low. However, if the Hazard Index (HI) is greater than 1, this indicates that exposure to heavy metals may have non-carcinogenic effects. Carcinogenic Risk (CR) measures an individual's lifetime risk of developing cancer (LCR) as a result of exposure to substances likely to cause cancer. This risk is determined using the formula (14):

$$CR=ADD\times CSF$$
(14)

CSF is often known as the cancer slope factor. Consequently, the calculation of cancer risk in this study was determined by the level of arsenic present. Finally, the magnitudes of CSF are 0.0015 and 0.00366 μg/kg/day for ingestion and dermal penetration, respectively (Gao et al. 2019).

Multivariate/bivariate statistics

Quantification of elements in water samples was evaluated through the application of various statistical methodologies. Potential source of metals was determined using PCC and EPA PMF analyses. HCA was then used to investigate the correlation between metals. PCA was ultimately integrated with EPA PMF to reduce data sets and identify new components. Statistical analysis was performed using SPSS® Version 22.0 and Origin Pro® 2022. In addition, the ArcGIS 10.2 program was applied to create a map showing the distribution of PTEs across the sampling stations (Cüce et al. 2022).

Results and discussion

Evaluation of PTE Levels in groundwater

Various approaches can be used to determine the metal contents of water samples. ICP-MS continues to be widely used due to its ability to perform multi-element analysis (Yüksel and Arica 2018). A significant portion of environmental research fails to provide sufficient transparency about the accuracy of its methods. The accuracy and precision of the ICP-MS method was validated before determining metal concentrations in groundwater samples, thus increasing the importance of this research. Certified reference materials were used to validate the technique of this research. The ranges of bias, coefficient variation, relative error, and recovery were as follows: bias ranged from 0.94 to 1.02, coefficient variation ranged from 1.35% to 7.50%, relative error ranged from 0.19% to 6.15%, and recovery ranged from 93.80% to 102.10% (Table S1).

Based on the mean value of twelve stations, macronutrient concentrations in groundwater samples were expressed in mg/L in decreasing order as Ca (10.53 ± 6.63) > Na (6.81 ± 3.47) > Mg (3.39 ± 2.27) > K (2.05 ± 1.10). Similarly, PTE levels were provided in ug/L in decreasing order as Al (40.02 ± 15.45) > Fe (17.65 ± 14.35) > Zn (5.63 ± 2.59) > V (4.74 ± 5.85) > Cu (1.57 ± 0.81) > Mn (1.02 ± 0.76) > As (0.93 ± 0.73) > Cr (0.75 ± 0.57) > Ni (0.41 ± 0.18) > Pb (0.36 ± 0.23) > Cd (0.10 ± 0.05). An in-depth investigation of metal levels in groundwater was carried out, as shown in Table 3, and it is noteworthy that all analyzed metal concentrations were found below the established regulatory limits. This observation has important implications for overall water quality and its potential use for domestic, agricultural, and industrial purposes. According to Turkish Standards (TS 2662005), World Health Organization (WHO 2011), and European Union Council Guidelines (EC 1998), the levels of metals examined in groundwater samples taken from coastal regions of Giresun Province are within safe limits for consumption.

Table 3 Mean PTE contents quantified in comparison to WHO, EU, US EPA, and TSE drinking water standards

In addition, spatial distribution of elements (Na, Mg, K, Ca, Al, Cr, Ni, Mn, Fe, Cu, Zn, Pb, As and Cd) was performed using geographic information system (GIS) mapping (Fig. 3). Previously, several studies have examined the spatial distribution and associated hazards with heavy metal contaminants in groundwater (Long et al. 2021), providing complementary aid in the health risk assessment of arsenic and other PTEs. Therefore, the application of spatial interpolation in GIS technology has proven to be effective in assessing and predicting of groundwater contamination (Adimalla and Qian 2023).

Fig.3
figure 3

Spatial distribution of PTEs using GIS

The absence of metal concentrations exceeding regulatory thresholds is consistent with established water quality standards and confirmed the suitability of underground water for consumption and other essential uses. Such findings are particularly reassuring for communities that rely on these underground sources for their drinking water needs (Abanyie et al. 2023; Varol and Tokatli 2023). Furthermore, the results of this study contribute valuable information to local authorities, water resource managers, and policymakers tasked with ensuring the safety and sustainability of water supplies. The absence of high metal levels means there is a reduced risk of adverse health effects associated with metal exposure through water consumption. This supports the idea that the studied groundwater resource can be considered a reliable and safe reservoir that improves the welfare of society. While the current study provides an optimistic assessment of the groundwater quality, continuous monitoring and periodic assessments are recommended to track possible changes over time. It also underlines the importance of considering local geological and environmental factors that may affect water quality.

Evaluation of irrigation water quality

Assessing the quality of irrigation water obtained from groundwater is vital for the long-term sustainability of agriculture; because groundwater serves as a common and essential source of water for irrigation. The quality of groundwater has a significant impact on crop productivity, soil condition, and the overall effectiveness of agricultural activities (Mukherjee et al. 2022). For this reason, an analysis was made using the MH, SAR, %Na, and KR indicators to evaluate the irrigation water quality in the coastal areas of Giresun Province, (Table S2). In addition, Fig. 4A, B, C, and D show graphical representations of SAR, Na%, MH, and KR across stations. KR is acceptable for all stations except station 5. Similarly, only station 5 marginally exceeded the permissible Na% values. Although no MH levels were detected at the sampling stations, all stations demonstrated outstanding SAR performance. As a result of evaluating the suitability of groundwater samples for agricultural irrigation using parameters such as KR, Na%, SAR, and MH, it was determined that a significant amount of the water met the quality requirements.

Fig. 4
figure 4

Graphical Demonstration of (A) Sodium Absorption Ratio (B) Sodium Percentage (C) Magnesium Hazard (D) Kelly’s Ratio

An assessment of groundwater quality for irrigation water supply in an agro-economic region of the Lower Ganga Basin (India) reveals that almost the entire region is unsuitable for groundwater irrigation based on results from irrigation water quality indices (Mukherjee et al. 2022). On the contrary, a recent study conducted in the Gokpinar Basin of Denizli Province, Türkiye, identified several characteristics of spring water samples—SAR and Na%—that make them highly suitable for irrigation purposes (Taşdelen 2021). Unlike the Lower Ganga Basin in India (Mukherjee et al. 2022), our results presented high quality of irrigation water, consistent with the Gokpınar Basin in Denizli, Türkiye (Taşdelen 2021).

Assessing water quality

Water quality index (WQI)

The WQI calculation in this study is based on thirteen water quality parameters (Ca, Na, Mg, K, Fe, Zn, Cu, Mn, As, Cr, Ni, Pb, and Cd) presented in Table S2. The mean WQI value was found to be 5.78 ± 4.45, which indicates excellent water quality as it is < 50. Figure 5(A) shows the graphical representation of the WQI over the sampling stations. Comparing the quality of groundwater across different locations allows for an examination of global management approaches, common assessments, and challenges in achieving sustainable management. Utilizing the WQI to evaluate environmental health indicators in various areas is essential for formulating groundwater sustainability plans across diverse geopolitical contexts (Karadeniz et al. 2024). Moreover, WQI values of spring water samples in Iraq were found to be between 17.10 and 20.45 in the monsoon season and 10.76 to 18.13 in the desert season (Ameen 2019). Water quality index values in western Nepal ranged from substandard to outstanding in all areas evaluated (Gurung et al. 2019). Study findings assessing the quality of spring water in the Anantnag region of the Kashmir Himalayas showed that the water quality index (WQI) of the samples ranged from satisfactory to outstanding (Bhat et al. 2022). Groundwater quality in Burdur, Turkey was evaluated using the Water Quality Index (WQI), and WQI findings varied between 17,440 and 110,755 in the dry season and between 17,266 and 84,110 in the rainy season (Varol and Davraz 2015). In comparison, our WQI results (5.78 ± 4.45 < 50) were relatively lower than other reports mentioned above which shows that the groundwater samples were evaluated as excellent water quality.

Fig. 5
figure 5

The graphical illustration of WQI, HPI and HEI for groundwater samples over the stations

Assessing HPI and HEI

HPI and HEI indices are widely used in groundwater quality assessment because they systematically evaluate the quality of groundwater by taking into account the amounts of various heavy metals (Chorol and Gupta 2023). HPI requires collecting water samples from various locations and then analyzing the heavy metal content in these samples. The results obtained are then compared to well-defined groundwater quality standards (Sirajudeen and Pravinkumar 2021). Pollution levels in groundwater are assessed by calculating the average HEI, which is determined by assigning unique pollution indices to each heavy metal based on their concentration. HEI complements HPI by taking into account additional features, such as bioavailability and toxicity of heavy metals. This provides more comprehensive information about the potential threats to both the environment and human health that may arise from groundwater pollution (Rajkumar et al. 2020). Both indices assist environmental scientists and policymakers in informed decision-making, facilitating the formulation of effective solutions to manage and mitigate the effects of heavy metal pollution in groundwater (Chaturvedi et al. 2018). This approach not only provides an accurate assessment of current pollution levels, but also aids ongoing surveillance efforts to monitor changes over time and ensure the resilience of groundwater resources.

In this study, HPI and HEI assessed the combined effect of elements (Fe, Zn, Cu, Mn, As, Cr, Ni, Pb, and Cd) in groundwater samples. The HPI and HEI were calculated using internationally accepted standard values from the World Health Organization (WHO 2011). Therefore, the mean HEI values were 0.44 ± 0.42. Considering that the average HEI is less than 10, the result only highlights low contamination. Similarly, the average HPI values of the sampling sites were 3.86 ± 2.81, indicating that all the stations exhibited minimal levels of pollution. Figure 5(B) and (C) show graphical depictions of the HEI and HPI at stations, respectively.

In previous studies evaluating water quality in Giresun Province and its surrounding, HPI values for nearby rivers varied between 59.68 in Gelevera Stream, 69.43 in Yağlıdere Stream (Ustaoğlu and Aydın 2020), and ranged from 5.66 to 38.71 in Çavuşlu Stream (Yüksel et al. 2021). In addition, the HEI value was recorded as 1.94 in Yağlıdere Stream and 2.76 in Aksu Stream (Ustaoğlu and Aydın 2020). Furthermore, Çavuşlu Stream has documented HEI values of 0.76 and 19.91 (Yüksel et al. 2021). Groundwater samples from the remote city Ayfonkarahisar/Turkey had low HPI and HEI values and were classified as having generally poor water quality (Şener 2023). In short, groundwater quality can vary depending on complex parameters such as geology, climate and agricultural fertilizer use.

Risk assessment for human health

The human health risk assessment of potentially toxic metals in groundwater requires a systematic investigation of the potential hazards, routes of exposure, and the associated health effects resulting from the presence of such metals in groundwater (Shi et al. 2022). First, the presence of PTEs (i.e., lead, arsenic, cadmium, mercury, and chromium) is determined, and then exposure routes such as drinking water, skin contact, and smoke inhalation are identified (Yüksel et al. 2023). To determine exposure levels, metal concentrations in water samples should be measured and these should then be compared to appropriate reference doses. Toxicological data for each metal, including bioavailability and cumulative effect, are examined to understand its effects on health. People at risk, such as children and pregnant women, are identified. The final step is to analyze the total risk, considering uncertainties, and communicating the results to stakeholders. Monitoring and risk management systems protect human health from toxic metal groundwater pollution (Myers et al. 2023; Radfard et al. 2023; OECD 2018; Adesiyan et al. 2018).

The presence of dissolved heavy metals in drinking water poses a threat to human health due to its association with many non-cancerous and malignant diseases. This research study investigated the non-carcinogenic and carcinogenic health hazards associated with heavy metals in both children and adults. In other words, we conducted an evaluation of the possible health consequences due to metal uptake and interaction with metals in the coastal groundwater of Giresun province, taking into account both adults and children (Table S3). Therefore, toxicological values (Wang et al. 2017; USEPA 2004) were used to determine the total hazard index (ingestion, cutaneous) and CR values for each metal. The total hazard index (THI) was calculated for non-carcinogenic health risks, and the mean THI for adult and children was 0.07 and 0.08, respectively. As seen in Fig. 6(A), since THI values are below 1, there is no non-carcinogenic risk in the stations.

Fig.6
figure 6

Graphical demonstration of health risk assessment study (A) Hazard Index, and (B) Carcinogenic Risk

The standard definition of cancer risk (CR) refers to the probability that a person will develop any type of cancer during their lifetime as a result of exposure to carcinogens (Ashraf et al. 2021; Mohammadi et al. 2019). Cancer risk (CR) for adults exposed to arsenic alone was calculated in this study using the cancer slope factor (CSF) listed in Table 2. As illustrated in Fig. 6(B), taking into consideration that arsenic is absorbed via the dermal and ingestion routes of administration, the CR value for adult subjects (Station #10) was calculated to be 1.44E-04, exceeding the USEPA's (2004) allowable range (1.00E-06 < CR < 1.00E-04). Although none of the stations exceeded the 10 µg/L permissible threshold for arsenic in drinking water, station 10 exhibited a minor carcinogenic health hazard based on the calculated CR. This result shows that hazardous metals (e.g., arsenic) are still risky even if their concentrations fall below the highest permissible levels. In other words, exposure to arsenic levels that comply with existing regulatory standards may result in debilitating conditions, such as cancer. Assessing and controlling groundwater quality is crucial in order to reduce health hazards and guarantee the long-term welfare of populations and ecosystems in the area. Overall, the result of current study shows that most of our groundwater samples are suitable for domestic use without posing any danger to human health.

The presence of inorganic arsenic in contaminated groundwater poses a significant risk to human health, especially in terms of arsenic toxicity. Groundwater pollution can occur when inorganic arsenic, a naturally-occurring element, leaches into water sources from geological formations (Yüksel et al. 2010). Long-term exposure to high amounts of inorganic arsenic has been associated with a number of adverse health consequences, including skin lesions, respiratory problems, cardiovascular disorders, and increased susceptibility to certain types of cancer, including lung and bladder cancer (Yüksel et al. 2018). The World Health Organization (WHO) has established a threshold for arsenic in drinking water, which is the highest allowable level to minimize potential health hazards. Addressing the problem of arsenic pollution in groundwater requires the use of comprehensive approaches that include consistent monitoring, adoption of water purification technology, and community education to reduce exposure and protect public health (Ramsay et al. 2021; Yüksel et al. 2015).

The current evaluation is consistent with previous scientific studies conducted in the surrounding area (Ustaoğlu et al. 2020a). In an independent study conducted in Çavuşlu Stream, Giresun Province, one of the four stations with a high lifetime cancer risk was identified. The reason for this result was the station's proximity to the waste disposal facility, which is assumed to be the source of toxic metals pollution (Yüksel et al. 2021). In contrast, most previous studies conducted near our study location did not find any evidence of long-term cancer risk based on ecotoxicological risk assessment (Ustaoğlu et al. 2020b, 2021). Additionally, in another investigation conducted in the Thrace Region of the Meric River in Türkiye, a toxicological scan of a wetland was analyzed. This research likewise found evidence that the presence of hazardous metals dissolved in water poses a long-term risk of cancer (Tokatli and Ustaoğlu 2020). Moreover, a previous study project investigated the consequences of drought on the environmental risks posed by contaminated groundwater in Poland. Researchers reported lifetime cancer risk for 90 out of 117 locations (Kubicz et al. 2021). However, assessing cancer risk alone is insufficient. Therefore, it is of great importance to identify the possible source of the pollution and provide effective solutions that protect human health and the environment.

Evaluation of contamination sources using the statistical assays

Identifying the source of dissolved metals in groundwater is a crucial component of monitoring and managing the environment (Jia et al. 2023). Principal Component Analysis (PCA) and EPA Positive Matrix Factorization (PMF) are advanced statistical methods that are very useful in identifying the sources of these pollutants. PCA facilitates reducing the complexity of data sets by transforming variables into uncorrelated principal components, thereby facilitating analysis of causes and patterns of variability in water quality (Yüksel et al. 2024; Anaman et al. 2022).

The origin of PTEs in the groundwater samples was determined by using various multivariate/bivariate data analysis techniques such as PCA, EPA PMF, HCA, and PCC. The KMO test with a value of 0.72 and Bartlett's test of sphericity with a p-value of less than 0.001 showed that the sample data collected for this study was sufficient to perform PCA. Variables that were not correlated and had a total variance of less than 0.5 were removed to increase reliability (Aydin et al. 2021). PCA found three principal components with eigenvalues greater than 1, which together explained 82.58% of the total variance. The presence of PTEs in groundwater samples can be attributed to three different sources, as shown in the component plots in rotated space (Fig. 7). As can be seen in Table S4, within principal component 1 (PC1), Al, As, and Cu elements had significant positive loading values above 0.6 and contributed 48.23% of the overall variance. On the other hand, PC2 explained 19.06 percent of the total variation in hazardous elements (Cd, Pb, Zn, and Mn) with positive loading values above 0.50. In addition, some metals, such as Ni and Cr, exhibit loading values above 0.8 relative to PC3, contributing 15.18 percent of the total variation (Fig. S1).

Fig. 7
figure 7

The graphical illustration of rotational PCA and scree plot outcomes for in groundwater samples

In contrast, the EPA PMF is a receptor model that allocates measured metal concentrations into separate source profiles, making it easier to identify and quantify pollutant contributions from a variety of possible sources (Hristova et al. 2020). In other words, PMF is used to estimate the contribution of identified sources to all measured pollutants, while PCA is used as an explanatory tool to identify significant pollutant sources (Doumbia et al. 2023). The PMF model takes into account the uncertainties in individual data and the non-negativity of the components (loads and scores), which is a significant difference from PCA. Moreover, PMF ignores the information contained in the correlation matrix and emphasizes a technique that minimizes the sum of squares point by point (Cesari et al. 2016). Consequently, the profiles generated by the PMF model can be compared directly to the input matrix without any modification (Anaman et al. 2022). Conversely, the PCA load matrix has a singular dimension. Therefore, it is critical to include this in a multilinear regression analysis to determine precisely the extent to which the various principal components are responsible for the observed concentrations (Yang et al. 2023). EPA PMF 5.0 identified three major metal groups in this study other than Cd, Cu, and Mn (Fig. 8), which is nearly identical to the PCA results. The EPA PMF included Ni, Cr, and Mn, as well as Cd and Cu (Fig. S2). This minor difference between PCA and EPA PMF can be attributed to the inclusion of non-negative components in the PMF model as well as the consideration of individual data uncertainties (Cesari et al. 2016). Therefore, the integration of PCA with PMF basically predicted that PTEs could come from three distinct sources: geogenic (As, Al, and Fe), anthropogenic (Zn, Cu, and Ni), and mixed (Zn and Pb) in our groundwater samples.

Fig. 8
figure 8

Positive Matrix Factorization of PTEs in groundwater samples

Hierarchical Cluster Analysis (HCA) is a reliable statistical technique used to assess dissolved metal concentration in groundwater. Hierarchical clustering analysis (HCA) is an indispensable technique for identifying hidden patterns and categorizing shared features within a given dataset. Identification of different subgroups or groupings of water samples can be facilitated by comparing metal content profiles (Du et al. 2017; Aneeshkumar and Reddy 2021; Ustaoğlu et al. 2024). HCA can reveal temporal or spatial patterns in the context of dissolved metals in groundwater, allowing sample locations or periods to be clustered with comparable metal compositions. The factors that make up a given cluster exhibit comparable characteristics and are derived from similar sources of contamination. Therefore, to efficiently assess water quality, examining a single site from each cluster is sufficient; this can serve as a representative sample of water quality across the entire cluster (Tokatli 2019). Therefore, HCA was used to further validate PCA. Therefore, the dendrogram produced by hierarchical cluster analysis (HCA) and principal component analysis (PCA) was completely consistent and resulted in the identification of three distinct groups (Fig. 9).

Fig. 9
figure 9

Dendogram for HCA of PTEs in groundwater samples

Utilizing PCC, the strength of the linear relationship between groundwater samples and dissolved metal concentrations can be determined. The statistical measure in question determines the magnitude and orientation of the linear correlation between two variables, metal concentrations in this example (Drasovean and Murariu 2021). A PCC around + 1 indicates a robust positive correlation; This means that an increase in the concentration of one metal is typically accompanied by a corresponding increase in the concentration of another metal. On the contrary, a PCC close to -1 indicates a strong inverse relationship and indicates a negative correlation. A PCC close to zero indicates the absence or weakness of a linear correlation (Kumar and Singh 2023). By using PCC on dissolved metal content data, researchers are able to discern possible interdependencies between metal concentrations. This facilitates the detection of co-occurring patterns and provides valuable information about the underlying mechanisms governing the presence of metals in groundwater. The information provided is of great importance for understanding the intricacies of metal contamination and developing precise approaches to the management of groundwater quality (Hamuna and Wanimbo 2021). As shown in Fig. 10, the following metals exhibit significant correlations: Fe-Al (r = 0.96), Ca-Mg (r = 0.88), Fe-Pb (r = 0.78), Mg-V (r = 0.77), Al–Pb (r = 0.76), and Al-Na (r = -0.71).

Fig. 10
figure 10

Pearson correlation matrix of PTEs in groundwater samples

In conclusion, PCA, EPA PMF, HCA, and PCC exhibited mutual potentiation due to the strong correlations observed between PTEs within the same cluster and principal component. Given the maritime nature and significant agricultural activities of the research location, it is unlikely that any human impacts will be detected. However, a recent study has shown that the main pollutants in groundwater are fertilizers and pesticides, which are often used in agricultural practices to increase crop production (Tudi et al. 2021). Due to the widespread use of hazelnut cultivation in the study area, and the widespread use of phosphate and nitrate fertilizers, it is thought that the PTEs mentioned in other components are probably related to lithogenic and geogenic origins. Consequently, under certain physical conditions, such as the exposure of rocks to heat and pressure or the flow of lava into nearby water bodies, PTEs can accumulate to very high levels in the environment. These conditions include soil layer, volcanic emissions, and evaporation. Thus, groundwater naturally contains several heavy metals (Mahipal and Rajeev 2019).

Conclusion

The rapid expansion of cities and infrastructure, combined with a growing global population, has heightened the strain on accessible potable water resources, exacerbating water scarcity issues. To address these challenges, this study focused on evaluating groundwater quality at 12 strategically selected points along the 90-km coastal stretch of Giresun province, renowned for its hazelnut farming industry in Türkiye. The study stations are situated in the most visited and densely populated areas along the coastline; these locations are pivotal for assessing the impacts of human activities on groundwater quality and understanding associated health risks. The mean level of listed potentially toxic elements (PTEs) in groundwater samples were measured in a decreasing order of Ca > Na > Mg > K > Al > Fe > Zn > V > Cu > Mn > As > Cr > Ni > Pb > Cd. Water quality, source identification, and associated health risk were assessed using a comprehensive strategy. This method involved the use of specific water quality indicators as well as advanced statistical techniques such as multivariate and bivariate analyses. The results of the current study can be listed as follows:

  • WQI analysis revealed that water quality was rated as "excellent". Additionally, HEI < 10 and HPI < 15 the values at all stations showed that pollution was low.

  • The mean amounts of all PTEs were well below the threshold values according to national and international standards.

  • Irrigation water quality is suitable according to MH, SAR and Na% (except station 5) and KR (except station 5).

  • The THI values are consistently below 1, indicating that there is no non-carcinogenic health risk. However, at station 10 the CR (1.44E-04) slightly exceeded the prescribed threshold for arsenic for adults.

  • This highlighted that exposure to arsenic levels that meet current regulatory requirements can cause incapacitating disorders including cancer.

  • Analysis of multivariate and bivariate statistics (EPA PMF, PCA, PCC, and HCA) indicated that the impact of human activities on metal levels in groundwater samples is minimal. Primary sources of potentially toxic elements (PTEs) mostly come from natural sources such as rocks or a combination of natural and human sources.

  • Spatial distribution of PTEs using GIS provided complementary assistance for assessing potential risks on stations.

  • Therefore, it is recommended to conduct periodic analyses of groundwater collected from fountains in order to reduce potential public health problems.

  • To enhance water quality, it is crucial to reduce anthropogenic activities such as industrial discharges and agricultural runoff

  • The results of this study contribute positively to the groundwater quality discourse by showing that metal levels in the analyzed samples remained below legal limits.

  • The findings provide a baseline for the safety and reliability of groundwater source studied, highlighting its potential to be a sustainable and safe water source for the surrounding community.