Introduction

Benthic communities are essential components of healthy aquatic ecosystems as they play a fundamental role in maintaining ecological integrity and biodiversity, in addition to ecosystem services they provide. In benthic habitats, photoautotrophic microorganisms have an important functional role in primary production, food web interactions, benthic-pelagic coupling, and nutrient exchange across the water-sediment interface (Crespo and Pardal 2020). Moreover, benthic diatom communities have been used regularly for monitoring the ecological status and trends of changes in aquatic systems (Serôdio and Lavaud 2020; B-Béres et al. 2023). Benthic phototrophic communities of shallow lakes are commonly dominated by the representatives of cyanobacteria, diatoms, and green algae (Stevenson 1996). These microorganisms are usually attached to solid submerged surfaces and are embedded in a mucilaginous matrix composed of extracellular polymeric substances (EPS) and organic detritus. EPS is a three-dimensional structure consisting primarily of polysaccharides, and has a major role in the development of algal biofilms (Wu 2017a). Biofilm formation is a complex process, generally divided into five main steps: (1) initial attachment; (2) irreversible attachment; (3) colonization; (4) maturation, and (5) dispersion (Sehar and Naz 2016; Osorio et al. 2021; Sauer et al. 2022). Structure of phototrophic benthic communities can change dynamically and is shaped by a wide range of environmental factors, such as nutrient- and light availability, temperature, hydrodynamic conditions, and properties of the substratum they are attached to (Wu 2017b; Fanesi et al. 2019; 2022; Osorio et al. 2021). In addition to these abiotic variables, some biotic factors (e.g., interactions between algal species, microbial succession) can also affect the formation and structure of benthic biofilms (Fanesi et al. 2019; Guo et al. 2021; Krsmanovic et al. 2021; Lamprecht et al. 2022). The complexity and opaqueness of algal biofilms make it difficult to explore their fine structures using ‘traditional’ methods, such as light microscopy (Azeredo et al. 2017).

Since its commercialisation in the late 1980’s, confocal laser scanning microscopy (CLSM) has been applied in various fields of science like applied physics, life sciences, material sciences, and engineering. For now, CLSM has become one of the most widespread fluorescent imaging techniques for three-dimensional (3D) structural analysis of cells as well as tissues (Paddock and Eliceiri 2014; Bayguinov et al. 2018). Among other applications, the development of advanced optical imaging techniques allows the structural investigation of phototrophic biofilms at microscale level (Neu et al. 2010). Studying the 3D architecture of algal biofilms may contribute to a better understanding of their functional and ecological roles, as well as their responses to changing environmental conditions (Zancarini et al. 2017; Lamprecht et al. 2022; Manirakiza et al. 2022).

In practice, CLSM can serve as a non-invasive, non-destructive, label-free, and cost-efficient method for obtaining high-resolution images of intact biofilms (Mueller et al. 2006; Neu et al. 2010). This technique uses a focused laser beam to scan the sample and, by means of using a spatial pinhole, captures fluorescence images at different depths in a sample (Kuehn et al. 1998; Achinas et al. 2020), allowing the reconstruction of 3D images. However, like any other methods used for studying algal biofilms, CLSM also involves some specific challenges and limitations. For example, resolution of CLSM may not be sufficient to resolve fine structural details within dense and heterogeneous samples, particularly in thicker sections where axial resolution degrades. Very thick and highly scattering algal biofilms can limit the penetration depth of CLSM and restrict the ability to effectively visualize the deeper layers. In tissue samples, the effective imaging depth is typically around 100-200 µm (Pawley 2006; Neu and Lawrence 2015). High laser intensities and/or prolonged exposure to the laser light can damage living cells within the biofilms and affect biofilm integrity (Dailey et al. 2006).

Importantly, eukaryotic algae and prokaryotes (cyanobacteria) have different pigment compositions which strongly influence their fluorescence properties; the autofluorescence of eukaryotic algae is dominated by that of chlorophylls, while cyanobacterial autofluorescence is composed of two spectrally distinct components, i.e., of chlorophylls and phycobiliproteins. Hence, although CLSM is typically not suitable for accurate species identification, some algal groups and photosynthetic prokaryotes can be distinguished based on their spectral properties (Carreira et al. 2015; Lamprecht et al. 2022).

Following structural and compositional changes over time can provide an insight into the dynamics of the formation/ageing of algal biofilms (Papageorgiou 2004). A major goal of our work was to develop a rapid, straightforward and freely available CLSM image analysing method in order to track the spatio-temporal changes in algal biofilms. For a high throughput workflow, we constructed a ‘macro’ set (macro: a program that automates a series of commands, e.g., in an image processing environment). To validate this method and to test the image processing macro we developed, major structural and/or compositional changes/differences in the studied algal biofilms were a prerequisite. Previous studies have demonstrated that climate change-related increase in water temperature can cause substantial alterations in the distribution, composition and diversity of aquatic organisms, as well as in their biomass production and growth rates (Daufresne et al. 2009; Capon et al. 2021; Pörtner et al. 2022). Optimal growth temperature of different algae can vary over a wide range. In the temperate climate zone, this range is generally between 15 and 30°C (Ras et al. 2013; Singh and Singh 2015). As a consequence of global warming, there could be a shift in the taxonomical composition of natural algal communities in the temperate climate zone, manifested in the increasing of dominance cyanobacteria at the expense of diatoms and chlorophytes (DeNicola 1996; Nalley et al. 2018). Building upon this observation, we hypothesized that increasing temperature might exert significant effects on the species composition of algal biofilms under experimental conditions too, leading to an anticipated increase in cyanobacterial abundance along with the decline of eukaryotic photoautotrophs. To simulate the impact of elevated temperature on benthic algal communities, we conducted an outdoor mesocosm experiment, where water temperatures were manipulated based on two global warming scenarios issued by the Intergovernmental Panel on Climate Change, assuming intermediate (SSP2-4.5) and high degree of greenhouse gas emissions (SSP5-8) (Pörtner et al. 2022). The applied heating regimes corresponded to 3°C and 5°C higher average water temperatures compared to the unheated (reference) treatment. Shallow lakes are especially vulnerable to climate change because these water bodies are ‘isolated’ and fragmented in the landscape, lake temperature and water supply are strongly and rapidly affected by ambient warming, many species living in these habitats have limited abilities to range shifting, and most of the shallow lakes are already exposed to the multitude of anthropogenic stressors (Woodward et al. 2010b; Meerhoff et al. 2012).

Materials and methods

Mesocosm study design

An 8-week-long experiment was conducted in the outdoor mesocosm facility (see Fig. 1) of the Balaton Limnological Research Institute (Tihany, Hungary), between 8 July and 2 September 2021. This system comprised 12 cylindrical plastic tanks, each with a maximum volume of approximately 5 m3 and a water depth of 1.6 m.

Fig. 1
figure 1

Array of outdoor mesocosms at the Balaton Limnological Research Institute; number on each tank indicates the corresponding treatment: 1 – Unheated control; 2 – Constantly 3°C warmer compared to the control; 3 – Constantly 5°C warmer compared to the control

Two months prior to the experiment's commencement, limestone bricks (a total of 24 pieces, each with a surface area of 100 × 100 mm) were positioned in the littoral zone of Lake Balaton (Hungary) to allow for the growth of natural biofilm. Subsequently, the surfaces of these bricks were scraped into a beaker to obtain a living sample for inoculation; 50 mL of this bulk sample was then added to each tank to initiate biofilm formation. On the same day (8 July), the mesocosm tanks were filled with unfiltered water from Lake Balaton to a depth of 0.8 m resulting in a water volume of 2.5 m3. Additionally, eight limestone cubes, each measuring 10×10×10 mm were placed on the bottom of each mesocosm tank to provide 'natural' surfaces for phytobenthos colonization. One of these cubes was removed weekly from each mesocosm for the analysis of biofilm development.

Water temperatures in the heated tanks were raised by +3°C and +5°C, respectively, compared to the reference/control tanks (maintained at ambient temperature). Each treatment consisted of four replicates, resulting in a total of 12 experimental units. Water temperature was continuously monitored at 10-minute intervals using PONSEL (type: PPHRB-3931; AQUALABO, Champigny-sur-Marne, France) sensors installed in each mesocosm.

Sample preparation for imaging

After immersion into liquid agar in order to fix motile cells, the limestone substrates were placed upside-down onto a Greiner Bio-One 62861 CELLview Cell Culture Dish (Greiner AG, Austria). Five regions of interest were randomly selected on each substrate surface, one at the centre and four around it. During the confocal optical sectioning (confocal imaging) the series of images were taken between the inner (limestone surface) and outer layer of the biofilm. The actual thickness of the biofilm was determined as a distance between the two farthest layers consisting of fluorescence information in the Z sectioning.

CLSM

Benthic biofilms were imaged using a Leica SP8 confocal microscope (Leica Microsystems, Germany) equipped with a ‘HC PL APO CS’ 40× dry long working distance objective with a numerical aperture of 0.85. Images with a size of 1024 × 512 pixels were recorded, covering an area of 384 μm × 192 μm. The 375 nm pixel size was in accordance with the approximate 380 nm resolution of the imaging system considering both the applied objective and the detection wavelengths. Chlorophyll and phycobilisome (PBS) autofluorescence were excited using the 488 and 638 nm laser lines, respectively, and were detected over the 690–790 nm (with artificial red colour on the figures) and 650–680 nm (with artificial green colour on the figures) spectral windows. The sensitivity of the detectors (photomultiplier tubes, PMTs) was constant for all our measurements: PMT1 (Chl) gain: 720 V and PMT2 (PBS) gain: 750 V. Scan speed was specified as 400 Hz. A triple band 488/552/638 main beam splitter was applied for separating the reflected excitation light and the fluorescence. The 552 nm middle band of the dichroic mirror which was not used for a laser line was sufficiently far from the spectral range of the acquired fluorescence as it has not affected the imaging. During the optical sectioning (Z series of the confocal acquisition) the distance of the subsequent focal layers was 5 μm.

Image processing

Images were processed using the FIJI (Schindelin et al. 2012) (version 1.52c) open source Java-based image processing program. Due to the high number of bundled plugins, FIJI is capable of importing and processing Leica native microscope image format (LIF). For dealing with the images, we constructed a macro set (attached as a supplement) containing step-by-step tasks of the image processing. Macro element (Set Threshold method) generates a dialog window for determining the minimum intensity thresholds for separate recognition of the prokaryotic and eukaryotic microorganisms as well as to adjust the corresponding channel-intensity parameters. These parameters were determined/tested on some randomly selected images in order to have parameter values for the batch processing. At this point the user can decide whether to project the Z slices onto one layer or perform the calculation layer by layer.

Macro elements deal with one single file (testing purposes), and with all the images of a selected directory, respectively. Both macros call the makeSeparation() and the calcRatio() functions (defined in the same macro set file). The makeSeparation() function performs the Z projection if this option had been selected earlier and evaluates the channels according to the pixel intensity ratios (Strašková et al. 2019). The macro language of ImageJ allows defining complex conditions as well, not simply thresholding of intensity ratios. The output classes (and the corresponding output colours) are the following: a) low intensity / black (background, noise, insufficient fluorescence signal), b) intensive chlorophyll fluorescence without significant PBS contribution / green (eukaryotic organisms) c) both chlorophyll and PBS fluorescence signals are intensive (prokaryotic organisms / red) d) pixel ratios are not classified using the given parameters (“other” / blue). In case of optimal initialization, this “other” / blue category remains empty. Then, the calcRatio() function calculates the “ratio of pixel numbers” falling under the category b) and c) (not ratio of fluorescence intensity) and provides a prokaryotic to eukaryotic ratio on a segmented or Z-projected image.

Statistical analyses

Treatment effects were examined on number of pixels per unit image area and on green/red pixel ratio using one-way ANOVA, followed by Tukey’s post-hoc tests. The number of artificial green and red colour pixels, as well as the green/red pixel ratio followed lognormal distribution; therefore, these variables were logarithmically transformed. In order to avoid losing zero values, +1 were added to each value of the log transformed variables. Even though the dependent variables in the models neither followed a normal distribution according to Shapiro-Wilk tests, nor had homogeneous variance according to Bartlett’s tests, the high sample sizes allowed us to perform robust ANCOVA tests. Dependent variables were number of artificial green colour pixels (log), number of artificial red colour pixels (log) and green/red pixel ratio (log), while treatment (unheated; +3°C; +5°C) was the independent variable. In each model ‘Date’, ‘Chlorophyll-a concentration’ and ‘Layer thickness’ were involved as covariates. Tank number was included in each model as random factor. All statistical analyses were performed in the R environment (Core Team R 2021), by using “car”, “nlme”, and “multcomp” packages (Pinheiro and Bates 2006; Hothorn et al. 2008; Fox and Weisberg 2018).

Results

Some characteristic CLSM images (both unprocessed and processed) are shown in Fig. 2. These sample images were recorded at the beginning (15 Jul 2021), in the middle (5 Aug 2021) and at the end (2 Nov 2021) of the experiment.

Fig. 2
figure 2

Maximum intensity projection of Z-stack images from algal biofilm (a-c, g-i, m-o) captured by confocal laser scanning microscopy and the subsequently processed images (d-f, j-l, p-r) using our developed FIJI macro at the beginning (15/7/2021; 1st week), in the middle (5/8/2021; 4th week) and at the end (2/9/2021; 8th week) of the experiment. Autofluorescence of chlorophyll and phycobilisome were excited using the 488 and 638 nm lasers and were detected over 690–790 nm and 650–680 nm spectral windows. On the processed images, artificial green and red colour pixels indicate the photosynthetic prokaryotes and eukaryotes, respectively

During the experiment, the mean water temperature was 23.1±2.7°C (average±standard deviation) in the unheated (control) tanks and it varied between 17.0°C and 27.9°C (Fig. 3, red line). In the heated tanks (+3°C and +5°C constantly warmer relative to the control), water temperature varied between 20.0 and 30.5°C and between 22.0 and 32.5°C, with a mean of 26.1±2.7°C and 28.1±2.7°C, respectively (Fig. 3).

Fig. 3
figure 3

Temporal dynamics of daily mean water temperature in the control (ambient) and heated (+3°C and +5°C) treatments during the course of the experiment

On each CLSM image, prokaryotic and eukaryotic photoautotrophs were discriminated based on their distinct autofluorescent properties, using a custom developed FIJI macro (see section Image processing). On the processed images the numbers of artificial green and red colour pixels indicate the relative amount of prokaryotic and eukaryotic photoautotrophs, respectively. Plotting the results of such quantification over time provides an insight into the dynamics of a forming phototrophic biofilm (Figs. 4 and 5).

Fig. 4
figure 4

(a) Temporal pattern of the eukaryotic abundance within forming phototrophic biofilm at different temperatures. Error bars represent standard deviations. (b). Box-plot diagram of the effect of temperature treatments on the eukaryotic abundance within forming phototrophic biofilm. The boxes on panel (b) denote the IQR; whiskers represent the minimum and maximum values, if it is within 1.5 IQR from the boxes. Thick lines through the boxes represent the medians; central rhombus symbols show the means. Asterisk denotes significant difference (*P< 0.05, **P<0.01) according to one-way ANOVA test, followed by Tukey’s post-hoc test. In both panels the number of artificial red colour (eukaryotic) pixels in the processed images are log-transformed (ncontrol = 2004, ncontrol+3°C = 2061, ncontrol+5°C = 2300)

Fig. 5
figure 5

(a) Temporal pattern of the prokaryotic abundance within forming phototrophic biofilm at different temperatures. Error bars represent standard deviations (b). Box-plot diagram of the effect of temperature treatments on the prokaryotic abundance within forming phototrophic biofilm. The boxes on panel (b) denote the IQR; whiskers represent the minimum and maximum values, if it is within 1.5 IQR from the boxes. Thick lines through the boxes represent the medians; central rhombus symbols show the means. Asterisk denotes significant difference (***P<0.001) according to one-way ANOVA test, followed by Tukey’s post-hoc test. In both panels the number of artificial green colour (prokaryotic) pixels in the processed images are log-transformed (ncontrol = 2004, ncontrol+3°C = 2061, ncontrol+5°C = 2300)

Both the eukaryotic and prokaryotic abundance (number of artificial red and green colour pixels per unit image area, respectively, after image processing) changed in a wide range in all temperature treatments (Figs. 4 and 5). The amount of artificial red colour pixels was in the range of 415-55090, 1575-57935 and 147-73740 with an average of 15192±9882, 14719±11127 and 12378±13254 in the control, +3°C and +5°C treatments, respectively (Fig. 4a). Number of artificial green colour pixels changed between 1152-186101 in the control, 2087-96116 in the ‘+3°C’ treatment and 46-309419 in the ‘+5°C’ treatment, with a mean of 21025±22828, 30829±22318 and 75578±63824, respectively (Fig. 5a). Thus, the eukaryotic abundance (number of artificial red colour pixels) decreased with increasing temperatures with concomitant increase of prokaryotic density (number of artificial green colour pixels) with increasing temperatures (Figs. 4 and 5).

Temperature treatment had a significant effect on both the eukaryotic (number of artificial red colour pixels; Df= 2(9), F=4.03, p=0.05) and prokaryotic abundance (number of artificial green colour pixels; Df=2(9), F=15.28, p=0.001). Between the control and the +3°C treatment, neither the prokaryotic nor the eukaryotic abundance (number of artificial green and red colour pixels, respectively) differed significantly (all p> 0.1), whilst the +5°C treatment differed significantly from both other treatments (control – control+5°C: pred=0.003, pgreen<0.001; control+3°C – control+5°C: pred=0.046, pgreen<0.001; Figs. 4b and 5b). Sampling time (Date) also had a significant effect on both the eukaryotic (Df= 7(457), F=16.828, p<0.0001) and prokaryotic abundance (Df=7(457), F=15.908, p<0.0001). Chlorophyll-a concentration (see Supplementary Table S1.) had a significant effect on eukaryotic abundance (Df=1(457), F=30.431, p<0.0001), but not on prokaryotic abundance (Df=1(457), F=0.807, p=0.370), while layer thickness (see Supplementary Table S2.) was a significant factor in explaining the variance in prokaryotic (Df=1(457), F=13.743, p=0.0002) but not in eukaryotic (Df=1(457), F=1.204, p=0.273) abundance. Overall, the regression model explained 27% of the variation in eukaryotic abundance (R2=0.27) and 38% of the prokaryotic abundance (R2=0.38).

The relative prokaryotic to eukaryotic ratio (green-to-red pixel ratio on the processed images) also varied in a broad range from 0.108 to 9.566 in the control, from 0.135 to 22.167 in the +3°C, and from 0.230 to 102.520 in the +5°C treatments with an average of 1.619±1.351, 3.320±3.628 and 13.664±18.000, respectively (Fig. 6a).

Fig. 6
figure 6

(a) Temporal pattern of prokaryote/eukaryote ratio (log-transformed ratio of artificial green and red colour pixels on the processed images) at different temperatures. Error bars represent standard deviations. (b). Box-plot diagram of the effect of temperature treatments on prokaryote/eukaryote ratio. The boxes on panel (b) denote the interquartile range (IQR); whiskers represent the minimum and maximum values, if it is within 1.5 IQR from the boxes; data points beyond this range (outliers) are indicated by circles. Thick lines through the boxes represent the medians; central rhombus symbols show the means. Asterisk denotes significant difference (***P<0.001) according to one-way ANOVA test, followed by Tukey’s post-hoc test. In both panels the green-to-red pixel ratio (relative prokaryotic to eukaryotic ratio) in the processed images are log-transformed (ncontrol = 2004, ncontrol+3°C = 2061, ncontrol+5°C = 2300)

Temperature treatment had a significant effect on prokaryote/eukaryote ratio (Df=2(9), F=24.04, p<0.001), i.e. it increased continuously with increasing temperatures (Fig. 6b). There was a marginally significant difference between the control and +3°C treatment (p=0.053), while the +5°C treatment differed significantly from both other treatments (control – control+5°C: p<0.001, control+3°C – control+5°C: p<00.1; Fig. 6b). Sampling time (Date) (Df=7(457), F=7.513, p<0.0001), chlorophyll-a concentration (Df=1(457), F=14.609, p=0.0002) and layer thickness (Df=1(457), F=5.383, p=0.02) also had a significant effect on the prokaryote/eukaryote ratio. 41% of the variance in prokaryote/eukaryote ratio was explained by the independent variables (R2=0.41).

Discussion

Establishing the current number of CLSM image analysis tools is challenging due to ongoing development and continual release of new tools, making a comprehensive comparison difficult. Nevertheless, these specialized software tools and plugins provide a range of functionalities from basic image processing to advanced quantitative analysis. Due to their robustness and specialized features, such tools are also widely used in studying biofilms.

Mhade & Kaushik (2023) provide a comprehensive review of recently emerged image analysis programs, which can also be used in quantitative analysis of biofilms using confocal micrographs. These image analysis tools vary not only in their scope and relevance to specific biofilm features but also in their compatibility with various operating systems, user interfaces, and raw image requirements.

Our selected tool for analysing CLSM images, the FIJI (ImageJ) software family has being developed for decades. A large, active user community contributes to ongoing development, support, and comprehensive documentation, making it easy to find solutions and troubleshoot issues. It is available for free on different operating systems (Windows, Linux, MacOS), and its software packages include many practical applications. FIJI allows users to create and customize macros and plugins tailored to specific image processing needs, including those unique to algal biofilms. FIJI is compatible with a wide range of native microscope file formats, supporting the reading of metadata and scale information. It also integrates seamlessly with other software tools and workflows commonly utilized in microscopy. In summary, FIJI macros offer a highly customizable and cost-effective solution for processing CLSM images of algal biofilms (Schindelin et al. 2012).

Yet, we must consider that FIJI also has some disadvantages. In fact, it may be challenging to use FIJI without some experience in programming or in scripting languages (such as ImageJ macro language, Python, or Java), which might limit its accessibility to users. FIJI might take a long time to process large datasets, such as those from CLSM analysis of thick biofilms. This slowness can be due to the software's processing algorithms, the size of the dataset, or limitations in the computer's hardware. Handling large image files requires a significant amount of memory (RAM). FIJI may struggle with these demands, leading to problems such as running out of memory or experiencing crashes. This is especially problematic when dealing with high-resolution 3D images, as they consume a large amount of memory during processing and analysis (Schindelin et al. 2012; Hartmann et al. 2021).

Major commercial software products, like Imaris and Velocity, provide advanced visualization tools, user-friendly interfaces, robust 3D and 4D analysis, and excellent support and training resources. However, they are generally expensive, require high-performance computers, and are less customizable than FIJI for specific tasks. Some of the frequently used image analysis tools are based on Matlab (e.g., PHLIP), requiring knowledge of the Matlab environment and, as commercial software, also can entail significant licensing costs. While other Matlab-built image analysis tools aim to be user-friendly and are intended to work independently of Matlab (e.g., COMSTAT as a ported ImageJ plugin and BiofilmQ as a standalone software), their application may still require to go through a learning curve to understand their functionalities and optimal setup for specific analysis tasks (Heydorn et al. 2000; Mueller et al. 2006; Hartmann et al. 2021; Mhade and Kaushik 2023).

In contrast to the aforementioned image analysis tools, the macro we developed is freely accessible, does not require extensive programming knowledge, and is an easy-to-use tool. This custom-developed method provides semi-automated processing for CLSM images and offers high throughput capabilities. It is optimized for analysing the structure and composition of algal biofilms and is well-suited for distinguishing photosynthetic prokaryotes and eukaryotes based on their auto-fluorescence properties. The ‘FIJI macro’ is capable of processing even single images, layers of Z-stack images, or projection images.

While traditional light microscopic examination methods allow for highly accurate species composition analysis, the common practice of scraping samples from surfaces eliminates the spatial information on the biofilm structure (Greenwood et al. 1999). In contrast, scanning electron microscopy (SEM) can offer detailed information about the structure of benthic algal communities. However, due to the fixation method applied, SEM is unsuitable for real-time analysis of living samples. Additionally, SEM is typically better suited for visualizing hard-shelled algae such as diatoms and provides only snapshots from a single vertical or horizontal plane (Larson and Passy 2005). Unlike the aforementioned methods, CLSM enables non-destructive, real-time, three-dimensional visualization of algal biofilms. Due to its inherent properties, it is particularly useful for examining the structural organization of living samples (Elliott 2020). Understanding the spatial organization and patch dynamics of biofilms can reveal important ecological processes such as colonization, population dynamics, interspecific interactions, and succession. Moreover, this microscopic technique can also aid in understanding how benthic algal communities respond to environmental changes (Larson and Passy 2005).

Temperature plays a crucial role in shaping the distribution and abundance of various species by exerting significant effects on biological and biochemical processes such as metabolism (Schulte 2015). At the individual level, increasing temperature can boost photosynthetic- and respiration rates in primary producers. At the population level, since growth is an integral component of metabolism, higher temperatures can also enhance growth rates (DeNicola 1996; Schulte 2015; Zhao et al. 2023). Different species of algae exhibit varying temperature preference for their photosynthesis and growth. Diatoms, for example, have the lowest thermal optima (24.0 ± 0.4°C), followed by chlorophytes (25.7 ± 0.1°C) and cyanobacteria (30.6 ± 2.3°C) (DeNicola 1996; Nalley et al. 2018). In our experiment, the temperature conditions in the control treatment typically favoured the growth of diatoms and green algae, whereas water temperatures in the heated tanks, particularly in the +5°C treatment, promoted the growth of cyanobacteria.

At the ecosystem level, temperature can have a significant impact on biomass and primary production (Daufresne et al. 2009; Woodward et al. 2010b). Typically, periphyton biomass is expected to increase in the temperature range between 0 and 30°C, and tends to decline at higher temperatures. In the temperate climate zone, periphyton generally reaches its peak biomass in spring and late summer / early fall (DeNicola 1996; Liu et al. 2021). However, previous studies have yielded inconsistent results regarding the response of periphyton biomass to global warming. Positive, negative, and neutral effects have all been reported (Mahdy et al. 2015; Kazanjian et al. 2018; Hao et al. 2020; Liu et al. 2021; Pacheco et al. 2022). Furthermore, disparities between different methods used for biomass determination further complicate the comparability of data across studies.

At the community level, temperature can induce alterations in the species composition and community structure of phytobenthos in aquatic ecosystems. Climate change has been shown to have a decidedly negative impact on species composition, diversity, and functioning of freshwater biotic communities (Woodward et al. 2010a; 2010b). Climate change is reshaping the distribution and interactions of species across various ecosystems, directly influencing population dynamics (Pearce-Higgins et al. 2015). Lengyel et al. (2023) reported that the SSP2-4.5 global warming scenario (+3 °C increase in average temperature compared to the present state) issued by the Intergovernmental Panel on Climate Change moderately affected phytobenthos in terms of biodiversity loss, while the occurrence of SSP5-8.5 scenario (+5 °C) could lead to significant structural and functional changes. These changes include a decline in species richness and loss of functional diversity, along with an increase in the abundance of filamentous life-forms and a decrease in the abundance of Bacillariophyta. Regarding the ecological implications of our findings revealed by analysing CLSM images, we conclude that a 3°C increase in water temperature had a moderate effect on the phytobenthic community, i.e., the ratio of prokaryotes to eukaryotes (green-to-red pixel ratio) showed only marginally significant difference compared to the Control treatment (Fig. 5b). In turn, a 5°C increase in water temperature induced severe changes in the composition of algal biofilms, favouring the dominance of photosynthetic prokaryotes.

These observations are in agreement with previous studies demonstrating that warming has a selective effect on promoting cyanobacterial growth and support the notion that relatively high temperatures provide a distinct advantage to cyanobacteria in the competition with eukaryotic primary producers, such as diatoms, chlorophytes, cryptophytes, and dinoflagellates (Paerl and Paul 2012). Research by He et al. (2018) has also indicated that global warming could exacerbate the adverse effects of eutrophication by encouraging the occurrence of harmful cyanobacterial blooms, thereby impacting ecosystem functioning and services. Consequently, the prevalence of cyanobacterial blooms is expected to become more frequent in the future as global climate change continues (Jeppesen et al. 2012), and the anticipated changes in periphyton communities can trigger alterations in the whole food web through cascading interactions (Shurin et al. 2012; Kazanjian et al. 2018).

Conclusion

In the frame of this study, we developed an image processing macro to streamline the analysis of confocal images of algal biofilms. This macro is freely available in the supplements for download and image analysis. The method we devised enables straightforward examination of the structure and composition of intact algal biofilms, including the differentiation of prokaryotic and eukaryotic photosynthetic organisms based on their spectral properties. By utilizing series of images, our method is also suitable for tracking spatio-temporal changes in phytobenthos, thereby facilitating the monitoring of its responses to environmental changes such as temperature-induced variations. We concluded that a 5°C increase in mean water temperature would lead to significant alterations in the community structure of periphytic organisms in shallow lakes. In essence, if global temperatures were to change in accordance with any of the worst-case scenarios, drastic structural and functional transformations would inevitably occur in shallow lake ecosystems.