Introduction

Less than 2.5% of the Earth’s water is classified as freshwater (Shiklomanov, 1993). Due to this limited freshwater resource, 1.6 billion people are facing water shortages and two-thirds of the world’s population faces water scarcity at least 1 month in a year (FAO, 2007; Mekonnen and Hoekstra, 2016). Freshwater is a restricted resource in arid and semiarid areas due to the limited and irregular distribution of precipitation throughout the year. There may also be a lack of freshwater supply in densely populated areas, and, with climate change and sea level rises projected, problems are expected to increase over the next decades (e.g. Oude Essink et al., 2010). Moreover, the limited freshwater resources are under threat from pollution, mainly caused by human activities. Human activities threaten the ecosystem by introducing large concentrations of chemicals into the water body. They are also responsible for point and non-point sources of pollutants such as trace metal contamination in aquatic systems. Widespread trace metal pollution is the main concern for ecological quality, particularly in aquatic systems because of the potential toxicity of several metals. Its occurrence in aquatic systems is often due to anthropogenic activities. Trace metals are insidious contaminants due to their nonbiodegradable nature (Needleman, 1990; Needleman et al., 1990; Goyer, 1993). Low concentrations can cause long-term toxicological effects. The accumulation, bioavailability, and mobility, which govern speciation of dissolved hazardous trace metals in the water system, are of critical interest due to their ecotoxicology and economic impact on social development and human health (Pape et al., 2012; Varol, 2013; Gurumurthy et al., 2014; Bu et al., 2015).

Aquatic systems are dynamic and often out of equilibrium. Water can contain a varied range of metal-complexing components. The resultant interactions dictate the transport, reactions, and spatial and temporal distribution of trace metals. Subsequently, the physicochemical speciation form in which a metal ion exists becomes the main issue because this determines its mobility, bioavailability, and toxicity in environmental compartments. Whereas the material morphology influences their transport behavior, their chemical composition modifies their reactivity. Many ligand complexing constituents existing in polluted waters are heterogeneous, multifunctional, and physicochemical complex molecules. Basically, trace metal dissolution in the contaminated medium is controlled by the redox conditions, which need to be better understood.

The dispersion of toxic metals in ecosystems increases with their mobility (Schröder et al., 2005). Heavy metals present under varying physicochemical forms of solubility and adsorption on mineral surfaces. Also, these metals form complexes with heterogeneous ligands (inorganic, via formation of organometallic complexes, with polysaccharides, microorganisms, iron and manganese oxides or oxyhydroxides, and clays) and are precipitated or entrapped in mineral phases in water systems that play important roles in altering metal speciation and transportation (Tessier et al. 1996; Santschi et al. 1997; Taillefert et al. 2000).

The changes in redox condition between oxic and anoxic water also affect the speciation and bioavailability of trace metals. The redox reactions of dissolved trace metal concentrations are also affected by such conditions as long-term natural and anthropogenic supply of metals, spatial distributions, seasonal fluctuations, water discharges, water temperature, pH, and dissolved oxygen (DO). Changes in the cycling and distribution of trace metals are a function of the internal hydrological variability conditions and external environment (Soto-Varela et al., 2014; Bu et al., 2015). For water system protection, as much information as possible is essential for the description of dissolved trace metal cycles (Weng and Wang, 2014).

In our knowledge, it is the first work monitoring the trace elements contamination and quantified the spatial distribution of groundwater quality in this region. The goal of the present study is to survey dissolved trace metal concentrations in two middle Upper Egypt governorates, namely Minia in the north and Assiut in the south as shown in Fig. 1. This is intended to aid in monitoring, predicting sources, and understanding associated trace metals in groundwater. To assess these contaminant toxicities in the affected environment, deciphering the behavior and processes controlling the dissolved trace metals’ distribution is crucial.

Fig. 1
figure 1

Location map and sampling points of the study region

Materials and methods

Water samples collection and analysis

Groundwater samples were collected from Minia and Assiut governorates. Electrical conductivity (EC) and pH values were measured in situ. EC values were determined using a WPA CM 35 Conductivity Meter. pH values were determined according to ASTM D-1293 using an Eu-tech cyberscan-pH 310 meter with a combined glass electrode. The samples were stored in 500-ml transparent glass bottles in a refrigerator at about 20 °C to prevent any change in volume due to evaporation and transported to the laboratory. The analyses were carried out in the Central Health Laboratories, Abdein, Cairo, Egypt. The elements (B, Fe, Cu, Mn, Ni, Pb, Cd, and Cr) were detected using an atomic absorption spectrometer (GBC, GF 3000, USA). Other parameters including alkaline species (CO3, OH, and HCO3) were measured according to ASTM D-3875 calculations done using Alkalinity Calculator Ver. 2.10 (USGS). Minor constituents such as nitrate (NO3) were tested using the methods of the APHA (1998). Anions (HCO3, SO42−, and Cl) and cations (Ca2+, Mg2+, Na+, and K+) were determined according to ASTM D-4327 using ion chromatography. The instrument used was a Dionex 600 equipped with high capacity columns (AS9 and CS12) for anion and cations, respectively. Trace metals (Fe and Cu) were estimated very precisely using the inductively coupled plasma (ICP) emission technique according to ASTM D-1976.

Study area

Minia Governorate in Upper Egypt is located in the vicinity of coordinates 28° 06′ 35.57″ N and 30° 45′ 1.08″ E. It is about 245 km south of Cairo. The following cities are in this governorate from north to south: El Idwa, Maghagha, Beni Mazar, Matai, Samalut, Minia (old name of the city is Men'at Khufu), Abu Qurqas, Mallawi, and Deir Mawas. The area has a hot climate with arid to semiarid conditions rainless in summer, with mild to rare precipitation in winter. Minia Governorate is essentially covered by Middle Eocene to Recent sedimentary rocks. The stratigraphic sequence built up from base to top is as follows: Middle Eocene limestone; Pliocene clays; Plio-Pleistocene sand and gravel; Pleistocene sand and gravel; and Holocene silt and clay (Zaki et al. 2001). The Pleistocene semi-confined aquifer represents the main water-bearing formation in Minia Governorate, consisting of gravels and sands. This aquifer directly rests on the Pliocene clay, which acts as the base of the aquifer and the fissured Eocene limestone as shown in Fig. 2a. The thickness of this aquifer decreases to the west of the area (towards an Eocene plateau), and it is hydraulically connected with the underlined Eocene aquifer through many faults (Sanad 2010). The surface water (particularly the irrigation canals) is the main source of aquifer recharge. The depth of water in the Pleistocene aquifer varies with locality, from 0.9 to 8 m, while the water level ranges between 29.4 and 43 m. The groundwater level declines in a south to north direction due to the hydraulic gradient due to the surface water in the irrigation and drainage system (Abou Heleika and Niesner 2009; Kamel 2012). The flow of groundwater is directed generally towards the River Nile (northeast).

Fig. 2
figure 2

Hydrogeological cross sections in the aquifer systems of (a) Minia (RIGW, 1992) and (b) Assiut (Dawoud et al., 2006) governorates

Assiut Governorate is bounded by a limestone plateau and is located in the vicinity of 27° 10′ 51.46″ N and 31° 11′ 1.25″ E. Assiut includes 11 towns extending from Dirout in the North to El-Badary in the south. Assiut Governorate stretches for about 120 km along the Nile banks, and its distance from Minia Governorate is about 112 km. It is bounded in the east and the west by agricultural lands and limestone plateau. The sedimentary rock origin is Lower Eocene to Quaternary (Fig. 2b). The Lower Eocene carbonate rocks are represented by the plateaux bordering the Nile Valley. The Quaternary sediments represent a water-bearing formation. The Quaternary deposits are composed of sand and gravel plains (Pleistocene) and are generally capped by silty clay layers as alluvial deposits (Holocene) and are unconformably resting on the Eocene carbonate (Waleed et al., 2009; El-Aassar et al., 2016).

Statistical analysis

The PAST statistical program (Hammer et al., 2001) was used to recognize principal coordinate analysis (PCoA) on the results from the groundwaters and to examine the relations between the variables. SPSS version 25 statistical program was used to perform cluster analysis (CA). The Origin Pro 8 statistical program was used to determine the scatter matrix and the correlation between each groundwater variable.

Results and discussions

Groundwater characteristics

All groundwater samples’ physicochemical parameters for the area under investigation are summarized in Table 1 with minimum, maximum, mean, and standard deviation values. The groundwater samples fluctuate from acidic to alkaline conditions with pH values ranging from 2.82 to 9.7 with a mean value of 7.82 ± 0.60 (mostly alkaline pHs). The electrical conductivity (EC) and alkalinity values vary significantly as shown in Fig. 3, with ranges of 2100–320 μS cm−1 and 695–102 mg L−1, with a mean value of 829.53 ± 345.87 μS cm−1 and 299.05 ± 89.01 mg L−1, respectively. Groundwater conductivities indicated that most of the samples had a high ionic strength. The concentrations of the cations Ca2+, Mg2+, Na+, and K+ ranged from 345 to 2 mg L−1, 180–3 mg L−1, 197.57–12.56 mg L−1, and 25–0.8 mg L−1 with mean values of 75.70 ± 41.15 mg L−1, 39.50 ± 25.11 mg L−1, 53.87 ± 31.78 mg L−1, and 4.25 ± 5.28 mg L−1, respectively. The concentration of dissolved anions such as HCO3, SO42−, Cl, and NO3 varied from 730 to 90 mg L−1, 751 to 6.5 mg L−1, 505 to 14 mg L−1, and 0.80 to 0 mg L−1 with the mean concentrations of 271.65 ± 106.07 mg L−1, 123.79 ± 125.01 mg L−1, 82.80 ± 71.37 mg L−1, and 0.46 ± 6.10 mg L−1, respectively. The dominant major cations in the groundwater samples are in the order of Ca2+ > Na+ > Mg2+ > K+, while the dominant anions are HCO3 > Cl > SO42− > NO3. In line with Tariq et al. (2008) and Ledesma-Ruiz et al. (2015), the higher standard deviations than the mean displayed by K+, SO42−, Cl, and NO3 indicated their randomly fluctuating concentration levels in the groundwater. This revealed that the geochemistry of the investigated area is not homogenous. The elevated concentrations of HCO3 and Ca2+ ions indicated that the study area might be affected by carbonate mineral dissolution. Holland (1978) mentioned that 74 ± 10% of Ca2+ and 40 ± 20% of Mg2+ in groundwater results from carbonate mineral dissolution.

Table 1 Summary of the groundwater chemical data (physico-chemical properties and heavy metals concentrations (mg/l)), with descriptive statistics. Note: number of samples are 205; EC = electrical conductivity (μS/cm)
Fig. 3
figure 3

Quality parameters and trace metals concentrations in groundwater

The trace elements B, Fe, Cu, Mn, Ni, Pb, Cd, and Cr concentrations ranged from 1.5 to 0.008 mg L−1, 3.5–0 mg L−1, 1.85–0 mg L−1, 9–0 mg L−1, 0.40–0 mg L−1, 0.34–0 mg L−1, 0.45–0 mg L−1, and 0.04–0 mg L−1, respectively. The mean concentration of these elements follows the descending order: Mn > Fe > B > Cu > Cd > Pb > Ni > Cr. The mean values of Mn (0.514 ± 0.713 mg L−1), Fe (0.381 ± 0.526 mg L−1), Cd (0.035 ± 0.075 mg L−1), and Pb (0.026 ± 0.056 mg L−1) are higher than the water quality standards set by Egyptian Standard Methods Decision (Decree of Health Ministry No. 458/2007) and international organization (WHO, 2011). This suggests the possibility of infiltration of these metals from anthropogenic sources.

Groundwater pollution sources and quality controlling factors

The groundwater data subjected to the statistical method principal coordinates analysis (PCoA) retains most of the data variation while reducing the dimensionality, to elucidate the relationship of group variables. This reduction proceeds by identifying principal vectors in which the variation in the data is maximal and expressed in the patterns of correlation between variables. Applying PCoA to identify the main variability characters of dissolved elements in the groundwater helps to distinguish patterns dominating the element content (Mora et al., 2017). According to Liu et al. (2003), they involve the use of only factors with eigenvalues exceeding one. Only three important components are significant for groundwater datasets based on eigenvalues more than 1 as revealed in Table 2.

Table 2 The main principal coordinates analysis (PCoA) for groundwater

Figure 4 a reveals four groups originated from the effect of both component 1 with an eigenvalue of 2.14, which represents 26.20%, and component 2 with an eigenvalue of 1.17, which represents 14.24%. The first group contains EC, Na+, Mg2+, Cl, B, Ca2+, and SO42−, these elements resulting from different possible sources in groundwater: coming naturally from the aquifer matrix through water–rock interactions and anthropogenically as a result of pollution plumes. Hem (1985) and Battistel et al. (2016) indicate that Cl, B, and SO42− often relate to sedimentary rocks. However, Srivastava and Ramanathan (2008), Chetelat and Gaillardet (2005), and Wu et al. (2014) stated that the elevated concentrations of Cl, B, and SO42− in groundwater are frequently considered an indicator of contamination phenomena. Likewise, Nigro et al. (2017), Li et al. (2019), and Wu et al. (2019) stated that Na+, Mg2+, and Ca2+ are a natural constituent of the groundwater because these cations may derive from the leaching of rocks, but they can also derive from landfill leachate. In line with Bodrud-Doza et al. (2016) and references therein, EC indicates geogenic hydrogeochemical evolution of groundwater by geological weathering conditions due to high ionic concentrations and probably caused by high anthropogenic activities with ion exchange. Consequently, such input from cations and anions would be the greatest contributing influence on the electrical conductance. The second group contains HCO3, NO3, alkalinity, pH, and K+, which suggests weathering of carbonates and contamination by fertilizer usage, especially nitrogenous fertilizer (KNO3). Alkaline pH and HCO3 reflect intensive weathering of carbonate environments, and alkaline nature of groundwater. The third group contains two heavy metals, Cd and Pb, that may relate to anthropogenic sources such as wastewater, municipal (electric) waste, and sewage drains. The fourth group contains the rest of the heavy metals, Ni, Fe, Mn, Cu, and Cr, that are expected to leach from weathering of rocks, which is the primary source of these metals. Possible anthropogenic sources of these metals are wastes and sewage sludges through leaching from topsoil and entry into groundwater.

Fig. 4
figure 4

Principal coordinates analysis (PCoA) (a) coordinates 1 (26.195%) vs. coordinates 2 (14.238%) and (b) coordinates 2 (14.238%) vs. coordinates 3 (12.486%)

Figure 4 b reveals seven groups originated from the effect of both component 3 with an eigenvalue of 1.02, which represents 12.50%, and component 2 with an eigenvalue of 1.17, which represents 14.24%. The first group contains EC, Na+, Mg2+, Cl, and NO3, as in the previous section (component 1 vs. component 2). These elements may occur naturally in groundwater through water–rock interactions and anthropogenically as a result of agricultural activity. The second group contains HCO3, pH, and alkalinity that reveals intensive weathering of carbonate deposits and alkaline pH of groundwater. The third group matches with the results found in component 1 vs. component 2 and contains Cd and Pb, which strengthens the suggestion that these metals originated from the same anthropogenic sources. The fourth group contains Ni, Cu, and Fe that suggests that these metals have entered the groundwater as a result of human activities. The fifth group contains K and Mn suggesting that leaching from weathering of rocks is the primary source of these metals. The sixth group contains Cr and B indicates that these metals may originate from wastes and sewage. The seventh group contains Ca2+ and SO42− implying that these species may derive from calcium sulfate fertilizers. Fertilizers, especially nitrogen (Ca (NO3)2 and KNO3) and sulfur (CaSO4 and MgSO4) fertilizers, are presumably the most common aquifer contaminants.

Comparison and grouping of groundwater constituents

Cluster analysis (CA) revealed three main clusters for datasets of analyzing parameters. CA was applied to detect physicochemical groupings in the groundwater datasets, as shown in Fig. 5. This analysis indicates a complex hydrochemistry in the area with ion exchange between weathering minerals in the aquifers, domestic sewage effects, leaching of materials, and the infiltration of agricultural fertilizers. Parameters belonging to the same cluster were likely derived from the same source or conditions.

Fig. 5
figure 5

Dendrogram showing the clustering behavior of trace metals and standardized variables in groundwater samples

In agreement with Omo-Irabor et al. (2008) and Li et al. (2018), Cluster 1 included fertilizers and nutrients that contain K+ and NO3, which might be explained by leaching of agricultural fertilizers from the soil horizon. Also, K+ may originate from biogenic sources due to leaching from decomposed vegetation and resulting from rock weathering of silicates and K-feldspars from the aquifer medium causing groundwater contamination. Cluster 2 consists of redox-sensitive elements such as Pb, Cd, Mn, Cu, Cr, Fe, and Ni, and reflects the influence of domestic and agricultural pollution deriving from the distal part of domestic sewage and drainage channels that connect to the groundwater. Changes in pH and redox conditions play a significant role in the variability and/or cyclicity of dissolved trace metals because the pH-dependent redox process influences how trace elements are scavenged in aquatic environments. Whereas the oxidation process may be affected by increased pH, trace metals can combine into the particulate phase and coprecipitate (Mora et al. 2017). Cluster 3 includes elements resulting from water–rock interactions that consist of EC, Na+, Cl, Ca2+, SO42−, Mg2+, B, alkalinity, HCO3, and pH from the dissolution of minerals under alkaline conditions due to the weathering of aquifer matrix, especially carbonates. The concentration variations of these elements and parameters are controlled by dilution of mineralized groundwater by non-mineralized superficial waters during the aquifer recharge process.

Correlation matrix analysis

Pearson’s correlation (PC) coefficient was used to identify the interrelationship and association pattern among diverse geochemical constituents (Fig. 6). The correlation coefficient values of the analyzed water quality parameters are presented in Table 3. The correlation matrix showed inter-parameter relationships, which agreed with the results obtained from PCoA and CA, as well as new associations between the parameters that were not adequately identified in the previous sections. Strong (p < 0.01) and significant correlations (p < 0.05) were observed in the groundwater dataset. The dataset was examined based on the linear correlation between every pair of groundwater constituent in terms of significant positive correlation coefficient, r ≥ 0.248, at p < 0.01. Table 3 reveals that pH positively correlated with HCO3 (r = 0.337) with a 99% confidence level (Fig. 7). This indicated that the alkaline pH was obtained from carbonate-rich sediments such as limestone and dolomite (indicating a geogenic source of groundwater contamination). As stated by Ledesma-Ruiz et al. (2015), Li et al. (2018), Li et al. (2019), and Wu et al. (2019), the existing carbonates in the aquifer rock might have been dissolved and added to the groundwater during movement, infiltration, and irrigation. Mollema and Antonellini (2016) emphasize that groundwater rich in dissolved elements typically meets more alkaline water. Also, Taillefert et al. (2002) indicated that many parameters such as pH, reduced sulfur, sorption by inorganic materials, precipitation of carbonate, and the presence of Mn2+ and Fe2+ control the release of trace metals. With changes in pH and alkalinity, trace elements may undergo deposition or go again into the groundwater; that is, trace element solubility is pH dependent. The range of pH values observed in samples is 2.82–9.7. Averyt et al. (2004) noted the pH effects on the stability of trace element complexes with ligands in water. Also, Table 3 reveals the general observed trend of trace metals in conditions of increased ionic strength and alkaline pH, as well as the increased electrolyte concentration and decreased oxidation rate, which would decrease the activity of the reacting species. B showed a positive correlation with EC (r = 0.304), as did Mg+ (r = 0.296), with a weak positive correlation for Na+ (r = 0.261) and a positive correlation with SO42− (r = 0.319). In line with Battistel et al. (2016), these correlations may be due to anion–cation exchange and indicate that the source of B in groundwater is natural release from carbonates (Fig. 8). Also, these conditions slow and decrease complexants-colloids formation that scavenge or complex with trace elements. Three groups of complexants-colloids formation may be differentiated. The first is an Fe-colloids-based group that may adsorb and/or complex with Cu (r = 0.421), Mn (r = 0.248), Ni (r = 0.284), and Cr (r = 0.359). The second group is a Cu-colloids-based group that may adsorb and/or complex with Cr (r = 0.485). The third group is a Mn-colloids-based group that may adsorb and/or complex with Pb (r = 0.326), Cd (r = 0.251), and Cr (r = 0.407), as shown in Fig. 9. The correlations in Table 3 suggest that the dissolved trace metals in the groundwater are not strongly affected by colloidal destabilization. In line with Pullin and Cabaniss (2003), the complete complexation of the metals resulting from the effect of a lower metal to larger ligand ratio indicates that the positively charged species must be reacting with negatively charged inorganic ligands (or vice-versa). Pb had a strong positive correlation with Cd (r = 0.627) as shown in Fig. 10. Most probably, these metals concentrate in the clay fraction and are released by sediments during redox conditions throughout the aquifer profile and/or are released from the same sources of pollution. Pb and Cd concentrations in groundwater generally increased with the ionic strength and groundwater salinity. Zhang et al. (1992) and Emmenegger et al. (1998) noted that metals and cations show increasing sorption at increasing pH (i.e. sorption increases with alkalinity). In agreement with Pinheiro et al. (1996), the trace element (B, Fe, Cu, Mn, Ni, Pb, Cd, and Cr) heterogeneity might be pH-dependent because of elevated concentrations and a variety of water contents that act as inorganic ligands (HCO3, SO42−, Cl and NO3) with different ranges and binding sites being available. Generally, metals are sorbed and complexed with inorganic ligands most strongly at elevated pH (> 5). The various metals remain more heterogeneous in groundwater with higher pH values that range from 5 to the highest detected value of 9.7. Whereas reductive dissolution occurs at low pH ranging from < 5 to the lowest detected value of 2.82 in the suboxic zone. Thus, metal complexes are split at pH < 5. Mollema et al. (2015a, b) recognized that redox reactions in the aquifer control water chemistry and consequently concentrations of trace metals in the groundwater.

Fig. 6
figure 6

The interrelationship pattern between groundwater parameters

Table 3 Pearson correlation coefficient matrix among heavy metals and physicochemical parameters in the groundwater
Fig. 7
figure 7

The relation between pH vs. HCO3 in groundwater

Fig. 8
figure 8

The relation between (a) B vs. EC, (b) B vs. Mg2+, (c) B vs. Na+, and (d) B vs. SO42− in groundwater

Fig. 9
figure 9

The three complexants-colloids groups (1st) (a) Fe vs. Cu, (b) Fe vs. Mn, (c) Fe vs. Ni, (d) Fe vs. Cr, (e) (2nd) Cu vs. Cr, (3rd) (f) Mn vs. Pb, (g) Mn vs. Cd, and (h) Mn vs. Cr in groundwater

Fig. 10
figure 10

The relation between Pb vs. Cd in groundwater

Table 3 reveals that EC had a positive correlation with alkalinity (r = 0.307), Ca2+ (r = 0.314), Mg+ (r = 0.354), HCO3 (r = 0.344), and SO42− (r = 0.268) and a strong positive correlation with Na+ (r = 0.776) and Cl (r = 0.502). The salinity load in groundwater is controlled first by Na+ and then by Cl and HCO3. Generally, the groundwater is high hard water and has greater alkalinities (up to 695 mg L−1) indicating that the carbonate from aquifer sediments was the essential source of the water alkalinity. Alkalinity is positively correlated with Mg2+ (r = 0.295) and had a strong positive correlation with HCO3 (r = 0.603) as shown in Figs. 11 and 12. The relatively low acidity and high alkalinity in most samples was probably caused by leaching of carbonates. In line with Mollema et al. (2015a, b), high HCO3 concentrations (up to 730 mg L−1) will be caused by CaCO3 dissolution and redox reactions. As HCO3 is generated during the weathering of carbonates, pH values increase in the groundwater.

Fig. 11
figure 11

The relation between (a) EC vs. Na+, (b) EC vs. Cl, (c) EC vs. Ca2+, (d) EC vs. Mg2+, (e) EC vs. HCO3, and (f) EC vs. SO42− in groundwater

Fig. 12
figure 12

The relation between (a) alkalinity vs. HCO3, (b) EC vs. alkalinity, and (c) Mg2+ vs. alkalinity in groundwater

As revealed in Table 3 and shown in Fig. 13, there are strong positive correlations among the main constituents of groundwater such as Ca+ with Mg+ (r = 0.723), Ca2+ with SO42− (r = 0.769), Ca2+ with Cl (r = 0.378), Mg2+ with HCO3 (r = 0.488), Mg2+ with SO42− (r = 0.642), Mg2+ with Cl (r = 0.323), Na+ with K+ (r = 0.318), Na+ with HCO3 (r = 0.288), Na+ with Cl (r = 0.475), and K+ with HCO3 (r = 0.297). These correlation results indicate mixed origin of these parameters as a result of the lithologic influence of aquifer matrix and water interactions (i.e. geogenic derived from aquifer materials through water–rock interactions by dissolution processes). In addition, infiltration from drains, human wastewater (septic tanks), stagnant water, and fertilizers and secondary salts from infiltration of agriculture water affect the water table in these regions. All these factors are responsible for the ionic alteration of groundwater in the study area.

Fig. 13
figure 13

The relation between (a) Ca2+ vs. Mg2+, (b) Ca2+ vs. SO42−, (c) Mg2+ vs. SO42−, (d) Mg2+ vs. HCO3, (e) Na+ vs. HCO3, (f) Na+ vs. Cl, (g) Na+ vs. K+, (h) Mg2+ vs. Cl, (i) Ca2+ vs. Cl, and (j) K+ vs. HCO3 in groundwater

Spatial distribution maps

The contamination sources’ diversity and the variety of anthropogenic contamination make this study difficult. Figure 14 a–s depict the most contaminated groundwater of the investigated aquifers. Samples located along the studied aquifers show different trends. High pH levels were found in Assiut and north Minia aquifers (Fig. 14a). High levels of B were dispersed along different sites in both Assiut and Minia aquifers (Fig. 14b). High levels of Fe were found in Assiut aquifer (Fig. 14c), and high levels of Cu were found in south Minia and largely in south Assiut (Fig. 14d). Elevated Mn levels were found in south Minia and all the Assiut aquifer (Fig. 14e). High levels of Ni were dispersed along different sites in both Assiut and Minia aquifers (Fig. 14f). High Pb levels were dispersed among different sites in Assiut aquifer and at one site in north Minia (Fig. 14g). Elevated Cd levels were dispersed among different sites in the Assiut aquifer (Fig. 14h). High levels of Cr were dispersed along different sites in Minia especially in the north of the aquifer and in a small area in Assiut (Fig. 14i). Elevated EC levels were found among different sites in the aquifers especially north Minia (Fig. 14j). An increase in the alkalinity level was found among different sites in the aquifers especially north Minia and middle Assiut aquifers (Fig. 14k). Increased Ca levels were concentrated at north Minia and middle Assiut aquifers (Fig. 14l), and increased Mg levels found in all Assiut aquifers and north Minia aquifer (Fig. 14m). High levels of Na were dispersed along different sites in both Assiut and Minia aquifers (Fig. 14n), and high levels of K dispersed along different sites especially at south Assiut aquifer (Fig. 14o). High levels of HCO3 were dispersed in south Minia and Assiut aquifer (Fig. 14p), and increased SO4 levels dispersed along different sites in both Assiut and Minia aquifers (Fig. 14q). Elevated Cl levels were found among different sites in both Assiut and Minia aquifers (Fig. 14r), and high levels of NO3 in south Assiut aquifer (Fig. 14s). As mentioned above, the PCoA and CA results indicated that the interference of both natural processes (increase concentrations of elements resulting from water–rock interactions) and the impacts of human activities (increase concentrations of fertilizers, nutrients and redox-sensitive elements) are the principal factors affecting groundwater quality. Also, these multivariate statistical results reveal that the major ions in groundwater are controlled by water–rock interactions such as the dissolution of carbonates, silicates, and soil leaching. Whereas, negative impacts of trace elements in the groundwater mainly originated from anthropogenic input such as sewage effluents and agricultural activities in the study area.

Fig. 14
figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14figure 14

as Spatial distribution maps of the detected constituents in groundwater of the study area

Conclusion

The present paper addresses groundwater pollution in middle Upper Egypt. Groundwater is usually considered to be less directly contaminated by various toxic substances compared with surface water. However, groundwater quality is a growing concern due to contamination by a variety of pollutants. Based on the results obtained in this study, the following findings can be summarized:

  • •Groundwater of the study area (Minia and Assiut governorates) is characterized by high concentrations of trace elements such as Fe, Mn, Cd, and Pb.

  • •The results of linear correlations, PCoA, and CA were used to investigate the sources of groundwater contamination and indicate that the geochemical characteristics of the dissolved groundwater constituents are strongly influenced by the impact of weathering, dissolution of deposits (especially carbonate-rich sediments), ion exchange, and water–rock interaction.

  • •Also, statistical results indicated that pollution, which might be attributed to domestic sewage and effluent discharge from agricultural drains, has an adverse impact on the aquifers. Meanwhile, this study suggests that agricultural effluent and release of domestic sewage should be reduced.