Urban inland lake water bloom sudden risk early warning method and system

By acquiring and analyzing data such as chlorophyll a in urban lakes, growth stages were divided and a time-series prediction model was established in conjunction with the cyanobacterial growth mechanism. This solved the problem of distinguishing between normal cyanobacterial changes and abnormal algal blooms in existing technologies, and enabled accurate prediction and management of algal bloom risks.

CN123179203APending Publication Date: 2026-11-27THREE GORGES ECOLOGICAL ENVIRONMENT INVESTMENT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611279448.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively distinguish between normal intraday changes in cyanobacteria and abnormal changes prior to algal blooms. Furthermore, when relying on data-driven models, they fail to adequately utilize the growth mechanisms of cyanobacteria, making it difficult to accurately predict algal bloom risks.

Method used

By acquiring chlorophyll a, water quality, hydrological and hydrodynamic data, and meteorological time series data of urban lakes, the system divides the period into stable, pre-outbreak, and outbreak phases, calculates intraday characteristic parameters, establishes a time series prediction model based on the cyanobacterial growth mechanism, and uses the self-attention mechanism to predict chlorophyll a for the next 24 hours. By integrating theoretical net growth rate with actual data, the system determines the risk level of sudden algal blooms.

Benefits of technology

It has achieved accurate prediction of cyanobacterial bloom risk, can identify intraday abnormal changes and predict bloom trends in the next 24 hours, and improves the accuracy and timeliness of bloom risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179203A_ABST
    Figure CN123179203A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of city inner lake water bloom sudden risk early warning method and system.The method is mainly aimed at cyanobacteria as the city inner lake of main water bloom group, according to historical monitoring data, divides stable period, pre-eruption period and eruption period, establishes the 95% confidence interval of the characteristic parameter of each stage and stage reference value;According to the data of the day before prediction day, determine the abnormal parameter ratio;The theoretical net growth rate of cyanobacteria is combined with chlorophyll a, water quality, hydrology and hydrodynamics and meteorological time series data, and the future 24h chlorophyll a prediction curve is obtained;Extract the prediction peak, prediction daily increase and prediction hour-level maximum proliferation rate, and determine the water bloom sudden risk grade by combining the phased statistical results and abnormal parameter ratio.The city inner lake water bloom sudden risk early warning method and system provided by the present application can combine the current daily abnormal state and the future 24h change trend to carry out cyanobacteria water bloom sudden risk early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water environment monitoring and early warning technology for cyanobacterial blooms, specifically to a method and system for early warning of sudden risks of algal blooms in urban lakes. Background Technology

[0002] Urban lakes serve multiple functions, including landscaping, ecological regulation, and recreation. However, some urban lakes have limited water exchange capacity, resulting in prolonged nutrient retention. Under suitable water temperature, light, and nutrient conditions, abnormal cyanobacterial proliferation can easily occur. Given the relatively limited volume of water in urban lakes, and influenced by rainfall runoff, solar radiation, air temperature, wind patterns, and water exchange conditions, cyanobacterial biomass can fluctuate significantly within a single day, leading to pronounced short-term, sudden-onset cyanobacterial blooms.

[0003] Among existing methods for monitoring and warning of cyanobacterial blooms, one type primarily relies on whether indicators such as chlorophyll a and algal density reach preset thresholds to determine the risk of blooms. While this method reflects the algal biomass level at the monitoring time, cyanobacteria are influenced by factors such as photosynthesis, respiration, and hydrodynamic processes, exhibiting diurnal variation patterns. When using only fixed concentration thresholds for judgment, normal diurnal fluctuations and abnormal proliferation before a bloom may show similar local concentration changes, making it difficult to distinguish between normal diurnal variations and abnormal changes before a bloom based solely on a single moment or daily average concentration.

[0004] Another type of method utilizes historical monitoring data such as water quality and meteorology to build time-series prediction models to forecast subsequent chlorophyll a or cyanobacteria concentrations. This type of method can describe the variation patterns of chlorophyll a using multidimensional historical data; however, when relying solely on data-driven models, the models primarily learn the statistical relationships between historical data, failing to adequately utilize the mechanisms by which factors such as water temperature, light intensity, nutrients, water depth, and water exchange affect cyanobacteria growth. Furthermore, obtaining only future changes in chlorophyll a concentration makes it difficult to simultaneously reflect both intraday anomalies that have already occurred and future trends in algal blooms. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for early warning of sudden algal blooms in urban lakes, in order to solve the problem that existing algal bloom early warning methods are unable to distinguish between normal intraday changes in cyanobacteria and water... This invention provides a method for early warning of sudden algal blooms in urban lakes, comprising: S1. Obtain chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological time series data, and water exchange parameters for urban lakes in the target city where cyanobacteria are the main algal bloom group. S2. Based on historical chlorophyll a time-series data, the period was divided into a stable period, a pre-outbreak period, and an outbreak period. For each stage, intraday characteristic parameters were calculated using historical data, and 95% confidence intervals and reference values ​​for the intraday characteristic parameters of each stage were formed. Intraday characteristic parameters include intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time shift, hourly proliferation rate, Z-statistic of Mann-Kendall mutation test, Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the ratio of intraday increase in pH to chlorophyll a. S3. Calculate the intraday characteristic parameters based on the time series data of the day before the forecast date, identify the intraday characteristic parameters that exceed the 95% confidence interval of the corresponding parameters in the stable period as abnormal parameters, and determine the proportion of abnormal parameters; S4. Based on the growth mechanism of cyanobacteria, the theoretical net growth rate at each time step is obtained. The theoretical net growth rate is then fused with historical chlorophyll a, water quality, hydrological and hydrodynamic and meteorological time series data to make time series predictions, and the chlorophyll a prediction curve for the next 24 hours is obtained. The predicted peak value, predicted intraday increase and predicted hourly maximum proliferation rate are obtained from the chlorophyll a prediction curve. S5. Compare the predicted intraday increase and the predicted hourly maximum proliferation rate with the 95% confidence intervals and stage reference values ​​of the corresponding intraday characteristic parameters during the stable period, the pre-outbreak period, and the outbreak period, respectively. Based on the comparison results, the proportion of abnormal parameters, and the relationship between the predicted peak value and the chlorophyll a bloom threshold, determine the bloom outbreak risk level according to the preset risk classification rules.

[0006] Furthermore, the division of the period into a stable phase, a pre-outbreak phase, and an outbreak phase based on historical chlorophyll a time-series data includes: The historical chlorophyll a time series data were divided into continuous segments using ordered clustering, and the sliding Mann-Kendall mutation test was used to determine the trend of chlorophyll a changes. The growth stage corresponding to each continuous segment is determined based on the daily average value of chlorophyll a, the intra-day coefficient of variation, and the trend of chlorophyll a change. During the stable period, the daily average value of chlorophyll a was less than 50% of the chlorophyll a bloom threshold, the intra-day coefficient of variation was less than 15%, and there was no obvious upward trend. In the early stage of the outbreak, the daily average value of chlorophyll a was greater than or equal to 50% of the chlorophyll a bloom threshold and lower than the chlorophyll a bloom threshold, the intraday coefficient of variation was greater than or equal to 15%, and the Mann-Kendall mutation test showed a significant upward trend at 95% confidence level. During the outbreak period, the daily average value of chlorophyll a is greater than or equal to the chlorophyll a bloom threshold.

[0007] Furthermore, the calculation of intraday characteristic parameters for historical data at each stage includes: A 24-hour sliding window was used for the stable period, the pre-outbreak period, and the outbreak period, respectively. The intraday increase in chlorophyll a is the difference between the maximum and minimum values ​​of chlorophyll a within 24 hours. The intraday coefficient of variation is determined as the ratio of the standard deviation to the mean of chlorophyll a monitoring values ​​over 24 hours, and is expressed as a percentage. The peak occurrence time offset is the difference between the measured peak occurrence time of chlorophyll a and the average peak occurrence time of chlorophyll a during the stationary period; The hourly proliferation rate was determined based on two chlorophyll a concentrations spaced 1 hour apart, according to the exponential growth relationship of chlorophyll a concentration over time. The Z-statistic of the Mann-Kendall mutation test was obtained by performing the Mann-Kendall mutation test on chlorophyll a time series data using a 4-hour sliding window. The Pearson correlation coefficient between dissolved oxygen and chlorophyll a was determined based on dissolved oxygen time-series data and chlorophyll a time-series data within the same 24-hour time window. The ratio of daily pH increase to chlorophyll a increase is determined based on the ratio of daily pH increase to daily chlorophyll a increase within the same 24-hour time window.

[0008] Furthermore, the formation of the 95% confidence intervals and stage reference values ​​for the intraday characteristic parameters at each stage includes: A historical sample set is formed by combining the same intraday feature parameters corresponding to multiple 24-hour time windows within the same growth stage. The 95% confidence intervals of various intraday characteristic parameters were calculated based on historical sample sets from the stable period, the pre-outbreak period, and the outbreak period, respectively. Based on the historical sample set of each stage, the stage reference values ​​of the corresponding intraday characteristic parameters are determined, where the stage reference value of the hourly proliferation rate is the statistical mean of the historical hourly proliferation rate samples of the corresponding growth stage.

[0009] Furthermore, the step of calculating various intraday characteristic parameters based on time-series data from the day before the forecast date, identifying intraday characteristic parameters that exceed the 95% confidence interval of the corresponding parameters during the stable period as anomalous parameters, and determining the proportion of anomalous parameters includes: Based on the time-series data of chlorophyll a, dissolved oxygen, and pH from the day before the forecast date, various intraday characteristic parameters are obtained using the same calculation method as historical data. Each intraday characteristic parameter is compared with the 95% confidence interval of the corresponding intraday characteristic parameter during the stable period; Intraday characteristic parameters that are lower than the lower limit of the corresponding 95% confidence interval or higher than the upper limit of the corresponding 95% confidence interval are identified as anomalous parameters; The proportion of abnormal parameters is determined by the ratio of the number of abnormal parameters to the total number of intraday characteristic parameters used in the judgment.

[0010] Furthermore, obtaining the theoretical net growth rate at each time step based on the cyanobacterial growth mechanism includes: A model of cyanobacterial growth mechanism was established based on the eutrophication module of the WASP water quality model. The cyanobacterial growth mechanism model includes cyanobacterial growth, cyanobacterial respiration, cyanobacterial sedimentation, and cyanobacterial flushing components; The cyanobacterial growth item is determined based on water temperature, light, and nutrient conditions; the cyanobacterial respiration item is determined based on water temperature; the cyanobacterial sedimentation item is determined based on cyanobacterial sedimentation parameters and water depth; and the cyanobacterial flushing item is determined based on water exchange parameters. The theoretical net growth rate at each time step is determined by subtracting the cyanobacterial respiration, cyanobacterial sedimentation, and cyanobacterial flushing terms from the cyanobacterial growth term. Water exchange parameters are obtained from hydrological survey data of lakes in the target city or hydrological monitoring data of inflow and outflow.

[0011] Furthermore, the method of fusing theoretical net growth rate with historical chlorophyll a, water quality, hydrological and hydrodynamic, and meteorological time-series data for time-series prediction includes: The monitoring data with different sampling frequencies are time-aligned according to a unified model time step; The input feature sequence is composed of historical chlorophyll a, screened water quality, hydrological and hydrodynamic and meteorological time series data, and theoretical net growth rate at each time step. The input feature sequence of the 24 hours before the prediction date is used as the historical input window, and the chlorophyll a time series sequence of the next 24 hours is used as the prediction label to establish training samples. The input feature sequence is input into the GRU time series prediction model with a self-attention mechanism. The GRU obtains time series features based on the historical input sequence, and the self-attention mechanism determines the weights corresponding to different historical time steps based on the historical time series features output by the GRU, and outputs the predicted chlorophyll a value for the next 24 hours based on the weighted time series features.

[0012] Furthermore, obtaining the predicted peak value, predicted intraday increase, and predicted hourly maximum proliferation rate from the chlorophyll a prediction curve includes: The maximum value among the predicted chlorophyll a values ​​for the next 24 hours is determined as the predicted peak value; The difference between the maximum and minimum values ​​of chlorophyll a predicted for the next 24 hours is determined as the intraday increase in the forecast. Based on two chlorophyll a predicted values ​​1 hour apart in the chlorophyll a prediction curve for the next 24 hours, the hourly proliferation rate is determined according to the same exponential growth relationship as the historical hourly proliferation rate, and the maximum value among them is determined as the predicted hourly maximum proliferation rate.

[0013] Furthermore, determining the risk level of an algal bloom outbreak according to a preset risk grading rule includes: The risk level is determined in the following order: red (high risk), orange (relatively high risk), yellow (medium risk), and blue (low risk). A site is designated as high-risk (red) if any of the following conditions are met: the predicted peak value is greater than or equal to the chlorophyll a bloom threshold; the predicted daily increase is greater than or equal to the lower limit of the 95% confidence interval for the daily chlorophyll a increase during the outbreak period; the predicted hourly maximum proliferation rate is greater than or equal to the reference value for the hourly proliferation rate during the outbreak period; or the proportion of abnormal parameters is greater than or equal to 80%. An orange-level high-risk area is defined as an area not meeting the red high-risk criteria but satisfying any two of the following conditions: the predicted peak value is greater than or equal to 80% of the chlorophyll a bloom threshold but less than the chlorophyll a bloom threshold; the predicted daily increase is greater than or equal to the lower limit of the 95% confidence interval for the daily chlorophyll a increase in the pre-outbreak period; the predicted hourly maximum proliferation rate is greater than or equal to twice the reference value for the hourly proliferation rate in the pre-outbreak period; and the proportion of abnormal parameters is greater than or equal to 50% but less than 80%. A plant is classified as yellow (medium risk) if it does not meet the red (high risk) or orange (relatively high risk) criteria and meets any two of the following conditions: the predicted peak value is greater than or equal to 50% of the chlorophyll a bloom threshold but less than 80% of the chlorophyll a bloom threshold; the predicted daily increase is higher than the upper limit of the 95% confidence interval for the daily chlorophyll a increase during the stable period; the predicted hourly maximum proliferation rate is greater than or equal to twice the reference value for the hourly proliferation rate during the stable period; and the proportion of abnormal parameters is greater than or equal to 20% but less than 50%. If the risk level does not reach the red (high risk), orange (relatively high risk), or yellow (medium risk) thresholds, it is classified as blue (low risk).

[0014] Furthermore, the 95% confidence intervals and stage reference values ​​for forming the intraday characteristic parameters of each stage also include: When the preset daily, monthly or quarterly update cycle is reached, the newly added monitoring data in the corresponding update cycle is determined as data of the stable period, the pre-outbreak period or the outbreak period based on the daily average value of chlorophyll a, the intraday coefficient of variation and the chlorophyll a change trend. Calculate the corresponding intraday characteristic parameters based on the newly added monitoring data, and update the historical sample set for the corresponding growth stage; Based on the updated historical sample set, the 95% confidence intervals and stage reference values ​​of the intraday characteristic parameters for the corresponding growth stages were recalculated.

[0015] This invention also provides an early warning system for the sudden risk of algal blooms in urban lakes, comprising: The data acquisition device is used to acquire chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological time series data, and water exchange parameters of urban lakes in the target city where cyanobacteria are the main algal bloom group. The memory is used to store historical monitoring data, phased statistical results of intraday characteristic parameters, and computer programs. Intraday characteristic parameters include intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time offset, hourly proliferation rate, Z statistic of Mann-Kendall mutation test, Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the intraday increase ratio of pH to chlorophyll a. The processor, used to execute computer programs, divides the period into stable, pre-outbreak, and outbreak phases based on historical chlorophyll a time-series data. It calculates intraday characteristic parameters for each phase based on historical data, and establishes 95% confidence intervals and reference values ​​for these parameters. It also calculates various intraday characteristic parameters based on time-series data from the day before the forecast date, identifying those exceeding the 95% confidence interval for the corresponding parameters in the stable phase as anomalous parameters and determining their proportion. Based on the cyanobacterial growth mechanism, it obtains the theoretical net growth rate for each time step, and integrates this theoretical net growth rate with historical chlorophyll a, water quality, hydrological and hydrodynamic, and meteorological time-series data to obtain a chlorophyll a prediction curve for the next 24 hours. From the chlorophyll a prediction curve, it obtains the predicted peak value, predicted intraday increase, and predicted hourly maximum proliferation rate. It compares the predicted intraday increase and predicted hourly maximum proliferation rate with the 95% confidence intervals and reference values ​​for the corresponding intraday characteristic parameters in the stable, pre-outbreak, and outbreak phases, respectively. Based on the comparison results, the proportion of anomalous parameters, and the relationship between the predicted peak value and the chlorophyll a bloom threshold, it determines the bloom outbreak risk level. The early warning output device is used to output the risk level of sudden algal blooms.

[0016] The method and system for early warning of sudden algal blooms in urban lakes provided by this invention have the following beneficial effects: The present invention provides a method and system for early warning of sudden algal bloom risks in urban lakes. Targeting urban lakes where cyanobacteria are the main algal bloom group, it establishes intraday characteristic statistical results corresponding to the stable period, pre-outbreak period, and outbreak period based on historical data. It also uses the normal statistical range of the stable period to identify whether abnormal intraday changes have occurred the day before the prediction date. Simultaneously, it uses the theoretical net growth rate obtained from the cyanobacteria growth mechanism and actual monitoring data together to predict chlorophyll a changes in the next 24 hours. Furthermore, it uses intraday increase and hourly proliferation rate, with the same caliber as historical data, to evaluate future prediction results, ensuring that algal bloom risk assessment simultaneously includes the current abnormal state and future intraday change trends. Attached Figure Description Figure 1 A flowchart of an urban lake algal bloom emergency risk warning method provided in an embodiment of the present invention; Figure 2 A schematic diagram illustrating the changes in chlorophyll a content in an inland lake in a city in Hubei Province and the division of the stable period, the pre-outbreak period, and the outbreak period, provided as an embodiment of the present invention. Figure 3This is a prediction curve of chlorophyll a content change on day D1 in an inland lake of a city in Hubei Province, provided in an embodiment of the present invention. Figure 4 The chlorophyll a content change prediction curve of a lake in a city in Hubei Province on day D2 is provided for an embodiment of the present invention. Detailed Implementation

[0017] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of the invention will be thorough and complete.

[0018] This implementation method is applicable to urban lakes where existing algal monitoring results indicate that cyanobacteria are the main algal bloom group. Before specific application, it can be determined whether the water body belongs to the cyanobacterial bloom risk monitoring target based on historical algal surveys, algal bloom records, or existing cyanobacteria monitoring results of the target urban lake.

[0019] like Figure 1 As shown, the urban lake algal bloom sudden risk early warning method provided by the embodiments of the present invention includes: S1. Obtain chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological time series data, and water exchange parameters for urban lakes in the target city where cyanobacteria are the main algal bloom group. S2. Based on historical chlorophyll a time-series data, the period was divided into a stable period, a pre-outbreak period, and an outbreak period. For each stage, intraday characteristic parameters were calculated using historical data, and 95% confidence intervals and reference values ​​for the intraday characteristic parameters of each stage were formed. Intraday characteristic parameters include intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time shift, hourly proliferation rate, Z-statistic of Mann-Kendall mutation test, Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the ratio of intraday increase in pH to chlorophyll a. S3. Calculate the intraday characteristic parameters based on the time series data of the day before the forecast date, identify the intraday characteristic parameters that exceed the 95% confidence interval of the corresponding parameters in the stable period as abnormal parameters, and determine the proportion of abnormal parameters; S4. Based on the growth mechanism of cyanobacteria, the theoretical net growth rate at each time step is obtained. The theoretical net growth rate is then fused with historical chlorophyll a, water quality, hydrological and hydrodynamic and meteorological time series data to make time series predictions, and the chlorophyll a prediction curve for the next 24 hours is obtained. The predicted peak value, predicted intraday increase and predicted hourly maximum proliferation rate are obtained from the chlorophyll a prediction curve. S5. Compare the predicted intraday increase and the predicted hourly maximum proliferation rate with the 95% confidence intervals and stage reference values ​​of the corresponding intraday characteristic parameters during the stable period, the pre-outbreak period, and the outbreak period, respectively. Based on the comparison results, the proportion of abnormal parameters, and the relationship between the predicted peak value and the chlorophyll a bloom threshold, determine the bloom outbreak risk level according to the preset risk classification rules.

[0020] In step S1, in-situ monitoring equipment is installed in the lake within the target city to acquire chlorophyll a, water quality, hydrological and hydrodynamic data, and meteorological data. Chlorophyll a is used to characterize algal biomass, and in this embodiment, the sampling interval is set to 1 minute. Water quality data includes water temperature, dissolved oxygen, pH, turbidity, conductivity, redox potential, total nitrogen, and total phosphorus. The sampling frequency for conventional water quality indicators such as water temperature and dissolved oxygen is consistent with that for chlorophyll a, while the sampling interval for nutrient indicators such as total nitrogen and total phosphorus is set to 2 hours. Hydrological and hydrodynamic data includes water depth and flow velocity, with a sampling interval of 10 minutes. Meteorological data includes photosynthetically active radiation, sunshine duration, air temperature, wind speed, wind direction, and rainfall, with a sampling frequency consistent with that for chlorophyll a.

[0021] Water exchange parameters are used to calculate the cyanobacterial flushing process. These parameters can be obtained from existing hydrological survey data of lakes within the target city, or determined based on inflow and outflow hydrological monitoring data. When using the WASP eutrophication module to calculate the cyanobacterial flushing process, the corresponding hydrological data should be used according to the format of the water exchange parameters required by the module. For water exchange parameters that change little within a single 24-hour prediction period, the parameters from the corresponding monitoring period can be used within that prediction period.

[0022] The raw monitoring data undergoes anomaly removal, missing data supplementation, and standardization or normalization. In this embodiment, anomaly data is identified using the 3σ criterion and sliding box plot method; data with a missing time of less than 3 sampling steps is supplemented using linear interpolation, while data with a missing time of 3 or more sampling steps is supplemented using K-nearest neighbor interpolation; subsequently, Min-Max normalization or Z-score standardization is used to process the data that needs to be input into the time series prediction model.

[0023] When used for intraday characteristic parameter calculation, the corresponding monitoring time series of each monitoring indicator is retained. When used for time series prediction models, data with different sampling frequencies are unified to the model time step. In this embodiment, a 1-hour model time step is used to summarize high-frequency monitoring data within an hourly range, so that the input data in the corresponding time step represents the water environment status within the same hourly range. For monitoring data with sampling intervals greater than the model time step, data for the corresponding model time step is formed by time matching based on data from adjacent sampling times. After time alignment, 24 historical time steps are formed for the 24 hours before the prediction date, and 24 prediction time steps are formed for the next 24 hours.

[0024] A supervised learning time-series dataset is constructed using a sliding window. Each training sample takes the historical input feature sequence of the 24 hours prior to the prediction date as input and the chlorophyll a time-series sequence of the following 24 hours as the prediction label. The historical samples are divided into training, validation, and test sets according to their chronological order, with proportions of 70%, 15%, and 15% respectively in this embodiment.

[0025] In step S2, the long-term chlorophyll a monitoring data is used to divide the data into a stable period, a pre-outbreak period, and an outbreak period. First, ordered clustering is used to divide the continuous historical chlorophyll a time-series data into segments, ensuring that the segments are continuous in time. The sliding Mann-Kendall mutation test is used to determine whether chlorophyll a shows a significant upward trend within the corresponding segment. Then, the growth stage of the corresponding segment is determined by combining the daily average value of chlorophyll a and the intra-day coefficient of variation.

[0026] During the stable phase, the daily average chlorophyll a value is below 50% of the chlorophyll a bloom threshold, the intraday coefficient of variation is less than 15%, and there is no significant upward trend. During the pre-outbreak phase, the daily average chlorophyll a value is greater than or equal to 50% of the chlorophyll a bloom threshold but lower than the threshold, the intraday coefficient of variation is greater than or equal to 15%, and the Mann-Kendall mutation test shows a significant upward trend at 95% confidence. During the outbreak phase, the daily average chlorophyll a value is greater than or equal to the chlorophyll a bloom threshold. Therefore, when the daily average chlorophyll a value exactly reaches the chlorophyll a bloom threshold, it is classified as an outbreak phase.

[0027] The chlorophyll a bloom threshold can be determined using the chlorophyll a concentration corresponding to a moderate bloom as specified in local, industry, or national standards applicable to the target water body. When actual bloom monitoring records have been accumulated for lakes within the target city, the chlorophyll a concentration corresponding to the actual bloom occurrence in that lake can also be used as the chlorophyll a bloom threshold.

[0028] After defining the growth stages, intraday characteristic parameters were calculated using a 24-hour sliding window for each of the three stages. This implementation method employed seven intraday characteristic parameters across three categories. These included: basic rhythmic characteristics such as intraday chlorophyll a increase, intraday coefficient of variation, and peak occurrence time shift; anomalous mutation characteristics such as hourly proliferation rate and the Z-statistic of the Mann-Kendall mutation test; and synergistic response characteristics such as the Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the intraday increase ratio of pH to chlorophyll a.

[0029] The intraday increase in chlorophyll a concentration is used to represent the magnitude of change in chlorophyll a concentration over 24 hours, and is expressed as follows: ; In the formula, The daily increase in chlorophyll a is expressed in μg / L. The value of chlorophyll a monitoring within a 24-hour time window is expressed in μg / L. The minimum value of chlorophyll a monitoring within a 24-hour time window is expressed in μg / L.

[0030] The intraday coefficient of variation is based on: ; In the formula, The coefficient of variation is the intraday variation. The standard deviation of chlorophyll a monitoring values ​​within a 24-hour time window; This represents the average value of chlorophyll a monitoring within a 24-hour time window.

[0031] Peak occurrence time offset is used as follows: ; In the formula, This represents the time offset of the peak occurrence, in hours. This corresponds to the time when the chlorophyll a peak occurs within a 24-hour time window; This represents the average time of chlorophyll a peak occurrence in historical samples during the stationary period. When the peak occurrence time is later than the average peak occurrence time during the stationary period, It is a positive value; when the peak occurs earlier, It is a negative value.

[0032] The hourly proliferation rate was determined based on two chlorophyll a concentrations spaced 1 hour apart, following the exponential growth relationship of chlorophyll a concentration over time. ; In the formula, The concentration of chlorophyll a at the current moment. This represents the chlorophyll a concentration at the start of that hour. The proliferation rate is measured in hours (h).-1 , The time interval between the two concentration data points is 1 hour in this embodiment.

[0033] The Z-statistic of the Mann-Kendall mutation test was obtained by performing the Mann-Kendall mutation test on the chlorophyll a time series data using a 4-hour sliding window. It is used to represent the significance of the chlorophyll a change trend within the corresponding time window.

[0034] The synchronous change relationship between dissolved oxygen and chlorophyll a was adopted using: ; In the formula, 1 represents the Pearson correlation coefficient between dissolved oxygen and chlorophyll a, DO represents the dissolved oxygen time series data within the same 24-hour time window, and chla represents the corresponding chlorophyll a time series data.

[0035] The ratio of pH to the intraday increase in chlorophyll a was used: ; In the formula, The ratio of pH to chlorophyll a intraday increase; The difference between the maximum and minimum pH values ​​within the same 24-hour time window; It represents the difference between the maximum and minimum values ​​of chlorophyll a within the same 24-hour time window.

[0036] For each growth stage, a corresponding historical sample set is created by combining the intraday characteristic parameters obtained from multiple 24-hour time windows. 95% confidence intervals for each intraday characteristic parameter are calculated based on the historical sample sets of the stationary phase, pre-outbreak phase, and outbreak phase, ensuring that the same statistical confidence level is applied to all three phases. For hourly proliferation rates requiring comparison using values ​​from a single phase, a phase reference value is determined based on the statistical mean of the historical hourly proliferation rate samples for the corresponding growth stage. The resulting 95% confidence intervals and phase reference values ​​together constitute the phased statistical results for the corresponding growth stage.

[0037] In step S3, the seven intraday characteristic parameters are obtained based on the actual monitoring data of the day before the forecast date, using the same calculation method as the historical statistics. Each intraday characteristic parameter is compared with the 95% confidence interval of the corresponding parameter during the stable period. When a parameter is lower than the lower limit of the corresponding 95% confidence interval or higher than the upper limit of the corresponding 95% confidence interval, the parameter is identified as an abnormal parameter.

[0038] The abnormal parameter ratio is adopted as follows: ; In the formula, The proportion of abnormal parameters; The number of outlier parameters that exceed the 95% confidence interval of the stationary period; This represents the total number of intraday characteristic parameters used in the judgment. This implementation method uses the aforementioned seven intraday characteristic parameters, therefore... .

[0039] In step S4, the theoretical net growth rate at each time step is obtained based on the cyanobacterial growth mechanism. The mechanism calculation uses the growth, respiration, sedimentation, and scour processes related to algal growth in the eutrophication module of the WASP water quality model.

[0040] The theoretical net growth rate is: ; In the formula, Let t be the theoretical net growth rate of cyanobacteria. Let t be the cyanobacteria growth term; For time t, the cyanobacterial respiration term is given. Let t be the cyanobacteria deposition term; Let t be the cyanobacteria flushing term at time t.

[0041] The cyanobacterial growth term was determined based on water temperature, light intensity, and nutrient conditions, following the algal growth treatment method in the WASP eutrophication module. The cyanobacterial respiration term was determined based on water temperature according to the corresponding temperature response relationship. The cyanobacterial sedimentation term was determined based on cyanobacterial sedimentation parameters and water depth. The cyanobacterial scour term was determined based on the water exchange parameters corresponding to the target city's inland lake. The theoretical net growth rate for the corresponding time step was obtained by subtracting the cyanobacterial respiration, cyanobacterial sedimentation, and cyanobacterial scour terms from the cyanobacterial growth term.

[0042] The theoretical net growth rate, used as a mechanistic feature, is combined with historical chlorophyll a data and actual water quality, hydrological, hydrodynamic, and meteorological monitoring data for 24-hour prediction. Model inputs include historical chlorophyll a time-series data, monitoring features such as pH, water temperature, dissolved oxygen, flow velocity, light duration, wind speed, and rainfall, as well as the theoretical net growth rate. Nutrient data such as total nitrogen and total phosphorus are used in the calculation of cyanobacterial growth mechanisms and can be used as input to the time-series prediction model based on feature selection results.

[0043] This implementation employs a GRU time-series prediction model incorporating a self-attention mechanism. The model includes an input section, a GRU time-series feature processing section, a self-attention processing section, and a future chlorophyll a sequence output section. The input feature sequences from the 24 hours prior to the prediction date are input into the GRU in chronological order. The GRU outputs the time-series features corresponding to each historical time step. The self-attention mechanism determines the weights of different historical time steps for future chlorophyll a prediction based on the historical time-series features output by the GRU, and performs weighted processing on the historical time-series features. Based on the weighted time-series features, the predicted chlorophyll a values ​​for the next 24 time steps are output.

[0044] During model training, the model parameters are adjusted using the historical 24-hour input feature sequences and the subsequent 24-hour chlorophyll a time-series sequences from the training set to reduce the difference between the model output and the predicted labels. The validation set is used to select the model parameter states with better prediction results, and the test set is used to evaluate the trained model. The number of hidden units, training epochs, and parameter update step size are determined based on the prediction results from the training and validation sets.

[0045] After obtaining the chlorophyll a prediction curve for the next 24 hours, the maximum predicted chlorophyll a value is determined as the prediction peak value, and the difference between the maximum and minimum predicted chlorophyll a values ​​for the next 24 hours is determined as the intraday increase in prediction. Based on two chlorophyll a prediction values ​​spaced 1 hour apart in the 24-hour prediction curve, the hourly proliferation rate is determined according to the same exponential growth relationship as the historical hourly proliferation rate, and the maximum value among them is taken as the predicted hourly maximum proliferation rate.

[0046] In step S5, the predicted daily increase is compared with the 95% confidence interval of the daily chlorophyll a increase during the stable period, the pre-outbreak period, and the outbreak period, respectively. The predicted hourly maximum proliferation rate is compared with the hourly proliferation rate stage reference values ​​for the three stages, and the outbreak risk level is determined by combining the relationship between the predicted peak value and the chlorophyll a bloom threshold and the proportion of abnormal parameters.

[0047] The risk of sudden algal blooms is assessed in the following order: red (high risk), orange (relatively high risk), yellow (medium risk), and blue (low risk).

[0048] When any of the following conditions are met: the predicted peak value reaches or exceeds the chlorophyll a bloom threshold; the predicted daily increase reaches or exceeds the lower limit of the 95% confidence interval for the daily chlorophyll a increase during the outbreak period; the predicted hourly maximum proliferation rate reaches or exceeds the reference value for the hourly proliferation rate during the outbreak period; or the proportion of abnormal parameters reaches or exceeds 80%, the risk level is determined to be red and high, and subsequent assessments of lower risk levels are stopped.

[0049] If the red high-risk level is not met, the risk level is assessed as orange relatively high-risk. The criteria for orange relatively high-risk include: the predicted peak value reaching 80% of the chlorophyll a bloom threshold but below it; the predicted daily increase reaching or exceeding the lower limit of the 95% confidence interval for daily chlorophyll a increase in the pre-outbreak phase; the predicted hourly maximum proliferation rate reaching or exceeding twice the reference value for the hourly proliferation rate in the pre-outbreak phase; and the proportion of abnormal parameters being greater than or equal to 50% but less than 80%. If any two of the above conditions are met, the risk level is determined to be orange relatively high-risk.

[0050] Yellow medium risk is defined as a condition that does not meet the red (high risk) or orange (relatively high risk) criteria. The criteria for determining yellow medium risk include: the predicted peak value reaching 50% but less than 80% of the chlorophyll a bloom threshold; the predicted daily increase exceeding the upper limit of the 95% confidence interval for daily chlorophyll a increase during the stable period; the predicted hourly maximum proliferation rate reaching or exceeding twice the reference value for the hourly proliferation rate during the stable period; and the proportion of abnormal parameters being greater than or equal to 20% but less than 50%. A yellow medium risk is defined as the condition meeting any two of the above criteria.

[0051] If the risk level does not reach the red (high risk), orange (relatively high risk), or yellow (medium risk) thresholds, it is classified as blue (low risk). Therefore, any set of input data can form a unique risk level for an algal bloom outbreak.

[0052] Once the risk level is determined, corresponding management information can be output. Blue (low risk) corresponds to routine monitoring; yellow (medium risk) corresponds to intensified monitoring and on-site inspections; orange (higher risk) corresponds to pollution source investigation and algae control preparations; and red (high risk) corresponds to emergency response. This management information is output after the risk level is determined and is not included in the aforementioned risk level calculation.

[0053] To adapt to seasonal changes and long-term alterations in the water environment of the target city's inland lakes, the phased statistical results can be updated according to a preset update cycle. When the daily, monthly, or seasonal update cycle arrives, the daily average chlorophyll a value, intraday coefficient of variation, and chlorophyll a change trend corresponding to the newly added monitoring data are used to determine whether the period is a stable phase, pre-outbreak phase, or outbreak phase. Intraday characteristic parameters are then calculated using the same method as historical data. The newly added intraday characteristic parameter samples are added to the historical sample set for the corresponding phase, and the 95% confidence intervals and phase reference values ​​for the corresponding intraday characteristic parameters are recalculated. Subsequent anomaly identification and future feature prediction comparisons utilize the phased statistical results from the most recent update.

[0054] The following explanation is further illustrated with specific application data.

[0055] This embodiment is applied to a closed urban lake in Zhongxiang City, Hubei Province. The lake has a water area of ​​approximately 0.16 km², an average water depth of approximately 1-1.5 m, and its inflow is mainly from rainfall runoff. The water exchange cycle is greater than 300 days, and historical algal monitoring results indicate that cyanobacterial blooms exist in the lake.

[0056] In-situ high-frequency monitoring stations were set up in the lake area, and a historical dataset was established based on monitoring data from September 2025 to January 2026. Based on the actual algal bloom situation in the lake, 25 μg / L was used as the chlorophyll a algal bloom threshold in this embodiment.

[0057] like Figure 2As shown, based on historical chlorophyll a time-series data, the cyanobacterial growth process is divided into a stable period, a pre-outbreak period, and an outbreak period. During the stable period, the daily average chlorophyll a value is below 12.5 μg / L, with a daily coefficient of variation less than 15% and no significant upward trend. During the pre-outbreak period, the daily average chlorophyll a value is greater than or equal to 12.5 μg / L but less than 25 μg / L, with a daily coefficient of variation greater than or equal to 15% and a significant Mann-Kendall upward trend. During the outbreak period, the daily average chlorophyll a value reaches or exceeds 25 μg / L.

[0058] Intraday characteristic statistics were compiled based on historical data from each stage. The intraday increase in chlorophyll a mainly ranged from 0 to 2 μg / L during the stable period, from 2 to 3.5 μg / L during the pre-outbreak phase, and from 3.5 to 10 μg / L during the outbreak phase. The peak chlorophyll a concentration occurred around 16:00 during the stable period, around 23:00 during the pre-outbreak phase, and around 9:00 during the outbreak phase. Based on the average peak concentration time during the stable period, the corresponding peak concentration time deviations were approximately 0h, 7h, and -7h, respectively.

[0059] The reference values ​​for the hourly proliferation rate during the steady-state, pre-explosive, and explosive phases are approximately 0.008 h. -1 0.016h -1 and 0.046h -1 The Pearson correlation coefficient between dissolved oxygen and chlorophyll a mainly ranged from 0.55 to 0.72 during the stable period, from 0.70 to 0.94 during the pre-outbreak period, and showed a negative correlation during the outbreak period, mainly ranging from -0.68 to -0.42. The reference values ​​for the ratio of pH to intraday increase in chlorophyll a during the stable period, the pre-outbreak period, and the outbreak period were approximately 0.185, 0.173, and 0.139, respectively.

[0060] like Figure 3 As shown, for the predicted date D1, the proportion of abnormal parameters calculated based on the actual monitoring data of the day before D1 is between 20% and 50%. The predicted peak value of chlorophyll a in the next 24 hours is approximately 20.09 μg / L, accounting for 80.36% of the 25 μg / L chlorophyll a bloom threshold; the predicted intraday increase is approximately 0.71 μg / L, which is within the historical range of intraday chlorophyll a increase during a stable period; the predicted maximum hourly proliferation rate is approximately 0.036 h. -1 This exceeds the reference value of 0.016h for the pre-outbreak hourly proliferation rate stage. -1 It is twice that of the peak proliferation rate, but lower than the reference value of 0.046 h during the hourly proliferation phase of the outbreak. -1 .

[0061] D1 does not meet the criteria for a red high-risk day. Its predicted peak value is between 80% and 100% of the chlorophyll a bloom threshold, and its predicted hourly maximum proliferation rate is more than twice the reference value for the hourly proliferation rate stage before the outbreak. It meets the two criteria for an orange high-risk day, therefore D1 is determined to be an orange high-risk day.

[0062] like Figure 4 As shown, for the predicted D2 date, the proportion of abnormal parameters calculated based on the actual monitoring data of the day before D2 is between 50% and 80%. The predicted peak value of chlorophyll a in the next 24 hours is approximately 21.49 μg / L; the predicted intraday increase is approximately 3.84 μg / L, reaching the statistical range corresponding to the intraday increase of chlorophyll a during the outbreak period; the predicted maximum hourly proliferation rate is approximately 0.106 h. -1 It is higher than the reference value for the hourly proliferation rate stage during the outbreak period.

[0063] Since the predicted daily increase rate has reached the level corresponding to the outbreak period, and the predicted hourly maximum proliferation rate has reached or exceeded the reference value for the outbreak period, day D2 is designated as a red high-risk day.

[0064] This invention also provides an early warning system for sudden algal blooms in urban lakes, implementing the above-described method. The system is applied to target urban lakes where cyanobacteria are the main algal bloom group, and includes a data acquisition device, a processor, a memory, and an early warning output device.

[0065] The data acquisition system includes a chlorophyll a monitoring unit, a water quality monitoring unit, a hydrological and hydrodynamic monitoring unit, and a meteorological monitoring unit. Each monitoring unit acquires monitoring data according to its corresponding sampling frequency and sends the data to a processor or memory. Water exchange parameters are obtained based on hydrological and hydrodynamic monitoring data of the target city's inland lakes or existing hydrological survey data.

[0066] The memory stores historical chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological data, 95% confidence intervals and stage reference values ​​of intraday characteristic parameters for each growth stage, a trained time-series prediction model, and a computer program for executing the above methods.

[0067] The processor first divides the chlorophyll a period into a stationary phase, a pre-outbreak phase, and an outbreak phase based on historical chlorophyll a time-series data. For each of these three phases, it calculates seven intraday characteristic parameters, generating 95% confidence intervals and reference values ​​for each phase. The seven intraday characteristic parameters are: intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time shift, hourly proliferation rate, the Z-statistic of the Mann-Kendall mutation test, the Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the ratio of pH to intraday chlorophyll a increase.

[0068] When issuing an early warning, the processor calculates the above seven intraday characteristic parameters based on the monitoring data of the day before the forecast date, compares them with the 95% confidence interval of the corresponding parameters during the stable period, identifies parameters that exceed the corresponding 95% confidence interval as abnormal parameters, and determines the proportion of abnormal parameters.

[0069] The processor further obtains the theoretical net growth rate at each time step based on the cyanobacterial growth, respiration, sedimentation and scouring processes characterized by the WASP eutrophication module. The theoretical net growth rate, together with historical chlorophyll a, water quality, hydrological and hydrodynamic and meteorological time series data, are input into the GRU time series prediction model with self-attention mechanism to obtain the chlorophyll a prediction curve for the next 24 hours.

[0070] The processor obtains the predicted peak value, predicted daily increase, and predicted hourly maximum proliferation rate from the chlorophyll a prediction curve. It compares the predicted daily increase with the 95% confidence interval of the daily chlorophyll a increase for the three growth stages, and compares the predicted hourly maximum proliferation rate with the hourly proliferation rate stage reference value for the three growth stages. Then, it combines the proportion of abnormal parameters and the relationship between the predicted peak value and the chlorophyll a bloom threshold to determine the bloom outbreak risk level according to the same risk grading rules as the aforementioned method.

[0071] The early warning output device outputs the blue low risk, yellow medium risk, orange relatively high risk, or red high risk as determined by the processor, and can output management information corresponding to the corresponding risk level.

[0072] The calculation methods for various intraday characteristic parameters, the method for obtaining the theoretical net growth rate of cyanobacteria, the chlorophyll a prediction process for the next 24 hours, the phased statistical results, and the risk level judgment relationship in the above system are all consistent with the aforementioned implementation methods.

[0073] For urban lakes where cyanobacteria are the main algal bloom group, the historical monitoring data of the corresponding target urban lake can be used to determine the chlorophyll a bloom threshold and the intraday characteristic statistical results corresponding to the stable period, the pre-outbreak period and the outbreak period. The current anomaly identification, chlorophyll a change prediction for the next 24 hours and the determination of the risk level of sudden algal bloom can be completed according to the above processing procedure.

[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for early warning of sudden algal blooms in urban lakes, characterized in that, include: S1. Obtain chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological time series data, and water exchange parameters for urban lakes in the target city where cyanobacteria are the main algal bloom group. S2. Based on historical chlorophyll a time series data, the period is divided into a stable period, a pre-outbreak period, and an outbreak period. For each stage, intraday characteristic parameters are calculated based on historical data, and 95% confidence intervals and stage reference values ​​for the intraday characteristic parameters of each stage are formed. Intraday characteristic parameters include intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time shift, hourly proliferation rate, Z-statistic of Mann-Kendall mutation test, Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the ratio of pH to intraday chlorophyll a increase. S3. Calculate the intraday characteristic parameters based on the time series data of the day before the forecast date, identify the intraday characteristic parameters that exceed the 95% confidence interval of the corresponding parameters in the stable period as abnormal parameters, and determine the proportion of abnormal parameters; S4. Based on the growth mechanism of cyanobacteria, the theoretical net growth rate at each time step is obtained. The theoretical net growth rate is then fused with historical chlorophyll a, water quality, hydrological and hydrodynamic and meteorological time series data to make time series predictions, and the chlorophyll a prediction curve for the next 24 hours is obtained. The predicted peak value, predicted intraday increase and predicted hourly maximum proliferation rate are obtained from the chlorophyll a prediction curve. S5. Compare the predicted intraday increase and the predicted hourly maximum proliferation rate with the 95% confidence intervals and stage reference values ​​of the corresponding intraday characteristic parameters during the stable period, the pre-outbreak period, and the outbreak period, respectively. Based on the comparison results, the proportion of abnormal parameters, and the relationship between the predicted peak value and the chlorophyll a bloom threshold, determine the bloom outbreak risk level according to the preset risk classification rules.

2. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The division of the period into stationary phase, pre-outbreak phase, and outbreak phase based on historical chlorophyll a time-series data includes: The historical chlorophyll a time series data were divided into continuous segments using ordered clustering, and the sliding Mann-Kendall mutation test was used to determine the trend of chlorophyll a changes. The growth stage corresponding to each continuous segment is determined based on the daily average value of chlorophyll a, the intra-day coefficient of variation, and the trend of chlorophyll a change. During the stable period, the daily average value of chlorophyll a was less than 50% of the chlorophyll a bloom threshold, the intra-day coefficient of variation was less than 15%, and there was no obvious upward trend. In the early stage of the outbreak, the daily average value of chlorophyll a was greater than or equal to 50% of the chlorophyll a bloom threshold and lower than the chlorophyll a bloom threshold, the intraday coefficient of variation was greater than or equal to 15%, and the Mann-Kendall mutation test showed a significant upward trend at 95% confidence level. During the outbreak period, the daily average value of chlorophyll a is greater than or equal to the chlorophyll a bloom threshold.

3. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The calculation of intraday characteristic parameters based on historical data for each stage includes: A 24-hour sliding window was used for the stable period, the pre-outbreak period, and the outbreak period, respectively. The intraday increase in chlorophyll a is the difference between the maximum and minimum values ​​of chlorophyll a within 24 hours. The intraday coefficient of variation is determined as the ratio of the standard deviation to the mean of chlorophyll a monitoring values ​​over 24 hours, and is expressed as a percentage. The peak occurrence time offset is the difference between the measured peak occurrence time of chlorophyll a and the average peak occurrence time of chlorophyll a during the stationary period; The hourly proliferation rate was determined based on two chlorophyll a concentrations spaced 1 hour apart, according to the exponential growth relationship of chlorophyll a concentration over time. The Z-statistic of the Mann-Kendall mutation test was obtained by performing the Mann-Kendall mutation test on chlorophyll a time series data using a 4-hour sliding window. The Pearson correlation coefficient between dissolved oxygen and chlorophyll a was determined based on dissolved oxygen time-series data and chlorophyll a time-series data within the same 24-hour time window. The ratio of daily pH increase to chlorophyll a increase is determined based on the ratio of daily pH increase to daily chlorophyll a increase within the same 24-hour time window.

4. The method for early warning of sudden algal blooms in urban lakes according to claim 2, characterized in that, The 95% confidence intervals and stage reference values ​​for forming intraday characteristic parameters at each stage include: A historical sample set is formed by combining the same intraday feature parameters corresponding to multiple 24-hour time windows within the same growth stage. The 95% confidence intervals of various intraday characteristic parameters were calculated based on historical sample sets from the stable period, the pre-outbreak period, and the outbreak period, respectively. Based on the historical sample set of each stage, the stage reference values ​​of the corresponding intraday characteristic parameters are determined, where the stage reference value of the hourly proliferation rate is the statistical mean of the historical hourly proliferation rate samples of the corresponding growth stage.

5. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The process involves calculating various intraday characteristic parameters based on time-series data from the day before the forecast date, identifying intraday characteristic parameters that exceed the 95% confidence interval of the corresponding parameters during the stable period as anomalous parameters, and determining the proportion of anomalous parameters, including: Based on the time-series data of chlorophyll a, dissolved oxygen, and pH from the day before the forecast date, various intraday characteristic parameters are obtained using the same calculation method as historical data. Each intraday characteristic parameter is compared with the 95% confidence interval of the corresponding intraday characteristic parameter during the stable period; Intraday characteristic parameters that are lower than the lower limit of the corresponding 95% confidence interval or higher than the upper limit of the corresponding 95% confidence interval are identified as anomalous parameters; The proportion of abnormal parameters is determined by the ratio of the number of abnormal parameters to the total number of intraday characteristic parameters used in the judgment.

6. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The theoretical net growth rate at each time step obtained based on the cyanobacteria growth mechanism includes: A model of cyanobacterial growth mechanism was established based on the eutrophication module of the WASP water quality model. The cyanobacterial growth mechanism model includes cyanobacterial growth, cyanobacterial respiration, cyanobacterial sedimentation, and cyanobacterial flushing components; The cyanobacterial growth item is determined based on water temperature, light, and nutrient conditions; the cyanobacterial respiration item is determined based on water temperature; the cyanobacterial sedimentation item is determined based on cyanobacterial sedimentation parameters and water depth; and the cyanobacterial flushing item is determined based on water exchange parameters. The theoretical net growth rate at each time step is determined by subtracting the cyanobacterial respiration, cyanobacterial sedimentation, and cyanobacterial flushing terms from the cyanobacterial growth term. Water exchange parameters are obtained from hydrological survey data of lakes in the target city or hydrological monitoring data of inflow and outflow.

7. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The method of fusing theoretical net growth rate with historical chlorophyll a, water quality, hydrological and hydrodynamic, and meteorological time-series data for time-series prediction includes: The monitoring data with different sampling frequencies are time-aligned according to a unified model time step; The input feature sequence is composed of historical chlorophyll a, screened water quality, hydrological and hydrodynamic and meteorological time series data, and theoretical net growth rate at each time step. The input feature sequence of the 24 hours before the prediction date is used as the historical input window, and the chlorophyll a time series sequence of the next 24 hours is used as the prediction label to establish training samples. The input feature sequence is input into the GRU time series prediction model with a self-attention mechanism. The GRU obtains time series features based on the historical input sequence, and the self-attention mechanism determines the weights corresponding to different historical time steps based on the historical time series features output by the GRU, and outputs the predicted chlorophyll a value for the next 24 hours based on the weighted time series features.

8. The method for early warning of sudden algal blooms in urban lakes according to claim 1, characterized in that, The method of obtaining the predicted peak value, predicted intraday increase, and predicted hourly maximum proliferation rate from the chlorophyll a prediction curve includes: The maximum value among the predicted chlorophyll a values ​​for the next 24 hours is determined as the predicted peak value; The difference between the maximum and minimum values ​​of chlorophyll a predicted for the next 24 hours is determined as the intraday increase in the forecast. Based on two chlorophyll a predicted values ​​1 hour apart in the chlorophyll a prediction curve for the next 24 hours, the hourly proliferation rate is determined according to the same exponential growth relationship as the historical hourly proliferation rate, and the maximum value among them is determined as the predicted hourly maximum proliferation rate.

9. The method for early warning of sudden algal blooms in urban lakes according to claim 4, characterized in that, The determination of the risk level of an algal bloom outbreak according to the preset risk classification rules includes: The risk level is determined in the following order: red (high risk), orange (relatively high risk), yellow (medium risk), and blue (low risk). A site is designated as high-risk (red) if any of the following conditions are met: the predicted peak value is greater than or equal to the chlorophyll a bloom threshold; the predicted daily increase is greater than or equal to the lower limit of the 95% confidence interval for the daily chlorophyll a increase during the outbreak period; the predicted hourly maximum proliferation rate is greater than or equal to the reference value for the hourly proliferation rate during the outbreak period; or the proportion of abnormal parameters is greater than or equal to 80%. An orange-level high-risk area is defined as an area not meeting the red high-risk criteria but satisfying any two of the following conditions: the predicted peak value is greater than or equal to 80% of the chlorophyll a bloom threshold but less than the chlorophyll a bloom threshold; the predicted daily increase is greater than or equal to the lower limit of the 95% confidence interval for the daily chlorophyll a increase in the pre-outbreak period; the predicted hourly maximum proliferation rate is greater than or equal to twice the reference value for the hourly proliferation rate in the pre-outbreak period; and the proportion of abnormal parameters is greater than or equal to 50% but less than 80%. A plant is classified as yellow (medium risk) if it does not meet the red (high risk) or orange (relatively high risk) criteria and meets any two of the following conditions: the predicted peak value is greater than or equal to 50% of the chlorophyll a bloom threshold but less than 80% of the chlorophyll a bloom threshold; the predicted daily increase is higher than the upper limit of the 95% confidence interval for the daily chlorophyll a increase during the stable period; the predicted hourly maximum proliferation rate is greater than or equal to twice the reference value for the hourly proliferation rate during the stable period; and the proportion of abnormal parameters is greater than or equal to 20% but less than 50%. If the risk level does not reach the red (high risk), orange (relatively high risk), or yellow (medium risk) thresholds, it is classified as blue (low risk).

10. The method for early warning of sudden algal blooms in urban lakes according to claim 4, characterized in that, The 95% confidence intervals and stage reference values ​​for forming the intraday characteristic parameters at each stage also include: When the preset daily, monthly or quarterly update cycle is reached, the newly added monitoring data in the corresponding update cycle is determined as data of the stable period, the pre-outbreak period or the outbreak period based on the daily average value of chlorophyll a, the intraday coefficient of variation and the chlorophyll a change trend. Calculate the corresponding intraday characteristic parameters based on the newly added monitoring data, and update the historical sample set for the corresponding growth stage; Based on the updated historical sample set, the 95% confidence intervals and stage reference values ​​of the intraday characteristic parameters for the corresponding growth stages were recalculated.

11. A system for early warning of sudden algal blooms in urban lakes, used to execute the method for early warning of sudden algal blooms in urban lakes as described in any one of claims 1-10; characterized in that, include: The data acquisition device is used to acquire chlorophyll a, water quality, hydrological and hydrodynamic data, meteorological time series data, and water exchange parameters of urban lakes in the target city where cyanobacteria are the main algal bloom group. The memory is used to store historical monitoring data, phased statistical results of intraday characteristic parameters, and computer programs. Intraday characteristic parameters include intraday chlorophyll a increase, intraday coefficient of variation, peak occurrence time offset, hourly proliferation rate, Z statistic of Mann-Kendall mutation test, Pearson correlation coefficient between dissolved oxygen and chlorophyll a, and the intraday increase ratio of pH to chlorophyll a. The processor is used to divide the period into stable phase, pre-outbreak phase, and outbreak phase based on historical chlorophyll a time-series data. It calculates intraday characteristic parameters for each phase based on historical data and generates 95% confidence intervals and reference values ​​for these parameters. It also calculates intraday characteristic parameters based on time-series data from the day before the forecast date, identifying those exceeding the 95% confidence interval for the corresponding parameters in the stable phase as anomalous parameters and determining their proportion. Based on the cyanobacterial growth mechanism, it obtains the theoretical net growth rate for each time step and integrates this rate with historical chlorophyll a, water quality, hydrological and hydrodynamic, and meteorological time-series data to obtain a chlorophyll a prediction curve for the next 24 hours. From the chlorophyll a prediction curve, it obtains the predicted peak value, predicted intraday increase, and predicted hourly maximum proliferation rate. It compares the predicted intraday increase and predicted hourly maximum proliferation rate with the 95% confidence intervals and reference values ​​for the corresponding intraday characteristic parameters in the stable phase, pre-outbreak phase, and outbreak phase, respectively. Based on the comparison results, the proportion of anomalous parameters, and the relationship between the predicted peak value and the chlorophyll a bloom threshold, it determines the bloom outbreak risk level. Early warning output device, used to output the risk level of sudden algal bloom.