Introduction

Groundwater is one of the vital resources that require adequate protection from anthropogenic pollution sources. Globally, the alarming rate of anthropogenic activities and climate change phenomenon has impacted significantly on the quality of both the surface and groundwater resources (Arian et al. 2008; Bu et al. 2010). Groundwater quality can be influenced by the lithology, water–rock interaction, and changes in space and time (Todd and Larry 2005; Srinivasamoorthy et al. 2008; Bhattacharya and Bundschuh 2015).The continuous rise in anthropogenic activities, uncoordinated development, has led to an increase in point source pollutants such as leachates from dumpsite, seepage from the septic tank, and municipal sewage plants among others. Current emerging pollutants from agro-based activities such as nitrate, pesticides, and other heavy metals and persistent organic products (POPs), volatile organic carbon (VOCs) among others pose serious challenges to human health and the sustainability of groundwater (Kumazawa 2002; Jalali and Kolahchi 2008; Balogun and Adegun 2013; Salami and Susu 2013; Ocheri et al. 2014).

Globally, water-related diseases are the leading causes of morbidity and mortality in many parts of the developing world, with about 2–12 million deaths per year (Gleick 2002; WWAP 2003). Due to the present health and environmental challenges resulting from water-related diseases, the assessment of water quality, therefore, becomes very imperative because it serves as a vital tool for sustainable water resources management strategies (Zhou et al. 2007; Bu et al. 2010). The approaches of water quality assessment and hydrochemical processes abound in the literature. For instance, the application of water quality indices (WQI) serves as a veritable scientific tool for assessing the suitability of water quality for various uses in an integrated manner (Balogun et al. 2012). The WQIs also helps to reveal the effects of individual groundwater parameters on the overall water quality in a given location (Sarala and Uma Mageswari 2014). The WQIs also show the variation and the possible trends both spatially and temporarily for easy information dissemination to the public (Bharti and Katyal 2011; Akoteyon 2013). Apart from WQI, the applications of water stability index (WSI), such as Langelier saturation index (LSI), Ryznar stability index (RSI), Puckorius scaling index (PSI), and Aggressive index (AI) (Gholizadeh et al. 2017; Choi et al. 2015; Chung et al. 2004; Kurdi et al. 2015), serve as very useful tools to assess corrosion and scaling potential of water resources globally. Studies have shown that LSI is one of the most widely used indicators for determining scale formation potential in water supply and drinking water networks (Gholizadeh et al. 2017; Maeng et al. 2015; Alsaqqar et al. 2014). Beyond the problems of corrosion and scaling, groundwater salinization in coastal areas has continued to be a major concern of water resources management in these regions. This has led to the development of various indices, for example applications of GALDIT index Lobo Ferreira et al. (2005), Revelle index (Revelle 1941), and ionic ratios of electrical conductivity, sodium/chloride, magnesium/calcium (Narany et al. 2014). The use of Revelle index has been proven to be a very veritable tool in evaluating groundwater salinization in both the tropical and arid regions (Aris et al. 2009; Tziritis et al. 2009; Revelle 1941). Other relevant graphical techniques employed in groundwater quality assessment include Gibbs plot (Gibbs 1970), Schoeller (1964), Stiff (1951), Durov (1948), Piper (1944), Collins diagrams (Collins 1923). Piper’s diagram has been extensively used in groundwater data set to delineate hydrochemical facies to reveal discernible patterns and trends in water quality for a better understanding of groundwater flow and geochemistry in an aquifer system (Dalton and Upchurch 1978).

Similarly, Gibbs plot has enhanced the interpretation of the effect of hydrogeochemical processes (i.e., precipitation, rock–water interaction, and evaporation) with the aim of providing knowledge on the source of water contamination and the interaction between rock and aquifer (Howladar et al. 2017; Boateng et al. 2016). There is a scanty study on a holistic application of water quality indices, chemometric methods, such as multivariate statistical analysis and geostatistical technique in the study area. This study applied water stability index with drinking water quality index, groundwater salinization with the chemometric method, such as multivariate statistical analysis and geostatistical technique. The methodology provides a reliable technique of data mining and source apportionment for better interpretation of water quality data which are difficult to evaluate using only elemental concentrations (Machiwal and Jha 2015). The study is also significant because it employed a novel method that delineates the sampling sites into distinct geographical strata, namely peri-urban, rural, and urban settlements beyond administrative boundaries for environmental quality assessment studies in Lagos, Nigeria. This study, therefore, seeks to examine the groundwater quality and hydrochemical processes using integrated approaches in Lagos, Nigeria. The study contributes to knowledge in the mapping of the distributional patterns of groundwater salinization and water stability index. It also identified the major mechanism controlling groundwater chemistry, sources of groundwater pollution and delineation of water types in the study area as baseline information for effective groundwater management.

Study area

The study site is located in the coastal plain sand (CPS) aquifer of Lagos, in parts of Southwestern Nigeria. It lies approximately on latitudes 6°30′N–6°40′N and longitudes 3° 00′E–4°00′E. The area is bounded by Ogun State in the east and north, the Atlantic Ocean in the south, and Benin republic in the west. It occupies about 73.63 km2 of land covering peri-urban, rural and urban settlements around Lagos metropolis, Ikorodu, Epe, and Badagry geographical regions (Fig. 1).

Fig. 1
figure 1

The study area

The climate of Lagos state is controlled by the tropical and continental air masses, which are associated with northeast and moisture-laden southwest winds, respectively. The movements of the air masses result in the two weather seasons, namely dry and wet seasons (Adepelumi 2009).The average temperature is 30 °C, while the mean annual rainfall is about 1532 mm. The dominant vegetation is comprised of tropical swamp forest (freshwater and mangrove swamp forests and dry lowland rainforest; Akoteyon 2013). The topography of the area is comprised of troughs which are dominated by a system of the Island, sandbars, and lagoons, developed by barrier beaches associated with sand deposition (Adepelumi 2009). It has a lowland territory, very flat in its western portion and somewhat hilly in its eastern zone. The state is bisected and parallel to the ocean by the Lagos lagoon and Badagry creek. The northern section of the state is composed of lowlands in the west, flat hills in the east, and marshland of the Ogun River in the Centre. In the central region lies the Lagos metropolis, characterized by a densely populated settlement (Coode et al. 1997). The area is drained by various river systems, for example Ogun River in the center, the Ona River and Osun in the east, and the Yewa in the west, flowing southwards to join coastal lagoons (Akoteyon et al. 2010). The geology of the area lies solely in the Dahomey sedimentary basin and has no outcrop. The geological sequence in the Dahomey basin extends from the Precambrian to recent (Coode et al. 1997). The upper sediments in the Dahomey Basin are underlain by coastal plain sands, also known as the Benin formation of the Quaternary age. Studies have shown that recent sediments occur along the coastal belt in the form of alluvial deposits along the major rivers in the coastal areas (Coode et al. 1997).

The hydrogeology of the CPS aquifer is composed of lenticular unconsolidated yellowish (ferruginous) to whitish sands with shale, clay, and sandy clay intercalations. The CPS formations consist of multi-aquifer systems arising from the alternation of sands and clay. The sand has artesian or sub-artesian characteristics. The sources of groundwater recharge in the CPS are through surface runoff and percolation from precipitation. More than 30% of groundwater supply in Lagos State taps water from the CPS to meet domestic, municipal, and industrial water demands (Akoteyon 2013). The aquifer is tapped for groundwater supply in Lagos through the establishment of the micro- and mini water works (Balogun et al. 2012). Lateral variations exist in the CPS aquifer due to its lithology and water quality. The CPS aquifer in Lagos is subdivided into four, namely recent sediment, upper CPS, lower CPS and the Abeokuta formation (Coode et al. 1997). The water table of the CPS ranged between 0.4–21 m with an annual fluctuation of less than 5 m (Akoteyon 2013).

Variation in the thickness of the recent and lower CPS aquifer ranged between 200 m and 250 m, respectively, with mean groundwater storage of the first CPS aquifer estimated at 2.87 × 103 m3 (Akoteyon 2013). The recent sediment is water table aquifer usually found along the coast and in the alluvial plains of the river valleys. The water table is shallow and has higher total dissolved solids (TDS), conductivity compared to the upper coastal plain sand (UCPS) and the lower coastal plain sand (LCPS). The shallow nature of the water table makes it vulnerable to contamination from sewage and waste disposal (Coode et al. 1997). Groundwater salinity in the aquifer varies from north to south (Akoteyon et al. 2010). Saltwater intrusion occurs into this aquifer with the second aquifer being fresh water-bearing in the northern and central parts of the state, while the southern coastal belt is characterized by saltwater (Akoteyon et al. 2010).

Materials and methods

A total of fifteen groundwater samples each were collected from peri-urban labeled (P1–P15), rural (R1–R15) and urban (U1–U15) settlements totaling 45 samples from protected dug wells (PDW) using random sampling technique during March 2012—dry season—and July 2012—wet season—to assess the quality, characterize the water type, and identify the hydrogeochemical processes operating within the groundwater system in the study (Fig. 2).

Fig. 2
figure 2

The sampling sites

The groundwater samples were collected in one-liter polyethylene bottles. Prior to the sample collections, the bottles were washed with distilled water and thereafter rinsed with water to be sampled (APHA 1998). The groundwater samples were preserved in ice chests to minimize error during transit and taken to the Chemistry Department, University of Lagos for laboratory analyses, using standard procedure after APHA (1998). The parameters examined include pH, electrical conductivity (EC), total dissolved solids (TDS), sodium (Na+), potassium (K+), calcium (Ca2+), magnesium (Mg2+), chloride (Cl), bicarbonate (HCO3), carbonate (CO3), and sulfate (SO42−).Total hardness (TH) was evaluated based on Fournier (1981) method as indicated in Eq. 1.

$${\text{TH}} = 2.5\;{\text{Ca}}\;\left( {\text{mg/L}} \right) + 4.1\;{\text{Mg}}\left( {\text{mg/L}} \right)$$
(1)

where Ca—calcium, Mg—magnesium.

Groundwater pH, TDS, and EC were measured in situ using pHep and DiST EC HANNA single-parameter probe (HI7007 and HI98303), respectively. The TDS was measured using TDS-3 m HM Digital multi-parameter probe. The major ions were determined based on standard procedures after APHA (1998). Titration method was employed to determine calcium and magnesium based on standard EDTA (0.01 M) solution. Chloride was determined by titration using standard silver nitrate. Bicarbonate and carbonates were evaluated titrimetrically using standard hydrochloric acid (0.01 N) solution. Flame photometer was employed to analyze potassium and sodium, and sulfate by spectrophotometer. The reliability test of the laboratory analyses of the major ions was subjected to internal consistency to identify inconsistencies using charge balance error (CBE) formula by Apello and Postma (2005) as indicated in Eq. 2. Generally, all the samples are within ± 5%.

$$CBE = \left( { \sum {\text{cations}} - \sum {\text{anions}}} \right)/\left( {\sum {\text{cations}} + \sum {\text{anions}}} \right) \times 100\%$$
(2)

Descriptive, inferential, and multivariate statistical techniques were employed for data analyses using Statistical Package for Social Sciences (SPSS) 22.0 version.

Water quality indices

Drinking water quality index

The WQI of the study area was computed using 11 parameters, namely pH, TDS, EC, Ca2+, Mg2+, TH, Na+, K+, Cl, HCO3 , and SO42−, to determine the suitability of the water for human consumption using the method proposed by Sahu and Sikdar (2008). The computation involved four stages as follows:

  1. 1.

    Allocation of weight to each parameter according to their relative importance in line with WHO (2011) guideline for drinking purpose (Table 1)

    Table 1 Relative weight of groundwater parameters
  2. 2.

    Computation of relative weight (Wi) based on Eq. 3.

$$Wi = wi/\mathop \sum \limits_{i}^{n} = 1\;wi$$
(3)

where Wi = relative weight, wi = weight of each parameter, and n = number of parameters.

  1. 3.

    Allocation of quality rating scale (qi) for each parameter (Eq. 4).

$$qi = \left( {\frac{Ci}{Si}} \right) \times 100$$
(4)

where qi = quality rating, Ci = concentration of each parameter, and Si = WHO (2011) drinking water guideline for each parameter.

  1. 4.

    The final WQI is calculated based on Eqs. 5 and 6.

    $$SIi = Wi \times qi$$
    (5)
    $$WQI = \mathop \sum \limits_{i = 1}^{n} SIi$$
    (6)

where SI i is the sub-index of ith parameter, while qi is the rating according to the concentration of ith parameter, and n is number of parameters. The computed WQI values are classified into five categories according to Sahu and Sikdar (2008) as follows:

< 50:

Excellent water

50–100:

Good water

100–200:

Poor water

200–300:

Very poor water

> 300:

Water unfit for drinking

Groundwater salinization

The degree of groundwater salinization was determined using Revelle index (RI) (Revelle 1941) as indicated in Eq. 7.

$${\text{RI}} = {\text{rCl}}^{ - } /\left( {{\text{rHCO}}_{3}^{ - } + {\text{rCO}}_{3}^{ - } } \right)$$
(7)

where r = meq/L, Cl—chloride, HCO3 —bicarbonate, CO3—carbonate.

The computed RI values are classified into three categories according to Revelle (1941) as follows:

< 0.5 meq/L:

unaffected

0.5–6.6 meq/L:

slightly affected

> 6.6 meq/L:

strongly affected

Water stability index

The prediction of the tendency of scaling or corrosion of water was determined based on Langelier saturation index (LSI) proposed by Langelier and Ludwig (1942) and Gupta et al. (2011) using AquaChem software 2012.1 version. The LSI is defined using Eq. 8.

$$LSI = pH - pHs$$
(8)

where pH = measured water pH and pHs = pH at saturation in calcite or calcium carbonate and is calculated using Eq. 9.

$${\text{pHs}} = \left( { 9.3 + A + B} \right) - \left( {C + D} \right)$$
(9)

where notations A to D are obtained using Eqs. 10 to 13.

$$A = \left( {\log 10\left[ {TDS} \right] - 1} \right)/10$$
(10)
$$B = - 13.12 \times \log 10\left( {0C + 273} \right) + 34.55$$
(11)
$$C = \log 10\left[ {{\text{CaH}}\;{\text{as}}\;{\text{CaCO}}3} \right] - 0.4$$
(12)
$$D = \log 10\left[ {{\text{total alkalinity as CaCO}}3} \right]$$
(13)

The LSI values are classified into eleven categories according to Langelier and Ludwig (1942) as follows:

1

− 4.0

Very severe corrosion

2

− 3.0

Severe corrosion

3

− 2.0

Moderate corrosion

4

− 1.0

Mild corrosion

5

− 0.5

Slight corrosion

6

0.0

Balanced

7

0.5

Faint scale coating

8

1.0

Slight scale/ encrustation

9

2.0

Mild scale/encrustation

10

3.0

Moderate scale/encrustation

11

4.0

Severe scale/encrustation

Graphical techniques of water quality assessment

Gibbs plot

Gibbs ratio (GR) was employed to determine the dominant mechanism controlling groundwater chemistry and the sources of dissolved ions to understand the interaction between rock and water (Gibbs 1970). GR − 1 was used to plot the anions (Cl / Cl + HCO3), while GR-II was employed for the cations (Na+ + K+ / (Na+ + K+ + Ca2+) as a function of TDS. See Eqs. 14 and 15.

$${\text{Gibb Ratio I}} = {\text{Cl}}/\left( {{\text{Cl}} + {\text{HCO}}3} \right)$$
(14)
$${\text{Gibb Ratio II}} = \left( {{\text{Na}} + {\text{K}}} \right)/\left( {{\text{Na}} + {\text{K}} + {\text{Ca}}} \right)$$
(15)

Piper’s plot

The hydrochemical facies of the groundwater were characterized based on the classification scheme for the subdivisions of Piper’s diagram suggested by Back and Hanshaw (1965) (See Fig. 3). The facies were plotted using Rockware Aq.QA software version 1.1.1[1.1.5.1] 2006 edition.

Fig. 3
figure 3

Classification of hydrochemical facies

Results and discussion

Physicochemical parameters of groundwater

The physicochemical parameters of groundwater of the three geographical settlements during the dry season are presented in Table 2. The groundwater pH in the peri-urban varied between 3.13 and 7.3 indicating acidic to a slightly alkaline condition. The observed low pH in groundwater of the study area may be linked to dissolved carbon dioxide or increase in groundwater temperature (Robinson et al. 2009). The groundwater parameters in all the sites show a low to moderate variation except at Igando with EC, TDS, Mg2+, Na+, Cl, HCO3, and SO42− in the peri-urban. High sulfate recorded in groundwater can be attributed to leaching from municipal waste and sewage water pollutants (Singh 1994). The dominant cation is Na+, and the concentration ranged between 1.9 and 1350 mg/L while Cl is the dominant anion and ranged between 4 and 2, 800 mg/L. The high values of these parameters at Igando can be attributed to infiltration of leachates from the dump sites in the area. In the rural settlement, pH indicates acidic to moderately alkaline conditions (3.9 to 6.2). The concentration of EC, TDS, K+, and Cl- were relatively high at Ilogbo. These parameters varied between 18 to 349 µS cm−1, 13 to 226 mg/L, 0.5 to 51.7 mg/L, and 6 to 144 mg/L, respectively. High TDS may be due to the impact of anthropogenic sources, such as domestic sewage, septic tanks, and agricultural activities (Logeshkumaran et al. 2015). The observed high EC in groundwater may be linked to nutrient enrichment (Srinivasamoorthy et al. 2014). The concentration of Ca2+ and Mg2+ was relatively high at Agbowa with a corresponding range of 1.2 and 90 mg/L and between 0.3 and 36 mg/L, respectively. The relatively high concentration of Ca2+ and Mg2+ can be linked to the water–rock interaction (Todd and Larry 2005). Sodium, K+, and Cl were low in all the sites except at Ilogbo. High concentration of these parameters can be attributed to seepage and surface /groundwater interaction with the surrounding lagoon. Sodium ranged between 2.2 and 53.4 mg/L, while bicarbonate varied between 10 to 159.8 mg/L. The predominant cation is Ca2+ with a mean value of 24.8 mg/L, while HCO3 is the dominant anion with an average of 79.0 mg/L. The pH of groundwater in the urban settlement indicates acidic to slightly alkaline conditions (3.0–7.2). A relatively low variation was observed in all the sites except at Oko-Oba which has a relatively high concentration of EC, TDS, and Cl with the corresponding mean of 245.7 µS cm−1, 156.2 mg/L, and 54.2 mg/L, respectively. High chloride in groundwater may result from inadequate underground drainage system and poor management of the environment around the abattoir in the area (Logeshkumaran et al. 2015). The concentration of HCO3 varied between 10 to 181 mg/L with a mean of 70 mg/L. The dominant cation is Ca2+ with an average of 31.5 mg/L, while HCO3 is the dominant anion.

Table 2 Physicochemical parameters of groundwater in the dry season

Table 3 presents the variations of the physicochemical parameters of groundwater during the wet season in the study area. The result revealed that in the peri-urban, EC, TDS, Na+, K+, Cl, and HCO3 were extremely higher at Igando compared to other sites. High bicarbonate in groundwater may result from atmospheric CO2 and CO2 released from the organic decomposition in the soil around the dumpsite (Rao 2002). Electrical conductivity ranged between 15 and 6600 µS cm−1, TDS between 13 and 3300 mg/L. Sodium varied between 2 to 1142 mg/L, while potassium ranged between 0.1 and 1102 mg/L. Chloride ranged between 2 and 2280 mg/L, while bicarbonate varied between 14 to 228 mg/L. The groundwater pH indicates moderately acidic to slightly alkaline (4.6–7.4). The variations of Ca2+, Mg2+, SO42−, and CO3 are low. Sodium and chloride are the dominant cation and anion in the area. There is no significant variation in the groundwater parameters in the rural settlement except for Ilogbo with a relatively high EC, TDS, and Cl. The pH is moderately acidic to neutral (4.8–7.0). The dominant cation is Na+ with a mean value of 58.4 mg/L, while Cl is the dominant anion with an average of 137 mg/L. There are slight variations in the groundwater parameters such as EC, TDS, Na+, Cl, and HCO3 in the urban settlement. Electrical conductivity ranged between 26 and 509 µS cm−1, TDS between 15 and 332 mg/L. Sodium varied between 4.1 to 119.5 mg/L, Cl between 6 to 125 mg/L, and HCO3 between 8 to 139 mg/L. Sodium and bicarbonate are the dominant cation and anion with an average of 41.9 mg/L and 49.5 mg/L, respectively.

Table 3 Physicochemical parameters of groundwater in the wet season

Bivariate analysis of groundwater parameters

The seasonal variations of the physicochemical parameters of groundwater in the study area show that about 95.6% and 60% of the sampling sites had pH values below the minimum guideline for potable water prescribed by WHO (2011). Similarly, only 2.2% of the measured EC fall under high enrichments of salts (EC >3000 μS/cm−1) in both seasons (Rao et al. 2012; Vincy et al. 2015). The classification of TDS revealed that only 2.2% of the samples are moderately saline in both seasons (Carroll 1962). Total hardness of groundwater shows that approximately 51.1, 28.9, 15.6, and 4.4% of the samples in the dry season indicate soft, moderately hard, hard, and very hard, respectively, while 93.3% and 6.97% represent soft and moderately hard water in the wet season, respectively (Todd and Larry 2005). The distribution of chloride in the study area shows that 2.2% indicate extremely fresh/brackish-salt in the dry season, while 11.1% and 2.2% are extremely fresh and brackish-salt, respectively, in the wet season (Stuyfzand 1989).The distribution of bicarbonate shows that 84.4% and 66.7% of the samples fall under poor zone in the wet and dry seasons, respectively (WHO 2011). The result of the seasonal paired sample T test shows significant variations between pH, Ca2+, HCO3, and Mg2+ in the study area (Table 4). The wet season parameters are in asterisk.

Table 4 Seasonal paired samples T test of groundwater parameters

Multivariate analysis of groundwater parameters

The result of the factor analysis (FA) extracted two factors and explained 73.5% of the total variance in the dry season, while three factors were obtained in the wet season, accounting for 84.2% of the total variance (Table 5).

Table 5 Factor analysis matrix in the dry and wet seasons

Factor I, in the dry season, accounts for 61.8% of the total variance with high loading on EC, TDS, Ca2+, Mg2+, Na+, Cl, and SO42−. These parameters represent seawater constituents (Lu et al. 2012). Factor II accounts for 11.6% of the total variance and is characterized by medium loadings of Ca2+, K+, and HCO3 (Table 5). In the wet season, factor I accounts for 59.4% of the total variance, with high loadings on EC, TDS, Na+, K+, Cl, and SO42−. The high loading on Cl may be attributed to saltwater intrusion, pollutions from sewage, and industrial wastewater (Amadi et al. 2012). Similarly, high loading on Ca2+ indicates the impact of weathering of minerals such as calcite and feldspar on the aquifer system (Sahu et al. 2016). High loading of EC, TDS, Na+, and SO42− indicates the influence of salinity on the groundwater system (Abdel Latif and El Kashouty 2010; Lu et al. 2012; Raju et al. 2015). Factor II accounts for 15.6% of the total variance and is characterized by high to medium loading of pH and HCO3. Factor III accounts for 9.3% of the total variance with high and medium positive loading on Ca2+ and Mg2+, respectively. The constituents of EC and TDS can be categorized as an anthropogenic source of pollution from leachates, sewage, and wastewater in the area (Lu et al. 2012). The extreme values of EC and TDS from Igando (P4), a sample site near a dumpsite, are very conspicuous.

Mechanism controlling groundwater

The Gibb’s plot revealed the dominance of rock-weathering as the major mechanism controlling groundwater chemistry and the sources of dissolved ions in the study area (Gibbs 1970). The results show that more than 95% and 93% of the anions and cations are dominated by rock-weathering in both seasons (Figs. 4 and 5). Studies by Logeshkumaran et al. (2015) confirm the predominance of the rock–water interaction dominance and evaporation in Chennai based on the Gibbs plot. Narany et al. (2014) indicated that the hydrochemistry of Amol-Babol Plain is influenced by rock dominance, carbonate and silicate rock weathering. The findings of Sahu et al. (2016) show that the enrichment of the major ions in the groundwater of West Bengal is due to rock-weathering. Yidana et al. (2012) and Prasanna et al. (2008) reported the dominance of water–rock interaction as the major factors contributing to solute in the study area.

Fig. 4
figure 4

Gibbs plot of anion

Fig. 5
figure 5

Gibbs plot of cation

Water quality index

Drinking water quality

The results of the drinking WQI show a broad range between 10 and 573 in the peri-urban. The range is relatively low between 10 and 35 and between 11 and 47, respectively, in the rural and urban settlements during the dry season. The wet season value in peri-urban ranged between 9 and 430, while it varies from 10 to 32 and from 9 to 44 in the rural and urban settlements, respectively. Approximately 95.6% and 2.2% of the sampling sites have excellent/good water quality, while the remaining 2.2% indicates unsuitable water for drinking in the peri-urban settlement during the dry season (Table 6). The computed WQI shows that in the wet season, all the sampling sites have excellent quality except at Igando, a peri-urban settlement indicating unsuitable water for drinking (Table 6). The result of the drinking WQI revealed that the rural settlement has the lowest range in both seasons. This can be attributed to the low level of anthropogenic activities that are capable of degrading groundwater quality in the area. Unlike the observed unsuitable water for drinking found at one of the sites at Igando, the deterioration of the groundwater quality can be linked to the infiltration of leachates from the nearby dumpsite into the well. The result of the present study shows that the WQI of the study area is suitable for drinking. Similar studies by Ebong et al (2017) reported the suitability of groundwater quality from Abi, southeastern Nigeria, for drinking and irrigation purposes based on WQI. The findings of Etim et al (2013) also concluded that the water sources from the borehole and pipe-borne water in the Niger-Delta region of Nigeria based on WQI are safe for human consumption and for other domestic purposes. Also, Olatunji et al (2015) reported the suitability of groundwater quality for drinking based on their study in Ilorin metropolis, Nigeria. Balogun and Adegun (2013) reported the high concentration of EC, TDS, Cl, and trace metals in their study around Igando. A similar study by Yidana and Yidana (2010) asserts that the WQI of the Voltaian sedimentary basin in Ghana is suitable for drinking purpose.

Table 6 Water quality index and classification in the study area

Groundwater salinization

The result of the RI ranged between 0.1 and 22.2 meq/L in the dry season and between 0.1 and 21.8 meq/L in the wet season. The distribution of groundwater salinity in the study area shows that approximately 48.9% and 46.7% of the sampling sites in the dry season are unaffected and slightly affected by salinity, respectively. Only 4.4% of the samples sites are strongly affected by salinity (Fig. 6). The RI during the wet season indicates that 46.7% of the sampling sites are unaffected/slightly affected by salinity, while 6.6% are strongly affected by salinity (Fig. 7). The impact of salinity on the groundwater quality around Igando and Oko-Oba is indicative of the land use/ anthropogenic activities resulting from dumpsite and abattoir in the settlement, respectively. The result of the RI in the present study is attributed to land use/anthropogenic activities in the study area. A similar study by Amadi et al (2012) reported groundwater quality deterioration of the coastal aquifers of Eastern Niger-Delta Nigeria, due to salinity and anthropogenic interference.

Fig. 6
figure 6

Distribution of Revelle index in the dry season

Fig. 7
figure 7

Distribution of Revelle index in the wet season

Water stability index

Langelier Saturation Index

The results of the LSI varied from − 5.81 to − 0.16 with an average of − 3.28 in the dry season. It varies from − 5.52 to − 1.06 with an average of − 3.05 in the wet season. The dry season value of LSI shows that 31.1% of the samples indicate very severe/ moderate corrosion. About 28.9% of the groundwater samples indicate severe corrosion, while 4.4% shows mild/slight corrosion in the dry season (Fig. 8). During the wet season, 35.6, 24.4, 22.2, and 17.8% of the samples are indicative of moderate, severe, very severe, and mild corrosion, respectively (Fig. 9). The severe cases of corrosion in the study area can be attributed to the high value of pH, TDS, TH, and HCO3 in the study sites (Gholizadeh et al. 2017). The results of the LSI show that the groundwater is corrosive due to the high value of pH, TDS, TH, and HCO3 in the study area. A study conducted by Ibeneme et al (2013) on the spring water at Ife-Owutu, Southeastern based on LSI, inferred that the water is moderate to severely corrosive. Similarly, Ozoko (2015) reported that the water sources in Abakaliki, Nigeria, are very corrosive in all the samples.

Fig. 8
figure 8

Distribution of Langelier index in the dry season

Fig. 9
figure 9

Distribution of Langelier index in the wet season

Pipers plot

Characterization of Hydrochemical facies of groundwater

The hydrochemical facies of the study area can be classified into four major categories based on the section of the diamond shape according to the classification scheme by Walton (1962). The first group is primary hardness and consists of calcium, magnesium, and bicarbonate. This water type falls within the section designated as 5 in Piper’s plot. The classification shows that primary hardness accounted for 59.9% and 31.8% of the samples in the dry and wet seasons, respectively. The second class is secondary hardness and comprised of sulfate, chloride, magnesium, and calcium (Back and Hanshaw 1965; Walton 1962; Tay and Kortatsi 2008). This category is designated as 6 in Piper’s plot and represents 20% and 4.5% in the dry and wet seasons, respectively. The third class is known as primary salinity and comprised of alkali metals, sulfate, and chloride. This category is regarded as brackish or extreme saline water. It occupies the portion designated as 7 in Piper’s plot and accounts for 22.7% and 6.7% in the wet and dry seasons, respectively. The fourth class is mixed waters which usually result from multiple mineral dissolution or mixing of chemically distinct water types (Walton 1962; Sahu et al. 2016). This group occupies the portion designated 9 in Piper’s diagram. Mixed waters account for 41% and 13.4% of the samples in the wet and dry seasons, respectively (Back and Hanshaw 1965; Walton 1962; Tay and Kortatsi 2008). Based on Table 7, the four classes of the hydrochemical facies can be grouped into two major facies. The first group is the concentration of cation which is dominated by Ca–Na type representing 87% of the samples in the dry season and 62% during the wet seasons. HCO3 water type is the second group and predominated in the dry season with 69% sample and with 67% during the wet season (Figs. 10 and 11).

Table 7 Characterization of groundwater of the study area on Piper’s plot
Fig. 10
figure 10

Hydrochemical facies of groundwater in the dry season

Fig. 11
figure 11

Hydrochemical facies of groundwater in the wet season

A study conducted by Sahu et al. (2016) identified three major water types, namely fresh, mixed, and brackish. They inferred that the freshwater type is dominated by sodium which is indicative of active flushing of the aquifer. They concluded that chloride-rich ‘brackish’ represents freshening of modified connate water why the ‘mixed’ type evolved due to the hydraulic mixing of ‘fresh’ and ‘brackish’ waters. Ansari et al. (2015) reported the dominance of Ca–Mg–HCO3 and Ca–Mg–HCO3–SO4 waters in the Himalayas, India. In a similar study, Narany et al. (2014) reported that the groundwater indicates low mineralized Ca–HCO3, Ca–Na–HCO3, and Ca–Cl water types to high mineralized Na–Cl water type. The findings of Logeshkumaran et al. (2015) indicated that the groundwater samples are dominated by Na–Cl and mixed Ca–Mg–Cl type. Jamshidzadeh and Mirbagheri (2011) reported the dominance of Na–Cl water type. A study by Sadashivaiah et al. (2008) also shows the predominance of Ca–Mg–HCO3 water type during the pre- and post-monsoon seasons in Taluk.

Conclusions

Integrated approaches to various water quality indices, chemometric methods, such as multivariate statistical analysis and geostatistical technique, are employed in this study to assess groundwater quality and the hydrochemical processes in Lagos, Nigeria. The pH of groundwater indicates acidic to slightly alkaline in the peri-urban and urban settlements, while in the rural area it shows acidic to moderately alkaline in the dry season. The dominant cation and anion in the rural and urban settlements are Ca2+ and HCO3, while Na+ and Cl predominate in the peri-urban during the dry season. In the wet season, pH indicates moderately acidic to slightly alkaline. Sodium and chloride are the dominant cation and anion in peri-urban. The pH is moderately acidic to neutral in the rural, and the dominant cation and anion are Na+ and Cl.The dominant cation and anion are sodium and bicarbonate in the urban settlement. The seasonal variations of the physicochemical parameters of groundwater in the study area show that about 95.6% and 60% of the sampling sites had pH values below the minimum guideline for drinking water. About 2.2% of the measured EC and TDS fall under high enrichments of salts and moderately saline, respectively, in both seasons. The TH shows that 4.4% and 6.9% of the samples are very hard and moderately hard in the dry and wet seasons, respectively. The distribution of chloride shows that 2.2% of the samples indicate brackish-salt in both seasons, while bicarbonate shows that 84.4% and 66.7% of the samples fall under poor zone in the wet and dry seasons, respectively. The seasonal paired sample T test shows significant variations among four parameters including pH, Ca2+, HCO3, and Mg2+. The result of the FA explained 73.5% and 84.2% of the total variance in the dry and wet seasons, respectively. Two major factors were extracted, namely salinity and weathering of minerals. The salinity factors result from EC, TDS Na+, K+, Cl, SO 24 , and anthropogenic source of pollution from leachates, sewage, and wastewater. The weathering of minerals is due to high loading of Ca2+. The mechanism controlling groundwater chemistry shows that more than 95% and 93% of the anions and cations are dominated by rock-weathering process in both seasons. The results of the drinking WQI in the dry season range between 10 and 573 and between 9 and 430 in the wet season. Approximately 95.6% and 2.2% of the sampling sites have excellent/good water quality, while 2.2% indicates unsuitable water for drinking in the dry season.

The wet season WQI in all the sites has excellent water quality except one site at Igando indicating unsuitable water for drinking. The observed unsuitable water for drinking in the study area is attributed to the land use resulting from dumpsite. The RI ranged between 0.1 and 22.2 meq/L in the dry season and between 0.1 and 21.8 meq/L in the wet season. The distribution of the RI shows that only 4.4% of the samples sites are strongly affected in the dry season. The wet season RI indicates 6.6% of the samples are strongly affected by salinity. The impact of salinity is indicative of the land use/ anthropogenic activities resulting from dumpsite and abattoir in the study area. The results of the LSI varied from − 5.81 to − 0.16 with an average of − 3.28 in the dry season. During the wet season, LSI varies from − 5.52 to − 1.06 with an average of − 3.05 in the wet season. About 31.1% and 28.9% of the samples indicate very severe/severe in the dry season. During the wet season, 22.2% and 24.4% of the samples are indicative of severe and severe corrosion, respectively. The severe cases of corrosion in the study area can be attributed to the high value of pH, TDS, TH, and HCO3. The cation concentration is dominated by Ca–Mg water type in the dry season, while Na–K type predominates in the wet season. The anion shows that HCO3 water type predominated in both seasons. The hydrochemical facies of the study area were grouped into four categories. The primary hardness accounted for 59.9% and 31.8% of the samples in the dry and wet seasons, respectively. Secondary hardness represents 20% and 4.5% in the dry and wet seasons, respectively. Primary salinity accounts for 22.7% and 6.7% in the wet and dry seasons, respectively. Mixed waters account for 41% and 13.4% of the samples in the wet and dry seasons, respectively. The findings revealed that the groundwater quality is suitable for drinking. Leachates, salinity, and land use constitute a major threat to groundwater sustainability in the study area. The study contributes to knowledge in mapping the distributional patterns of groundwater salinization and water stability index. It also identified the major mechanism controlling groundwater chemistry, sources of groundwater pollution and delineation of water types in the study area as baseline information for effective groundwater management.