Algal bloom warning method, device, electronic equipment and storage medium

Through the combination of fuzzy logic controller and LSTM model, key indicators are screened and an algae bloom early warning model is constructed, which solves the problem of insufficient accuracy of algae bloom early warning models in the existing technology and achieves more accurate algae bloom prediction and early warning.

CN118134061BActive Publication Date: 2024-10-11HEBEI SAILHERO ENVIRONMENTAL PROTECTION HIGH TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410557887.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-10-11
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

The existing technology has not yet reached a satisfactory level in terms of the accuracy of algae bloom early warning models, especially in considering the comprehensive impact of water quality and meteorological factors, resulting in inaccurate prediction results.

Method used

A fuzzy logic controller combined with a long short-term memory network (LSTM) model is used to obtain historical comprehensive data, screen out key indicators and build a highly adaptable algae bloom early warning model, taking into account the algae growth mechanism and regional environmental characteristics to improve prediction accuracy.

Benefits of technology

It improves the accuracy and efficiency of the algae bloom early warning model, can capture algae growth trends more accurately, reduces the impact of noise, enhances the ability to predict algae bloom events, and reduces early warning delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118134061B_ABST
    Figure CN118134061B_ABST
Patent Text Reader

Abstract

The present application provides an algal bloom warning method, device, electronic device and storage medium, which relate to the field of water environment prediction technology. The method includes: obtaining historical comprehensive data within a target time period corresponding to the target monitoring area, and obtaining a fuzzy logic controller corresponding to the target monitoring area; inputting the historical comprehensive data into the fuzzy logic controller to determine the reference index, and selecting a target driven prediction model from the driving prediction model according to the reference index; wherein the reference index is a partial index type in the historical comprehensive data; the driving prediction model includes a water quality driven prediction model, a common driven prediction model and a meteorological driven prediction model; selecting data from the historical comprehensive data according to the reference index to construct a training data set, training the target driven prediction model based on the training data set, determining the algal bloom warning model, and performing algal bloom warning monitoring based on the algal bloom warning model. The present application can improve the accuracy of water quality prediction and improve the efficiency of algal bloom warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water environment prediction, and in particular to an algal bloom early warning method, device, electronic device and storage medium. Background Art

[0002] Lakes and reservoirs are important freshwater resource storage facilities and an integral part of the life community of mountains, rivers, forests, fields, lakes and grasses. However, the environmental capacity of lakes and reservoirs is small and the ecosystem is sensitive. In recent years, due to the influence of climate change and human activities, the eutrophication of lakes and reservoirs has become prominent, and the resulting cyanobacterial bloom has become the most prominent problem that troubles people. Once an algae bloom breaks out, it has the characteristics of great harm, long time-consuming governance, high cost, and insignificant effect. Therefore, improving the accuracy of algae bloom warning is the preferred solution to ensure the ecological safety of eutrophic lakes and reservoirs. There are many factors that affect the bloom of lakes and reservoirs, such as water quality (total phosphorus, total nitrogen, etc.), air temperature, light conditions, water temperature, pH value, dissolved oxygen, turbidity, etc. Therefore, screening and classification of indicators before prediction can reduce the data pressure of the prediction model and improve the accuracy of model prediction.

[0003] At present, regarding the technical research on the water bloom warning data-driven model, patent CN202111601033.8 discloses a water bloom warning method based on chaos theory and BP neural network. Different activation functions are used to train several indicators of water bloom warning models based on BP neural network, and then the predicted values ​​of the output indicators are input into the BP neural network as input values ​​to train a combined BP neural network model. However, this method is complicated, and the BP neural network has problems such as overfitting and gradient explosion, which affect the model performance.

[0004] Patent CN202310043219.9 discloses an algal bloom outbreak prediction method and application based on machine learning. It uses common water quality indicators as input features of the machine learning model and an artificial minority class oversampling algorithm to solve the problem of data category imbalance and improve the accuracy of algal bloom outbreak level prediction. However, this method mainly solves the problem of data imbalance and still uses traditional machine learning algorithms in the prediction method.

[0005] Patent CN201911225346.0 discloses a rapid early warning method for cyanobacteria blooms in water source reservoirs. The patent constructs a model based on historical algae concentration data, temperature changes and characteristic algae concentrations of normal cyanobacteria blooms. It is a cyanobacteria bloom early warning method based on algae concentration monitoring. However, the method does not consider the influence of other water quality indicators such as water quality, water temperature, pH value, dissolved oxygen, etc. in terms of data; the method is mainly manual calculation, which requires high professionalism of operators and is difficult to promote.

[0006] Patent CN201510294300.X discloses a method for predicting cyanobacteria blooms in lakes and reservoirs based on an expert system and a time series model of cyanobacteria growth mechanism, which uses expert system method, mechanism time series model method, absolute threshold and relative threshold modeling methods for prediction. The prediction method is based on environmental factors or water quality factors, giving different methods respectively, making water quality completely independent of the environment, and requiring a lot of manual operation.

[0007] Therefore, the model prediction accuracy of existing technologies in water quality monitoring and prediction needs to be improved. Summary of the invention

[0008] The embodiments of the present application provide an algal bloom early warning method, device, electronic device and storage medium to solve the problem that the accuracy of model prediction in water quality monitoring and prediction needs to be improved.

[0009] In a first aspect, an embodiment of the present application provides an algal bloom early warning method, comprising:

[0010] Acquire historical comprehensive data within a target time period corresponding to the target monitoring area; wherein the historical comprehensive data includes: water quality data and meteorological data;

[0011] Input the historical comprehensive data into the fuzzy logic controller corresponding to the target monitoring area to determine the reference index, and select the target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is a part of the index type in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model;

[0012] According to the reference index, data is selected from the historical comprehensive data to construct a training data set, the target-driven prediction model is trained based on the training data set, an algal bloom warning model is determined, and algal bloom warning monitoring is performed based on the algal bloom warning model.

[0013] In a possible implementation, inputting the historical comprehensive data into a fuzzy logic controller corresponding to the target monitoring area to determine a reference index includes:

[0014] inputting the historical comprehensive data into the fuzzy logic controller;

[0015] According to the fuzzy logic control rule, an index whose degree of change exceeds a preset range is determined as a reference index.

[0016] In a possible implementation manner, before obtaining the fuzzy logic controller corresponding to the target monitoring area, the method further includes:

[0017] Establish the fuzzy logic control algorithm corresponding to the fuzzy logic controller;

[0018] Designing fuzzy logic control rules corresponding to the fuzzy logic control algorithm;

[0019] Wherein, the fuzzy logic control algorithm is selected from fuzzy statistics, binary comparison and sorting method, expert experience method or triangular membership function.

[0020] In a possible implementation, the reference indicator selects a target driving prediction model from the driving prediction model, including:

[0021] Determining the indicator type of the reference indicator;

[0022] When the indicator types of the reference indicators are all water quality indicators, selecting the water quality driven prediction model as the target driven prediction model;

[0023] When the indicator types of the reference indicators are all meteorological indicators, the meteorological driven prediction model is selected as the target driven prediction model;

[0024] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, the common driving prediction model is selected as the target driving prediction model.

[0025] In a possible implementation, selecting data from the historical comprehensive data according to the reference indicator to construct a training data set includes:

[0026] When the indicator types of the reference indicators are all water quality indicators, water quality data are selected to construct a training data set;

[0027] When the indicator types of the reference indicators are all meteorological indicators, meteorological data are selected to construct a training data set;

[0028] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are selected to construct a training data set.

[0029] In a possible implementation, the water quality indicators in the water quality data include total phosphorus, total nitrogen, permanganate index, ammonia nitrogen, water temperature, pH value, dissolved oxygen turbidity, conductivity and chlorophyll a;

[0030] The meteorological indicators in the meteorological data include rainfall, temperature, illuminance, wind speed and wind direction.

[0031] In a possible implementation, the driving prediction model is constructed based on a long short-term memory network (Long Short-Term Memory, LSTM).

[0032] In a second aspect, an embodiment of the present application provides an algal bloom warning device, comprising:

[0033] An acquisition module is used to acquire historical comprehensive data within a target time period corresponding to a target monitoring area; wherein the historical comprehensive data includes: water quality data and meteorological data;

[0034] An input module, used for inputting the historical comprehensive data into a fuzzy logic controller corresponding to the target monitoring area to determine a reference index;

[0035] A selection module is used to select a target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is a partial index type in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model;

[0036] A training module, used to select data from the historical comprehensive data according to the reference index to construct a training data set, train the target-driven prediction model based on the training data set, and determine an algal bloom warning model;

[0037] An early warning module is used to perform early warning monitoring of algal blooms based on the algal bloom early warning model.

[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation of the first aspect are implemented.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the method described in the first aspect or any possible implementation method of the first aspect.

[0040] The embodiments of the present application provide an algae bloom warning method, device, electronic device and storage medium, which obtains historical comprehensive data within the target time period corresponding to the target monitoring area and inputs it into the fuzzy logic control rules formulated based on the algae growth mechanism, the geographical environment and meteorological environment of the target monitoring area, fully considers the factors affecting algae growth, and the characteristics of the monitoring area, and improves the correlation between the selected reference indicators and the algae growth in the target monitoring area. Furthermore, according to the typical reference indicators determined in the target time period, an adaptive driving prediction model and a training data set are selected, and the driving prediction model is trained according to the training data set to obtain an algae bloom warning model, so as to ensure that the prediction accuracy of algae growth can be improved based on the algae bloom warning model, and the signs of algae bloom can be captured in time, thereby improving the efficiency of warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 This is a flow chart of an implementation of an algal bloom early warning method provided in an embodiment of the present application;

[0043] Figure 2 is a flow chart of an implementation of an algal bloom early warning method provided by another embodiment of the present application;

[0044] Figure 3 It is a structural schematic diagram of an algae bloom early warning device provided in one embodiment of the present application;

[0045] Figure 4 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0046] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0047] The terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0048] Unless otherwise specified, the term "plurality" means two or more. The character " / " indicates that the objects before and after are in an "or" relationship. For example, A / B means: A or B. The term "and / or" is a description of the association relationship between objects, indicating that there can be three relationships. For example, A and / or B means: A or B, or, A and B.

[0049] The words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method or device including the elements.

[0050] In this application, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts may refer to the description of the method part.

[0051] This paper proposes a water bloom early warning method based on intelligent indicator screening and prediction model. Intelligent indicator screening is to introduce fuzzy control mechanism at the front end of LSTM. This method first constructs screening influencing indicators based on fuzzy control and rule base, and then realizes prediction through neural network model. Intelligent indicator screening solves the problem of large model input noise caused by a wide variety of influencing indicators. The LSTM model solves the problem of gradient disappearance during long sequence training of traditional neural network models, adaptively mines the characteristic information of data, and also combines the algae growth mechanism with the data-driven model, which can effectively enhance the expression of key data information by the prediction model and improve the accuracy of the model.

[0052] Algal bloom is a phenomenon caused by excessive growth of algae in water bodies. Therefore, the algal bloom warning in this application is the prediction of the formation of algae. The formation of algae is affected by multiple factors such as water quality and meteorology. Therefore,

[0053] In order to make the purpose, technical solutions and advantages of the present application clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0054] Figure 1 is a flowchart of an implementation of an algal bloom early warning method provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0055] S101, obtaining historical comprehensive data within a target time period corresponding to a target monitoring area, wherein the historical comprehensive data includes: water quality data and meteorological data.

[0056] The growth of algae is a complex process, which is affected by a variety of factors. Examples are as follows:

[0057] 1. Algae need nutrients to grow, especially nutrients such as nitrogen and phosphorus. When there are too many nutrients in the water, it will stimulate the growth of algae and promote the formation of algal blooms.

[0058] 2. Algae are highly dependent on photosynthesis. Adequate light can promote the growth of algae. Under suitable light conditions, algae will more easily form algae blooms.

[0059] 3. Water temperature also has an important influence on the growth of algae. Generally speaking, higher water temperature is conducive to the growth of algae, especially for some warm water algae.

[0060] 4. The pH of the water may also affect the growth of algae. Although different types of algae have different adaptability to pH values, extreme acidic or alkaline conditions may inhibit the growth of algae.

[0061] The dissolved oxygen content in the water is also very important for the growth of algae. Hypoxic or low oxygen conditions may limit the growth of algae, but some algae can adapt to low oxygen environments.

[0062] In one possible implementation, the water quality indicators in the water quality data include total phosphorus, total nitrogen, permanganate index, ammonia nitrogen, water temperature, pH value, dissolved oxygen turbidity, conductivity and chlorophyll a; the meteorological indicators in the meteorological data include rainfall, temperature, illuminance, wind speed and wind direction.

[0063] Among them, the units of total phosphorus, total nitrogen, permanganate index, ammonia nitrogen and dissolved oxygen turbidity are mg / L; the unit of water temperature is ℃, the unit of chlorophyll a is μg / L; pH value and conductivity are dimensionless. The unit of rainfall is mm, the unit of temperature is ℃, the unit of illuminance is lx, the unit of wind speed is m / s, and the unit of wind direction is degree.

[0064] In view of the discussion on algae growth, first of all, in different regions, due to different geographical and meteorological environments, water quality will also be different accordingly. Therefore, before making a prediction, it is necessary to obtain historical comprehensive data of the target monitoring area for analysis. Secondly, in order to ensure the relevance of historical comprehensive data and prediction results, relevant data close to the prediction time are obtained according to the prediction time. Then, in view of the fact that algae growth is affected by a variety of factors, in order to ensure a comprehensive analysis of algae development and improve the accuracy of algal bloom prediction, the two types of information, water quality data and meteorological data, are comprehensively considered for prediction.

[0065] The target time period is a set time period before the forecast time. Optionally, in different embodiments, the set time period corresponds to a time length of 1 day, 1 week, 1 month or 1 quarter.

[0066] In the specific implementation process, the prediction process is started in different ways.

[0067] In one possible implementation, the prediction process is started on a scheduled basis. Optionally, the prediction is started on a daily, weekly, monthly or quarterly basis. Based on the scheduled prediction method, no matter how the water quality and meteorological conditions change, the prediction process can be carried out according to the preset cycle, ensuring the continuity and stability of the prediction.

[0068] In another possible implementation, the prediction process is initiated in response to a user instruction, a change in water quality, or a change in weather.

[0069] In the specific implementation process, especially under severe weather conditions, meteorological changes may cause fluctuations in water quality, which in turn triggers explosive growth of algae and forms algal blooms. In this case, the prediction process is initiated in response to user instructions, water quality changes or meteorological changes, which can capture signs of algal blooms in a timely manner and improve the efficiency of early warning.

[0070] In addition, this activation method also helps to better respond to and deal with algal bloom events. When the user issues an instruction or water quality or meteorological conditions change, the early warning system can immediately start the forecast, making it convenient to quickly take corresponding measures to reduce the impact of algal blooms on water resources and the water environment.

[0071] In another possible implementation, the prediction process is initiated at a scheduled time and can be initiated in response to user instructions, changes in water quality, or changes in weather.

[0072] Based on the dual-start method, it can not only ensure the continuity and stability of the forecast, but also improve the accuracy of algal bloom warning, enhance the ability to respond to algal bloom events, effectively prevent and control algal bloom, and protect water resources and water environment.

[0073] S102, input the historical comprehensive data into the fuzzy logic controller corresponding to the target monitoring area to determine the reference index, and select the target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is some indicator types in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model.

[0074] Among them, the fuzzy logic control rules in the fuzzy logic controller are formulated according to the algae growth mechanism, the geographical environment and meteorological environment of the target monitoring area. This control rule can fully consider the factors affecting algae growth and the characteristics of the monitoring area, making the prediction results more accurate.

[0075] Fuzzy logic control rules are highly adaptable and robust, and can cope with the complexity and uncertainty of the algae growth environment. When the environment changes, fuzzy logic can automatically adjust the control strategy to analyze from historical comprehensive data some indicator types that are more likely to cause rapid algae growth in the target monitoring area in the present and future, and use them as reference indicators to help accurately warn of algae blooms and formulate targeted control strategies to avoid algae blooms and protect water quality and the ecological environment.

[0076] Among them, the driving prediction model is divided into three categories. On the one hand, it solves the problem of large model input noise caused by a wide variety of influencing indicators, enhances the expression of key data information, improves model accuracy, and shortens training time. On the other hand, factors such as algae growth mechanism and regional characteristics are combined into the data-driven model through indicator screening and prediction model classification, which solves the limitations of pure data drive and is more reasonable and effective. In addition, the co-driven prediction model fully considers that water quality and meteorology are mutually influential and interrelated. Therefore, not only a water quality-driven prediction model and a meteorological-driven prediction model are set up, but also a co-driven prediction model that includes water quality and meteorological factors is set up. This comprehensive model not only enhances the adaptability and accuracy of the model, but also helps to more comprehensively understand and predict the changing trend of algae growth, and then make more accurate predictions of algae growth.

[0077] Therefore, selecting the target driven prediction model from the driven prediction model based on the reference indicators not only solves the problems caused by numerous influencing indicators and improves the accuracy of the model, but the determination of the reference indicators also fully considers factors such as the algae growth mechanism and regional characteristics, making the prediction results more reasonable and effective.

[0078] S103, selecting data from historical comprehensive data according to reference indicators to construct a training data set, training a target-driven prediction model based on the training data set, determining an algal bloom warning model, and performing algal bloom warning monitoring based on the algal bloom warning model.

[0079] According to the above steps, combined with the historical comprehensive data in the target time period and the fuzzy logic control rules based on the algae growth mechanism, some indicator types are selected as reference indicators. When training the model, it is necessary to effectively screen a large amount of historical comprehensive data according to the reference indicators, eliminate irrelevant or noise data, retain key information, ensure that the training data set has high practical value and reliability, and then make predictions around the reference indicators.

[0080] After the training data set is prepared, the target-driven prediction model is trained using this data to effectively capture the precursor information of algal blooms and predict the risk of future algal blooms. During the training process, the model parameters need to be continuously adjusted to improve the prediction accuracy and robustness of the model. Even in the face of complex environments and changing algal blooms, the early warning model can maintain a high degree of accuracy.

[0081] After model training, we can obtain an algal bloom warning model with excellent performance. Based on this model, we can monitor the water conditions in real time and issue warnings to areas where algal blooms may occur, so as to more effectively prevent and control algal bloom incidents and protect water resources and the ecological environment based on the warning results.

[0082] In a possible implementation, the historical comprehensive data is input into the fuzzy logic controller corresponding to the target monitoring area to determine the reference index, including:

[0083] Inputting historical comprehensive data into the fuzzy logic controller;

[0084] According to the fuzzy logic control rules, the indicators whose degree of change exceeds the preset range are determined as reference indicators.

[0085] In the process of applying historical comprehensive data to the fuzzy logic controller of the target monitoring area, first, the historical comprehensive data is input into the fuzzy logic controller. The historical comprehensive data contains rich information, which can help analyze and predict the changing trend of the target monitoring area. By inputting the historical comprehensive data, the fuzzy logic controller can process this information and provide a basis for screening reference indicators. Secondly, according to the fuzzy logic control rules, the indicators whose degree of change exceeds the preset range are screened out. These indicators can reflect the key characteristics of the target monitoring area, which will affect the growth rate of algae and improve the accuracy of algal bloom warning.

[0086] In this embodiment, in the process of inputting historical comprehensive data into the fuzzy logic controller corresponding to the target monitoring area, certain steps are followed to determine the reference indicators, which can effectively utilize the historical comprehensive data to provide strong support for monitoring and controlling the growth of algae and water quality changes in the target monitoring area.

[0087] In a possible implementation, before obtaining the fuzzy logic controller corresponding to the target monitoring area, the method further includes:

[0088] Establish the fuzzy logic control algorithm corresponding to the fuzzy logic controller;

[0089] Design fuzzy logic control rules corresponding to the fuzzy logic control algorithm;

[0090] Among them, the fuzzy logic control algorithm is to select fuzzy statistics method, binary comparison ranking method, expert experience method or triangular membership function.

[0091] In the process of building a fuzzy logic controller, it is first necessary to establish the fuzzy logic control algorithm corresponding to the fuzzy logic controller. The fuzzy logic control algorithm is the core part of the control system, which is responsible for parsing the input data and generating the corresponding control output. In order to achieve this goal, the selection fuzzy statistics method, binary comparison sorting method, expert experience method or triangular membership function can be used.

[0092] Next, it is necessary to design fuzzy logic control rules for the selected fuzzy logic control algorithm. This step is crucial because reasonable control rules can make the control system more stable and efficient. When designing control rules, it is necessary to fully consider the characteristics of the system and the needs of the actual application scenario.

[0093] Only after the above two steps are completed can the fuzzy logic controller corresponding to the target monitoring area be obtained. At this point, the controller has the ability to process input data and generate corresponding control outputs. By applying the controller to the actual water bloom early warning system, the monitoring and control of the target area can be achieved.

[0094] In a possible implementation, the reference indicator selects a target driving prediction model from the driving prediction model, including:

[0095] Determine the indicator type of the reference indicator;

[0096] When the indicator types of the reference indicators are all water quality indicators, the water quality driven prediction model is selected as the target driven prediction model;

[0097] When the indicator types of the reference indicators are all meteorological indicators, the meteorological driven prediction model is selected as the target driven prediction model;

[0098] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, the common driving prediction model is selected as the target driving prediction model.

[0099] Based on the above-mentioned embodiments, the reference indicators are selected based on fuzzy logic control rules, which are some indicator types that are more likely to cause rapid growth of algae in the target detection area at present and in the future. Therefore, it is necessary to focus on the analysis around the reference indicators.

[0100] Correspondingly, when all reference indicators are of the water quality type, the water quality driven prediction model is selected as the target driven prediction model, which can fully understand and analyze the changing patterns of water quality indicators and algal bloom trends.

[0101] When all reference indicators are of meteorological type, the meteorological-driven prediction model is selected as the target-driven prediction model, which can deeply study and understand the changing patterns of meteorological indicators and algal bloom trends.

[0102] When the types of reference indicators include water quality indicators and meteorological indicators, it is necessary to select a common driven prediction model as the target driven prediction model, which can consider both water quality and meteorological factors at the same time, so as to predict future environmental conditions more comprehensively and accurately.

[0103] In this embodiment, the selection of a suitable driving prediction model according to the water quality index and the meteorological index depends on the type of the reference index, and the most suitable model is adopted to ensure the best prediction effect. In addition, the two aspects of water quality and meteorology are mutually influential and interrelated. Therefore, when the index type of the reference index includes water quality index and meteorological index, a common driving prediction model that can simultaneously consider these two aspects is selected to achieve a comprehensive prediction of the environmental conditions, so as to provide scientific and accurate prediction information for water environment protection work.

[0104] In a possible implementation, data is selected from historical comprehensive data according to reference indicators to construct a training data set, including:

[0105] When the indicator types of the reference indicators are all water quality indicators, water quality data are selected to construct a training data set;

[0106] When the indicator types of the reference indicators are all meteorological indicators, meteorological data are selected to construct a training data set;

[0107] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are selected to construct a training data set.

[0108] Among them, the driving prediction model is built based on the algae growth mechanism. Because the algae growth in different regions is affected by water quality and meteorological conditions to different degrees, it is difficult to achieve accurate predictions relying solely on general models. When applied to different target monitoring areas, it is necessary to conduct targeted training in combination with water quality data and meteorological data in the target monitoring area. The reference indicators are the key factors that have a greater impact on algae growth selected from the corresponding target monitoring areas. These key factors and corresponding data are incorporated into the driving prediction model for parameter optimization and model training. The model that has been trained in a targeted manner can better adapt to the characteristics of a specific monitoring area and improve the accuracy of algae growth prediction.

[0109] In the specific implementation process, when all reference indicators are of water quality indicators, corresponding water quality data are selected from the historical comprehensive data to construct a training data set in order to better understand and grasp the laws of water quality changes, thereby providing strong support for subsequent predictions and analysis.

[0110] When all reference indicators are of meteorological type, selecting corresponding meteorological data to construct the training data set will help us gain a deeper understanding of the impact of meteorological factors on the environment. By analyzing meteorological data, we can predict future climate change and its impact on algae growth, so as to take appropriate measures to deal with possible algal bloom problems.

[0111] When the types of reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are combined to construct a more comprehensive and integrated training data set. At the same time, the impact of water quality and meteorological factors on the environment is analyzed, so as to more accurately predict and evaluate the trend of environmental changes and improve the efficiency of algal bloom warning.

[0112] In this embodiment, when constructing a training data set, a reasonable selection is made based on the type of reference indicator to fully utilize historical comprehensive data, improve the prediction accuracy of the corresponding driving prediction model, and further improve the accuracy of prediction and analysis.

[0113] In a possible implementation, the driving prediction model is built based on LSTM.

[0114] In the embodiment of the present application, the water quality driven prediction model, the common driven prediction model and the meteorological driven prediction model are all constructed based on LSTM. The main difference between the three prediction models is that the data types used to train the models are different. The training data types are determined based on factors such as the growth principle of algae, the characteristics of water blooms, and the characteristics of the research area. All three prediction models are LSTM models, and the prediction results are more unified and comparable. The meteorological indicators and water quality indicators are not completely independent, ensuring that the target driven prediction model is selected from the driving prediction model according to the reference indicators, which is more in line with the actual situation.

[0115] In a possible implementation, after training a target-driven prediction model based on a training data set and determining an algal bloom warning model, the method further includes:

[0116] The loss function is calculated through the back-propagation algorithm, and the optimization algorithm is used to update the weights of the model, and the training is iterated until the algal bloom warning model converges; among them, the optimization algorithm is the gradient descent method.

[0117] In a possible implementation, the method further includes: selecting data from historical comprehensive data according to the reference indicator to construct a test data set;

[0118] Accordingly, after determining the water bloom early warning model, it also includes:

[0119] Calculate evaluation metrics using the test dataset;

[0120] The performance of the algal bloom warning model is evaluated based on evaluation indicators; optionally, the evaluation indicators are mean square error and / or mean absolute error.

[0121] Among them, mean square error and mean absolute error can measure the difference between the predicted results and the actual results. Evaluating the performance of the water bloom warning model based on evaluation indicators is helpful to provide more accurate and reliable water bloom warning prediction results.

[0122] Figure 2is a flow chart of an implementation of an algal bloom early warning method provided by another embodiment of the present application, such as Figure 2 As shown, the algal bloom early warning system includes: data input layer, key indicator layer, fuzzy control layer, model prediction layer and result output layer.

[0123] The data input layer inputs the historical comprehensive data of the target monitoring area, which includes water quality data and meteorological data. The water quality data includes a variety of water quality indicators; the meteorological data includes a variety of meteorological indicators.

[0124] The key indicator layer is used to filter key indicators for the target monitoring area.

[0125] Fuzzy control layer, first, fuzzify the key indicators of the input. In the fuzzification process, membership function needs to be used to divide key indicators 1, key indicators 2...key indicators n into multiple levels. Secondly, formulate fuzzy rules in the fuzzy control system. Then, fuzzy reasoning. Optionally, apply fuzzy set method to solve precise concepts and numerical values ​​with fuzzy concepts, which is the so-called fuzzy logic reasoning or approximate reasoning. Finally, defuzzification. Optionally, select area center method, maximum membership function method or weighted average method for defuzzification.

[0126] In some optional embodiments, a triangular membership function is required in the fuzzification process. After key indicator 1, key indicator 2...key indicator n are divided into multiple levels, the median of the triangular membership function of the key indicator is determined. Next, the Mamdani type is selected to formulate fuzzy rules in the fuzzy control system. The language rule is: If x is Athen y is B. Among them, x and y represent the control quantity and the controlled quantity at input and output, and A is the subset of the input variable fuzzy set corresponding to the key indicator 1, key indicator 2...key indicator n in the specific embodiment. B is the membership function set corresponding to the output variable after the fuzzy rule, corresponding to the three types of prediction model classification (-1, 0, 1) in the driving prediction model.

[0127] Optionally, the fuzzy control rule of the present invention is: If key indicator 1 meets a certain condition, and key indicator 2 meets a certain condition... and key indicator n meets a certain condition, then output the prediction model classification. Optionally, the fuzzy control rule of the present invention is: If key indicator 1 meets a certain condition, or key indicator 2 meets a certain condition... or key indicator n meets a certain condition, then output the prediction model classification.

[0128] In a specific embodiment, water quality indicators and meteorological indicators of the target monitoring area are collected and key indicator 1 is determined to be total nitrogen, and key indicator 2 is total phosphorus, with the unit of mg / L. Total nitrogen and total phosphorus are divided into three levels {NB, ZO, PB}, NB represents low concentration, ZO represents medium concentration, and PB represents high concentration. The median of the triangular membership function of total nitrogen is {0.2, 3, 5}, and the median of the triangular membership function of total phosphorus is {0.02, 0.2, 0.6}. The logical operation result f is divided into three categories -1, 0, 1. Among them, -1 represents the water quality driven LSTM model, 0 represents the jointly driven LSTM model, and 1 represents the meteorological driven LSTM model. The fuzzy control rules are shown in the following table:

[0129]

[0130] Among them, each horizontal axis and vertical axis corresponds to a specific control rule, and each rule is established based on the growth mechanism of algae.

[0131] Rule 1: if TN is NB and TP is NB then f is -1

[0132] Rule 1 is explained as follows: When the total nitrogen value is low, if the total phosphorus value is also low, the water quality driven prediction model is selected.

[0133] Rule 2: if TN is NB and TP is ZO then f is 0

[0134] Rule 2 is explained as follows: When the total nitrogen value is low, if the total phosphorus value is medium, the common driving prediction model is selected.

[0135] Rule 3: if TN is NB and TP is PB then f is 0

[0136] Rule 3 is explained as follows: when the total nitrogen value is low and the total phosphorus value is high, the common driving prediction model is selected.

[0137] Rule 4: if TN is ZO and TP is NB then f is 0

[0138] Rule 4 is interpreted as: when the total nitrogen value is medium, if the total phosphorus value is low, the common driving prediction model is applied.

[0139] Rule 5: if TN is ZO and TP is ZO then f is 0

[0140] Rule 5 is interpreted as: when the total nitrogen value is the median, if the total phosphorus value is also the median, the common driving prediction model is applied.

[0141] Rule 6: if TN is ZO and TP is PB then f is 0

[0142] Rule 6 is interpreted as: when the total nitrogen value is medium, if the total phosphorus value is high, the common driving prediction model is applied.

[0143] Rule 7: if TN is PB and TP is NB then f is 0

[0144] Rule 7 is interpreted as: when the total nitrogen value is high and the total phosphorus value is low, the common driving prediction model is applied.

[0145] Rule 8: if TN is PB and TP is ZO then f is 0

[0146] Rule 8 is interpreted as: when the total nitrogen value is high, if the total phosphorus value is medium, the common driving prediction model is applied.

[0147] Rule 9: if TN is PB and TP is PB then f is 1

[0148] Rule 9 is interpreted as: When the total nitrogen value is high, if the total phosphorus value is also high, the meteorological driven prediction model should be applied.

[0149] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0150] The following is an embodiment of the device of the present application. For details not described in detail, please refer to the corresponding method embodiment described above.

[0151] Figure 3 is a structural diagram of an algae bloom warning device provided in an embodiment of the present application, such as Figure 3 For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 3 As shown, the device comprises:

[0152] The acquisition module 301 is used to acquire the historical comprehensive data within the target time period corresponding to the target monitoring area; wherein the historical comprehensive data includes: water quality data and meteorological data;

[0153] An input module 302 is used to input historical comprehensive data into a fuzzy logic controller corresponding to a target monitoring area to determine a reference index;

[0154] The selection module 303 is used to select a target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is a part of the index type in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model;

[0155] A training module 304 is used to select data from historical comprehensive data according to reference indicators to construct a training data set, train a target-driven prediction model based on the training data set, and determine an algal bloom warning model;

[0156] The early warning module 305 is used to perform early warning monitoring of algal blooms based on the algal bloom early warning model.

[0157] In a possible implementation, the input module 302 is specifically configured to input the historical comprehensive data into the fuzzy logic controller, and determine an indicator whose degree of change exceeds a preset range according to the fuzzy logic control rule as a reference indicator.

[0158] In a possible implementation, it further includes a design module, which is used to establish a fuzzy logic control algorithm corresponding to the fuzzy logic controller before obtaining the fuzzy logic controller corresponding to the target monitoring area, and design a fuzzy logic control rule corresponding to the fuzzy logic control algorithm;

[0159] Wherein, the fuzzy logic control algorithm is selected from fuzzy statistics, binary comparison and sorting method, expert experience method or triangular membership function.

[0160] In a possible implementation, the selection module 303 is specifically configured to:

[0161] Determining the indicator type of the reference indicator;

[0162] When the indicator types of the reference indicators are all water quality indicators, selecting the water quality driven prediction model as the target driven prediction model;

[0163] When the indicator types of the reference indicators are all meteorological indicators, the meteorological driven prediction model is selected as the target driven prediction model;

[0164] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, the common driving prediction model is selected as the target driving prediction model.

[0165] In a possible implementation, the training module 304 is specifically used to:

[0166] When the indicator types of the reference indicators are all water quality indicators, water quality data are selected to construct a training data set;

[0167] When the indicator types of the reference indicators are all meteorological indicators, meteorological data are selected to construct a training data set;

[0168] When the indicator types of the reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are selected to construct a training data set.

[0169] In a possible implementation, the water quality indicators in the water quality data include total phosphorus, total nitrogen, permanganate index, ammonia nitrogen, water temperature, pH value, dissolved oxygen turbidity, conductivity and chlorophyll a;

[0170] The meteorological indicators in the meteorological data include rainfall, temperature, illuminance, wind speed and wind direction.

[0171] In a possible implementation, the driving prediction model is constructed based on a long short-term memory network (Long Short-Term Memory, LSTM).

[0172] Figure 4 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned various water bloom early warning method embodiments are implemented, for example Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of the modules / units in the above-mentioned device embodiments are realized, for example Figure 3 The functions of each module are shown.

[0173] Exemplarily, the computer program 42 may be divided into one or more modules / units, which are stored in the memory 41 and executed by the processor 40 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 may be divided into Figure 3 The modules shown.

[0174] The electronic device 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4It is only an example of the electronic device 4 and does not constitute a limitation of the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0175] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0176] The memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0177] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0178] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0179] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0180] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0182] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0183] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned water bloom warning method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0184] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A water bloom early warning method, characterized in that: include: Acquire historical comprehensive data within a target time period corresponding to the target monitoring area; wherein the historical comprehensive data includes: water quality data and meteorological data; Input the historical comprehensive data into the fuzzy logic controller corresponding to the target monitoring area to determine the reference index, and select the target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is a part of the index type in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model; Selecting data from the historical comprehensive data according to the reference index to construct a training data set, training the target-driven prediction model based on the training data set, determining an algal bloom warning model, and performing algal bloom warning monitoring based on the algal bloom warning model; Wherein, inputting the historical comprehensive data into the fuzzy logic controller corresponding to the target monitoring area to determine the reference index includes: inputting the historical comprehensive data into the fuzzy logic controller; Determine, according to the fuzzy logic control rule, an index whose degree of change exceeds a preset range as a reference index; Before obtaining the fuzzy logic controller corresponding to the target monitoring area, the method further includes: Establish the fuzzy logic control algorithm corresponding to the fuzzy logic controller; Designing fuzzy logic control rules corresponding to the fuzzy logic control algorithm; Wherein, the fuzzy logic control algorithm is selected by fuzzy statistics method, binary comparison sorting method, expert experience method or triangular membership function; Selecting a target driving prediction model from the driving prediction models according to the reference index includes: Determining the indicator type of the reference indicator; When the indicator types of the reference indicators are all water quality indicators, selecting the water quality driven prediction model as the target driven prediction model; When the indicator types of the reference indicators are all meteorological indicators, the meteorological driven prediction model is selected as the target driven prediction model; When the indicator types of the reference indicators include water quality indicators and meteorological indicators, selecting the common driving prediction model as the target driving prediction model; The selecting data from the historical comprehensive data according to the reference indicator to construct a training data set includes: When the indicator types of the reference indicators are all water quality indicators, water quality data are selected to construct a training data set; When the indicator types of the reference indicators are all meteorological indicators, meteorological data are selected to construct a training data set; When the indicator types of the reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are selected to construct a training data set.

2. The water bloom early warning method according to claim 1, characterized in that: The water quality indicators in the water quality data include total phosphorus, total nitrogen, permanganate index, ammonia nitrogen, water temperature, pH value, dissolved oxygen turbidity, conductivity and chlorophyll a; The meteorological indicators in the meteorological data include rainfall, temperature, illuminance, wind speed and wind direction.

3. The water bloom early warning method according to claim 1, characterized in that: The driving prediction model is built based on a long short-term memory network (LSTM).

4. A water bloom early warning device, characterized in that: include: An acquisition module is used to acquire historical comprehensive data within a target time period corresponding to a target monitoring area; wherein the historical comprehensive data includes: water quality data and meteorological data; An input module, used for inputting the historical comprehensive data into a fuzzy logic controller corresponding to the target monitoring area to determine a reference index; A selection module is used to select a target driving prediction model from the driving prediction model according to the reference index; wherein the reference index is a partial index type in the historical comprehensive data; the fuzzy logic control rules in the fuzzy logic controller are formulated based on the algae growth mechanism, the geographical environment and the meteorological environment of the target monitoring area; the driving prediction model includes a water quality driving prediction model, a common driving prediction model and a meteorological driving prediction model; A training module, used to select data from the historical comprehensive data according to the reference index to construct a training data set, train the target-driven prediction model based on the training data set, and determine an algal bloom warning model; An early warning module, used for performing early warning monitoring of algal blooms based on the algal bloom early warning model; Wherein, the input module is specifically used for: Inputting the historical comprehensive data into the fuzzy logic controller; determining the index whose degree of change exceeds the preset range according to the fuzzy logic control rule as a reference index; The device also includes a design module, which is used to establish a fuzzy logic control algorithm corresponding to the fuzzy logic controller before obtaining the fuzzy logic controller corresponding to the target monitoring area, and design a fuzzy logic control rule corresponding to the fuzzy logic control algorithm; Wherein, the fuzzy logic control algorithm is selected by fuzzy statistics method, binary comparison sorting method, expert experience method or triangular membership function; Wherein, the selection module is specifically used for: Determine the indicator type of the reference indicator; when the indicator types of the reference indicators are all water quality indicators, select the water quality driven prediction model as the target driven prediction model; when the indicator types of the reference indicators are all meteorological indicators, select the meteorological driven prediction model as the target driven prediction model; when the indicator types of the reference indicators include water quality indicators and meteorological indicators, select the common driven prediction model as the target driven prediction model; The training module is specifically used for: When the indicator types of the reference indicators are all water quality indicators, water quality data are selected to construct a training data set; when the indicator types of the reference indicators are all meteorological indicators, meteorological data are selected to construct a training data set; when the indicator types of the reference indicators include water quality indicators and meteorological indicators, water quality data and meteorological data are selected to construct a training data set.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.