Introduction

As seasons progress and habitats change, it is well known that there will be phenological shifts in the communities and interaction networks, formed by species that inhabit most temperate ecosystems1,2. Furthermore, we also know that such changes, whether natural (e.g. seasonal variation, phenology, weather) or human-induced (e.g. agricultural management such as the application of chemicals, tilling, harvesting), can influence the strength and reliability of ecosystem services that human food production relies on3. However, to understand how to promote ecosystem services, we first need to understand the changes that the species communities that inhabit agro-ecosystems go through. Not least, because we know from theory that timing, functional roles and redundancy will be decided by a community-wide process, that depend on seasonal changes that occur within a habitat4,5.

Arable systems are a sub-type of agro-ecosystems, where the soil is usually ploughed, and habitat changes over the course of a year are quite apparent. In just a few months, non-perennial crops, such as cereals, undergo a cycle of sowing, growth, ripening and harvest, each of which is associated with a starkly contrasting habitat setting6. However, so far, we have a relatively poor understanding of what these changes mean for the food web interactions that live within arable fields. It is, for example, likely that food webs, in response to habitat changes occurring during the crop growth, will go through cycles of greater complexity when resources are abundant and lesser complexity when resources are scarce7. Food web changes also occur because consumers will modify their behaviour, by adapting their realized niches to either avoid competition or explore new resources as different food sources become more or less available8, or in response to phenological changes in the predator community9. However, hardly any empirical data is available on how food webs respond to changes in the ecosystem induced by phenology and resource availability.

There are several reasons for why data with sufficient temporal resolution is missing and has been difficult to attain, such as the logistics required for the repeated sampling, the methodological challenges of developing assays and/or primers with the necessary balance of specificity and sensitivity, the costs of infrastructure and equipment needed, or the knowledge to curate and analyse such data10,11,12.

Here, we address this important data and knowledge gap by using a molecular analysis of trophic interactions between generalist (ground and rove beetles, and spiders) and specialist predators (lacewings, ladybugs and hoverfly larvae), detritivore (earthworms and springtails) and herbivore prey (aphids and cereal leaf beetle). This work is a follow-up to two previous articles, using the same community and diet data, the first focusing on the effects of fertilisation on prey abundance, intraguild predation and biological control13, and the second focusing on fertilisation, network-level specialisation and diversity14. Both are a part of a larger study we conducted in Central European barley fields, where we investigated food web interactions, as well as changes in communities, every two weeks throughout the cereal growth period, in replicated fields across two years. The fields were also fertilised on half of their respective areas, to induce different baseline primary productivity and prey abundances13,15. Our system is characterized by herbivorous insects, including the cereal leaf beetle Oulema melanopus, and three species of aphids that commonly occur in cereals, Rhopalosiphum padi, Metopolophium dirhodum, and Sitobion avenae16,17. Each of these species is attacked by a suite of natural enemies, among them generalist predators18,19,20,21. These are thought to reduce the chance of pests to become established in fields, whereas once they have reached higher densities, they are more effectively controlled by specialised enemies that are drawn to highly infested fields22. Outside of these periods of greater prey abundance, detritivore prey such as earthworms and springtails are valuable food sources, that can help sustain predator populations outside of the cereal growth season23; affecting adult populations, and their potential for pest control, in the following crop season24.

We devised three hypotheses, which conceptualize how food webs change according to our current understanding of food web and functional agro-ecology. First, the increase in detritivore and herbivore prey abundance on the fertilised side of the field and the lower competition (observed in13, should allow predators to explore a wider dietary niche early in the season, which should be reflected in a greater number of realized trophic links. As such, we predict food web complexity, measured with weighted connectance25, to be higher in the fertilised treatment. Moreover, because connectance decreases with species richness26,27, we expect weighted connectance to be lowest during the middle of the cereal growth season, when primary productivity and diversity in the crop fields is expected to be highest7,13,28,29. In our second hypothesis, we expect that specialisation on individual prey taxa, measured with Blüthgen’s d’30, should change over time in response to the availability of each prey, and be lower in the fertilised treatment; where we expect that an increased prey availability should allow predators to have more overlapping diets. However, over time we also expect specialisation should increase, as lowering competition and interference also will enable predators to focus on preferred prey. Lastly, in our third hypothesis, we expect trophic link rewiring or community composition dissimilarity31 to reach a peak towards the middle of the season, in response to the drastic habitat changes that occur as the cereal ripens and many herbivorous prey species migrate away from fields.

Results

Food webs

The bipartite food webs for each sampling session of each year are described below (Fig. 1, but please see the supplementary Figs. 1 through 13 for each food web with higher resolution), to show the relative importance of each group (colour codedor), through the eigenvector centrality (node diameter), and diet detection proportion (line width). First and foremost, the number of trophic links established changed over time (supplementary Tables 9 and 10, and supplementary Fig. 14 for the link densities, and supplementary Tables 11 and 12 for eigenvector centralities). In 2020 and 2021, mean link density was 2.30 and 1.50, respectively, at the start of the season; then in the first year it reached a peak of 4.00 during the 5th session, while in the second year it was 3.44 during the 4th session. Finally, by the end of sampling, link density was 3.30 for 2020, and 2.87 for 2021.

Fig. 1
figure 1

Food web diagrams for each sampling session (numbers) in 2020 and 2021, respectively, each group has been colour-coded, with node diameter corresponding to the eigenvector centrality and line width representing the diet detection proportion of the trophic link. From top to bottom in the figure; Predators: yellow – Carabid beetles, orange – Staphylinid beetles, brown – spiders; Prey: bright red – aphids, dark red – cereal leaf beetle, dark green – earthworms, bright green – springtails, bright blue – intraguild predation prey (beetles and spiders), dark orange – aphid specialists (hoverflies, ladybugs and lacewings).

Springtails (bright green) remained central throughout the season, with an eigenvector centrality ranging between 0.931 and 1 in 2020, and 0.950 and 1 in 2021. Earthworms (dark green), although less central than springtails, had a centrality between 0.613 and 0.826 early on and 0.628–0.800 late in the season in 2020, decreasing to 0.208 when aphids were at their peak in the 4th sampling session. In 2021, however, earthworms were more consistently central to the food webs, with a centrality between 0.646 and 0.870 with the exception of the 5th sampling session, when their centrality decreased to 0.422.

On the other hand, aphids (bright red) gained relevance in the middle sampling sessions in both years, rising in centrality from a mean of 0.121 and 0.131, to 0.571 and 0.598 in 2020 and 2021, respectively. The cereal leaf beetle (CLB, dark red), showed a peak in centrality of 0.573 and 0.858, during the 3rd session in both years.

The intraguild prey (IGP, bright blue), consisting of beetles and spiders, were more central at the end of the season in 2020, with a centrality of 0.395, when compared to the rest of sampling that ranged from 0.153 to 0.238. In the following year, centrality had two peaks, one in the 3rd session with 0.351 and later in the 5th session with 0.416. The specialist aphid predators (dark orange), encompassing ladybugs, lacewings and hoverflies (in larval stage), were relatively peripheral to the food webs, with centrality values as low as 0.034 in 2020 and 0 in 2021. Nonetheless, they displayed a peak of 0.289 and 0.200 centrality, during the 5th sampling session in the corresponding years.

Along with these descriptive metrics, several indices were calculated and described further below, with the results of the linear models testing the significance of sampling session and fertilisation treatment effects being summarized in Table 1.

Table 1 Summary of linear model statistical testing of the effects of sampling session and fertilisation treatment on weighted connectance, species-level specialisation, rewiring dissimilarity and community dissimilarity.

Food web complexity

The food web weighted connectance in both years was correlated to sampling session (2020 – LMM, χ2 = 25.617, df = 6, N = 168, p < 0.001; 2021 – LMM, χ2 = 41.091, df = 5, N = 144, p < 0.001), but was not affected by fertilisation (2020 – LMM, χ2 = 0.589, df = 1, N = 168, p = 0.292; 2021 – LMM, χ2 = 0.027, df = 1, N = 144, p = 0.869). In the first year, the weighted connectance rose until the 4th session, during late stem elongation, then decreased towards the end of the season, while in the second year it decreased from the beginning until the fourth session, then slowly increased (Fig. 2).

Fig. 2
figure 2

Food web complexity across sampling sessions and fertilisation treatments for 2020 and 2021, respectively. Complexity was measured by calculating weighted connectance25, using the networklevel function of the bipartite R package and the mean proportion of diet detections as weights. The lines correspond to loess smoothing, using the geom_smooth function of the ggplot2 R package, with the standard error as the shaded areas.

Specialisation

The species level specialisation (d’30, , as metric of diet overlap by calculating the diversity of predators consuming a given prey, had different responses to fertilisation and time depending on the prey target. Starting with prey in 2020, the specialisation on aphids was affected by both fertilisation and session, as a joint or interaction effect (GLMM – χ2 = 14.479, df = 6, N = 109, p = 0.025), with the fertilised treatment having higher values towards the end of the season (Fig. 3). For the cereal leaf beetle, fertilisation had no effect on specialisation (GLM – F = 1.383, df = 1, N = 37, p = 0.249), but session did (GLM – F = 5.315, df = 6, N = 37, p < 0.001), with a slight increase towards the end of sampling (Fig. 3). Earthworm specialisation, on the other hand, was neither affected by fertilisation (GLM – F = 0.914, df = 1, N = 41, p = 0.346) nor session (GLM – F = 0.319, df = 6, N = 41, p = 0.922, Fig. 3). For springtails, 95% (40/42) of all d’ values calculated were 0 (d’ = 0 indicates a complete overlap on a given target), as a result, a model could not be estimated (Fig. 3).

Fig. 3
figure 3

Species level specialisation (Blüthgen’s d’) across sampling sessions and fertilisation treatments, in 2020, by prey group. The lines correspond to loess smoothing, using the geom_smooth function of the ggplot2 R package, with the standard error as the shaded areas. CLB – cereal leaf beetle (Oulema melanopus); IGP beetles – intraguild predation, corresponds to generalist predators consumed by sampled generalist predators; Specialists – aphid specialist predators consumed by sampled generalist predators.

Regarding intraguild prey, the specialisation on beetles was not affected by either fertilisation treatment (GLMM – χ2 = 0.937, df = 1, N = 158, p = 0.333), nor session (GLMM – χ2 = 7.559, df = 6, N = 158, p = 0.272, Fig. 3). As with beetles, specialisation on spiders was also not affected by fertilisation (GLM – F = 0.2995, df = 1, N = 30, p = 0.589) nor session (GLM - F = 2.050, df = 6, N = 30, p = 0.099, Fig. 3).

Lastly, for specialist predators, such as ladybugs and hoverflies, consumed by the generalist predator taxa sampled, the specialisation was once again not affected by fertilisation (GLM – F = 1.271, df = 1, N = 47, p = 0.266) nor session (GLM – F = 2.130, df = 6, N = 47, p = 0.071, Fig. 3).

Moving onto prey in 2021, specialisation on aphids was affected by fertilisation treatment (GLMM – χ2 = 6.054, df = 1, N = 92, p = 0.014) but not session (GLMM – χ2 = 5.258, df = 5, N = 92, p = 0.385), with fertilisation increasing specialisation (Fig. 4). On the cereal leaf beetle, both fertilisation (GLMM – Chi = 14.415, df = 5, N = 28, p = 0.013) and session (GLMM – Chi = 3.905, df = 1, N = 28, p = 0.048) had an effect on specialisation, with an inverse bell shape over time, with a pronounced increase in the fertilised treatment (Fig. 4). In contrast, earthworms were neither affected by fertilisation (GLM – F = 0.867, df = 1, N = 33, p = 0.359), nor session (GLM – F = 0.858, df = 5, N = 33, p = 0.522, Fig. 4). As in the previous year, 97% (35/36) of the springtails d’ values were 0, hence a model could not be estimated, but it once again points to this group being a staple food source for generalist predators (Fig. 4).

Fig. 4
figure 4

Species level specialisation (Blüthgen’s d’) across sampling sessions and fertilisation treatments, in 2021, by prey group. The lines correspond to loess smoothing, using the geom_smooth function of the ggplot2 R package, with the standard error as the shaded areas. CLB – cereal leaf beetle (Oulema melanopus); IGP beetles – intraguild predation, corresponds to generalist predators consumed by sampled generalist predators; Specialists – aphid specialist predators consumed by sampled generalist predators.

Specialisation on beetles as intraguild prey was not significantly affected by fertilisation (GLMM – χ2 = 0.109, df = 1, N = 130, p = 0.740), as opposed to session (GLMM – χ2 = 14.326, df = 5, N = 130, p = 0.012), with a clear increase after the 3rd session (Fig. 5). For spiders, neither the treatment (GLM – F = 0.233, df = 1, N = 31, p = 0.634) nor the sampling session had an effect on specialisation (GLM – F = 0.323, df = 5, N = 31, p = 0.895, Fig. 4).

Fig. 5
figure 5

Food web dissimilarity across sampling sessions, for 2020 and 2021, respectively. Two indices were calculated, the trophic link rewiring and community dissimilarity using the betalinkr function from the bipartite R package. The lines correspond to loess smoothing, using the geom_smooth function of the ggplot2 R package, with the standard error as the shaded areas.

For specialist predators, neither fertilisation (GLM – F = 0.004, df = 1, N = 23, p = 0.951) nor session (GLM – F = 0.707, df = 4, N = 23, p = 0.597) had an effect on specialisation, though on the fertilised treatment there were no detections until the 3rd sampling session (Fig. 4).

Trophic link rewiring and community composition dissimilarity

As with complexity, the fertilisation treatment did not affect the trophic link rewiring (2020 – LMM, χ2 = 0.199, df = 1, N = 143, p = 0.655; 2021 – LMM, χ2 = 0.007, df = 1, N = 116, p = 0.934). However, it changed over the season in both years (2020 – LMM, χ2 = 27.455, df = 5, N = 143, p < 0.001; 2021 – LMM, χ2 = 35.558, df = 4, N = 116, p < 0.001), by increasing in the first few sessions, then in 2020 alone it dipped during the mid-season, rising again in the end (Fig. 5).

Network community composition was similarly affected, once again changing across sampling sessions (2020 – LMM, χ2 = 26.919, df = 5, N = 143, p < 0.001; 2021 – LMM, χ2 = 45.448, df = 4, N = 116, p < 0.001), but not with fertilisation (2020 – LMM, χ2 = 0.662, df = 1, N = 143, p = 0.416; 2021 – LMM, χ2 = 0.021, df = 1, N = 116, p = 0.884) each year (Fig. 5). In both years, community composition dissimilarity dropped until the 3rd session, then for 2020 is stabilized, while it rose again in 2021, albeit slightly (Fig. 5).

In 2020, during the middle of the season, when aphids reached their peak (sessions 4 and 513, the trophic links changed less as seen from the drop in rewiring to approximately 0.5 (Fig. 5). In 2021 the early rewiring (sessions 1 and 2) was less common, at approximately 0.2–0.3, although this appears to be the result of a few outliers (Fig. 5).

Discussion

Our findings show how dynamic food web interactions within invertebrate communities in agro-ecosystems can be, even over very short time scales. Furthermore, we also show that over these short time scales, weighted connectance did not increase towards the mid-season peak of productivity, as expected in our first hypothesis, and instead decreased, in accordance with previous studies28,29,32. A low complexity may also indicate that there is not a strong selective pressure for predators to differentiate niches, which may be one of the reasons why we did not observe any strong fertilisation effects in our study.

The low complexity/selective pressure mentioned above could have a positive influence on the biological control services provided by generalist predators, considering that it may have allowed them greater freedom from competition, to exploit aphid and cereal leaf beetle prey13,33. As such, the regulation of pest prey was generalized across the predator community and therefore overlapping, only partially confirming our second hypothesis. However, this pattern was not evident for other prey. Of these, springtails seemingly have the role of a staple food, as they were very generally consumed by the predator community throughout the season. Furthermore, there is seemingly a conflict between specialist and generalist predators34,35,36, which consume both the specialists and their prey, in this case, the aphids. However, this may rather have a legacy effect on pest regulation, as specialists mostly appeared to be a generally consumed prey only after the peak aphid infestation.

We can furthermore show that rewiring within food webs, especially at the onset of the season, was increasing drastically until mid-season, as opposed to community composition, partially supporting our third hypothesis. As the fields grew taller and greener, more species came in and established interactions amongst themselves, then left at the end of the season; a pattern that has been observed before37,38,39,40. The centrality of different prey also shifted, with aphids becoming more central and accounting for larger proportions of the predators’ diets, precisely when their abundance reached its peak in the study fields. Meanwhile, ubiquitous prey, like springtails, remained central food sources throughout the entire sampling period.

Similarly, the food webs’ complexity changed over time, each year displaying a different trend, which may be linked to an aphid infestation that took place in 202013; something which we discuss further down below. In terms of specialisation across prey, springtails were a widely consumed in both years, and the prevalence of maximum overlap is a strong indicator that springtails were a staple food source, for all predator taxa sampled. However, note that without an available measurement of consumed amounts, we cannot know whether this “stapleness” means they are a main source of energy, or just consumed ubiquitously in low quantities; posing an interesting question on how occurrence frequency correlates to consumption rates in field settings. Without that information, we cannot know whether the absence of changes in overlap in this study, or activity-density found by others41, correspond to prey switching, away from pests.

Spiders too appeared to be consumed by nearly all beetle species in 2020, pointing to a widespread occurrence of IGP. This did not take place in the following year, with fewer detections as well, probably as a result of a decline in spider abundance in the late season (Supplementary Fig. 15). As for predation on aphid specialist predators, the number of detections early in the season in both years is low, being altogether absent until the 3rd session in the fertilised treatment in 2021. These specialist predators follow aphid densities, lagging behind in their arrival to the fields and population growth42, hence this low number of detections was expected in the early season.

Regarding earthworms, their consumption appears to be sporadic; possibly due to them being low quality43 and, therefore, nonpreferred food sources when compared to other prey23, even for species known to consume them. In contrast to the earthworms, the specialisation on cereal leaf beetles was in line with their seasonal abundance44 for both years. Lastly, the specialisation on aphids poses an interesting case study. As mentioned above, there was a difference in aphid abundance across years13. The first year, with the infestation, specialisation on aphids showed a shallow inverted bell shape, which would be consistent with the peak in abundance. In contrast, there was no such effect in 2021, where specialisation was lower in the fertilised treatment.

Following that line of thought, we can gain further insight on the trends in community composition and rewiring dissimilarity seen in 2020 and 2021, once again leaning on the difference in prey abundance between years, caused by aphids. While phenology would mostly account for “when” species turnover, competition should account, at least partially, for their behaviour and by “how many” species are replaced. As such, the reduction of competition among predators, induced by the aphid infestation, possibly contributed to the shallower fluctuations in community composition seen in 2020. Likewise, for the trophic link rewiring, there was a brief period around the 4th and 5th sessions, of the same year, when predators diet changed less; this coincided with peak aphid abundance in the fields, and is reflected by their centrality in the food webs.

When looking at all the parameters measured in this study, most of them changed across time, in accordance with7. At a short, intra-annual scale, there were changes in rewiring, much like in long-term studies45, but we also observed a temporal variability for the weighted connectance that other studies did not46. Given the link between species richness and connectance26,27, this change can be explained by the species’ phenologies47. Such changes over a short period imply that biological control, as an ecosystem service, may fluctuate over time in effectiveness14. Adding to that, intraguild predation and general interference between generalist and specialist predators introduce another layer of complexity48,49,50,51. Moreover, we know that the services provided by certain species of hoverflies can change over time, depending on their life-cycle stage, for example going from predators to pollinators52,53.

Given the time frame of these changes, sampling the system without sufficient temporal replication within the same year, or once per year at the same period over multiple years, or locations, increases the likelihood of spatial or temporal uncoupling of species interactions54, leading to their underrepresentation or absence altogether. Furthermore, beyond the design and replication of sampling, there is also the matter of the sampling technique used, as it can have distinct biases and implications, not just for food webs, but ecological networks in general54,55. For the former in particular, the advantages and disadvantages of molecular analysis of food webs have been given considerable attention over the years (e.g56,57,58,59,59). However, among them, aspects such as the detection time of prey in the gut60,61, accounting for a wider time interval than direct observations, bear direct relevance for the interpretation of the data collected. Likewise, the inability to quantify consumption through molecular means, which may nonetheless be extremely difficult or near-impossible to do through observation for certain taxa in field studies56,58, are also particularly relevant for biological control.

Additionally, due to the fact this study was conducted in an open field setting, it is not possible to exclude the effects of flying prey and weed seeds62 as food sources. These food sources may affect parameters such as weighted connectance and rewiring, and in some cases shift the focus of predators away from potential pests63. Alternatively, it may further help reduce competition and allow for a greater overlap of predator diet. However, that was beyond the scope of the sampling and analysis effort of this study. Therefore, we limit our conclusions to the prey that were targeted within our study, some of which can fly or otherwise move through the air at some stage of their lifecycle (e.g. aphids, ballooning spiders, lacewings, hoverflies, lady bugs, etc.).

Conclusion

Quantitative assessments of consumption, how plastic food webs are, and how niches change over time, are likely to be of key importance for building a more in depth understanding of theoretical and empirical food webs. This will allow us to explore the finer details of food webs, without which it will be difficult to identify nodes that are either central within food webs or account for a considerable portion of the energy requirements of predators. These nodes are keystones of the food webs, and what we can show here is that how central each prey is within food webs is something that can, and does, change very quickly. Some prey are, for example, central in food webs only for a limited period of time, such as outbreak or pest species, whereas others are central throughout the season, such as staple food sources (e.g. springtails).

The capacity of different prey (either as staple foods or as temporarily available resources) to sustain the predator community and affect predator species’ behaviour and competition, is also likely to play a large role in shaping food webs. That food web rewiring, in general, was greater than species turnover supports this, and indicates that food web changes, to a great extent, are due to shifts in behaviour, rather than species turnover. Additionally, the considerable short-term dynamics of our food webs, coupled with the tendency of most studies on ecosystem services to sample when services are needed (i.e. during the peak of the crop season), implies that the dynamic nature of food webs could be one of the reasons for why studies on biological control have produced inconsistent results42,64. Parameters, such as specialisation, have been overestimated, due to the inevitability of incomplete sampling of empirical networks54,65. For the same reasons, it may also be that we systematically have either underestimated, or overestimated ecosystem functioning, depending on when sampling has occurred. This ought to be considered when sampling or modelling such systems, or when attempting to manage them to strengthen ecosystem services, such as biological control.

Methods

Study site

The study site was in Kematen in Tirol, Austria, where spring barley (Hordeum vulgare L.) was grown in six organically managed fields, three in 2020 and three in 2021. The fields were tilled, pressed and fertilised prior to sowing, between March and April, and the barley ripened around late July to early August, after which point it was harvested. Before sowing, each field was split and one half was fertilised with cattle manure and the other remaining unfertilised, as a control. The manure was applied independently by each fields respective owner, at a rate of 1 500 kg per hectare, using manure spreaders. For each treatment, four 5 × 5 m sampling plots were drawn (Fig. 6), with no barriers (e.g. cages or snail fences66, within the fields. Sampling plots were at least 5 m from the field edge to avoid edge effects, 10 m way from one another along the field’s width, and between 15 and 20 m along the length of the field. To avoid contamination of the fertilisation effect, plots were at least 25 m away from the border between the treatments within a field.

Fig. 6
figure 6

Field and sampling plot schematic (not to scale). Each field had one half of its area fertilised with manure at rate of 1 500 kg/ha, and the other half was left untreated as a control, with no physical barriers between treatments (e.g. no snail fences). Community sampling was done through wet pitfall trap sampling, while live predators were collected with dry pitfall traps to sample their diets. Plant collecting transects were done alongside the margins of the sampling plots, to count the number of aphids per cereal tiller in the fields. Sampling plots were at least 5 m from the field edge to avoid edge effects, 10 m way from one another along the field’s width, and between 15 to 20 m along the length of the field. To avoid contamination of the fertilisation effect, plots were at least 25 m away from the border between the treatments within a field.

Sampling methods

Sampling was conducted every two weeks, between the 21st of April and the 14th of July in 2020, and the 3rd of May and the 12th of July in 2021, and all fields in each year were sampled on the same week. Wet pitfall traps were active for four days, with 5–6 g of salt and 1mL of detergent per litre of water, to sample the soil surface community (Supplementary Tables 1 to 3). Dry pitfall traps were active for a single day, with wood chips within, to catch live predators to obtain gut content for molecular dietary analysis67, Supplementary Tables 4 to 6). These predators were ground (Carabidae) and rove (Staphylinidae) beetles, and spiders (Araneae). Additionally, transects were carried out along a single side of each plot, on the outside border, to avoid trampling on the inside. Thirty 30 individual barley plant tillers were collected to count the number of aphids per tiller for community analysis13.

Molecular analysis

We captured a total of 2404 ground beetles, 913 rove beetles and 567 spiders in 2020, and 1977 ground beetles, 891 rove beetles and 250 spiders in 2021 (Supplementary Tables 7 and 8, respectively). The beetles’ gut content and the spiders’ full bodies were extracted using a BioSprint 96 DNA Blood Kit (Qiagen, Hilden, Germany) on a QIAGEN Biosprint96® workstation, following the manufacturer’s recommendations. Each sample was analysed three times, with different multiplex-PCR assays. The first focused on several prey taxa (assay in68, earthworms, aphids, springtails and the cereal leaf beetle. The second targeted generalist and specialist predators, such as spiders, lacewings and ladybeetles (primers from67,69. The third assay identified the genus of beetles consumed, from a selected set of common taxa consisting of Bembidion spp., Harpalus spp., Poecilus spp., Pterostichus spp., Philonthus carbonarius and Philonthus cognatus.

The molecular gut content analysis is described in greater detail in13, but the multiplex PCR assays can also be found here, in the supplementary materials (Supplementary Tables 4 to 6), for convenience.

Data analysis

All data analysis was carried out using R 4.1.270 and RStudio 2023.03.1 + 44671, with the packages lme472 for linear mixed effects modelling (LMM), glmmTMB73 for generalised linear mixed effects modelling (GLMM) and the glm function from base R for generalised linear modelling (GLM). The package bipartite74,75 was used for food web generation, and the calculation of several metrics: species level specialisation30, trophic link rewiring and community composition dissimilarity31, and weighted connectance25; using the mean proportion of diet detections as weights; Table 2). The package tidyverse76 was used for data processing, as well as to provide greater reproducibility of the data matrices obtained from the archived raw data, and ggplot277 was used for graphic creation, for the same reasons. Plots with loess smoothing were created using the standard loess method from the geom_smooth function from ggplot2, and standard error as the shaded ribbons.

Table 2 Variables measured, with their respective calculations and what they represent in the context of this study.

For dietary data, detections were averaged for all individuals of a given species in each unique combination of plot, treatment, field and sampling session; resulting in a mean proportion of the detections. As an example, the diet proportions for the species Poecilus cupreus in plot 1, fertilised treatment, field 1 on sampling session 1 was the mean of all P.cupreus individual diet detections; which were recorded either as 1 – detected, or 0 – not detected, for each diet target in the assays (Tables 3 and 4). All self-detections (e.g. P. cupreus testing positive for Poecilus in PCR assay 3) were manually removed (setting the detection to 0, instead of 1).

Table 3 Example diet data matrix, with three individuals Poecilus cupreus, two captured in one sample, and one in another, each with a single prey target detection (A and B).
Table 4 Example of diet matrix above, after calculating mean averages.

Prior to testing, the heteroscedasticity of models was checked through visual inspection of quantile-quantile and residual vs. predicted plots78. The error structures of GLMMs and GLMs with proportion data were adapted to ordered beta (hence the use of glmmTMB, for access to the ordbeta family, which was not available in lme4), and quasibinomial (quasibinomial family in glm), respectively.

Due to the experimental design of our study, the experimental units were the fields, thus the sampling plots within them represent pseudoreplicates. In order to address the correlation among the plots in the same field, and minimize the likelihood of falsely detecting significant differences, we followed the method in79. By using mixed effects models with field (replicate-level grouping variable) as a random effect, it allowed us to correct for type I error and address the pseudoreplication bias.

In order to explicitly test the hypothesis of our study within our models, we set up appropriate contrasts for each variable. The session variable, being categorical, had a sliding contrast so that each session would be directly compared to the previous one; fertilisation had a treatment contrast with the unfertilised, or control, treatment as the baseline; while field, used as a random factor, had a sum contrast, so that the grand mean of all fields would be the reference value, as opposed any individual one.

The significance of the variables and interaction terms was assessed using the anova function of base R, through Chi-squared (χ2) tests for the mixed effects models, or with F tests for the GLMs, with the threshold defined at 0.05.

Three sets of linear mixed effects models (LMM) were created for each year, to test the effects of time and fertilisation on different variables. Our first model analysed how sampling session and fertilisation affected the weighted connectance of the food webs, with field as a random factor. We chose weighted connectance, which is the proportion of realized trophic links in a food web, as a metric for complexity, while factoring in weights. Unlike other complexity metrics (e.g. link density or unweighted connectance), it takes into account the strength of the trophic links. Doing so allows for a better understanding of predator behaviour and ecosystem function80, fitting in with the other metrics chosen (dissimilarity and specialisation) and the biological control setting of the project. The second and third models looked at how session and fertilisation affected the rewiring dissimilarity and community composition dissimilarity, respectively, with field as a random factor. These two components of dissimilarity were chosen as they allowed us to measure and compare how the food webs changed in structure over time. The rewiring component represents changes in behaviour within a subset of community that is common to both food webs (e.g. the changes in interactions between species present in both sampling session 1 and 2), while the community composition component represents species turnover (e.g. changes in species between food webs in sampling session 1 and 2).

The species level specialisation (d’) measured the diversity of predators consuming a given prey (e.g. predators consuming springtails), providing us with a metric of predator diet overlap, from the perspective of the prey target. It was chosen as it was complementary to the network level specialisation analysis (H2’, representing the overlap of the overall food webs), that we carried out in a previous paper14, and the other behavioural metrics described above. The analysis of specialisation for each prey target was carried out with generalised linear mixed effects models (GLMM), or with generalised linear models (GLM) when the number of diet detections was too low to allow fitting mixed effect models. In both cases, the models tested the effects of sampling session and fertilisation on the standardized d’, with the GLMMs using the sampling field as a random factor. In total there were seven models for each year, GLMMs for aphid and IGP beetle d’, and GLMs for cereal leaf beetle, earthworms, specialists, IGP spiders. For the springtails in particular, neither GLMMs nor GLMs worked, as over 95% of samples returned a d’ of zero, thus it was not possible to fit any models.