Introduction

Understanding patterns of community assembly is the focus of community ecology (Chase 2003). Both deterministic and stochastic theories have been employed to explain community assembly patterns (Chase and Myers 2011). Deterministic theory (e.g., niche-based theory) assumes that local processes, including environmental filtering and biotic interactions, dominant patterns of community assembly. In contrast, stochastic theory (e.g., neutral theory) emphasizes that chance colonization, random extinction, and ecological drift contribute to community assembly (Chase and Myers 2011). Furthermore, metacommunity ecology theory, which integrates local (e.g., environmental filtering and biotic interactions) and regional (e.g., dispersal and ecological drift) processes, was developed to understand patterns in community assembly (Chase et al. 2020; Heino 2011; Leibold et al. 2004). In freshwater ecosystems, the metacommunity ecology theory has been applied to explore the relative importance of environmental filtering and spatial processes on the patterns of community assembly (Heino 2011; Heino and Tolonen 2017; Jamoneau et al. 2018). Macroinvertebrates play an important role in sediment mixing, nutrient cycling, and energy flow within aquatic ecosystems by accelerating detrital decomposition (van de Bund et al. 1994; Wallace and Webster 1996) and transferring nutrient to overlying open waters (Covich et al. 1999). In freshwater ecosystems, studies on macroinvertebrate communities and the mechanisms underlying macroinvertebrate community assembly are important for understanding ecosystem structure and function, as well as for water environment conservation and protection (Makumbe et al. 2022).

The metacommunity ecology theory has commonly been utilized to explore the patterns of macroinvertebrate community assembly. The relative importance of environmental filtering and spatial processes in macroinvertebrate communities has been found to vary across different types of water bodies, including streams (Heino and Mykrä 2008), rivers (Qin et al. 2022), urban rivers (Liu et al. 2021), lakes (Cai et al. 2017; Li et al. 2022), and ponds (Hill et al. 2017, 2019). Previous studies have shown that environmental filtering typically dominates macroinvertebrate communities. Physical water indices (e.g., water depth and temperature) have been identified as primary variables associated with environmental filtering (Li et al. 2021; Stewart and Schriever 2023), while water body area also plays a significant role (Hill et al. 2019; Stewart and Schriever 2023). In addition to the above local-scale environmental variables, catchment-scale environmental variables (e.g., variables related to land use) have been found to be dominant variables in environmental filtering (Liu et al. 2016). Variables related to habitat heterogeneity (e.g., macrophyte cover) are also considered important variables to environmental filtering (Hill et al. 2017, 2019). Except for environmental filtering, the contribution of spatial processes to macroinvertebrate communities can be equal to or even greater than that of environmental filtering (Liu et al. 2021; Cai et al. 2017). In terms of biodiversity, the relative importance of environmental variables (e.g., water temperature, dissolved oxygen, total phosphorus, total nitrogen, nitrate nitrogen, aquatic macrophytes coverage, and chlorophyll a) and spatial factors on the three dimensions of α diversity (i.e., taxonomic, functional, and phylogenetic diversities) has been found to vary (Li et al. 2019a, 2020; Jiang et al. 2022). The relative importance of different ecological processes also varies across different dimensions of β diversity and their different components (turnover and nestedness) (Hill et al. 2017; Hill et al. 2019; Li et al. 2021; Stewart and Schriever 2023).

Most of the aforementioned studies have focused on understanding patterns of macroinvertebrate community assembly within individual lakes (Cai et al. 2017; Li et al. 2022). However, conclusions drawn from single-lake studies are often considered individual examples, and the mechanisms underlying macroinvertebrate community assembly within a basin under the same climate remain unclear, especially in urban lakes subject to extensive human activity. For example, studies on Taihu Lake have indicated that the relative importance of spatial processes on macroinvertebrate community assembly outweighs that of environmental variables (Cai et al. 2017). However, at the basin scale, environmental variables were found to have a greater impact on the three-dimensional α diversity of macroinvertebrate communities compared to spatial factors (Jiang et al. 2022). In addition, it is still uncertain whether the metacommunity ecology theory can effectively explain macroinvertebrate community assembly in urban lakes, which have experienced serious eutrophication in recent decades (Tian et al. 2020; Chen et al. 2023). In the present study, we selected 14 urban lakes within the Taihu Lake Basin to explore the patterns of macroinvertebrate community assembly. The aims of this study were (1) to explore the spatiotemporal differences in macroinvertebrate communities within urban lakes and (2) to quantify the relative importance of environmental filtering and spatial processes on macroinvertebrate communities. Our finding will improve our understanding of the mechanisms driving macroinvertebrate community assembly, thereby providing valuable insights for studies on community ecology and water environmental protection in urban lakes.

Materials and methods

Study area and sampling sites

The Taihu Lake Basin (119°3′1″ –121°54′26″E and 30°7′19″–32°14′56″N) is located in the core area of the Yangtze River Delta region, which is densely covered by lakes and rivers. The total area of the basin is approximately 36,895 km2 (Huang et al. 2015), and it is situated in a typical subtropical monsoon climate zone with a high degree of urbanization (Xu et al. 2016). In this study, we focused on 14 urban lakes within the basin, all of which have experienced severe eutrophication. Three to seven sampling sites were selected in each lake according to their morphology and surface area, with Google Earth used to determine the longitude and latitude of the sampling sites. Detailed information on the sampled lakes and sites is presented in Fig. 1 and Table S1. A total of 246 samples were collected quarterly from December 2018 to September 2019 (refer to Table S2 for detailed information).

Fig. 1
figure 1

The locations of the 65 sample sites across the 14 urban lakes in the Taihu Lake Basin

Macroinvertebrate sampling and handling

We collected surface sediment using a 0.0625 m2 modified Peterson grab at each sampling site. All collected materials were then poured through a 0.25 mm aperture-sized mesh for sieving in the field. The remaining materials were temporarily stored in transparent plastic self-sealing bags and then poured into white enamel pans, and macroinvertebrates were picked out using ophthalmic tweezers and placed in 60 mL plastic bottles. A formaldehyde solution was added to the bottles to preserve the macroinvertebrate samples. Macroinvertebrates were identified to the lowest possible taxonomic level (species or genus, occasionally family) using a stereomicroscope (Nikon Corporation, SMZ1500, Tokyo Metropolis, Japan) and a general light microscope (Olympus Corporation, CX21, Tokyo Metropolis, Japan). The references used for identifying the specimens are listed in Supplementary Material, Sect. 1. For each sample, we counted each taxon, absorbed the body surface fixative with absorbent paper, and placed an individual of each taxon on an electronic balance (precision 0.0001 g) (Sartorius Corporation, BSA124S, Gottingen, Germany) for weighing. Finally, we transformed the abundance (ind/m2) and biomass (g/m2) of each taxon at each sampling site based on the sampling area.

Environmental variable collection and measurement

Water depth (WD) and Secchi depth (SD) were measured using a Secchi disc. Water temperature (WT), conductivity (Cond), total dissolved solids (TDS), dissolved oxygen (DO), pH, oxidation–reduction potential (ORP), and turbidity (Turb) were measured at each sampling site using a YSI exo2 multiparameter water quality analyzer. We collected a 5 L water sample from 0.5 m below the water surface and 0.5 m above the surface sediment with a 5 L transparent plexiglass water collector at each sampling site and mixed the water samples. The mixed water samples were frozen and transported to the laboratory. In the laboratory, the chemical oxygen demand (CODcr), total nitrogen (TN), total phosphorus (TP), ammonia nitrogen (NH + 4-N), nitrate nitrogen (NO- 3-N), orthophosphate (PO3-4-P), and chlorophyll a (Chla) of the mixed water samples were measured following previously described methods (Huang et al. 1999). In addition, we collected data on the surface areas of these urban lakes.

Spatial factors calculation

First, we used the longitude and latitude coordinates of the sampling sites to calculate the Cartesian coordinates of corresponding sampling sites with the function “geoXY” from the SoDA package (Chambers 2020; Vincenty 1975). Subsequently, we constructed distance-based Moran’s eigenvector maps (DbMEMs) based on Cartesian coordinates to obtain spatial factors at the basin scale. DbMEMs can be used to study spatial relationships in biological communities (Dray et al. 2012) and to identify spatial factors exhibiting significant positive spatial correlations (at the 5% significance level) (Lai 2020). We obtained eight spatial factors (MEMs) with positive spatial correlations in the urban lakes of the Taihu Lake Basin and named them as integers from MEM1 to MEM8. The DbMEM analysis was conducted with the function “dbmem” in the adespatial package (Legendre and Legendre 2012; Dray et al. 2022) in R, version 4.0.5 (R Core Team 2021).

Data analysis

The Kruskal–Wallis nonparametric test, the least significant difference (LSD) multiple comparison method of one-way analysis of variance (one-way ANOVA), permutational multivariate analysis of variance (PERMANOVA), and permutational analysis of multivariate dispersions (PERMDISP) were used to explore spatiotemporal differences in environmental variables and macroinvertebrate communities. One-way ANOVA and Kruskal–Wallis nonparametric tests were conducted using SPSS 26.0 software (International Business Machines Corporation, 26.0, Amonk, The United States of America). PERMANOVA and PERMDISP were performed using the vegan package (Oksanen et al. 2022) in R, version 4.0.5 (R Core Team 2021). Furthermore, to explore the relative importance of environmental filtering and spatial processes on macroinvertebrate communities, we calculated and partitioned the β diversity of macroinvertebrate communities. Subsequently, we conducted principal coordinate analysis, redundancy analysis, and variation partitioning (Legendre and Legendre 2012) using the ape and vegan packages (Oksanen et al. 2022; Paradis and Schliep 2019) in R, version 4.0.5 (R Core Team 2021). Detailed data analysis procedures are provided in Supplementary Material, Sect. 2.

Results

Environmental variables exhibited significant differences among the urban lakes and seasons

The results of the Kruskal–Wallis nonparametric test indicated that all environmental variables showed significant differences (P < 0.01) among the lakes, including WD, SD, Cond, TDS, DO, pH, ORP, Turb, COD, TN, TP, NH + 4-N, NO- 3-N, PO3-4-P, and Chla, except WT (P > 0.05) (refer to Table S3 for detailed information). The Kruskal–Wallis nonparametric test and LSD multiple comparison indicated significant differences among the seasons for most environmental variables (P < 0.01), including SD, Cond, TDS, DO, pH, ORP, Turb, COD, TN, TP, NH + 4-N, NO- 3-N, and Chla. In addition, the PO3-4-P levels showed a significant difference (P < 0.05). Only WD showed no significant differences (P > 0.05) (refer to Table S3 for detailed information). A detailed description of the environmental variables of the urban lakes is presented in Table S4.

The results of PERMANOVA (based on Euclidean distance, permutations = 999) indicated that environmental variables showed significant differences among both lakes and seasons (refer to Table 1 for detailed information). Furthermore, PERMDISP (based on Euclidean distance, permutations = 999) indicated that, for environmental variables, the dispersion of samples showed significant differences among lakes, whereas centroids showed significant differences among seasons (refer to Table 2 for detailed information). Results of PERMANOVA associated with PERMDISP indicated that the environmental variables were significantly different between lakes and seasons. The above statistical analyses indicated that environmental variables, such as SD, Cond, TDS, DO, pH, ORP, Turb, COD, TN, TP, NH + 4-N, NO- 3-N, and PO3-4-P, had significant differences among both lakes and seasons in the 14 urban lakes.

Table 1 Permutational multivariate analysis of variance (PERMANOVA) of environmental variables and macroinvertebrate community between lakes and seasons across the 14 urban lakes in the Taihu Lake Basin
Table 2 Permutational analysis of multivariate dispersions (PERMDISP) of environmental variables and macroinvertebrate community between lakes and seasons across the 14 urban lakes in the Taihu Lake Basin

Macroinvertebrate communities exhibited significant differences among the urban lakes and seasons

A total of 64 taxa were identified from 246 samples collected during the four seasons across the 14 urban lakes. Aquatic insects were the most abundant group (22 taxa), followed by Gastropoda and Bivalvia (11 taxa each). The average total density of the macroinvertebrate community ranged from 462.10 to 5762.67 ind/m2 among lakes, with the highest average density observed in aquatic insects (ranging from 213.52 to 1860.60 ind/m2 among lakes) (refer to Fig. 2a and Table S5 for detailed information). Likewise, the average total biomass of the macroinvertebrate communities ranged from 1.69 to 893.47 g/m2. Oligochaeta and aquatic insects had the highest biomass (0.09 to 0.94 g/m2 and 0.37 to 11.79 g/m2, respectively), except for Mollusca (refer to Fig. 2b and Table S5 for detailed information). The results of the Kruskal–Wallis nonparametric test indicated that the total density and biomass of the macroinvertebrate community, the density and biomass of each group, and species richness (S) were significantly different (P < 0.01) among lakes, as were the Shannon–Wiener index (H'), Simpson index (D), and Pielou evenness index (J) (P < 0.05) (refer to Table S6 for detailed information). However, the Kruskal–Wallis nonparametric test and LSD multiple comparisons indicated that only the density and biomass of aquatic insects showed significant differences (P < 0.01) among seasons (refer to Table S6 for detailed information).

Fig. 2
figure 2

Abundance and biomass of macroinvertebrate community across the 14 urban lakes in the Taihu Lake Basin (1: XJ Lake, 2: DJ Lake, 3: GH Lake, 4: LH Lake, 5: KCH Lake, 6: SHANGH Lake, 7: JLH Lake, 8: TLH Lake, 9: YCH Lake, 10: DSH Lake, 11: JJH Lake, 12: DUSH Lake, 13: CH, 14: SHIH Lake)

The results of the calculation and partition of β diversity (based on the Sørensen dissimilarity index) indicated that βsør ranged from 0.68 to 0.91, βsim ranged from 0.53 to 0.86, and βsne ranged from 0.04 to 0.18 (refer to Table 3 for detailed information). Compared with studies on streams (Jamoneau et al. 2018; Li et al. 2021), ponds (Hill et al. 2017), and lakes (Cortés-Guzmán and Alcocer 2022), the total β diversity of this study was high both at the basin and lake scales, which indicated that the macroinvertebrate community exhibited marked spatiotemporal differences at both the basin and lake scales. The total β diversity (βsør) was dominated by the species turnover component (βsim) and hardly explained by the nestedness component (βsne) at both the basin and lake scales, suggesting significant species turnover occurred, whereas nestedness varied little among the urban lakes (refer to Table 3 for detailed information).

Table 3 Beta diversity of macroinvertebrate community among the 14 urban lakes in the Taihu Lake Basin

In addition, the results of PERMANOVA (based on Bray–Curtis distance, permutations = 999) indicated that the macroinvertebrate communities were significantly different among lakes and seasons, as was the lake × season interaction (refer to Table 1 for detailed information). Furthermore, PERMDISP (based on Bray–Curtis distance, permutations = 999) results showed significant differences for the dispersion of samples among lakes, whereas the centroids of each season showed significant differences among seasons (refer to Table 2 for detailed information). Overall, the above results indicated that the macroinvertebrate community differed significantly among lakes and seasons.

Relative importance of environmental filtering and spatial processes on macroinvertebrate community

According to the redundancy analysis results, five environmental variables (WD, WT, TDS, Chla, and lake surface area) and three spatial factors (MEM1, MEM2, and MEM3) were significantly associated with total β diversity (βsør) through forward selection (based on P < 0.05, permutations = 999, see Lai 2020). The results of variation partitioning indicated that environmental filtering and spatial processes jointly explained 23.3% of the total β diversity (βsør), with environmental filtering and spatial processes individually explaining 11.3% and 4.1%, respectively (refer to Fig. 3a for detailed information). The relative importance of environmental filtering on the total β diversity (βsør) of macroinvertebrate communities exceeded that of the spatial processes.

Fig. 3
figure 3

Variation partitioning of the macroinvertebrate community attributed to environmental filtering (Env) and spatial processes (Spa) across the 14 urban lakes in the Taihu Lake Basin: a total beta diversity (βsør), b species turnover component (βsim), and c nestedness component (βsne). Values represent the adjusted R2 values. *** represents P < 0.001 based on 999 permutation test, ** represents P < 0.005 based on 999 permutation test

In the species turnover component (βsim), five environmental variables (WD, WT, TDS, Chla, and lake surface area) and four spatial factors (MEM1, MEM2, MEM3, and MEM6) were significantly associated through forward selection (based on P < 0.05, permutations = 999, see Lai 2020). The results of variation partitioning indicated that the total explained variation by environmental filtering and spatial processes in βsim was 24.1%, of which environmental filtering and spatial processes explained 11.0% and 6.2%, respectively (refer to Fig. 3b for detailed information). Once again, environmental filtering exhibited a greater relative importance in driving βsim.

In the nestedness component (βsne), six environmental variables (WD, WT, TDS, NO- 3-N, Chla, and lake surface area) and four spatial factors (MEM1, MEM2, MEM3, and MEM6) were significantly associated through forward selection (based on P < 0.05, permutations = 999, see Lai 2020). The results of variation partitioning indicated that the total explained variation by environmental filtering and spatial processes for the nestedness component was 12.2%, of which environmental filtering and spatial processes explained 6.7% and 2.5%, respectively (refer to Fig. 3c for detailed information). Once again, environmental filtering exerted a stronger influence on βsne.

In summary, for total β diversity (βsør) and its different components (βsim and βsne) in macroinvertebrate communities, the contributions of environmental filtering exceeded those of spatial processes. The primary environmental variables influencing macroinvertebrate communities in these urban lakes were WD, WT, TDS, Chla, and lake surface area, as determined by forward selection (based on P < 0.05, permutations = 999, see Lai 2020).

Discussion

Roles of environmental filtering and spatial processes on the macroinvertebrate community in urban lakes

In our study, significant spatiotemporal differences were observed in macroinvertebrate communities across the urban lakes. We found that environmental filtering played a dominant role over spatial processes in structuring the taxonomic total β diversity (βsør), as well as the turnover (βsim) and nestedness (βsne) components of macroinvertebrate communities. This finding is consistent with the results observed in streams (Heino and Mykrä 2008), rivers (Li et al. 2019a; Liu et al. 2016), and ponds (Hill et al. 2017, 2019). Specifically, several key environmental variables — WD, WT, TDS, Chla, and lake surface area — significantly influenced macroinvertebrate communities in these urban lakes. Many studies have highlighted the importance of WD, WT, and Chla in affecting macroinvertebrate communities (Burlakova et al. 2022; Chen et al. 2018; Pires et al. 2021). Chla, for example, is associated with trophic status and strongly regulates macroinvertebrate communities (Burlakova et al. 2022; Dou et al. 2021; Li et al. 2019b). Our analyses, including Kruskal–Wallis nonparametric tests, LSD multiple comparison, PERMANOVA, and PERMDISP, revealed significant spatiotemporal differences in almost all detected environmental variables (refer to Table S3 and Table S4 for detailed information). This suggests that environmental variables provided high spatial and temporal heterogeneity in habitat, which likely influenced macroinvertebrate communities. The heterogeneity of environmental variables is reported to be a key driver of variation in β diversity and its turnover and nestedness components (Cottenie et al. 2003; Cottenie and De Meester 2004; Viana et al. 2016). The wide range of environmental variables observed in our study provides ample opportunities for environmental filtering to operate, thereby shaping macroinvertebrate community structure (Li et al. 2019a; Liu et al. 2016; Qin et al. 2022). In addition, we observed that the lake surface area significantly influenced macroinvertebrate communities in these urban lakes, which aligns with the results of previous studies (Hill et al. 2017, 2019). Large habitat areas can increase habitat heterogeneity, providing diverse niches for macroinvertebrate (Heino 2000). Environmental variables associated with habitat space and complexity have been shown to contribute significantly to macroinvertebrate community assembly (Hill et al. 2019). The highly heterogeneous lake surface area in our study (refer to Fig. 1 and Table S1 for detailed information) likely promoted environmental filtering as the dominant process shaping macroinvertebrate communities.

In contrast, when the contribution of spatial processes reached (Liu et al. 2021) or outweighed that of environmental variables on the macroinvertebrate community (Cai et al. 2017; Li et al. 2021; Qin et al. 2022), a high abundance of pollution-tolerant taxa (e.g., Oligochaeta and Chironomidae) and habitat homogenization were considered possible reasons. The high abundance of pollution-tolerant taxa and habitat homogenization could weaken the responses of communities to environmental variables (Heino and Tolonen 2017; Liu et al. 2021).

In our study, the spatial scale of the Taihu Lake Basin played a significant role in driving environmental filtering as the dominant process. Some studies have shown that the relative importance of variables to metacommunities may be related to the spatial extent of the study area (Mykrä et al. 2007; Bennett et al. 2010; Heino et al. 2010). The contribution of environmental filtering to the community could be expected to peak at intermediate spatial extents (e.g., from 102 to 105 km2), where dispersal rates were neither too high nor too low, and most individuals could reach optimal habitat patches (Heino 2011; Leibold et al. 2004). Given that the Taihu Lake Basin spans approximately 36,895 km2, it creates conditions conducive to environmental filtering shaping macroinvertebrate communities. In addition, isolated habitats can present dispersal barriers for many species, potentially enhancing spatial effects (Li et al. 2021). However, in our study, some of these urban lakes were connected by rivers (Fig. 1), and the predominantly plain landscape suggests relatively minimal dispersal barriers for species. Further, at the scale of the basin, the macroinvertebrate community exhibited the highest average density of aquatic insects. Specifically, Chironomidae emerged as the dominant group within this category. Apart from Chironomidae, only 4 other taxa of aquatic insects were identified, and they were rarely observed. Thus, Chironomidae emerged as the dominant group in these urban lakes (refer to Table 3 for detailed information). Notably, Chironomidae are recognized for their high dispersal capacity (they can fly as adults), implying they can effectively respond to variations in heterogeneous environmental conditions (Heino et al. 2014; Leibold et al. 2004; Soininen 2014). The geomorphological characteristics of the Taihu Lake Basin indicate that the dispersal limit for macroinvertebrates, especially chironomids, potentially attenuates spatial processes within the macroinvertebrate community. In summary, environmental filtering plays an important role in macroinvertebrate communities in these urban lakes.

Species turnover dominated β diversity in urban lakes

Our study revealed that the turnover component dominated the β diversity of macroinvertebrate communities at both lake and basin scales, which was consistent with previous studies on ponds (Hill et al. 2017), rivers (Qin et al. 2022), and lakes (Cortés-Guzmán and Alcocer 2022). The high proportion of the species turnover component in total β diversity supports the hypothesis that niche-related processes (e.g., environmental filtering) govern community dynamics (Nunes et al. 2016). Associations between environmental variables, species dispersal abilities, and the proportion of different β diversity components have been documented in previous studies (Cottenie 2005; Heino 2013; Langer et al. 2016), suggesting that high environmental heterogeneity may promote species turnover (Cortés-Guzmán and Alcocer 2022). In our study, the substantial heterogeneity of environmental variables, as indicated by the results from the Kruskal–Wallis nonparametric tests, LSD multiple comparison, PERMANOVA, and PERMDISP (refer to Table 1 and Table S3 for detailed information), likely facilitated species turnover, thus driving the predominance of this process. Furthermore, species with high dispersal abilities, such as Chironomids, which dominated the macroinvertebrate community in these urban lakes (Table 3), could further promote species turnover (Baselga 2012; Andrew et al. 2012; Dobrovolski et al. 2012; Keil et al. 2012). In addition, the short distances between the urban lakes, coupled with high environmental heterogeneity, may promote high species turnover (Cortés-Guzmán and Alcocer 2022). In our study, the distances between several of these urban lakes are relatively close (see Fig. 1), which may also contribute to species turnover.

Conclusions and study prospect

In our study, we explored the relative importance of environmental filtering and spatial processes on the taxonomic total β diversity and its different components (species turnover and nestedness) within 14 urban lakes in the Taihu Lake Basin. By conducting our research within a single catchment, we were able to mitigate the effects of climatic influences. We found that macroinvertebrate communities in these urban lakes exhibited high spatiotemporal heterogeneity. Environmental filtering emerged as the dominant force shaping the β diversity of macroinvertebrate communities, with spatial processes playing a relatively minor role. Species turnover constituted the primary driver of total β diversity, while nestedness made a lesser contribution. The high spatial heterogeneity of environmental variables, intermediate basin area, good connectivity, short distances between lakes, and the high dispersal ability of dominant taxa (e.g., Chironomidae) likely account for the dominance of environmental filtering in shaping macroinvertebrate communities. Among the environmental variables, WD, WT, TDS, Chla, and lake surface area were identified as the main environmental variables maintaining macroinvertebrate communities in these urban lakes, with relevance to trophic status and the physical status of water bodies. Furthermore, our study aids in understanding the mechanisms of macroinvertebrate community assembly in urban lakes within a single catchment, providing valuable insights for studies on community ecology and water environmental protection in urban environments.