Introduction

The global demand for water resources has continued to significantly increase since the twenty-first century due to population increases, industrial development, and agricultural production activities. In arid regions where surface water is insufficient, groundwater is extensively utilized for irrigation and economic growth (de Graaf et al., 2019; P. Li et al., 2016; Saber et al., 2022). A vast majority of countries with major crops depend on partners who consume groundwater to produce crops (Dalin et al., 2017). The proportion of groundwater use in northern Chinese cities is as high as 66–72%, with 60% for industrial use and 45% for agricultural irrigation (Adimalla & Qian, 2019). However, the processes of extracting and utilizing groundwater carry out significant environmental consequences. Coal mining activities, a prevalent industry in many parts of China, produce a large amount of wastewater that is harmful if not well treated (Nordstrom et al., 2015). Several studies have shown that mine drainage is a source of recharge for shallow groundwater contamination, 20–30% of which is reinfiltrated into the shallow groundwater through irrigation (Keqiang et al., 2019). Tran et al. (2020) evaluated the potential repercussions of derelict coal mines on groundwater quality in the Ruhr coal field, Germany, and reported that SO42- concentration was as high as 354 mg/L. Accordingly, coal mining activities threaten the sustainability and viability of water resources (Galhardi & Bonotto, 2016; P. Li et al., 2018). It is significant to understand the influence of human behavior on groundwater, such as coal mining activities (Wu et al., 2019). As such, this has a tremendous influence on human survival and health (Adimalla & Qian, 2021; Rodríguez-Lado et al., 2013; Sheng et al., 2022). It is therefore necessary to understand the hydrochemistry and water quality characteristics of groundwater in order to achieve effective management and sustainable development.

The dissolved components of groundwater mainly come from natural processes and anthropogenic sources, the natural sources mainly include water–rock action, weathering, mineral dissolution, etc. And anthropogenic sources have become the dominant contribution of dissolved components in groundwater (Sunkari et al., 2022). The increased knowledge of hydrogeochemical studies can help to identify these processes-controlled groundwater hydrochemistry (Wu et al., 2015; Yang et al., 2016). Groundwater chemistry type and the relationships between major ions can effectively reveal water recharge sources and groundwater quality evolution in aquifers, and evaluate quality and suitability for usage for sound water management practiced (Srinivasamoorthy et al., 2012). Redwan et al. (2016) analyzed the impact of water–rock interaction mechanisms on groundwater quality using the Gibbs ratios. P. Li et al. (2016) applied the Durov diagram to confirm that mineral dissolution/precipitation and cation exchange are the primary natural factors controlling the hydrogeochemical formation of groundwater. This has also been carried out in similar research in Australia (Moya et al., 2015), China (He et al., 2021; Liu et al., 2021), Germany (Tessema et al., 2013), India (Khalid, 2019), Iran (Sajedi-Hosseini et al., 2018), and Pakistan (Adimalla & Qian, 2021), among others. Additionally, the multivariate statistical method (principal component analysis) reduces the workload by identifying the correlation within the variables, and at the same time, more accurately explains the main influencing factors (Qian et al., 2016; Wang et al., 2017). Consequently, integrating water chemistry techniques with principal component analysis enhances the comprehension of the pollutants’ conditions and origins.

The great antidote to the assessment of groundwater quality and suitability for various demands about groundwater is conducting hydrochemical studies, irrigation water quality can be assessed by characterizing the ratio of various ion combinations (Subramani et al., 2005; Yang et al., 2016). Salinity and ion toxicity are the main problems in irrigation water. Sodium, as a conventional ion, is important in terms of concentration levels, and high sodium groundwater can react with soil, reducing permeability and leading to soil slumping, which directly affects crop yields (Zaman et al., 2018). Water with high TDS values is also viewed as unsuitable for drinking and irrigation (Fetter, 1990; Freeze & Cherry, 1979). It is obvious that irrigation water quality is significant for crop quality. Previous studies have identified several key indicators for evaluating irrigation water quality: Sodium Absorption Ratio (SAR), Sodium Percentage (Na%), Residual Sodium Carbonate (RSC), Permeability Index (PI), Magnesium Hazard (MH), Kelley’s Ratio (KR), and Potential Salinity (PS), Wilcox, and US Salinity Laboratory (USSL) classifications, etc. (Bauder et al., 2011; Bortolini et al., 2018; Chemura et al., 2014; Dhaouadi et al., 2022). However, while the single factor index method is straightforward to apply, it falls short in providing a holistic assessment of individual indicators, making it challenging to fully characterize water quality. Therefore, it necessitates the depiction of the irrigation water quality status through an efficient conversion into a Water Quality Index (WQI) score, utilizing a range of environmental parameters (Chowdhury et al., 2022; Wu et al., 2021). Among them, comprehensive evaluation method emphasizes determining the weights of the assessment indicators. The analytic hierarchy process (AHP) is a broadly applied method for addressing multi-objective dilemmas, allowing for the weighting of evaluation criteria based on their influence on the quality of irrigation water (Elvis et al., 2022; Zhong et al., 2022). Rajkumar et al. (2022) discovered that the Comprehensive Water Quality Index (CWQI), developed utilizing the AHP method, demonstrated its effectiveness as a robust and thorough method for assessing groundwater quality, outperforming both WQI and IWQI. However, AHP method carries inherent subjectivity in manual weight assignment. The criteria importance though the intercriteria correlation (CRITIC) method adeptly capitalizes on the inherent objectivity of data to ascertain the indicator weights in multi-indicator dilemmas (Zhang et al., 2021). A combination of AHP and CRITIC methods amplifies their individual strengths, leading to a more accurate and dependable assessment of multi-indicator problems (Li et al., 2021; Xiao et al., 2023).

The study area has many coal mines, and groundwater is often extracted for irrigation in agricultural production activities due to low drilling costs and easy availability. Currently, many agricultural irrigation areas exist around the mines. However, existing studies have only assessed groundwater quality standards. Meanwhile, the availability of nearby groundwater resources for agriculture activities is unknown. As such, it is imperative to determine whether groundwater in such mining areas can be used for irrigation. The primary objectives of this paper were to (1) ascertain the hydrogeochemical properties of groundwater and water chemistry facies, evaluating spatial variations of water chemical parameters; (2) understand the groundwater water–rock interaction and mineralization processes, elaborate ion sources, and determine the controlling mechanisms of water chemistry in the area; and (3) evaluate the groundwater quality in agricultural irrigation areas establishing a comprehensive weighting model based on AHP-CRITIC and determine suitability. The findings will help in formulating irrigation management strategies for developing rational use of groundwater in mining areas, which is significant for maintaining the security of the local agroecological environment.

Materials and methods

Study area

There are roughly 2741 km2 in the research area located in the Huaibei Plain. The terrain type is relatively simple and slopes from northwest to southeast. The landform is dominated by plains, with low mountains and hills, mountain stream basins, and flood alluvial plains. The region is located in the middle latitudes and pertains to the warm temperate semi-humid monsoon climate zone distinguished by obvious monsoon, distinct seasons, mild climate, and moderate rain. The annual mean temperature is 14.8 ℃, with July recording the highest temperature (40.4 °C) and January recording the chilliest (3.1 °C). The annual mean evaporation and drought index is 918.0 mm and 1.1, respectively. The mean annual rainfall is 849.6 mm and is accumulated from June to September. Precipitation forms a slope runoff, which gathers into ditches, rivers or artificial village ponds, subsidence depressions, and forms surface water. Due to a reduction of precipitation in drought years, river runoff is greatly reduced, which reflects that the rivers in the area are all rain-sourced rivers, and their resources are completely dependent on the amount of precipitation replenishment. The important economic source in this region is coal mining and agriculture, with coal revenues accounted for 43.9% of total revenues, cropland area covering 1675.11 km2, accounting for 96.7% of the total land area, while surrounded the coal mining areas are mostly agricultural irrigation areas.

Geology and hydrogeology

The eastern and western parts of the region are covered by large Quaternary loose layers, as well some Cambrian and Ordovician carbonate rocks are exposed in the north, which the overall flow direction is from northwest to southeast. Based on the lithology, occurrence characteristics, hydraulic connection, the Quaternary loose sand aquifer from the top down contains the first aquifer (the main sampling aquifer), the second aquifer, the third aquifer, and the fourth aquifer (Fig. 1c) (Qiu et al., 2023). The first aquifer used for agricultural irrigation and rural drinking water is regarded as a shallow aquifer, which has been polluted to varying degrees due to industrial activities such as regional coal mining in recent years, and the second, third, and fourth aquifers with deep burial are currently of good quality; thus, this investigation focuses on shallow groundwater as the object of study. The shallow aquifers are dominated by fine sandy clay, and the hydraulic property are phreatic groundwater. The main recharge mode is precipitation infiltration, followed by infiltration from rivers and water storage projects during flood season, irrigation re-infiltration and upstream (outside the area) underground runoff water, etc. The discharge is mainly by vertical evaporation.

Fig. 1
figure 1

a Location of the study area and sampling wells, b depth to water level map, and c diagram of aquifer structure in the research area

Sample collection and analysis

The monitoring sampling includes 12 coal mines and each coal mine had several control monitoring points, located in the mine impact area upstream boundary 30–50 m, at three pollution dispersion monitoring points, groundwater downstream and within 50 m on both sides, one or two internal mine monitoring points, respectively, located in the temporary gangue pile and sewage disposal station within 30 m downstream.

In November 2021, 71 groundwater samples were collected throughout the investigation region, pumped and sampled from new monitoring wells in the coal mine and from surrounding residential wells (Fig. 1a). Wells were washed prior to sampling, and after completion of sampling, the containers were pre-cleaned 500 mL polyethylene or glass bottles, labeled for sampling, and preserved at 4 °C until laboratory test. The whole samples are collected, stored, and examined in compliance with national technical standards (China, HJ164–2020). Surveyed parameters included pH, total hardness (TH), total dissolved solids (TDS), redox potential, electrical conductivity (EC), permanganate index, dissolved oxygen (DO), major ions (Na+, K+, Ca2+, Mg2+, SO42–, HCO3 Cl), nitrate (NO3–N), nitrite (NO2–N), ammonia nitrogen (NH4–N), fluoride (F), and trace metals (Fe, Mn, Cu, Zn, Hg, As, Sn, Cd). A portable multi-parameter analyzer was adopted to measure pH, redox potential, EC, and DO in situ. The EDTA titrimetric method was adopted to measure Ca2+ and Mg2+. The measurement of major cations and trace metals were determined by inductively coupled plasma mass spectrometry (ICP-MS) with a precision of 1%. Cl, NO3–N, SO42–were analyzed by ion chromatography (Rowell, 2014). The concentration of F was determined through an ion selective electrode method. The UV spectrophotometric method was used to measure the concentrations of NO2–N and NH4–N (Zhai et al., 2022).

Statistical analysis

Spearman correlation coefficients

Correlation analysis reflects the level of relationship between different ions in groundwater, and since the concentration data were processed as continuous variables, while did not follow to be normally distributed, the Spearman correlation coefficient was adopted to characterize the distribution.

Spearman’s correlation coefficient is commonly denoted by the Greek letter ρ to indicate its value to evaluate the relationship between two ranks (Schroeder et al., 2010). The basic idea is Spearman’s correlation coefficient utilizes the data rank of each variable instead of the raw data, ranks raw data from low to high, then the difference between the rankings is used as the main input to the following equation.

$${\rho }_{s}=1-\frac{6\sum_{i=1}^{n}{\left({U}_{i}-{V}_{i}\right)}^{2}}{n\left({n}^{2}-1\right)}=1-\frac{6\sum_{i=1}^{n}{D}_{i}^{2}}{n\left({n}^{2}-1\right)}$$
(1)

Ui and Vi are ranks of two variables.

When coefficient ρs is 0, the two variables are completely independent, ρs equals + 1 if the two variables are completely in same concordance, otherwise, –1 if the two variables are completely reversed.

Principal component analysis (PCA)

Combining the results acquired from Spearman’s correlation interpretation, the following indicators (total hardness, total dissolved solids, sulfate, chloride, sodium, calcium, magnesium, conductivity, and fluoride) were selected to extract the main influencing factors of groundwater quality by PCA. PCA is a dimensionality reduction method, by studying the internal correlation between the main indicators in the sample, exploring the basic structure in the data, and combining the original variables in different proportions by weighted averaging to generate new variables, which can cover almost all information (Menció et al., 2012; Moore et al., 2009).

Agricultural suitability assessment

Abundant shallow groundwater in the region is an essential resource for agricultural activities. Shallow groundwater is the predominant layer in agricultural fields; thus, ascertaining water quality is fundamental significance for assessing the quality and yield of crops. The following metrics were used to analyze the groundwater (Na%, SAR, RSC, MH, KR) to evaluate irrigation groundwater quality (Bauder et al., 2011).

$$Na\%=\frac{\left({Na}^{+}+{K}^{+}\right)\times 100}{{Ca}^{2+}+{Mg}^{2+}+{Na}^{+}+{K}^{+}}$$
(2)
$$SAR=\frac{{Na}^{+}}{\sqrt{{(Ca}^{2+}+{Mg}^{2+})/2}}$$
(3)
$$RSC=\left({CO}_{3}^{2-}+{HCO}_{3}^{-}\right)-\left({Ca}^{2+}+{Mg}^{2+}\right)$$
(4)
$$MH=\frac{{Mg}^{2+}}{{Ca}^{2+}+{Mg}^{2+}}\times 100$$
(5)
$$KR=\frac{{Na}^{+}}{{Ca}^{2+}+{Mg}^{2+}}$$
(6)

Comprehensive evaluation model

In order to enable a comprehensive evaluation of the irrigation index in the study area, AHP-CRITIC (combining the subjective assignment method with the objective assignment method) was utilized to determine the weights of multiple indicators (Y. Li et al., 2021), which steps are described in the following:

  • Step 1: Evaluation indicator identification: irrigation index evaluation indicators include EC, SAR, Na%, Cl, MH, RSC, KR, TH, pH.

  • Step 2: Subjective weighting calculation (Bj): AHP was used to investigate the suitability of irrigation, and different weights (Table S1) were assigned to these parameters using the two relative comparison matrices of AHP according to the degree of influence of irrigation suitability parameters on water quality (Abdelkarim et al., 2023).

  • Step 3: Dimensionless processing of indicators:

    $${\text{Negative indicatiors}: y}_{ij}=\frac{{x}_{ij}-{x}_{j, min}}{{x}_{j, max}-{x}_{j,min}}$$
    (7)
    $$\text{Positive indicatiors}:{ y}_{ij}=\frac{{x}_{j,max}-{x}_{ij}}{{x}_{j, max}-{x}_{j,min}}$$
    (8)
    $$\text{pH}: {y}_{ij}=\frac{{x}_{i,j}-{\overline{x} }_{ij}}{{x}_{j, max}-{x}_{j,min}}$$
    (9)

\({x}_{ij}\) denotes the value of jth evaluation indexes of ith mixing procedures.

  • Step 4: Calculation of standard deviation and conflict (correlation coefficients):where m and n represent the values of mixing procedures and evaluation indexes, and \({r}_{{j}{\prime}j}\) denotes the correlation coefficient between the indexes \({j}{\prime}\) and \(j\).

    $${S}_{j}=\sqrt{\frac{{\sum }_{i=1}^{m}{\left({y}_{ij}-{\overline{y} }_{j}\right)}^{2}}{m-1}}$$
    (10)
    $${\overline{y} }_{j}=\frac{1}{m}\sum_{i=1}^{m}{y}_{ij}$$
    (11)
    $${R}_{j}=\sum_{{j}{\prime}=1}^{n}1-{r}_{{j}{\prime}j}$$
    (12)
  • Step 5: Determination of objective weight and comprehensive weight:

    $${C}_{j}=\frac{{S}_{j}{R}_{j}}{{\sum }_{j=1}^{n}{S}_{j}{R}_{j}}$$
    (13)
    $${W}_{j}=\frac{{B}_{j}{C}_{j}}{{\sum }_{j=1}^{n}{B}_{j}{C}_{j}}$$
    (14)

Data processing

Statistical analysis methods were adopted to process the data, and principal component analysis was applied to estimate the elements that may affect hydrochemistry. Piper plot, Gibbs plot, and ion ratio methods were adopted to elaborate on water chemistry. The water chemistry data statistics and correlation analysis were completed using Origin 2022b software. The formation of spatial distribution maps was shown by the inverse distance weighted (IDW) interpolation technique in ArcGIS software.

Results

Ion content statistics of groundwater

Table S2 displays the hydrochemical parameter analyses for groundwater, which present the minimum, maximum, 25th percentile, median, 75th percentile, average, standard deviation, coefficient of variation, III water standard, and non-detect rate.

In the present investigation, the pH value of groundwater was neutral, varying from 6.7 to 8, the total hardness ranges between 77.2 and 1550 mg/L, and exceedance rate (groundwater class III water standard) was 40.85%, which may lead to heart disease and kidney stones (Sengupta, 2013). The redox potential varied from 34.6 to 354, which is a reducing environment. EC value varies from 2.11 to 1782 µS/cm, and the EC value is affected by the ionic composition and salinity of the groundwater (Hubert & Wolkersdorfer, 2015; Subramani et al., 2005; Yadav et al., 2011). The variation range of TDS concentration was 0.3 – 3.0 g/L. In accordance with TDS concentration, Freeze and Cherry (1979) classified water as freshwater (TDS < 1000 mg/L), brackish water (> 1000 mg/L), saline water (> 10,000 mg/L), and brine (< 100,000 mg/L). In our research area, 43.66% of the groundwater was brackish. The permanganate index can accurately reflect the content of organic and inorganic matter in water, with values varying between 0.43 and 5.22. The DO value ranged from 1 to 8.4 mg/L.

For the eight major ions in water, in general, the main anion concentration shows HCO3 > SO42– > Cl. The concentration of main cation is Na > Ca > Mg > K. The dominant ions are HCO3 and Na, comprising 89.75–22.97% of the total number of all anions and cations, respectively. There are some points where SO42–, Cl, and Na exceeded the standard, and the exceedance times were 40.85%, 28.17%, and 46.48%, respectively. Fluoride concentrations ranged from 0.53 to 3.47 mg/L; meanwhile, approximately 64.79% of the points outweigh the allowable limit (1.0 mg/L) and may cause fluorosis (Siddique et al., 2022).

Among the nutrient salt indicators, nitrate, as a natural ion, about 5.6% of the sites exceed the limit value of 20 mg/L, and 47 sites severely exceeded concentration levels that could lead to health hazards (Peterson et al., 2001; Y. Zhang et al., 2018). The concentration variation of nitrite in the region ranged from 0.001 to 0.516 mg/L, which do not exceed the standard limit. Ammonia nitrogen varied from 0.26 to 1.54 mg/L, and seven points exceeded the standard restriction.

Among the trace element indicators, iron and manganese concentrations varied from 0.01 to 6.36 mg/L and 0.006 to 2.11 mg/L, respectively, with 19.72% and 70.42% of sample points exceeded the standard limits, probably due to the high concentration of environmental background values in the region. The heavy metal indicators, except for lead, were negligible and within the acceptable limits. The range of lead variation values was 0.00009 – 0.154 mg/L, with the maximum value occurring at point 64.

The coefficients of variation for sulfate, potassium, ammonia nitrogen, nitrite, nitrate, iron, manganese, zinc, selenium, cadmium, and lead exceeded 100%, indicating that they showed a large variation at all points.

Spatial variability of groundwater hydrochemistry

Inverse distance weighting (IDW) is an accurate interpolation method, which can ensure that the interpolation result sampling points are the same as the actual monitoring value. Also, IDW is able to handle data outliers, and compared to other interpolation methods, it is easier to determine unknown region results (Gidey, 2018; Haldar et al., 2020). In accordance with the hydrochemical indicators of groundwater as described above, the spatial distribution maps were plotted with ArcGIS software 10.4 as demonstrated in Fig. 2. The greatest TDS concentration was principally in the northwest area, with an increasing trend from south to north, especially at points 3, 7 – 14, and 48 – 53. TDS values were larger, and the maximum value occurs at point 50, with large spatial variability, probably due to geochemical processes and coal mining in the area (A. K. Tiwari et al., 2016). The content of K+ was low compared with other ions, and its spatial distribution was consistent with TDS, Ca2+ and Na+. Na+ might be connected to the cation exchange mechanism, whilst calcium and magnesium ion might derive from the leaching of calcium- and magnesium-containing rocks in the region. SO42– in groundwater mainly comes from dissolution and precipitation in rocks containing sulfur compounds, and the high concentration points appeared at points 49 – 53, representing the northeast red area. Cl was distributed in the same way as Mg2+, with higher concentrations in the northeast region. The distribution of F was different from that of other substances, and the peak area appeared in the western region. F concentrations in the study area are essentially attributed to geological factors (Saxena & Ahmed, 2003). Overall, major ion concentrations were greater in the northeastern region than in the south (Fig. 2), suggesting the occurrence of intense water–rock interactions in the northeast.

Fig. 2
figure 2

Spatial distribution maps of hydrochemical parameters of groundwater: a total dissolved solids (TDS), b total hardness (TH), c potassium (K+), d calcium (Ca2+), e sodium (Na+), f magnesium (Mg2+), g sulfate (SO42–), h chloride (Cl), i bicarbonate (HCO3), j fluoride (F)

Figure 3 shows a direct correlation between distance of mine and sampling sites, and quality parameters (positive groundwater flow). There was an overall m-shaped tendency, with a rising trend upstream of the mine site and a decreasing trend downstream of the mine site, especially sodium, sulfate, and potassium quality parameters, indicating that it is possible the deterioration of the groundwater quality mainly on account of coal mining pollution significantly raised dissolution and mineralization of aquifer matrix (Zhang et al., 2022a, 2022b). Overall, these observations are in accordance with findings obtained by Yaqiang Li and Zhang (2022) from the Selian coal mining area of Inner Mongolia. The concentration of the quality parameters in the interval of 501–700m has increased, which may be related to the agricultural irrigation activities around the mine area. The combination of mine drainage into ditches, irrigation by farmers using water from the ditches, and accelerated groundwater flow from the mines may be the main reasons for the increase in pollution concentrations at this distance interval.

Fig. 3
figure 3

Direct correlation between distance of mine and sampling sites, and quality parameters: a total hardness (TH), b total dissolved solids (TDS), c sulfate (SO42–), d chloride (Cl), e sodium (Na+), f bicarbonate (HCO3), g potassium (K+), h calcium (Ca2+), i magnesium (Mg2+)

Ion correlation analysis

Figure 4 demonstrates the relationship of different groundwater ions, with different correlations between indicators. The correlation coefficient is simply a frequently utilized measure indicate how well one variable anticipates the other (Kumari & Rai, 2020). TH, TDS, SO42–, Cl, Ca2+, and Mg2+, mutually showed a significant positive correlation (p ≤ 0.001), demonstrating that they may have the same source or geochemical behavior (A. K. Tiwari et al., 2017). Carbonate dissolution, as well as halite and silicates weathering are important processes in the formation of hydrochemistry. The main composition of TDS is sodium, calcium and magnesium. The great correlation between Ca2+ and SO42 suggests that primary source may be gypsum dissolution. (Tiwari et al., 2016). EC and TH, SO42–, Na+, Ca2+, and F had a significant negative correlation (p ≤ 0.001) (Subramani et al., 2005).

Fig. 4
figure 4

Correlation matrix of analyzed groundwater quality parameters

Principal component analysis

The principal component analysis method is predicated integration and simplification by retaining the maximum information of the original data, with reducing the calculation of unnecessary indicators and alleviating the workload. The SPSS principal component analysis function was adopted for principal factor extraction. After standardizing the original data, the correlation coefficients of each index were derived. Three principal component elements with eigenvalues of > 1 were extracted whose cumulative variance contribution reached 78.354% (Table S3). PC1 explained 46.977% of the total variance, and TDS, TH, SO42− contributed to strong high positive loadings. This indicated the dissolution/precipitation of sulfate minerals. There were mid-high positive loadings for Cl, Na+, Ca2+, indicating the dissolution of carbonate minerals (e.g., calcite, dolomite) and gypsum (Qian et al., 2016). PC1 generally indicated that water–rock interaction may be the main source of ions. PC2 explained 18.398% of the total variance. For F, it is possibly are result of the dissolution of fluorinated minerals. PC3 explained 12.980% of the variance, involving magnesium ions. Overall, the results of the PCA exhibited that dissolution/precipitation of minerals influenced the fairly complex hydrogeochemical characteristics of groundwater (Yuan et al., 2017).

Hydrochemical facies

Hydrochemical facies are defined as “denote the diagnostic chemical aspects of water solutions occurring in hydrologic systems,” indicating “the response of interrelated effects of the lithology and the pattern of ground-water flow” (Back, 1960). The Piper trilinear chart is a diagrammatic manifestation of water chemical data which is useful for identifying the types of groundwater hydrochemical based on chemical characteristics (Piper, 1944). One rhomb comprises the top of this diagram, with two triangles at the base. The major ions analyzed were unevenly distributed in the Piper diagram and further projected into the rhomb field to characterize the overall groundwater chemistry (Fig. 5). In the cation section, 35.21% of the groundwater points were in the center (zone B), reflecting insignificant governance of any particular cation in the groundwater. 56.34% of the groundwater samples located in the bottom right margin (zone D), demonstrating the supremacy of sodium and potassium. The anion section showed that 53.52% of the groundwater points appeared in the bottom left margin (zone E), reflecting the dominance of bicarbonate which also shows that the carbonate and silicate weathering dominated lithology and had a large influence on the groundwater hydrochemistry. Meanwhile, a critical evaluation of the rhomb field showed that the water types were mainly into mixed type, calcium-bicarbonate type, sodium-chloride type, and sodium-bicarbonate type. Moreover, 18.31% + 18.31% of the groundwater samples plunged in the center of the rhomb (zone 3) showing the mixed water types (calcium-magnesium-chloride-sulfate and calcium-sodium-bicarbonate) of the hydrochemistry, representing the sophisticated impact of anthropogenic activities, reverse ion exchange, as well as weathering. Of the groundwater samples, 25.35% were classified as a calcium-bicarbonate water type (zone 1). Infiltered meteoric groundwater is frequently abundant in calcium and bicarbonate (Mukherjee & Singh, 2020; Sridharan & Nathan, 2018). Therefore, the existence of calcium-bicarbonate hydrochemistry facies indicated that the shallow groundwater aquifers are supplied with precipitation and integration of unfiltered meteoric water. About 29.58% of the samples appeared in the zone of the Na-Cl water type (zone 2), suggesting higher concentrations of sodium and chloride bearing salt. Few samples fell in the bottom of the rhomb (zone 5) and were categorized as the sodium-bicarbonate water type revealing the base ion exchange phenomena.

Fig. 5
figure 5

Piper diagram for groundwater

Sources of major ions and control mechanisms of hydrogeochemistry

The hydrogeochemical characteristics of groundwater may be controlled by diverse sources and processes in the aquifer, which can be analyzed by mathematical and graphical techniques (N. Rajmohan & Elango, 2004). In this study, the activity ratios of ions and the mineral phases saturation indices can be classified as a mathematical approach and Gibbs plots, respectively.

Hydrogeochemical processes and solute acquisition processes

Gibbs diagrams drafting major ion ratios (Na+/(Na+ + Ca2+) and Cl/(Cl + HCO3)) and TDS plot groundwater samples were used to recognize and distinguish the functional sources of precipitation, mineral weathering, and evaporation function on the hydrochemistry of the research region groundwater (Fig. 6) (Gibbs, 1970; Natarajan Rajmohan et al., 2021). As illustrated in the Gibbs diagram (Fig. 6), the cation ratios are situated from 0.19 to 0.95, as well as the anion ratios are from 0.01 to 0.65. The TDS value was high and samples were majority concentrated in the zone of evaporation and water–rock interaction. The major hydrogeochemical processes are of an interaction between weathered rock and groundwater in the area, and evaporative crystallization, with a slight impact from atmospheric precipitation.

Fig. 6
figure 6

Gibbs diagram for groundwater

The ion ratio coefficient (Fig. 7) can qualitatively determine the influence of different rock weathering in the region and trace the ion sources (Jie Zhang et al., 2022a, 2022b). The origin of sodium and potassium ions can be determined using the relationship between the ratio of (Na++ K+)/(Cl) (Fig. 7a). The (Na+ + K+)/(Cl) ratio was approximately equal to one, which represents equivalent content of Na+ and K+ has been released through the dissolution of halite. This indicates that Na+ and K+ might have been derived from the dissolution of evaporite minerals, whereas a molar ratio of > 1 is frequently defined as Na+ and K+ from a silicate weathering reaction, whereas the lower (Na+ + K+)/(Cl) ratio (< 1.0) may be attributed to an exchange of Na+ for Ca2+ and Mg2+ in clays (Meybeck, 1987). Figure 7 a illustrates that the majority of the sample is located over the 1:1 line, with the ratio of (Na+ + K+)/(Cl) generally ranging from 0.2 to 30.8. In a majority of samples, the Na+ and K+ concentration exceeded the chloride content, indicating a non-halite source and demonstrates the Na+ and K+ might have been originated from silicate weathering, with only a finite contribution from atmospheric precipitation. The low content of K+ in the area is attributed to its propensity to be immobilized by clay minerals and to its engagement in the composition of secondary minerals (A. K. Tiwari et al., 2016).

Fig. 7
figure 7

Role of mineral weathering, evaporation processes, ion exchange reactions on water chemistry in this basin: a (Na+ + K+) versus (Cl), b (Ca2+ + Mg2+) versus (HCO3 + SO42−), c saturation indices (SI) of calcite versus SI of dolomite, d SI of gypsum versus SI of halite, e CAI-1 versus CAI-2

If the main dominating processes in a system are the dissolution of gypsum and carbonate minerals, the plot of (Ca2+ + Mg2+) versus (HCO3+ SO42−) (Fig. 7b) will generate the perceived 1:1 ratio (N. Rajmohan & Elango, 2004). Furthermore, it is possible to explain a 1:1 link by the combination of pyrite oxidation and carbonate neutralization as a result of mining (Han et al., 2013).

$${\text{FeS}}_{2}+2{\text{CaCO}}_{3}+3.75{\text{O}}_{2}+1.5{\text{H}}_{2}\text{O}=\text{Fe}\left({\text{OH}}\right)_{3}+2{\text{SO}}_{4}^{2-}+2{\text{Ca}}^{2+}+2{\text{CO}}_{2}$$
(15)
$${\text{FeS}}_{2}+4{\text{CaCO}}_{3}+3.75{\text{O}}_{2}+3.5{\text{H}}_{2}\text{O}=\text{Fe}\left({\text{OH}}\right)_{3}+2{\text{SO}}_{4}^{2-}+4{\text{Ca}}^{2+}+4{\text{H}}_{2}\text{O}$$
(16)

As depicted in Fig. 7b, the ratio of (Ca2+ + Mg2+)/ (HCO3 + SO42−) for the research area ranges from 0.1 to 1.7, numerous points stray from the 1:1 ratio and are clustered around and right of this line, which signifies a lack of Ca2+ and Mg2+ in this region, and excess HCO3, SO42− reflecting the control of ion exchange processes and rock weathering. A small number of samples fell under the equal line suggesting that reverse ion exchange or the dissolution of CaCl2 and MgCl2 minerals were the contributors of excess Ca2+ and Mg2+.

The PHREEQC procedure is utilized to compute saturation indices (SI) of mineral phases which can identify the equilibrium condition of the water concerning a mineral phase (Garrels & Mackenzie, 1971). By utilizing SI from groundwater data without gathering solid phase specimens and interpreting the mineralogy, it is feasible to predict the reactive mineralogy of the subsurface (Deutsch, 1997). Saturation indices (SI) of calcite, dolomite, gypsum, and halite were calculated and graphed in Fig. 7c, d. If SI is positive, the groundwater is supersaturated involving a mineral, and it is subject to precipitate to the mineral phase of the solute load. Conversely, a negative SI specifies that there will be more mineral dissolution.

In the present study, the SI of calcite, dolomite, gypsum and rock salt are − 0.54 to 0.43, − 1.34 to 1.07, − 3.22 to − 0.36, and − 8.66 to − 5.11, respectively. Figure 7 c illustrates that regarding calcite and dolomite 46.5% and 60.6% of the points are oversaturated, while the remaining samples are unsaturated. Meanwhile, calcite and dolomite in these locations may continue to dissolve to increase the content of Ca2+, Mg2+, and HCO3. As shown in Fig. 7d, in terms of groundwater, both gypsum and halite are unsaturated, which is a critical process in groundwater enhancing the content of SO42− and Cl.

Cation exchange adsorption

The ion exchange process is also an essential controlling factor for groundwater chemistry in this region. Ion exchange and reverse ion exchange can be confirmed by chloro-alkaline indices (CAI) presented by Schoeller (1965), and expressed as (P. Li et al., 2014).

$$CAI-I=\frac{Cl^{-}-\left(Na^{+}+K^{+}\right)}{Cl^{-}}$$
(17)
$$CAI-II=\frac{Cl^{-}-\left(Na^{+}+K^{+}\right)}{{SO}_{4}^{2-}+{HCO}_{3}^{-}+{CO}_{3}^{2-}+{NO}_{3}^{-}}$$
(18)

A positive CAI expresses the presence of reverse ion exchange, in which magnesium and calcium in the aquifer material are exchanged for sodium and potassium from groundwater. The reaction is recognized as a cation–anion exchange reaction by negative CAI. The degree of exchange can be judged from the absolute value of the CAI, and the larger value in terms of its absolute value, the more likely the reaction will occur. Figure 7 e illustrates that the CAI-1 and CAI-2 vary from -19.05 to 0.86 and -0.50 to 0.69, respectively. About 62.0% of points had positive values demonstrating a chloro-alkaline disequilibrium whilst the interaction qua a base–exchange reaction. In 38.0% of the groundwater, the results showed negative values, revealing that ion exchange is predominant; videlicet, a swap of Ca2+ and Mg2+ in groundwater with the Na+ in aquifer material (N. Rajmohan & Elango, 2004).

Assessment of groundwater quality for agricultural suitability

Irrigation water quality affects crop growth. Thus, it is critical to study irrigation water quality, as excessive salinity and alkalinity can lead to salinization of the land, and affect crop yield and quality. Irrigation water quality is evaluated using various single indicators (Ayers & Westcot, 1985; Yu et al., 2020). Table 1 shows the irrigation quality indicators.

Table 1 Irrigation quality indices

Na% and SAR are essential indicators for assessing the applicability of groundwater for irrigation (Wilcox, 1955), which expresses a sodium or alkali hazard. A high Na+ content result in formation of an alkaline soil, and cation exchange adsorption. Sodium ions displacing Mg2+ and Ca2+ ions are absorbed by clay particles, reducing infiltration, consequently resulting in hard soil with inefficient inside drainage (Saleh et al., 1999; A. Tiwari et al., 2013). Na% ranged between 18.43 and 93.40%, with an average of 54.59%. Thirty sampling points exceeded the standard limits, accounting for 42.25%. The SAR values ranged from 3.55 to 118.25, with 59.15% of the sampling points unsuitable for irrigation and 42.25% of the groundwater had extremely sodium hazard.

Residual sodium carbonate (RSC) values are also used to characterize the degree of alkali damage (Laboratory, 1954). Positive values represent the presence of carbonate and bicarbonate in water reacting with sodium ions, causing alkali damage, while negative values reflect the opposite. The higher the value indicates that it is more likely to cause alkali damage. Table 1 shows values ranging from − 119 to 608.5, with a mean value of 262.33 and a large exceedance of 92.96%, indicating that the sampling area is unsuitable for irrigation and alkaline soil exists.

MH is defined as the inordinate amount of magnesium above Ca and Mg. Excess Mg influences soil quality, bringing about unfavorable agricultural rewards (Szabolcs, 1964). A MH ratio > 50% is recognized as detrimental and inappropriate for irrigation. Of the sampling points in the region, 28.9% had a MH value over 50% and were undesirable for irrigation.

The values of KR are critical factors for evaluating the quality of agricultural water. The values varied from 0.21 to 14.09, and 60.61% of the KR is unsuitable for irrigation.

Spatial distribution map of the irrigation water quality (Fig. 8) was generated by carrying out water quality index (WQI) via a comprehensive weighting model based on AHP-CRITIC integrating various single indicators and combining IDW technology in GIS. Based on this, the study area was broadly classified into three categories: appropriate zone (less constraint), moderately appropriate zone (moderate constraint), and inappropriate zone (severe constraint). The results have demonstrated that the central part and southeastern of the study area showed high suitability zone accounting for nearly 43.17%, in the western portion of the study area showed moderate suitability zone accounting for nearly 18.85% which need careful irrigation. In contrast, the upper part of the study area occupying 37.98% had very unsuitable water for irrigation and extremely poor water quality, which was caused by various sources, including intensive agricultural activities, densely populated living areas, especially richly historied industrial activities such as mining. Overall, the study area was dominated by high suitability areas for irrigation, and water quality safety in some areas requires careful consideration.

Fig. 8
figure 8

Spatial distribution of the Water Quality Index (WQI) for the groundwater in the region (Class 1: good irrigation water quality; Class 2: permissible irrigation water quality; Class 3: useless for use as irrigation water)

Discussion

The degradation of the groundwater quality mainly on account of coal mining pollution significantly raised dissolution and mineralization of aquifer matrix. The research area is located in an area with a concentration of coal mining, and which in totality reflects a high concentration in the north of China. The groundwater exhibits high salinity, high alkalinity, and almost neutral pH, which is a distinctive feature of the mining area (Mansilha et al., 2021). During coal mining, the original strata and water flow channel are affected and destroyed in the aquifer surrounding the deposit, leading to a weakening of the aquifer. A roadway forms centered on the pressure drop funnel, exacerbating water–rock action during mine water migration, resulting in the generation and release of pollutants. Moreover, the mining changes the original reduction environment and replaces a closed system with an open or semi-open system in groundwater of the coal mining region. Under the combined action of air, water and bacteria, nodular siderite and pyrite (primarily pyrite) in the coal form acid mine wastewater (Burri et al., 2019), which penetrates into the groundwater system through irrigation flow back and channel cracks and pores, leading to contamination of the ambient groundwater. In addition, the long exposure of unwanted and uneconomic materials dumped near mines are exposed to rain or other surficial water, which also leads to the leaching of pollution, which in turn causes a potential threat to groundwater safety.

The pH of groundwater affected by acid mine wastewater is generally weakly acidic. As an example, the pH range of spring water samples around the Onzawa mine in Akita Prefecture, Japan was 6.3–6.7 (Nishimoto et al., 2021). The acid groundwater in Figueira city, Paraná State, Brazil (Galhardi & Bonotto, 2016), was probably attributed to acid mine drainage generation and infiltration, resulting in pH values in the range of 2.94–6.63. Variance to the observations of previous studies about the low pH in groundwater, it is notable that our findings reflected an almost neutral pH. A popular explanation is the insufficiency of pyrites in particular layers and the preponderance of carbonate minerals (Singh, 1988). The share of carbonate minerals in the main mining horizon of the region comprised 40–90%, and thus, may constitute a reasonable justification.

The research area is positioned in the regional watershed, surface water systems are scarce, so the principal source of provision is groundwater. However, the drastic increase in water costs is around 61% of the entire region’s agricultural irrigation areas and underdevelopment of regional surface water results in the use of unconventional free water sources. Unfortunately, water of marginal value, such as groundwater influenced by coal mining, is often considered a possible choice in agriculture. The consequences of impacted adjacent water bodies and farmland over 10 km from its origins are brought by permanent and unregulated use of contaminated water, apparently lead to decreasing crop yields, degradation of soil characteristics, and serious environmental and health damage. In Highveld coal fields that introduced acidic water into the groundwater system, rivers and marshes for decades have recorded SO42− values over 7000 mg/L and pH < 2 (Burri et al., 2019).

The results in this research demonstrated that irrigation indicators data for this coal gathering area have unacceptable index values, and the quality is affected by high salinity and alkalinity, requiring careful consideration of irrigation activities. If the soil is satisfactory in terms of leaching and drainage, irrigation is feasible. Alternatively, the impact can be prevented by designing effective pre-treatment methods to reduce groundwater salinity and alkalinity, such as ion exchange, membrane separation, electrodialysis, precipitation, reverse osmosis and adsorption, or the selection of plants with good salt tolerance to reduce the risk of salinity damage.

Conclusions

This study provided a deep analysis of 71 shallow groundwater samples near 12 coal mines in the Huaibei Plain. Conventional hydrochemistry methods and principal component analysis were utilized to investigate the hydrogeochemical characteristics and controlling factors of these groundwater samples. Additionally, an evaluation of irrigation suitability was also conducted through the implementation of the AHP-CRITIC integrated weighting method.

  • The concentrations of TH, TDS, SO42−, Na+, F were higher than the allowable limit (groundwater class III water standard) and the over-standard rates were 40.85%, 43.66%, 40.85%, 46.48%, and 64.79%, respectively. Major ion concentrations were greater in the northeastern region than in the southern region Meanwhile, the groundwater quality was more deteriorated as the sampling point was closer to the field of coal mine. Majority of groundwater samples are dominated by Ca-HCO3, Na-Cl, and the mixed type. The ion ratio coefficient and PCA revealed that water–rock interaction was the main process controlling groundwater chemistry. Mining activities can accelerate water–rock interactions and affect water quality.

  • According to groundwater irrigation suitability zonation map, the study area was dominated by high suitability irrigation zones occupying 43.17% of the area, while moderate and medium suitability zones occupy 18.85% and 37.98%, respectively. The high-salinity and alkalinity of groundwater in this study area may originate from the enhanced dissolution and mineralization of water–rock interactions and leakage of acid mine wastewater, due to mining and the sampling time located in the winter season when freshwater is scarce. Hence, proper treatment of groundwater, adequate drainage installation and salt-tolerance cropping patterns are needed to mitigate suitability limitation for irrigation purpose.