Introduction

Over 70% of the world’s total freshwater is situated in the sub-surface; however, unregulated and unrestrained abstraction of this groundwater resource can lead to changes in aquifer systems (Kallioras et al. 2013). Coastal aquifers are unique by virtue of their proximity to water bodies where there constantly exists a dynamic interaction between each other (Mondal et al. 2010). Kumar (2006) highlights factors which may affect coastal aquifers as: relative sea level rise; changes in the hydrological regime such as natural recharge, precipitation and evaporation; and coastal zone phenomena such as coastal erosion, shoreline retreat and tidal effect. In cases where deltas and estuaries are present, potential challenges could be backwater effect and seepage of saline surface water into the aquifer (Kumar 2006). Some unpalatable effects of these factors are: salt water intrusion; degradation of coastal ecosystems; decrease in groundwater resources and salt damage of crops (Kumar 2006). The most noticeable and direct effect is the seawater intrusion. Hence, when the hydrogeological characteristics of a coastal aquifer are being assessed, they are usually done with seawater intrusion in mind.

The importance and usage of groundwater resource have a lot to do with its quality and chemistry, i.e. the concentrations of ions and water quality parameters. Various international and national bodies have set standards for the diverse usage of water (Kenya WASREB 2008; WHO 2011). Groundwater stored in aquifers is affected by both natural and anthropogenic factors. Geological structure, geochemical processes, constituents of precipitation which percolates into the aquifer and rock-water interaction within the aquifer are some of the factors controlling the nature of groundwater found in a place (Sheikhy Narany et al. 2014). The combined effects of these factors dictate the groundwater type; however, the hydrogeochemical processes in the aquifer may also undergo variations in space and time (Belkhiri and Mouni 2013; Sheikhy Narany et al. 2014). Some established methods for investigating the nature of coastal aquifers are: hydrochemical approaches using graphical and multivariate statistical methods (Banoeng-Yakubo et al. 2009; Okiongbo and Douglas 2014; Ziani et al. 2016); numerical modelling (Volker et al. 2002; Sindhu et al. 2012); electrical sounding methods (Olayinka et al. 2004; Yan et al. 2009); ground penetrating radar methods (Beres and Haeni 1991; Gulevich and Volkomirskaya 2015); GIS methods (Balathandayutham et al. 2017; Durgadevagi et al. 2016). Several statistical and graphical methods including: principal component analysis, cluster analysis, fuzzy k-means clustering, Collins bar diagram and Piper plot graphical methods have been examined and compared (Güler et al. 2002). The chemistry of groundwater based on hydrochemical data is expedient for giving baseline information on groundwater types, the study of different chemical activities in the aquifer, identification of the aquifer type, as well as the classification of groundwater based on usage (Mondal et al. 2011a). The recent studies have integrated the application of geographic information systems (GIS) with multivariate statistical approaches for groundwater studies (Somay and Gemici, 2008; Sheikhy Narany et al. 2014). In this study, statistical, graphical and GIS methods were applied in studying the hydrochemistry of the groundwater of the study area. While the hydrochemical analysis provides insights into the nature of groundwater in a study area, GIS is useful in giving a good representation of the spatial distribution of the parameters constituting the groundwater chemistry.

Some previous attempts have been made to study the nature of the aquifers along the coastlines of Eastern Africa. For instance, Mtoni et al. (2012) employed a hydrochemical approach in investigating the interaction between the seawater and the Quaternary aquifer of Dar es Salam and classifying the water types based on the prevalent ions in the water samples. A further groundwater study was conducted in the same region to identify the main hydrogeochemical processes controlling the quality of groundwater as well as the possibility of anthropogenic pollution and seawater intrusion (Mtoni et al. 2013). Another study was conducted on the coastal aquifer of South East Tanzania to detect the groundwater sources and the main factors influencing the groundwater quality with the aid of multivariate statistical analyses (Bakari et al. 2011). Sappa et al. (2015) applied techniques such as principal component analysis (PCA), pattern diagrams and geochemical modelling techniques in identifying the major factors influencing the composition of the groundwater on a seasonal scale and assessing the influence of seasonal changes on groundwater chemistry. All these studies employed the broad technique of hydrochemical analysis. Hence, a good number of groundwater studies have been done on the coastal aquifers of Dar es Salam and its environs, but only a limited number of studies have been carried out on other aquifers along the coast of East Africa. This study, therefore, aims to provide in-depth insights into the groundwater chemistry of the North Coast of Mombasa, Kenya, combining hydrogeochemical and geospatial approaches.

Research area

The study area is located on the North Thrust of the Coast of Mombasa lying between latitudes 3° 95″ and 4° 07″ South of the equator and between longitudes 39° 68″ and 39° 72″ East of the Greenwich meridian (Fig. 1). Mombasa is a major hub of commerce and trade between the East African region (EAC) and the international community. It is also a major tourist destination, attracting both local and international tourists to its beaches, resorts and historical monuments. The North Coast of Mombasa experienced a population increase of over 40% between 1989 and 1999 and over 50% between 1999 and 2009 (GOK 1989, 1999; KNBS 2010), and this trend might likely continue in subsequent decades. The increasing population and booming tourism therefore imply more reliance on the groundwater for livelihoods. Site visits, and Digital Elevation Models (DEM) obtained, indicate that the area is lowly elevated and characterised by a relatively flat topography, with elevations in most parts ranging from 0 to 45 m above mean sea level. The only exceptions are the high elevated hills on the western boundary of the study area. The northern and southern ends of the study area are bounded by creeks, while the coastal edge lies on the Eastern part of the study area (Fig. 1). The geological formation is made up of young sedimentary rocks of Pleistocene epoch, comprising coral limestone along the sea and lagoonal deposits further inland, reaching a thickness of 100 m (National Environment Secretariat 1985). The formations are composed mainly of alluvium, wind-blown superficial sands, lagoonal sands, kilindini sands, north Mombasa crag corals and coral breccia which progressively become younger towards the coast (Caswell 2007). The Nguu Tatu hills located on the western boundary of the study area are composed of upper Jurassic shales which are fossiliferous in nature, while the lithology of the area is composed mainly of limestone, sandstone and shale of varying depths (Abuodha 2003; Caswell 2007). The gradients of the continental slope are generally gentle with approximate values of 1:20, and the coral reefs consist mainly of coral limestone, quartz sands, sandstone pebbles, silt and calcareous algae while the Kilindini sands mainly comprise subordinate silts, quartz sands and clays (Abuodha 2003). The general low-lying characteristics aid infiltration and deep percolation of surface runoff, leading to a quick recharge of the aquifer. Hence, the water table is generally shallow and close to the surface (Munga et al. 2006). The climate of the study area is related to the monsoons and the semi-annual passage of the intertropical convergence zone (ITCZ), with the north-eastern monsoon occurring from January to March and the south-eastern monsoon from June to October (National Environment Secretariat 1985). Most rainfall occurs between the monsoon winds, the long rains occurring between March and June while the short rains usually start towards the end of October till December or January. The total annual rainfall is above 1000 mm, with the peak volume of precipitation usually recorded in May (National Environment Secretariat 1985; Climatemps 2015). The coastal aquifer of the Mombasa North Coast is a component of the transboundary coastal sedimentary basin stretching along the coast ends of Kenya and Tanzania (Igrac 2017). The transboundary coastal sedimentary basin, also known as karoo sedimentary aquifer, is about 15,000 km2 and comprises Quaternary and consolidated sedimentary rocks (Barasa et al. 2016; Igrac 2017). The map of the study area, also showing the boreholes/wells from which groundwater data were obtained, is shown in Fig. 1.

Fig. 1
figure 1

(Source: Idowu et al. 2016)

Map of the study area along with the sampling points

Materials and methods

The methodology adopted in this study involves secondary data collection from relevant agencies, field data collection, laboratory tests of water samples, and the statistical and spatial analysis of data. The field data and water samples were obtained for the pre-monsoon, rainy season and post-monsoon on 24 and 25 March, 28 and 29 June and 1 and 2 September 2016, respectively. The data were obtained to cover a half season cycle. The precise locations of boreholes and sampling wells were captured using a Garmin GPS device. The field data obtained were pH, temperature, EC, TDS and NaCl concentrations. Water samples were then taken for further analysis in the laboratory. The parameters tested in the laboratory include cations: Na+, K+, Ca2+ Mg2+ and anions: Cl, HCO3 and SO4 2−. Precautions were taken to ensure sample integrity. The basic procedures and water sampling techniques adopted in this study are largely outlined by APHA (1995). The summary of chemical and instrumental techniques used for obtaining the field and laboratory data is highlighted in Table 1.

Table 1 Chemical and instrumental techniques used for water sample analysis

The exact locations of the sampling boreholes and wells are shown in Fig. 1.

Statistical analysis

The statistical analysis of the data across the three periods entailed correlation matrices to understand the interrelationship amongst the measured parameters and make inferences on their impacts on the groundwater chemistry of the study area (Brown 1998). Piper plots were used to graphically represent the nature of groundwater chemistry in the study area. Principal component analysis (PCA) and mixing index analysis were done to understand the interaction of the aquifer with seawater. The Piper plot is one of the most widely used techniques for visualising the groundwater chemistry data (Peeters 2013). It comprises the ternary diagrams of major cation and anion compositions, plotted into a central diamond for identifying categories of water samples and the hydrochemical processes influencing the data (Piper 1953).

The “PCA”, a method of factor analysis, is a widely applied and probably the oldest and most popular multivariate statistical technique, used to identify trends and obtain the prominent information from a dataset (Abdi and Williams 2010). The PCA analyses the correlations of relationships among variables and try to determine a smaller number of variables that can explain these correlations, i.e. it is a data reduction technique, used to find one or a few number of components that explain all the correlations. The PCA creates a new set of variables having the largest possible variance based on the Eigen values greater than 1 proposed by Kaiser (1960). These new sets of variables are called principal components, and their values are called factor scores. In this study, the parameters: pH, EC, TDS, NaCl, Na+, K+, Ca2+, Mg2+, Cl and HCO3 were analysed from the pre-monsoon, rainy season and post-monsoon datasets. The SO4 2− was only measured at post-monsoon; hence, a separate PCA was done on the post-monsoon data to observe the influence of SO4 2− on the groundwater chemistry. The principal components extracted are orthogonal (uncorrelated) variables generated by varimax rotation involving three major steps: generation of the correlation matrix; factor extraction from the correlation matrix and factor rotation to amplify the relationship between the principal components and the original dataset (Schwartz et al. 2005). The PCA has been widely applied in groundwater studies to not only gain a better understanding of the groundwater chemistry but also infer the presence of pollution like seawater intrusion in coastal aquifers (Al-Ahmadi and Subyani 2010; Mondal et al. 2011a, b; Xuedi et al. 2011; Ravikumar and Somashekar 2015).

Seawater mixing index (SMI) was further applied by Mondal et al. (2011a) in a coastal groundwater to understand the extent of seawater mixing in the aquifer. Seawater mixing is usually higher in the dry season than the rainy season (Schwartz 2006); hence, in this study, the post-monsoon data were analysed based on the principles and equation of SMI (Mondal et al. 2011a). SMI is calculated based on four ions predominant in seawater, i.e. Na+, Mg2+, Cl and SO4 2− with the equation:

$$\varvec{SMI} = \varvec{a} \times \frac{{\varvec{C}_{{\varvec{Na}}} }}{{\varvec{T}_{{\varvec{Na}}} }} + \varvec{b} \times \varvec{ }\frac{{\varvec{C}_{{\varvec{Mg}}} }}{{\varvec{T}_{{\varvec{Mg}}} }} + \varvec{c} \times \varvec{ }\frac{{\varvec{C}_{{\varvec{Cl}}} }}{{\varvec{T}_{{\varvec{Cl}}} }} + \varvec{d} \times \varvec{ }\frac{{\varvec{C}_{{\varvec{SO}_{4} }} }}{{\varvec{T}_{{\varvec{SO}_{4} }} }}\varvec{ }$$
(1)

where a = 0.31, b = 0.04, c = 0.57 and d = 0.08 representing the relative proportions of concentration Na+, Mg2+, Cl and SO4 2−, respectively, in seawater; C is the observed concentration of the ions in the groundwater samples (mg/l); T is the calculated regional threshold values of the four ions estimated from cumulative probability curves.

Spatial analysis

Spatial analysis gives a visual dimension and holistic qualitative and quantitative description of the groundwater parameters by showing the spatial distributions. Statistical analysis of groundwater samples only involves the analysis of point data from boreholes/wells; hence, it is limited in application for explaining the spatial distribution of groundwater parameters. The extra advantage spatial analysis has is point data are interpolated geostatistically to form surfaces (Goodchild and Haining 2004), e.g. water table surface, spatial distribution of EC values across the aquifer. Adnan and Iqbal (2014) assessed the groundwater quality of an aquifer by spatially analysing and mapping the groundwater pollutants through the interpolation of water sample data taken from different points to create raster surfaces. A similar study by Durgadevagi et al. (2016) stresses the importance of spatially representing the various parameters constituting the groundwater chemistry. This study involved the spatial interpolation of the EC, TDS and NaCl concentrations in water samples obtained from strategic points in the study area and groundwater level measurements from the boreholes/wells to create contour and spatial variation maps. They were achieved with the aid of geostatistical interpolation tools such as kriging and inverse distance weighted (IDW) in the ArcGIS software. The groundwater levels with respect to the mean sea level were estimated from the static water level measurements using SRTM digital elevation models (DEM) as the benchmarks. These point data were used for generating raster surfaces from which the groundwater table contours were obtained.

Results and discussion

General hydrochemistry

The major parameters were determined for 12 samples in March 2016 and 15 samples each in June and September 2016. Summaries of all the major parameters obtained and tested across the three datasets are presented in Table 2a, b and c. The pH values in the groundwater in March, June and September varied from 6.65 to 8.73 (Table 2a, b and c). However, 40 of the entire 42 samples had pH values above 7, suggesting the groundwater is predominantly slightly alkaline. The only 2 mildly acidic values of 6.65 and 6.98 were observed in the rainy season (Table 2b). The 2 values fall within the WHO pH range for rainwater (WHO 2011), suggesting the mild acidity may be due to rainfall percolation. All but 3 of the samples fall within the pH range of 6.5–8.5 specified by the Kenya drinking water guidelines implying an acceptability of over 90% of the water samples. Conversely, 24 out of the entire 42 samples fall within the WHO guidelines of 7.5–8.5 implying 57% acceptability. It can be inferred that the groundwater generally has a stable pH irrespective of the seasons.

Table 2 Concentration of the major parameters in the groundwater samples

A close observation of Table 2a, b and c shows that Electrical Conductivities and Total Dissolved Solids levels in groundwater vary considerably across the aquifer. For instance, the EC values ranged from 761.5 to 10,585 µS/cm in March, while TDS values were from 438 to 5281 mg/l within the same time period (Table 2a). This variation in EC and TDS values across the study area was equally observed in June and September. On a seasonal scale, the general trend observed is that EC and TDS values are slightly lower in the aquifer during the rainy season (Table 2b). This may be due to increased groundwater flow associated with high recharge from rainfall during the rainy season. In terms of the allowable standards for drinkable water provided by WHO, the concentration of EC and TDS in over 94% of the water samples taken exceeded the allowable limits of 750 µS/cm and 500 mg/l across the seasons (Table 2a, b and c). However, only slightly >40% exceeded Kenya drinking water limit of 1500 mg/l for TDS contents. NaCl values showed similar observations to those made on EC and TDS values. For instance, a broad range of 660 to 10,569 mg/l NaCl values was observed in March 2016 and also showed similar trends in June and September (Table 3). By assessing the EC (Rai 2004; Mondal et al. 2008), the groundwater samples have been classified into: 1. Fresh (<1500 µS/cm); 2. Brackish (1500–3000 µS/cm); 3. Saline (>3000 µS/cm). The EC classifications for each collection period are represented in percentages and shown in Table 4. The table shows the groundwater is largely brackish/saline with combined percentages of 75, 67 and 73%, respectively, recorded at pre-monsoon, rainy season and post-monsoon. The highest freshwater percentage of 33% was recorded in the rainy season, while the pre-monsoon data accounted for the highest saline water percentage of 42%. Conversely, June reflected the highest freshwater percentage (33%) and the lowest brackish/saline percentage (67%), which suggests salinity is lower in the groundwater during the rainy season. This may be due to the increased groundwater recharge from rainwater infiltration in the rainy season. The boreholes/wells Milele W5, Nyali Golf W6, SOS W12 and Sunsweet W10 are all located along the long stretch of coastline from Nyali on the southern boundary of the study area to Shanzu on the northern end just adjacent to the mtwapa creek (Table 5, Fig. 1). The consistently high values of EC and TDS recorded in them might be due to their proximity of <500 m to the Indian Ocean. Also, Vikwatani W16 close to the Nguu Tatu hills on the western boundary was observed to consistently contain high EC and TDS values (Table 2). The relatively higher groundwater table of >25 m above mean sea level (Table 5) implies that the high EC and TDS values may not only be due to seawater mixing but also other complex geological processes. However, the spatial distributions of the EC, TDS and NaCl values derived from spatial analysis give more veritable representation of the values and spread of these parameters in the groundwater.

Table 3 Statistical analysis of the parameters across the three periods
Table 4 Fresh, Brackish and Saline water types in the groundwater in percentages
Table 5 The sampled boreholes/wells showing the geographic coordinates and the water tables above mean sea level

Of the four cations tested, Na+ had the highest concentration over the study period showing values as high as 736 mg/l in a sample (Table 3). However, the Na+ concentrations were observed to be generally lower in June (Table 2a, b and c). Over 50% of the water samples taken from the three periods exceeded the allowable limit of 200 mg/l for Na+ content specified by both WHO and Kenya drinking water guidelines. However, Ca2+, K+ and Mg2+ concentrations in all the water samples were within the allowable limits specified by both regulatory bodies (Table 2a, b and c). The Mg2+ and Ca2+ exist in much smaller quantities in comparison with Na+ and K+. This observed difference between Mg2+ & Ca2+ and Na+ and K+ concentrations is more evident in the samples taken in June (Table 2b) where the concentrations of ions were generally lower. The lower concentrations imply that the groundwater quality tends to be higher in the rainy season.

The anions exhibited varying trends across the aquifer and over the three datasets. The concentrations of chloride ions in groundwater ranged from 140.30–379.60 mg/l in March (pre-monsoon), and dropped to a range of 10.38–149.85 mg/l in June and 108.80–154.30 mg/l in September. Conversely, HCO3 concentration ranges were 87.84–173.24, 39.04–156.16 and 51.53–189.15 mg/l in the same period (Table 3). This implies the variation of chloride ions across the aquifer reduced from the dry (pre-monsoon) to the wet season, while the reverse was the case with bicarbonate concentrations. The SO4 2− ions tested in September varied from 78.91 to 328.92 mg/l in the water samples. The chloride concentrations of 75% of the water samples taken in March exceeded WHO’s allowable limit for drinking water (WHO 2011), while over 50% exceeded the Kenya drinking water guidelines (Kenya WASREB 2008). In the case of SO4 2−, 4 out of 15 samples exceeded 200 mg/l limit specified by WHO’s drinking water limit while all the samples satisfied the 400 mg/l Kenya drinking water guidelines limit (Table 2c). Overall, the relatively high values of EC, NaCl, Na+ and Cl across the three periods of data collection (Table 2) suggest that the groundwater in a large portion of the aquifer is unsuitable for direct drinking purposes but may be useful for general domestic use.

Correlation matrices

The use of correlation matrices to assess the relationships amongst groundwater quality parameters is not only beneficial in evaluating the overall quality of groundwater but also gives insights on pollution for effective water quality management (Jothivenkatachalam et al. 2010). Correlation matrices were developed for each of the parameters tested in the groundwater in the study area. High correlation coefficients “r” (i.e. values close to −1 and 1) implies strong relationships between the variables of one parameter and the other (Ratner 2009). Strong positive correlations are indicators of the significance of the parameter in the groundwater chemistry of the study area and their tendency to follow a similar trend (Adams et al. 2001; Mondal et al. 2011b). The correlation coefficients r for the various parameters tested are presented for the pre-monsoon, rainy and post-monsoon seasons and highlighted in Table 6.

Table 6 Correlation coefficients for the groundwater parameters for the coastal aquifer of the North Coast of Mombasa

The correlation matrices for the three datasets were observed to all follow a similar trend. EC and TDS for the three periods had correlation coefficient values 0.99, 1.00 and 1.00, respectively, implying an absolute direct linear relationship (Table 6). The EC and TDS were also observed to consistently have strong correlations with Na+, Mg2+, Cl and K+ over the three datasets (Table 6). It can be inferred that these parameters play significant roles in defining the groundwater geochemistry of the study area. Mondal et al. (2011b) noted that high correlation of groundwater parameters is suggestive of the parameters/ions controlling the chemistry of the groundwater. Cl showed a strong positive relationship with Na+ and K+ across the three datasets signifying that these three parameters heavily influence the EC and TDS contents of the groundwater. It is noteworthy that Na+ had a strong positive relationship with Mg2+ and K+ across the three periods, while Mg2+ had a strong positive relationship with K+ in both March and June. Na+, Mg2+ and K+ are known to exist in much larger quantities in seawater in comparison with continental freshwater (Moujabber et al. 2006), thereby implying the groundwater salinity may be due to the influence of the seawater body in proximity to the groundwater aquifer. Conversely, HCO3 and Ca2+ had no consistent relationship with other parameters/ions across the three time periods. This lack of consistent relationship was also observed in the pH values. The pH values had no correlation with the other parameters in the groundwater and followed no consistent trend. The water samples taken in September were tested for SO4 2− concentration (Table 2c), and it was observed that SO4 2− strongly correlates with EC, TDS, Na+ and Mg2+ which have been identified to have strong positive correlations amongst themselves.

Hence, the main parameters controlling the groundwater chemistry are EC, TDS, Cl, Na+, Mg2+, K+, and to some degree SO4 2− while changes in Ca2+, HCO3 and pH have minimal impacts on the geochemistry of the study area.

Piper plots

Piper plot is one of the most widely applied methods for characterising groundwater (Karmegam et al. 2011; Musa et al. 2014), and it categorises ground water as any of the following: Ca-SO4 waters, Na-SO4 waters, Ca–Cl waters, Na–Cl waters, Na-HCO3 waters or Ca-HCO3 waters (Adams et al. 2001). Ca-SO4 waters are typical of gypsum groundwaters and mine drainages; Ca-HCO3 waters are indicative of shallow fresh groundwater; Na–Cl waters are indicative of marine and deep ancient groundwaters, while Na-HCO3 waters typify deeper groundwater influenced by ion exchange (Piper 1953). The piper plot was obtained for post-monsoon data for two reasons: 1. Seawater influence is higher in the groundwater during the dry season; 2. The SO4 2− measurements were only available for the post-monsoon data of this study (Fig. 2). The concentrations of the cations (Na, K, Mg, Ca) and anions (Cl, HCO3, SO4) were all normalised and plotted into the piper plot as shown in Fig. 3.

Fig. 2
figure 2

Piper plot for the water samples taken in the study area

Fig. 3
figure 3

Scree plots showing the components against the Eigen values a combined dataset b September dataset

The groundwater samples fall within the “Na–Cl waters” quadrant in the diamond (Fig. 2) which implies the groundwater is of the marine and deep ancient type (Piper 1953). This suggests the presence of salinization (Adams et al. 2001) due to the dynamic movement of the seawater interface over geological time periods. The study area stretches from the seafront to about 7 km inland while it is bounded to the north and south by creeks implying a constant interaction between the aquifer and the adjourning saltwater bodies for several thousands of years. This explains why the water samples all point towards being of marine origin.

Principal components analysis

The variables pH, EC, TDS, NaCl, Na+, K+, Ca2+, Mg2+, Cl and HCO3 were analysed to obtain the principal components for the entire 42 samples obtained. Furthermore, a separate factor analysis was done for the post-monsoon data to account for the SO4 2− variable present. The total number of components in factor analysis is equal to the number of variables in the dataset. This is observed in the scree plots showing 10 and 11 components, respectively, in a and b (Fig. 3). Varimax orthogonal rotation with Kaiser normalisation was used to extract the principal components. The scree plots show that three components (factors) have Eigen values >1 in both analysis, and these are the principal components extracted as shown in Table 7. The three principal components (factors) obtained accounted for a cumulative 87.33% of the variance for both factor analysis, i.e. the combined dataset and post-monsoon dataset (Table 7).

Table 7 Varimax rotated Principal component matrices and the variables of the groundwater samples

Three principal components imply there are three distinct processes contributing to the groundwater chemistry. For the combined dataset, component I with the highest variance of 54.03% has EC, TDS, NaCl, Na+ and K+ with high positive loadings >0.9. High values of EC and TDS could be as a result of seawater mixing but also anthropogenic influences; however, NaCl, Na+, K+ are highly indicative of seawater intrusion. Hence, the principal component I suggests the influence of seawater intrusion. Component II has Mg2+, Ca2+ and Cl with high positive loading >0.8. These ions in groundwater are usually as a result of a wide range of complex natural processes. The pH and HCO 3 parameters have high positive loadings >0.7 in Component III. The pH could be as a result of changes in mineral compositions in groundwater as well as the mixing of rainwater with the groundwater through deep percolation. HCO 3 in groundwater is usually as a result of dissolution of carbonate minerals in the aquifer. Since the lithology of the aquifer comprises mostly limestone, sandstone and shale, HCO 3 concentrations in the groundwater might be as a result of the dissolution of the minerals in the aquifer. Hence, the main contributor to the groundwater chemistry is seawater interaction (component I), and to lesser extents: complex natural processes, mineral dissolutions in the aquifer formation and rainwater percolation. The factor analysis for the post-monsoon dataset largely confirms the identified processes.

Component I of post-monsoon data set has additional parameters Mg2+, Cl and SO4 2− with high positive loadings >0.5 and Ca2+ with a high negative loading >−0.6. The Mg2+, Cl and SO4 2− are predominant in seawater, while Ca2+ concentrations are relatively higher in continental freshwater. This further shows that seawater interaction plays the major influence on the groundwater chemistry.

Seawater mixing index

Based on Eq. 4, the seawater mixing index was calculated for the post-monsoon dataset using the concentrations and threshold values of Na+, Mg2+, Cl and SO4 2− known to be high indicators of the presence of seawater intrusion. The regional threshold values (T) of the four chosen parameters were derived from the inflection points of the cumulative probability plots against the log of the concentration of the parameters (Fig. 4).

Fig. 4
figure 4

Plots of cumulative probability versus log of concentrations a. Na+, b. Mg2+, c. Cl, d. SO4 2− in the groundwater

The approximate regional threshold concentrations estimated are 125.89, 1.41, 128.82 and 100 mg/l for Na+, Mg2+, Cl and SO4 2−, respectively. SMI values of all the groundwater samples varied from 0.79 to 3.30. The results of a similar SMI study by Mondal et al. (2011a) showed SMI values of a range 1.98–22.40 for the Na–Cl water types identified in the study area. In contrast, the extent of seawater mixing in this study shows a much lower range. This implies the impact of the seawater intrusion observed in the coastal aquifer of Tamil Nadu, India, is much higher than that observed in the North Coast of Mombasa Kenya in this study.

Spatial analysis

The groundwater levels above or below the mean sea level were estimated from static water level measurements from the boreholes/wells. Since the topography of any area on the earth’s surface is uneven, the digital elevation model for the study area was used to estimate the actual water levels with respect to the mean sea level as shown in Table 5. At pre-monsoon, the groundwater level measurements varied from 0.90–29.89 m above mean sea level (msl) while −0.95 to 26.86 m and −0.84 to 30.08 above msl were observed during the rainy season and post-monsoon, respectively (Table 5). This implies the groundwater levels could be slightly below mean sea level in some parts of the study area depending on the season and abstraction rate. However, these are point measurements which may not be fully representative of all parts of the aquifer. Hence, the spatial analysis is required to produce raster surfaces and contours.

The point groundwater measurements were interpolated to produce the rasters of the water table. The groundwater table contours obtained from the groundwater table rasters showed little variation across the seasons, varying from 0 to 27 m above mean sea level at pre-monsoon and −1 to 32 m above mean sea level at post-monsoon (Fig. 5). The groundwater table is generally shallow and supports the previous study by Munga et al. (2006). The contour maps for the NaCl, EC and TDS distributions for the pre-monsoon, rainy season and post-monsoon were all created to represent the hydrogeological condition of the study area.

Fig. 5
figure 5

Hydrogeological Map of Mombasa North Coast showing the groundwater levels at pre- and post-monsoon

The spatial distributions of the EC and TDS were somewhat similar (Figs. 6 and 7), indicating a strong relationship between their concentrations. The EC and TDS both showed a wider distribution of high concentrations (>1000 mg/l) in pre-monsoon than post-monsoon, especially towards the north-east and western parts of the study area which are in close proximity to the Ocean and creeks, respectively (Figs. 6 and 7). However, different dynamics were observed in the rainy season (June). Here, EC and TDS concentrations were below 1000 µS/cm and 500 mg/l, respectively, in large portions of the study area during the rainy season, with their concentrations increasing towards the Ocean (Figs. 6 and 7). It is likely that as the aquifer receives natural recharge from rainfall, it lowers the concentration of these parameters in groundwater. Also, higher groundwater flow during the rainy season as a result of rainfall recharge may tend to increase the hydraulic pressure of freshwater needed to shift the fresh/salt water wedge towards the sea (Wiest 1998). The peak monthly rainfall in the coast of Mombasa is experienced in the month of May averaging 238 mm, while April and June averages 159 and 88 mm, respectively (Climatemps 2015). Hence, a cumulative rainfall of almost 500 mm was experienced in the 3-month period between March (pre-monsoon) and the June data collection phase. As a developing city, with a high aquifer recharge rate of 18–20% of the rainfall (Munga et al. 2004), the high rainfall recharge invariably contributed to the skewness of high EC and TDS concentrations towards the shore. The NaCl concentration which is a direct reflection of salinity showed a similar spatial trend with the EC and TDS (Fig. 8) signifying a strong relationship between the groundwater salinity and high values of EC and TDS in the aquifer. Figures 6, 7 and 8 show the spatial contours of the concentrations of the EC, TDS and NaCl concentrations, respectively.

Fig. 6
figure 6

Contour lines showing the spatial variation of EC values in the aquifer at a pre-monsoon, b rainy season and c post-monsoon

Fig. 7
figure 7

Contour lines showing the spatial variation of TDS concentrations in the aquifer at a pre-monsoon, b rainy season and c post-monsoon

Fig. 8
figure 8

Contour lines showing the spatial variation of NaCl concentrations in the aquifer at a pre-monsoon, b rainy season and c post-monsoon

Conclusions

Major groundwater parameters such as pH, EC, TDS, cations Na+, K+, Mg2+, Ca2+ and anions Cl, HCO3 , SO4 2− were analysed using statistical and spatial tools to understand the hydrogeochemical characteristics of the coastal aquifer of Mombasa North Coast. The groundwater pH was observed to be slightly alkaline with values ranging mostly between 7 and 8 although mildly acidic values may be experienced during the rainy season. This may be due to the rainfall recharge which is slightly acidic in nature. However, the pH values of over 90% of the samples fall within the Kenya drinking water limit (6.5–8.5) and 57% of the samples have pH values within WHO drinking water limit (7.5–8.5). Over 94% of EC and TDS values of the water samples obtained exceeded WHO drinking water limits of 750 µS/cm and 500 mg/l, respectively. However, only 43% of the water samples exceeded TDS concentrations of 1500 mg/l, the limit set by Kenya drinking water guidelines. The highest values of EC and TDS were recorded at pre-monsoon (March)—10,585 µS/cm and 5281 mg/l, respectively. The EC classifications of the groundwater into fresh, brackish and saline waters suggest that higher groundwater salinity is experienced during the dry seasons. A near-perfect correlation was observed between EC and TDS values of the water samples. Seven parameters EC, TDS, Na+, K+, Mg2+, Cl and SO4 2− were observed to have strong correlations and hence have high impacts on the groundwater chemistry and have a tendency to follow similar trends. The Piper plots reveal the groundwater as Na–Cl waters and of the marine and deep ancient type. Further PCA and SMI statistical analysis reveals that the main contributor to the groundwater chemistry is seawater interaction, and to lesser extents are: complex natural processes, mineral dissolutions in the aquifer formation and rainwater percolation. The water table levels in the study area are quite shallow with observed values of 0.90–29.89 m above mean sea level (msl) at pre-monsoon, −0.95 to 26.86 m and −0.84 to 30.08 m above msl in the rainy season and post-monsoon, respectively. The spatial variation maps of EC, TDS and NaCl show somewhat similar trends for both the pre-monsoon and post-monsoon, howbeit, relatively lower concentrations were observed in the latter. Close observation of the spatial maps for the rainy season shows that high concentrations of EC, TDS and NaCl were skewed towards the Ocean while the concentrations decreased with increasing distance to the Ocean. This implies that groundwater recharge from rainfall tended to facilitate the reduction of these concentrations inland. The constant interaction between the Ocean and the aquifer portion in close proximity to the Ocean might have accounted for the high concentrations of the EC, TDS and NaCl. The seasons affect the groundwater chemistry, and groundwater recharge from rainfall tends to slightly lower the values of EC, TDS and NaCl in the aquifer in the rainy season. The general high salinity observed in the groundwater renders the water unfit for direct drinking in many parts of the aquifer, but useful for domestic use. Finally, this study shows that a robust understanding of the hydrochemical characteristics of an aquifer can be obtained by combining the application of statistical and geospatial tools in groundwater studies.