Introduction

Approximately 11% of the world’s population in 2020, a collective 600–900 million people, live in coastal areas that are less than 10 m above sea level with 90% of this population located in coastal cities and settlements (Colenbrander et al. 2019; IPCC 2022; United Nations 2017). Many coastlines have low-lying flat topographical features such as coastal plains and river deltas, and at these locations, groundwater occurs at shallow depth below the land surface (de Graaf et al. 2015). Coastal shallow groundwater is influenced by ocean levels and tidal conditions along the coastline and can constitute a hazard in these densely populated areas (Befus et al. 2020; Bosserelle et al. 2022; May 2020). Intensified coastal hazards in relation to groundwater under sea-level rise include: (1) saltwater intrusion, which is salinization of the freshwater resource, and (2) groundwater flooding, which is often poorly addressed in the built environment. Therefore, areas of current and future shallow groundwater must be defined in urban centres. Effects of climate change-induced sea-level rise on shallow groundwater will expose more coastal urbanised areas to unprecedented hazards this century and beyond (Hoover et al. 2017; Hummel et al. 2018; Plane et al. 2019; Rotzoll and Fletcher 2013).

Urban hydrogeology is the field that describes groundwater systems underlying cities, settlements, built-up areas, and potential consequences of human activities altering water levels in the subsurface (Schirmer et al. 2013). Shallow groundwater in urbanised low-elevation and delta areas is studied from the perspective of clean water availability and vulnerability to saltwater intrusion in coastal cities and regions impacted by land subsidence such as Jakarta, Bangladesh, the Netherlands, Aotearoa New Zealand (forthwith New Zealand), and China (Oude Essink et al. 2010; Setiawan et al. 2022; Shaad and Burlando 2019; Shamsudduha et al. 2009; Shi and Jiao 2014). Furthermore, defining characteristics of urban shallow groundwater such as depths, fluctuations, and correlations, can be used to assess flooding hazard and exposure of key infrastructure networks under sea-level rise (Befus et al. 2020; Habel et al. 2019; Knott et al. 2019; Plane et al. 2019; Sukop et al. 2018), urban flooding and liquefaction hazards (Grant et al. 2021; Hughes et al. 2015), or impacts of underground structures such as low-emission ground source heating/cooling systems (Attard et al. 2016a; Böttcher and Zosseder 2022; Farr et al. 2017).

Shallow groundwater in urban centres can provide potable water supply and attenuate anthropogenic pollutants (La Vigna 2022). The issues commonly found in cities relate to groundwater quality from anthropogenic influences (Khatri and Tyagi 2015) and interactions with infrastructure (Becker et al. 2022; Salvadore et al. 2015; Schirmer et al. 2013). Shallow groundwater interaction with infrastructure systems in this modified built environment is complex (Knott et al. 2017; Lancia et al. 2020; Liu et al. 2018; Thorndahl et al. 2016), and these connections can affect groundwater level fluctuations independently from natural variations, i.e., rainfall and surface-water relations (Debuisson et al. 1993; Su et al. 2020; Vázquez-Suñé et al. 2005). Nevertheless, characterising existing relationships between groundwater and the surrounding subsurface infrastructure is necessary to forecast the responses to future changes such as sea-level rise (Su et al. 2022).

Shallow urban groundwater monitoring data is needed near critical coastal infrastructure that can be damaged by sea-level-rise-induced groundwater rise (Habel et al. 2023; Knott et al. 2019). Infrastructure can be damaged both below the land surface (pipes or basements) and above the land surface (roads and buildings; Befus et al. 2020; May 2020; Su et al. 2022; Thorndahl et al. 2016). Measurements of the depth to groundwater using bores, wells and piezometers located across urban areas are essential to develop the knowledge of the indirectly observed subsurface. Depth to groundwater of individual wells can be referenced against a vertical datum (usually mean sea level) to calculate groundwater elevations (i.e., hydraulic head) for a given region and a surface can be created. Surfaces of groundwater elevation (or depth to groundwater) are locally meaningful at the measurement points; however, the greater the distance from the observation, the greater the uncertainty introduced by geospatial modelling (Desbarats et al. 2002; Varouchakis and Hristopulos 2013). Groundwater elevations have been used to analyse shallow groundwater fluctuations over periods of days, years and decades (Alley and Taylor 2001; Hughes et al. 2009; US Environmental Protection Agency 2020).

Groundwater hydrographs (i.e., time series records) represent level fluctuations driven by rainfall characteristics and hydrogeological drivers, including potentially permanent or temporary interactions with surrounding surface-water bodies and subsurface-water infrastructure. Natural and human factors that affect groundwater levels also control the recharge, the discharge and the storage in the shallow groundwater system. Meteorologic, climatic and hydrologic factors influence the groundwater level fluctuations and superimposed anthropogenic stresses include activities such as abstraction, injection, changes in land use, e.g., urban development, deforestation, and drainage (Taylor and Alley 2001). Shallow groundwater contributes naturally to urban water, rainfall infiltration influences the water-table elevation and surface-water bodies interact with groundwater (La Vigna 2022; Zhang and Chui 2019). The risks of groundwater rise causing flooding and damaging surface and subsurface infrastructure increases due to infiltration and recharge. Surface-water and groundwater interactions occur directly along and under connected riverbanks, water courses, drainage networks, estuaries and the coastline. The changing climate, with more extreme conditions (e.g., heatwaves, rainfall events and coastal flooding) along coastlines and accelerating sea-level rise, modify known groundwater conditions, and the consequential changes below ground will not be detected if groundwater data are not collected. Currently, the management of urban water and groundwater is a challenge in coastal built environments due to the lack of baseline and historical monitoring (La Vigna 2022; Sartirana et al. 2022; Shaad and Burlando 2019). To investigate further the spatial distribution and dynamics of shallow groundwater present in coastal cities, and also predict future changes in connection to climate change and human influences, wider water-table monitoring networks might be useful (Habel et al. 2023). Promising approaches for time series data analysis and monitoring network assessments using machine learning tools have been used in the fields of regional hydrology and hydrochemistry (Bloomfield et al. 2015; Daughney et al. 2012; Naranjo-Fernández et al. 2020; Rinderer et al. 2019; Sartirana et al. 2022; Wu et al. 2021; Wunsch et al. 2021). These approaches include (1) time series trends, (2) clustering and (3) cross-correlation analysis. Some details about trends analysis, clustering analysis and cross-correlation analysis are given in the following and will help to support surveys, geospatial mapping and statistical approaches for future urban groundwater investigations.

A common and robust technique to detect statistically significant time series trends is the Mann-Kendall test, which is often used as a nonparametric method in water resources assessments (Helsel et al. 2020; Shamsudduha et al. 2009; Song and Zemansky 2013). Trends in groundwater levels are an efficient tool to understand climatic drivers and anthropogenic influences. Smith and Medeiros (2019) used historical records to demonstrate long-term trends of the water table in response to sea-level rise on the Cape Cod peninsula.

Time series clustering is particularly effective for large datasets, as described by Wang et al. (2006) and can be applied to many individual coastal groundwater hydrographs to group similar time series into clusters. This method aims to identify similarities between individual sites to find hydrographs with similar patterns or trends. Hydrograph classification with clustering algorithms is commonly used over large scales—from catchments to regions—to investigate the characteristics of the aquifer based on the hydrograph locations (Naranjo-Fernández et al. 2020; Rinderer et al. 2019; Wunsch et al. 2021).

In urban environments, buildings and subsurface infrastructure interfere with the ground surface and shallow groundwater elevations (Attard et al. 2016b), and it can be difficult to obtain a clear correlation in water levels between monitoring sites. Clustering techniques have been applied for time series analysis of groundwater levels for urban scale domains and within the same groundwater system. Sartirana et al. (2022) recently used time series clustering analysis to develop an approach for urban groundwater management based on biannual water levels measurement over a 15-year period. The observed significant differences in groundwater behaviour suggested complex interactions with structural and anthropogenic activities.

Long-term hydrographs usually lack good quality data due to gaps and frequency of records (weekly or monthly) over an overlapping time period (Naranjo-Fernández et al. 2020; Wunsch et al. 2021); however, the suite of analysis and interpretation undertaken on the high density and high temporal frequency (hourly to weekly) time series data of shallow groundwater levels has not yet been used to better define the urban groundwater system in a coastal city. Cross-correlation analysis can be used specifically in preliminary assessments using coastal monitoring networks to evaluate the influence of oceanic tidal signals. The periodicity and the cyclic pattern of the tidal signal in groundwater levels are used by the cross-correlation method to measure similarities between groundwater time series (Kim et al. 2005, 2008; Rotzoll et al. 2008; Song and Zemansky 2013; Su et al. 2022). Cross-correlation analysis is also used outside coastal areas and urban systems to determine the response of groundwater levels to rain events, temperatures and surface-water variations (Chae et al. 2010; Moon et al. 2004; Teramoto et al. 2021). Combining trends analysis, cross-correlation analysis of groundwater levels, and clustering analysis constitutes a novel method for the investigation of coastal urban monitoring networks through time series analysis and big data analysis (Rau et al. 2020). A data-driven approach based on high-frequency groundwater level records is proposed in this study and aims to contribute to improve the understanding of shallow coastal groundwater systems (Sartirana et al. 2022; Shapiro and Day-Lewis 2022).

This research explores, with the tools described previously, a high spatial density and high-temporal-resolution dataset from an urban shallow groundwater monitoring network. The recent (2016–2020) spatio-temporal record of groundwater level fluctuations under Ōtautahi/Christchurch (forthwith Christchurch) in New Zealand is analysed to classify natural and anthropogenic responses. The specific objectives of this study are to: (1) characterise the distribution and the responses of shallow groundwater to stressors (e.g., rainfall events, streams flow, anthropogenic influences) in an urban coastal area, (2) explore the relationship between groundwater levels, natural and anthropogenic stressors, and (3) build a database of information related to the shallow coastal groundwater system to use in infrastructure and environmental investigations. An outcome of this study proposed an optimisation of the shallow groundwater levels monitoring network to avoid redundancy in data collection, support management of the urban water resource and help identify hazard-prone areas and vulnerable communities within the urban area. The adopted approach of urban groundwater characterisation can inform environmental monitoring for coastal cities worldwide.

Background and hydrogeological context of the study area

Christchurch is the largest urban centre on the east coast of the South Island of New Zealand, located within the Canterbury Plains at the edge of Horomaka/Banks Peninsula (Fig. 1) and is a medium-sized coastal city (population greater than 400,000 people). Many large coastal cities globally but also in New Zealand, and smaller settlements, have similar settings to Christchurch; they are usually located in flat low-lying areas, over unconsolidated sediments, close to waterways and at the edge of oceanic conditions. Coastal cities and communities are impacted by climate change through sea-level rise and increased intensity and frequency of extreme events due to the higher sea level that creates more severe coastal flooding (IPCC 2022; Vitousek et al. 2017).

Fig. 1
figure 1

Study location map; a Urban Christchurch shallow groundwater monitoring networks, showing the surface lithology of the low-lying Heathcote-Avon-Styx area over the Quaternary sediments of the Christchurch and Springston formations (Begg et al. 2015) at the edge of the Port Hills Late Cretaceous Neogene rocks; b Locator map indicating the study area location in New Zealand; and c Photograph of Travis Wetland, looking towards the Port Hills, showing vegetation indicative of shallow groundwater (photo by Bosserelle AL)

Geological and geomorphological settings

The surficial geology of Christchurch consists of Quaternary unconsolidated sediments bounded in the west by the Canterbury Plains interbedded alluvial deposit sequence of glacial-outwash gravels and estuarine to shallow marine deposits from the surface to an average depth of 100 m below ground level (m BGL). In the east, a coastal sand dune system extends to the Holocene shoreline of the Pacific Ocean in Pegasus Bay, and in the south to Miocene volcanic rocks that form Banks Peninsula, in Christchurch known as the Port Hills (Begg et al. 2015; Brown et al. 1995). To the north, the Styx River/Puharakekenui (forthwith Styx River) catchment extends beyond the Bottle Lake Forest and the area is not fully included in this study due to the lack of groundwater information. Underlying the central city, the Christchurch Formation extends near the subsurface to the eastern suburbs and consists of a progradational coastal sequence of alluvial silt and sand deposits, drained peat swamps and estuaries, sand of fixed to semifixed dunes, and underlying marine fine sands. In the western suburbs, the Holocene Springston Formation is juxtaposed to the Christchurch Formation, with gravels and silt deposits from the Christchurch City north-western Waimakariri River outwash fan (Brown and Weeber 1992; White et al. 2010). The combined series of the Springston Formation and the Christchurch Formation have an average thickness between 10 and 40 m and constitute the shallow groundwater system where the water table is located (Fig. 1a).

Geographically, the city of Christchurch is located primarily upon a flat and low elevation alluvial and coastal landscape. The location map of the study area shown in Fig. 1a includes the Ōtākaro/Avon River and Ōpāwaho/Heathcote River (forthwith Avon River and Heathcote River, respectively) draining the urban streams and storm water network to the coastline via the Ihutai/Avon-Heathcote Estuary (forthwith the estuary). The original landscape along the Avon River on the plains consisted of raupō reed (T. orientalis) wetland with deep water-holding gullies and wet peaty grounds and vegetation indicative of shallow groundwater (Fig. 1c). The Christchurch area ‘Black Maps’ are historical maps and records, compiled in 1856 (Ngāi Tahu and Environment Canterbury 2019), and show the area before alterations by drainage and urbanisation. These maps provide a valuable record of the terrain that existed near the city before European settlement became fully established (Watts 2011; Wilson 1989). The Black Maps, showing waterways, wetland and vegetation, cover allow an estimation of subsurface groundwater conditions, originally done by White et al. (2007). Prior to development of urban Christchurch in the 1860s, and based on the vegetation classification shown in the ‘Black Maps’, the distribution of surface-water and wetland area, or near-surface groundwater covered 5,215 ha within the Avon-Heathcote area and up to the 10-m elevation contour line to the west in New Zealand Vertical Datum 2016 (NZVD2016) shown in Fig. 1a. Based on recent data collection via aerial photo interpretation and ground surveys completed by the Canterbury Regional Council in 2015 to 2016, there was less than 6% remaining of wetland areas due to urbanisation, ~300 ha, including the Travis Wetland (Fig. 1c).

The 2010–2011 Canterbury Earthquake Sequence (CES) had major impacts on the area’s geomorphology, surface waters and groundwater (Hughes et al. 2015; Quigley et al. 2016) with significant changes to the hydrological and geological setting (Cox et al. 2012; Cubrinovski et al. 2012; Gulley et al. 2013). The scientific and geotechnical responses to the CES led to numerous studies of subsurface conditions that contributed to the expansion of the shallow groundwater monitoring network, and especially the high temporal resolution, used in this article.

Historical groundwater studies in urban Christchurch

Historically, the Canterbury Plains and Christchurch area were described by early European settlers as highly productive land, provided it could be drained. The aim was to develop new settlements in the 1850s and add agricultural land value. The development, evolution and current state of Christchurch and its networks evolved around land drainage, transport and subsoil infrastructure that allowed the lowering of the water table. Information about the shallow groundwaters is originally found in geological descriptions from the first surveyors, academics, city systems engineers and planners (Chilton 1924; Haast 1879; Hercus 1942; Wigram 1916). The urban streams and tidal rivers originate from groundwater-fed springs where the surficial geology varies from high to low permeability sediments (Cameron 1992). Generally, extensive groundwater information and data in the Christchurch area have been focused on the deep gravel aquifers from which potable water is abstracted (Talbot and Bowden 1986; Wilson 1976). This was driven by the city water supply options that limited the use of surface water for consumption up to the mid-1860s for sanitary reasons. The Christchurch Drainage Board was subsequently created in 1876, which coordinated water-related and newly developed infrastructure systems from the nineteenth to the twentieth centuries, permitting insight into challenges upon a low-lying coastal urban centre with a shallow water table (Wilson 1989), which have not declined during the twentieth century (Cameron 1992). While it is difficult to establish a trend since 2000 with the sudden groundwater responses in 2011 from the CES (Gulley et al. 2013), the monitoring of the shallow groundwater and the number of studies considering the water-table aquifer increased significantly following the CES.

The key studies on Christchurch shallow groundwater conducted post-earthquakes, e.g., van Ballegooy et al. (2014) and Rutter (2020) provided a summary of the effects on land and water levels, including a median and 85th percentile water-table surface (elevation and depth) used as baseline. Groundwater levels responded to the shaking, but not everywhere, and some persistent changes only happened in the eastern suburbs of the city. Where subsidence occurred, the water table lowered but might have since raised back at some locations (van Ballegooy et al. 2014). Groundwater levels generally fluctuate with variations of rainfall and river recharge at both interannual and seasonal scales (Rutter 2020). From west to east across the city, the median water-table position is between 5 m and less than 1 m below the ground level, and generally less than 2 m below the central city (Rutter 2020; van Ballegooy et al. 2014). The monitoring of the depth to the water table has become critical for hazards assessment since the CES such as liquefaction and additional sea-level rise impacts. A large number of shallow groundwater wells have been maintained since their installation after the CES and equipped to monitor the water-table depth. Analysing the dataset from the city’s shallow groundwater monitoring network is a unique opportunity to reflect on and examine the large number of records collected in a coastal city at shallow depths.

Shallow groundwater monitoring well network

The Christchurch City Council (CCC) is the territorial government authority for Christchurch and the Canterbury Regional Council (CRC) is the local government authority for the wider Canterbury Region. This region is the largest by area in New Zealand and the second after Auckland by population. CRC manages the effects of using freshwater resources like groundwater, while CCC provides water-related infrastructure and manages the effects of natural hazards.

Christchurch City Council acquired the Automatic Piezometer Project (APP) network used in this study from the New Zealand Earthquake Commission (EQC) in 2016, following the intense data collection for hazards and damage mapping from the CES. The APP network consists of 247 shallow groundwater sites equipped with loggers automatically recording the water-table elevation every 10 min (Fig. 1a). In addition, CCC owns a network of 32 shallow monitoring wells across the urban area to acquire long-term measurements of water-table levels. Five sites were destroyed and 27 sites are still being monitored manually on a weekly or fortnightly basis with up to 61 years of records at two sites (Linwood and Opawa; Fig. 1a). Three sites are now equipped with automatic loggers and telemetered settings for instantaneous visualisation of levels for remote access. CRC currently monitors shallow groundwater levels with automatic loggers at three sites across the city (Woolston, South New Brighton and Hoon Hay) where deeper aquifers are also monitored. In 2017, another three shallow sites were instrumented in the city centre to record water-table fluctuations and monitor for a rise in groundwater levels that would threaten critical infrastructure and buildings.

Methods

The methods described in this section were used to explore the available data within coastal urban Christchurch, to characterise the shallow groundwater in relation to stressors and to analyse the groundwater levels for the classification of hydrographs from 2016 to 2020 (the workflow is illustrated in Fig. 2). Overall, the dataset of manual or automatic records was preprocessed to be used in the spatial analysis and the time series analysis using tools in a geographic information system (GIS) environment for mapping the output or using Python scripts. This study was enabled by a dense groundwater monitoring network providing continuous and automatic level measurements, recorded at a high-frequency time interval.

Fig. 2
figure 2

Methodology workflow

Dataset selection

The monitoring sites used in this study were selected from the CCC and CRC shallow groundwater monitoring networks (Fig. 1a). Selection criteria for the groundwater sites included their location in urban Christchurch, with a median screen depth of 6 m below ground level and records available between 2016 and 2020. The study area covered the extent of Fig. 1, excluding the Port Hills above the 10-m elevation contour. Groundwater levels near the ground surface and the coastline dynamically fluctuated due to the interaction with surface-water features and the ocean, as well as direct recharge from rainfall events (Fig. 3). Daily rainfall and potential evaporation influenced all recorded groundwater hydrographs in urban Christchurch (New Brighton, Fendalton, St Albans and Woolston). In addition, groundwater fluctuations with the tide could be observed in New Brighton due to the high-frequency records; therefore, continuous measurements with automatic 10-min recorders provided more adequate data than discrete and manual measurements for the purpose of the study. Hence, data selection prioritised sites equipped with automatic recorders because high-frequency water level data can better describe groundwater dynamics (Peterson and Western 2018; Rotzoll and Fletcher 2013).

Fig. 3
figure 3

Plots showing a daily rainfall (P) and b potential evaporation (Ep) at the Christchurch Gardens (National Institute of Water and Atmospheric Research (NIWA) Station 4858; Lat. –43.531, Long. 172.619). c Examples of shallow groundwater hydrographs at four locations in the study area, from October 2016 to January 2020, generated using PASTAS, an open source software for the analysis of groundwater time series (Collenteur et al. 2019)

Depth to groundwater was measured from ground level at each location. These measurements were converted to groundwater elevations (i.e., hydraulic head) by subtracting depth to groundwater from the DEM of the area, obtained from LIDAR (Land Information New Zealand 2020). In Christchurch, the DEM has some uncertainty owing to land movement and subsidence following earthquakes (i.e., the CES). As such, a measured depth to groundwater is likely to be more accurate than groundwater elevation, and depth to groundwater was used in the analyses. The closest sites were 120 m apart with mean and median distances of ~400 and 300 m, respectively, between nearest neighbours. The distribution of data points gave an estimate of the minimum cell size for surface interpolation described in the subsequent section ‘Spatial analysis methodology’. In this analysis, a 200-m grid size was used.

Spatial analysis methodology

Spatial interpolation

Spatial interpolation was applied to create surfaces of median depth to groundwater and groundwater elevation. ArcGIS Pro (ESRI Inc. 2019) was used to build a database of points with location information and groundwater measurements. The records with high temporal frequency, described in section ‘Shallow groundwater monitoring well network’, were processed prior to analysis so they can be compared and transformed as follows. Groundwater levels from the manual and automatic time series were converted from depths below the measurement points to depths in m BGL and representative statistics for each monitoring site, e.g., the median and standard deviation, were calculated prior to interpolation. The median is a commonly used measurement of the central value of the data distribution and is preferable to the arithmetic mean as is not influenced by outliers commonly present in groundwater level datasets (Helsel et al. 2020). In addition to the calculated median depth to groundwater, variance and standard deviation of the depth to groundwater were used as measures of variability to describe and compare the selected groundwater sites over similar time periods (2016–2020).

Groundwater levels were converted to elevations using a common datum (NZVD2016) before applying a single spatial interpolation to the survey data to obtain a digital groundwater elevation model. The geoprocessing tool “Topo to Raster” (Hutchinson et al. 2011) was applied to create a hydrologically correct interpolation derived from multiple sources (point, line and polygon). Surfaces at the coastline were constrained to either mean sea-level or zero depth to groundwater, with rivers and lakes used as control features where groundwater and surface water interact (recharge or discharge).

The mean sea level (MSL) defined by Land Information New Zealand (LINZ) and measured by the National Institute of Water and Atmospheric Research (NIWA) was used to interpolate the water-table surface at the estuary and along the coastline. MSL is given at the Lyttelton standard port location in Banks Peninsula and is a recent 19-year average of 1.43 m above tide gauge zero or –0.218 m NZVD2016 (Land Information New Zealand 2018). The water table within the unconsolidated coastal aquifer was considered in direct hydraulic connection with the ocean, estuary, and tidal rivers and creeks (Befus et al. 2020). Therefore, surfaces created from the spatial interpolation method can assume coastal hydrogeologic connection to sea level. A buffer zone was created around the dataset (1,000-m radius from the groundwater site) and used to obtain a boundary for the interpolation. Within the 173-km2 polygon, the data density of 1.6 measurement point per km2 described a locally dense observation network for mapping groundwater levels; however, the relatively large areas without groundwater sites (e.g., between Heathcote and Avon River catchments) revealed a lack of consistent coverage at the city scale. Therefore, some interpolated surfaces presented in the results section were clipped to a smaller mask area than the original study region.

Spatial autocorrelation

Mapping the relationship between location and groundwater level fluctuations can reveal whether these variables are spatially autocorrelated. The spatial autocorrelation is a measure of similarity between values in a dataset in comparison with other values nearby. These relationships were explored here using the Moran’s I statistic (Mitchel and Scott Griffin 2021). The Moran’s I value can be positive or negative—a positive value is when spatial autocorrelation is shown and similar values of the dataset cluster geographically, and a negative value is when spatial autocorrelation is not shown, and the dataset is dispersed. In the context of this study, spatial autocorrelation can help answer the following question: Were the shallow water-table depth and small variations in groundwater level located in similar areas? If the answer is yes, the evidence showing that water-table fluctuation and shallow groundwater depth are related can be confirmed. The spatial autocorrelation tool from ArcGIS Pro (ESRI Inc. 2019) was used on both the location of the groundwater sites and the standard deviation values of the depth to groundwater at the same monitoring sites used for the interpolations. The standard deviation of the depth to groundwater is a measure of variability and describes the fluctuation of the water table from the mean, independently from the median value.

The Moran’s I statistical analysis has its advantages for large measurement datasets. Using a Euclidean distance method here and a threshold of 1,000 m, this analysis can demonstrate the spatial dependence of the dataset and features. In addition, if the variables were spatially autocorrelated, the ArcGIS Pro statistics tool can perform a spatial cluster and outlier analysis also using the Moran’s I statistic (Mitchel and Scott Griffin 2021). The cluster and outlier analysis identifies whether neighbouring values are similar or not. This analysis provides robustness in the interpretation of the groundwater dataset distribution, hence verification of the variable spatial autocorrelation.

Time-dependent data analysis methodology

Trends analysis

Trends analysis of the shallow groundwater levels was completed using the Time Trends software package (NIWA 2021) to evaluate whether the water table is getting shallower or deeper relative to the land surface. Time Trends software uses the Mann-Kendall statistical test, and for this analysis, the seasonal Kendall test was used (Hirsch and Slack 1984; Kendall 1975; Mann 1945). The seasonal Kendall test can include data gaps and incorporates the seasonal variation of water levels and was used in this analysis because annual rainfall patterns influence groundwater time series. Preferably, the time series for trends test should exceed several decades; however, trends exist over varying time scales and the analysis of trends is a good approach for any defined period of time (Helsel et al. 2020). The duration of the monitoring history is generally one of the criteria for selecting sites in the database. In Christchurch, the long-term, mostly manual, record of the shallow groundwater levels was interrupted by the CES and this sudden shock introduced challenges in the data analysis. Recent groundwater level trends were estimated using time series at a daily time step from 2016 to 2020 at the 245 monitoring sites of the CCC APP network. Then, a longer period available for some shallow groundwater monitoring sites prior the 2010–2011 CES was also evaluated, so recent trends can be compared against historical trends.

Clustering analysis

Clustering of time series is a field in machine learning that allows the classification of time-dependant variables based on measures of similarity (correlation distances) and is commonly called clustering analysis (CA; Wang et al. 2006). A minimum requirement to perform the analysis is that the input numerical dataset is standardised and follows a normal probability distribution. Pre-processing therefore includes parametric transformation of the data to be close to a normal Gaussian distribution. This was achieved through unit-variance normalization and mean detrending using a power transform function from the Scikit-learn package in Python (Pedregosa et al. 2011). The nonhierarchical k-means CA algorithm was used with dynamic time warping (DTW) as the distance metric instead of the Euclidean alternative, using the tslearn package in Python, made available on GitHub by Tavenard et al. (2020). DTW allows time series to be locally stretched when they are being compared to improve the chance of finding matching patterns.

The approach in this article used a CA method based on k-means to analyse the time series for groundwater levels with a predetermined number of clusters. The main advantage is the ability to deal with large temporal datasets, but the principal disadvantage is the computational time. A method comparison was achieved by Haaf and Barthel (2018) between the selected CA, other classification algorithms and the commonly used principal component analysis with CA (Hannah et al. 2000; Moon et al. 2004; Upton and Jackson 2011; Winter et al. 2000). Each grouping method has advantages and issues, and none in particular was prescribed for groundwater hydrograph grouping. The availability of the tool tslearn, a recent code for time series data machine learning application, makes the selection of the grouping method easy to implement.

Data used for CA and classifying hydrographs are usually regionally distributed, and issues over the range and irregularity of record frequency (weekly or monthly) are common (Bloomfield et al. 2015; Moon et al. 2004; Winter et al. 2000). In this study, the continuous 10-min logger records enabled a resampling of groundwater levels every 4 h. All groundwater sites selected for the CA were located in the same aquifer (upper Christchurch and Springston formations), at a shallow depth and remain at the local urban scale. Grouping visually similar-looking groundwater hydrographs is also widely used to delineate and classify yearly, intra- and inter-annual periodicity and dominant patterns (Barthel et al. 2022; Haaf and Barthel 2018). It is possible to achieve classification by eye for 100–1,000 hydrographs and sometimes it is necessary to improve the general knowledge of the groundwater system. There are benefits to visual and manual classification, but the approach is also limited by subjectivity and poor reproducibility of the results. For this reason, visual classification was not attempted, as all groundwater hydrographs were very similar based on their location.

The depth of the selected groundwater monitoring dataset was also considered an advantage as it removed the bias introduced by inherited hydrogeological characteristics (e.g., aquifer groups). The classification focused on shape-based similarities or features or patterns from the hydrographs rather than on aquifer characteristics. The approach involves the detection of different system responses such as river discharge or groundwater recharge, controlling factors, such as distance from surface-water feature, thickness of the unsaturated zone, and irregularities (Barthel et al. 2022; Heudorfer et al. 2019). After experimenting with different numbers of clusters from 2 to 5, the number of clusters was set at four. Classification with a higher number of clusters introduced variability in the interpretation of the results and some clusters obtained only one site, while two or three clusters did not differentiate the sites adequately. Once the clusters were established, some common features were compared to establish the relationship between the sites. The CA used a 39.5-month dataset from October 2016 to January 2020, the size of a 210 × 7212 matrix, which was the longest overlapping period for 210 sites without significant gaps at 4-h intervals.

Cross-correlation analysis

Cross-correlation analysis (CCA) is a signal processing method that is used to quantify the similarity between signals with different lags. In this study, CCA was applied to groundwater level and ocean level time series data measured at the Sumner tide gauge (Land Information New Zealand 2021) and shown in Fig. 1a near the Sumner beach to the south of Christchurch. This method established the relationship between fluctuations in shallow groundwater levels and oceanic effects through the tidally influenced rivers. Equations defined by Thomson and Emery (2014) and given in Setiawan et al. (2023) were used. The means of each time series were subtracted, but the original magnitude of fluctuations was maintained to quantify the amplitude related to ocean levels. This method has been used previously for smaller datasets and in different hydrogeological settings but also to investigate tidal influence in a multilayered coastal aquifer setting (Kim et al. 2008; Setiawan et al. 2023). The correlation coefficient ranges from 0 to 1 and higher values indicate a stronger relationship between the two time series. The discretisation of the tide signal in the time series used four groups of increments of 0.25 of the cross-correlation coefficients.

Results

Groundwater surfaces and water-table characterisation

Depth to groundwater

The median depth to groundwater was summarised at 265 monitoring sites within the study area for the period 2016 to 2020 and an interpolated depth to groundwater surface map was developed in the GIS environment (Fig. 4a). The map shows that the water table exists at shallow depth below much of Christchurch. The observations showed a mean depth to groundwater of 1.39 m BGL. Approximately 62% of the interpolated area had median depth to groundwater of ≤1 m BGL (termed very shallow hereafter), 35% had median depth to groundwater between 1 and 2 m BGL (termed shallow hereafter) and only 3% had median depth to groundwater greater than 2 m BGL. The interpolated surface of the median depth to groundwater had a vertical accuracy to observations that can be statistically estimated with the root mean square error (RMSE). The RMSE of 5% is the percentage-based difference between the measured and interpolated values. This value was derived from the ratio between the square root of the mean squared deviation (0.42 m) and the range of measured values (8.06 m). Overall, the surface model showed an adequate representation of the observation, although certain instances of local overestimations and underestimations are discussed in section ‘Limitations and recommendations for practitioners’.

Fig. 4
figure 4

a Interpolated map of median depth to groundwater from ground level and standard deviation of the depth to groundwater at the measurement sites, b Interpolated groundwater surface elevation in NZVD2016 for urban Christchurch, showing the MHWS contour projected onto the median groundwater elevation to demonstrate the interpreted areas currently below the highest level of the tide

The standard deviations of the depth to groundwater records were calculated for each hydrograph at these 265 monitoring sites used for interpolation. A small standard deviation of the depth to groundwater (≤0.3 m) was observed at 91% of the monitoring sites and only six groundwater records (which are part of the CCC discrete and long-term shallow piezometer network) have standard deviations exceeding 0.5 m. The mean of the standard deviation of the dataset was 0.18 m and reflects the low variability of groundwater depths across the area. Descriptive statistics of the shallow groundwater monitoring sites are given in Table S1 in the electronic supplementary material (ESM).

Median groundwater elevation

The median groundwater surface elevation was derived from high-frequency field measurements (depth to groundwater below ground level) from 2016 to 2020 and interpolated. Groundwater flowed from the west to the east below the city, following a regional slope from the mountains to the ocean (Fig. 4b). The Christchurch water table was gently sloping from inland to the coast with indents from the tidally influenced rivers and the estuary. These indents in the interpolated potentiometric surface indicated groundwater diffuse discharge to surface waters and/or the drainage network. The contours of the median groundwater elevation between 2016 and 2020 demonstrate that groundwater seepage occurs through the beds of rivers, streams and drains, along parts where the surface-water network intersect the water table.

Tidally influenced segments of the two major rivers (Avon River and Heathcote River) were located up to the extent of the projected mean high water springs (MHWS) elevation into the groundwater surface. The MHWS is an average of the high sea level during the large spring range of the tide and transformed into an elevation of 1.368 m NZVD2016. The area between the coastline and the MHWS contour projected on the groundwater elevation represents a zone of the water table with an extremely flat gradient (Fig. 4b). This area has poor drainage and a strong connection between groundwater and surface-water features. From the coastline and along the estuary to the Ensors Road bridge in Opawa along the Heathcote River and up to the Fitzgerald Avenue bridge in the central city area along the Avon River, the water table lies below the MHWS elevation (Fig. 4b). In the eastern suburbs of Christchurch, the area defined from the coastline to the elevation contour of the MHWS in the groundwater elevation surface is likely to have issues of shoaling shallow groundwater and future flooding related to impacts of sea-level rise.

Spatial clusters, outliers and trends analysis

The spatial clusters and outliers analysis was completed on the standard deviation values of the depth to groundwater for the period from 2016 to 2020 at 265 monitoring sites. The Moran’s I statistical analysis revealed that neighbouring values of standard deviation were similar and aggregated in the same geographical areas, establishing the spatial autocorrelation of the interpolated parameters. The spatial clusters analysis resulted in two groups of high and low values of the water-table depths’ standard deviation, spatial clusters 1 and 2, respectively. Outliers for each group (outliers 1 and 2) are also given and are the locations that spatially do not correlate to the surrounding values. The analysis indicated clustering of high values of standard deviation (spatial cluster 1 and standard deviation greater than 0.3 m) located in Avonside, Richmond and Hoon Hay (Fig. 5a). The clustering of low values of standard deviation (spatial cluster 2 and standard deviation lower than 0.1 m) occurred in areas directly north of the central city area throughout Fendalton, Merivale, St Albans and Edgeware and near Travis Wetland (Fig. 5a).

Fig. 5
figure 5

a Spatial clusters of similar standard deviation and outliers distribution with the interpolated shallow groundwater area (blue); b Recent (2016–2020) hydrographs trends of the automatic piezometers network (small triangles) with shallow groundwater interpolated area (blue) and groundwater levels trends from the CCC long-term shallow piezometers (large triangles). Decreasing trends (red) indicate that depth to groundwater decreased and increasing trends (yellow) indicate that depth to groundwater increased

Overall, 27% of the shallow groundwater monitoring network positively correlated spatially, which means 75 groundwater sites formed clusters, either of low values of standard deviation or high values of standard deviation. Within spatial cluster 2, 55% of the groundwater monitoring sites were also located in the interpolated area where the depth to groundwater was less than 1 m BGL (very shallow). The majority of sites (80%) with low standard deviation values, smaller than 0.15 m, characterising small variation in groundwater levels also had a median depth to groundwater within 1.5 m BGL; this spatial cluster 2 suggested a good correlation between the shallow water table and small fluctuations. The spatial cluster 1 of high standard deviation values, greater than 0.20 m, showed median depth to groundwater between 1 and 3 m BGL and the variations in water levels here were large relative to this spatial cluster 2 during the period of the analysis. The Moran’s I clusters described that the groundwater level fluctuations and the median depth to groundwater were spatially correlated in the shallow groundwater system of the Christchurch urban area. The results of the spatial autocorrelation analysis also indicated that the dataset contained 10 outliers in both groups (outliers 1 and 2, Fig. 5a). The locations of the outliers indicated groundwater sites with likely issues with monitoring records that would need to be investigated to establish the cause of the discrepancy.

The assessment of trends over time using the seasonal Kendall test and slope analysis was performed on two datasets. First, the analysis ran using the recent time series of the depth to groundwater from the APP network and then the historical time series from the CCC long-term shallow piezometers pre-CES. The results of the trends test showed spatially consistent patterns of change across the Christchurch urban area (Fig. 5b). The time series analysis for trends of depth to groundwater classified the monitoring sites into five groups with decreasing or increasing trends (A–D) and trend unlikely (E). Decreasing and increasing trends groups were separated in two with either (1) trend as likely as not and trend possible (A and C); (2) trend likely, very likely and trend virtually certain (B and D). Over the period 2016–2020, the trend analysis demonstrated that 40% of the groundwater monitoring sites had a decreasing trend (B; depth to groundwater was decreasing, i.e., the water table is rising). An increasing trend (D) was determined at 46% of the sites (depth to groundwater was increasing i.e., the water table is lowering).

A small number of sites (14%) show unlikely trends (E), or either decreasing and increasing trends with low likelihood (A and C). The results of the trend analysis on the APP sites only showed a short-term evolution (less than 4 years) of the shallow groundwater levels in response to hydrological variations, anthropogenic influences and hydrogeological settings (small triangles on Fig. 5b). In addition, the trends of the historical shallow groundwater sites were established using the CCC long-term shallow piezometers during the record period pre-CES (before 2010). The trend analysis demonstrated that 32% of the groundwater monitoring sites pre-CES had a decreasing trend (B) illustrated as large red triangles. The trend analysis also showed that 50% of the groundwater monitoring sites pre-CES had an increasing trend (D) illustrated as large yellow triangles in Fig. 5b. Also, a small number of sites (18%) show unlikely trends (E), or either decreasing and increasing trends with low likelihood (A and C). Overall, the analysis of the two datasets, recent and historical, showed that increasing trends were dominant across the urban area with more yellow triangles on the map than red; and that the groundwater levels got deeper during the record periods for 124 monitoring sites. However, a large amount of shallow groundwater monitoring sites had decreasing trends and groundwater levels got shallower at 106 sites for the studied period (red triangles), with the possible cause of the groundwater rise unexplained.

Hydrographs classification

Clustering

The k-means algorithm was used in the CA to classify the groundwater hydrographs in a Python environment. The analysis determined the classification of four clusters and enabled the identification of time series that were geographically related based on normalised groundwater levels. The analysis identified similarities in each cluster shown as stacked hydrographs in Fig. 6a with the mean of each cluster. The interpretation of the clusters was difficult unless converted back to depth to groundwater in Fig. 6b. The clusters ranged in sizes from 15 hydrographs in cluster 1 to 106 hydrographs in cluster 3, whereas clusters 2 and 4 had 43 and 46 hydrographs, respectively. Cluster 1 in Fig. 6b had a typical flashiness to their structure related to the frequency of the fluctuations with sharp peaks—‘topology of groundwater dynamics’, descriptions from Heudorfer et al. (2019). The influence of rainfall recharge with some flashy events, was also present in cluster 2 in Fig. 6b; however, the dominance of inter-annual variation was greater in some hydrographs of this cluster. While the frequency of rise and fall in groundwater levels was similar for clusters 3 and 4, these two clusters also included hydrographs influenced by tides and dewatering in Fig. 6b.

Fig. 6
figure 6

Clusters 1–4 of hydrographs plotted a for the normalised groundwater levels (zero-mean, unit-variance), with the mean of each cluster in red, and b when converted to depth to groundwater below ground level (m BGL)

The spatial distribution of the clusters shown in Fig. 7a also indicated that the clusters were spatially correlated. Cluster 1 had a tight grouping located in the north-west corner of the central city area, while cluster 2 tended to focus on the lower part of the Avon River catchment but away from the riverbanks. Groundwater sites of cluster 4 were present along the tidal parts of the rivers as well as in the north-east corner of the central city area. Cluster 3 was located in the Heathcote River catchment and the known very shallow to shallow groundwater area of St Albans and near Travis Wetland. The relationship between clusters and features (i.e., groundwater levels, associated standard deviation and the distance of the monitoring site to the streams or rivers) was compiled following the CA using box plots (Fig. 7b). The box plots showed that cluster 1 was positively correlated to two features, i.e. the low values of the standard deviation of median depth to groundwater and the distance to the nearest surface water; moreover, the sites of cluster 1 were all located within 200 m from surface water. For the other clusters 2–4, there was no clear feature correlation. Cluster 2 sites had the largest span of locations, from next to the rivers to further inland, and also the broadest range in standard deviation.

Fig. 7
figure 7

a Clusters location map showing Christchurch Central City (red polygon) and the surface-water local catchments (black lines) and b box-whisker plots of selected features (median value of the depth to groundwater, top; standard deviation of the median value, middle; and distance from the streams or rivers (surface water), bottom) of all clusters

Focus on the groundwater tidal dynamic regime

Four tidal groups were obtained using CCA between ocean and groundwater levels during the period of the last 7 days of 2019, between the 25th and the 31st of December, at the start of the driest consecutive 6-month period between 2016 and 2020. The distribution of the tidal groups (groups 1–4) classified the groundwater hydrographs in increments of 0.25 of the cross-correlation coefficient, with group 1 being the most correlated and group 4 being the least correlated to the oceanic tidal signal (Fig. 8a). The larger the maximum cross-correlation coefficient between a group and the ocean levels, the stronger the tidal influence. Tidal signals were most prominent in the groundwater levels of group 1. Most of the hydrographs in group 4 were straight lines (i.e., no correlation to the tide), but some showed other fluctuations, related or not to the ocean levels. The relationship between groups and features (here the distance of the monitoring site per catchment to the nearest river or the coastline) was plotted using box plots in Fig. 8b. The main results from CCA revealed that the closer the groundwater monitoring site to the tidal rivers, the higher the correlation to the ocean levels. Groups 1 and 2 with the strongest tidal influence were located near a river or the coastline, as shown by the inset map in Fig. 8b. These findings are preliminary and additional calculations of the tidal efficiency could be used to analyse the relationship and lag time between the sea, estuarine rivers, and groundwater. Further investigations such as feature extraction for the groundwater time series data (e.g., discrete wavelet transform or the discrete Fourier transform), initiated for some riparian monitoring sites by Setiawan et al. (2023), may help explain other features and hydrogeological processes.

Fig. 8
figure 8

a Groups of hydrographs from the most correlated to the tidal signal (group 1) to the least correlated to the tidal signal (group 4); b Box-whisker plots between the correlation coefficient in 0.25 classes (groups 1–4) and the distance from the nearest river or coastline; and the location map showing the spatial distribution of the groups

Discussion

The findings from this study show pervasive regions of shallow water table within 1 m below ground level under the coastal city of Christchurch. This causes a series of issues including poor drainage and impacts on infrastructure systems, which increases the risk of flooding. The presence of shallow groundwater has been documented in most parts of the low-lying areas in this region below the 10 m elevation contour and near the tidal rivers, along the estuary and the coastline. Shallow groundwater is observed due to various conditions like surficial geology, climate and geomorphology, such as in Christchurch and similar coastal urban areas and causes poor drainage. Most low-lying regions, floodplains and coastal cities that experience land subsidence and have shallow water tables are also prone to flooding (Bagheri et al. 2021; Becker et al. 2022).

Urbanisation has exacerbated the problem of rising water tables due to increased infiltration causing infrastructure inefficiency and pollution (Foster 2001), and therefore also has increased the risk of flooding. In the long term and under future SLR conditions, the area defined from the coastline to the elevation contour of the MHWS where it intersects the water table is likely to be impacted by the most frequent and extreme flooding and issues related to the stormwater system. The current challenges for urban water and groundwater management in Christchurch, like any coastal city, are in low-lying areas where the natural drainage is difficult. To reduce the undesirable effects of shallow groundwater, urban water must be managed and restored to a usable and natural state, such as through improving water quality and providing adequate storage in wetlands and lakes. For this purpose, it is important to characterise the hydrogeological system and integrate shallow groundwater into urban water management. A common policy issue related to urban groundwater and identified by Foster et al. (2011) was future drainage problems. Under the current and future climate conditions, the main implication is the difficulty with improving and managing infrastructure for coastal low-lying cities. It is anticipated that some urban areas are more susceptible to flooding and infrastructure damage due to poor drainage conditions and proximity to the streams or river networks with shallow groundwater.

Shallow groundwater hydrographs are typically influenced by natural hydrological processes and levels fluctuate with rainfall recharge and river interactions but can also vary from anthropogenic processes (Becker et al. 2022; Schirmer et al. 2013; Vázquez-Suñé et al. 2005). Decreasing groundwater levels in Christchurch were consistent with the gradual decreasing trend of rainfall between 2016 and 2020. The groundwater monitoring sites in this study followed similar recharge patterns geographically and had similar characteristics, such as median depth to groundwater and standard deviation, within spatial clusters. However, the water table rose at a significant number of shallow groundwater sites and did not follow the decreasing trend in rainfall between 2016 and 2020, potentially due to the sealing of sewer networks (Becker et al. 2022). In other locations, Attard et al. (2016a, b) have demonstrated that large underground structures can also disturb groundwater flow and induce a rise in water levels, in addition to major decommissioning of abstraction. Groundwater infiltration into networks due to aging pipes acts as additional drainage of a shallow water table but also increases the urban vulnerability to groundwater flooding (Budd et al. 2020; Su et al. 2020; Thorndahl et al. 2016). In Christchurch, recent trends at investigated sites were located near shallow to very shallow water table where the groundwater levels were getting closer to the land surface (i.e., groundwater shoaling). The analysis of temporal trends in groundwater wells, ponds and the relationship with sea-level rise by Smith and Medeiros (2019) suggested that monitoring sites close to the coastline were more responsive to the increase in MSL. In addition, they established increasing trends in groundwater levels for a longer period than this study and related shorter-term variation due to precipitation contribution. Monitoring water levels in the Christchurch lakes, rivers and the estuary more attentively could support further analysis to explore relationships between the hydrological processes of these system relative to groundwater and sea-level rise. Hypothetically, the groundwater sites with increasing trends could indicate signs of land subsidence, contributing anthropogenic drivers (i.e., interaction with infrastructure water-related networks) or evidence of rising water levels with sea-level rise. Those locations, now identified, might guide future research and investigations of the possible cause of the groundwater rise.

In the subsurface, infrastructure systems are at risk of being impacted by shallow groundwater under sea-level rise. The subsurface pipes and water-related infrastructure can possibly interact with the shallow groundwater in urbanised low-lying areas (Liu et al. 2018; Schirmer et al. 2013; Vázquez-Suñé et al. 2005). The stormwater, wastewater and water supply pipes have the potential to act as drains exposed to leakage or seepage as the infrastructure ages. Case studies in the US, and in particular in Hawaii and New Jersey, investigated and simulated groundwater infiltration and rising levels on damaged or repaired sewer pipes (Hummel et al. 2018; Su et al. 2020). Those studies tested the sensitivity of parameters and concluding that the infiltration into infrastructure systems was the most affected by shallow water-table elevation and hydraulic conductivity values (Budd et al. 2020; Liu et al. 2021). Urban water management under climate adaptation is a growing field that urgently needs to consider the integration of groundwater, flood risk and stormwater infrastructure systems.

Compound flooding, where multiple flooding pathways can occur simultaneously, is expected to increase in frequency and intensity due to sea-level rise and climate change effects on large rainfall events (Rahimi et al. 2020; Sangsefidi et al. 2022; Wahl et al. 2015). Infrastructure asset and local authority engineers should be aware of the shallow groundwater conditions and areas vulnerable to groundwater flooding in coastal flooding assessments. In the near future, the situation could increase coastal risks of flooding when the groundwater rises under sea-level rise and no mitigation measures are in place to support additional drainage requirements. The relationship between shallow groundwater and coastal hazards is not well defined (Bosserelle et al. 2022). Further research studies are recommended to characterise the distribution and the responses of shallow groundwater to stressors in different settings, e.g., urban versus rural.

The groundwater depth below ground level is especially important in the Christchurch urban area due to the liquefaction vulnerability of the site (Cubrinovski et al. 2012; van Ballegooy et al. 2014) and is relevant to fluvial and coastal flooding hazards (Hughes et al. 2015). Increasing natural hazards and sea-level-rise-induced groundwater flooding are emerging concerns that have the potential to affect many urbanised environments in coastal low-lying urban regions. The causes of infrastructure damage and increased flood risk due to groundwater rise could be also related to land subsidence, the ageing of repaired pipes and climate-change-induced-sea-level rise. Investigations in the last decade primarily indicate that further work is needed in this area.

Based on the results of the clustering analysis, classifying the shallow groundwater hydrographs per drivers seemed extremely difficult due to overlapping influences such as tidal signal, rainfall recharge and anthropogenic stressors (i.e. dewatering). The main challenge of clustering analysis is due to data that are correlated to each other, i.e. groundwater levels. The results in this article show that with a high-density network, spatial clusters can indicate where data correlate and gain some insight into the responses of shallow groundwater to stressors. Sartirana et al. (2022) identified urban management areas for different groundwater conditions using clustering analysis of groundwater-level time series. In order to achieve an improved urban groundwater management plan for a coastal city like Christchurch, an optimised and well-structured groundwater monitoring network is needed. Based on the main findings of this study, suggestions for an improved shallow groundwater monitoring network in Christchurch are provided in the subsequent section ‘Limitations and recommendations for practitioners’.

The spatial clustering showed that some sites with similar trends and statistics, and not within the recent interpolated areas of shallow median depth to groundwater (≤1 m), can be filtered down to allow redeployment of automatic data loggers to new locations. Finally, the utilization of clustering analysis for hydrograph classification has not only identified regions with comparable groundwater behaviours but has also substantiated the existence of distinct monitoring clusters. These outcomes further validated preliminary insights based on visual inspections, highlighting the complexities associated with classifying hydrographs in urban Christchurch. An important observation for groundwater researchers and coastal managers emerged from the analysis—the majority of groundwater hydrographs exhibited analogous shapes and distributions. This coherence hints at the potential for enhancements in the current placement of individual monitoring sites within the shallow groundwater monitoring network. In essence, these findings underscore the need for a review and an optimised spatial arrangement of monitoring locations to capture the variability in urban groundwater dynamics. This was an expected result due to the short period of records analysed (i.e., <4 years) and the scale of the study area; local and situated in similar geological and climate conditions. In the timeframe investigated, the use of big data mining and machine learning algorithms did not suggest the possible interaction between subsurface infrastructures and groundwater.

The data analysis demonstrated some temporal and spatial trends but did not reveal the overall anthropogenic influences with the impacts of urban modifications on groundwater levels. The effects of underground structures such as drainage lines or impervious barriers, would be best captured by modelling approaches (Attard et al. 2016a, b), in particular the extent of the disturbance and adverse effects of rising groundwater levels in urban settings (Johnson 1994; La Vigna 2022). More needs to be understood about urban hydrogeology and interacting infrastructure systems to enable optimal management in the coastal system and for investing in climate adaptation and flooding protection. The characterisation of groundwater level variations and the determination of the shallow to very shallow groundwater areas in Christchurch, together with the classification of monitoring sites, can inform future monitoring requirements and the following recommendations.

Limitations and recommendations for practitioners

This study has limitations due to the spatial distribution of the councils’ dense shallow groundwater monitoring network. Several large gaps covering areas along the coastline and near the estuary suggest that monitoring sites could be placed in better locations. The development of a water-table depth surface or elevation model using a spatial interpolation method is geographically limited by existing monitoring sites and water management operations such as drainage via urban drains, surface-water courses and the stormwater network. The surfaces created to characterise the shallow groundwater distribution have a 200-m-cell resolution. Seeking a finer resolution is at this stage unjustified due to the data coverage.

Statistics from the time series were solely based on depth to groundwater as the water-table elevation did not include land movement, hence providing a more reliable indication of the thickness of the unsaturated zone. However, limitations include the locations that create discharge features driven by the low-lying nature of the area. Where groundwater levels were measured close to land surface (<0.3 m BGL) in drainage basins, the interpolation tends to overestimate the depth to groundwater at shallow depths. Some discrepancies were noted along the coastline where the CRC shallow groundwater monitoring (near the estuary at the Heathcote River mouth and in South New Brighton) recorded median values of 1.5 and 2.4 m BGL, respectively. The interpolated values at those locations, 0.7 and 0.9 m BGL, were underestimated and were forced nearer to the surface by the coastline boundary. A depth to groundwater of 0 m BGL at the coast limiting the water-table model was assumed, which might not entirely reflect the groundwater conditions locally, especially near tidally influenced boundaries at the ocean or estuary intersections.

Recommendations from this study include the implementation of a future work programme that would ideally use the results of this study (data exploration) to recommend an optimization of the locations for groundwater monitoring (optimal network design) for both water levels and quality, i.e., salinity (Bhat et al. 2015; Esquivel et al. 2015; Hosseini and Kerachian 2017). Ideally, the priority would be to re-establish shallow groundwater monitoring sites that have been damaged, install new critical locations and maintain existing sites near the tidal rivers, the estuary and the coastline, while removing some redundant sites in spatial clusters. Areas where data are currently scarce and groundwater levels are currently unknown could also be prioritised for new monitoring sites. The dense groundwater monitoring network suggests that some equipment can be relocated, but not randomly based on the initial review of the monitoring sites in Christchurch (section ‘Shallow groundwater monitoring well network’). Bhat et al. (2015) demonstrated the use of special uniform spacing patterns (e.g. hexagonal or square) to determine the most efficient way to obtain new data points and improve the interpolated surfaces. The network can be designed to follow an efficient evaluation of the existing groundwater sites to keep the historical record of measurements, include several new sites and upgrade current locations while minimising the costs.

The findings of this study show preliminary evidence that the recent shallow groundwater areas can be delineated adequately and a positive correlation with neighbouring sites can be achieved. While shallow groundwater areas were identified in this study, no shallow groundwater level fluctuations immediately indicate challenges for infrastructure resilience. Important considerations include zones with shallow to very shallow groundwater that recently showed groundwater shoaling. These important sites where urban shallow groundwater have been observed at high-frequency intervals need to be the focus of continued monitoring. In the future, continuing the monitoring is recommended using sensors allowing continuous records which are more valuable than discrete measurements for further statistically significant studies of urban coastal shallow groundwater (Alley and Taylor 2001; Cheng and Ouazar 2003; Rau et al. 2020).

Conclusions

The presence of a shallow to very shallow water table under the coastal city of Christchurch is an emerging concern. Early indications of shallow groundwater were given during the investigations following the series of earthquakes. The recent and continuous records of groundwater data strengthened the evidence of shallow groundwater levels which might affect critical infrastructure systems in the face of climate-change-induced sea-level rise. To effectively explore the spatial and temporal measure of depth to groundwater at a coastal city scale, a remarkably dense dataset with high-frequency records was interrogated using five techniques, (1) geospatial interpolation, (2) spatial auto-correlation, (3) time series trends, (4) clustering and (5) cross-correlation analysis.

Grouping hydrographs based on groundwater variation similarities described the characteristics of the shallow groundwater system. Responses to stresses such as rainfall events and stream flow were successfully classified using clustering analysis, while anthropogenic influences (dewatering) were challenging to capture due to the timeframe of the dataset. The response to tidal influence was more easily quantified using cross-correlation analysis rather than clustering analysis. Interestingly, the distance from tidal rivers was the principal factor that influenced the prominence of tidal signals in groundwater levels. More than the distance from the coastline, the distance from tidal rivers seemed to be the dominant vector of the influence of the ocean boundary on urban shallow groundwater, via the estuary system.

The shallow water table in coastal cities and settlements can interfere with infrastructure and environmental projects. Living near groundwater and surface water can increase the risk of sea-level rise impacts on coastal and urban resilience. Therefore, evaluating factors influencing groundwater fluctuations in shallow coastal systems can indicate where and how the groundwater will rise under future sea levels. Before any changes can be detected in the coastal urban environment, adequate groundwater data need to be collected. Findings from the Christchurch City Council shallow monitoring network indicated that shallow groundwater is present under the coastal city, fluctuates and is likely to continue to shoal or emerge at some locations in the near future. With a pragmatic view, the Christchurch example of this article can inform environmental monitoring for cities worldwide, and simply explains that it is better to start and continue collecting data to reduce or remove as many uncertainties as possible.