Introduction

Tropical forests are heavily impacted by the increased need for food production and the consequent expansion of agricultural land (Foley et al. 2011). The complexity of agricultural systems, in terms of ecological and crop diversity, are also reduced, with intensive monocultures becoming more abundant than complex agroforestry systems, to meet the high food demand (Laurence et al. 2014). Agroforestry systems (i.e., complexes of crops and shade trees) are suggested as a possible solution to reduce the effects of deforestation of tropical forests, while also enhancing the livelihoods of local communities (Bhagwat et al. 2008). Agroforestry systems can sustain similar biodiversity of natural habitats for some taxa (Bhagwat et al. 2008; De Beenhouwer et al. 2013; Santos-Heredia et al. 2018) and can partially restore the soil structure after conversion of forests to monocultures (Saputra et al. 2020). They are, however, likely to conserve little functional diversity unless the adjacent natural habitat is also protected (Cannon et al. 2019). Thus, land sparing agriculture (i.e., intensification of existing farmlands and expansion of protected natural habitats) is often preferred to land sharing agriculture (i.e., agroforestry systems) (Cannon et al. 2019). To show the conservation potential of land sharing system, more data are needed, especially in the tropics since some regions of high biodiversity outside the Neotropics are less studied.

Coffee (Coffea spp.) is one of the most important commodity crops in the world (DaMatta et al. 2019), with around 25 million people estimated to depend on its production for their livelihoods (Bunn et al. 2015). Coffee, together with cocoa (Theobroma cacao), are the best examples of crops that can easily be cultivated in complex agroforestry systems. Traditionally cultivated under dense and diverse shade canopy (Moguel and Toledo 1999), these crops can sustain high biodiversity of various taxa when under shade trees (e.g., invertebrates: Armbrecht and Perfecto 2003; Perfecto et al. 2003; Borkhataria et al. 2012; birds: Perfecto et al. 2003; Gordon et al. 2007; Borkhataria et al. 2012; Philpott and Bichier 2012; mammals: Gordon et al. 2007; Caudill et al. 2015). The presence of shade trees in coffee agroforestry systems can also enhance carbon sequestration, drought resistance, functional biodiversity, soil fertility, as well as provide natural solutions for weed and biological pest control (reviewed in Tscharntke et al. 2011). In addition, coffee agroforestry systems show smaller temperature fluctuations (López-Bravo et al. 2012; Mariño et al. 2016), improve microclimate conditions and deep-water drainage (De Carvalho et al. 2021), and can provide key resources for wildlife (Perfecto et al. 1996) when compared to sun-exposed coffee fields.

Several taxa of insects are considered as bioindicators for assessing the state of agroforestry systems (Kevan 1999; Andersen et al. 2002; Jimenez-Soto et al. 2019). Many insects are known to be sensitive to land use changes despite their important roles in the ecosystem as pollinators, pest control agents and nutrient cyclers (Peck et al. 1998; Rainio and Niemela 2003; Losey and Vaughan 2006). For example, ants (Formicidae) can be important biological control agents in coffee fields as they predate the main coffee pest borer, Hypothenemus hampei, a beetle (Family Curculionidae) that severely damages coffee seeds (Morris et al. 2018; Jimenez-Soto et al. 2019). Soil insects such as ants and termites (Isoptera) can move particles in the soils and favour the mobilisation of nutrients (Dangles et al. 2012) as well as hasten organic matter decomposition (Crespo-Pérez et al. 2020). Pollinators from different orders (e.g., Lepidoptera, Hymenoptera, and Diptera) are important bioindicators as most of the crops benefit from cross-pollination by producing more fruits, increasing fruit quality and maintaining high genetic variability (Klein et al. 2007; Garibaldi et al. 2011).

The question about changes in invertebrate richness and abundance between different agroforestry systems remains elusive. Ant species richness and abundance, for example, is higher either in shade-grown coffee (Armbrecht and Perfecto 2003; Perfecto et al. 2003) or in sun-exposed coffee (Arenas-Clavijo and Armbrecht 2019). Borkhataria et al. (2012) found higher abundance of Coleoptera, Diptera, Hemiptera, Hymenoptera, and Lepidoptera in shade-grown than in sun-exposed coffee fields and a higher abundance of Orthoptera in sun-exposed coffee fields. Pollinators are expected to be more abundant in shade-grown coffee as flowers from other plant species can attract them, but the abundance of some species do not differ between sun-exposed and shade-grown coffee (e.g., bees, Classen et al. 2014). Moreover, Prado et al. (2021) found no influence of flower availability on shade trees or type of coffee field (shade vs. sun-exposed) on the frequency of bee visitation. The response is therefore taxon specific, with the need to consider regional and environmental variables (Smith et al. 2015).

We aimed to explore the richness and abundance of invertebrates in coffee home gardens in West Java, Indonesia by comparing sun-exposed and shade-grown gardens. Indonesia is one of the 17 megadiverse countries in the World and a biodiversity hotspot, with many endemic species under a constant threat of extinction (von Rintelen et al. 2017). The study area is a good model to test the effect of sun vs. shade home gardens without the influence of environmental variables as it is subject to dry periods of around 5 months but still maintains similar ambient temperatures. In addition, there are relatively few studies on the impact of different management practices on coffee fields in Indonesia, despite being the fourth largest coffee producer in the world (Szenthe 2020). Despite evidence of regional differences in animal diversity between sun and shade coffee fields from neotropical studies, few researchers have investigated this in the Asian context, including Indonesia. Coffee production in Indonesia has increased since 2010, both in terms of local and exported coffee markets (Prajanti et al. 2020). With the increase in these markets, we expect an intensification in the management of coffee fields and a consequent increase in sun exposed fields. It is therefore key to understand the implications of shifting cultivation to sun fields in this biodiversity hotspot. We predict an overall decrease in richness and abundance of invertebrates in sun-exposed coffee, compared with shade-grown coffee, although we expect taxon specific differences on the response. We predict that shade-grown coffee would favour the presence and abundance of invertebrates with important ecological roles for the ecosystem, while sun-exposed coffee fields would host higher abundances of invertebrates typically regarded as pests.

Materials and methods

Study area

We collected data in 28 coffee home gardens in the municipalities of Cipaganti and Pangauban, West Java, Indonesia (7.2786°S, 107.7577°E; elevation ~ 1350 m a.s.l.; Fig. 1). The area consists of an agroforestry system of interconnected crops usually separated by trees alongside trees planted inside gardens (Nekaris et al. 2017; Campera et al. 2021b). This agroforestry system lies in the foothills of Mount Puntang, which is part of the mountain range containing the active volcano Mount Papandayan. The forests on Mount Papandayan are protected in part as a watershed (hutan lindung) and in part to protect its unique biodiversity (cagar alam), but the agroforestry system is not included in the protected area. The climate is ever-wet, with a mean annual precipitation exceeding 2500 mm and a drier period between April and September (Nekaris et al. 2017). In addition to coffee (Coffea arabica), there are other yielding crops such as tea (Camellia sinensis), chayote (Sechium edule), carrot (Daucus carota), white cabbage (Pieris brassicae), tomato (Solanum lycopersicum), cassava (Manihot esculenta), and potato (Solanum tuberosum). The agroforestry systems is on a mixture of clay soil and sandy soil.

Fig. 1
figure 1

Location of the study area. The coffee gardens are included in an agroforestry system connected to a protected forest and in proximity of the villages Cipaganati and Pangauban (West Java, Indonesia). Coordinates are decimal degrees. (Color figure online)

Data collection

Out of the estimated 400 small-holder coffee gardens present in the area, we sampled only a subset of gardens randomly chosen to have an equal number of sun-exposed and shade-grown gardens. Coffee gardens surveyed covered a mean area of 1,216 ± SD 877 m2, for a total of 34,055 m2. The sampled coffee gardens were at a distance of 1734 ± SD 371 m (range = 1296–2505 m) from the edge of the continuous forest from which they were connected by a series of home gardens and bamboo forest patches. We divided coffee gardens into sun vs. shade depending on the shade cover and the variety of shade trees. To determine shade cover, we used the Canopeo App, which calculates the proportion of area shaded from photographs (Patrignani and Ochsner 2015). We took four random and independent photographs and calculated the mean value for each coffee garden. The minimum distance between points of photo capture was 10 m, and the minimum distance from field edge was 5 m. We ensured that the photos did not include understory canopy such as banana leaves, which would have biased the calculation of the tree shade cover. We recorded the tree species that were used as shade trees in the sampled gardens. The main shade trees in coffee gardens were Grevillea robusta, Maesopsis eminii, Manglietia glauca, Melaleuca cajuputi, Persea americana, and Toona sureni. We divided sun-exposed gardens (n = 14) and shade-grown gardens (n = 14). We recorded the temperature and humidity via a weather station (HOBO RX3000) in proximity to the gardens to represent the general weather conditions during the data collection period and not the weather conditions at the garden per se.

We collected data during the beginning of the dry period (March/April 2019) at times where there was no rain or wind that could have affected the presence of invertebrates. The mean temperature during the data collection varied little (mean = 21.4 ± SD 0.8 °C). We installed the traps between 0600 and 0700 h in a single 12.25 m2 plot in the middle of each coffee garden. We installed six pitfall traps (diameter: 11 cm) set along the diagonal keeping 1 m spacing between traps and positioned pan traps (inner dimensions: 37 × 27 × 2 cm) in opposite corners of the plot at a height of one meter (Fig. 2) (Woodcock 2005). We used two colours (blue and yellow) for pan traps as there can be a colour preference in some taxa of pollinators (Heneberg and Bogusch 2014). We filled pitfalls to one third and pan traps to the brim with a solution of clean water and a few drops of detergent. After installing the traps, we used the beating tray method on three random coffee plants in the garden. We placed a white tray of 1 m2 below the plant, and then shook the whole plant for 5 s and collected all the insects dropped on the tray using an insect aspirator (Ozanne 2005). We then left the garden and came back 6 h after installing the traps to collect the samples. We substituted the solution of water and detergent with 70% ethanol and put in the freezer to preserve the samples and allow subsequent counting and identification. The identification was done to the genus level when possible, and we considered morphospecies. We used taxonomic keys and Olympus SZ61 microscope to perform the identification. For an easier representation of the results, we first present the data grouped by Order and then make additional separations within the main orders detected. For the Formicidae, we present the results at genus level as they were the most abundant taxa.

Fig. 2
figure 2

Representation of the plots used to collect data on insects in coffee home gardens. Yellow and blue circles represent pan traps, red circles represent pitfall traps. (Color figure online)

Data analysis

We ran generalised linear models to assess whether the number of species and the number of individuals of insects differed between sun-exposed vs. shade-grown coffee gardens. We fit the dependent variables with Poisson distributions for count data. We additionally ran generalised linear models considering each Family separately (and genera of the Family Formicidae) for the families for which we found at least ten individuals to better understand the differences between taxa. We used the function “glm” in R 4.0.4 for the analysis. We considered p = 0.05 as threshold level for significance. For the species that were present in at least ten gardens, we run a correlation matrix via “cor.mest” function in the package “corrplot” and corrected p-value via Bonferroni-Holm method in “p.adjust” function (Wei and Simko 2021).

Results

Sun-exposed gardens had a shade cover < 10% and with shade mainly given by trees at the border of gardens. Shade-grown gardens had a shade cover > 15% and had higher richness of shade trees in the middle of the coffee gardens (Table 1). The other parameters relative to the coffee gardens and the data collection did not change between sun-exposed and shade-grown gardens.

Table 1 Parameters of the coffee home gardens (median and quartiles) selected for the invertebrate surveys between 20 March and 4 April 2019

In total, we recorded 3,962 individuals from 111 species of invertebrates in coffee gardens (Table 2). With the pitfall trap method, we collected the highest abundance of invertebrates (3,114 specimens from 49 species), although the beating tray method resulted in the highest number of species (538 specimens from 66 species). The pan traps collected only 211 specimens from 22 species (yellow) and 99 specimens from 18 species (blue) but were more efficient in collecting data on Hymenoptera not belonging to the Family Formicidae, and on Diptera.

Table 2 Number of species (and total individuals) of invertebrates censused using four different methods in 28 coffee home gardens in Indonesia

The total number of species of invertebrates did not vary significantly between sun-exposed and shade-grown coffee gardens (Z-value = 0.12, value = 0.904; Table 3). The overall abundance of invertebrates also did not vary (Z-value = 0.35, value = 0.706), but significant differences occurred at the Order level. The abundance of Blattodea (Z-value = 8.69, value < 0.001) and Diptera (Z-value = 3.78, value < 0.001) was significantly higher in sun-exposed gardens, while the abundance of Orthoptera was significantly higher in shade-grown gardens (Z-value = −4.05, value < 0.001). When investigating differences at Family levels, we found additional significant results. Within the Araneae, the individuals of the Family Lycosidae were more abundant in shade-grown gardens (Z-value = − 2.30, value = 0.021), while Linyphiidae were more abundant in sun-exposed gardens (Z-value = −2.78, value = 0.005) (Fig. 3). Within the Blattodea, Rhinotermitidae (Z-value = 8.12, value < 0.001) and Ectobiidae (Z-value = 2.59, value = 0.010) were more abundant in sun-exposed gardens. Coleoptera of the Families Scarabaeidae (Z-value = 2.46, p-value = 0.014), Lycidae (Z-value = 2.22, p-value = 0.026) and Tenebrionidae (Z-value = 1.97, value = 0.049), and Diptera of the families Culicidae (Z-value = 2.31, value = 0.021), Sarcophagidae (Z-value = 2.91, value = 0.004) and Drosophilidae (Z-value = 1.96, value = 0.050) were more abundant in sun-exposed gardens. Within the Family Formicidae, we found variability among genera with higher abundance of Camponotus spp. (Z-value = -10.14, p-value < 0.001) in shade-grown gardens and higher abundance of Myrmicaria spp. (Z-value = 10.10, value < 0.001) and Dolichoderus spp. (Z-value = 5.17, value < 0.001) in sun-exposed gardens. The abundance of Camponotus spp. was negatively correlated to the abundance of Dolichoderus spp. (r = − 0.53, p = 0.003) and Myrmicaria spp. (r = − 0.53, p = 0.004) (Fig. 4). The abundance of Paratrechina spp. was positively correlated to the abundance of Zodariidae (Araneae) (r = 0.53, p = 0.004), Chelisochidae (Dermaptera) (r = 0.60, p < 0.001), and Gryllidae (Orthoptera) (r = 0.59, p < 0.001). We also found a positive correlation between the abundance of Rhinotermitidae (Blattodea) and Sarcophagidae (Diptera) (r = 0.62, p < 0.001) and between the abundance of Anisolabididae (Dermaptera) and Drosophilidae (Diptera) (r = 0.57, p = 0.002).

Table 3 Number of species and individuals in 28 coffee home gardens (14 sun-exposed and 14 shade-grown) in Indonesia. Estimated model means and beta coefficients based on generalised linear models. Values in brackets are standard errors
Fig. 3
figure 3

Abundance of invertebrates in 28 coffee home gardens (14 sun-exposed and 14 shade-grown) in Indonesia. Plots show raw data represented via box plots embedded in violin plots. A: Araneae; B: Blattodea; C: Coleoptera; D: Dermaptera; E: Diptera; F: Formicidae; G: other Hymenoptera; H: Orthoptera. *p < 0.05; **p < 0.01 based on generalised linear models. The colour of the * indicates whether values are significantly higher in sun-exposed (yellow) or shade-grown (green) gardens. A: Araneae; B: Blattodea; C: Coleoptera; D: Dermaptera: E: Diptera; F: Formicidae; G: Hymenoptera (other); H: Orthoptera. (Color figure online)

Fig. 4
figure 4

Correlation matrix with the abundance of the main taxa present in home coffee gardens in Indonesia. We only show significant results after a corrected value (Bonferroni–Holm). (Color figure online)

Discussion

We found that the complexity of coffee home gardens, evaluated by comparing sun-exposed and shade-grown gardens, influenced the abundance of several taxa of invertebrates, although overall there was no difference in terms of richness and abundance of invertebrates between the two types of gardens. This finding can be dependent on the fact that the sun-exposed home gardens in the study area were included in a matrix of other home gardens with shade cover. Despite this factor, the abundance of several taxa that can be considered as pests were still more abundant in sun-exposed fields. Termites of the Family Rhinotermitidae, for example, are known to cause severe damage to mature trees and can bring about a reduction in crop productivity (Cowie et al. 1989; Fajar et al. 2021). Cockroaches of the Family Ectobiidae (Blattella sp. in the study site) are omnivores and can damage crops by eating leaves and predating on eggs of Lepidoptera and Hemiptera (Capinera 2020). Beetles of Families Lycidae (Cautires sp. and Scarelus sp. in the study site) and Tenebrionidae (Euhemicera sp. in the study site) also eat leaves and are predators of larvae (Lundgren et al. 2014; Capinera 2020), although they can bring benefits to coffee production as they are occasional pollinators of coffee flowers (Hipólito et al. 2018) and are agents of organic matter decomposition (Crespo-Pérez et al. 2020). Sun-exposed gardens also had a higher abundance of parasites from the Family Diptera. Shade-grown gardens had a higher abundance of Orthoptera, and this is somehow unexpected since Orthoptera are expected to prefer areas with bare ground used for basking and oviposition (Fartmann et al. 2012; Rahman et al. 2012), however, also found a higher abundance of Orthoptera in agroforestry systems than in monocultures. Considering additional factors such as diversity of other crops and ground vegetation can help better understand this pattern.

We revealed some interesting associations between taxa. In ant communities, the dominant genera were Camponotus spp. in shade-grown gardens and Dolichoderus spp. and Myrmicaria spp. in sun-exposed gardens. This pattern of exclusion of dominant species in relation to the complexity of the coffee field was also found in Puerto Rico (Perfecto and Vandermeer 2020). Paratrechina spp., a predator of several invertebrate larvae that are both pests and important pollinators (Romeis et al. 1995; Silva et al. 2015), were associated with the ant mimicking spiders from the Family Zodariidae, suggesting that the detected species of Zodariidae were highly specialised on hunting Paratrechina spp. (Pekár et al. 2018). Anisolabididae was positively associated with Drosophilidae, suggesting that the detected earwigs are predators of the larvae of flies (Garcia et al. 2020). Eggs or larvae of Gryllidae might also be target of predator spiders and earwigs (Midega et al. 2004), although we would need more experimental support to draw conclusions on the associations revealed via the correlation matrix.

There are a series of limitations and additional considerations based on our results. First, there are additional predictors to invertebrate abundance that were not considered in our investigation. For example, invertebrate abundance and richness can be shaped by the use of agrochemicals (Iwasaki and Hoogendorn 2021; Manson et al. 2022), shade tree richness (Campera et al. 2021a), soil moisture content (Staley et al. 2007), fire (Swengel 2001), and climate change (Barnett and Facey 2016). Second, the methods used were mainly effective in detecting ground-dwelling invertebrates, although pan traps and beating trays were effective in detecting other taxa. Given the methods used, the results are probably more accurate for some taxa (e.g., Araneae, Blattodea, Coleoptera, Formicidae) and less accurate for other taxa that require additional methods for data collection (e.g., Hemiptera, Hymenoptera not Formicidae, Lepidoptera, Odonata). For example, pan traps are commonly used to assess the communities of flower-visiting insects in an area (Heneberg and Bogusch 2014), but other methods (e.g., net sampling) can perform better or be complementary (Popic et al. 2013). The reduced number of flower-visiting insects might also be due to the temporal limitation of our sampling that was not done in the peak of the flowering season in coffee gardens (usually July-August), although other plants were flowering at the time of data collection. These methodological issues, however, do not limit the importance of our findings since our scope is to present the variations in invertebrate abundance and richness between sun-exposed and shade-grown gardens.

Our findings suggest that sun-exposed coffee fields host a higher abundance of invertebrate pests than shade-grown coffee fields. Still, the abundance of functional invertebrates such as ants and spiders were very high compared to the abundance of pests. In addition, the diversity of invertebrates was not different between the two field types, suggesting the ecosystem services offered by the agroforestry environment are efficient. The agroforestry environment is particularly important as it is an important habitat for the conservation of threatened mammal and bird species (Nekaris et al. 2020; Campera et al. 2021b). Coffee farmers in the area mainly use organic practices, favoured by extensive training for organic fertilisers and pesticides and conservation education initiatives (Campera et al. 2021b). We also promoted the planting of shade tree saplings (~ 30,000) in the circa 400 coffee gardens present in the study area that could provide long-term benefits (Campera et al. 2021b), considering the increase in the coffee market in Indonesia (Prajanti et al. 2020) and the possible intensification in crop management in the near future (Schroth et al. 2015). Accordingly, a land sharing agroforestry environment can also enhance the credibility of sustainable coffee production that is wildlife-friendly and contributes to the food security of local communities (Duffy et al. 2021). This is also potentially important to consumers seeking sustainable brands that are authentic in their conservation actions. Considering the constant decline of terrestrial invertebrates (van Klink et al. 2020), birds and mammals (Spooner et al. 2018), the efforts in conservation should focus on maintaining and promoting complex agroforestry systems that might represent the future of conservation for some threatened species that prefer human-modified habitats.