Introduction

There are two major elements taken into account when studying climate change consequences. First, global models, the foremost tool in realizing this phenomenon at a global scale (Hamlet and Lettenmaier 2000; Wei and Watkins 2011; Raghavan et al. 2013), and second, station information, which is better suited for local-scale analysis. In the last few decades, rainfall changes have received much attention particularly in some areas, such as western China (Zhang et al. 2014; Chang et al. 2016) and Mediterranean basin (Caloiero et al. 2019). These regions are primarily viewed as major hotspots for climate change due to extreme drying and strong warming. The Mediterranean basin is cornered by extreme climate changes due to the interactions that occur between mid-latitude and tropical processes. Being located in a major transition zone, this basin faces the wrath of arid climate of North Africa. While at the same time, it also undergoes the rainy climate of central Europe too (IPCC 2013). Therefore, within the context of climate change, numerous studies, related to rainfall trends, have been conducted in this area.

Longobardi and Villani (2010) applied a trend tests on rainfall time series from 211 stations over a period of 81 years (1918–1999) in the Campania region in Southern Italy. The study results concluded that the trends, i.e., annual as well as season scale were negative ones excluding the summer period. Da Silva et al. (2015) conducted a study with data collected for 40 years from the Cobres River basin, Southern Portugal. The authors used Mann–Kendall and Sen’s methods to analyze the trend in precipitation. They concluded that there was a decrease found in the rainfall amount recorded annually. These kinds of studies are conducted elsewhere, excluding the Mediterranean region too. For instance, Batisani and Yarnal (2010) applied the Mann–Kendall (MK) test to detect the variations in rainfall for both annual and monthly time periods in semi-arid areas of Botswana. The study results inferred a decreasing trend both annually as well as monthly with July as the only exception during when the increasing trend was observed. The study conducted by Gocic and Trajkovic (2013) deployed non-parametric Mann–Kendall and Sen’s method to detect annual as well as seasonal trends for seven different meteorological variables during the period, 1980–2010 in Serbia. The study confirmed the absence of a significant trend in rainfall. Duhan and Pandey (2013) conducted a study in which they deployed Sen’s slope estimator test and Mann–Kendall (MK) test for rainfall time series in Madhya Pradesh, India. They took data for 102 years (1901–2002) and the results showed a decreasing pattern annually. The seasonal analysis exhibited a notable increase in the trend during summer, while the decreasing trend was observed during monsoon timings. Gedefaw et al. (2018) conducted a study upon annual as well as seasonal rainfall variability deploying the ITAM method (Innovative Trend Analysis Method). The study compared the results from the MK test (Mann–Kendall) and Sen’s slope estimator test at five specific stations located in Ethiopia in the Amhara region. The results inferred that there was an increase found in the rainfall trend at a few stations, while other stations experienced a decrease. On the basis of monthly scale and seasonal scale, there was an increasing trend observed in the months spanning May and September. In case of other months, a decreasing trend was observed. In another research, Derdous et al. (2020) used Mann–Kendall test, Sen’s method, and Pettitt test for identification of trends and change points in the annual rainfall over the period from 1936 to 2008 in the Cheliff Basin (Northwestern Algeria). The results showed that the annual rainfall had a statistically significant downward trend in the whole basin. Further, according to the Pettitt test, this decrease scenario happened during the decade 1970–1980 at the majority of the studied rainfall stations. The tests of stationarity were less used when it comes to rainfall time series in comparison with other two statistical tests, such as compared homogeneity and trend analysis (Machiwal and Jha 2008; Khalil et al. 2017).

According to researchers, precipitation remains a crucial climatic variable and directly influences the patterns of the flood (Kim et al. 2016; Azam et al. 2017) and drought (Maeng et al. 2017; Azam et al. 2018; Nair and Mirajkar 2020). Due to recent climate change patterns observed across the globe, there is a significant amount of attention aid upon quantitative drought prediction. In the recent years, there are different indices proposed for use in drought prediction and more than dozens of indices were revised by researchers in the past (Keyantash and Dracup 2002; Mishra and Singh 2010; Zargar et al. 2011; Kebede et al. 2020). But the drought indices which consider rainfall data as it is basis, are simple to execute and produce excellent performance (Oladipo 1985). When it comes to drought assessment, there are few indices that generally leverage rainfall data, such as standardized precipitation index (SPI) (Mckee et al. 1993), while the latter is often utilized across the globe (Hosseinizadeh et al. 2015; Ghosh 2019; Gyamfi et al. 2019; Sobhani and Zengir 2020; Pathak and Dodamani 2020; Rousta et al. 2020). Mekonen et al. (2020) suggested that SPI is more suitable for monitoring droughts in East Africa because it is easily adapted to the local climate and it produces spatially consistent results. SPI is deemed to be the standard drought monitoring index proposed by World Meteorological Organization (WMO) (Hayes et al. 2011). The Indian Meteorological Department (IMD) also uses it as one of the two indices while the other being, ‘Aridity Anomaly Index’. Likewise, the SPI is a very suitable index to study the geospatial and temporal variation of drought with spatially invariable results for historic time series analysis (Masih et al. 2014; Ghosh 2019).

The analysis of the spatio-temporal drought features in northern Algeria including spatial extent, severity and duration is important for understanding the nature of drought and evaluating the region’s vulnerability as well as for developing models to investigate different drought properties. In recent decades, many studies have been conducted to investigate drought trends and their relation to other variables in Algeria (e.g. Touchan et al. 2011; Mellak and Souag-Gamane 2020; Derdous et al. 2020; Achour et al. 2020). To the best of our knowledge, none of them have applied the SPI model to characterize the geographical variations of drought risk as a function of intensity, duration, magnitude and frequency.

The current research paper has the following primary objectives: (i) to identify the spatial and temporal trends in annual and seasonal rainfall in the Macta basin, Northwest Algeria with the help of Mann–Kendall (MK) test, Sen’s slope test estimator and the recently developed Innovative Trend Analysis (ITA) method; (ii) to detail the geographical variations of drought intensity, duration, magnitude and frequency for two time scales, such as 6-month (SPI-6) and 12-month (SPI-12).

Study area and data

Figure 1 shows the Macta Basin (14,389 km2) in north-western Algeria which is the largest basin in the country, in terms of surface area. There are two main rivers that drain it, such as Mekerra and El Hamman. While the former is in its uppermost part and the latter is located at western and eastern sectors, respectively. This study area is generally characterized by mountain-based landscape. To be precise, the basin has boundaries, such as carbonatic Tessala Mountain in the north, Maalif high plateau in the south, Telagh plateau in the west, and Saida Mountains in the east. With regard to sand types, wide and shallow alluvial plain soil, which is primarily of sandy-clayey type, can be found in addition to marly-clayey deposits (Perrodon 1957). There is a difference, in that mountainous landscape and the coastal plain are found with Aeolian dunes.

Fig 1
figure 1

Geographical situation and rainfall station of the Macta basin

El Mahi et al. (2012) noted that the study area is surrounded by desert region and shrub in the southwestern sector, whereas the Middle-Western region has a forest area. Arable land is present in abundant quantities in the eastern region. There is a pattern of high spatial and temporal variabilities of annual precipitation observed in Macta basin (Meddi et al. 2010a, b). The basin’s annual precipitation lies in the range of 280 mm in the south to 600 mm in the north (Laborde 1993). The northern region is characterized by typical warm Mediterranean whereas it prevails with a dry season from April to August–September and a wet season from September to March. The southernmost region of the Macta basin is characterized by cold semiarid climate.

In the current study, a number of studies were reviewed and exploited to acquire sufficient knowledge. Further, a number of visits were paid to ONM (National Office of Meteorology) and ANRH (National Agency of Hydraulic Resources) along with repeated field surveys for the study. For the period 1970–2011, monthly rainfall data were collected from 42 meteorological stations in the Macta basin. Figure 1 shows the spatial distributions of the 42 stations studied and Table 1 lists their characteristics.

Table 1 A summary of the information on rainfall stations used in the study (period: 1970–2011)

Methodology

Trend analysis

Innovative Trend Analysis (ITA) method

Sen (2012) proposed the ITA method which segregates any kind of hydro-meteorological time series into two halves of equal size followed by its sorting into sub-series in ascending order. The horizontal axis has the first half series (xi) while the vertical axis has the second half series (yi) in the Cartesian coordinate system. The diagram is divided into two equal triangles by a bisector line at 1:1 (45). The increasing trend is denoted by the upper triangle while a decreasing trend is indicated by the lower one. To determine the trend, the ITA-drawn straight-line trend slope (s) is calculated based on the equation given below.

$$ {\varvec{s}} = \frac{{2\left( {\overline{\user2{y}}_{2} - \overline{\user2{y}}_{1} } \right)}}{{\varvec{n}}}, $$
(1)

in which \(\overline{\user2{y}}_{1}\) and \(\overline{\user2{y}}_{2}\) denote the arithmetic averages for first as well as second halves of the dependent variable, whereas the number of data is denoted by n. Further, the arithmetic averages of the two halves are shown as ‘centroid point’ that falls on the data line.

The innovative templates enable the researcher to understand the interpretation with linguistic facility for the trend i.e., ‘low’, ‘medium’, and ‘high’ as shown in Fig. 2. Then, it is possible to either increase or decrease the trend interpretations based on the position of data scatter points in each portion and their positions above or below the 1:1 no-trend line, in case when the horizontal axis’ biggest data value range is divided into three equal portions. Further, one portion can be compared with another portion and vice versa too (Dabanli et al. 2016). Ahmad et al. (2018) confirmed that the ITA plot could identify the sub-trend of rainfall time series over the upper Indus River basin. Likewise, Serencam (2019) also proved that the ITA method is more dependable in detecting trends in meteorological time series.

Fig 2
figure 2

An example of the innovative trend analysis (ITA) method shows increasing and decreasing trend regions

According to Sen (2014), if the scatter points are further to 1:1 line, then the trend exists severely with higher slope values. Considering these points into account, different signs were used to represent the necessary interpretations in this study. Among these, o implies no-significant trend, + ( −) exhibits significant increasing (decreasing) trend, +  + (− −) denotes more significantly increasing (decreasing) trend than the previous portion, and finally +  +  + (− − −) implies very significant increasing (decreasing) trend than the two previous portions. These templates show excellent use in variability feature interpretations as explained in detail by Sen (2015). As per Fig. 2, the variability has a relationship with standard deviation centroid position in novel trend templates. One can infer that there exists an increasing (decreasing) variability within the record series, if the standard deviation centroid is below (above) the no-trend line (1:1 line).

Mann–Kendall trend test

Being a rank-based nonparametric test, MK test gained popularity among researchers in the recent years since it is applied to identify the trends in rainfall data (Mann 1945; Kendall 1975; Krishnakumar et al. 2009; Shifteh Somee et al. 2012; Kumar et al. 2016; Geremew et al. 2020). The following formula is used to conduct the Mann–Kendall test statistic S.

$$ S = \mathop \sum \limits_{i = 1}^{n - 1} \mathop \sum \limits_{j = i + 1}^{n} {\text{sign}} \left( {x_{i} - x_{j} } \right). $$
(2)

In the above equation, n denotes the dataset length, while the two generic sequential data values are denoted as xi and xj.

The function sign \(({x}_{i}-{x}_{j})\) assumes the following values:

$$ {\text{sign (}}x_{i} - x_{j} ) = \left\{ \begin{gathered} 1{\text{ if (}}x_{i} - x_{j} ) > 0 \hfill \\ 0{\text{ if (}}x_{i} - x_{j} ) = 0 \hfill \\ - 1{\text{ if (}}x_{i} - x_{j} ) < 0 \hfill \\ \end{gathered} \right.. $$
(3)

In the above equation, when S is high and positive, it establishes the fact that there is an increasing trend present. While an extremely low negative value denotes the trend is decreasing. The variance of S, for the situation where there may be ties (that is, equal values) in the x values is given by:

$$ {\text{Var}}\left( S \right) = \frac{{n\left( {n - 1} \right)\left( {2n + 5} \right) - \mathop \sum \nolimits_{i - 1}^{m} t_{i} \left( {t_{i} - 1} \right)\left( {2t_{i} + 5} \right)}}{18}, $$
(4)

where n denotes the number of data points following by ti denoting the number of ties for i value and m represents the number of tied values. Both the Eqs. (2) and (4) are utilized to determine the test statistic Z based on the equation given below.

$$ Z_{{{\text{MK}}}} = \left\{ {~~\begin{array}{*{20}c} {\frac{{S - 1}}{{\sqrt {{\text{Var}}\left( S \right)} }}~\quad {\text{if}}~S > 0} \\ {0~~~\quad \quad \quad {\text{if}}~S = 0} \\ {\frac{{S + 1}}{{\sqrt {{\text{Var}}~\left( S \right)} }}~\quad {\text{if}}~S < 0} \\ \end{array} } \right.. $$
(5)

The trend direction is denoted by the sign, Z. The increasing trend can be mentioned as significant, if the positive Z value is higher than 1.96 (on the basis of normal probability tables) at the 0.05 significance level. In case of a negative Z value less than − 1.96, the trend is inferred to be decreasing in a significant manner.

Sen’s slope estimator

Sen (Sen 1968; Theil 1950) proposed this approach to determine the magnitude of the trend in rainfall time series and is estimated as follows:

$$ \beta = {\text{median}} \left( {\frac{{x_{j} - x_{k} }}{j - k}} \right) , $$
(6)

where xj and xk denote the data values at time j and k (j > k), respectively. A positive value of β denotes that the trend is increasing, while the trend is said to be decreasing if the value is negative in time series data (Xu et al. 2010).

Percentage change in magnitude

The change percentage is generally calculated by approximating it, with linear trend. Yue and Hashino (2003) defined this method in which the change percentage is equal to the value achieved through multiplication of period length and median slope, divided by the corresponding mean. This value is expressed in terms of percentage.

$$ {\text{Percentage change }}\left( \% \right) = \frac{{\beta *{\text{lenght year}}}}{{{\text{mean}}}}*100. $$
(7)

Drought quantification

Standardized precipitation index (SPI)

McKee et al. (1993) developed Standardized precipitation index (SPI) on the basis of probability distribution of precipitation to monitor drought at multiple time scales. In simple use, SPI is calculated by taking the difference of the precipitation, Xi from the mean, \(\overline{X}\) for a particular time step, and then dividing it by the standard deviation, σ (Sonmez et al. 2005).

$$ {\text{SPI}} = \frac{{Xi - \overline{X} }}{\sigma }. $$
(8)

The severity of drought events is generally classified as moderate, severe and extreme based on SPI values, i.e., 1.00 to − 1.49, − 1.50 to − 1.99, and ≤ − 2.00, respectively (WMO 2012). It is possible to calculate the SPI for various time scales, such as 1 month, 48 months or even longer. These time scales exhibit the influence of drought on the accessibility of various water resources. However Ji and Peters (2003), suggested that SPI on a short timescale like 3 or 6 months is appropriate for detecting drought events that affect agricultural practices, while the longer timescale, such as 12 or 24 months, is more suitable for water resources management purposes (Potop et al. 2014). In this study, SPI was computed for time scales of 6 months (SPI-6) and 12 months (SPI-12) to explore the drought variation at inter-seasonal and inter-annual time scales.

The 6-month SPI compares the precipitation for that period with the same 6-month period over the historical record. For example, a 6-month SPI at the end of September compares the precipitation total for the April–September period with all the past totals for that same period. The 6-month SPI indicates medium-term trends in precipitation and is still considered to be more sensitive to conditions at this scale than the Palmer Index. A 6-month SPI can be very effective showing the precipitation over distinct seasons. Information from a 6-month SPI may also begin to be associated with anomalous stream flows and reservoir levels.

A 12-month SPI is a comparison of the precipitation for 12 consecutive months with that recorded in the same 12 consecutive months in all previous years of available data. The SPI at these timescales reflects long-term precipitation patterns. Because these time scales are the cumulative result of shorter periods that may be above or below normal, the longer SPIs tend toward zero unless a specific trend is taking place.

Drought risk evaluation parameters

The already known concepts related to the drought process are the drought duration, drought magnitude and drought intensity. Also, the relative frequency is used to assess the percentage of the number of drought locations in the total study area (%) for different drought categories. Therefore, it indicates the percentage of area affected by drought (Li et al. 2012; Gidey et al. 2018). These concepts are defined as follows:

Drought duration (D) is the length of the period during when the SPI remains continuously negative (Spinoni et al. 2014). Starting from − 1.0 or less, the event ends when the SPI values turn into positive.

Drought magnitude (DM) and mean intensity (MI) correspond to the cumulative water-deficit over a drought period (Thompson 1999) and the average of this cumulative water-deficit over the drought period is mean intensity. Thus, DM is the absolute value of the sum of all SPI values during a drought event (Eq. 9) and MI of a drought event refers to magnitude divided by duration (Eq. 10).

$$ {\text{DM}} = \sum\limits_{j = 1}^{n} {{\text{SPI}}_{ij} } , $$
(9)
$$ {\text{MI}} = \frac{{D_{M} }}{D}, $$
(10)

where DM denotes the drought magnitude, j is the first month with negative SPI values, n is the last month of dry period.

Furthermore, the relative frequency (RF) is attained by dividing the number of months with drought evens (Negative SPI) by number of total months. The relative frequencies were used to assess the drought liability during a study period (Wang et al. 2014) or return period as follows (Eq. 11):

$$ {\text{RF}} = \frac{Nj}{{j.n}}*100, $$
(11)

where Nj denotes the number of months with droughts for time scale j in the n-year set; j is time scale (6 and 12 months), n denotes the number of years in the data set.

Results and discussion

Temporal trend analysis using the ITA method

The results of the application of the ITA method for a total of 42 meteorology stations scattered at various regions of the Macta Basin are summarized in Table 2. It shows the trend and slope calculation results, which includes half series (1970–1990 and 1991–2011) arithmetic averages as well as standard deviations values coupled with trend slope values. Figure 3 infers that there exists four different types of innovative trend templates based on the increasing and decreasing trend components, and neutral case in each group of ‘low’-, ‘medium’-, and ‘high’-rainfall values (Brunetti et al. 2004; Alashan 2018).

Table 2 Innovative trend analyses parameters
Fig 3
figure 3

ITA analysis method for annual rainfall at a Generally increasing trend, b generally decreasing trend, c increasing trend at high rainfall record values, d decreasing trend at high rainfall record values

The innovative trend template shows that all the data scatter points, according to Fig. 3a, lie above the 1:1 straight line. This infers that there exists an increasing trend leaving behind the ‘low-, medium- and high’-rainfall values. The arithmetic average as well as standard deviation centroids was found to be above the no-trend line in these graphs. Thus, it infers the increasing trend on average and standard deviation. In case of high-rainfall values, it is apparent that the trends gain more effectiveness since the high-rainfall points are distanced away from 1:1 straight line in comparison with ‘low- and medium’-rainfall values. This case is valid for two stations, such as 110102 and 110802, located at the Eastern medium part of Macta basin, where an effective continental climate is present.

The Macta basin stations, close to half in number, exhibited a decreasing trend leaving aside the groups present in the graphs of Fig. 3b. This might be due to the fact that all the scatter points fall under no-trend line of 1:1 straight line. One can say that every station observed the decreasing trend to be the highest, when the rainfall value is high as it is the furthest point from 1:1 straight line. Two stations, i.e., 110314 and 110312, located at the northern and eastern parts of the basin showcased this trend since they are close to Mediterranean Sea coastal area. From the previous studies, it is understood that the Mediterranean region undergoes climate change effect due to increase in temperature and decreased pattern of precipitation trends (IPCC 2013). Achite et al. (2017) also found an increase in temperature between 1970 and 2000s resulted in response to climate change, and precipitation moved forward during the late warm season in which the Macta basin experienced an increase in variability at the inter-annual scale.

The stations, such as 110501 and 111102, shown in Fig. 3c exhibited decreasing or no-significant trends in case of ‘low and medium’ precipitation ranges. However, in case of ‘high’-rainfall values, the increasing trend was observed. This outcome may be the forerunner for the increased frequency of flood in the future. At the end, Fig. 3d shows the innovative trend templates with station numbers, 111112 and 111402 with decreasing trend during the ‘high’-rainfall range. There were different trends observed in case of ‘low and medium’ groups.

Figure 4 shows the interpretations for increasing and decreasing trend cases indicated by Δ and ∇ signs, respectively. Once the increasing ( +) and decreasing ( −) trend slope signs were conveniently inserted in the Table 2, there is a clear picture available about the prevailing scenarios, i.e., the sub-region of decreasing trends were found near the northern part proximity to Mediterranean Sea coastal area in the Macta basin. On the contrary, the trends were increasing at the southern end. This might be attributed to climate change for which we can predict its effects at higher elevation areas. In meteorological terms, the northern part of the Macta basin is subjective to Mediterranean climate. There is a continental trend continues in the south which relatively infers the marked aridity, cold winters, and particularly hot summers (Meddi et al. 2009). These results are in accordance with those obtained by Elouissi et al. (2017) by showing that climate tends to shift from south to north in the Macta basin. These changes have implications on hydrological extremes like droughts and floods. They can also affect growing seasons and crop yields (Meddi et al. 2009; Sultan et al. 2014).

Fig 4
figure 4

Spatial trend partition of the Macta basin

Trend analysis using Mann–Kendall test

Annual trends of precipitation

The direction (Z value) and percentage changes (change %) for annual and seasonal rainfall were determined over a period of 42 years (1970–2011) in the Macta Basin, as shown in Table 3. The increasing and decreasing trends are denoted by positive and negative Z values, respectively. In Fig. 5, the spatial pattern is shown for annual as well as seasonal precipitation trends for all the 42 rainfall stations considered in this study. The annual precipitation time-series analysis using the MK test inferred that less than 50% of the stations had a positive trend, i.e., 17 of 42 stations or 40%, whereas 25 stations, i.e., 60% experienced a negative trend as shown in Fig. 5a. A total of 7 stations identified with a significant trend with a 95% confidence level when using Z value level (four stations had a positive trend, whereas three stations exhibited a negative trend). The southern part of the basin expressed mostly significant positive trends. While the east-central region exhibited significant negative trends. Figure 6a showcases the trend magnitude of annual precipitation (mm/year). There is a gradual decline observed in the slope of the trend magnitudes from southwest to northeast direction. This differed from − 4.93 mm per year to 5.29 mm per year from 1970 to 2011.

Table 3 Mann–Kendall Z values (direction) and change percentage of seasonal and annual rainfall (1970–2011)
Fig 5
figure 5

Spatial interpolation by Z-values of Mann–Kendall test for annual and seasonal rainfall trends. Values larger than 1.96 or lower than 1.96 indicate a significant trend (95% confidence level)

Fig 6
figure 6

Spatial distribution patterns of trend magnitude for 42 selected rainfall stations at annual and seasonal time scales

The most negative trend is measured at Ain Trid (− 4.93 mm per year), followed by (− 2.85 mm per year) at Sfissef and Matemore (− 2.81 mm per year). A dramatic and widespread decrease in annual precipitation is observed, accounting for 16% of the mean annual precipitation in the study period of 42 years. These results are in line with the conclusions of Meddi et al. (2010a, b) and Berhail (2019) who found a reduction of atleast 20% of total annual rainfall at 12 rainfall stations in Macta and Tafna basins.

Seasonal trends of precipitation

Autumn

There was an increasing trend found in the autumn precipitation series across the study area for major stations i.e., 40 out of 42 (95%). While the remaining two stations reported a decreasing trend (Fig. 5b). A total of 10 stations yielded significance (95% confidence level) with positive trend and no significance achieved in case of a negative trend (Table 3). As can be seen in Fig. 5b, autumn season exhibits increasing precipitation trends. Significant positive trends are mostly found in the southern part of the basin. The magnitude of the trend differed in the range of − 0.29 and 2.20 mm/season per year (Fig. 6b). A general conclusion is that there is an increase observed in the precipitation value for autumn season over 42 years. These results are in alignment with other researchers (Benzater et al. 2019; Bougara et al. 2020) who conducted their studies in northwest Algeria. According to the study carried out by (Dünkeloh et al. 2003; Tramblay et al. 2012), the positive trend of rainfall in autumn can be best understood through positive anomalies in the rainfall amount recorded in North African regions. This increment might be attributed to the impact created by a negative trend of the North Atlantic Oscillation (NAO) index. This negative phase has a correlation with a storm track that is denoted in the pressure associated with lower Azores height, compared to the normal value. In parallel, there exists the formation of Icelandic Low. The formation of the depression traffic mode results in drawing it further south, creating an impact upon Mediterranean regions of the south shore resulting in wetting (Nouaceur and Murărescu 2016). This is detailed through an increment in the rainfall amount. This further corresponds with extreme temperature that has a strong connection with the NAO index, in which there exists an association between negative period and extremely high temperatures (Donat et al. 2014; Báez et al. 2019) which affect the Western African in the Mediterranean region.

There is a strong NAO index present that affects the Southwestern Mediterranean region, when compared to El Nino Southern Oscillation ENSO index. This is because the latter is highly significant at the eastern parts of the Mediterranean region. This is an established scenario due to the proximity of the areas in which these two modes of variability function are used (Donat et al. 2014).

Winter

Negative trends were observed in half of the stations i.e., 22 out of 42 stations (52%) compared to positive trends using the MK test as shown in Fig. 4c. But the results also found no-significant shift during the winter precipitation time series for the period 1970–2011. The negative trends were predominantly found in the western region of the Atlas Mountains (Fig. 5c). It can be understood from the Fig. 6c that the spatial distribution of winter precipitation trend magnitude differed in the range of − 1.36 and 2.03 mm/season per year. The winter season was reported to undergo reduction in precipitation trends during the study period of 42 years. In a previous study Benzater et al. (2019) also found similar results for the period 1970–2011 and reported that a significantly decreasing trend in the winter season in the same basin.

Spring

From MK test, it was found that 33 out of 42 stations (79%) exhibited negative trends as shown in Fig. 5d. There were only two stations reported to have a significant negative trend with 95% confidence level. During spring season, the basin experienced a decrease in the unlike autumn season. The differences in the range of trend magnitude during spring precipitation were in the range of − 2.55 and 0.8 mm/season per year (Fig. 6d), inversely proportional to autumn scenario. This study findings with regards to decreasing spring trends are in alignment with the findings of Belarbi et al. (2017) in northwest Algeria. A similar decreasing trend is also reported in the Mediterranean region of Northern Morocco (Knippertz et al. 2003; Meddi et al. 2010a, b; Ghenim et al. 2010) and can be explained by a change in atmospheric circulation (Wang et al. 2010).

Summer

There were contradictory precipitation trends achieved in case of summer, when compared with winter. A total of 25 (60%) stations showed positive trends while 16 (38%) stations exhibited negative trends as shown in Fig. 5e. There were only three stations observed with significant positive trends while no-significant negative trends were observed in any of the stations (Fig. 5e). There were significant positive trends achieved in the northwestern part of the basin. Mild positive slopes were reported by spatial distribution except coastal zone. Few regions in the central-western basin exhibited mild negative trend magnitude. In line with autumn, the summer precipitation trend magnitude also exhibited difference between − 0.1 and 0.57 mm/season per year (Fig. 6e). To conclude, the summer season is said to have experienced mild increasing precipitation trends over 42 years.

Spatial and temporal assessment of the drought

As mentioned earlier, it is mandatory to have a good fit of gamma frequency distribution for the precipitation data, if one needs to calculate SPI for a specific time scale. In Table 4, a summary of drought characteristics can be found for the period 1970–2011 for all the stations in the basin on a 12-month time scale. Though the data is not shown, similar characteristics were also obtained on a 6-month scale. On the basis of 6-month SPI, various droughts were reported during 1970–2011. Of these droughts, the most significant were 1981–1982, 1983–1984 and 1996–1999. A total of 19 months from April 1983 to November 1984 was the longest duration of the drought recorded. In line with this, the drought of 1984 lasted 18 months with − 3.72 peak intensity (extremely dry) and a mean intensity of -2.33 under severe classification. The SPI peak intensity (− 3.72) of this time scale occurred in September 1984. The relative frequency of droughts of this time scale was approximately 14.09%. In a similar vein, Mekonen et al. (2020) reported that 1984 stands the main horrible year on the record in the northeastern highlands of Ethiopia.

Table 4 Drought characteristics of 12-month time scale in the Macta basin

Table 4 results infer that almost all the stations suffered peak intensities of less than − 2 which falls under extreme classification. The noticeable stations had − 3 peak intensity. The peak intensities were mostly found in the decade of 1980, especially 1983. The highest intensity (SPI = − 3.93) occurred during the period, March 1982 at Hacine station (111509). The Ras El Ma station (110102) experienced the longest drought from April 1976 to January 1979, a period of 34 months with peak intensity, magnitude and mean intensity values being − 2.94, − 70.22, and − 2.07, respectively. The Hammam Rabi station (111112) underwent a 33-month drought with − 58.31 magnitude and − 1.77 mean intensity. The drought which spanned for 12 months during 1997–1988 had a magnitude of − 27.35 with − 2.28 mean intensity at Ain Trid station (110314) in northwestern part. This drought heavily influenced the region when compared to the droughts that occurred earlier. As shown in Table 4, almost all the stations experienced the longest, most and intense droughts during 1980s.

The relative frequencies of Forneka station (111606), Sahouet Ouizert station (111502), Mostefa ben brahim station (110312) and Mascara station (111429) (18.65%, 18.45%, 18.06%, and 17.06%, respectively) are more significant than others. These findings are consistent with those of previous studies. Indeed, Achour et al. (2020) reported that the rise of drought events was significant only for the second half of 1970s, early 1980s and end of 1980s decade at 9- and 12-month scales in northwestern Algeria. Likewise, Khedimallah et al. (2020) analysed rainfall and hydrometric regimes over the period from 1968 to 2013 on the Cheliff basin situated in the west and the Medjerda basin in the east of Algeria. The results obtained reveal that the basins represent a marked spatial and temporal variability with a downward trend as early as the 1970s, with an increase in the frequency of dry years. Severe droughts have been recorded after 1980 in both basins with a total reduction exceeds 30%. Furthermore, Jemai et al. (2018) analysed the spatiotemporal variability of rainfall in Northern Tunisia. The results indicate a severe persistent drought occurred since the end of the 1970s. Over the Oum Er-Rbia river basin (Morocco), the rainfall trends and droughts have analysed during the period 1970–2010 by Ouatiki et al. (2019) using SPI and Mann–Kendall test. The results show a tendency towards drier conditions most occurred between the 1980s and 1990s with a deficit exceeds 50% of the seasons.

Duration, severity and intensity of drought

As mentioned earlier, the SPI characteristics computed for medium to long-term trends were utilized to develop drought maps for Macta basin following IDW methodology. This is done to interpolate the station data in GIS software.

Figure 7a shows the 6-month drought intensity map with heavy intensities in the central part compared to southwestern and northeastern regions. This map has more number of high intensity affected areas compared to its counterpart. Figure 7b shows the 12-month drought intensity map which infers that the basin’s southern western and central parts underwent high intensities compared to east, and north outlets for a period of 42 years. Large areas got affected in spite of the fact that the intensity values of this time scale are high than 6-month SPI.

Fig 7
figure 7

Observed peak intensity drought map at a 6-month and b 12-month time scale

Figure 8a shows the 6-month SPI drought duration map from which it can be understood that southern and central parts underwent extended droughts than the northern and outlet parts of the basin. But this kind of extended durations were experienced by most parts of the region, which started decreasing from south, southeast and northwest towards the outlet. In line with the prediction, there were high number of drought durations found by 12-month SPI when compared to 6-month SPI. Figure 8b shows the drought duration map for 12-month SPI with longer durations almost spread across the whole basin region, excluding northeast and west-central parts of the basin. For the period 1970–2011, the average magnitude of the longest drought was -29 and the most intense drought was − 26 on a 12-month scale (Fig. 9a, b). The mean intensity values were − 2.07 and − 3.21. It can be noticed that the region suffered from an extended drought while its magnitude also was found to be higher.

Fig 8
figure 8

Longest duration droughts map at a 6-month and b 12-month time scale

Fig 9
figure 9

Magnitude for a longest and b most-intense duration droughts on 12-month time step

Spatial character of the frequency of drought occurrences

It is a natural phenomenon that the droughts vary based on time and space. The regional distribution of drought was interpolated and mapped using drought events with SPI values less than − 1.0 for 6- and 12-month timescales. Figure 10a shows the spatial distribution of relative frequency of drought (%) for 6-month SPI. From the figure, one can understand that the central and southwestern regions are characterized as drought areas comparatively often than the northeastern region.

Fig 10
figure 10

Spatial distribution of relative frequency drought map at a 6-month and b 12-month time scale

Figure 10b shows the frequency drought map of 12-month SPI which infers that northern and western regions of the basin experienced frequent drought than southern and eastern parts of the basin. Figure 10a, b shows that there was an impact on the long-term water resources in both western and northern parts. In case of central-southwest region, there was an influence upon medium-term water supplies. The variation in the frequency values was found to be very low for two time scales while the frequency was higher in 12-month SPI compared to 6-month SPI in overall. In a previous study Vicente-Serrano et al. (2009), also found that the drought frequency changed according to the time scale in Spain.

At 12-month time steps, the northern and central parts of the basin experienced higher occurrence of severe droughts (Fig. 11a). The state of drought in this figure corresponds to SPI values between − 1.50 to − 1.99, i.e. severe drought conditions. Extreme drought occurrences (− 2 and less), on the other hand, are more pronounced in the eastern and southwestern parts of the basin (Fig. 11b). This means that the eastern and southwestern parts suffer from extreme drought conditions frequently while the northwestern and central parts of the study area suffer from frequent severe drought conditions. In parallel to the observations made by Mellak and Souag-Gamane (2020), who assessed maximum drought severity in Northern Algeria using Copulas. Their results showed that the western part of the region is the most affected by severe droughts. On the other hand, Achour et al. (2020) assessed drought in the plains of northwestern Algeria using the standardized precipitation index during the period 1960–2010. The results indicate that the region affected by a severe drought, on the contrary, of the eastern part, where the drought duration and severity are decreased.

Fig 11
figure 11

Severe and extreme drought occurrences at 12-month time steps

Conclusion

In this study, the spatial and temporal variations of rainfall as well as drought severity were analyzed for a total of 42-year-long time series in the Macta basin (northwest of Algeria). The Mann–Kendall (MK) test, Sen’s slope test estimator, and Innovative Trend Analysis (ITA) method were used to determine the presence of either a positive or a negative trend in rainfall data with their statistical significance. The study also adopted the standardized precipitation index (SPI) to assess the spatial–temporal variations of meteorological drought over different time scales for the study period. The results achieved from MK test and ITA method inferred that the sub-region experienced decreasing trends in the northern part which is proximity to Mediterranean Sea coastal area in the Macta basin. Further, it was also inferred that the southern trends were found to be increasing. According to the current study results, the ITA method exhibited few advantages in comparison with MK trend test. To be precise, the ITA method detailed the trends of annual total precipitation data with assessment of different values, such as low, medium and high. All the stations, according to the computed SPI values in both time scales, experienced peak intensities of less than − 2, thus it is segregated under extreme classification. Majority of the peak intensities occurred in the 1980s during winter season. The longest drought lasted for 34 months from April 1976 to January 1979 in the southwest region. The peak intensity of this drought was − 2.94, its magnitude was − 70.22, and its mean intensity was − 2.07. The drought of 1997–1998, which occurred in the northwestern part with a duration of 12 months recorded a magnitude of − 27.35 and a mean intensity of − 2.28 and this had greatly impacted the study area. The spatial distribution of relative frequency of drought (%) for the 6-month SPI shows that the central and southwestern regions are characterized as drought areas more frequently than the northeastern region. Further, the long-term frequency drought shows that northern and western regions have experienced drought more frequently than the southern and eastern parts of the study area. This means that long-term water resources have been affected in the northern and western parts. In the central-southwest, however, medium-term water supplies have been influenced.

Finally, our findings show that severe drought conditions are more prevalent in the northern part of the basin than the other parts on a 12-month time scale. Drought duration varies between 9 and 37 months, with an average of 20 months. Thus, this is a highly sensitive area that has high vulnerabilities towards droughts compared to other regions of the Macta basin. The primary reason behind continuous severe and extremely severe drought conditions might be lower-than-normal precipitation amounts. This would have been a result of immanent anticyclonic systems over the eastern part of the Mediterranean basin. Based on the past drought event observations, one can expect severe droughts frequently in the upcoming future. The national agency for hydraulic resources should take the current study results under consideration when implementing different strategies against droughts, for instance, knowledge transfer about conventional and unconventional resources into implementation, such as seawater desalination, wastewater recycling etc. These measures could positively meet the current and future water needs as the population is predicted to increase by 40–50% within 2030 (45–50 million). The water resources are highly important for agricultural and industrial activities which may undergo expansion and modernization.