<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article"><?xmltex \bartext{Model description paper}?>
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-16-35-2023</article-id><title-group><article-title>Prediction of algal blooms via data-driven machine learning models: an
evaluation using data from a well-monitored mesotrophic lake</article-title><alt-title>Prediction of algal blooms</alt-title>
      </title-group><?xmltex \runningtitle{Prediction of algal blooms}?><?xmltex \runningauthor{S. Lin et al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1 aff3">
          <name><surname>Lin</surname><given-names>Shuqi</given-names></name>
          <email>shuqi.lin@ec.gc.ca</email>
        <ext-link>https://orcid.org/0000-0002-6494-4057</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Pierson</surname><given-names>Donald C.</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-6230-0146</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1 aff2">
          <name><surname>Mesman</surname><given-names>Jorrit P.</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Erken Laboratory and Limnology Department, Uppsala University,
Uppsala, Sweden</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Département F.-A. Forel des sciences de l'environnement et de
l'eau, Université de Genève, Geneva, Switzerland</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>Environment and Climate Change Canada, Canada Centre for Inland
Waters, Burlington, L7R 4A6 ON, Canada</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Shuqi Lin (shuqi.lin@ec.gc.ca)</corresp></author-notes><pub-date><day>3</day><month>January</month><year>2023</year></pub-date>
      
      <volume>16</volume>
      <issue>1</issue>
      <fpage>35</fpage><lpage>46</lpage>
      <history>
        <date date-type="received"><day>6</day><month>July</month><year>2022</year></date>
           <date date-type="rev-request"><day>2</day><month>August</month><year>2022</year></date>
           <date date-type="rev-recd"><day>11</day><month>October</month><year>2022</year></date>
           <date date-type="accepted"><day>28</day><month>November</month><year>2022</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2023 Shuqi Lin et al.</copyright-statement>
        <copyright-year>2023</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023.html">This article is available from https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023.pdf</self-uri>
      <abstract><title>Abstract</title>

      <p id="d1e113">With increasing lake monitoring data, data-driven machine
learning (ML) models might be able to capture the complex algal bloom
dynamics that cannot be completely described in process-based (PB) models.
We applied two ML models, the gradient boost regressor (GBR) and long short-term
memory (LSTM) network, to predict algal blooms and seasonal changes in algal
chlorophyll concentrations (Chl) in a mesotrophic lake. Three predictive
workflows were tested, one based solely on available measurements and the
others applying a two-step approach, first estimating lake nutrients that
have limited observations and then predicting Chl using observed and
pre-generated environmental factors. The third workflow was developed
using hydrodynamic data derived from a PB model as additional training
features in the two-step ML approach. The performance of the ML models was
superior to a PB model in predicting nutrients and Chl. The hybrid model
further improved the prediction of the timing and magnitude of algal blooms.
A data sparsity test based on shuffling the order of training and testing
years showed the accuracy of ML models decreased with increasing sample
interval, and model performance varied with training–testing year
combinations.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e125">Harmful algal blooms, which are a serious threat to natural water systems,
have been increasing throughout the world (Burford et al., 2020; Watson et
al., 2016), primarily as a consequence of both climate change and increased
nutrient loading from anthropogenic activities (Brookes and Carey, 2011;
Paerl and Huisman, 2008). Moreover, as indicated by Carey et al. (2012) and
Huisman et al. (2018), more intense and longer periods of thermal
stratification could potentially specifically favour blooms of toxic
Cyanobacteria. To better manage and mitigate the effects of algal blooms,
methods to forecast their timing and magnitude are needed. However, the
factors regulating algal blooms are complex, variable, and site-specific,
often involving high-order interactions of environmental factors and
biogeochemical processes (Reichwaldt and Ghadouani, 2012; Richardson et al.,
2018).</p>
      <p id="d1e128">Process-based (PB) models encode our understanding of biogeochemical
processes into a framework of numerical formulations, but these are
inevitable simplifications that lead to an incomplete description of complex
biogeochemical interactions and low level of model confidence (Elliott,
2012). Based on innovative data mining and statistical techniques,
data-driven machine learning (ML) models have been applied to identify
patterns within observed data (Peretyatko et al., 2012; Mellios et al.,
2020), and with the recent proliferation of lake monitoring data (Marcé
et al., 2016), ML models have been applied, as an alternative to PB models
for bloom prediction (Rousso et al., 2020). Previously applied ML models,
including random forest (Nelson et al., 2018), support vector machine
(Jimeno-Sáez et al., 2020), and artificial neural network models (Xiao et al.,
2017; Recknagel et al., 1998; Wei et al., 2001), can improve predictions of
the timing and seasonality of algal Chl pattern, apparently by accounting for
complexity that is difficult to encode within the framework of a PB model.
However, a downside of data-driven ML models is that they lack the
interpretability and generalization found in the explicit structure of the
PB model. In recent years, the process-guided deep learning (PGDL) model has emerged
and has been applied to water temperature (Jia et al., 2019; Read et al., 2019)
and water quality (Hanson et al., 2020) simulations, which explicitly
combine well-defined physical theories into the training of ML models,
enhancing their interpretability. While this approach has achieved promising
results, it is difficult to apply it to phytoplankton dynamics due to
numerous nonlinear interactions within the biogeochemical cycles and the
difficulty in defining a measurable processes or mass balances that can be
used as a physical constraint on knowledge-guided decisions. Also, the
sparsity of lake water quality (e.g. nutrients and Chl concentration)
observations can limit the application of ML models in algal bloom modelling
(Rousso et al., 2020).</p>
      <p id="d1e131">In this study, our objectives are to (1) apply the ML models to predict
algal bloom in a well-monitored mesotrophic lake, (2) evaluate model
performance and assess model uncertainties, and (3) explore the approaches to
improve the model performance and widen the model applications. We first
tested the ability of ML models in predicting algal Chl concentrations via
available environmental factors, including observed lake nutrient data, and
then proposed a two-step ML approach for predicting algal dynamics that
first estimates lake nutrient concentrations which often have limited
observations and secondly predicts variations in algal Chl using these
pre-generated nutrient concentrations combined with other observed
environmental factors that are collected at higher frequency. We also tested
a simple hybrid model architecture that, by adding hydrodynamic features
derived from the PB model into the training features of the two-step ML
approach, allowed us to include additional information describing physical
lake processes expected to affect variations in algal growth and succession
in the machine learning prediction.</p>
      <p id="d1e134">We applied the above workflows to predict changing Chl concentration, as a
proxy for the occurrence of algal blooms, via the gradient boost regressor (GBR)
and long short-term memory network (LSTM). Two shuffling year tests were
conducted. One assessed the uncertainty of ML models in predicting Chl during
the same 2-year period, and the other evaluated the sensitivity of ML
accuracy to various training–testing year combinations and lake nutrient
sampling intervals. Model performance and potential applications in algal
bloom forecasting are discussed.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Methods</title>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Study site</title>
      <p id="d1e152">The study site, Lake Erken, is a mesotrophic lake located in east-central
Sweden that has a surface area of 24 km<inline-formula><mml:math id="M1" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>, a maximum depth of 21 m, and
an average retention time of 7 years. The lake is dimictic, with seasonal
stratification commonly beginning in May–June and ending in
August–September. The onset of ice cover usually begins in December–February,
and the loss of ice occurs in March–April (Persson and Jones, 2008). Located
near the Baltic coast, Lake Erken is wind-exposed and susceptible to
periodic wind-induced turbulent mixing.</p>
      <p id="d1e164">Changes in algal Chl in Lake Erken have a typical seasonal pattern, with spring
and summer peaks in concentration (Pettersson et al., 2003). Spring blooms
are dominated by dinoflagellates and diatoms (Pettersson, 1985) and
initiated by overwinter species from the last autumn (Yang et al., 2016).
Cyanobacteria dominate summer peaks in Chl, given that they can optimize their
vertical position with regard to nutrients and light (Paerl, 1988; Pierson
et al., 1992).</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><?xmltex \def\figurename{Figure}?><label>Figure 1</label><caption><p id="d1e169">Map of Lake Erken. The locations of the monitoring systems are
shown.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023-f01.png"/>

        </fig>

</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Data</title>
      <p id="d1e186">Lake Erken has a long-running automated monitoring programme that provides
hourly meteorological data, water temperature profiles between 0.5 and 15 m
at 0.5 m intervals, and the flow from the inflow and outflow (Fig. 1). A
manual sampling programme collects samples during ice-free time at 5–7 d
intervals for all major nutrient concentrations (e.g. NO<inline-formula><mml:math id="M2" display="inline"><mml:msub><mml:mi/><mml:mi>x</mml:mi></mml:msub></mml:math></inline-formula>, NH<inline-formula><mml:math id="M3" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula>,
PO<inline-formula><mml:math id="M4" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula>, total P, and Si, etc.), dissolved oxygen (O<inline-formula><mml:math id="M5" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula>), and Chl
concentration. The timing of the onset and loss of ice cover are also
monitored yearly by the lab. More detailed information on the sampling
programme is in the Supplement (see Sect. S1) and Moras et al. (2019).</p>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Modelling methods</title>
<sec id="Ch1.S2.SS3.SSS1">
  <label>2.3.1</label><title>Process-based (PB) lake model</title>
      <p id="d1e240">In this study, a PB hydrodynamic lake model, GOTM (General Ocean Turbulence
Model; Burchard et al., 1999), was used to generate water temperature
profiles and other hydrodynamic metrics. GOTM also served as the foundation
of water quality simulations made with the SELMAPROTBAS model (Mesman et
al., 2022) that is coupled to GOTM through the Framework for Aquatic
Biogeochemical Models (FABM; Bruggeman and Bolding, 2014).</p>
</sec>
<sec id="Ch1.S2.SS3.SSS2">
  <label>2.3.2</label><title>Data-driven machine learning (ML) models</title>
      <p id="d1e251">Tree models have been widely applied in modelling phytoplankton dynamics in
freshwater systems (Harris and Graham, 2017; Fornarelli et al., 2013; Rousso
et al., 2020). The gradient boosting regressor (GBR) is one of these tree
models, iteratively generating an ensemble of estimator trees with each tree
improving upon the performance of the previous. Details about the GBR model
can be found in Friedman (2001). The hyperparameters in GBR are optimized
via the <italic>RandomizedSearchCV</italic> function within the Scikit-Learn library. The loss function of model is
chosen as “huber”, which is a combination of the squared error and absolute
error of regression. Since the target variable in our research Chl
concentration has peak values during algal blooms, which could be regarded as
outliers, the huber loss function is more robust and gives greater weight
to peak values than the mean squared error function.</p>
      <p id="d1e257">The long short-term memory (LSTM) network is part of a class of deep learning
architectures, called recurrent neural networks (RNNs), built for sequential
and time series modelling (Hochreiter and Schmidhuber, 1997). The core
concepts of LSTM are the cell and hidden states and its three gates (input
gate, forget gate, and output gate; see Fig. S2 in the Supplement). Essentially, the LSTM
model defines a transition relationship for a hidden representation through
a LSTM cell which combines the input features at each time step with the
inherited information from previous time steps. This architecture is
suitable for extracting information from sequential data (Rahmani et al.,
2021; Read et al., 2019). The hyperparameter settings in LSTM can be found
in the Supplement (see Sect. S2).</p>
      <p id="d1e260">Compared to the GBR model, LSTM has more complex model architectures, carrying
the “memory” from the previous time steps. In this study, the GBR and LSTM were
applied, respectively, to assess the performance of ML models with and
without memory. Both ML models are built in Python using the Scikit-Learn
(<uri>https://scikit-learn.org/stable/</uri>, last access: 19 September 2022) and TensorFlow (<uri>https://www.tensorflow.org/</uri>, last access:
19 September 2022) libraries.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><title>Design of predictive workflows and shuffling year data sparsity tests</title>
      <p id="d1e278">In this study, we tested three workflows using a dataset split for training
(years 2004–2016) and testing (years 2017–2020). In all three workflows, a
5-fold cross-validation using the training dataset was used to optimize the
hyperparameters in the ML models. Workflow 1 directly predicts Chl
concentration based on available environmental observations (Table 1). The
training and testing datasets were limited by the frequency of lake nutrient
observations, which resulted in 5–7 d gaps between data points. The time
step of LSTM was set to 1; that is, the environmental factors on the target
date and previous observation date, which may be 5–7 d ago, were used to
train the model and make predictions.</p>
      <p id="d1e281">In workflow 2 and 3, a two-step approach was applied (Table 1). Daily
measurements of physical factors were used to pre-generate daily variations
in lake nutrients via separate ML models, and the ML models were trained at
a daily time step using the measured environmental factors and pre-generated
nutrient concentrations. The time step of LSTM was then set to 7 d.</p>
      <p id="d1e284">In workflow 3, three hydrodynamic features, i.e. mixing layer depth
(<inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>), Wedderburn number (<inline-formula><mml:math id="M7" display="inline"><mml:mi mathvariant="italic">Wn</mml:mi></mml:math></inline-formula>), and the seasonal thermocline depth
(thermD), derived from the GOTM model were regarded as daily training features in
the two-step ML approach. The definitions and calculations of these features
are explained in the next section, Sect. 2.5, “Feature selection and processing for ML models”, and the Supplement (Sect. S3)</p>
      <p id="d1e305">Following the two-step approach and using workflow 3, we set up two tests.
(1) To assess the uncertainty induced by variations in the data used to
train the ML models, we shuffled the training years, randomly taking 13
years out of the 2004–2018 dataset 30 times, and tested the model predictions of
Chl during 2019–2020. And, (2) to test if the workflow could be used for other
water systems which may have less frequent lake nutrient monitoring data, we
conducted a data sparsity test that evaluated the sensitivity of models to
the lake nutrient and Chl sampling interval. For this test the lake nutrient
and Chl concentration observations in the training dataset were downsampled to a
7, 14, 21, 28, and 35 d sampling interval. Then for each
sampling interval using the 2004–2020 dataset, Chl was predicted for different
consecutive 4-year periods when the ML models were trained by the remaining
13 years of data. Data shuffling was conducted 13 times so that every 4-year
period in our dataset was tested.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e312">List of training features and target variables in each workflow.
Stars (*) indicate training features, circles (o) indicate target variables,
and squares (<inline-formula><mml:math id="M8" display="inline"><mml:mo lspace="0mm">□</mml:mo></mml:math></inline-formula>) indicate the variables are the target variables in
step 1 used to daily produce a training feature for use in step 2. The order
of nutrient model sequence is from the top to bottom based on its position
in the table (NO<inline-formula><mml:math id="M9" display="inline"><mml:msub><mml:mi/><mml:mi>x</mml:mi></mml:msub></mml:math></inline-formula> to Si).</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="7">
     <oasis:colspec colnum="1" colname="col1" align="justify" colwidth="5cm"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:colspec colnum="4" colname="col4" align="left"/>
     <oasis:colspec colnum="5" colname="col5" align="left" colsep="1"/>
     <oasis:colspec colnum="6" colname="col6" align="left"/>
     <oasis:colspec colnum="7" colname="col7" align="left"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1">Variables</oasis:entry>
         <oasis:entry colname="col2">Sample interval</oasis:entry>
         <oasis:entry colname="col3">Workflow 1</oasis:entry>
         <oasis:entry rowsep="1" namest="col4" nameend="col5" align="center" colsep="1">Workflow 2 </oasis:entry>
         <oasis:entry rowsep="1" namest="col6" nameend="col7" align="center">Workflow 3 </oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4">Step 1</oasis:entry>
         <oasis:entry colname="col5">Step 2</oasis:entry>
         <oasis:entry colname="col6">Step 1</oasis:entry>
         <oasis:entry colname="col7">Step 2</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Inflow</oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4">*</oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Meteorological data (air temperature, wind speed, short-wave radiation, precipitation, humidity, and cloud cover)</oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4">*</oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"><inline-formula><mml:math id="M10" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4">*</oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Ice duration</oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4">*</oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Days from ice-off date</oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4">*</oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"><inline-formula><mml:math id="M11" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"><inline-formula><mml:math id="M12" display="inline"><mml:mi mathvariant="italic">Wn</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">thermD</oasis:entry>
         <oasis:entry colname="col2">Daily</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6">*</oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">NO<inline-formula><mml:math id="M13" display="inline"><mml:msub><mml:mi/><mml:mi>x</mml:mi></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M14" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M15" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">O<inline-formula><mml:math id="M16" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M17" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M18" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">PO<inline-formula><mml:math id="M19" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M20" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M21" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Total P</oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M22" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M23" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">NH<inline-formula><mml:math id="M24" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M25" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M26" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Si</oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">*</oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M27" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5">*</oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M28" display="inline"><mml:mo>□</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7">*</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Chl</oasis:entry>
         <oasis:entry colname="col2">1–2 weeks</oasis:entry>
         <oasis:entry colname="col3">o</oasis:entry>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5">o</oasis:entry>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7">o</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S2.SS5">
  <label>2.5</label><title>Feature selection and processing for ML models</title>
      <p id="d1e886">The feature selection process is based on some a priori knowledge of the
underlying phenomena related to algal blooms. All workflows made use of the
daily automated monitoring data. In addition, the temperature difference
(<inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:math></inline-formula>) between surface water (averaged over the upper 3 m) and bottom
water (15 m) was also used to represent the thermal structure of the lake,
and the duration of ice cover in the previous winter and the number of days
from ice-off date were used.</p>
      <p id="d1e899">In workflow 2 and 3 nutrients are predicted sequentially, with each
pre-generated nutrient prediction included in the training data of the next
nutrient prediction (Table 1). Workflow 3 added <inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, computed using the
GOTM-simulated vertical eddy diffusivity (<inline-formula><mml:math id="M31" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) profiles; thermD, estimated
using Lake Analyzer (Read et al., 2011) based on GOTM-simulated temperature
profiles; and <inline-formula><mml:math id="M32" display="inline"><mml:mi mathvariant="italic">Wn</mml:mi></mml:math></inline-formula>, a dimensionless parameter measuring the balance between
wind stress and the pressure gradient resulting from the slope of the
interface (see Sect. S3), as additional daily training features.</p>
</sec>
<sec id="Ch1.S2.SS6">
  <label>2.6</label><title>Evaluating metrics</title>
      <p id="d1e939">Model performance was evaluated by comparing the simulated and measured
Chl concentrations and by calculating the mean absolute error (MAE), root mean
square error (RMSE), and correlation coefficient (<inline-formula><mml:math id="M33" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula>). To evaluate the
accuracy of the model in detecting the onset of an algal bloom, we
calculated a confusion matrix in workflows 2 and 3, where the observations
were linearly interpolated to daily values, and predicted daily Chl
concentration were smoothed with a 7 d rolling mean. Using these data, the
onset of a bloom was categorized as occurring when the daily change of Chl
(<inline-formula><mml:math id="M34" display="inline"><mml:mi mathvariant="normal">Δ</mml:mi></mml:math></inline-formula>Chl) exceeded a threshold, 0.35 mg m<inline-formula><mml:math id="M35" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> d<inline-formula><mml:math id="M36" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>. This works
well in Lake Erken where Chl concentrations are frequently monitored (near
weekly), and the linear interpolation can be expected to be reasonably
representative of the Chl concentrations between measured samples. Considering
the randomization in the ML models, we also add a 3 d window on the bloom
onset prediction; that is, we considered the prediction of a bloom valid if
the measured data suggested a bloom the day before or after the simulated
onset. We used the true positive rate (TPR), false positive rate (FPR), and
modified accuracy (kappa), which considers the possibility of the agreement
occurring by chance (McHugh, 2012), to identify the potential of ML models
to correctly capture the algal bloom onset (see Table S1). A model with
100 % TPR, 0 % FPR, and 100 % kappa would constitute a perfect fit.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Results</title>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Workflow 1: direct prediction based on observations</title>
      <p id="d1e1000">In workflow 1, both the GBR and LSTM clearly reproduced spring and summer blooms
(Fig. 2a) but underestimated the intensity of blooms (Fig. 2a, b). Neither
ML model captured the extraordinarily high Chl (<inline-formula><mml:math id="M37" display="inline"><mml:mo lspace="0mm">∼</mml:mo></mml:math></inline-formula> 15–30 mg m<inline-formula><mml:math id="M38" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>) in the summer of 2019. Although the abnormal summer bloom in 2019
could contribute to the higher RMSE and MAE in the testing dataset than the mean
values in the training dataset, the cross-validation on the training dataset
(see Table S2) shows what appears possibly to be an overfitting issue in
both models. The achieved accuracy of models is attributed to the daily
availability of physical inputs and the fact that in Lake Erken water
samples are collected frequently at 5–7 d intervals. Workflow 1 may be
most valuable in reconstructing previous variations in algal Chl, filling the
gaps between measured Chl observations and feature importance ranking (see Fig. S4). But when using this workflow, future forecasts will be limited by
the absence of future nutrient data.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2" specific-use="star"><?xmltex \currentcnt{2}?><?xmltex \def\figurename{Figure}?><label>Figure 2</label><caption><p id="d1e1024">Time series of observed and predicted Chl from GBR and LSTM models in
<bold>(a)</bold> workflow 1 and <bold>(c)</bold> workflow 3, and the corresponding scatter plots of
observations vs ML predictions of Chl in workflow 1 and workflow 3 are shown in
panels <bold>(b)</bold> and <bold>(d)</bold>, with the black and blue dots and lines representing the
predictions from GBR and LSTM, respectively. Panel <bold>(e)</bold> shows the observed
and predicted algal bloom onsets in 2017–2020 using the same colour coding as
the previous panels. Results from the PB model simulation in Mesman et al. (2022) are also shown in <bold>(c)</bold> and <bold>(e)</bold>.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023-f02.png"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Workflow 2: two-step ML models based on pre-generated daily nutrients and observed physical factors</title>
      <p id="d1e1063">As in workflow 1, both ML models in workflow 2 had poor fit in the summer of
2019 and suffered from overfitting leading to higher MAE and RMSE and lower <inline-formula><mml:math id="M39" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> in
testing datasets than training datasets (see Table S2).</p>
      <p id="d1e1077">Overall, both the GBR and LSTM showed slightly higher MAE (4.22 mg m<inline-formula><mml:math id="M40" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> vs.
3.87 mg m<inline-formula><mml:math id="M41" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>) and RMSE (6.27 mg m<inline-formula><mml:math id="M42" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> vs. 6.00 mg m<inline-formula><mml:math id="M43" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>) when
compared to workflow 1 (Table 2). But they also showed improved performance
in terms of capturing the peak values of Chl during spring blooms (Figs. 2, S5). Both workflows outperformed the SELMAPROTBAS PB model in simulating
concentrations of lake nutrients (see Fig. S6). The ML models were more
accurate in predicting the low values of NO<inline-formula><mml:math id="M44" display="inline"><mml:msub><mml:mi/><mml:mi>x</mml:mi></mml:msub></mml:math></inline-formula> and peak values of
PO<inline-formula><mml:math id="M45" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula> and total P. However, both ML models and the PB model failed in
predicting the extremely high values of measured lake nutrients, such as the
autumn peak of NH<inline-formula><mml:math id="M46" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:math></inline-formula> in 2017 (Fig. S6e) and the spring peak of O<inline-formula><mml:math id="M47" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> in 2018 (Fig. S6c), Thus, higher workflow 2 MAE and RMSE (Table 2) are presumably
due to the inaccuracies in the pre-generated nutrient training data, but the
improved daily predictions that better capture the bloom events overshadow
these flaws.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T2" specific-use="star"><?xmltex \currentcnt{2}?><label>Table 2</label><caption><p id="d1e1168">Comparisons of model performance during the testing period based on
RMSE, MAE, and <inline-formula><mml:math id="M48" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula>. The unit of Chl is milligrams per cubic metre (mg m<inline-formula><mml:math id="M49" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>). In bold are the best fits of each
statistical metric. For comparison of training and testing periods, see
Table S2.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="8">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right" colsep="1"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="right" colsep="1"/>
     <oasis:colspec colnum="7" colname="col7" align="right"/>
     <oasis:colspec colnum="8" colname="col8" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1">Model</oasis:entry>
         <oasis:entry colname="col2">PB</oasis:entry>
         <oasis:entry rowsep="1" namest="col3" nameend="col4" align="center" colsep="1">ML-workflow 1 </oasis:entry>
         <oasis:entry rowsep="1" namest="col5" nameend="col6" align="center" colsep="1">ML-workflow 2 </oasis:entry>
         <oasis:entry rowsep="1" namest="col7" nameend="col8" align="center">ML-workflow 3 </oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">GBR</oasis:entry>
         <oasis:entry colname="col4">LSTM</oasis:entry>
         <oasis:entry colname="col5">GBR</oasis:entry>
         <oasis:entry colname="col6">LSTM</oasis:entry>
         <oasis:entry colname="col7">GBR</oasis:entry>
         <oasis:entry colname="col8">LSTM</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">RMSE</oasis:entry>
         <oasis:entry colname="col2">7.18</oasis:entry>
         <oasis:entry colname="col3">5.77</oasis:entry>
         <oasis:entry colname="col4"><bold>5.64</bold></oasis:entry>
         <oasis:entry colname="col5">6.27</oasis:entry>
         <oasis:entry colname="col6">6.00</oasis:entry>
         <oasis:entry colname="col7">5.94</oasis:entry>
         <oasis:entry colname="col8">5.81</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MAE</oasis:entry>
         <oasis:entry colname="col2">4.77</oasis:entry>
         <oasis:entry colname="col3"><bold>3.55</bold></oasis:entry>
         <oasis:entry colname="col4">3.58</oasis:entry>
         <oasis:entry colname="col5">4.22</oasis:entry>
         <oasis:entry colname="col6">3.87</oasis:entry>
         <oasis:entry colname="col7">3.99</oasis:entry>
         <oasis:entry colname="col8">3.71</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.25</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">0.13</oasis:entry>
         <oasis:entry colname="col4"><bold>0.20</bold></oasis:entry>
         <oasis:entry colname="col5">0.05</oasis:entry>
         <oasis:entry colname="col6">0.13</oasis:entry>
         <oasis:entry colname="col7">0.14</oasis:entry>
         <oasis:entry colname="col8">0.18</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>Workflow 3: based on workflow 2 and including hydrodynamic training features derived from the GOTM model</title>
      <p id="d1e1378">Including hydrodynamic training information in workflow 3 did not
significantly improve lake nutrient predictions compared to workflow 2
(see Fig. S6), and when using workflow 3 both ML models showed comparable
performance in Chl predictions compared to workflow 1. However, the predictions
of the spring bloom in all years improved compared to workflows 1 and 2, in
terms of the magnitude and timing of the spring bloom (Fig. 2e). This was
the case in 2019–2020 (Fig. 2a), which was an abnormally warm winter with
only 5 d ice cover and had an unusually early spring algal bloom. Both
the GBR and LSTM in workflows 2 and 3 did not capture the extremely intensive
bloom (with peak values close to 30 mg m<inline-formula><mml:math id="M52" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>) in summer of 2019, and
neither did the PB model.</p>
      <p id="d1e1393">Furthermore, adding hydrodynamic features derived from the PB model improved
predictions of the onset of algal blooms (Figs. 2e and 4), with the overall TPR
increasing by 15 % and 5 % and FPR increasing around 5 % and 3 % in
the GBR and LSTM models, respectively. Compared with the PB model, which showed
lower TPR (15 %) and FPR (6 %), ML models are more likely to predict
algal bloom at the correct time. The optimal TPR was from LSTM in workflow
3, which could detect the onset of algal blooms with TPR closed to 50 %.
However, the concomitant higher FPRs indicating an incorrect warning of
algal bloom is also more likely to occur in the ML models, since the PB
model is more like to miss the bloom entirely. The kappa values of both ML
models and the PB model are close to 80 %, showing that all models
simulated the entire period (blooms and the periods between blooms) to a
moderate–strong level (McHugh, 2012).</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3"><?xmltex \currentcnt{3}?><?xmltex \def\figurename{Figure}?><label>Figure 3</label><caption><p id="d1e1398">TPR, FPR, and kappa of GBR and LSTM models in workflow 2, 3, and the PB
model.</p></caption>
          <?xmltex \igopts{width=213.395669pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023-f03.png"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS4">
  <label>3.4</label><title>Effects of shuffling training years on 2019–2020 predictions</title>
      <p id="d1e1415">The results presented so far are based on a typical strategy of training ML
models for a historical period, in this case 2004–2016, and then accessing
model performance in a second period between 2017–2020. The accuracies of
the model predictions were to some extent related to the range and
variability in the training data. To evaluate the importance of this, we
randomly removed 2 years from a 2004–2018 training dataset and made 30
different predictions of Chl during 2019–2020 when the models had difficulties
predicting spring and summer blooms (Fig. 5). When trained with the various
shuffled combinations, both ML models were capable of reproducing the
seasonal variations in algal Chl with a 4.5 % and 5.8 % coefficient of
variation (CV) in MAE and a 24.0 % and 16.4 % CV in TPR of GBR and LSTM,
respectively (see Table S3 in the Supplement). This provides an indication of the
uncertainty that may arise as a consequence of differences in the training
datasets used for in our workflows. And, it also shows that even a
relatively long training period of 13 years can not totally capture the
system behaviour in such a way as to lead to nearly similar bloom
predictions.</p>
      <p id="d1e1418">Although none of the model runs captured the intensive summer bloom in 2019,
the spring bloom in both years was well represented, especially by LSTM, in
terms of timing and magnitude.</p>

      <?xmltex \floatpos{p}?><fig id="Ch1.F4" specific-use="star"><?xmltex \currentcnt{4}?><?xmltex \def\figurename{Figure}?><label>Figure 4</label><caption><p id="d1e1423"><bold>(a)</bold> Time series of observed (red stars) and predicted Chl from GBR
(black) and LSTM (blue) models in the shuffling training year test. The
shades represent the range between minimum and maximum prediction, and the
solid lines represent the median prediction. Panel <bold>(b)</bold> shows the box plot of TPR,
FPR, and kappa, and panel <bold>(c)</bold> shows the box plot of MAE and RMSE of both models in the
shuffling training year test.</p></caption>
          <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023-f04.png"/>

        </fig>

      <?xmltex \floatpos{p}?><fig id="Ch1.F5" specific-use="star"><?xmltex \currentcnt{5}?><?xmltex \def\figurename{Figure}?><label>Figure 5</label><caption><p id="d1e1443">Comparisons of <bold>(a)</bold> MAE, <bold>(b)</bold> RMSE, and <bold>(c)</bold> TPR between GBR and LSTM during
the testing period created under various sample intervals. Circles along the
box show the result from the testing period of all shuffled training–testing
year combinations, and the bigger circles represent 2004–2016 training and
2017–2020 testing year combination, as used in Fig. 2.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/16/35/2023/gmd-16-35-2023-f05.png"/>

        </fig>

      <p id="d1e1461">Despite comparable RMSE and MAE in LSTM and the GBR (Fig. 4c), both higher TPRs (with
median of 60 %) and FPRs (with median of 18 %) in LSTM indicate that the
LSTM model was more aggressive in making algal bloom predictions. The GBR model's
apparent advantage in FPRs (with median 10 %) is largely the result of it
making a lower number of bloom predictions since the low concentrations
between spring and summer blooms in 2020 were not well represented (Fig. 4b).</p>
</sec>
<sec id="Ch1.S3.SS5">
  <label>3.5</label><title>Shuffling year data sparsity test</title>
      <p id="d1e1473">To examine the possible use of workflow 3 when data are less frequently
available, lake nutrient and Chl data were downsampled so that the effects of
sampling frequency on model predictions could be evaluated. Each
downsampled dataset was also rearranged into 13 different 13-year training
periods and 4-year testing periods. The variability in predictions provided
a measure of model performance and uncertainty. Figure 5 shows the uncertainty
in model predictions as a consequence of the chosen sampling intervals.</p>
      <p id="d1e1476">The MAEs and RMSEs of both GBR and LSTM models tended to increase with the longer
sample intervals. The median MAE was always slightly higher for the LSTM model,
except when trained with the original dataset (Fig. 5a). While our initial
evaluation of TPR using 2017–2020 as the testing period and 2004–2016 as the
training period suggested the LSTM model was more accurate in turns of
detection of algal bloom onsets (Fig. 3), Fig. 5c showed the median TPR of
GBR model calculated by the shuffling year test was over 50 %, higher than
that found when using the original testing and training periods. This can be
explained by the fact that the 2017–2020 testing period as in Fig. 3 and
shown as large points in Fig. 5 was unusually difficult for the GBR to simulate.
Consequently, even though the GBR model usually performs better in the
shuffled data test in Fig. 5, Fig. 3, which show the results of the 2017–2020
testing period, presented the opposite result. This illustrates the
importance of the sequence of training and testing years for evaluating
model performance.</p>
      <p id="d1e1479">For the first three sampling intervals the GBR model clearly had better TPR
values than the LSTM model. The median TPRs of GBR model started to drop
below 30 % once the sample interval reached 21 d. For LSTM, medium TPRs
remained lower than 30 %, for all sampling intervals, but also showed a
much wider range of variability (Table S4) dependent on the training and
tested datasets used. In general, both models preformed best at the original
and 7 d sampling interval but then showed slightly worse performance that
was consistent up to a sample interval of 21 d. In terms of the errors
evaluated over the entire 4-year testing period (Fig. 5a, b) the GBR model
had lower errors and, therefore, better predicted the seasonal variations of
Chl concentration. The time series comparison of observed and predicted Chl from
this shuffling year data sparsity test can be found in the Supplement (Figs. S7–S9).</p>
</sec>
</sec>
<sec id="Ch1.S4" sec-type="conclusions">
  <label>4</label><title>Discussion</title>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Performance of ML models</title>
      <p id="d1e1498">In three workflows, the ML models successfully reproduced the Chl seasonal
patterns, capturing the spring and summer bloom events, with lower averaged
RMSEs and MAEs than a PB model simulation that was previously calibrated for Lake
Erken. And in all three workflows, LSTM model always showed slightly lower
RMSE and MAE and higher R2 in predicting Chl concentrations than the GBR model and higher TPR
in detecting the onset of algal bloom events. Workflow 1, which predicted
Chl based on all available environmental factors including lake nutrient
observations, showed that both ML models can reproduce the seasonal dynamics
of algal Chl with promising accuracy (MAE <inline-formula><mml:math id="M53" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 3.55 and 3.58 mg m<inline-formula><mml:math id="M54" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>, RMSE <inline-formula><mml:math id="M55" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 5.77
and 5.64 mg m<inline-formula><mml:math id="M56" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>, and <inline-formula><mml:math id="M57" display="inline"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M58" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 0.13 and 0.20, for GBR and LSTM,
respectively) via the direct input of available environmental observations.
These ML models can be applied to reconstruct past patterns of algal Chl, fill
the gaps between measured Chl observations, and interpret the mechanisms that
drive phytoplankton dynamics. Workflows 2 and 3 adopted a two-step approach,
first using separate ML models to estimating daily changes in lake nutrient
concentration and in Workflow 3 also including PB model derived physical
factors as training features of the algal ML model. These two workflows
allowed for daily predictions of changes in algal Chl concentration using both
observations and pre-generated lake nutrient concentrations at a consistent
daily time step, and at only a minor decrease in performance compared to
workflow 1, workflow 2 and 3 demonstrated a wider potential range of
applications (e.g. interpolation, reconstruct historical data, and algal bloom
forecast) via making daily forecasts with less-than-daily measured nutrient
observations.</p>
      <p id="d1e1558">The one clear failure of both the ML- and PB-based model predictions was
that during July–August 2019, Chl concentrations in integrated samples collected
between the surface and 6–12 m exceeded 20 mg m<inline-formula><mml:math id="M59" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> over a 5-week period.
Neither the PB model nor ML models captured this unusually persistent bloom
(Figs. 2, S3). At this time the phytoplankton were dominated by the
Cyanobacteria <italic>Gloeotrichia</italic> and <italic>Anabaena</italic>, that form a resting akinete life
stage at the end of their yearly bloom, which can initiate the following
year's bloom as they are transformed to vegetative cells that migrate from
the sediment to the upper water column. We hypothesize that the large summer
bloom in 2019 was the result of unusually large recruitment of akinetes in
this year (Karlsson-Elfgren et al., 2005, 2004).
The life cycle of Cyanobacteria is not a process included in the PB model
(but see Hense and Beckmann, 2006, and Jöhnk et al., 2011), so
increased recruitment of akinetes could explain the underestimation of the
2019 summer bloom. Even the LSTM algorithms could not account for previous
conditions so far back in time as to affect the formation and deposition of
Cyanobacteria akinetes (this may require the memory of the last ice-free
season). The consequent poor fit of summer bloom in 2019 partially led to
the higher MAE and RMSE in the testing dataset compared to the training dataset in
all three workflows, in both GBR and LSTM models.</p>
      <p id="d1e1579">Warm winters can initiate a chain of events, i.e. shortening the ice cover
duration, extending spring circulation, affecting nutrient availability, and
causing an earlier spring bloom (Adrian et al., 2006; Yang et al., 2016). According
to the ice record in Lake Erken (see Fig. S1), in 2020, the lake was
covered by very thin ice for only 5 d, which is the shortest duration
since observations were first recorded in 1954. The spring bloom in 2020 did
occur earlier than other years (see Fig. S3), and both ML models which
considered the timing of lake ice show fairly good performance in predicting
the timing and magnitude of this abnormally early spring bloom (Figs. 2, 5)</p>
<sec id="Ch1.S4.SS1.SSS1">
  <label>4.1.1</label><title>Performance of hybrid PB ML models</title>
      <p id="d1e1589">One-dimensional PB hydrodynamic models can accurately simulate both water
temperature profiles and other hydrodynamic features in Lake Erken using
the same forcing data that are commonly input to ML models. The hybrid model
structure tested here provides a richer set of input data, leading to more
accurate ML predictions of algal Chl at little additional computational cost or
data requirements. Using data from the hydrothermal PB model allowed for the
seasonal deepening of the thermocline and variations in the surface mixing
layer depth and upwelling events, represented by <inline-formula><mml:math id="M60" display="inline"><mml:mi mathvariant="italic">Wn</mml:mi></mml:math></inline-formula>, to be encoded into
the ML algorithms. These factors can affect the underwater light climate,
the internal loading of phosphorus, and the transport of resting
Cyanobacteria colonies from the hypolimnion into the epilimnion, favouring
summer blooms of Cyanobacteria (Pierson et al., 1992; Pettersson, 1998). The
inclusion of these factors did increase the accuracy of the ML models,
especially in the case of unusual environmental conditions (e.g. spring of
2020, Figs. 2, 5) that did not frequently occur in the remaining
meteorological, hydrological, and biogeochemical training data.</p>
</sec>
<sec id="Ch1.S4.SS1.SSS2">
  <label>4.1.2</label><title>Prediction of bloom timing</title>
      <p id="d1e1608">For the purposes of water management, it may be most important to first
predict the potential occurrence of a bloom and then once underway improve
predictions of its magnitude. The best model performance in predicting the
timing of algal blooms was obtained after adding hydrodynamic features
derived from a PB model in workflow 3, with TPR above 45 % in detecting
the onset of algal bloom during 2017–2020 and a modified accuracy (kappa)
around 80 %, indicating a moderate–strong level of prediction.</p>
      <p id="d1e1611">Based on our shuffling year tests of bloom timing, the GBR model showed
relatively higher median TPRs than the LSTM model for sample intervals less than
1 month. However, in some training and testing year combinations, TPRs are
close to 0 % (Fig. 5), and CVs of the TPRs are highly variable, even at
the original sample interval, being over 30 % for GBR and over 60 % for
LSTM, indicating that the correct detection of algal blooms in both models
is highly dependent on the years used to train the models. Thus, while the
ML models can be better than the PB models at predicting the onset of algal
blooms, they still may not be good enough for operational forecasting. The
resulting variability provided a more accurate estimate of the model
performance at each downsampled data interval and showed that increasing
sample interval led to reduced performance for both ML models, in terms of
MAE, RMSE, and the CV of TPR. These tests also highlighted that the performance of
both ML models, especially LSTM, varied with the sampled history of events
in the training period for evaluating a specific pattern of change in the
testing period. We suggest that testing strategies similar to the shuffle
methods used in this study are needed to accurately evaluate the expected
accuracy of ML models when applied to any given site. The estimated
uncertainty in shuffling training year tests (Fig. 4) and shuffling
training–testing year tests (Fig. 5) can be used to better represent the
uncertainty of ML derived forecasts.</p>
</sec>
</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Future applications in short-term forecasts and water management</title>
      <p id="d1e1623">To reach the goal of incorporating ML models into operational forecasts
either for short-term management support or longer-term evaluation and
planning, two steps must occur. First the ML model must be developed,
trained, and evaluated on the water body of interest due to the unique
physical characteristics and water quality dynamics in different systems.
Secondly, future forcing data for the model must be obtained and integrated
into a workflow that makes the future predications. In regards to the second
point, a lack of frequent water monitoring (Stanley et al., 2019) is a major
deterrence to applying ML models to many lakes. The data sparsity test (Fig. 5) showed that, at least for Lake Erken, the ML models can still detect the
seasonal algal dynamics even for sample intervals approaching 1 month
(Figs. S7–S9). If this result holds for other lakes, the use of the two-step
ML workflow could offer a method of forecasting seasonal variations in algal
Chl, even in lakes with relatively infrequent nutrient monitoring but higher
frequency meteorological and hydrological data.</p>
      <p id="d1e1626">The hybrid PB/ML models have the potential to provide reasonably accurate
and timely short-term algal bloom forecasts, working as part of an
early-warning system for the water resource management (Baracchini et al.,
2020), and clearly have the ability to predict border seasonal variations in
algal Chl concentration. However, since a large number of water temperature and
water quality samples are required for ML training, and since our results only apply to one well-studied lake, obtaining more datasets to test and
evaluate the workflows developed here is necessary. Monitoring networks (e.g.
Global Lake Ecological Observatory Network, GLEON; <uri>https://gleon.org/</uri>, last access: 19 September 2022), could provide the data to allow more extensive
testing and application of hybrid PB/ML models, and we are presently working
in the GLEON network to test the methods developed in this paper on many
other lakes.</p>
</sec>
</sec>

      
      </body>
    <back><notes notes-type="codeavailability"><title>Code availability</title>

      <p id="d1e1638">Model version 1.0 has been archived in Zenodo under <ext-link xlink:href="https://doi.org/10.5281/zenodo.7149563" ext-link-type="DOI">10.5281/zenodo.7149563</ext-link> (Lin, 2022) and is available at <uri>https://github.com/Shuqi-Lin/Erken_Algal_Bloom_Machine_Learning_Model.git</uri> (last access: 21 December 2022​​​​​​​).</p>
  </notes><notes notes-type="dataavailability"><title>Data availability</title>

      <p id="d1e1650">All data from this study have been archived with the code
in Zenodo under <ext-link xlink:href="https://doi.org/10.5281/zenodo.7149563" ext-link-type="DOI">10.5281/zenodo.7149563</ext-link> (Lin, 2022) in the
“training data” folder. Here we also provide the model forcing data in the
format used in the machine learning models. Data collected by the Erken
laboratory in the archived format used by the Swedish Infrastructure for
Ecosystem Science (SITES) are available from the SITES data archive at
<uri>https://hdl.handle.net/11676.1/qZYc4CMTOyxgvjv_gTAW08SO</uri> (Erken Laboratory, 2022).</p>
  </notes><app-group>
        <supplementary-material position="anchor"><p id="d1e1659">The supplement related to this article is available online at: <inline-supplementary-material xlink:href="https://doi.org/10.5194/gmd-16-35-2023-supplement" xlink:title="pdf">https://doi.org/10.5194/gmd-16-35-2023-supplement</inline-supplementary-material>.</p></supplementary-material>
        </app-group><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d1e1668">The concept of ML model workflow was designed by SL and DCP. SL developed the
ML model code and performed the simulations. JPM conducted the PB model
simulations. SL wrote the manuscript with contributions from DCP and JPM.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e1674">The contact author has declared that none of the authors has any competing interests.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d1e1680">Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e1686">Shuqi Lin and this study are funded by the EU and FORMAS project 2018-02771, in
the frame of the collaborative international Consortium BLOOWATER
(<uri>https://www.bloowater.eu/</uri>, last access: 19 Semptember 2022), financed under the ERA-NET
WaterWorks2017 Cofounded Call. This ERA-NET is an integral part of the 2018
Joint Activities developed by the Water Challenges for a Changing World
Joint Program Initiative (Water JPI). Jorrit P. Mesman was funded by the European
Union's Horizon 2020 Research and Innovation Programme under grant
agreement nos. 722518 (MANTEL ITN) and 101017861 (SMARTLAGOON). This study
has been made possible by the Swedish Infrastructure for Ecosystem Science
(SITES), in this case by data from the Erken Laboratory of Uppsala
University. SITES receives funding through the Swedish Research Council
under grant no. 2017-00635.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e1694">This research has been supported by the Svenska Forskningsrådet Formas (grant no. 2018-02771).</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e1700">This paper was edited by Le Yu and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bib1"><label>1</label><?label 1?><mixed-citation>Adrian, R., Wilhelm, S., and Gerten, D.: Life-history traits of lake
plankton species may govern their phenological response to climate warming,
Glob. Change Biol., 12, 652–661, <ext-link xlink:href="https://doi.org/10.1111/j.1365-2486.2006.01125.x" ext-link-type="DOI">10.1111/j.1365-2486.2006.01125.x</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib2"><label>2</label><?label 1?><mixed-citation>Baracchini, T., Wüest, A., and Bouffard, D.: Meteolakes: An operational
online three-dimensional forecasting platform for lake hydrodynamics, Water
Res., 172, 115529, <ext-link xlink:href="https://doi.org/10.1016/j.watres.2020.115529" ext-link-type="DOI">10.1016/j.watres.2020.115529</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib3"><label>3</label><?label 1?><mixed-citation>Brookes, J. D. and Carey, C. C.: Resilience to Blooms, Science, 334, 46–47,
<ext-link xlink:href="https://doi.org/10.1126/science.1207349" ext-link-type="DOI">10.1126/science.1207349</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bib4"><label>4</label><?label 1?><mixed-citation>Bruggeman, J. and Bolding, K.: A general framework for aquatic
biogeochemical models, Environ. Modell. Softw., 61, 249–265,
<ext-link xlink:href="https://doi.org/10.1016/j.envsoft.2014.04.002" ext-link-type="DOI">10.1016/j.envsoft.2014.04.002</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib5"><label>5</label><?label 1?><mixed-citation>Burchard, H., Bolding, K., and Villarreal, M. R.: GOTM, a General Ocean
Turbulence Model: Theory, Implementation and Test Cases, European
Commission, Joint Research Centre, Space Applications Institute, 103,
<uri>https://books.google.be/books/about/GOTM_a_General_Ocean_Turbulence_Model.html?id=zsJUHAAACAAJ&amp;redir_esc=y</uri> (last access: 19 September 2022​​​​​​​), 1999.</mixed-citation></ref>
      <ref id="bib1.bib6"><label>6</label><?label 1?><mixed-citation>Burford, M. A., Carey, C. C., Hamilton, D. P., Huisman, J., Paerl, H. W.,
Wood, S. A., and Wulff, A.: Perspective: Advancing the research agenda for
improving understanding of cyanobacteria in a future of global change,
Harmful Algae, 91, 101601, <ext-link xlink:href="https://doi.org/10.1016/j.hal.2019.04.004" ext-link-type="DOI">10.1016/j.hal.2019.04.004</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib7"><label>7</label><?label 1?><mixed-citation>Carey, C. C., Ibelings, B. W., Hoffmann, E. P., Hamilton, D. P., and
Brookes, J. D.: Eco-physiological adaptations that favour freshwater
cyanobacteria in a changing climate, Water Res., 46, 1394–1407,
<ext-link xlink:href="https://doi.org/10.1016/j.watres.2011.12.016" ext-link-type="DOI">10.1016/j.watres.2011.12.016</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib8"><label>8</label><?label 1?><mixed-citation>Elliott, J. A.: Is the future blue-green? A review of the current model
predictions of how climate change could affect pelagic freshwater
cyanobacteria, Water Res., 46, 1364–1371, <ext-link xlink:href="https://doi.org/10.1016/j.watres.2011.12.018" ext-link-type="DOI">10.1016/j.watres.2011.12.018</ext-link>,
2012.</mixed-citation></ref>
      <ref id="bib1.bib9"><label>9</label><?label 1?><mixed-citation>Erken Laboratory: Meteorological data from Erken, Malma island, 1988-10-12–2021-12-31, Swedish Infrastructure for Ecosystem Science (SITES) [data set], <uri>https://hdl.handle.net/11676.1/qZYc4CMTOyxgvjv_gTAW08SO</uri>, last access: 19 September 2022.</mixed-citation></ref>
      <ref id="bib1.bib10"><label>10</label><?label 1?><mixed-citation>Fornarelli, R., Galelli, S., Castelletti, A., Antenucci, J. P., and Marti, C. L.: An empirical modeling approach to predict and understand phytoplankton dynamics in a reservoir affected by interbasin water transfers, Water Resour. Res., 49, 3626–3641, <ext-link xlink:href="https://doi.org/10.1002/wrcr.20268" ext-link-type="DOI">10.1002/wrcr.20268</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib11"><label>11</label><?label 1?><mixed-citation>Friedman, J. H.: Greedy Function Approximation: A Gradient Boosting Machine,
Ann. Stat., 29, 1189–1232, 2001.</mixed-citation></ref>
      <ref id="bib1.bib12"><label>12</label><?label 1?><mixed-citation>Hanson, P. C., Stillman, A. B., Jia, X., Karpatne, A., Dugan, H. A., Carey,
C. C., Stachelek, J., Ward, N. K., Zhang, Y., Read, J. S., and Kumar, V.:
Predicting lake surface water phosphorus dynamics using process-guided
machine learning, Ecol. Model., 430, 109136,
<ext-link xlink:href="https://doi.org/10.1016/j.ecolmodel.2020.109136" ext-link-type="DOI">10.1016/j.ecolmodel.2020.109136</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib13"><label>13</label><?label 1?><mixed-citation>Harris, T. D.,and Graham, J. L.: Predicting cyanobacterial abundance, microcystin, and geosmin in a eutrophic drinking-water reservoir using a 14-year dataset, Lake Reserv. Manage., 33, 32–48, <ext-link xlink:href="https://doi.org/10.1080/10402381.2016.1263694" ext-link-type="DOI">10.1080/10402381.2016.1263694</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib14"><label>14</label><?label 1?><mixed-citation>Hense, I. and Beckmann, A.: Towards a model of cyanobacteria life
cycle – effects of growing and resting stages on bloom formation of
N<inline-formula><mml:math id="M61" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula>-fixing species, Ecol. Model., 195, 205–218,
<ext-link xlink:href="https://doi.org/10.1016/j.ecolmodel.2005.11.018" ext-link-type="DOI">10.1016/j.ecolmodel.2005.11.018</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib15"><label>15</label><?label 1?><mixed-citation>Hochreiter, S. and Schmidhuber, J.: Long Short-Term Memory, Neural
Comput., 9, 1735–1780, <ext-link xlink:href="https://doi.org/10.1162/neco.1997.9.8.1735" ext-link-type="DOI">10.1162/neco.1997.9.8.1735</ext-link>, 1997.</mixed-citation></ref>
      <ref id="bib1.bib16"><label>16</label><?label 1?><mixed-citation>Huisman, J., Codd, G. A., Paerl, H. W., Ibelings, B. W., Verspagen, J. M.
H., and Visser, P. M.: Cyanobacterial blooms, Nat. Rev. Microbiol.,
16, 471–483, <ext-link xlink:href="https://doi.org/10.1038/s41579-018-0040-1" ext-link-type="DOI">10.1038/s41579-018-0040-1</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib17"><label>17</label><?label 1?><mixed-citation>Jia, X., Willard, J., Karpatne, A., Read, J., Zwart, J., Steinbach, M., and
Kumar, V.: Physics Guided RNNs for Modeling Dynamical Systems: A Case Study
in Simulating Lake Temperature Profiles, in: Proceedings of the 2019 SIAM
558–566, <ext-link xlink:href="https://doi.org/10.1137/1.9781611975673.63" ext-link-type="DOI">10.1137/1.9781611975673.63</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib18"><label>18</label><?label 1?><mixed-citation>Jimeno-Sáez, P., Senent-Aparicio, J., Cecilia, J. M., and
Pérez-Sánchez, J.: Using Machine-Learning Algorithms for
Eutrophication Modeling: Case Study of Mar Menor Lagoon (Spain),
Int. J. Env. Res. Pub. He., 17, 1189, <ext-link xlink:href="https://doi.org/10.3390/ijerph17041189" ext-link-type="DOI">10.3390/ijerph17041189</ext-link>,
2020.</mixed-citation></ref>
      <ref id="bib1.bib19"><label>19</label><?label 1?><mixed-citation>Jöhnk, K. D., Brüggemann, R., Rücker, J., Luther, B., Simon, U.,
Nixdorf, B., and Wiedner, C.: Modelling life cycle and population dynamics
of Nostocales (cyanobacteria), Environ. Modell. Softw., 26,
669–677, <ext-link xlink:href="https://doi.org/10.1016/j.envsoft.2010.11.001" ext-link-type="DOI">10.1016/j.envsoft.2010.11.001</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bib20"><label>20</label><?label 1?><mixed-citation>Karlsson-Elfgren, I., Rengefors, K., and Gustafsson, S.: Factors regulating
recruitment from the sediment to the water column in the bloom-forming
cyanobacterium <italic>Gloeotrichia echinulata</italic>, Freshwater Biol., 49, 265–273, <ext-link xlink:href="https://doi.org/10.1111/j.1365-2427.2004.01182.x" ext-link-type="DOI">10.1111/j.1365-2427.2004.01182.x</ext-link>, 2004.</mixed-citation></ref>
      <ref id="bib1.bib21"><label>21</label><?label 1?><mixed-citation>Karlsson-Elfgren, I., Hyenstrand, P., and Riydin, E.: Pelagic growth and
colony division of <italic>Gloeotrichia echinulata</italic> in Lake Erken, J.
Plankton Res., 27, 145–151, <ext-link xlink:href="https://doi.org/10.1093/plankt/fbh165" ext-link-type="DOI">10.1093/plankt/fbh165</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bib22"><label>22</label><?label 1?><mixed-citation>Lin, S.: Shuqi-Lin/Erken_Algal_Bloom_Machine_Learning_Model: Erken_Algal_Bloom_Machine_Learning_Model (v1.1), Zenodo [code and data set], <ext-link xlink:href="https://doi.org/10.5281/zenodo.7149563" ext-link-type="DOI">10.5281/zenodo.7149563</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib23"><label>23</label><?label 1?><mixed-citation>Marcé, R., George, G., Buscarinu, P., Deidda, M., Dunalska, J., de Eyto,
E., Flaim, G., Grossart, H.-P., Istvanovics, V., Lenhardt, M., Moreno-Ostos,
E., Obrador, B., Ostrovsky, I., Pierson, D. C., Potužák, J.,
Poikane, S., Rinke, K., Rodríguez-Mozaz, S., Staehr, P. A.,
Šumberová, K., Waajen, G., Weyhenmeyer, G. A., Weathers, K. C.,
Zion, M., Ibelings, B. W., and Jennings, E.: Automatic High Frequency
Monitoring for Improved Lake and Reservoir Management, Environ. Sci.
Technol., 50, 10780–10794, <ext-link xlink:href="https://doi.org/10.1021/acs.est.6b01604" ext-link-type="DOI">10.1021/acs.est.6b01604</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib24"><label>24</label><?label 1?><mixed-citation>McHugh, M. L.: Interrater reliability: the kappa statistic, Biochem.
Medica, 22, 276–282, 2012.</mixed-citation></ref>
      <ref id="bib1.bib25"><label>25</label><?label 1?><mixed-citation>Mellios, N., Moe, S. J., and Laspidou, C.: Machine Learning Approaches for
Predicting Health Risk of Cyanobacterial Blooms in Northern European Lakes,
Water, 12, 1191, <ext-link xlink:href="https://doi.org/10.3390/w12041191" ext-link-type="DOI">10.3390/w12041191</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib26"><label>26</label><?label 1?><mixed-citation>Mesman, J. P., Ayala, A. I., Goyette, S., Kasparian, J., Marcé, R.,
Markensten, H., Stelzer, J. A. A., Thayne, M. W., Thomas, M. K., Pierson, D.
C., and Ibelings, B. W.: Drivers of phytoplankton responses to summer wind
events in a stratified lake: A modeling study, Limnol. Oceanogr.,
67, 856–873, <ext-link xlink:href="https://doi.org/10.1002/lno.12040" ext-link-type="DOI">10.1002/lno.12040</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib27"><label>27</label><?label 1?><mixed-citation>Moras, S., Ayala, A. I., and Pierson, D. C.: Historical modelling of changes in Lake Erken thermal conditions, Hydrol. Earth Syst. Sci., 23, 5001–5016, <ext-link xlink:href="https://doi.org/10.5194/hess-23-5001-2019" ext-link-type="DOI">10.5194/hess-23-5001-2019</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib28"><label>28</label><?label 1?><mixed-citation>Nelson, N. G., Muñoz-Carpena, R., Phlips, E. J., Kaplan, D., Sucsy, P.,
and Hendrickson, J.: Revealing Biotic and Abiotic Controls of Harmful Algal
Blooms in a Shallow Subtropical Lake through Statistical Machine Learning,
Environ. Sci. Technol., 52, 3527–3535,
<ext-link xlink:href="https://doi.org/10.1021/acs.est.7b05884" ext-link-type="DOI">10.1021/acs.est.7b05884</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib29"><label>29</label><?label 1?><mixed-citation>Paerl, H. W.: Nuisance phytoplankton blooms in coastal, estuarine, and
inland waters, Limnol. Oceanogr., 33, 823–843,
<ext-link xlink:href="https://doi.org/10.4319/lo.1988.33.4part2.0823" ext-link-type="DOI">10.4319/lo.1988.33.4part2.0823</ext-link>, 1988.</mixed-citation></ref>
      <ref id="bib1.bib30"><label>30</label><?label 1?><mixed-citation>Paerl, H. W. and Huisman, J.: Blooms Like It Hot, Science, 320, 57–58,
<ext-link xlink:href="https://doi.org/10.1126/science.1155398" ext-link-type="DOI">10.1126/science.1155398</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib31"><label>31</label><?label 1?><mixed-citation>Peretyatko, A., Teissier, S., De Backer, S., and Triest, L.: Classification
trees as a tool for predicting cyanobacterial blooms, Hydrobiologia, 689,
131–146, <ext-link xlink:href="https://doi.org/10.1007/s10750-011-0803-4" ext-link-type="DOI">10.1007/s10750-011-0803-4</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib32"><label>32</label><?label 1?><mixed-citation>Persson, I. and Jones, I. D.: The effect of water colour on lake
hydrodynamics: a modelling study, Freshwater Biol., 53, 2345–2355,
<ext-link xlink:href="https://doi.org/10.1111/j.1365-2427.2008.02049.x" ext-link-type="DOI">10.1111/j.1365-2427.2008.02049.x</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib33"><label>33</label><?label 1?><mixed-citation>Pettersson, K.: The Availability of Phosphorus and the Species Composition
of the Spring Phytoplankton in Lake Erken, Internationale Revue der gesamten
Hydrobiologie und Hydrographie, 70, 527–546, <ext-link xlink:href="https://doi.org/10.1002/iroh.19850700407" ext-link-type="DOI">10.1002/iroh.19850700407</ext-link>, 1985.</mixed-citation></ref>
      <ref id="bib1.bib34"><label>34</label><?label 1?><mixed-citation>Pettersson, K.: Mechanisms for internal loading of phosphorus in lakes,
Hydrobiologia, 373, 21–25, <ext-link xlink:href="https://doi.org/10.1023/A:1017011420035" ext-link-type="DOI">10.1023/A:1017011420035</ext-link>, 1998.</mixed-citation></ref>
      <ref id="bib1.bib35"><label>35</label><?label 1?><mixed-citation>Pettersson, K., Grust, K., Weyhenmeyer, G., and Blenckner, T.: Seasonality
of chlorophyll and nutrients in Lake Erken – effects of weather conditions,
Hydrobiologia, 506, 75–81, <ext-link xlink:href="https://doi.org/10.1023/B:HYDR.0000008582.61851.76" ext-link-type="DOI">10.1023/B:HYDR.0000008582.61851.76</ext-link>, 2003.</mixed-citation></ref>
      <ref id="bib1.bib36"><label>36</label><?label 1?><mixed-citation>Pierson, D. C., Pettersson, K., and Istvanovics, V.: Temporal changes in
biomass specific photosynthesis during the summer: regulation by
environmental factors and the importance of phytoplankton succession,
Hydrobiologia, 243, 119–135, <ext-link xlink:href="https://doi.org/10.1007/BF00007027" ext-link-type="DOI">10.1007/BF00007027</ext-link>, 1992.</mixed-citation></ref>
      <ref id="bib1.bib37"><label>37</label><?label 1?><mixed-citation>Rahmani, F., Lawson, K., Ouyang, W., Appling, A., Oliver, S., and Shen, C.: Exploring the exceptional performance of a deep learning stream temperature model and the value of streamflow data, Environ. Res. Lett., 16, 024025, <ext-link xlink:href="https://doi.org/10.1088/1748-9326/abd501" ext-link-type="DOI">10.1088/1748-9326/abd501</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib38"><label>38</label><?label 1?><mixed-citation>Read, J. S., Hamilton, D. P., Jones, I. D., Muraoka, K., Winslow, L. A.,
Kroiss, R., Wu, C. H., and Gaiser, E.: Derivation of lake mixing and
stratification indices from high-resolution lake buoy data, Environ. Modell. Softw., 26, 1325–1336, <ext-link xlink:href="https://doi.org/10.1016/j.envsoft.2011.05.006" ext-link-type="DOI">10.1016/j.envsoft.2011.05.006</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bib39"><label>39</label><?label 1?><mixed-citation>Read, J. S., Jia, X., Willard, J., Appling, A. P., Zwart, J. A., Oliver, S.
K., Karpatne, A., Hansen, G. J. A., Hanson, P. C., Watkins, W., Steinbach,
M., and Kumar, V.: Process-Guided Deep Learning Predictions of Lake Water
Temperature, Water Resour. Res., 55, 9173–9190, <ext-link xlink:href="https://doi.org/10.1029/2019WR024922" ext-link-type="DOI">10.1029/2019WR024922</ext-link>,
2019.</mixed-citation></ref>
      <ref id="bib1.bib40"><label>40</label><?label 1?><mixed-citation>Rousso, B. Z., Bertone, E., Stewart, R., and Hamilton, D. P.: A systematic
literature review of forecasting and predictive models for cyanobacteria
blooms in freshwater lakes, Water Res., 182, 115959,
<ext-link xlink:href="https://doi.org/10.1016/j.watres.2020.115959" ext-link-type="DOI">10.1016/j.watres.2020.115959</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib41"><label>41</label><?label 1?><mixed-citation>Recknagel, F., Fukushima, T., Hanazato, T., Takamura, N., and Wilson, H.:
Modelling and prediction of phyto- and zooplankton dynamics in Lake
Kasumigaura by artificial neural networks, Lakes &amp; Reservoirs: Research &amp; Management, 3, 123–133,
<ext-link xlink:href="https://doi.org/10.1111/j.1440-1770.1998.tb00039.x" ext-link-type="DOI">10.1111/j.1440-1770.1998.tb00039.x</ext-link>, 1998.</mixed-citation></ref>
      <ref id="bib1.bib42"><label>42</label><?label 1?><mixed-citation>Reichwaldt, E. S. and Ghadouani, A.: Effects of rainfall patterns on toxic
cyanobacterial blooms in a changing climate: Between simplistic scenarios
and complex dynamics, Water Res., 46, 1372–1393,
<ext-link xlink:href="https://doi.org/10.1016/j.watres.2011.11.052" ext-link-type="DOI">10.1016/j.watres.2011.11.052</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib43"><label>43</label><?label 1?><mixed-citation>Richardson, J., Miller, C., Maberly, S. C., Taylor, P., Globevnik, L.,
Hunter, P., Jeppesen, E., Mischke, U., Moe, S. J., Pasztaleniec, A.,
Søndergaard, M., and Carvalho, L.: Effects of multiple stressors on
cyanobacteria abundance vary with lake type, Glob. Change Biol., 24,
5044–5055, <ext-link xlink:href="https://doi.org/10.1111/gcb.14396" ext-link-type="DOI">10.1111/gcb.14396</ext-link>, 2018.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bib44"><label>44</label><?label 1?><mixed-citation>Stanley, F. K. T., Irvine, J. L., Jacques, W. R., Salgia, S. R., Innes, D.
G., Winquist, B. D., Torr, D., Brenner, D. R., and Goodarzi, A. A.: Radon
exposure is rising steadily within the modern North American residential
environment, and is increasingly uniform across seasons, Scientific Reports,
9, 18472, <ext-link xlink:href="https://doi.org/10.1038/s41598-019-54891-8" ext-link-type="DOI">10.1038/s41598-019-54891-8</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib45"><label>45</label><?label 1?><mixed-citation>Watson, S. B., Miller, C., Arhonditsis, G., Boyer, G. L., Carmichael, W.,
Charlton, M. N., Confesor, R., Depew, D. C., Höök, T. O., Ludsin, S.
A., Matisoff, G., McElmurry, S. P., Murray, M. W., Peter Richards, R., Rao,
Y. R., Steffen, M. M., and Wilhelm, S. W.: The re-eutrophication of Lake
Erie: Harmful algal blooms and hypoxia, Harmful Algae, 56, 44–66,
<ext-link xlink:href="https://doi.org/10.1016/j.hal.2016.04.010" ext-link-type="DOI">10.1016/j.hal.2016.04.010</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib46"><label>46</label><?label 1?><mixed-citation>Wei, B., Sugiura, N., and Maekawa, T.: Use of artificial neural network in
the prediction of algal blooms, Water Res., 35, 2022–2028,
<ext-link xlink:href="https://doi.org/10.1016/S0043-1354(00)00464-4" ext-link-type="DOI">10.1016/S0043-1354(00)00464-4</ext-link>, 2001.</mixed-citation></ref>
      <ref id="bib1.bib47"><label>47</label><?label 1?><mixed-citation>Xiao, X., He, J., Huang, H., Miller, T. R., Christakos, G., Reichwaldt, E.
S., Ghadouani, A., Lin, S., Xu, X., and Shi, J.: A novel single-parameter
approach for forecasting algal blooms, Water Res., 108, 222–231,
<ext-link xlink:href="https://doi.org/10.1016/j.watres.2016.10.076" ext-link-type="DOI">10.1016/j.watres.2016.10.076</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib48"><label>48</label><?label 1?><mixed-citation>Yang, Y., Stenger-Kovács, C., Padisák, J., and Pettersson, K.:
Effects of winter severity on spring phytoplankton development in a
temperate lake (Lake Erken, Sweden), Hydrobiologia, 780, 47–57,
<ext-link xlink:href="https://doi.org/10.1007/s10750-016-2777-8" ext-link-type="DOI">10.1007/s10750-016-2777-8</ext-link>, 2016.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Prediction of algal blooms via data-driven machine learning models: an evaluation using data from a well-monitored mesotrophic lake</article-title-html>
<abstract-html/>
<ref-html id="bib1.bib1"><label>1</label><mixed-citation>
Adrian, R., Wilhelm, S., and Gerten, D.: Life-history traits of lake
plankton species may govern their phenological response to climate warming,
Glob. Change Biol., 12, 652–661, <a href="https://doi.org/10.1111/j.1365-2486.2006.01125.x" target="_blank">https://doi.org/10.1111/j.1365-2486.2006.01125.x</a>, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>2</label><mixed-citation>Baracchini, T., Wüest, A., and Bouffard, D.: Meteolakes: An operational
online three-dimensional forecasting platform for lake hydrodynamics, Water
Res., 172, 115529, <a href="https://doi.org/10.1016/j.watres.2020.115529" target="_blank">https://doi.org/10.1016/j.watres.2020.115529</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>3</label><mixed-citation>Brookes, J. D. and Carey, C. C.: Resilience to Blooms, Science, 334, 46–47,
<a href="https://doi.org/10.1126/science.1207349" target="_blank">https://doi.org/10.1126/science.1207349</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>4</label><mixed-citation>Bruggeman, J. and Bolding, K.: A general framework for aquatic
biogeochemical models, Environ. Modell. Softw., 61, 249–265,
<a href="https://doi.org/10.1016/j.envsoft.2014.04.002" target="_blank">https://doi.org/10.1016/j.envsoft.2014.04.002</a>, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>5</label><mixed-citation>Burchard, H., Bolding, K., and Villarreal, M. R.: GOTM, a General Ocean
Turbulence Model: Theory, Implementation and Test Cases, European
Commission, Joint Research Centre, Space Applications Institute, 103,
<a href="https://books.google.be/books/about/GOTM_a_General_Ocean_Turbulence_Model.html?id=zsJUHAAACAAJ&amp;redir_esc=y" target="_blank"/> (last access: 19 September 2022​​​​​​​), 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>6</label><mixed-citation>Burford, M. A., Carey, C. C., Hamilton, D. P., Huisman, J., Paerl, H. W.,
Wood, S. A., and Wulff, A.: Perspective: Advancing the research agenda for
improving understanding of cyanobacteria in a future of global change,
Harmful Algae, 91, 101601, <a href="https://doi.org/10.1016/j.hal.2019.04.004" target="_blank">https://doi.org/10.1016/j.hal.2019.04.004</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>7</label><mixed-citation>Carey, C. C., Ibelings, B. W., Hoffmann, E. P., Hamilton, D. P., and
Brookes, J. D.: Eco-physiological adaptations that favour freshwater
cyanobacteria in a changing climate, Water Res., 46, 1394–1407,
<a href="https://doi.org/10.1016/j.watres.2011.12.016" target="_blank">https://doi.org/10.1016/j.watres.2011.12.016</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>8</label><mixed-citation>Elliott, J. A.: Is the future blue-green? A review of the current model
predictions of how climate change could affect pelagic freshwater
cyanobacteria, Water Res., 46, 1364–1371, <a href="https://doi.org/10.1016/j.watres.2011.12.018" target="_blank">https://doi.org/10.1016/j.watres.2011.12.018</a>,
2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>9</label><mixed-citation>
Erken Laboratory: Meteorological data from Erken, Malma island, 1988-10-12–2021-12-31, Swedish Infrastructure for Ecosystem Science (SITES) [data set], <a href="https://hdl.handle.net/11676.1/qZYc4CMTOyxgvjv_gTAW08SO" target="_blank"/>, last access: 19 September 2022.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>10</label><mixed-citation>
Fornarelli, R., Galelli, S., Castelletti, A., Antenucci, J. P., and Marti, C. L.: An empirical modeling approach to predict and understand phytoplankton dynamics in a reservoir affected by interbasin water transfers, Water Resour. Res., 49, 3626–3641, <a href="https://doi.org/10.1002/wrcr.20268" target="_blank">https://doi.org/10.1002/wrcr.20268</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>11</label><mixed-citation>Friedman, J. H.: Greedy Function Approximation: A Gradient Boosting Machine,
Ann. Stat., 29, 1189–1232, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>12</label><mixed-citation>Hanson, P. C., Stillman, A. B., Jia, X., Karpatne, A., Dugan, H. A., Carey,
C. C., Stachelek, J., Ward, N. K., Zhang, Y., Read, J. S., and Kumar, V.:
Predicting lake surface water phosphorus dynamics using process-guided
machine learning, Ecol. Model., 430, 109136,
<a href="https://doi.org/10.1016/j.ecolmodel.2020.109136" target="_blank">https://doi.org/10.1016/j.ecolmodel.2020.109136</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>13</label><mixed-citation>
Harris, T. D.,and Graham, J. L.: Predicting cyanobacterial abundance, microcystin, and geosmin in a eutrophic drinking-water reservoir using a 14-year dataset, Lake Reserv. Manage., 33, 32–48, <a href="https://doi.org/10.1080/10402381.2016.1263694" target="_blank">https://doi.org/10.1080/10402381.2016.1263694</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>14</label><mixed-citation>Hense, I. and Beckmann, A.: Towards a model of cyanobacteria life
cycle – effects of growing and resting stages on bloom formation of
N<sub>2</sub>-fixing species, Ecol. Model., 195, 205–218,
<a href="https://doi.org/10.1016/j.ecolmodel.2005.11.018" target="_blank">https://doi.org/10.1016/j.ecolmodel.2005.11.018</a>, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>15</label><mixed-citation>Hochreiter, S. and Schmidhuber, J.: Long Short-Term Memory, Neural
Comput., 9, 1735–1780, <a href="https://doi.org/10.1162/neco.1997.9.8.1735" target="_blank">https://doi.org/10.1162/neco.1997.9.8.1735</a>, 1997.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>16</label><mixed-citation>Huisman, J., Codd, G. A., Paerl, H. W., Ibelings, B. W., Verspagen, J. M.
H., and Visser, P. M.: Cyanobacterial blooms, Nat. Rev. Microbiol.,
16, 471–483, <a href="https://doi.org/10.1038/s41579-018-0040-1" target="_blank">https://doi.org/10.1038/s41579-018-0040-1</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>17</label><mixed-citation>Jia, X., Willard, J., Karpatne, A., Read, J., Zwart, J., Steinbach, M., and
Kumar, V.: Physics Guided RNNs for Modeling Dynamical Systems: A Case Study
in Simulating Lake Temperature Profiles, in: Proceedings of the 2019 SIAM
558–566, <a href="https://doi.org/10.1137/1.9781611975673.63" target="_blank">https://doi.org/10.1137/1.9781611975673.63</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>18</label><mixed-citation>Jimeno-Sáez, P., Senent-Aparicio, J., Cecilia, J. M., and
Pérez-Sánchez, J.: Using Machine-Learning Algorithms for
Eutrophication Modeling: Case Study of Mar Menor Lagoon (Spain),
Int. J. Env. Res. Pub. He., 17, 1189, <a href="https://doi.org/10.3390/ijerph17041189" target="_blank">https://doi.org/10.3390/ijerph17041189</a>,
2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>19</label><mixed-citation>Jöhnk, K. D., Brüggemann, R., Rücker, J., Luther, B., Simon, U.,
Nixdorf, B., and Wiedner, C.: Modelling life cycle and population dynamics
of Nostocales (cyanobacteria), Environ. Modell. Softw., 26,
669–677, <a href="https://doi.org/10.1016/j.envsoft.2010.11.001" target="_blank">https://doi.org/10.1016/j.envsoft.2010.11.001</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>20</label><mixed-citation>Karlsson-Elfgren, I., Rengefors, K., and Gustafsson, S.: Factors regulating
recruitment from the sediment to the water column in the bloom-forming
cyanobacterium <i>Gloeotrichia echinulata</i>, Freshwater Biol., 49, 265–273, <a href="https://doi.org/10.1111/j.1365-2427.2004.01182.x" target="_blank">https://doi.org/10.1111/j.1365-2427.2004.01182.x</a>, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>21</label><mixed-citation>Karlsson-Elfgren, I., Hyenstrand, P., and Riydin, E.: Pelagic growth and
colony division of <i>Gloeotrichia echinulata</i> in Lake Erken, J.
Plankton Res., 27, 145–151, <a href="https://doi.org/10.1093/plankt/fbh165" target="_blank">https://doi.org/10.1093/plankt/fbh165</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>22</label><mixed-citation>Lin, S.: Shuqi-Lin/Erken_Algal_Bloom_Machine_Learning_Model: Erken_Algal_Bloom_Machine_Learning_Model (v1.1), Zenodo [code and data set], <a href="https://doi.org/10.5281/zenodo.7149563" target="_blank">https://doi.org/10.5281/zenodo.7149563</a>, 2022.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>23</label><mixed-citation>Marcé, R., George, G., Buscarinu, P., Deidda, M., Dunalska, J., de Eyto,
E., Flaim, G., Grossart, H.-P., Istvanovics, V., Lenhardt, M., Moreno-Ostos,
E., Obrador, B., Ostrovsky, I., Pierson, D. C., Potužák, J.,
Poikane, S., Rinke, K., Rodríguez-Mozaz, S., Staehr, P. A.,
Šumberová, K., Waajen, G., Weyhenmeyer, G. A., Weathers, K. C.,
Zion, M., Ibelings, B. W., and Jennings, E.: Automatic High Frequency
Monitoring for Improved Lake and Reservoir Management, Environ. Sci.
Technol., 50, 10780–10794, <a href="https://doi.org/10.1021/acs.est.6b01604" target="_blank">https://doi.org/10.1021/acs.est.6b01604</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>24</label><mixed-citation>McHugh, M. L.: Interrater reliability: the kappa statistic, Biochem.
Medica, 22, 276–282, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>25</label><mixed-citation>Mellios, N., Moe, S. J., and Laspidou, C.: Machine Learning Approaches for
Predicting Health Risk of Cyanobacterial Blooms in Northern European Lakes,
Water, 12, 1191, <a href="https://doi.org/10.3390/w12041191" target="_blank">https://doi.org/10.3390/w12041191</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>26</label><mixed-citation>Mesman, J. P., Ayala, A. I., Goyette, S., Kasparian, J., Marcé, R.,
Markensten, H., Stelzer, J. A. A., Thayne, M. W., Thomas, M. K., Pierson, D.
C., and Ibelings, B. W.: Drivers of phytoplankton responses to summer wind
events in a stratified lake: A modeling study, Limnol. Oceanogr.,
67, 856–873, <a href="https://doi.org/10.1002/lno.12040" target="_blank">https://doi.org/10.1002/lno.12040</a>, 2022.
</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>27</label><mixed-citation>Moras, S., Ayala, A. I., and Pierson, D. C.: Historical modelling of changes in Lake Erken thermal conditions, Hydrol. Earth Syst. Sci., 23, 5001–5016, <a href="https://doi.org/10.5194/hess-23-5001-2019" target="_blank">https://doi.org/10.5194/hess-23-5001-2019</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>28</label><mixed-citation>Nelson, N. G., Muñoz-Carpena, R., Phlips, E. J., Kaplan, D., Sucsy, P.,
and Hendrickson, J.: Revealing Biotic and Abiotic Controls of Harmful Algal
Blooms in a Shallow Subtropical Lake through Statistical Machine Learning,
Environ. Sci. Technol., 52, 3527–3535,
<a href="https://doi.org/10.1021/acs.est.7b05884" target="_blank">https://doi.org/10.1021/acs.est.7b05884</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>29</label><mixed-citation>Paerl, H. W.: Nuisance phytoplankton blooms in coastal, estuarine, and
inland waters, Limnol. Oceanogr., 33, 823–843,
<a href="https://doi.org/10.4319/lo.1988.33.4part2.0823" target="_blank">https://doi.org/10.4319/lo.1988.33.4part2.0823</a>, 1988.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>30</label><mixed-citation>Paerl, H. W. and Huisman, J.: Blooms Like It Hot, Science, 320, 57–58,
<a href="https://doi.org/10.1126/science.1155398" target="_blank">https://doi.org/10.1126/science.1155398</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>31</label><mixed-citation>Peretyatko, A., Teissier, S., De Backer, S., and Triest, L.: Classification
trees as a tool for predicting cyanobacterial blooms, Hydrobiologia, 689,
131–146, <a href="https://doi.org/10.1007/s10750-011-0803-4" target="_blank">https://doi.org/10.1007/s10750-011-0803-4</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>32</label><mixed-citation>Persson, I. and Jones, I. D.: The effect of water colour on lake
hydrodynamics: a modelling study, Freshwater Biol., 53, 2345–2355,
<a href="https://doi.org/10.1111/j.1365-2427.2008.02049.x" target="_blank">https://doi.org/10.1111/j.1365-2427.2008.02049.x</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>33</label><mixed-citation>Pettersson, K.: The Availability of Phosphorus and the Species Composition
of the Spring Phytoplankton in Lake Erken, Internationale Revue der gesamten
Hydrobiologie und Hydrographie, 70, 527–546, <a href="https://doi.org/10.1002/iroh.19850700407" target="_blank">https://doi.org/10.1002/iroh.19850700407</a>, 1985.
</mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>34</label><mixed-citation>Pettersson, K.: Mechanisms for internal loading of phosphorus in lakes,
Hydrobiologia, 373, 21–25, <a href="https://doi.org/10.1023/A:1017011420035" target="_blank">https://doi.org/10.1023/A:1017011420035</a>, 1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>35</label><mixed-citation>Pettersson, K., Grust, K., Weyhenmeyer, G., and Blenckner, T.: Seasonality
of chlorophyll and nutrients in Lake Erken – effects of weather conditions,
Hydrobiologia, 506, 75–81, <a href="https://doi.org/10.1023/B:HYDR.0000008582.61851.76" target="_blank">https://doi.org/10.1023/B:HYDR.0000008582.61851.76</a>, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>36</label><mixed-citation>Pierson, D. C., Pettersson, K., and Istvanovics, V.: Temporal changes in
biomass specific photosynthesis during the summer: regulation by
environmental factors and the importance of phytoplankton succession,
Hydrobiologia, 243, 119–135, <a href="https://doi.org/10.1007/BF00007027" target="_blank">https://doi.org/10.1007/BF00007027</a>, 1992.
</mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>37</label><mixed-citation>
Rahmani, F., Lawson, K., Ouyang, W., Appling, A., Oliver, S., and Shen, C.: Exploring the exceptional performance of a deep learning stream temperature model and the value of streamflow data, Environ. Res. Lett., 16, 024025, <a href="https://doi.org/10.1088/1748-9326/abd501" target="_blank">https://doi.org/10.1088/1748-9326/abd501</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>38</label><mixed-citation>Read, J. S., Hamilton, D. P., Jones, I. D., Muraoka, K., Winslow, L. A.,
Kroiss, R., Wu, C. H., and Gaiser, E.: Derivation of lake mixing and
stratification indices from high-resolution lake buoy data, Environ. Modell. Softw., 26, 1325–1336, <a href="https://doi.org/10.1016/j.envsoft.2011.05.006" target="_blank">https://doi.org/10.1016/j.envsoft.2011.05.006</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>39</label><mixed-citation>Read, J. S., Jia, X., Willard, J., Appling, A. P., Zwart, J. A., Oliver, S.
K., Karpatne, A., Hansen, G. J. A., Hanson, P. C., Watkins, W., Steinbach,
M., and Kumar, V.: Process-Guided Deep Learning Predictions of Lake Water
Temperature, Water Resour. Res., 55, 9173–9190, <a href="https://doi.org/10.1029/2019WR024922" target="_blank">https://doi.org/10.1029/2019WR024922</a>,
2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>40</label><mixed-citation>Rousso, B. Z., Bertone, E., Stewart, R., and Hamilton, D. P.: A systematic
literature review of forecasting and predictive models for cyanobacteria
blooms in freshwater lakes, Water Res., 182, 115959,
<a href="https://doi.org/10.1016/j.watres.2020.115959" target="_blank">https://doi.org/10.1016/j.watres.2020.115959</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>41</label><mixed-citation>Recknagel, F., Fukushima, T., Hanazato, T., Takamura, N., and Wilson, H.:
Modelling and prediction of phyto- and zooplankton dynamics in Lake
Kasumigaura by artificial neural networks, Lakes &amp; Reservoirs: Research &amp; Management, 3, 123–133,
<a href="https://doi.org/10.1111/j.1440-1770.1998.tb00039.x" target="_blank">https://doi.org/10.1111/j.1440-1770.1998.tb00039.x</a>, 1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>42</label><mixed-citation>Reichwaldt, E. S. and Ghadouani, A.: Effects of rainfall patterns on toxic
cyanobacterial blooms in a changing climate: Between simplistic scenarios
and complex dynamics, Water Res., 46, 1372–1393,
<a href="https://doi.org/10.1016/j.watres.2011.11.052" target="_blank">https://doi.org/10.1016/j.watres.2011.11.052</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>43</label><mixed-citation>Richardson, J., Miller, C., Maberly, S. C., Taylor, P., Globevnik, L.,
Hunter, P., Jeppesen, E., Mischke, U., Moe, S. J., Pasztaleniec, A.,
Søndergaard, M., and Carvalho, L.: Effects of multiple stressors on
cyanobacteria abundance vary with lake type, Glob. Change Biol., 24,
5044–5055, <a href="https://doi.org/10.1111/gcb.14396" target="_blank">https://doi.org/10.1111/gcb.14396</a>, 2018.

</mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>44</label><mixed-citation>Stanley, F. K. T., Irvine, J. L., Jacques, W. R., Salgia, S. R., Innes, D.
G., Winquist, B. D., Torr, D., Brenner, D. R., and Goodarzi, A. A.: Radon
exposure is rising steadily within the modern North American residential
environment, and is increasingly uniform across seasons, Scientific Reports,
9, 18472, <a href="https://doi.org/10.1038/s41598-019-54891-8" target="_blank">https://doi.org/10.1038/s41598-019-54891-8</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>45</label><mixed-citation>Watson, S. B., Miller, C., Arhonditsis, G., Boyer, G. L., Carmichael, W.,
Charlton, M. N., Confesor, R., Depew, D. C., Höök, T. O., Ludsin, S.
A., Matisoff, G., McElmurry, S. P., Murray, M. W., Peter Richards, R., Rao,
Y. R., Steffen, M. M., and Wilhelm, S. W.: The re-eutrophication of Lake
Erie: Harmful algal blooms and hypoxia, Harmful Algae, 56, 44–66,
<a href="https://doi.org/10.1016/j.hal.2016.04.010" target="_blank">https://doi.org/10.1016/j.hal.2016.04.010</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>46</label><mixed-citation>Wei, B., Sugiura, N., and Maekawa, T.: Use of artificial neural network in
the prediction of algal blooms, Water Res., 35, 2022–2028,
<a href="https://doi.org/10.1016/S0043-1354(00)00464-4" target="_blank">https://doi.org/10.1016/S0043-1354(00)00464-4</a>, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>47</label><mixed-citation>Xiao, X., He, J., Huang, H., Miller, T. R., Christakos, G., Reichwaldt, E.
S., Ghadouani, A., Lin, S., Xu, X., and Shi, J.: A novel single-parameter
approach for forecasting algal blooms, Water Res., 108, 222–231,
<a href="https://doi.org/10.1016/j.watres.2016.10.076" target="_blank">https://doi.org/10.1016/j.watres.2016.10.076</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>48</label><mixed-citation>Yang, Y., Stenger-Kovács, C., Padisák, J., and Pettersson, K.:
Effects of winter severity on spring phytoplankton development in a
temperate lake (Lake Erken, Sweden), Hydrobiologia, 780, 47–57,
<a href="https://doi.org/10.1007/s10750-016-2777-8" target="_blank">https://doi.org/10.1007/s10750-016-2777-8</a>, 2016.
</mixed-citation></ref-html>--></article>
