Introduction

Globally, groundwater serves as a fundamental lifeline for agricultural, industrial, and domestic water requirements, constituting approximately 97% of the planet’s freshwater resources1,2. However, these vital systems face unprecedented threats from escalating anthropogenic pressures, climate change impacts, and unsustainable resource management strategies3,4. Groundwater contamination in semi-arid agricultural regions represents one of the most pressing water security challenges of the 21st century, with nitrate pollution being particularly prevalent in intensive agricultural areas worldwide5,6,7. Several large aquifers in arid and semi-arid areas have experienced severe nitrate pollution due to the impacts of intense agriculture, for example in the northern Mexico, southwest United States, India, and the North China Plain8,9,10,11,12, illustrating the consequences of poor groundwater management.

The global groundwater landscape exhibits significant spatial and temporal heterogeneity, with contamination risks intensifying across diverse regions. Recent comprehensive assessments reveal the alarming state of global groundwater systems, with approximately 50% experiencing significant degradation8,9. Agricultural practices contribute to over 70% of groundwater contamination in developing regions, primarily through intensive fertilizer application, irrigation return flows, and inadequate waste management10,11,12,13,14,15,16,17. In India’s Punjab region, for instance, decades of agricultural intensification have resulted in groundwater nitrate levels exceeding 100 mg/L in some districts—ten times the WHO’s recommended limit—affecting both crop productivity and human health13,14.

Evaluating irrigation water quality necessitates sophisticated analytical frameworks that integrate multiple physicochemical parameters18,20. Traditional singular metrics like Electrical Conductivity (EC) or Sodium Adsorption Ratio (SAR) provide limited insights, while contemporary approaches such as the Irrigation Water Quality Index (IWQI) enable comprehensive assessment through the mathematical integration of multiple water quality parameters, weighted according to their relative importance for agricultural applications21,22,23,24,25,26. The IWQI methodology has demonstrated particular utility in regions like southern Brazil and northern China, where it has helped identify groundwater bodies unsuitable for irrigation despite meeting individual parameter thresholds27,28.

Nitrate contamination represents a critical concern in agricultural groundwater systems with profound implications across multiple ecological dimensions29,30,31. Physiologically, elevated nitrate concentrations can induce oxidative stress in crops, disrupt nutrient uptake mechanisms, and potentially generate phytotoxic nitrite compounds when metabolized under anaerobic conditions29,31,32,33,34. In Spain’s Campo de Dalías region, excessive groundwater nitrate levels (> 50 mg/L) have been directly linked to decreased tomato yields, altered soil microbial communities, and contamination of coastal ecosystems35. These impacts extend beyond immediate agricultural concerns, contributing to broader environmental challenges including groundwater-dependent ecosystem degradation36,37,38.

The Hennaya Plain exemplifies the critical intersection of agricultural productivity and water resource vulnerability in semi-arid environments. This region, like many similar agricultural landscapes worldwide, has experienced intensifying groundwater dependency as surface water resources become increasingly unreliable due to climate variability39,40. Understanding contamination patterns in such regions has global significance, as similar hydrogeological and agricultural conditions exist across Mediterranean, Middle Eastern, and North African regions41,44.

Despite numerous studies examining groundwater quality in agricultural regions, significant knowledge gaps persist regarding the seasonal dynamics of multiple contaminants and their integrated effects on irrigation water suitability. Previous research typically focuses on either isolated quality parameters or single-season assessments, failing to capture the complex temporal variations that characterize groundwater systems in semi-arid agricultural landscapes42,43,44. Additionally, while numerous studies have characterized individual contaminants like nitrates or salts, few have implemented integrated analytical frameworks that simultaneously evaluate multiple quality parameters in relation to irrigation suitability41,43,44. This research gap is particularly pronounced in North African agricultural plains, where limited long-term monitoring programs and fragmented data collection efforts have hindered comprehensive understanding of groundwater quality dynamics.

This study introduces a novel integrated approach for irrigation water quality assessment that addresses limitations in conventional methodologies. While previous studies have typically focused on either general water quality indices or specific contaminants, this approach combines comprehensive IWQI analysis26 with detailed nitrate contamination evaluation. The novelty of this work lies in an integrated methodology that enables simultaneous evaluation of both overall irrigation suitability and specific contamination concerns, providing more nuanced insights than single-parameter or single-index approaches. Furthermore, the seasonal comparative analysis addresses critical gaps in understanding temporal dynamics of groundwater quality in semi-arid agricultural settings. Geographic Information System (GIS) technologies enhance this integration by enabling spatial interpolation of point-based measurements, detection of contamination hotspots, visualization of temporal trends, and identification of correlation patterns between land use and water quality metrics capabilities far beyond traditional statistical analyses48.

The research addresses four critical objectives with broad applicability to semi-arid agricultural regions globally: (1) comprehensively assessing groundwater quality using multiple complementary methodologies; (2) quantifying spatial and temporal variations in irrigation water characteristics; (3) establishing a robust framework for sustainable water resource management in agriculturally intensive landscapes; and (4) evaluating potential ecological and agricultural risks associated with current groundwater use patterns. This investigation aims to contribute a more nuanced understanding of groundwater quality challenges in agricultural environments and generate valuable insights for sustainable water resource management applicable across similar hydrogeological and climatic contexts worldwide.

Materials and methods

Study area

The Hennaya Plain is situated near of Tlemcen city (North-West Algeria) and extends in a slightly north-south direction (Fig. 1). The plain is delimited by Wadi Isser to the north, the Tlemcen Mountains to the south, Wadi Sikkak to the east, and Wadi Khalouf to the west. The region subjects a semi-arid Mediterranean climate, with monthly temperatures varying from 16.85 to 18.5 °C (average: 17.8 °C) and annual rainfall averaging 395.2 mm. The topography of the Hennaya Plain is predominantly flat, characterized by a gentle slope of approximately 2%, descending from an elevation of 450 m at the southern boundary to approximately 188 m at the northern limit. Notably, the slope increases to 2–5% on the dropping cones of river deposits40,48. The primary hydrogeological feature in the region is the Mio-Plio-Quaternary aquifer of the Hennaya Plain, which serves as a crucial water source48 (Fig. 2a). The aquifer is recharged primarily through subsurface flow from the Tlemcen Mountains in the south48, complemented by direct precipitation infiltration. However, the aquifer faces several sustainability challenges, including increasing agricultural withdrawals and climate-driven precipitation variability that affects natural replenishment rates. Additionally, the shallow depth of the aquifer in the northern Sect.39 (Fig. 2b) makes it particularly vulnerable to surface contamination from agricultural activities and urban runoff48.

In recent years, the Hennaya Plain has undergone significant agricultural development, with a predominant focus on citrus fruit cultivation (Fig. 1b). This shift in land use and economic activities underscores the growing importance of the region’s agricultural sector. Studying this expanded area will provide valuable insights into the intricate interplay between climatic conditions, aquifer dynamics, and the evolving agricultural landscape in the Hennaya Plain.

Fig. 1
figure 1

(a) Geographical Context of the Study Area; (b) Land use. Maps were generated using QGIS (version 3.30.1, https://qgis.org).

Fig. 2
figure 2

Hydrogeological Context of the Study Area. (a) Hydrogeological Map Describing the Different Aquifer Formations (generated using QGIS version 3.30.1, https://qgis.org); (b) Geological Sections of the Aquifer System (created using Inkscape version 1.2, https://inkscape.org).

Methods

Groundwater sampling and physicochemical analyses

A comprehensive sampling campaign was conducted across the study area, encompassing thirty-nine (n = 39) distinct irrigation water sources. Sampling points were strategically selected based on multiple criteria including hydrogeological conditions, land use patterns, agricultural intensity, and proximity to known pollution sources. Site selection was further validated using preliminary field surveys and historical water quality data to ensure representative coverage of the aquifer system. The sampling strategy was designed to capture both seasonal variations during dry (July-August 2023) and wet periods (February-March 2024), as well as spatial heterogeneity, ensuring a representative assessment of the region’s water quality dynamics.

This systematic approach ensures that the sampling network effectively captures the spatial variability of water quality parameters across the study area. The investigation focused on 11 key physicochemical parameters: pH, temperature (T), total dissolved solids (TDS), electrical conductivity (EC), magnesium (Mg2+), sodium (Na⁺), calcium (Ca2+), chloride (Cl), bicarbonate (HCO3), sulfate (SO42−), and nitrate-nitrogen (NO3–N), aiming to provide an overall understanding of water adequacy for irrigation purposes and to characterize groundwater chemistry evolution.

The sampling protocol adhered to standard methods of American Public Health Association (APHA)49 and involved collection in sterile 250 mL polyethylene vessels, pre-cleaned with deionized water and rinsed three times with sample water before collection. Samples were preserved at 4 °C during transportation and analyzed within 48 h of collection to minimize potential changes in chemical composition. In-situ measurements were conducted for temperature and pH using a calibrated EXTECH pH meter (accuracy ± 0.01 pH units, ± 0.1 °C), while EC and TDS were determined using an Isolab Multiparameter analyzer (accuracy ± 1% full scale).

The ionic composition analysis was performed through ion chromatography techniques using METROHM Model 881 compact IC Pro at the National Water Resources Agency’s (ANRH) analytical chemistry laboratory, following sample filtration through 0.45 μm PVDF membrane filters. Instrument calibration was performed daily using certified reference standards, and detection limits for analyzed ions ranged from 0.01 to 0.05 mg.L−1 depending on the specific parameter.

Rigorous quality control measures were implemented throughout the analytical process. These included analysis of field blanks, equipment blanks, and trip blanks (one per 10 samples) to assess potential contamination during sampling, transportation, and analysis. Duplicate samples (10% of total samples) were analyzed to evaluate analytical precision, with relative percent differences maintained below 10%. Laboratory control samples and matrix spikes were analyzed to assess accuracy, with recovery percentages between 90 and 110% considered acceptable. The analytical quality was further verified by ensuring that the ionic balance error (Eq. (1)) remained within the acceptable range of ≤ 5% for all samples21,50,51. Certified reference materials from the National Institute of Standards and Technology were analyzed alongside the samples to validate the analytical methodology.

$$CBE=\left[ {\frac{{\mathop \sum \nolimits_{{}}^{{}} \left( {Cations} \right) - \mathop \sum \nolimits_{{}}^{{}} \left( {Anions} \right)}}{{\mathop \sum \nolimits_{{}}^{{}} \left( {Cations} \right)+\mathop \sum \nolimits_{{}}^{{}} \left( {Anions} \right)}}} \right] \times 100~~~$$
(1)

.

Data analysis

The analytical data were systematically evaluated against the irrigation water quality guidelines established by the Food and Agriculture Organization of the United Nations (FAO), as detailed in Table 1, providing a standardized framework for systematic assessment of water quality parameters and their potential impacts on agricultural applications.

Table 1 Guideline of irrigation water quality31.
$$\:SAR=\:\frac{{Na}^{+}}{\sqrt{{(Ca}^{2+}+{Mg}^{2+})/2}}$$
(2)

where all ion concentrations expressed in (meq.L−1).

The research methodology integrated multiple advanced analytical approaches to comprehensively evaluate irrigation water quality. Spatial data visualization and interpolation were conducted using QGIS (version 3.30.1, https://qgis.org). Ordinary Kriging was selected as the optimal interpolation method due to its unique advantages for groundwater quality assessment: (1) it accounts for the natural spatial continuity of hydrogeological parameters through variogram analysis, (2) provides uncertainty quantification through kriging variance, and (3) incorporates directional trends in groundwater flow through anisotropic modeling. The method’s implementation involved rigorous variogram analysis and model selection through cross-validation, ensuring robust spatial predictions while maintaining physical meaningfulness59,60.

Statistical methods

The hydrochemical data analysis employed three complementary statistical approaches for geochemical interpretation. Pearson correlation matrices were used to identify significant linear relationships between parameters, with correlation coefficients (r) indicating strength and direction of associations between geochemical variables (p < 0.05)61. Principal Component Analysis (PCA) reduced dataset dimensionality while maximizing variance explanation, transforming correlated variables into uncorrelated principal components; the resulting biplots displayed both variable loadings and sample scores on the first two factorial planes, facilitating identification of dominant geochemical processes and spatial patterns45,46,47. Hierarchical Cluster Analysis (HCA) using Euclidean distance and Ward’s minimum variance method identified natural groupings among parameters, represented as dendrograms with dissimilarity thresholds. This approach revealed parameter associations and geochemical process integration across different conditions, providing insights into the relationships between water quality variables and underlying hydrogeochemical mechanisms61,62. This analysis was performed using XLSTAT.

Irrigation water quality index (IWQI)

The Irrigation Water Quality Index (IWQI) is a comprehensive quantitative approach designed to evaluate the suitability of water resources for agricultural irrigation26. This index integrates multiple water quality parameters into a single numerical value, providing a holistic assessment of water quality that can guide irrigation management decisions.

The IWQI incorporates critical water quality parameters, including Electrical Conductivity (EC), Sodium Adsorption Ratio (SAR), Sodium concentration, Chloride concentration, and Bicarbonate concentration. These parameters were carefully selected to capture the various chemical and physical characteristics that potentially impact crop growth and soil health63,64. This index is calculated using a weighted aggregation methodology (Eq. 3)26:

$$\:IWQI={\sum\:}_{i=1}^{n}wi\bullet\:qi\:$$
(3)

.

where \(\:wi\) represents the weight of each parameter, and\(\:\:qi\) represents the sub-index value.

The sub-index (\(\:qi\)) calculation method involves transforming each water quality parameter into a standardized (Table 2) value using the following equation (Eq. (4))26,64,65:

$$\:qi=\left(qi\right)max-\:\left[\left(xij-xinf\right)\times\:\frac{\left(qi\right)amp}{x\:amp}\right]$$
(4)

.

where \(\:\left(qi\right)max\) is the highest possible \(\:qi\) value for the category of particular\(\:\:i\) parameter, the variable \(\:xij\) is the actual measured value of the parameter in a water sample, \(\:xinf\) denotes the lower limit of the parameter’s designated class, \(\:\left(qi\right)amp\) represents the full range of values for the parameter within its defined grading class, calculated by determining the difference between the highest and lowest permissible values, and \(\:x\:amp\) is the class amplitude to which the factor belongs.

Table 2 Parameter’s values for the sub-index (\(\:qi\)) measurement calculation26.

The weights \(\:wi\) represents the normalized values assigned to various water parameters26. These weights are calculated for each factor to reflect their relative impact on water quality. Table 3 exhibits the weighting of IWQI factors.

Table 3 Weights assigned (\(\:wi\)) to parameters26.

The IWQI represents a dimensionless measure varying from 0 to 100 and is classified into 5 classes defined according to specific ranges of IWQI values, taking into account the salinity issue risk, decline in water penetration into the soil, and toxicity to plants26,66.

Interpretation of the IWQI follows structured guidelines: values below 55 indicate water unsuitable for irrigation and requiring significant remediation, values between 55 and 70 suggest conditional suitability with careful management needed, and values of 70 or above represent highly suitable irrigation water with minimal constraints.

Importantly, the methodology acknowledges its own limitations. Regular recalibration of parameter weights is recommended to account for changing local agricultural conditions. Additionally, the index should be used in conjunction with supplementary assessments of specific crop tolerances and considerations of seasonal variations in water quality. This approach ensures a dynamic and context-sensitive evaluation of irrigation water resources.

Integrated IWQI and NO3 –N

This study presents a comprehensive methodological framework for assessing irrigation groundwater quality through the integration of two critical parameters: the Irrigation Water Quality Index (IWQI) and nitrate concentration levels. The methodology was implemented in the Hennaya Plain region, an area characterized by significant groundwater nitrogen contamination39. The assessment framework employs a dual-criteria classification system that combines spatial distribution analysis of both IWQI values and nitrate-nitrogen (NO3–N) concentrations to determine water quality categories. Importantly, this approach adopts a conservative assessment principle where the final classification is always determined by the most restrictive criterion between IWQI and nitrate concentration.

The classification system operates through a hierarchical decision matrix based on the following criteria:

  1. 1.

    Unsuitable Quality: Defined by either IWQI < 55 OR NO3N > 30 mg.L−1 (the presence of either unsuitable condition leads to an unsuitable classification).

  2. 2.

    Moderate Quality: Occurs in two scenarios:

  • When IWQI is between 55 and 70 AND NO3N ≤ 30 mg.L−1;

  • When IWQI > 70 AND NO3–N is between 5 and 30 mg.L−1.

  1. 3.

    Good Quality: Requires concurrent achievement of two conditions:

  • IWQI > 70 AND;

  • NO3N < 5 mg.L−1 (both criteria must be met for good quality classification).

This integrated approach provides a more robust evaluation framework compared to single-parameter assessments, incorporating both general irrigation water quality parameters (through IWQI) and specific nitrogen pollution indicators, always defaulting to the most conservative assessment. The following flowchart illustrates the systematic decision-making process of this assessment methodology (Fig. 3):

Fig. 3
figure 3

Flowchart Illustrating the Proposed Methodology for Comprehensive Assessment of the Groundwater’s physicochemical Quality.

Results

General physicochemical characteristics

Table 4 presents the descriptive statistical analysis of physical parameters and chemical elements (cations and anions) in groundwater samples from the Hennaya plain during dry and wet periods, including maximum values, minimum values, means, standard deviations, and coefficients of variation.

Table 4 Statistical overview of groundwater physicochemical parameters in Hennaya plain.

Groundwater samples from the study area displayed distinct physicochemical patterns across seasons. pH values remained near-neutral (7.15–8.41) with decreased variability during wet conditions (coefficient of variation: 5.04–2.05%). This slight alkalinity likely reflects influences from carbonate minerals and local geological formations. Total Dissolved Solids (TDS) and Electrical Conductivity (EC) decreased during wet periods from means of 1272.18 to 1166.11 mg·L−1 and 1631 to 1495 µS·cm−1, respectively, suggesting dilution effects from precipitation and enhanced groundwater recharge. The moderate variation indicates a stable hydrochemical system with effective buffering capacity.

Seasonal variation in major cations

The major cation composition showed marked seasonal changes, with different elements responding distinctly to hydrological conditions. Sodium concentrations decreased dramatically from a maximum of 450.6 mg·L−1 in dry conditions to 150.66 mg·L−1 during wet periods, with variation coefficients declining from 24.65 to 7.92%. This significant shift likely results from seasonal ion exchange processes and hydrological mixing that particularly affect sodium mobility in the aquifer system. In contrast, calcium and magnesium concentrations remained relatively stable (variation coefficients: 10.62–13.68%), indicating consistent mineral-water interactions throughout the seasons67.

Anion dynamics across seasons

Among anions, chloride demonstrated the greatest variability, with concentrations ranging from 133.56 to 915.2 mg·L−1 during dry conditions to 130.25–545.6 mg·L−1 in wet periods. The variation coefficient decreased from 62.14 to 37.86%, reflecting complex interactions between geological sources, potential anthropogenic inputs, seasonal precipitation patterns, and groundwater dynamics. Unlike chloride’s pronounced variability, sulfate and bicarbonate maintained consistent mean concentrations with low variation coefficients, suggesting chemical stability and effective buffering mechanisms within the water system68,69.

Nitrogen compounds and agricultural influence

Beyond the major ions discussed above, nitrate-nitrogen concentrations also showed seasonal patterns that merit specific attention. Concentrations ranged from 12.79 to 49.08 mg·L−1, with moderate seasonal variations (variation coefficients: 28.86% in dry periods, 18.51% in wet conditions). These variations potentially indicate agricultural inputs and nitrogen cycle dynamics influenced by seasonal changes in precipitation and groundwater recharge32.

This comprehensive analysis reveals complex hydrogeochemical processes within the Hennaya plain aquifer system. The seasonal variations, particularly in sodium and chloride concentrations, indicate sensitivity to environmental changes, while stable pH values and consistent behavior of certain ions suggest underlying geochemical buffering mechanisms. These findings highlight the importance of temporal monitoring to understand groundwater dynamics in the region70. The observed patterns reflect both natural hydrogeological processes and potential anthropogenic influences, including agricultural activities and urban development in the region.

Sources identification of dissolved ions using multivariate statistical analysis

To better understand the hydrogeochemical processes and identify the potential sources of dissolved ions in the Hennaya plain groundwater, multivariate statistical techniques including Principal Component Analysis (PCA) and correlation analysis were applied to the hydrochemical data collected during both dry and wet seasons. These techniques help in determining the relationships between various physicochemical parameters and identifying the dominant factors controlling groundwater quality and the origin of contamination.

Correlation analysis

The correlation analysis (Table 5) showed significant relationships between the physicochemical parameters across both seasons. TDS and EC showed a perfect positive correlation (r = 1.000) in both seasons, confirming that dissolved ions are the primary contributors to electrical conductivity. The relationship between TDS and Na⁺ was moderate in the dry season (r = 0.620) and remained substantial in the wet season (r = 0.576), suggesting consistent influence of sodium salts on groundwater mineralization throughout the year. Notably, the correlation between TDS and pH varied considerably between seasons, with a moderate positive correlation in the dry season (r = 0.519) strengthening significantly during the wet season (r = 0.714), indicating enhanced mineral dissolution during rainfall events.

Chloride showed interesting seasonal variations in its relationships with other parameters. In the dry season, Cl exhibited strong correlation with TDS (r = 0.714) and moderate correlation with Na⁺ (r = 0.521) and NO3–N (r = 0.491), suggesting common sources. However, in the wet season, Cl showed negligible correlation with TDS (r = 0.009) while maintaining significant correlations with Na⁺ (r = 0.515) and developing stronger associations with NO3–N (r = 0.577) and Ca2+ (r = 0.408), indicating a shift in hydrochemical processes and possibly enhanced anthropogenic inputs during the rainy period.

Nitrate correlations exhibited the most dramatic seasonal changes, reflecting its dynamic behavior in groundwater. In the dry season, NO3–N showed moderate positive correlation with Cl (r = 0.491) and Ca2+ (r = 0.381), with a negative relationship with Mg2+ (r = -0.456). During the wet season, NO3–N developed strong positive correlations with multiple parameters including SO42− (r = 0.723), TDS/EC (r ≈ 0.60), Na⁺ (r = 0.499), Cl (r = 0.577), and even Mg2+ (r = 0.588), suggesting widespread nitrate contamination during rainfall events due to increased leaching of agricultural fertilizers.

Bicarbonate consistently showed negative correlations with most parameters across both seasons, with particularly strong negative associations with pH in the dry season (r = -0.646) and with TDS/EC (r = -0.630) and Na⁺ (r = -0.645) in the wet season, indicating that carbonate dissolution processes are inversely related to overall mineralization, possibly due to competing ion effects or dilution during recharge events.

Table 5 Correlation matrix of physicochemical parameters of groundwater.

Principal component analysis (PCA)

PCA was performed to identify the major factors controlling groundwater chemistry during both dry and wet seasons. Five principal components were extracted in each case, collectively explaining approximately 83.5% of the variance in the dry season and 84.3% in the wet season (Table 6).

Factor 1 (F1) emerged as the dominant component, explaining 30.6% of the variance in the dry season and 35.5% in the wet season. This factor primarily represents mineral dissolution processes and natural geochemical evolution of groundwater. In both seasons, F1 showed strong positive loadings for TDS (0.820–0.929), EC (0.819–0.929), and pH (0.839 − 0.756), with strong negative loadings for HCO3 (-0.780 to -0.781). This consistent pattern indicates the significant influence of water-rock interactions throughout the year. Notably, NO3–N exhibited contrasting behavior, with a negative loading in the dry season (-0.306) transforming to a strong positive loading in the wet season (0.742), suggesting that nitrate becomes a significant component of the mineral content during rainfall events due to increased leaching.

Factor 2 (F2), explaining 23.5% and 21.5% of the variance in dry and wet seasons respectively, primarily represented anthropogenic pollution sources. This factor maintained strong positive loadings for Cl (0.766–0.841), Ca2+ (0.638–0.651), and NO3–N (0.752 − 0.554) across both seasons, with consistent negative loadings for Mg2+ (-0.567 to -0.616). This pattern confirms the year-round influence of agricultural activities involving nitrogen fertilizers. The stability of this factor across seasons suggests persistent anthropogenic pressure on the aquifer system.

Factor 3 (F3), accounting for 12.8% and 10.9% of the variance in dry and wet seasons respectively, showed the most dramatic seasonal contrast. Temperature exhibited strong but opposite loadings between dry (-0.712) and wet (0.803) seasons. This reversal highlights the significant impact of seasonal climatic variations on groundwater thermal dynamics and associated hydrochemical processes, including reaction rates and microbial activity that may influence contaminant transformation.

Factors 4 and 5 (F4, F5) explained smaller portions of the variance (9.5% and 7.1% in the dry season; 9.3% and 7.1% in the wet season) and showed variable patterns between seasons, representing more localized or intermittent influences on groundwater chemistry. Factor 4 showed moderate loadings for Mg2+ in both seasons (0.673 in dry and 0.446 in wet), while Factor 5 exhibited notable loadings for Ca2+ (0.699) in the wet season.

Table 6 Factorial loadings of extracted eigenvalues in PCA.

Projection on factorial plane CP1-CP2

In both seasons, the F1-F2 factorial plane explains a substantial portion of total variance (54.14% in dry season vs. 56.99% in wet season). The F1 axis consistently shows strong positive loadings for EC and TDS (0.819/0.820 in dry season; both 0.929 in wet season), confirming their dominant role in groundwater mineralization. pH maintains significant positive loadings on F1 across seasons (0.839 in dry, 0.756 in wet), while HCO3 shows persistent strong negative loadings (-0.780 in dry, -0.781 in wet) (Fig. 4).

The most notable seasonal shift occurs with NO3–N, which transitions from primarily associating with F2 (anthropogenic sources) in the dry season (0.752) to showing stronger association with F1 (0.742) in the wet season. This indicates rainfall events significantly enhance nitrate mobilization, integrating this contaminant into the overall mineralization pattern. The F2 axis remains primarily defined by Cl and Ca+ 2 in both seasons, though with varying loadings.

Sample distribution patterns change significantly between seasons. During the dry season, GWS-22 appears as an outlier with high F2 scores indicating anthropogenic pollution, while GWS-31, GWS-34, and GWS-35 show high F1 scores suggesting enhanced natural mineralization (Fig. 4a). In contrast, the wet season reveals extreme pollution hotspots at GWS-29, GWS-28, and GWS-27 with very high F2 scores (5.1, 3.9, and 3.8 respectively), while GWS-35, GWS-36, and GWS-31 exhibit high F1 scores (Fig. 4b). The increased variance explained in the wet season and greater sample dispersion suggest that recharge events amplify differences in mineralization patterns across the study area.

Fig. 4
figure 4

Projections of variables and individuals on factorial axes PC1-PC2. (a) Dry Season ; (b) wet Season.

Hierarchical cluster analysis (HCA)

The hierarchical cluster analysis shows significant structural changes between seasons (Fig. 5). In the dry season (dissimilarity level ~ 1.6), three main clusters form: (1) TDS, EC, T, pH and SO4− 2 form a group defining overall groundwater characteristics; (2) a cluster containing two subgroups - one representing salinization processes (Na+, Cl) and another representing agricultural influence (Ca+ 2, NO3–N); and (3) a couple (HCO3, Mg+ 2) remains completely separate (Fig. 5a).

The wet season dendrogram (dissimilarity level ~ 1.2) (Fig. 5b) shows a modified pattern: TDS and EC maintain their close association with pH, but this association now clusters with Mg+ 2. A more complex cluster emerges including SO4− 2, NO3–N, Cl, Ca+ 2, and Na+, indicating more integrated hydrochemical processes. While HCO3 continues to show distinct behavior, it forms connections at a lower dissimilarity level than in the dry season.

The most notable seasonal difference is the reorganization of NO3–N, Cl, and Ca+ 2 associations, showing tighter integration with other parameters during the wet season. The lower overall dissimilarity levels in the wet season indicate greater parameter integration, likely due to the homogenizing effect of recharge waters. Additionally, pH’s shifting position between seasons reflects changes in mineral dissolution processes under different hydrological conditions. These changes demonstrate how seasonal hydrological variations fundamentally alter the interactions between dissolved ions in groundwater, highlighting the importance of temporal monitoring for comprehensive hydrochemical characterization of the Hennaya plain.

Fig. 5
figure 5

Dendrograms of variable classes. (a) Dry Season ; (b) wet Season.

Evaluation of irrigation water quality based on FAO standards

The groundwater quality assessment provided comprehensive insights into the physicochemical characteristics across two distinct sampling periods (dry and rainy seasons), evaluated against current Food and Agriculture Organization (FAO) irrigation water standards31. Figure 4 presents the descriptive statistical analysis of key water quality parameters, highlighting seasonal variations.

pH and electrical properties

pH levels demonstrated minimal seasonal variation, with mean values of 7.63 during the dry period and 7.31 during the rainy season (Fig. 6a). These values consistently fell within the optimal range recommended by FAO guidelines for irrigation water. Electrical conductivity (EC) (Fig. 6b) and total dissolved solids (TDS) (Fig. 6c) exhibited similar seasonal patterns, with higher concentrations during the dry period (1631 µS·cm−1 and 1272.18 mg·L−1, respectively) compared to the rainy season (1495 µS·cm−1 and 1166.11 mg·L−1, respectively). This seasonal reduction can be attributed to dilution effects from precipitation during the rainy season.

Nutrient and ion concentrations

Nutrient and ion concentrations revealed complex groundwater chemical dynamics across sampling periods:

Nitrate-nitrogen (NO3–N) concentrations exhibited significant seasonal fluctuation, with mean levels of 24.06 mg·L−1 in the dry season increasing to 32.36 mg·L−1 in the wet period (Fig. 6d). Notably, the percentage of samples exceeding FAO standards increased dramatically from 12.82% during the dry season to 69.23% during the rainy season. This substantial increase suggests intensified leaching of nitrogen compounds from agricultural soils and potential contamination from untreated domestic wastewater during periods of higher precipitation.

Chloride (Cl) analysis demonstrated higher mean concentrations during the dry season (303.53 mg·L−1) compared to the rainy period (263.42 mg·L−1) (Fig. 6e). The proportion of samples surpassing recommended thresholds decreased from 23.07% in the dry season to 10.26% in the rainy season, indicating dilution effects during periods of higher rainfall.

Bicarbonate (HCO3) levels remained relatively consistent between seasons, with mean concentrations of 442.69 mg·L−1 and 439.53 mg·L−1 in the dry and rainy periods, respectively (Fig. 6f). The majority of samples complied with FAO standards, with only 15.38% and 7.69% of samples from dry and wet seasons, respectively, exceeding these standards.

Sodium adsorption ratio and anthropogenic influences

Sodium Adsorption Ratio (SAR) values ranged from 3.46 to 9.5 during the dry season and narrowed to 2.73–3.67 during the wet period (Fig. 6g). While most samples adhered to FAO standards, one sample (GWS-29) deviated significantly from the recommended guidelines, highlighting localized water quality concerns potentially linked to specific land use practices or geological factors.

The analysis revealed that nitrate-nitrogen and chloride concentrations consistently exceeded quality standards across both seasons, strongly indicating significant anthropogenic interference in groundwater composition. The elevated nitrate levels, particularly during the rainy season, suggest intensive agricultural activities involving nitrogen-based fertilizers in the study area. This seasonal pattern indicates that rainfall events mobilize accumulated nitrates in the soil zone, transporting them to the underlying aquifer. Additionally, the spatial distribution of these contaminants correlates with areas of dense human settlement and agricultural intensification, further substantiating the anthropogenic origin of these pollutants.

These findings underscore the critical impact of human activities (specifically agricultural practices, wastewater disposal, and urban development) on regional groundwater chemistry. The results emphasize the urgent need for implementing comprehensive water resource management strategies, including improved agricultural practices, wastewater treatment facilities, and regular monitoring programs to safeguard groundwater quality for sustainable irrigation use.

Fig. 6
figure 6

Box Plots Showing the Distribution and Exceedance of Physicochemical Elements of Irrigation Water Quality in Groundwater Samples. (a) pH ; (b) EC ; (c) TDS ; (d) NO3–N ; (e) Cl ; (f) HCO3 ; and (g) SAR.

Spatiotemporal dynamics of groundwater chemical characteristics

The investigation unveiled intricate spatiotemporal variations in groundwater chemical parameters across the Hennaya Plain, employing advanced geospatial and interpolation techniques using QGIS software to generate comprehensive spatial mappings.

Electrical conductivity (EC) variations

Electrical conductivity demonstrated pronounced seasonal fluctuations, revealing complex spatial patterns. During the dry period, EC values oscillated between 1402 and 1850 (µS.cm1) (Fig. 7a), with maximum concentrations predominantly observed in the northern and southern territories. The rainy season presented a contrasting scenario, with EC values ranging from 1359 to 1643 (µS.cm1) (Fig. 7b), characterized by differential spatial distributions. The observed heterogeneity in EC values suggests multifaceted influences, potentially stemming from intricate interactions between climatic conditions, geological substrata, and anthropogenic interventions. These variations underscore the dynamic nature of groundwater systems and their sensitivity to environmental and human-induced transformations.

Sodium adsorption ratio (SAR) dynamics

Sodium Adsorption Ratio exhibited significant temporal variations, reflecting the complex ionic interactions within the groundwater system. The dry period recorded SAR values (Fig. 7c) spanning 3.45 to 9.5, dramatically transitioning to a range of 2.73 to 3.67 during the wet season (Fig. 7d). This substantial reduction suggests nuanced seasonal modifications in sodium concentration and potential ion exchange mechanisms.

The consistent moderate to high sodium content throughout the annual cycle indicates potential implications for soil structure, irrigation efficiency, and long-term agricultural sustainability.

Sodium concentration distribution

Sodium concentrations demonstrated distinctive seasonal and geographical characteristics. During the dry period, sodium levels ranged from 6.07 to 19.58 (meq.L1), with notably high concentrations observed in the middle parts of the plain (Fig. 7e). The wet season presented a different pattern, with sodium values between 4.93 and 6.55 (meq.L1), exhibiting a geographical gradient that progressively increased from the southern to the northern regions (Fig. 7f). The spatial distribution revealed a clear concentration gradient, with sodium levels progressively increasing from the southern territories towards the northern areas. This spatial heterogeneity potentially reflects underlying geological variations, groundwater flow dynamics, and localized hydrogeochemical processes.

Chloride concentration patterns

Chloride levels displayed remarkable spatial consistency across seasonal transitions (Fig. 7g, h), with noteworthy regional variations. Concentration peaks were observed in distinct zones: 600 (mg.L1) in the eastern region, 550 (mg.L1) in the western territories, and a substantial 915 (mg.L1) in the central plain. Conversely, the northern and southern sectors demonstrated the lowest chloride concentrations. The significant chloride concentration variations may strongly correlate be with intensive agricultural practices, particularly the extensive application of chloride-rich fertilizers. These findings underscore the profound anthropogenic influences on groundwater chemical composition.

Bicarbonate distribution characteristics

Bicarbonate distribution presented a unique spatial pattern divergent from other chemical constituents. Consistent across both dry and wet seasons, bicarbonate contents ranged globally between 345.5 mg.L1 and 552.15 (mg.L1) (Fig. 7i, j). Elevated bicarbonate levels were predominantly concentrated in southern zones adjacent to Hennaya city, attributed to the substantial geological contribution from Jurassic carbonate formations of the Tlemcen Mountains. In contrast, northern and central aquifer regions, characterized by coarse alluvial deposits, exhibited markedly lower bicarbonate concentrations.

Fig. 7
figure 7figure 7figure 7

Spatial Distribution of Irrigation Groundwater Quality Parameters: (a, b) Electrical Conductivity (EC) in Dry and Rainy Periods ; (c, d) Sodium Adsorption Ratio (SAR) in Dry and Rainy Periods ; (e, f) Sodium (Na+) in Dry and Rainy Periods ; (g, h) Chloride (Cl) in Dry and Rainy Periods ; and (i, j) Bicarbonate (HCO3) in Dry and Rainy Periods. Maps were generated by QGIS 3.30.1 (https://qgis.org).

Irrigation water quality index (IWQI) analysis

The Irrigation Water Quality Index (IWQI) assessment revealed significant seasonal variations in groundwater suitability for irrigation purposes. During the dry period, IWQI values ranged from 29.25 to 65.35 (Fig. 8a), with a complex distribution of water quality classifications. Specifically, 76.92% of groundwater samples demonstrated moderate pollution, 15.38% exhibited high pollution, and 7.69% were classified as severely polluted. These findings suggest that during the dry season, the groundwater is marginally suitable for irrigation, primarily appropriate for salt-tolerant plants in highly permeable soils26. The central areas of the plain, characterized by intensive agricultural activities, showed the most pronounced pollution concentrations. In contrast, the rainy season demonstrated a notable improvement in water quality (Fig. 8b). All samples were classified as moderately polluted, indicating enhanced suitability for irrigating medium salt-tolerant plants in soils of moderate permeability26. This dramatic shift underscores the substantial impact of seasonal factors on groundwater characteristics. Geospatial analysis using GIS interpolation further validated these observations, revealing distinct spatial patterns of water quality variations. The dry season maps highlighted localized severe pollution zones (Fig. 8c), while the wet season maps showed a more uniform and improved water quality distribution across the study area (Fig. 8d). The research emphasizes the critical relationship between seasonal dynamics and groundwater quality. The significant variations observed suggest that agricultural practices, precipitation patterns, and hydrological processes interact complexly to influence irrigation water suitability. These findings highlight the necessity for adaptive water management strategies, particularly during dry periods when groundwater quality is most compromised. Despite the improvement during wet periods, the persistent moderate pollution level underscores ongoing environmental challenges.

Fig. 8
figure 8

(a, b) Spatial Distribution of Irrigation Water Quality According to IWQI in the Dry and Wet Seasons; (c, d) Categories of Irrigation Groundwater Quality based on IWQI Restrictions in the Dry and Rainy Periods. Maps were generated by QGIS 3.30.1 (https://qgis.org).

Nitrate-Nitrogen (NO3 –N) contamination dynamics

The groundwater analysis revealed complex seasonal variations in nitrate-nitrogen (NO3–N) concentrations, providing critical insights into regional environmental and agricultural dynamics. During the dry period, nitrate levels ranged from 12.79 to 45.53 (mg.L1) (Fig. 9a), indicating moderate to severe contamination potential, with the most pronounced pollution concentrated in the central, agriculturally intensive areas of the plain (Fig. 9c). The wet season demonstrated a notable transformation in spatial distribution and concentration patterns. Nitrate-nitrogen levels increased, fluctuating between 22.14 and 49.05 (mg.L1) (Fig. 9b), with contamination areas expanding to encompass larger portions of the study region (Fig. 9d). This expansion suggests multiple contamination sources and complex hydrological interactions.

Land-use analysis (Fig. 1b) reveals strong spatial correlations between agricultural intensity and nitrate contamination patterns. The central plain, characterized by intensive crop cultivation covering approximately 75% of the study area, exhibits the highest nitrate concentrations consistently across both seasons. Agricultural land-use mapping demonstrates that areas with continuous cropping systems and high fertilizer application rates (> 200 kg N/ha annually) correspond directly to NO3–N hotspots exceeding 40 mg.L−1. Peripheral zones with extensive agriculture and lower fertilization intensity show correspondingly reduced nitrate levels (15–25 mg.L1), establishing a clear contamination gradient from intensive to extensive agricultural areas.

The observed increase in nitrate concentrations during the wet season likely results from precipitation-induced mobilization mechanisms. Increased rainfall appears to facilitate the loading of organic pollutants from surface layers into the aquifer, a phenomenon consistent with established hydrogeological understanding of contaminant transport71,72,73. The observed increase in nitrate concentrations during the wet season likely results from precipitation-induced mobilization mechanisms. Increased rainfall appears to facilitate the loading of organic pollutants from surface layers into the aquifer, a phenomenon consistent with established hydrogeological understanding of contaminant transport71,72,73. Enhanced soil leaching during wet periods promotes the vertical migration of nitrogen compounds through the vadose zone into the saturated aquifer.

Temporal analysis of contamination sources reveals seasonal shifts in nitrate mobilization mechanisms. During dry periods, nitrate contamination primarily reflects accumulated fertilizer residues and soil organic nitrogen mineralization under water-limited conditions. The wet season introduces enhanced leaching of recently applied fertilizers, decomposing organic matter, and mobilization of previously immobilized nitrogen from soil matrices. This seasonal dynamic explains the observed 25–30% increase in average nitrate concentrations during wet periods.

Geospatial analysis using interpolation techniques highlighted the dynamic nature of nitrate distribution. Dry season maps revealed localized pollution hotspots, while wet season representations showed a more widespread contamination pattern, underscoring the significant impact of seasonal environmental conditions on groundwater chemistry. These findings emphasize the need for comprehensive monitoring and targeted interventions to mitigate agricultural and environmental risks associated with nitrate contamination. The research suggests that seasonal variations play a crucial role in nitrate mobility and distribution, highlighting the importance of adaptive management strategies in groundwater protection.

Fig. 9
figure 9

(a, b) Spatial Distribution of Irrigation Water Quality According to NO3–N in the Dry and Wet Seasons ; (c, d) Categories of Irrigation Groundwater Quality based on FAO Standards in the Dry and Rainy Periods. Maps were generated by QGIS 3.30.1 (https://qgis.org).

Integration of irrigation water quality index (IWQI) with Nitrate-Nitrogen distribution

The integration of the Irrigation Water Quality Index (IWQI) with nitrate-nitrogen (NO3–N) distribution represents a novel approach to comprehensively evaluating irrigation water chemistry in this agriculturally intensive region. The research unveils a complex landscape of groundwater quality that transcends traditional single-parameter assessments, revealing intricate spatial and temporal dynamics that have significant implications for agricultural sustainability. The results demonstrate a nuanced pattern of water quality variation across different seasonal contexts. During the dry season, the water quality categories exhibit a heterogeneous distribution, with poor quality dominating the central sectors and moderate quality characterizing the northern and southern regions (Fig. 10a). This spatial variability suggests complex interactions between hydrogeological conditions and anthropogenic influences that shape groundwater chemical composition. The wet season introduces a more pronounced transformation in water quality characteristics. A notable deterioration emerges, with poor quality water predominantly occupying most of the alluvial aquifer system (Fig. 10b). This seasonal shift highlights the dynamic nature of groundwater chemistry, demonstrating how hydrological cycles and environmental factors can rapidly alter water quality parameters. The IWQI analysis revealed critical indicators of groundwater quality, including significant challenges such as high salinity levels, elevated alkalinity, and pronounced groundwater toxicity. These findings point to potential severe consequences for soil health and agricultural productivity. The chemical composition suggests a complex interplay between natural hydrogeological processes and human-induced environmental modifications72. Hydrological processes significantly influence groundwater chemistry dynamics. During dry periods, limited aquifer replenishment concentrates dissolved salts and carbonates, creating a distinct chemical signature. Conversely, the wet season introduces increased aquifer recharge, temporarily diluting these chemical concentrations and creating a more complex hydrochemical environment. Nitrate pollution emerged as a critical component of the integrated assessment. Agricultural practices, particularly the intensive use of nitrogen-rich fertilizers, appear to be a primary driver of groundwater NO3–N contamination. The research demonstrates how soil leaching processes, especially during high precipitation periods, facilitate the rapid transport of nitrogen compounds through the aquifer system. The wet season amplifies the potential for nitrate mobilization, with increased precipitation rates enhancing soil leaching mechanisms. This process promotes the vertical and lateral migration of nitrogen compounds, creating a dynamic system of nutrient transport that extends beyond traditional understanding of groundwater chemistry. The findings underscore the critical need for targeted agricultural management strategies that can mitigate nutrient runoff and groundwater contamination.

This integrated approach provides unprecedented insights into the complex dynamics of irrigation water resources. By simultaneously examining multiple water quality parameters and their seasonal variations, the study offers a more comprehensive understanding of groundwater systems than traditional single-parameter assessments. The observed water quality deterioration, particularly during the wet season, presents significant challenges for sustainable agricultural practices. The research highlights urgent needs for refined agricultural strategies, including more precise fertilization techniques, enhanced soil management approaches, and comprehensive groundwater monitoring programs. These findings have broader implications for regional agricultural sustainability, water resource management, and environmental conservation.

Fig. 10
figure 10

Overall Suitability of Groundwater for Irrigation (a) Dry Season ; (b) wet Season. Maps were generated by QGIS 3.30.1 (https://qgis.org).

Discussion

The present study provides a comprehensive and multidimensional examination of groundwater quality in the region, revealing complex seasonal dynamics of nitrate-nitrogen (NO3–N) concentrations and irrigation water quality index (IWQI). The findings of this research elucidate the intricate interaction between agricultural practices, precipitation regimes, and groundwater contamination, offering critical insights into the environmental challenges facing the study area. Comprehensive source attribution analysis reveals multiple pathways contributing to groundwater nitrate contamination in the Hennaya Plain. Land-use mapping demonstrates strong spatial correlations between agricultural intensity and contamination patterns, with the central agricultural zone covering approximately 75% of the study area exhibiting consistently highest nitrate concentrations across both seasons. Areas characterized by intensive crop cultivation and fertilizer application rates exceeding 200 kg N/ha annually correspond directly to nitrate hotspots surpassing 40 mg.L1, while peripheral zones with extensive agriculture show reduced levels (15–25 mg.L1), establishing a clear contamination gradient. Seasonal variations in groundwater quality demonstrated significant and nuanced dynamics. Nitrate concentrations showed an atypical pattern, increasing during the wet season, contrary to the dilution effect observed for other water quality parameters. This phenomenon can be attributed to enhanced leaching of organic contaminants during rainy periods, with precipitation facilitating pollutant mobilization from surface soils into the aquifer system. Enhanced soil leaching during wet periods promotes vertical migration of nitrogen compounds through the vadose zone, with average concentration expanding from 24.06 mg.L1 of the study area during dry periods to 32.36 mg.L1 during wet seasons. This seasonal dynamic explains the observed 34.5% increase in average nitrate concentrations during wet periods, reflecting enhanced mobilization of recently applied fertilizers and decomposing organic matter. These elevated nitrate levels pose significant public health risks, as consumption of water exceeding the WHO guideline value of 50 mg.L1 NO3 (or 11.3 mg.L1 NO3–N) has been associated with methemoglobinemia in infants (“blue baby syndrome”) and potential links to certain cancers and reproductive issues in adults10,11. Additionally, excessive nitrates in agricultural water can disrupt aquatic ecosystems through eutrophication, causing algal blooms, oxygen depletion, and biodiversity loss in connected surface water bodies35. Principal Component Analysis demonstrated a significant shift in NO3–N behavior between seasons, transitioning from association with anthropogenic factors (F2 axis) in the dry season to integration with mineralization processes (F1 axis) in the wet season, explaining the paradoxical increase in nitrate concentrations despite dilution of other parameters. Hierarchical Cluster Analysis confirmed this pattern, showing NO3–N clustering with agricultural indicators (Ca+ 2, Mg+ 2) during the dry season but forming more complex associations during the wet season at lower dissimilarity thresholds (1.2 versus 1.6). These statistical findings align with spatial observations showing severe pollution concentrated in agricultural zones during the dry season and expanding across a wider area during the wet season, consistent with research from similar Mediterranean semi-arid regions41,42,43,44. The Irrigation Water Quality Index (IWQI) results revealed a remarkable seasonal transformation. During the dry season, groundwater quality ranged from moderate to severe pollution, while the wet season showed a significant improvement with all samples classified as moderately polluted. This shift underscores the complex dilution mechanisms of rainwater on groundwater pollutants. The severe pollution classifications are particularly concerning as they indicate water with potentially harmful levels of salinity, sodium hazard, and specific ion toxicity that can damage crops, reduce agricultural productivity, and eventually lead to soil degradation through salinization; an often irreversible process that threatens long-term food security in the region26. Spatial analysis provided critical insights into the distribution of groundwater contamination. During the dry season, severe pollution was concentrated in the central, agriculturally intensive regions of the plain. The wet season witnessed an expansion of contamination, with nitrate pollution spreading across a larger area. This pattern underscores the pivotal role of precipitation in transporting and redistributing organic pollutants from the external environment into the aquifer. The seasonal fluctuations in groundwater pollution sources were particularly noteworthy. While most elements showed reduced concentrations during the wet season, nitrate levels demonstrated an inverse trend, suggesting multiple contamination pathways and the need for nuanced groundwater management approaches. A critical observation from this study is the apparent contradiction between improved IWQI classifications (from severe to moderate pollution) and simultaneously increased nitrate contamination (34.5% increase) during the wet season. This paradox highlights important limitations in the sensitivity of composite water quality indices to specific health-critical parameters. While the IWQI showed overall improvement due to dilution effects on salinity parameters (EC, SAR, Na+, Cl), the index’s weighting system may inadequately reflect the heightened risks posed by elevated nitrate-nitrogen concentrations. The IWQI’s composite nature, which averages multiple parameters, can mask the significance of individual contaminants of high toxicological concern such as NO3–N. This finding suggests that relying solely on composite indices may provide misleading assessments of water safety, particularly regarding parameters with stringent health guidelines. The WHO guideline value of 11.3 mg.L−1 NO3⁻–N was exceeded in numerous samples during the wet season despite improved IWQI scores, indicating potential health risks that the composite index failed to adequately highlight. This discrepancy underscores the need for complementary assessment approaches that give appropriate weight to health-critical parameters alongside composite indices, ensuring that improvements in general water quality metrics do not obscure emerging contamination threats. The observed seasonal groundwater contamination dynamics in the Hennaya Plain resonate with critical research from other Mediterranean semi-arid agricultural landscapes, where contextualization of these findings through comparative research reveals significant parallels with regional studies. Khouli et al.41.in similar agricultural regions of Mitidja plain revealed comparable patterns of nitrate contamination, particularly highlighting the role of intensive agricultural practices in groundwater quality degradation during rainy periods. Specifically, Zufiaurre et al.42 in their research on the shallow aquifers in the northeastern regions of Spain demonstrated analogous seasonal variations in groundwater chemistry, with wet seasons facilitating enhanced nutrient mobilization—a phenomenon closely mirroring our findings. Bourmada et al.43 investigating groundwater systems in Souk Ahras’s semi-arid regions (Algeria), also reported similar spatial patterns of contamination concentration in agricultural zones, further validating our observations of localized pollution hotspots. The pronounced seasonal transformations in water quality, ranging from moderate to severe pollution, align with research by Tlili-Zrelli et al.44 in Tunisian agricultural plains, which emphasized the critical interaction between agricultural intensification and groundwater vulnerability in Mediterranean ecosystems and its relationship to seasonal variations. Based on these findings, several critical recommendations emerge for sustainable water resource management. Crop selection strategies should prioritize salt-tolerant and nitrate-resistant varieties, including sorghum, barley, millet, and specific citrus varieties that can thrive in challenging environmental conditions74,75. Implementing precision agriculture techniques, developing comprehensive monitoring programs, and creating robust regulatory frameworks are essential for mitigating groundwater degradation. The study makes several significant scientific contributions to understanding groundwater dynamics, including:

  1. 1.

    A detailed characterization of seasonal variations in nitrate contamination;

  2. 2.

    Comprehensive mapping of irrigation water quality across dry and wet seasons;

  3. 3.

    Identification of key factors influencing groundwater pollution in agricultural landscapes.

Several methodological limitations should be acknowledged. The research was conducted over a limited time frame, and long-term monitoring would provide more definitive insights into temporal patterns and cyclical variations in groundwater quality. Future studies should incorporate multi-year monitoring programs to better characterize long-term trends and distinguish between seasonal fluctuations and progressive changes in aquifer conditions. The study focused on a specific geographical region, and results may not be directly generalizable to all agricultural landscapes. Expanding research to diverse agricultural settings with varying crops, management practices, and hydrogeological conditions would enhance the generalizability of findings and allow for comparative analyses across different contexts. While the IWQI and nitrate analysis provide valuable insights, additional parameters such as pesticide residues, heavy metals, and microbiological indicators could offer a more comprehensive assessment of groundwater quality. Future research integrating these parameters would provide a more holistic understanding of contamination dynamics.

To mitigate ongoing groundwater degradation, the study emphasizes the critical need to:

  1. 1.

    Control the indiscriminate use of agricultural fertilizers and pesticides, with future research focusing on optimizing application rates based on crop-specific needs and local hydrogeological vulnerability factors;

  2. 2.

    Implement targeted management strategies accounting for seasonal variations, supported by future studies that develop predictive models to anticipate seasonal changes in groundwater vulnerability;

  3. 3.

    Develop more sophisticated monitoring systems to dynamically track groundwater quality, with future research exploring cost-effective sensor networks and remote sensing techniques that could provide real-time data on groundwater conditions.

The research underscores the complex nature of groundwater contamination in agricultural landscapes. The pronounced seasonal variations in nitrate content and irrigation water quality demand adaptive management approaches capable of responding to dynamic environmental conditions. Future interdisciplinary research combining hydrogeology, agricultural science, and policy analysis could address these gaps by developing integrated decision support systems that balance agricultural productivity with groundwater protection.

Conclusion

The groundwater quality assessment of the Hennaya Plain aquifer provides a comprehensive investigation into the complex dynamics of water contamination, revealing critical insights into the environmental challenges faced by agricultural regions. The research employed a novel methodological approach, integrating the Irrigation Water Quality Index (IWQI) with detailed NO3–N content analysis to evaluate spatiotemporal variations in groundwater quality during dry and wet seasons. Key findings demonstrated significant seasonal variations in groundwater chemistry, with average NO3–N concentrations ranging from 24.06 (mg.L−1) in the dry period to 32.36 (mg.L−1) in the wet period, and Cl concentrations shifting from 303.53 to 263.42 (mg.L−1). Critically, 12.82% and 69.23% of samples exceeded FAO standards for NO3–N, while 23.07% and 10.26% of samples surpassed chloride limits, indicating severe water quality impairment driven by human agricultural practices. The scientific contribution of this study lies in its comprehensive spatial and temporal analysis of groundwater contamination. The research uniquely mapped chemical element distributions, revealing highest concentrations of Cl, Na+, and NO3–N in the central plain’s agricultural areas. This precise identification of pollution sources demonstrates the direct relationship between intensive agricultural activities and groundwater degradation, a critical advancement in understanding environmental-agricultural interactions. Temporal trend analysis revealed a complex contamination pattern, with the Irrigation Water Quality Index (IWQI) ranging from 29.25 to 65.35 in the dry period and 56.85 to 69.88 in the rainy period. The dry season showed more severe water quality classifications, suitable only for highly salt-tolerant plants in high-permeability soils, while the wet season exhibited moderate pollution levels appropriate for plants with medium salt tolerance. Notably, the study uncovered a unique nitrate contamination dynamic, with higher concentrations during the wet season. This counterintuitive finding highlights the role of precipitation in transporting organic pollutants, explaining how rainfall contributes to the distribution of contaminants from external environments into the aquifer. The research suggests that selecting agricultural crops with inherent resilience to saline and nitrate-rich environments is crucial. The mean implications point towards identifying and cultivating plant varieties that demonstrate superior adaptation to challenging water and soil conditions. The central recommendation centers on integrating advanced agricultural methodologies, systematic monitoring approaches, and regulatory mechanisms to address and mitigate groundwater contamination and degradation. Future interventions must focus on controlling agricultural fertilizer and pesticide use, implementing preventive measures to address salinization and soil structure degradation. Recommended strategies include developing targeted farmer training programs with mandatory certification for fertilizer application, particularly for the farmers in the central contamination zone where NO3⁻–N concentrations exceeded 45 mg.L−1. Establishing 50-meter vegetated buffer zones between agricultural areas and water recharge zones, planted with nitrogen-fixing leguminous cover crops, should be prioritized around wells exceeding FAO nitrate standards. Implementing precision agriculture with maximum nitrogen application limits of 150 kg N/ha in high-risk zones, and installing drip irrigation systems to replace flood irrigation in the current agricultural areas can reduce water usage by 30–40% while minimizing nutrient leaching. Seasonal monitoring frameworks should deploy 20–25 monitoring wells with quarterly sampling during dry periods and monthly sampling during wet seasons, focusing on the central agricultural zone. Research directions should prioritize long-term ecological risk assessments, developing predictive groundwater quality models, exploring bioremediation techniques, and investigating the potential health impacts of prolonged groundwater contamination. Additionally, studies should focus on developing machine learning approaches for contamination prediction, and investigating indigenous plant species for phytoremediation applications. The methodology and insights presented offer a foundational approach to water resource management that can be applied to similar agricultural regions facing environmental challenges. Ultimately, this research serves as a critical scientific contribution and a call to action for researchers, policymakers, and local communities. By providing a detailed understanding of groundwater contamination dynamics, the study offers a scientific basis for developing targeted interventions that balance agricultural productivity with environmental conservation, emphasizing the urgent need for integrated strategies to protect this vital resource.