Introduction

Global warming has prompted huge climatic variability all over the world (Zakwan and Ara 2019). Lately, several regions of the world are experiencing increased frequency and intensity of weather and climate extremes such as heat waves, wild fires, drought, storms, and flood. The percentage of cold nights is declining while that of warm nights keeps increasing (Vincent et al. 2005). The impacts of climatic variability such as flooding, land slide, or drought have been felt by many developing countries and such nations are left in a terrible state after the impacts. The issue of climate change, fluctuations, variations, and trend is therefore no longer arguable. The controversial issue is the nature of this change, fluctuations, variations, and trend in specific regions especially in arid and semi-arid regions such as northern Nigeria.

The important influences of the climatic variability are precipitation and temperature (Bhuyan et al. 2018). The primary source of fresh water on earth is precipitation (Anil and Ramesh 2017). Changes in properties of precipitation, such as its amount, spatial and temporal variabilities, type, and trends are expected, resulting from increased evaporation to the atmosphere preceded by global warming. These properties of precipitation are some of the most important factors affecting agricultural production (Khavse et al. 2015). Soil moisture is also a determining factor in numerous complex environmental processes and their amount is influenced by precipitation (Patel et al. 2008). The variation and distribution of soil moisture in space and time are unique factors that are commensurate to energy exchange in the ecosystems of vegetation, soil, and atmosphere (Patel et al. 2008). The variation of soil moisture as a factor aids the evaluation of energy exchanged between the vegetation, soil, and atmosphere, thus as it serves as control for hydrological, meteorological, and agricultural processes (Tao et al. 2021). Thorough assessment and monitoring of soil moisture are thus of critical importance in arid and semi-arid regions, where deficit of water is becoming a limiting factor restricting ecological development and agricultural productivity.

Climate change often influences irregular precipitation pattern and increasing extreme temperature indices, most especially in arid and semi-arid regions such as were experienced in some African countries, including Ethiopia, Tanzania, and Kenya (Gebrechorkos et al. 2019). The increasing temperature and reduction in precipitation amount will lead to rise in atmospheric evaporative demand which will thus result to gross depletion in cumulative soil moisture (Wang et al. 2016). Drought (insufficient precipitation in geographical location over a long period of time) can also lead to deficit in soil moisture content. Drought is a complex environmental phenomenon which can create severe impact on socioeconomic activities, personal life, and agricultural sector (Wang et al. 2016). Droughts are monitored by various elements and their interactions, including soil and vegetation information, meteorological forces, and variability and human factors including agricultural management practices choices such as grazing density and irrigation systems (Van Loon et al. 2016).

Series of research have employed trends and indices to investigate the temporal and spatial variability of temperature and precipitation in various geographical locations. For instance, Salameh et al. (2022) studied the spatial and temporal variability of extreme rainfall in Southern Levant and related large-scale atmospheric circulation pattern. Increasing period of extreme dry spell during spring was reported for the study area. Adakayi et al. (2016) also assessed the pattern of rainfall in Northern Nigeria and also predicted a significant increase in trend of precipitation between 2020 and 2030. The Mann Kendall trend test was employed by Asfaw et al. (2018) to detect the trend changes in precipitation and the result indicated intra-annual and inter-annual variabilities with increase in the trend and period of drought years. Goswami et al. (2006) also analyzed precipitation data of different countries in Asia and revealed that annual precipitation decreased in India. Yadav et al. (2014), in another study, revealed that trends of precipitation and temperature are increased in some months and reduced in some others based on analyses carried out in some 13 different districts of Uttarakhand, India. Furthermore, Alhaji et al. (2018) claimed positive value for Kendall’s statistics (Z) for average and maximum temperature in Gombe State, Nigeria. Similarly, Pal et al. (2017) suggested the presence of warming trends in the Dadeldhura district of Nepal. Salameh et al. (2019) analyzed the spatio-temporal extreme temperature over the Levant region. It was discovered from the study that highest values of annual minimum temperature increased with about 0.68 °C per decade.

Furthermore, Oufrigh et al. (2023) analyzed monthly and seasonal rainfall around the Coastal Oran and Macta watershed in North West of Algeria using the Mann Kendal and the innovative trend analysis (ITA) method. The ITA method applied detected that 63% of the station shows increasing trend and 31% decreasing trends in seasonal rainfall. Aamir et al. (2022) found monotonic trends in monthly rainfall of Baluhistan from the MK tests. Sneha and Uma (2023) also used the MK and Theil’s slope approach to analyze the annual and seasonal rainfall trends India. Declines were detected during the winter while there were increases in the pre-monsoon, monsoon, and post-monsoon seasons. Decline in rainfall was also reported on the annual basis.

In the same vein, several other drought indices and methods for soil moisture retrieval have been proposed in previous series of research. Szép et al. (2005) employed the Palmer drought severity index (PDSI) to analyze the homogenized 99-year (1901–1999) monthly precipitation and temperature data series at three stations in West-Hungary. Conditions of local soil moisture were revealed to be drier, as parallel to the changes in hemisphere in the twentieth century. Bong and Richard (2020) assessed drought and climate change in Sarawak River basin, Malaysia, by fitting 41-year (1975–2016) monthly precipitation data from 15 rainfall stations to standardized precipitation indices (SPI). A declining trend values indicated a higher tendency of increased drought event in the basin. Adesogan and Sasanya (2021) also used SPI, rainfall anomaly index (RAI), and rainfall decile index (RDI) to assess water availability in a part of south-western Nigeria. Tam et al. (2019) projected drought in Canada using the standardized precipitation and evaporative index (SPEI). An increase in wetting during winter and spring and increase in drying during autumn and summer were projected. Eze (2018) also employed the normalized rainfall index (NRI) to determine the droughts extent and its implications on households in Yobe state, Nigeria. Ali et al. (2010) proposed the normalized antecedent precipitation index (NAPI), and applied it to three watersheds, to simulate runoff yield in the semi-arid region of India. Ndlovu and Demlie (2020) employed percent of normal precipitation index (PNPI) and RAI to explore and categorize the wet and dry periods in 18 selected rainfall gauging stations across the KwaZulu-Natal province of South Africa. SPI and PNPI were employed by Mahajan and Dodamani (2016) to study the temporal and spatial variation of drought incidences observed from 52-year (1960–2012) monthly precipitation data recorded by 59 rain gauge stations in Krishna basin, Maharashtra. Zeri et al. (2018) used soil moisture index based on a normalization of soil moisture by wilting point and field capacity to characterize the exact soil moisture conditions into severe drought category to very wet category in Brazil.

Having assessed the existing body of knowledge, none of the studies have assessed the relationship and similarities or otherwise in the trends and variability of precipitation, temperature, and soil moisture (at different depths) especially in areas with heavy agricultural activities in recent times. This study hypothesized that the trends and variability of rainfall and temperature have pronounced effects on the trend and variability of soil moisture in a particular region. The aim of this study is therefore to investigate the relationships and similarities or otherwise in the trend changes and variability of precipitation, temperature, and soil moisture (at different depths) in two local government areas of Katsina state (Northern Nigeria) and two local government area of Rivers state (Southern Nigeria), Nigeria, where agricultural practices are prominent using 41 years’ historical observations. These were achieved by the use of the Mann-Kendall tests (for trend time series analysis of precipitation, temperature, and soil moisture), drought indices (for precipitation and soil moisture), and temperature indices (for minimum and maximum) temperature. Soil moisture studies are of extreme importance, because soil moisture decline always precedes decreased soil respiration, decreased biomass production, and also decrease in overall soil carbon balance which leads to food insecurity (Vargas et al. 2018). It is therefore crucial to determine and compare the trends and indices indicating the variability of precipitation, temperature, and soil moisture on agricultural sites in southern (tropical region) and northern (semi-arid region) Nigeria, where water deficit is gradually becoming a hindrance to the development of agricultural and ecological activities.

Materials and methods

Study area and data collection

Forty-one-year (1981–2021) daily and monthly data on precipitation, minimum temperature, maximum temperature, soil moisture (0–5cm depth), and soil moisture (0–100 cm depth) were obtained for four different areas in southern and northern Nigeria. These data were obtained from the official website of the National Aeronautic Space and Administration (NASA) (https://power.larc.nasa.gov/data-access-viewer/). The data is defined by a worldwide grid with a spatial resolution of 0.1° × 0.1° in latitude and longitude, equivalent to a grid size of around 10 km (Sasanya et al. 2024). Geographical coordinates for each data point within each local government area (LGAs) were determined using their respective administrative headquarters. Studies including Espinoza-Dávalos et al. (2015), Sharma et al. (2020), and Sasanya et al. (2024) had used data from the same source.

Figure 1 delineates the four local government areas studied in northern and southern Nigeria. Danja (longitude 7.554 °E, latitude 11.384 °N) and Faskari (longitude 7.027 °E, latitude 11.727 °N) are local governments in the northern area, while Obio/Akpor (longitude 7.0284 °E, latitude 4.861 °N) and Tai (longitude 7.242 °E, latitude 4.767 °N) are of the southern Nigeria. From the collected data, Danja and Faskari experienced average annual precipitation of 1025.25 and 1009.17 mm, respectively, while Obio/Akpor and Tai receive average precipitation of 2618.07 and 2423.42 mm in the same order, annually. Driest periods in the northern parts studied span from November to March, while the rainy seasons are experienced from April to October annually (Ibebuchi and Abu 2023).

Fig. 1
figure 1

Map of Katsina and Rivers States, Nigeria, delineating various local government and study areas

The southern parts received much longer periods of rainfall spanning from March to October. Even the dry seasons sometimes receive some millimeters of precipitation annually at intervals, although these are not always as much as those received during the rainy season (Ibebuchi and Abu 2023).

Evapotranspiration data

According to Adesogan and Sasanya (2023), evapotranspiration values estimated from FAO Penman Monteith equation are close to those measured from Pan and Piche evaporimeter. The FAO Penman Monteith equation was reported to perform better than Thorntwaite, Hargreves-Samani, Hamon, and the Blaney Criddle methods. Data on evapotranspiration for this study were therefore estimated from maximum and minimum temperatures, maximum and minimum relative humidities, and wind velocity (U2) at 2 m height (m/s), using the Penman Monteith models given as Eq. (1).

(1)

where Rn = average net radiation at the crop surface (MJ/m2/day), G is soil flux density (MJ/m2/day), ɣ = psychometric constant (kPa/°C) = 0.067, es = saturation vapor pressure (kPa), ea = actual vapor pressure (kPa), esea = saturation vapor pressure deficit (kPa), T = air temperature at 2 m height (°C), ∆ = slope vapor pressure curve (kPa/°C).

Mann Kendall tests

The Mann-Kendall (MK) (non-parametric) test is utilized to recognize an ascending or descending trend (monotonic patterns) in a progression of hydrological information and environmental data. The test is widely used for environmental applications, because of their simplicity, non-assumption of distribution residuals, and its ability to take care of outliers and missing values (Revadekar et al. 2012). The null hypothesis (Ho) shows no trend while the alternative hypothesis (H1) shows a trend in a one-sided or two-sided test as an upward trend or downward trend (Paul et al. 2023). This is used for observing statistically significant trends in variables like rainfall, temperature, stream flow, and soil moisture.

In this study, the Mann Kendall test is used to analyze the trend of the data detected. The Mann Kendall statistic (S) for trend is given as

$$\mathrm{S}={\sum}_{I=1}^{n-1}\left({\sum}_{j=i+1}^n\operatorname{sgn}\Big({R}_i-{R}_j\right)$$
(2)

where n is the data set length, and Ri and Rj are the subsequent data values.

$$Sgn(x)=\left\{\begin{array}{c}1\kern2em if\ x>0\\ {}\kern0.5em 0\kern2.25em if\ x=0\\ {}-1\kern1.75em if\ x<0\end{array}\right.$$
(3)

It has been documented that when n is greater than 8 or if hypothesis (Ho) is true, the test statistics (S) is approximately normally distributed (Schweinsberg et al. 2021) with mean and variance given as Eqs. (4) and (5). The Mann Kendall Z statistics is thus computed from Eq. (6).

$$E(S)=0$$
(4)
$$Var(S)=n\frac{\left(n-1\right)\left(2\mathrm{n}+5\right)}{18}$$
(5)
$$Z=\left\{\begin{array}{c}\frac{S-1}{\ Var(S)}\\ {}0\\ {}\frac{S+1}{Var(S)}\end{array}\right.$$
(6)

If the MK Z statistic follows normal distribution, a positive Z indicates an increasing trend and negative Z indicates a downward trend for the period (Nath et al. 2024). When a significant α-level is reached, ZZα/2, the data trend is considered significant. The formula above is well grounded if the number of observation (n) exceeds 10 (Nath et al. 2024). This test was done for each month, using the “mk.test” function in R programming language.

Modified Mann-Kendall tests

The modified Mann-Kendall detected the trends of temperature, rainfall, and soil moisture of data with significant autocorrelation coefficients. For this study, the modified Mann Kendal test was only conducted on months whose autocorrelation coefficients exceeded positive or negative 0.31 as detected from the autocorrelation (ACF) and partial autocorrelation test (PACF). The bias corrected pre-whitening (“bcpw”) package on R Studio was used to perform the modified Mann-Kendall test (O’Brien et al. 2021) on all datasets. In accordance to the Mann Kendall’s test, positive non-parametric correlation coefficient (τ) or Sen’s slope shows concordance or increasing trends, while a negative τ or Sen’s slope values show discordance or decreasing trends. The Sen’s slope enabled the determination of magnitude of the detected trend (Mathivha and Mbatha 2022).

Palmer drought severity index (PDSI)

The Palmer drought severity index (PDSI) measures the spatial and temporal departure of cumulative moisture supply (Palmer 1965). The PDSI makes use of the Thornthwaite method to derive potential evapotranspiration. The PDSI calculation is based on a simple two-layer soil model based on water supply and demand rather than variation in rainfall. The simple two-layer model is also based on four assumptions, which are (i) moisture has to be removed from the surface layer first before it is being removed from the lower soil layer; (ii) runoff can only occur when the surface and lower soil layers are both fully saturated; (iii) evapotranspiration loss occurs at a potential rate from the surface layer; (iv) evapotranspiration loss depends on the initial moisture content of the lower soil layer and the combined available water holding capacity (AWC) of the two layers of the soil (Alley 1984). The variables needed for the estimation of PDSI are evapotranspiration (ET), runoff (RO), recharge (R), potential evapotranspiration (PET), potential recharge (PR), loss (L), potential loss (PL), and the amount of water exchanged between the two soil layers, that is, precipitation (p) as given by the Eq. (7).

$$p=\alpha PET+\beta PR+\gamma PR O\hbox{--} \delta PL$$
(7)

where p is the amount of precipitation needed to maintain a normal soil moisture level for a given month; PET is potential evapotranspiration; PR represents potential soil water recharge; PRO represents potential runoff; and PL represents loss and α, β, γ, and δ are their respective coefficients (called the weighing factors). These coefficients are estimated from Eq. (8).

$$\alpha =\frac{\mathrm{ET}\ }{\mathrm{PET}};\beta =\frac{\mathrm{R}\ }{\mathrm{PR}};\gamma =\frac{\mathrm{R}\ \mathrm{O}}{\mathrm{PR}\mathrm{O}};\delta =\frac{\mathrm{L}}{\mathrm{PL}}$$
(8)

Moisture departure (d) is the difference between the actual precipitation (P) in a month under consideration and the estimated precipitation (p) under the existing conditions. The term d can be estimated from Eq. (9).

$$d=P-p=P-\left(\alpha PE+\beta PR+\gamma PR O-\delta PL\right)$$
(9)

The spatial and temporal meaning of the moisture departure can be different for surface water balance (Zhang et al. 2019). In order to have a good correlation, the moisture departure was weighted by a climate characteristic coefficient (K) estimated from Eq. (10).

$$K=\frac{17.67}{\sum_{j-1}^{12}{d}_j{K}_j}{K}_j$$
(10)

The multiplication of K and d gives the moisture anomaly index, Z. The Z index indicates the degree or wetness or dryness within a particular month, without considering the recent precipitation trends (Ogunrinde et al. 2020). The PDSI values (Xi) are obtainable from each Z index for a given month, using the relationship given in Eq. (11).

$${X}_i=0.897{X}_{i-1}+\left(\frac{1}{3}\right){Z}_i$$
(11)

where Xi represents the PDSI value of the current month, X(i−1) is the PDSI value of the previous month, and the values 0.897 and 1/3 are the duration factors. Table 1 shows the PDSI wetness and dryness grading standards as extracted from Zhang et al. (2019). The PDSI values in this study were estimated using the “scpdsi” package on R studio.

Table 1 Palmer drought severity index (PDSI) dryness/wetness grades

Standardized precipitation evaporation index (SPEI)

The standard precipitation evaporation index (SPEI) is built on temperature and precipitation data (Wu et al. 2021). The advantage of SPEI is its ability to integrate numerous characters with the effects of temperature variability on drought assessment (Vicente-Serrano et al. 2010). Potential evapotranspiration (PET) and rainfall data are required in the computation of SPEI (Nury et al. 2017; Vicente-Serrano et al. 2018). The PET for this study was estimated from the Penman Montieth’s model. The input data for the estimation of SPEI was the difference (D) between the precipitation (P) and PET for each month (Nury et al. 2017; Vicente-Serrano et al. 2018; Wu et al. 2021).

The estimated value of Di was done in time step of 1-month interval for 41 years. The difference in a given month j and year i depends on the time steps (k) selected, which is three in this case. According to Ogunrinde et al. (2020), the time step equations are given as Eqs. (12) and (13).

$${X}_{ij}^k={\sum}_{i=13-j-k}^{12}{D}_{i-1,l}+{\sum}_{i=1}^j{D}_{i,l}\ \mathrm{for}\ j\le k\ \mathrm{and}$$
(12)
$${X}_{ij}^k={\sum}_{i=j-k+1}^j{D}_{i-1,l}\ \mathrm{for}\ j\ge k\kern1em$$
(13)

The difference (Di) was thereafter integrated to a three-parameter log-logistic distribution. The probability density function of the three factor log-logistic distribution is given as

$$f(x)=\frac{\beta }{\alpha }{\left(\frac{x-\gamma }{\alpha}\right)}^{\beta -1}{\left(1+{\left(\frac{x-\gamma }{\alpha}\right)}^{\beta}\right)}^{-2}$$
(14)

where α represents scale parameter, β represents shape parameter, and γ represents origin parameter for values of D following the range (γ > D > ∞). The L-moment method (Ahmad et al. 1988) was used to determine the parameters of the log-logistic distribution. The cumulative density function was obtained from Eq. (14). The standardized form of F(x) resulted in the SPEI values.

$$F(x)={\left(1+{\left(\frac{x-\gamma }{\alpha}\right)}^{\beta}\right)}^{-1}$$
(15)

The SPEI function on the R programming language was employed to determine the SPEI values for the study areas. SPEI values obtained for each monthly precipitation were classified as shown in Table 2.

Table 2 Class descriptions for SPI and SPEI

Standardized precipitation index (SPI)

The standardized precipitation index (SPI) was used to determine the degree of wetness and dryness for precipitation values and also soil moisture values (depths 0–5 cm and 0–100 cm) for the study areas. The SPI is useful in assessing drought conditions over a long period of time. This was subjected to probability distribution using the gamma function for a long-term precipitation (McKee et al. 1993). This index has proved to give a reliable severity estimate value for spatial analysis of droughts. Normalized numerical values are given to the long-term data and the deviation from the long-term mean of the precipitation under consideration for the random variables that are normally distributed is given as the SPI (Tirivarombo et al. 2018; Adesogan and Sasanya 2021).The SPI becomes positive when precipitation rises above the long-term mean and the SPI is negative otherwise. SPI values for each time step are obtained by fitting precipitation data to the cumulative density function (CDF) of gamma distribution (Al-timimi and Osamah 2016; Adesogan and Sasanya 2021), given as Eq. (16).

$$G(x)={\int}_0^x\frac{1}{\beta^{\propto}\mathrm{r}\left(\propto \right)}{x}^{\propto -1}{e}^{-\left(\frac{x}{\beta}\right)} dx$$
(16)
$$\propto =\frac{1}{4A}\left(1+\sqrt{1+\frac{4A}{3}}\right)$$
(17)
$$\beta =\frac{X_a}{\alpha }$$
(18)
$$A=\ln \left({X}_a\right)-\frac{\ln \left(\sum \left(\overline{X}\right)\right)}{n}$$
(19)
$$H\ (x)=q+\left(1-q\right)\ G(x)$$
(20)

where n is the number of years, α and β are the respective scale and shape parameter of the CDF, X is the annual precipitation amount (mm), and X is the average value of the annual precipitation (mm). The gamma distribution for a zero precipitation amount is not defined is are thus taken care of by Eq. (19), q is the probability of zero value which is given as m/n, where m = number of zero values and n = total number of observations. The SPEI values obtained for each monthly precipitation were classified as shown in Table 2.

Temperature indices

The extreme temperature indices such as annual means recommended by the Expert Team on Climate Change Detection and Indices (ETCCDI) of the World Meteorological Organization (WMO) were used to analyze temperature trends and also detect change in the climate. These extreme temperature indices including absolute, percentile-based, threshold, and other indices essentially represent changes in frequency, intensity, and duration of minimum and maximum temperatures. These indices were computed to monitor the temperature trend for each local government area. The indices are shown on Table 3 as adapted from Revadekar et al. (2012), Yin and Sun (2018), and Limsakul (2020).

Table 3 Description of temperature indices and units employed in the study as described by WMO

Results and discussions

Variabilities and trend analyses of precipitation and temperature

Results on the time series trend analysis of rainfall and temperature and their resultant effects on the trends of soil moisture (at 95% level of confidence), investigated in four agrarian local government areas in the northern (semi-arid) and southern (tropical) divides of Nigeria, using 41 years’ recent historical observations (1981 to 2021) are presented on Tables 4, 5, 6, 7, and 8. Figures 2, 3, 4, 5, and 6 are pictorial representations of various drought indices used for the assessment of precipitation and soil moisture. The trends of monthly precipitation as rainfall in the humid southern part of Nigeria (Tai and Obi-Akpor) were majorly observed to be negative or decreasing. However, in Tai, the month of May had significantly negative trend, while January, August, and November had increasing trends at 5% level of significance. Trends of monthly rainfall in Obio-Akpor are closely related to those of Tai. However, the negative trends of rainfall during October and April were significant. In contrast, monthly rainfall observations in the semi-arid regions experienced more significant downward trends than those in the south.

Table 4 Trend analysis of rainfall in LGAs of southern and northern Nigeria
Table 5 Trend analysis of average temperature in LGAs of southern and northern Nigeria
Table 6 Averages of temperature indices between 1981 and 2021 in the four study areas
Table 7 Trend analysis of soil moisture (0–5 cm) in LGAs of southern and northern Nigeria
Table 8 Trend analysis of root zone moisture (0–100 cm) in LGAs of southern and northern Nigeria
Fig. 2
figure 2

The SPIs for precipitation in Tai, Obio-Akpor, Danja, and Faskari, respectively

Fig. 3
figure 3

The SPEIs of differences between precipitation and evapotranspiration in Tai, Obio-Akpor, Danja, and Faskari, respectively

Fig. 4
figure 4

The PDSI of precipitation and evapotranspiration in Tai, Obio-Akpor, Danja, and Faskari, respectively

Fig. 5
figure 5

The SPI for top soil moisture (0–5 cm) for Tai, Obio-Akpor, Danja, and Faskari, respectively

Fig. 6
figure 6

The SPI for top soil moisture (0–100 cm) for Tai, Obio-Akpor, Danja, and Faskari, respectively

In the semi-arid regions, Januarys and Februarys were consistently dry with no drop of rainfall (Table 4). Trends of historical precipitation events in Danja were significantly negative during supposedly peak rainy seasons in the southern region, that is, in May, June, August, and September. The same trends were observed in Faskari. Trends of historical monthly rainfall were significantly negative in May, June, and September. Trends of total annual precipitation in the semi-arid regions were significantly negative, while only mildly decreasing trends were observed in the southern region.

These finding gave credence to the claims of Lema and Majule (2009) and Begizew (2021) stating that the semi-arid regions of Nigeria are characterized by low and fast-decreasing precipitation amounts. These characteristic low and decreasing precipitations are fast becoming more intense, due to climate change (Tabari 2020; Clarke et al. 2022). In accordance to the claims of Feng et al. (2013), the tropics experience more rainfall amount over the same period of time. Although, trends of rainfall were observed to be decreasing generally; however, the decrease is more significant and intense in the semi-arid regions than in the tropics.

SPIs of each study area are shown in Fig. 2. The SPIs of 41 years’ historical monthly rainfall in Tai ranged from − 3.28 to 4.44. Of a total of 492 months, 347 months’ rainfall data are within the normal range, while rainfall for 8, 13, and 36 months were within extremely dry, very dry, and moderately dry conditions, respectively (Fig. 2a). In Obio-Akpor, the same trend of SPIs was observed. A total of 343 monthly rainfall amounts were normal, and 9, 17, and 36 months’ rainfall data were within extremely dry, very dry, and moderately dry conditions, respectively (Fig. 2b).

On the contrary, the SPIs of historical rainfall in Danja ranged from − 3.14 to 4.61. The number of rainfall within the normal conditions is much lower (177), but rainfall amounts that occurred during 174 of 492 months are within the extremely dry conditions (Fig. 5). Rainfall variabilities in Danja and Faskari are also closely related. Out of 492 monthly rainfall data, 222 are within the extremely dry conditions. This implies only 270-month experienced rainfall that can adequately replace lost humidity and soil moisture. Out of these 270 months, rainfalls experienced during 16 months were sparse and thus lead to very dry condition, 21 are within the moderately dry conditions, 185 within the normal condition, and only 7 fall within the very wet conditions (Fig. 2c and d). The SPIs of rainfall in Danja and Faskari give further credence to the incessant drought experienced in the semi-arid regions (Begizew 2021) as observed from the trend analysis.

Trends of minimum and maximum temperature averages in southern Nigeria were observed to increase significantly over the period studied. The historic monthly temperatures in both the tropics and semi-arid regions increased significantly for most months. In Obio-Akpor, only historic temperature of January increased mildly. However, in Tai and Obio-Akpor, the increases of temperature during the entire months were largely significant (Table 5). In Danja and Faskari, the historic temperature increased mildly in January and in Faskari, the increasing positive trends in temperature during January, February, and March were also observed to be mild (Table 5). These mild positive trends can be attributed to zero rainfall always experienced in the semi-arid regions during these months. These make the temperature perpetually high; only mild changes are thus experience, annually. Total annual temperature also increased significantly. Evidenced significant temperature increases were attributed to depletion of ozone layer and climate change over the years (Tabari 2020; Clarke et al. 2022). These significant increases in temperature are in tandem with the observation of Alhaji et al. (2018) and Diagi et al. (2020). The maximum and average temperatures in southern Nigeria had significantly positive time series trends between 1984 and 2015 (Diagi et al. 2020).

Considering the temperature indices (Table 6) for comparison of average temperature between studied locations, the northern regions experienced warmer days and nights than the southern regions. In the semi-arid regions, highest maximum temperature ranged from 39.42 to 39.91, in contrast to a range of 33.50 to 33.71 in the tropics. The humid region experienced more days with minimum temperature greater than 25 °C in comparison with the semi-arid regions. The semi-arid regions however experienced higher number of summer days (63.03 to 68.95 days), when maximum temperatures are greater than 35 °C. Invariably, the semi-arid regions also experienced more cold days and therefore higher mean differences between the maximum and minimum temperatures (17.91 to 18.06) as compared to a range of 6.72 to 12.21 in the tropics (Table 6).

To further investigate the variabilities of rainfall and temperature, differences between monthly precipitation and evapotranspiration data fitted to a log-logistic distribution resulted in the SPEIs. Figure 3 shows the SPEIs of the study areas. Tai, Obio Akpor, Danja, and Faskari had 318, 298, 303, and 307 months classified as having normal differences between precipitation and evapotranspiration (which is largely influenced by temperature). Figure 3a to d depicts the SPEI of each study area indicated that mild but intermittent dryness (shown by the red colors) in the southern regions spread over the entire years of data. However, in the northern regions, dryness was concentrated and more intense in recent years, starting from around the year 2000 as shown in Fig. 3c and d. These are attributable to the significantly increasing temperature observed from the trend analysis.

The SPEI as an index seemed not to reflect the true state of wetness and dryness in the regions; PDSI was thus used to further explain the state of drought and wetness from historical temperature and precipitation observations. PDSIs of the study areas are shown in Fig. 4. In Tai, PDSIs ranged from − 4.10 to 9.89 (Fig. 4a). Based on resulting PSDIs of 41-year (492 months) observations, extreme droughts (ED) were experienced for 2 months, severe drought (SD) for 27 months, moderate drought (MD) for 68 months, mild drought (MID) for 283 months, slight wetness (SW) for 57 months, moderate wetness (MW) for 21 months, very wet (VW) conditions for 7 months, and extremely wet (EW) conditions for 27 months (Fig. 4a). In the same vein, PDSIs for Obio-Akpor ranged from − 4.55 to 9.05. ED, SD, MD, MID, SW, MW, and VW were experienced for 3, 41, 76, 214, 84, 36, and 26 months, in the same order (Fig. 4b). In comparison with PDSIs of the semi-arid regions, the humid region experienced lesser months of extreme, severe, and moderate drought, but more periods of wetness than the semi-arid regions. The semi-arid regions were also observed to have wider ranges of PDSIs. PDSIs of Danja and Faskari ranged from − 6.56 to 16.92 (Fig. 4c) and − 8.15 to 9.55 (Fig. 4d), respectively. In Danja and Faskari, the 492 months studied are arranged in descending order of number of months that experienced each condition. For Danja, MID (194) > ED (60) > MD (52) > SW (51) > SD (47) > EW (38) > MW (29) > VW (21). For Faskari, MID (200) > SW (58) > MD (52) > SD (41) > EW (40) > ED (39) > MW (38) > VW (24). Generally, it has been established that the semi-arid regions experienced more periods of drought than the southern region.

Effects of decreasing precipitation and increasing temperature on the trends and variabilities of soil moisture

Trends of moisture in the top soil (0–5 cm) and subsoil (0–100 cm), and below the soil surface are presented on Tables 7 and 8, respectively. The monthly top soil and subsoil moistures in the south generally show mild downward trends. The total annual top soil and subsoil moistures also decreased mildly over the 41 years studied. In Tai, February, March (subsoil), August, September, November, and December (subsoil) show mildly positive trend. On the contrary, May and June (subsoil) had significantly negative trend (Tables 7 and 8). In Obio-Akpor, soil moisture trends were also mildly positive, during January (topsoil), February, March, September, November, and December (subsoil). The mild positive trends were observed to occur during non-peak rainy periods, and these may be attributable to inadequate rainfall, which makes most water from such rainfall events to satisfy all other statutory demand such as evaporation, transpiration, infiltration, interception, and percolation (Langat et al. 2017; Alahacoon and Edirisinghe 2021). Such mild positive trend may also be due to capillary rise from the groundwater table or even delayed movement of subsurface flow from during peak rainy seasons (Bousbih et al. 2018). Furthermore, in Obio-Akpor, the topsoil moisture during May and June decreased significantly. The subsoil moisture in May decreased significantly, while the same had significant increase in June. The trend pattern obtained for the topsoil and subsoil moisture closely fashioned after those obtained for rainfall. This further reinforces the claim that soil moisture storage is influenced by the rainfall amount (Hartzell et al. 2017; Akbar et al. 2018). Investigation from drought indices revealed that the SPIs of topsoil and subsoil moistures ranged from − 6.08 to 3.17 (Fig. 5a) and − 7.27 to 3.79 (Fig. 6a), respectively, in Tai, and − 4.13 to 3.22 (Fig. 5b) and − 5.14 to 3.83 (Fig. 6b), respectively, in Obio-Akpor. The wide range of indices show the effect of dry and wet seasons on soil moisture (Emerson and Traver 2008). During the wet season, the soil is excessively wet, but such wetness is used up to satisfy evapotranspiration and atmospheric water needs during short duration drought (Welch et al. 2018; Dunning et al. 2018).

Several factors accompany climate change, including non-stationary precipitation, heightened extreme events like floods, droughts, and heatwaves, as well as increases in sea surface temperature and soil moisture loss, which have severe effects on crop performances (Mathivha and Mbatha 2022). Contrary to trends of topsoil and subsoil moisture in the humid southern region, soil moisture regimes in the semi-arid regions significantly decreased continuously. The total annual topsoil and subsoil moistures in the northern region decreased significantly. In Danja, the topsoil moisture decreased significantly through all the months except August which had just mild decrease. At the root zone (subsoil) the soil moistures for July, August, and September also decreased mildly (Tables 6 and 7). The negative Sen’s slope obtained from the MMK tests further reinforced claims from the significant moisture decreases from the MK tests. In Faskari, the topsoil and subsoil moistures decreased significantly for all months, except in August and October when the topsoil moisture had only mild decrease. These significant decreases in top and subsoil moistures can be attributed to low and decreasing precipitation and also increasing temperature which causes high evapotranspiration (Asoka et al. 2017). The increasingly reducing precipitation and consistent significant increase in temperature had adverse effect on the storage of soil moisture at different depths (Konapala et al. 2020). This would invariably have negative influence on agricultural production which depends on the constant supply of soil moisture for increased productivity (Ford and Quiring 2019; Rigden et al. 2020). The need for proper water management, water conservation, soil water conservation, and irrigation for sustainable food production cannot be overemphasized for increased soil moisture storage and improved crop water productivity (Yu et al. 2018; Sadeghi et al. 2019). Assessment of soil moisture in the semi-arid regions in drought indicial terms revealed the SPI of topsoil and subsoil moistures ranged from − 2.92 to 3.34 (Fig. 5c) and − 2.37 to 3.80 (Fig. 6c), respectively, in Danja and − 3.57 to 2.83 (Fig. 5d) and − 2.79 to 3.84 (Fig. 6d), respectively, in Faskari. As depicted by the SPEIs of precipitation of the semi-arid region, the SPIs of both top soil and sub soil moisture also followed the same patterns. In the northern regions, dryness has been concentrated and more intense in recent years (as shown by the red colors), starting from around the year 2000 as shown in Fig. 5c, d, Fig. 6c, and d. Such increasing drying can be attributed to issues linked to climate change and global warming (Hao et al. 2018; Schimel 2018; DeSoto et al. 2020). The minimal range of indices (SPI) in comparison to those obtained in the southern part implies there are minimal differences between stored soil moisture during wet and dry seasons (Cheng et al. 2015; Babaeian et al. 2019). Such minimal differences are attributable to small precipitation amount and excessive evaporation, resulting from high temperature (Konapala et al. 2020).

Kew et al. (2021) however contradicted some of the findings of this current study, noting no discernible trend in soil moisture and precipitation data from 1900 to 2018 in eastern Africa. Their study highlighted precipitation as the primary influencer of soil moisture variability, particularly in water-scarce regions, with evaporative demand and temperature showing weaker correlations. The claims that precipitation had great influence on soil moisture trend are in tandem with the findings of this study. The trends of evaporative demand and local temperatures were however positive. The study concluded that the impact of rising temperatures on soil moisture in eastern Africa was limited, though it recommended that precipitation analysis can comfortably replace soil moisture analysis for drought studies. Conversely, Wu et al. (2021) identified a strong correlation between soil moisture dynamics and ocean surface temperature when assessing regional spatiotemporal variations of drought in Guangxi, China. Additionally, Kelley et al. (2015) linked changes in precipitation in Syria to rising mean sea level pressure in the Eastern Mediterranean. They attributed decreased precipitation to both natural causes and long-term drying trends associated with warming, thus, contributing significantly to soil moisture reduction (Kelley et al. 2015).

In alignment with the soil moisture trends identified in our current study, Almendra-Martin et al. (2021) highlighted the prevalence of a negative trend in soil moisture data retrieved from the Lisaflood and ER5-Land databases for the Iberian Peninsula. These negative trends were found to escalate with higher clay contents and persisted over a span of 10 months, coinciding with the typical growing seasons of crops in the region. However, the study also noted positive trends in soil moisture for 2 months (Almendra-Martin et al. 2021). Invariably, the hypothesis set for this study is true that the trends and variability of precipitation and temperature are determinants of the trends and variability of soil moisture in southern and northern Nigeria.

Conclusion

This study examined and compared the temporal trends and variabilities of monthly and annual rainfall, temperature, and soil moisture in southern and northern Nigeria, over the observation period 1981–2021. Over those four decades, precipitation as rainfall has had slight decrease in southern Nigeria, in contrast to northern Nigeria which had experienced very significant decrease over the same period. Both southern and northern Nigeria experienced significant temperature increase over the four decades. However, temperature indices including hottest days (TXx), summer day (SU35), and diurnal temperature range (DTR), among others, indicated northern Nigeria experienced more extreme temperature increase than southern Nigeria. The continuous increase in temperature and decrease in precipitation are attributable to climate change and global warming caused by ozone layer depletion. Drought indices including standardize precipitation index (SPI), standardized precipitation evaporation index (SPEI), and Palmer drought severity index (PDSI) gave credence to the fact that northern Nigeria experienced more drought period over the four decades than southern Nigeria. As a result of low precipitation and high temperature, soil moisture storage in northern Nigeria reduced significantly over the four decades, while soil moisture reduction in southern Nigeria was mild.

The trends and variabilities of precipitation and soil moisture from the MK and SPI tests were observed to be in close tandem for the southern and northern divides of Nigeria. The increase in temperature trends and resultant decrease in soil moisture trends could also imply the influence of temperature on soil moisture. The pronounced effects of precipitation and temperature trends on topsoil and subsoil moisture trends therefore require more efforts geared toward climate smart agriculture, climate smart water management, soil moisture conservation, and provision of more irrigation schemes in both divides of the country but most especially in northern Nigeria. These would enhance sustainable agricultural food production and food security in the face of lingering fresh water scarcity. This study has identified the monthly trend and variability of precipitation, temperature, and soil moisture conditions. The study can be of immense help to farmers, foresters, agriculturist, tourism industry, and environmentalist, among others, in coping with climate issues more effectively and efficiently. It is recommended that climate smart agriculture, which promotes soil water conservation by preventing excessive soil moisture losses, should be practiced and enabled in the study area. Further research on the effects of soil temperature on soil moisture losses and effects of climate smart practices on soil moisture conservation and crop yield is also recommended.