1 Introduction

The management and sustainability of groundwater resources are influenced by factors such as climate, climate change, groundwater interactions with surface water, geology, and topography among others. The climate is the behavior of the atmosphere over a long period while climate change is the change in the long-term averages of daily weather conditions such as rainfall temperature, sunshine, humidity, wind, etc. Several definitions have been given to climate change: Climate change is global warming and has been attributed to changes in weather parameters over decades of years (Aribisala et al. 2015). Onoja et al. (2011) attributed climate change to natural and human causes such as biotic processes, variations in solar radiation received by the earth, plate tectonics, volcanic eruptions, and burning of fossil fuels.

Climate change has been stated as one of the major problems increasing the mean temperature of some regions and its disturbance in the occurrence and severity of some hydrological events such as flood and drought is alarming (Patel and Mehta 2023). Groundwater resources have been vital in the sustenance of drinking water, irrigation, agricultural and industrial maintenance and it has been reported that it meets above one-third of global drinking water demands (Swain et al. 2022). The demand for groundwater in the world has intensified in the last decades and the pressure may increase in the future (Reinecke et al. 2021; Addisie 2022). The monitoring of the effect of climate change is crucial for sustainable groundwater resources management. The information on the impact of climate change and its variables on groundwater is very limited and the challenges are rising with a more worsen situation predicted for the future (Kumar 2012; Ashaolu 2016; Guptha et al. 2022). The effect of climate change on groundwater resources is twofold; direct and indirect impacts. The direct impact of climate change relates to the natural recharge mechanisms from rainfall while the indirect impacts are those concerned with the changes in groundwater use, governed by anthropogenic activities (Swain et al. 2022).

The measurement of the natural groundwater recharge and discharge is vital for effective groundwater resource management. The fraction of the total precipitation falling on the earth that infiltrates and reaches the water table is the natural groundwater recharge. The availability of enough water in the ground is governed by geology and the soil but rainfall and evapotranspiration are governed by the climate. The variability in climate change has been reported to come with two extremes, flood, and drought and it has been reported to have a pronounced impact on groundwater. The ozone layer in the atmosphere is already depleted and it has been stated that Nigeria is currently experiencing the catastrophic effects of climate change in the area of flooding; the year 2022 flooding has been described as the worst Nigeria has experienced since 2012 (Daily Trust 2022).

Heavy rainfall events contribute to groundwater resources but the recharge in some boreholes of tropical Africa is disproportionate to extreme rainfall events (Owor et al. 2009; Taylor et al. 2013). Groundwater residence time ranges from days to thousands of years thus, measuring the responses to climate change is delayed and this could be challenging (Aizebeckhai 2011). One of the measuring parameters for future management and sustainability of groundwater is recharge; rainfall being the major contributor to recharge describes the quantity of water that will enter any aquifer. Quantifying the quantity of water that recharges the ground is challenging because groundwater recharge is influenced by several factors such as infiltration, evaporation, runoff, temperatures, and land cover etc. with precipitation being the major driving force, (MacDonald et al. 2021; Ashaolu 2018). There are high uncertainties associated with the regional and global climate models regarding the effects of climate change on rainfall patterns (Bates et al. 2008). Any increase in intensity and frequency of heavy rainfall events interspersed with severe and prolonged droughts may induce changes in recharge and discharge of groundwater systems.

Climate change affects groundwater recharge rate, depth to the water table, and water levels in Aquifers, and most simulated models for climate change predicted a more than 70% decrease in recharge for southwestern Africa by 2050 (Aizebeckhai 2011). The portioning of recharge, runoff, and evapotranspiration is controlled by the depth of groundwater and the lateral redistribution of water in the ground. (Condon et al. 2020). A warmer climate increases evapotranspiration and this may affect the portion of precipitation that infiltrates the ground as recharge or the fraction that becomes runoff (Condon et al. 2020). Climatic factors such as temperature gradients, wind, and relative humidity control potential evapotranspiration. Any temperature increase can reduce groundwater storage; at 15°C warming, groundwater storage may decrease by 100,000 MCM (Condon et al. 2020). Climate change can increase runoff if the storm is intense and subsequent extreme flooding events. The assessment of the impact of climate change on groundwater resources as reported by Aribisala et al. (2015) concluded that climate change did not have a pronounced effect on groundwater resources.

Climate change influenced the rainfall characteristics with a corresponding impact on groundwater recharge (Makinde et al. 2017; Zakwan 2021). An increase in the rainfall amount as a result of climate swing influenced the groundwater resources in the basement complex of Nigeria (Ashaolu 2016). Climate change scenarios on groundwater recharge will not change by the year 2030 if it is estimated using all weather parameters but the temperature rise will bring a corresponding decrease in groundwater recharge (Kambale et al. 2016). Groundwater systems are expected to be affected by recharging changes, including changes in precipitation and evapotranspiration and potential environmental changes in connections between groundwater and groundwater systems (Deshmukh et al. 2022). The rainfall that contributes to groundwater aquifer is the recharge coefficient (Alloca et al. 2014). The increasing hazards of climate change are real, numerous, and alarming (Deshmukh et al. 2022) and the annual groundwater recharge and storage are projected to increase from the baseline for all scenarios of future climate (Soundala and Saraphirom 2022). Several studies on the influence of climate change on groundwater resources have been conducted globally; Aribisala et al. (2015) used the climate trend on the borehole trend to check the groundwater recharge, Makinde et al. (2017) used the time series model to check if the climatic variations affect the aquifer in Southwestern, Nigeria, Ashaolu (2016), used the non-parametric Sen’s slope estimator for the slope of the linear trend of the climatic factors and groundwater recharge, Kambale et al. (2016) used ARIMA and HYDRUS ID to climate factors scenerios; Soundala and Saraphirom (2022) used numerical model to simulate the impact of climate change on groundwater resources.

The groundwater resources in the basement complex of Nigeria have been reported to be overstressed due to over abstraction and the major source of recharge is solely from direct rainfall (Ashaolu 2016). Fewer studies look at recharge in the context of the prevailing climatic swing, hence, management and sustainability of the resources become difficult. The study aims at evaluating the influence of climatic change on groundwater resources and the specific objectives are to monitor the changes in the climatic trend, obtain annual rainfall and estimate the groundwater recharge, evapotranspiration and the direct runoff, the climatic variables influencing their values and the percentage of rainfall returned as recharge.

2 Materials and Methods

2.1 Study Area

The study area (Fig. 1) is the Osogbo metropolis located on latitudes N 7044′0″- N 7048′0″ and longitude E 4o32′0″- E 4° 36′0″. The area is underlined by weathered gneisses typical of the basement complex of Nigeria (Oyelami et al. 2022). The vital rock groups are migmatite complex and metasediments such as; quartzite, schist, and amphibolite. The soils in and around the area are relatively deep, and rich, primarily derived from coarse and granite rock, and have greater proportions of ferruginos tropical red soils known as laterites (Adegboyega et al. 2018). It is within the lowland tropical rainforest vegetation; it is properly drained by river Osun and it has a land mass of 66,264 km2 (Alimi et al. 2022; David and Nwaogozie 2023).

Fig. 1
figure 1

Map of Osun State Showing Osogbo

2.2 Methods

The study collected 20 years (2001–2020) of data on daily rainfall, wind speed, sunshine hours, humidity, and maximum and, minimum temperature from Nigeria Meteorological Agency, (NIMET) Abuja. The climatic data were extracted and sorted on a monthly and yearly basis and were subjected to descriptive statistics. The results were inputted into the empirical to estimate the subjected to descriptive statistics. The results were inputted into the empirical formulas to estimate the groundwater recharge, recharge coefficient, direct runoff, and evapotranspiration. The climatic factors and groundwater recharge were subjected to regression analysis to obtain the trend line with time and the model equations were generated.

The relationship that existed between the climatic factors (independent variables) and the groundwater variables (dependent variables) was extracted by using the multiple regression analysis (MANOVA) models of the Paleontological Statistics 4.13 software. A model was developed for the groundwater recharge and the direct runoff. The estimation of evapotranspiration was done using the FAO Penman–Monteith model (Eq. 1) of the CROPWAT software version 8.0. Groundwater Recharge was estimated using the Modified Chaturvedi equation (Eq. 2), effective rainfall (ER) was obtained from the USDA S.C method from the CROPWAT software, recharge coefficient was estimated using (Eq. 3), and direct runoff was estimated using the water budget approach (Eq. 4).

Estimation of evapotranspiration

$$ET_{O} = \frac{{0.408\Delta \left( {R_{n} - G} \right) + \gamma \frac{900}{{T + 273}}U_{2} \left( {e_{s} - e_{a} } \right)}}{{\Delta + \gamma \left( {1 + 0.34U_{2} } \right)}}$$
(1)

where:

To is the estimated evapotranspiration [mm/day].

\({R}_{n}\)= the surface radiation balance [MJ/m2/day].

G = sensible heat flux in the soil [MJ/m2/day].

T = average atmospheric temperature [°C].

\({U}_{2}\)= wind speed at 2 m height [m/s].

\({e}_{s}\) = saturation vapor pressure [kPa].

\({e}_{a}\)= actual vapor pressure [kPa].

Δ = slope of the water vapor saturation pressure curve [kPa/°C].

Ɣ = psychrometric constant [kPa/°C].

Estimation of Groundwater recharge

$${\text{Groundwater recharge}} \left( {{\text{GRr}}} \right) = 1.35\left( {AP - 14} \right)^{0.5}$$
(2)

where AP = annual rainfall in inches.

Estimation of Recharge coefficient

$${\text{Recharge coefficient}} = GRr/ER \%$$
(3)

where:

GRr = Groundwater recharge.

ER = effective rainfall.

Estimation of Direct runoff

$${\text{Direct runoff}} = 0.85 \times AP - 30.5$$
(4)

3 Results and Discussion

3.1 Descriptive Statistics of Climatic Data

The descriptive statistics of the data and estimated values of groundwater variables (Table 1) revealed the highest climatic factors: maximum temperature (33.3 °C) in 2019, minimum temperature (22.5 °C) in 2005, relative humidity (88.63%) in 2008, sunshine (5.85 h) in 2011, wind (4.69 knots) in 2016, Evapotranspiration (1310.28 mm) in 2008 and annual rainfall (1692 mm) in 2010. The lowest climatic variables (max temp (30.8 °C), min temp (20.4 °C), relative humidity (69.63%) sunshine (5.18 h), wind (3.14 knot), annual rainfall (1014.7) and evapotranspiration (1204.14) were reported in 2005, 2020, 2011, 2011, 2001, 2001 and 2012, respectively. There was a gradual but fluctuating increase in maximum temperature until it rose to the peak in 2019 (Fig. 2) and it is the highest reported in the study area since year 1980 (Ashaolu 2016; Babatola and Asaniyan 2016). Although the maximum temperature is high, studies from similar basement complex has reported a maximum temperature of 37.3 °C (Obiefuna and Orazulike 2010). The values of humidity fluctuate, but the highest humidity reported in 2008 in this study did not agree with Ashaolu (2016). Coincidentally, the highest humidity occurred in the year with the highest number of rainy days (Table 1) while the year 2015 reported the lowest rainy days (98 days).

Table 1 Descriptive statistics of cimatic factors and groundwater variables
Fig. 2
figure 2

Graph of maximum temperature and year

The maximum annual rainfall obtained in this study is similar to the annual rainfall amount (1692 mm) obtained by Oke et al. (2015) but the difference in the averages of maximum rainfall when compared to Ashaolu (2016) is an indication that the annual rainfall amounts have increased over the years (Babatola and Asaniyan 2016; Oke et al. 2015; Ashaolu 2016). This is corroborated with the findings of Ogunbode and Ifabiyi, (2019) that more rainfall will be experienced in the tropics as a result of changes in temperature. The estimated groundwater variables (Table 1) reported the highest (248.75 mm) and lowest (174.67 mm) groundwater recharge in 2001 and 2019, respectively. A plot (Fig. 3) of the recharge against other variables shows that the evapotranspiration is very high and did not fluctuate evenly with the annual rainfall: evapotranspiration in the year 2001, 2011, 2015 and 2017 were higher than the annual rainfall and it clearly shows why the graph of groundwater recharge is far below evapotranspiration, annual rainfall and direct runoff (Fig. 3). The climatic factors have not changed significantly and this observation agrees with some literature that the south-western region of Nigeria has generally not experienced a pronounced change in climate except for rainfall which has witnessed about a 2% to 5% increment (Aribisala et al. 2015). The average amount (216 mm) of water entering the groundwater as recharge is 15.63%, of the annual rainfall thus the fraction of rainfall returning as groundwater has not changed when compared to past studies. Several factors are responsible for the pattern of groundwater recharge aside from climatic factors, rainfall, runoff, and evapotranspiration; land use, geology, natural vegetation, and infiltration capacity among others are also very critical factors of study. From Fig. 3, the portion of rainfall returning as direct runoff is equally high, thus a larger percentage of annual rainfall is returning as direct runoff and evapotranspiration which implies that the groundwater recharge mechanism of the study area may be controlled beyond the factors of climate.

Fig. 3
figure 3

The graph of annual rainfall, evapotranspiration, groundwater recharge and direct runoff

3.2 Trend Analysis

The trend plot (Fig. 4) generated the statistics presented in Table 2. The Akaike ICc (AIC) for the minimum temp (9.843), Sunshine (8.0673) Max temp (10.404), and Wind (10.337) are moderately high while Humidity (243.84) Eto (10,483), AR (7.293), GRr (8526.7) are very high. Moderately high AIC suggests that the model is an average fit but it’s not the best fit. The R2 value for the maximum temperature is higher (0.4) than for other climatic variables thus 40% of the variance in the maximum temperature is explained by the independent variable but the model may not be significant in predicting the maximum temperature. Other than for maximum temperature the R2 value for other climatic factors is very low hence there is no relationship between the predictor and the response variable. The sunshine, wind, groundwater recharge, and annual rainfall are negatively sloped (Fig. 4) which may suggest a negative correlation. The climatic variables are changing with time but the changes are not significant.

Fig. 4
figure 4

Trend Plot of climatic factors and groundwater recharge a Min T, b Max T, c H, d S, e W fE to gAR h GRr

Table 2 Statistics of polynomial regression analysis of climatic variables and generated equation with time

3.3 Effect of Climate Change on Groundwater Recharge

The result of the multivariate multiple regression analysis (Table 3) separated all the variables into dependent variables (groundwater recharge, direct runoff, and recharge coefficient) and independent variables (the climatic factors Min and max temperatures, humidity, sunshine, wind, annual rainfall, and evapotranspiration) using Eq. 5. The Wilks lambda value for the Overall MANOVA was between 0 and 1 and this shows how well the function separated the variables into groups. The low value of Wilki’s lambda (0.0006944) is an indication that there is a significant difference between the dependent variables and the climatic factors. The F- value (16.1) is high suggesting a significant difference between the groups and the P- value (6.979E-11) is quite low, thus there is an indication that the model is very significant and the variables have an effect on each other. The groundwater recharge pattern has not changed when compared to Ashaolu (2016). However, the tests on independent variables show that the climatic factors have less influence on the groundwater variables when considered individually.

Table 3 Statistics of MANOVA regression

The Wilki Lambda and the P-values are high, and the F-static is low; (0.9081, 0.7989, 0.3372 for humidity, 0.701, 0.31,1.361 for sunshine, 0.8603, 0.6647, 0.5414 for wind, 0.8363, 0.5995, 0.6523 for min temp, 0.879, 0.717, 0.459 for max temp, 0.9266, 0.8498, 0.264 for evapotranspiration) The Wilki’s Lambda, P-value and F-static (0.001775, 4.76E-14, 1875 for annual rainfall (Table 3) shows a statically significant variable with all the dependent variables. The high significance of annual rainfall and groundwater recharge agrees with the findings of Ashaolu (2016) and Makinde et al. (2017) for a typical basement complex. As reported by Ashaolu (2016), rainfall and wind is very significant in their contribution to groundwater recharge but the result of this study shows that the only variable of significance is the annual rainfall and this implies that the recharge mechanism pattern has changed.

The tests on the dependent variables (Table 3) show that 99% and 91% of the variance in the dependent variable (Groundwater recharge, direct runoff) is defined and explained by the climatic variables. The F-value and P- P-value of the groundwater recharge and direct runoff shows that the model is significant and it is a well-fitting regression (Eqs. 5 and 6).

$$y_{i} = b_{0} + b_{1} X_{1} + b_{2} X_{2} + b_{n} X_{n} + C$$
(5)

where:

$$y_{i} = {\text{dependent variable}} \left( {{\text{Groundwater recharge}} , {\text{or Direct runoff}}} \right)$$
$$b_{0} = {\text{the}} y {\text{intercept when all dependent variables are}} 0$$

\(b_{1} ,b_{2} \ldots b_{n} = {\text{the coefficient for each predictor variables }}\left( {\text{climatic variables}} \right)\)

$$X_{1} ,X_{2} ,X_{n} = {\text{predictor variables}}$$
$$C = {\text{error term}}$$
$$\begin{aligned} GRr = & 99.59 + 0.083259H + 1.5947S + 0.37509W + 0.10831AR \\ & - 0.38033MinT - 0.52733 - 0.01916ETo \\ \end{aligned}$$
(6)
$$\begin{aligned} DR = & 522 - 1.6044H + 43.7298S + 9.0589W + 0.39671AR + 20.356Min.T \\ & - 18.282MaxT - 0.2362ETo \\ \end{aligned}$$
(7)

4 Conclusion and Recommendation

The climatic factors in the study area fluctuated but the increase is not significant. The significant change in temperature was reported in 2019 and the highest rainfall (1692.3) was reported in 2010. The highest groundwater recharge, direct runoff and evapotranspiration are 248.75 mm 907.39 mm and 1310.28 mm respectively and the only climatic factor influencing their values is the rainfall. The evapotranspiration and the direct runoff values are very high and only 15.63% of annual rainfall is returned as recharge. The sustainability of groundwater resource in the area is not guaranteed if it is used exclusively for all water uses. A further study that will consider all the factors affecting groundwater recharge is crucial and efforts to reduce the direct runoff and evapotranspiration should be adopted.