Water conservancy monitoring method and system based on digital twin

By building a digital twin model based on historical data and analyzing conductivity data in real time, the problem of inefficient traditional water quality monitoring is solved, and rapid and accurate water quality prediction and monitoring decisions are achieved.

CN119310146BActive Publication Date: 2025-05-16ZTE VAST SKY INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411857889.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-05-16
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

The traditional water quality monitoring process relies on manual sampling and laboratory analysis, which leads to slow data updates and inability to provide instant water quality information, which leads to inefficient monitoring.

Method used

Using a water conservancy monitoring method based on digital twins, a digital twin model is constructed by obtaining historical conductivity data and water quality result data, and the current conductivity data is analyzed in real time to predict water quality results.

Benefits of technology

It achieves rapid acquisition of water quality prediction results, reduces manual intervention, and improves monitoring efficiency and scientificity and accuracy of decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119310146B_ABST
    Figure CN119310146B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of water conservancy monitoring technology, and in particular, to a water conservancy monitoring method and system based on digital twins, the method comprising: obtaining historical data; building a digital twin model based on historical conductivity data and historical water quality result data; obtaining the current target data of the target water area; inputting the target data into the digital twin model, so that the digital twin model analyzes and processes the target data, and outputs the water quality prediction result corresponding to the target water area. The water conservancy monitoring method based on digital twins provided in the present application can solve the problem that in the traditional water quality monitoring process, it usually relies on manual sampling and laboratory analysis, resulting in slow data updates, inability to provide real-time water quality information, and thus resulting in low monitoring efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of water conservancy monitoring technology, and in particular, relates to a water conservancy monitoring method and system based on digital twins. Background Art

[0002] Water conservancy monitoring refers to the process of using modern technical means (for example, using water level sensors, flow meters and other equipment) to monitor, collect and process various parameters and states of water resources in real time and accurately. For example, water conservancy monitoring can be used to monitor the quality, flow conditions and related environmental conditions of water bodies.

[0003] The traditional water quality monitoring process usually relies on manual sampling and laboratory analysis, which leads to slow data updates and failure to provide real-time water quality information, thus resulting in low monitoring efficiency. Summary of the invention

[0004] The embodiments of the present application provide a water conservancy monitoring method and system based on digital twins, which can solve the problem that in the traditional water quality monitoring process, manual sampling and laboratory analysis are usually relied on, resulting in slow data updates and inability to provide real-time water quality information, which in turn leads to low monitoring efficiency.

[0005] In a first aspect, an embodiment of the present application provides a water conservancy monitoring method based on digital twins, the method comprising:

[0006] Acquire historical data; wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the conductivity of the historical periods;

[0007] A digital twin model is constructed based on the historical conductivity data and the historical water quality result data; wherein the digital twin model is a neural network model obtained by training with the historical conductivity data in the historical data as input data and the historical water quality result data corresponding to the historical conductivity data in the historical period as output data;

[0008] Acquire current target data of the target water area; wherein the target data is used to reflect the conductivity data at the current real time moment;

[0009] The target data is input into the digital twin model so that the digital twin model analyzes and processes the target data and outputs a water quality prediction result corresponding to the target water area.

[0010] The above technical solution provided by the embodiment of the present application has at least the following technical effects:

[0011] The water conservancy monitoring method based on digital twins provided in the embodiment of the present application can accumulate a large amount of information by acquiring historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the conductivity of the historical period, which is helpful to identify the trend and pattern of water quality changes, and provide a basis for subsequent model construction, thereby helping to provide important references for predicting water quality in the future. Secondly, by building a digital twin model based on historical conductivity data and historical water quality result data, it is possible to capture the relationship changes between conductivity and water quality, which is helpful to provide data support for subsequent predictions of water quality performance under different conditions, reduce the impact of manual intervention, and thus help to improve subsequent monitoring efficiency. Secondly, by acquiring the conductivity data at the current moment in real time, instant information of the current state can be provided, so that subsequent monitoring decisions are based on real-time data operations, thereby helping to improve the scientificity and accuracy of decision-making, thereby helping to improve subsequent monitoring efficiency. Then, the target data is input into the digital twin model, which analyzes and processes the target data and outputs the water quality prediction results corresponding to the target water area. The input data can be processed in real time and feedback results can be generated quickly without the need for analysis in the laboratory, which saves data analysis time and helps improve monitoring efficiency.

[0012] In a possible implementation manner of the first aspect, a digital twin model is constructed based on the historical conductivity data and the historical water quality result data, and the method includes:

[0013] Sending the historical conductivity data and the historical water quality result data corresponding to the target water area to a server;

[0014] Receive the digital twin model sent by the server; wherein the server uses the historical conductivity data corresponding to the target water area as input data, and uses the historical water quality result data corresponding to the historical conductivity data as output data to train the neural network model to obtain the digital twin model.

[0015] In a possible implementation manner of the first aspect, the water conservancy monitoring equipment includes a water conservancy monitoring device and a control device communicatively connected to the water conservancy monitoring device. Before acquiring current target data of the target water area, the method further includes:

[0016] In the case where the control device creates a monitoring activity with the water conservancy monitoring device, if the number of times that the monitoring stop requirement is met reaches a first value, the monitoring activity with the water conservancy monitoring device is stopped, and based on the signal of stopping the monitoring activity with the water conservancy monitoring device, a first signal is sent to the water conservancy monitoring device at a first time interval to resume the monitoring activity with the water conservancy monitoring device; wherein, in the case where the monitoring activity between the control device and the water conservancy monitoring device is stopped for the first time, the time and the number are recorded; each time the monitoring stop requirement is met, the time and the number are recorded once;

[0017] When the length of the recording time does not exceed the first length of time and the number of times that the monitoring stop requirement is met reaches a second value, obtaining the straight line monitoring length between the control device and the water conservancy monitoring device; wherein the second value is greater than the first value;

[0018] When the straight line monitoring length meets the requirements for resuming monitoring, the first signal is sent to the water conservancy monitoring device so that the water conservancy monitoring device resumes the monitoring activities with the control device based on the first signal; wherein the first signal carries a mark corresponding to the water conservancy monitoring device.

[0019] In a possible implementation of the first aspect, the requirement to stop monitoring includes that the control device and the water conservancy monitoring device have no monitoring action within a first time period, or that an operator inputs a command to stop monitoring on an interactive interface of the control device; the requirement to resume monitoring includes that the straight-line monitoring length has not exceeded the first length within a second time period, or that the straight-line monitoring length has not exceeded the first length within the second time period, and that the straight-line monitoring length of the water conservancy monitoring device shows a tendency to shorten under the action of water flow.

[0020] In a possible implementation manner of the first aspect, the method further includes:

[0021] Before stopping the monitoring activity with the water conservancy monitoring device, if there is a monitoring action, the straight line monitoring length corresponding to the monitoring action is determined to be the first length, or, before stopping the monitoring activity with the water conservancy monitoring device, if there is no monitoring action, the straight line monitoring length corresponding to the absence of the monitoring action is determined to be the first length.

[0022] In a possible implementation manner of the first aspect, the method further includes:

[0023] When the first signal is sent to the water conservancy monitoring device and the monitoring activity between the water conservancy monitoring device and the control device is resumed, the number of times recorded that meet the requirements for stopping monitoring is set to an initial value, and the length of the recorded time is discarded; wherein the initial value is less than the first value.

[0024] In a possible implementation manner of the first aspect, before obtaining current target data of the target water area, the method further includes:

[0025] The control device sends a data acquisition request to the water conservancy monitoring device to obtain the monitoring data of the water conservancy monitoring device; wherein the monitoring data is the monitoring mark data sent to the control device when the water conservancy monitoring device first joins the monitoring activity after being reset; the reset refers to the adjustment from the monitoring abnormality mode to the non-monitoring abnormality mode, or the system reset of the water conservancy monitoring device;

[0026] In the case where the monitoring mark data matches the preset mark data preset on the control device, a monitoring instruction is sent to the water conservancy monitoring device corresponding to the preset mark according to the preset mark preset on the control device; wherein the preset mark data is data sent to the control device before a reset event occurs in the water conservancy monitoring device; the preset mark is obtained by the control device in advance when the water conservancy monitoring device is in a non-monitoring abnormal mode and in a monitoring activity; the monitoring instruction is used to instruct the water conservancy monitoring device to send the target data monitored in the target water area to the control device;

[0027] In the case where the monitoring mark data does not match the preset mark data preset on the control device, monitoring control information is generated.

[0028] In a possible implementation manner of the first aspect, when the monitoring mark data does not match the preset mark data preset on the control device, generating monitoring control information includes:

[0029] In the case where the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is not adjusted to the water area information recorded in the water conservancy monitoring device, the first control information in the monitoring control information is generated; wherein the first control information is used to prevent the water conservancy monitoring device from sending the monitored target data to the control device;

[0030] When the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is adjusted to the water area information recorded in the water conservancy monitoring device, the second control information in the monitoring control information is generated; the second control information is used to instruct the water conservancy monitoring device to send the monitored target data to the control device.

[0031] In a possible implementation manner of the first aspect, before the control device sends a data acquisition request to the water conservancy monitoring device to acquire monitoring data of the water conservancy monitoring device, the method further includes:

[0032] The control device sends a monitoring data generation instruction to the water conservancy monitoring device;

[0033] Receiving first data sent to the water conservancy monitoring device; wherein the first data is generated by the water conservancy monitoring device according to a monitoring function and a monitoring area;

[0034] The monitoring data is determined based on the first data.

[0035] In a second aspect, an embodiment of the present application provides a water conservancy monitoring system based on digital twins, which is used to implement the water conservancy monitoring method based on digital twins described in any one of the first aspects above. The water conservancy monitoring system based on digital twins is applied to water conservancy monitoring equipment, and the system includes:

[0036] An acquisition unit, used to acquire historical data; wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the historical conductivity data of historical periods;

[0037] A generating unit, configured to construct a digital twin model based on the historical conductivity data and the historical water quality result data; wherein the digital twin model is a neural network model trained with the historical conductivity data in the historical data as input data and the historical water quality result data corresponding to the historical conductivity data in the historical period as output data;

[0038] A detection unit, used to obtain current target data of the target water area; wherein the target data is used to reflect the conductivity data at the current real time moment;

[0039] An output unit is used to input the target data into the digital twin model so that the digital twin model analyzes and processes the target data and outputs a water quality prediction result corresponding to the target water area.

[0040] In the third aspect, an embodiment of the present application provides a water conservancy monitoring device, including a water conservancy monitoring device and a control device communicatively connected to the water conservancy monitoring device, the control device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, it implements the water conservancy monitoring method based on digital twins as described in any one of the first aspects above.

[0041] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] 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 any creative work.

[0043] Figure 1 It is a flow chart of a water conservancy monitoring method based on digital twins provided in an embodiment of the present application;

[0044] Figure 2 It is a schematic diagram of the implementation process of restoring monitoring activities in a water conservancy monitoring method based on digital twins provided in an embodiment of the present application;

[0045] Figure 3 It is a schematic diagram of the implementation process of obtaining target data in a water conservancy monitoring method based on digital twins provided in an embodiment of the present application;

[0046] Figure 4 It is a structural schematic diagram of a water conservancy monitoring system based on digital twins provided in an embodiment of the present application;

[0047] Figure 5 It is a structural schematic diagram of the control device of the water conservancy monitoring equipment provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] 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.

[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if the described condition or event is detected" can be interpreted as meaning "uponce determined" or "in response to determining" or "uponce the described condition or event is detected" or "in response to detecting the described condition or event" depending on the context.

[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0054] In related technologies, water conservancy monitoring refers to the process of using modern technical means (for example, using water level sensors, flow meters and other equipment) to monitor, collect and process various parameters and states of water resources in real time and accurately. For example, water conservancy monitoring can be used to monitor the quality, flow conditions and related environmental conditions of water bodies.

[0055] The traditional water quality monitoring process usually relies on manual sampling and laboratory analysis, which leads to slow data updates and failure to provide real-time water quality information, thus resulting in low monitoring efficiency.

[0056] To solve the above problems, the embodiments of the present application provide a water conservancy monitoring method and system based on digital twins.

[0057] In this method, by obtaining the historical conductivity data of the historical period when the structure of the current water conservancy building has not changed, and the historical water quality result data corresponding to the conductivity of the historical period, a large amount of information can be accumulated, which is helpful to identify the trend and pattern of water quality changes, and provide a basis for the subsequent model construction, so as to provide an important reference for predicting water quality in the future. Secondly, the digital twin model is constructed based on the historical conductivity data and the historical water quality result data, which can capture the relationship changes between conductivity and water quality, and help to provide data support for the subsequent prediction of water quality under different conditions, reduce the impact of human intervention, and thus help to improve the subsequent monitoring efficiency. Secondly, by obtaining the conductivity data at the current moment in real time, the current state can be provided. Instant information, so that the subsequent monitoring decision is based on real-time data operation, which helps to improve the scientificity and accuracy of the decision, and thus helps to improve the subsequent monitoring efficiency. Then, the target data is input into the digital twin model, so that the digital twin model analyzes and processes the target data, and outputs the water quality prediction results corresponding to the target water area. The input data can be processed in real time and feedback results can be generated quickly, without the need for analysis in the laboratory, saving data analysis time, and helping to improve monitoring efficiency.

[0058] The water conservancy monitoring method based on digital twins provided in the embodiment of the present application can be applied to water conservancy monitoring equipment. At this time, the water conservancy monitoring equipment is the executor of the water conservancy monitoring method based on digital twins provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of water conservancy monitoring equipment.

[0059] For example, the water conservancy monitoring equipment may include a water conservancy monitoring device and a control device that is communicatively connected to the water conservancy monitoring device. The water conservancy monitoring device may be a monitoring device that floats on the water surface or is suspended in the water. The water conservancy monitoring device may include a conductivity sensor, a pH sensor, a flow meter, a dissolved oxygen sensor, and the like. The conductivity sensor is used to measure the conductivity of the water body in real time, thereby inferring the ion concentration and salinity in the water. The pH sensor is used to measure the pH of the water. The flow meter is used to measure the water flow rate and flow rate. The dissolved oxygen sensor is used to monitor the dissolved oxygen level in the water body. For example, the control device can analyze the conductivity, and then understand the overall water quality, such as the total dissolved solids (TDS) level, to identify potential sources of pollution, such as whether industrial wastewater, agricultural runoff or other pollutants pollute the water quality. The control device can also analyze the pH of the water to evaluate the acid-base balance of the water quality. The control device can also analyze the rate and flow of water flow to make decisions on water resource allocation and management. The control device can also analyze the dissolved oxygen level in the water body to evaluate the self-purification capacity and biological health of the water body. Among them, the control device can input the acquired data into the digital twin model for analysis and prediction to obtain the prediction results.

[0060] For example, the control device can be a mobile phone, tablet computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, desktop computer, computing device or computer connected to a wireless modem, laptop computer, handheld communication device, handheld computing device, etc.

[0061] For example, a digital twin model can simulate the behavior of a water system through physical laws such as fluid mechanics, thermodynamics, and materials science. For example, the Navier-Stokes equations can be used to describe the movement of water flow, or Darcy's law can be used to simulate groundwater flow, thereby describing in detail the flow, collision, and sedimentation of water bodies. For example, by integrating multiple data sources (such as rainfall, river water level, soil moisture, etc.), the model can simulate river water level changes and flow in real time, thereby predicting the time and location of floods. For example, by using historical flood data and weather forecasts, combined with physical hydrodynamic models, the possible path and impact area of ​​floods can be predicted to provide support for emergency response and disaster prevention and mitigation. A digital twin model can also first use historical monitoring data to train a deep learning network (such as LSTM or CNN), then use the data collected by sensors to monitor water quality changes in real time, and finally use the digital twin model to analyze the data collected by sensors to predict water quality conditions. For example, in a pollution incident, a digital twin model can predict the degree of pollution of pollutants and help management departments take timely countermeasures.

[0062] In order to better understand the water conservancy monitoring method based on digital twins provided in the embodiment of the present application, the specific implementation process of the water conservancy monitoring method based on digital twins provided in the embodiment of the present application is exemplarily introduced below.

[0063] Figure 1 A schematic flow chart of a water conservancy monitoring method based on digital twins provided in an embodiment of the present application is shown. The water conservancy monitoring method based on digital twins includes:

[0064] S100, obtaining historical data, wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the historical conductivity data of historical periods.

[0065] For example, historical data can be obtained by querying a database. The historical data includes water quality indicators (such as pollution level, whether there are pollutants, etc., that is, historical water quality result data) and corresponding conductivity values. The data collected historically by water quality monitoring equipment (such as conductivity sensors) can be stored in a database, and the historical water quality result data in water quality test reports and environmental monitoring records can be stored in a database. The number of historical conductivity data can be 10, 20, 50, etc. The historical data is the data of the target water area, and the target water area can be the water area that the operator needs to monitor.

[0066] For example, an online database of a water resource management agency or a scientific research institution may be accessed to obtain historical data.

[0067] By setting up this, a large amount of information can be accumulated by acquiring historical data, which helps to identify trends and patterns in water quality changes, provide a basis for subsequent model construction, and thus help provide important references for future water quality predictions. At the same time, by limiting the condition that the current water conservancy building structure has not changed, the problem of inaccurate data caused by interference from multiple factors can be avoided.

[0068] S200, constructing a digital twin model based on historical conductivity data and historical water quality result data. The digital twin model is a neural network model trained by using historical conductivity data in historical data as input data and historical water quality result data corresponding to historical conductivity data in historical periods as output data.

[0069] It can be understood that for each historical conductivity data, a machine learning model or a neural network model can be used to process the historical conductivity data to obtain the actual output corresponding to the historical conductivity data, and then a preset loss function can be used to calculate the training loss value according to the expected output and the actual output. In the embodiment of the present application, a loss function can be selected according to the actual situation to calculate the training loss value, and the embodiment of the present application does not specifically limit this.

[0070] For example, after the training loss value is calculated, the model parameters of the machine learning model can be adjusted according to the training loss value. In the embodiment of the present application, it is assumed that in the initial state, the model parameter of the machine learning model is X1, and the training loss value is back-propagated to modify the model parameter X1 of the machine learning model to obtain the modified model parameter X2. After modifying the parameters, the next training process is continued. In this training process, the training loss value is recalculated, and the training loss value is back-propagated to modify the model parameter X2 of the machine learning model to obtain the modified model parameter X3. By analogy, the above process is repeated continuously, and the model parameters can be modified in each training process until the preset training conditions are met, wherein the training condition can be that the number of trainings reaches the preset number threshold, and the preset number threshold can be set according to the actual situation, for example, it can be set to hundreds, thousands, ten thousand times, etc. The training condition can also be the convergence of the machine learning model. Since the number of trainings may not reach the number threshold, but the machine learning model has converged, it may cause unnecessary work to be repeated, or the machine learning model cannot converge, which may cause an infinite loop and the training process cannot be ended. Based on the above two situations, the training condition can also be that the number of trainings reaches the number threshold or the machine learning model converges. When the training conditions are met, the trained digital twin model can be obtained.

[0071] For example, historical conductivity data and corresponding historical water quality result data are used as learning objects of the machine learning model. After a training process, the machine learning model can establish a mapping relationship between historical conductivity data and historical water quality result data, so that when faced with new conductivity data, the corresponding water quality result data can be obtained according to the mapping relationship.

[0072] With this setting, a digital twin model is constructed based on historical conductivity data and historical water quality result data, which can capture the changes in the relationship between conductivity and water quality, help provide data support for subsequent predictions of water quality performance under different conditions, reduce the impact of human intervention, and thus help improve subsequent monitoring efficiency.

[0073] In one possible implementation, S200 builds a digital twin model based on historical conductivity data and historical water quality result data, including:

[0074] S201, sending the historical conductivity data and historical water quality result data corresponding to the target water area to the server.

[0075] For example, the historical conductivity data of water samples obtained in the target water area and the historical water quality result data of water samples are formatted into a format suitable for transmission, such as JSON, XML or CSV, and a suitable network protocol is selected for data transmission, such as HTTP / HTTPS, MQTT, CoAP, etc., to send the historical conductivity data and historical water quality result data to the server.

[0076] It is understood that the historical conductivity data corresponding to the water sample can be obtained from the target water area through sensors or other monitoring equipment. The historical water quality result data of the target water area can also be obtained through observation, spectral analysis, dissolved oxygen testing, pollutant detection, etc., for example, whether there are pollutants, the degree of pollution, the concentration of pollutants, etc. As shown in Table 1 and Table 2:

[0077] Table 1

[0078]

[0079] Table 2

[0080]

[0081] Such a setting can provide data support for the subsequent training of the neural network model, which in turn helps to improve the accuracy of subsequent predictions.

[0082] S202, receiving the digital twin model sent by the server. The server uses the historical conductivity data corresponding to the target water area as input data, and uses the historical water quality result data corresponding to the historical conductivity data as output data to train the neural network model to obtain the digital twin model.

[0083] It can be understood that a communication interface for data interaction with the server can be established to receive relevant data of the digital twin model, which can be implemented through various protocols, such as HTTP / HTTPS, WebSocket, TCP / IP, etc. Then, the water conservancy monitoring system based on digital twins can send a request to the server to obtain the trained digital twin model. The request can include some necessary parameters, such as model version number, model format, etc. Then, after receiving the model data, the water conservancy monitoring system based on digital twins will parse it and load the parsed model into the system, where the loaded model can directly accept conductivity data as input and output the corresponding water quality prediction results.

[0084] For example, the process of server training model can be to use a machine learning model or a neural network model to process historical conductivity data (i.e., the historical conductivity data corresponding to the target water area is used as input data) to obtain the actual output corresponding to the historical conductivity data, and then a preset loss function can be used to calculate the training loss value based on the expected output (such as historical water quality result data corresponding to the historical conductivity data) and the actual output. After the training loss value is calculated, the model parameters of the machine learning model can be adjusted according to the training loss value to obtain a trained digital twin model.

[0085] With this setting, by receiving the digital twin model sent by the server, the trained digital twin model can be used to predict water quality without the need for analysis in the laboratory, which saves time for data analysis and helps improve monitoring efficiency.

[0086] S300, obtaining current target data of the target water area, wherein the target data is used to reflect the conductivity data at the current real time moment.

[0087] It is understood that the conductivity of the target water area can be measured in real time by a conductivity sensor to obtain the conductivity data of the target water area. A telemetry device can also be installed in the target water area to remotely monitor the conductivity and transmit the data to the control device.

[0088] With such a setting, by acquiring the current target data of the target waters, instant information of the current status can be provided so that subsequent monitoring decisions are based on real-time data operations, which in turn helps to improve the scientificity and accuracy of the decisions, thereby helping to improve the efficiency of subsequent monitoring.

[0089] In one possible implementation, see Figure 2 The water conservancy monitoring equipment includes a water conservancy monitoring device and a control device that is communicatively connected to the water conservancy monitoring device. In step S300, before obtaining the current target data of the target water area, the water conservancy monitoring method based on digital twins also includes:

[0090] S310, when the control device creates a monitoring activity with the water conservancy monitoring device, if the number of times the monitoring stop requirement is met reaches a first value, the monitoring activity between the control device and the water conservancy monitoring device is stopped, and based on the signal of stopping the monitoring activity between the control device and the water conservancy monitoring device, a first signal is sent to the water conservancy monitoring device at a first time interval to resume the monitoring activity between the control device and the water conservancy monitoring device. Wherein, when the monitoring activity between the control device and the water conservancy monitoring device is stopped for the first time, the time and number are recorded. Each time the monitoring stop requirement is met, the time and number are recorded once.

[0091] It can be understood that the straight line monitoring lengths between the control device and the water conservancy monitoring device can be T1, T2 and T3 from small to large. Among them, when the straight line monitoring length T1 is within the length limit of the ideal analysis and processing, the control device and the water conservancy monitoring device can achieve accurate and efficient data synchronization and analysis, and there will be no data analysis failure (such as data loss) or excessive data analysis fluctuations. When the straight line monitoring length T2 is within the length limit of the extreme analysis and processing, the data analysis between the control device and the water conservancy monitoring device will experience data analysis fluctuations, that is, the data analysis will intermittently experience data loss and return to normal. When the straight line monitoring length T3 is outside the length limit of the abnormal analysis and not within the length limit of the extreme analysis and processing, the data processing flow between the control device and the water conservancy monitoring device cannot be effectively connected due to data loss or data analysis fluctuations, that is, the data monitoring and analysis processing fails. In this case, there will be no intermittent data analysis that will alternate between data loss and return to normal.

[0092] For example, the length limit of ideal analysis and processing is the length limit that can support data monitoring and analysis between the control device and the water conservancy monitoring device, for example, 0<T1≤6dm. The length limit of extreme analysis and processing is a portion of the length of the ideal analysis and processing that is close to the outside, for example, 6dm≤T1≤8dm. Within the length limit of extreme analysis and processing, occasional data loss may occur, which may lead to data analysis fluctuations, that is, the data analysis will intermittently alternate between data loss and restoration of normal monitoring. Among them, the length limit of ideal analysis and processing may include the entire length limit of extreme analysis and processing, and may also include a portion of the length limit of extreme analysis and processing.

[0093] It can be understood that when the operator has a monitoring demand, the operator can create a monitoring activity with the water conservancy monitoring device through the control device. The monitoring activity can be an activity to monitor the water quality of the target water area. Among them, by determining the purpose of the monitoring activity, such as water quality monitoring, water level monitoring, flow monitoring, etc., the sensor in the water conservancy monitoring device can be integrated with the control device for communication. For example, wireless communication can be used to transmit data to obtain real-time data from the water conservancy monitoring device, and data can be exchanged with the control device to achieve the purpose of creating the monitoring activity.

[0094] It can be understood that the requirement to stop monitoring may be that the control device and the water conservancy monitoring device have no monitoring action within the first time period (such as being unable to monitor and analyze the lost data), or that the operator is monitored entering a command to stop monitoring on the interactive interface of the control device.

[0095] For example, the number of times that the monitoring stop requirement is met may be 3 times, 4 times, 5 times, etc. The first value may be 1, 2, 3, 4, etc. Each time the monitoring stop requirement is met, the number of times and the time (e.g., duration) may be recorded. In the case where the control device and the water conservancy monitoring device create a monitoring activity, if the number of times that the monitoring stop requirement is met reaches the first value, it means that the straight line monitoring length between the control device and the water conservancy monitoring device may be within the length limit of the limit analysis processing, resulting in intermittent data loss and restoration to normal alternation, so there will be multiple monitoring stops. It may also be an occasional phenomenon (such as only 1 or 2 monitoring stops). At this time, in order to avoid misjudgment, the monitoring activity with the water conservancy monitoring device can be stopped, and after the monitoring activity with the water conservancy monitoring device is stopped (i.e., based on the signal of stopping the monitoring activity with the water conservancy monitoring device), the first signal is re-sent to the water conservancy monitoring device at the first time interval to resume the monitoring activity with the water conservancy monitoring device, so that the misjudgment caused by the occasional phenomenon can be eliminated.

[0096] For example, when the monitoring activity between the control device and the water conservancy monitoring device is stopped for the first time, the timestamp (for example, 7:00, 8:00, etc.) is recorded. When the monitoring activity between the control device and the water conservancy monitoring device is stopped for the first time, the first time is recorded, and each time the monitoring stop requirement is met, the number of times can be recorded again, and so on, so as to obtain the number of times the monitoring stop requirement is met, that is, the total number of times the monitoring stop requirement is met from the first stop of the monitoring activity to the current timestamp.

[0097] This setting can distinguish between accidental situations and system-wide problems, avoid misjudgment of monitoring conditions, and reduce possible misjudgments caused by human intervention.

[0098] S320, when the length of the recording time does not exceed the first length and the number of times the monitoring stop requirement is met reaches a second value, obtain the straight line monitoring length between the control device and the water conservancy monitoring device, wherein the second value is greater than the first value.

[0099] It is understood that the length of the recording time can be the difference between the timestamp recorded when the monitoring stop requirement is currently met and the timestamp recorded when the monitoring activity is first stopped. The first duration can be set according to actual conditions, for example, 1 minute, 2 minutes, 3 minutes, etc. The second value can be 4 times, 5 times, 6 times, etc. Among them, the second value can be the first value plus 1, the first value plus 2, etc.

[0100] For example, when the length of the recording time does not exceed the first duration, and the number of times the monitoring stop requirement is met reaches the second value, it means that within a period of time (i.e., the first duration), the straight-line monitoring length between the control device and the water conservancy monitoring device has been within the length limit of the limit analysis processing, resulting in the phenomenon of multiple stops of monitoring activities (i.e., not caused by accidental phenomena). At this time, the monitoring activity can be resumed after certain conditions are met to avoid the phenomenon of multiple stops of monitoring activities due to unlimited resumption of monitoring activities using the processing logic of accidental phenomena (for example, sending a first signal to the water conservancy monitoring device at a first time interval). Therefore, the straight-line monitoring length between the control device and the water conservancy monitoring device can be obtained by using infrared sensors, GPS and other components installed in the water conservancy monitoring equipment. For example, the straight-line monitoring length can be 6dm, 7dm, 12dm, etc.

[0101] This setting can distinguish between accidental situations and system-persistent problems, and then dynamically adjust monitoring activities according to actual conditions, thereby improving the flexibility and adaptability of monitoring.

[0102] S330, when the straight line monitoring length meets the monitoring resumption requirement, sending a first signal to the water conservancy monitoring device, so that the water conservancy monitoring device resumes the monitoring activity with the control device based on the first signal. The first signal carries a mark corresponding to the water conservancy monitoring device.

[0103] It can be understood that the recovery monitoring requirement can be that the linear monitoring length has not exceeded the first length in the second period, or the linear monitoring length has not exceeded the first length in the second period, and the linear monitoring length of the hydraulic monitoring device reflects a tendency to shorten under the action of the water flow. The first length can be a length within the length limit of the limit analysis processing, for example, if 6dm≤the length limit of the limit analysis processing≤8dm, then the first length can be 6dm, 6.5dm, 7dm, etc.

[0104] For example, when the straight-line monitoring length meets the requirements for resuming monitoring, it means that the straight-line monitoring length between the control device and the water conservancy monitoring device is no longer within the length limit of the limit analysis processing, or it means that the possibility that the straight-line monitoring length between the control device and the water conservancy monitoring device is within the length limit of the limit analysis processing is extremely small. In this case, a first signal can be sent to the water conservancy monitoring device so that the water conservancy monitoring device can resume the monitoring activities with the control device based on the first signal.

[0105] This setting can automatically determine when to resume monitoring without human intervention, allowing the system to start monitoring activities at the optimal time, helping to improve monitoring efficiency.

[0106] In a possible implementation, the requirement to stop monitoring includes that the control device and the water conservancy monitoring device have no monitoring action in the first period, or that an operator inputs a command to stop monitoring on the interactive interface of the control device. The requirement to resume monitoring includes that the linear monitoring length has not exceeded the first length in the second period, or that the linear monitoring length has not exceeded the first length in the second period, and the linear monitoring length of the water conservancy monitoring device shows a tendency to shorten under the action of water flow.

[0107] It can be understood that the monitoring action can be to monitor and analyze the data, and the absence of monitoring action in the first time period can be that the lost data cannot be monitored and analyzed in the first time period. The tendency to shorten can be that the water conservancy monitoring device, under the action of the water flow, causes the straight line monitoring length between the control device and the water conservancy monitoring device to shorten slowly or gradually. For example, the second time period is 3 minutes, the straight line monitoring length in the first minute is 6dm, the straight line monitoring length in the first minute is 5.5dm, and the straight line monitoring length in the third minute is 5dm, which indicates a tendency to shorten.

[0108] In a possible implementation, the water conservancy monitoring method based on digital twins also includes:

[0109] Before stopping the monitoring activities with the water conservancy monitoring device, if there is a monitoring action, the straight line monitoring length corresponding to the monitoring action is determined to be the first length, or, before stopping the monitoring activities with the water conservancy monitoring device, if there is no monitoring action, the straight line monitoring length corresponding to the absence of the monitoring action is determined to be the first length.

[0110] It can be understood that before stopping the monitoring activities between the water conservancy monitoring device, if there is a monitoring action, or it indicates that the monitoring activities are stopped intermittently due to data loss and the normal monitoring activities are resumed, it also means that the current straight line monitoring length is within the length limit of the limit analysis processing. Therefore, the current straight line monitoring length can be determined as the first length.

[0111] Such a setting can provide data support for subsequent decision-making analysis.

[0112] In a possible implementation, the water conservancy monitoring method based on digital twins also includes:

[0113] When the first signal is sent to the water conservancy monitoring device to resume the monitoring activity between the water conservancy monitoring device and the control device, the number of times that the monitoring stop requirement is recorded is set as the initial value, and the length of the recorded time is discarded, wherein the initial value is smaller than the first value.

[0114] It is understandable that the initial value can be 0, 1, etc.

[0115] For example, when a first signal is sent to the water conservancy monitoring device to resume the monitoring activities between the water conservancy monitoring device and the control device, the number of times that the records meet the requirements for stopping monitoring can be set to an initial value, and the length of the recording time can be discarded, so that when similar problems occur again in the future (i.e., intermittent alternation between stopping monitoring activities due to data loss and resuming normal monitoring activities), new data can be re-recorded without being disturbed by old data.

[0116] Such a setting can make subsequent monitoring activities unaffected by historical data, help improve the accuracy and relevance of monitoring data, and make all records based on the current monitoring status.

[0117] In one possible implementation, see Figure 3 In step S300, before obtaining the current target data of the target water area, the water conservancy monitoring method based on digital twins further includes:

[0118] S340, the control device sends a data acquisition request to the water conservancy monitoring device to obtain the monitoring data of the water conservancy monitoring device. The monitoring data is the monitoring mark data sent to the control device when the water conservancy monitoring device first joins the monitoring activity after being reset. Reset refers to adjusting from the monitoring abnormality mode to the non-monitoring abnormality mode, or resetting the system of the water conservancy monitoring device.

[0119] It is understandable that a suitable data communication protocol is selected between the control device and the water conservancy monitoring device, such as HTTP / HTTPS, MQTT, CoAP, etc. The control device sends a data acquisition request to the water conservancy monitoring device through the established connection. For example, the control device can send a message packet with a specific identifier to request the water conservancy monitoring device to return the current monitoring data. The monitoring data can be the monitoring location data of the water area monitored by the water conservancy monitoring device, such as whether the monitored area is water area A or water area B, or it can be data of the type of data monitored by the water conservancy monitoring device, such as whether the data currently monitored by the water conservancy monitoring device is conductivity or water pH data, that is, monitoring mark data.

[0120] For example, the monitoring abnormality mode may refer to the water conservancy monitoring device being in a fault mode, resulting in errors in the monitored data. The non-monitoring abnormality mode may refer to the water conservancy monitoring device being in a normal monitoring mode, and the monitored data is not erroneous. The water conservancy monitoring device may be overhauled or repaired when it is adjusted from the monitoring abnormality mode to the non-monitoring abnormality mode.

[0121] For example, the water conservancy monitoring device monitors water area A in the monitoring abnormality mode. After inspection or maintenance, the water conservancy monitoring device monitors water area B in the non-monitoring abnormality mode. However, the target water area is water area A. Therefore, when the water conservancy monitoring device first joins the monitoring activity after being reset, the monitored data is the data of water area B, not the data of the target water area. Therefore, the control device needs to obtain the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after being reset, so as to avoid data errors.

[0122] For example, if the control device obtains that the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after being reset is not the data of the target water area, it means that the currently monitored water area is not the target water area, then the data obtained when the monitoring activity is first joined will not be used as the input data of the digital twin model; if the control device obtains that the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after being reset is the data of the target water area, it means that the currently monitored water area is the target water area, then the data obtained when the monitoring activity is first joined will be used as the input data of the digital twin model to obtain the water quality prediction result of the target water area.

[0123] For example, before the system is reset, the monitoring task configured for the water conservancy monitoring device is to monitor the conductivity data of the target water area. However, after the system is reset, the configured monitoring task is cleared. At this time, if the water conservancy monitoring device runs the default monitoring task (such as the default monitoring task is to monitor the pH data of the target water area), the monitored data is not the conductivity data of the target water area. Therefore, the control device needs to obtain the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after the reset, so as to avoid data errors.

[0124] For example, if the control device obtains that the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after being reset is not the data of the target water area, it means that the current monitoring task is not to monitor the conductivity data of the target water area, then the data obtained when the monitoring activity is first joined will not be used as the input data of the digital twin model; if the control device obtains that the monitoring mark data when the water conservancy monitoring device first joins the monitoring activity after being reset is the data of the target water area, it means that the current monitoring task is to monitor the conductivity data of the target water area, then the data obtained when the monitoring activity is first joined will be used as the input data of the digital twin model.

[0125] With such a configuration, the control device sends a data acquisition request to the water conservancy monitoring device to obtain the monitoring data of the water conservancy monitoring device, which can avoid the subsequent input of erroneous data into the digital twin model and help improve the subsequent monitoring efficiency.

[0126] S350, when the monitoring mark data matches the preset mark data preset on the control device, a monitoring instruction is sent to the water conservancy monitoring device corresponding to the preset mark according to the preset mark preset on the control device. The preset mark data is the data sent to the control device before the reset event of the water conservancy monitoring device occurs. The preset mark is obtained by the control device in advance when the water conservancy monitoring device is in a non-monitoring abnormal mode and in a monitoring activity. The monitoring instruction is used to instruct the water conservancy monitoring device to send the target data monitored in the target water area to the control device.

[0127] It can be understood that the preset mark data preset on the control device can be the mark data obtained when the water conservancy monitoring device is in normal working state (such as no failure, the acquired data is correct or the system is not reset), and can be used to identify which water conservancy monitoring device 1 (i.e., the preset mark is used to distinguish which water conservancy monitoring device is to receive the subsequent monitoring instruction. For example, water conservancy monitoring device 2 is also monitoring water area A, but water conservancy monitoring device 2 has not experienced a reset event. The preset mark can be obtained by the control device from the water conservancy monitoring device via a wired method) monitors which water area (such as monitoring water area A) under normal working state, that is, the target water area to be monitored. When water conservancy monitoring device 1 first joins the monitoring activity after being reset, the monitoring mark data reflects that the water area monitored by water conservancy monitoring device 1 is also water area A, indicating that the monitoring mark data matches the preset mark data preset on the control device. Therefore, the control device sends a monitoring instruction to the water conservancy monitoring device corresponding to the preset mark, that is, sends a monitoring instruction to water conservancy monitoring device 1 monitoring water area A.

[0128] With such a configuration, when the monitoring mark data matches the preset mark data preset on the control device, a monitoring instruction is sent to the water conservancy monitoring device corresponding to the preset mark according to the preset mark preset on the control device. This can ensure that the monitoring instruction is sent to the correct water conservancy monitoring device, help reduce the sending of erroneous instructions, ensure the accuracy of the data source, and further help improve subsequent monitoring efficiency.

[0129] S360, generating monitoring control information when the monitoring mark data does not match the preset mark data preset on the control device.

[0130] It can be understood that when the water conservancy monitoring device 1 first joins the monitoring activity after being reset, the monitoring mark data reflects that the water area monitored by the water conservancy monitoring device 1 is water area B, while the preset mark data preset on the control device reflects that the water area A is monitored under normal working conditions of the water conservancy monitoring device 1, indicating that the monitoring mark data does not match the preset mark data preset on the control device. At this time, it is possible to continuously obtain whether the target water area to be monitored has changed. If the target water area to be monitored is changed to water area B, the data obtained when the monitoring activity is first joined will be used as the input data of the digital twin model; if the target water area to be monitored has not been changed to water area B, the data obtained when the monitoring activity is first joined will not be used as the input data of the digital twin model, that is, the monitoring control information. It may also be that when the water conservancy monitoring device 1 first joins the monitoring activity after being reset, the monitoring mark data reflects that the monitoring task of the water conservancy monitoring device 1 is to monitor the pH data of the water area, while the preset mark data preset on the control device reflects that the monitoring task of the water conservancy monitoring device 1 under normal working conditions is to monitor the conductivity data of the water area, indicating that the monitoring mark data does not match the preset mark data preset on the control device. At this time, the data obtained when joining the monitoring activity for the first time will not be used as the input data of the digital twin model, that is, the monitoring control information.

[0131] With such a configuration, when the monitoring mark data does not match the preset mark data preset on the control device, monitoring control information is generated, which can identify and handle data inconsistency problems, avoid potential monitoring errors, and thus help improve monitoring efficiency.

[0132] In a possible implementation, S360, when the monitoring mark data does not match the preset mark data preset on the control device, generating monitoring control information includes:

[0133] S361, when the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is not adjusted to the water area information recorded in the water conservancy monitoring device, generate the first control information in the monitoring control information. The first control information is used to prevent the water conservancy monitoring device from sending the monitored target data to the control device.

[0134] It can be understood that the water area information can be the information of the water area location monitored by the water conservancy monitoring device after resetting, and the preset target water area information on the control device can be the information of the target water area location required to be monitored. When the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device has not been adjusted to the water area information recorded in the water conservancy monitoring device, it means that the target water area location required to be monitored (such as water area A) has not been changed to the water area location monitored by the water conservancy monitoring device after resetting (such as water area B). Then the control device will send a first control information to the water conservancy monitoring device to prevent the water conservancy monitoring device from sending the monitored conductivity data to the control device, thereby avoiding the use of erroneous data as input data for the digital twin model.

[0135] With such a setting, when the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device has not been adjusted to the water area information recorded in the water conservancy monitoring device, the first control information in the monitoring control information is generated, which can prevent inaccurate data from affecting decision-making or subsequent analysis, thereby helping to improve subsequent monitoring efficiency.

[0136] S362, when the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is adjusted to the water area information recorded in the water conservancy monitoring device, generate second control information in the monitoring control information. The second control information is used to instruct the water conservancy monitoring device to send the monitored target data to the control device.

[0137] It can be understood that when the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is adjusted to the water area information recorded in the water conservancy monitoring device, it means that the target water area location to be monitored (such as water area A) is changed to the water area location monitored by the water conservancy monitoring device after resetting (such as water area B), that is, the target water area location to be monitored is changed from water area A to water area B, then the control device will send a second control information to the water conservancy monitoring device to instruct the water conservancy monitoring device to send the monitored conductivity data to the control device.

[0138] With such a configuration, when the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is adjusted to the water area information recorded in the water conservancy monitoring device, the second control information generated in the monitoring control information can be dynamically adjusted (such as the collected water area is the water area actually required to be monitored at present), avoiding data errors caused by inconsistent information, and thus helping to improve subsequent monitoring efficiency.

[0139] In a possible implementation, in step S340, before the control device sends a data acquisition request to the water conservancy monitoring device to obtain monitoring data of the water conservancy monitoring device, the water conservancy monitoring method based on digital twins further includes:

[0140] S341, the control device sends a monitoring data generation instruction to the water conservancy monitoring device.

[0141] It can be understood that the control device can send monitoring data generation instructions to the water conservancy monitoring device via wired or wireless means. The monitoring data generation instructions are used to instruct the water conservancy monitoring device to send the current monitoring function (such as monitoring conductivity, monitoring pH, monitoring flow, etc.) and monitoring area (such as area A, area B, area C, etc.) and other information to the control device.

[0142] With such arrangement, by sending a monitoring data generation instruction to the water conservancy monitoring device through the control device, the current monitoring function and monitoring area of ​​the water conservancy monitoring device can be obtained in time, providing data support for subsequent monitoring.

[0143] S342, receiving first data sent to the water conservancy monitoring device, wherein the first data is generated by the water conservancy monitoring device according to the monitoring function and the monitoring area.

[0144] It is understandable that after sending the monitoring data generation instruction, the control device will wait for the response of the water conservancy monitoring device. The water conservancy monitoring device will send the current monitoring function and monitoring area information to the control device according to the received monitoring data generation instruction, that is, the first data.

[0145] With such arrangement, by receiving the first data sent to the water conservancy monitoring device, the current monitoring status of the water conservancy monitoring device can be understood in real time, which is helpful for subsequent evaluation of the data accuracy of the water conservancy monitoring device, and further helps to improve subsequent monitoring efficiency.

[0146] S343, determining monitoring data based on the first data.

[0147] It can be understood that, first, the format of the first data can be parsed. According to the predefined communication protocol, the structure of the data packet and the meaning of each field, such as timestamp, monitoring value, device ID, etc., are identified. Then, key monitoring information (such as pH value, conductivity, location of the monitored water area, etc.) is extracted from the first data. Finally, this information is integrated into monitoring data. As shown in Table 3:

[0148] Table 3

[0149]

[0150] By setting up in this way, the monitoring data is determined based on the first data, so that the working status of the water conservancy monitoring device can be understood, and data support can be provided for subsequent monitoring, which helps to reduce data loss and thus helps to improve monitoring efficiency.

[0151] S400, inputting the target data into the digital twin model so that the digital twin model analyzes and processes the target data and outputs the water quality prediction result corresponding to the target water area.

[0152] It can be understood that the trained model is deployed in the water conservancy monitoring equipment, and then the acquired conductivity data is passed to the trained digital twin model. The digital twin model will calculate based on the input conductivity data and output the water quality prediction results of the target water area. For example, the water quality prediction results can be the pollutant concentration results, the pollution degree results, whether there are pollutants, etc.

[0153] With this setting, by inputting the target data into the digital twin model, the digital twin model analyzes and processes the target data and outputs the water quality prediction results corresponding to the target water area. This can process the input data in real time and quickly generate feedback results without the need for analysis in the laboratory, saving time for data analysis and helping to improve monitoring efficiency.

[0154] In a possible implementation, in step S400, before inputting the target data into the digital twin model so that the digital twin model analyzes and processes the target data and outputs the water quality prediction result corresponding to the target water area, the water conservancy monitoring method based on the digital twin further includes:

[0155] S410, monitoring a first operation, wherein the first operation is an operation in which the water conservancy monitoring device requests the control device to adjust the monitoring accuracy of the water conservancy monitoring device.

[0156] It is understandable that a data monitoring tool or middleware can be used to capture and record the operation of monitoring accuracy sent from the water conservancy monitoring device. For example, the conductivity data currently monitored by the water conservancy monitoring device is 0.141mS / cm, then the control device can adjust the monitoring accuracy of the water conservancy monitoring device in response to the first operation, so that the conductivity data monitored by the water conservancy monitoring device after adjustment is 0.14134mS / cm.

[0157] Such a setting, by monitoring the first operation, helps to ensure that the water conservancy monitoring device can be accurately adjusted according to actual needs, thereby improving the accuracy and reliability of the data, and further helping to improve monitoring efficiency.

[0158] S420, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, the control device controls the water conservancy monitoring device not to adjust the monitoring accuracy, and sends the first information to the water conservancy monitoring device. The first information is used to convey to the water conservancy monitoring device information that the monitoring accuracy has been adjusted when the monitoring accuracy has not been adjusted, or to convey to the water conservancy monitoring device information that the optimal monitoring accuracy has been met when the optimal monitoring accuracy has not been met.

[0159] For example, the first precision value can be 0.01mS / cm, 0.001mS / cm, 0.0001mS / cm, etc. When the first precision value is 0.01mS / cm, it means that the conductivity data needs to be accurate to two decimal places. If the conductivity data monitored by the current water conservancy monitoring device is 0.14mS / cm, then the conductivity data of the target water area meets the first precision value; if the conductivity data monitored by the current water conservancy monitoring device is 0.1mS / cm, then the conductivity data of the target water area does not meet the first precision value. For example, low-precision conductivity data can be used for rough water quality monitoring needs or ordinary environmental monitoring needs, and high-precision conductivity data can be used for research-level water quality monitoring needs.

[0160] It can be understood that when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it means that when the conductivity data monitored by the current water conservancy monitoring device can meet the current monitoring requirements (such as the first accuracy value is 0.01mS / cm, and the conductivity data monitored by the current water conservancy monitoring device is 0.14mS / cm), the water conservancy monitoring device still wants to adjust the monitoring accuracy. Therefore, in order to avoid the water conservancy monitoring device from making unnecessary adjustments, the control device will not respond to the first operation, and then control the water conservancy monitoring device not to adjust the monitoring accuracy, and send the first information to the water conservancy monitoring device. For example, the content of the first information is as follows: "The current monitoring accuracy meets the requirements and no adjustment is required", or "The current monitoring accuracy has met the requirements of the optimal monitoring accuracy and no adjustment is required". The first information can convey to the water conservancy monitoring device that the current monitoring accuracy has met the optimal accuracy, avoid misjudgment of the water conservancy monitoring device, and avoid continuously requesting the control device to adjust the monitoring accuracy of the water conservancy monitoring device when the conductivity data monitored by the water conservancy monitoring device meets the first accuracy value.

[0161] With such a configuration, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, the control device controls the water conservancy monitoring device not to adjust the monitoring accuracy, and sends the first information to the water conservancy monitoring device. This can prevent the device from making unnecessary accuracy adjustments, thereby saving monitoring resources, such as processing power, time and monitoring costs, and helping to improve monitoring efficiency.

[0162] In a possible implementation, the water conservancy monitoring method based on digital twins also includes:

[0163] When the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, the control device controls the water conservancy monitoring device to adjust the monitoring accuracy.

[0164] It can be understood that when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, it means that the conductivity data monitored by the current water conservancy monitoring device does not meet the current monitoring requirements (such as the first accuracy value is 0.001mS / cm, and the conductivity data monitored by the current water conservancy monitoring device is 0.14mS / cm), and the water conservancy monitoring device wants to adjust the monitoring accuracy. Therefore, the control device will respond to the first operation, and then control the water conservancy monitoring device to adjust the monitoring accuracy. For example, the monitoring accuracy of the water conservancy monitoring device is adjusted to 0.001mS / cm, so that the conductivity data monitored by the water conservancy monitoring device is 0.141mS / cm.

[0165] With such a configuration, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, the control device controls the water conservancy monitoring device to adjust the monitoring accuracy, thereby ensuring that the conductivity data monitored by the water conservancy monitoring device can meet the required monitoring requirements, thereby improving the accuracy of the monitoring results.

[0166] In a possible implementation, S420, sending first information to a water conservancy monitoring device includes:

[0167] S421, when a first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, the number of operations in which the water conservancy monitoring device requests the control device to adjust the monitoring accuracy of the water conservancy monitoring device is determined not to adjust the monitoring accuracy.

[0168] For example, whenever the water conservancy monitoring device sends an operation signal requesting adjustment of the monitoring accuracy, the control device captures and processes it. After receiving the first operation, the control device first obtains the conductivity data of the target water area and determines whether the data meets the first accuracy value. Each time the control device monitors the operation of the water conservancy monitoring device requesting adjustment of the monitoring accuracy, and the conductivity data meets the first accuracy value (that is, it is determined that no accuracy adjustment is required), the value of the operation counter is increased by 1, and the initial value of the operation counter is set to 0.

[0169] It can be understood that when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it means that the conductivity data monitored by the current water conservancy monitoring device can meet the current monitoring requirements (such as the first accuracy value is 0.01mS / cm, and the conductivity data monitored by the current water conservancy monitoring device is 0.14mS / cm). The water conservancy monitoring device still wants to adjust the monitoring accuracy. At this time, the control device can obtain the number of operations to determine whether to adjust the monitoring accuracy through the operation counter.

[0170] With such a configuration, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, the number of operations in which the water conservancy monitoring device requests the control device to adjust the monitoring accuracy of the water conservancy monitoring device and then determines not to adjust the monitoring accuracy can provide data support for subsequent control of the water conservancy monitoring device, help to better evaluate and optimize the monitoring strategy, and thus help to improve monitoring efficiency.

[0171] S422: When the number of operations is greater than or equal to the first number, send first information to the water conservancy monitoring device.

[0172] For example, the first number can be 2, 3, 4, etc. For example, when the first number is 2, if the control device obtains through the operation counter that the number of operations for not adjusting the monitoring accuracy is 2, then the control device sends the first information to the water conservancy monitoring device.

[0173] With such a setting, when the number of operations is greater than or equal to the first number, sending the first information to the water conservancy monitoring device can prevent the device from making unnecessary accuracy adjustments, thereby saving monitoring resources such as processing power, time and monitoring costs, and helping to improve monitoring efficiency.

[0174] In a possible implementation, S420, sending first information to a water conservancy monitoring device includes:

[0175] S423, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, a transmission signal is sent to the water conservancy monitoring device. The transmission signal is used to transmit a signal that the monitoring accuracy is not adjusted to the water conservancy monitoring device.

[0176] It can be understood that when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it means that the conductivity data monitored by the current water conservancy monitoring device can meet the current monitoring requirements (such as the first accuracy value is 0.01mS / cm, and the conductivity data monitored by the current water conservancy monitoring device is 0.14mS / cm). The control device can send a transmission signal to the water conservancy monitoring device to convey to the water conservancy monitoring device that the control device has not adjusted the monitoring accuracy of the water conservancy monitoring device. The next time the control device monitors the first operation again and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, the control device can continue to send a transmission signal to the water conservancy monitoring device.

[0177] With such a configuration, when the first operation is monitored and the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, a transmission signal is sent to the water conservancy monitoring device, which can convey to the water conservancy monitoring device that the control device has not adjusted the monitoring accuracy of the water conservancy monitoring device. This helps to avoid the water conservancy monitoring device making unnecessary adjustment attempts due to failure to receive feedback from the control device, effectively reduces redundant operations initiated by the water conservancy monitoring device to adjust the monitoring accuracy, prevents repeated operations, thereby saving monitoring resources and helping to improve monitoring efficiency.

[0178] S424, when the signal quantity of the transmitted signal is equal to or exceeds the first signal quantity, send first information to the water conservancy monitoring device, wherein the signal quantity is used to reflect the signal quantity of the transmitted signal sent by the control device to the water conservancy monitoring device.

[0179] It can be understood that a semaphore counter is set in the control device to record the number of times the transmission signal is sent each time. When initialized, the value of the counter is 0. After each transmission signal is sent to the water conservancy monitoring device, the counter will increase by 1. After each transmission signal is sent, the control device checks whether the value of the semaphore counter is equal to or exceeds the preset first semaphore. If the value of the semaphore counter reaches or exceeds the first signal (such as the first signal is 3), the control device will send the first information to the water conservancy monitoring device. The first signal can be 2, 3, 4, etc.

[0180] With such a setting, when the signal amount of the transmitted signal is equal to or exceeds the first signal amount, sending the first information to the water conservancy monitoring device can prevent the device from making unnecessary precision adjustments, thereby saving monitoring resources, such as processing power, time and monitoring costs, etc., and helping to improve monitoring efficiency.

[0181] In a possible implementation, after sending the first information to the water conservancy monitoring device in step S420, the water conservancy monitoring method based on digital twins further includes:

[0182] S425, determining whether the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value.

[0183] It can be understood that after the control device sends the first information to the water conservancy monitoring device, the control device reads the conductivity data of the current target water area from the water conservancy monitoring device to determine whether the conductivity data of the current target water area meets the first accuracy value. For example, before the control device sends the first information to the water conservancy monitoring device, the first accuracy value is 0.01mS / cm, and after the control device sends the first information to the water conservancy monitoring device, the first accuracy value becomes 0.001mS / cm, then the conductivity data of the current target water area does not meet the first accuracy value. For another example, before the control device sends the first information to the water conservancy monitoring device, the first accuracy value is 0.01mS / cm, and after the control device sends the first information to the water conservancy monitoring device, the first accuracy value is 0.01mS / cm, then the conductivity data of the current target water area meets the first accuracy value.

[0184] Such a configuration can determine whether the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, which helps to ensure the reliability and accuracy of the data, thereby improving subsequent monitoring efficiency.

[0185] S426, when it is determined that the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, the control device controls the water conservancy monitoring device to adjust the monitoring accuracy.

[0186] It can be understood that when it is determined that the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, it means that the first accuracy value before the control device sends the first information to the water conservancy monitoring device (the first accuracy value is 0.01mS / cm) is different from the first accuracy value after the control device sends the first information to the water conservancy monitoring device (the first accuracy value is 0.001mS / cm), that is, the conductivity data of the current target water area does not meet the first accuracy value, then the control device will control the water conservancy monitoring device to adjust the monitoring accuracy, for example, adjust the monitoring accuracy of the water conservancy monitoring device to 0.001mS / cm, so that the conductivity data monitored by the water conservancy monitoring device is 0.141mS / cm.

[0187] With such a configuration, when it is determined that the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device does not meet the first accuracy value, the control device controls the water conservancy monitoring device to adjust the monitoring accuracy, which helps to reduce false detection due to inaccurate data, thereby helping to reduce errors and improve subsequent monitoring efficiency.

[0188] In a possible implementation, the water conservancy monitoring method based on digital twins also includes:

[0189] When it is determined that the current conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it is determined every third time period whether the current conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value.

[0190] It can be understood that the third time period can be a time interval for checking the detection accuracy, such as 1 hour, 2 hours, 3 hours, etc. In the case of judging that the current monitoring accuracy of the conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it means that the conductivity data detected by the current water conservancy monitoring device meets the first accuracy value, and in order to avoid the first accuracy value from changing (for example, from 0.01mS / cm to 0.001mS / cm, which can be changed according to the monitoring requirements, such as from ordinary environmental monitoring requirements to research-level water quality monitoring requirements), it is necessary to determine whether the current conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value every third time period. For example, at 8:00, the conductivity data detected by the water conservancy monitoring device meets the first accuracy value, and at 9:00, the first accuracy value changes. Therefore, at 9:00, the conductivity data detected by the water conservancy monitoring device does not meet the first accuracy value. At this time, the control device will control the water conservancy monitoring device to adjust the monitoring accuracy.

[0191] With such a configuration, when it is determined that the current conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value, it is determined every third time period whether the current conductivity data of the target water area obtained by the control device from the water conservancy monitoring device meets the first accuracy value. This can ensure the continuous accuracy and reliability of the monitoring data, help to discover and correct any data deviations that may occur, and thus improve monitoring efficiency.

[0192] 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.

[0193] Corresponding to the water conservancy monitoring method based on digital twins described in the above embodiments, the embodiments of the present application also provide a water conservancy monitoring system based on digital twins, and each unit of the system can implement each step of the water conservancy monitoring method based on digital twins. Figure 4 A structural block diagram of a water conservancy monitoring system based on digital twins provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0194] Reference Figure 4, the water conservancy monitoring system based on digital twin includes:

[0195] The acquisition unit is used to acquire historical data, wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the historical conductivity data of historical periods.

[0196] The generation unit is used to construct a digital twin model based on the historical conductivity data and the historical water quality result data. The digital twin model is a neural network model trained with the historical conductivity data in the historical data as input data and the historical water quality result data corresponding to the historical conductivity data in the historical period as output data.

[0197] The detection unit is used to obtain the current target data of the target water area, wherein the target data is used to reflect the conductivity data at the current moment in real time.

[0198] The output unit is used to input the target data into the digital twin model so that the digital twin model analyzes and processes the target data and outputs the water quality prediction results corresponding to the target water area.

[0199] It should be noted that the information interaction, execution process, etc. between the above-mentioned systems / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0200] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the system can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into 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 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 in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0201] The present application also provides a water conservancy monitoring device, Figure 5 This is a schematic diagram of the structure of a control device for a water conservancy monitoring device provided in one embodiment of the present application. Figure 5 As shown, the control device 6 of this embodiment includes: at least one processor 60 ( Figure 5Only one is shown), at least one memory 61 ( Figure 5 Only one is shown in the figure) and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the control device 6 implements the steps in any of the above-mentioned embodiments of the water conservancy monitoring method based on digital twins, or implements the functions of each unit in the above-mentioned system embodiments.

[0202] Exemplarily, the computer program 62 may be divided into one or more units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the control device 6.

[0203] The water conservancy monitoring equipment may include a water conservancy monitoring device and a control device 6 that is connected to the water conservancy monitoring device in communication. The water conservancy monitoring device may include a water conservancy monitoring device and a control device that is connected to the water conservancy monitoring device in communication. The water conservancy monitoring device may be a monitoring device that floats on the water surface or is suspended in the water. The water conservancy monitoring device may include a conductivity sensor, a pH sensor, a flow meter, a dissolved oxygen sensor, and the like. The conductivity sensor is used to measure the conductivity of the water body in real time, thereby inferring the ion concentration and salinity in the water. The pH sensor is used to measure the pH of the water. The flow meter is used to measure the water flow rate and flow rate. The dissolved oxygen sensor is used to monitor the dissolved oxygen level in the water body. For example, the control device 6 can analyze the conductivity, and then understand the overall water quality, such as the total dissolved solids (TDS) level, to identify potential sources of pollution, such as whether industrial wastewater, agricultural runoff or other pollutants pollute the water quality. The control device 6 can also analyze the pH of the water to evaluate the acid-base balance of the water quality. The control device 6 can also analyze the rate and flow of water flow to make decisions on water resource allocation and management. The control device 6 can also analyze the dissolved oxygen level in the water to evaluate the self-purification capacity and biological health of the water. The control device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 5 It is only an example of the control device 6 and does not constitute a limitation on the control device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.

[0204] The processor 60 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.

[0205] In some embodiments, the memory 61 may be an internal storage unit of the control device 6, such as a hard disk or memory of the control device 6. In other embodiments, the memory 61 may also be an external storage device of the control device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the control device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the control device 6. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0206] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0207] An embodiment of the present application provides a computer program product. When the computer program product runs on a water conservancy monitoring device, the water conservancy monitoring device implements the steps in any of the above-mentioned method embodiments.

[0208] If the integrated 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, which can be completed by instructing the relevant hardware through a computer program, and 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 various 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 at least include: any entity or device that can carry the computer program code to the water conservancy monitoring equipment, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0209] 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.

[0210] 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 herein 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.

[0211] In the embodiments provided in the present application, it should be understood that the disclosed water conservancy monitoring equipment / water conservancy monitoring system based on digital twins and water conservancy monitoring method based on digital twins can be implemented in other ways. For example, the water conservancy monitoring equipment / water conservancy monitoring system based on digital twins described above are merely schematic. For example, the division of the 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0212] 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.

[0213] 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 conservancy monitoring method based on digital twins, characterized in that: The method comprises: Acquire historical data; wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the historical conductivity data of the historical periods; the historical data includes the pollution degree and corresponding conductivity value of the target water area in the historical periods when the structure of the current water conservancy building has not changed, or whether there are pollutants and corresponding conductivity values; A digital twin model is constructed based on the historical conductivity data and the historical water quality result data; wherein the digital twin model is a neural network model obtained by training with the historical conductivity data in the historical data as input data and the historical water quality result data corresponding to the historical conductivity data in the historical period as output data; Acquire current target data of the target water area; wherein the target data is used to reflect the conductivity data at the current real time moment; The target data is input into the digital twin model, so that the digital twin model analyzes and processes the target data and outputs a water quality prediction result corresponding to the target water area; wherein the water quality prediction result includes a pollution degree result and a result of whether there are pollutants; The water conservancy monitoring equipment includes a water conservancy monitoring device and a control device in communication with the water conservancy monitoring device. Before obtaining the current target data of the target water area, the method further includes: In the case where the control device creates a monitoring activity with the water conservancy monitoring device, if the number of times that the monitoring stop requirement is met reaches a first value, the monitoring activity with the water conservancy monitoring device is stopped, and based on the signal of stopping the monitoring activity with the water conservancy monitoring device, a first signal is sent to the water conservancy monitoring device at a first time interval to resume the monitoring activity with the water conservancy monitoring device; wherein, in the case where the monitoring activity between the control device and the water conservancy monitoring device is stopped for the first time, the time and the number are recorded; each time the monitoring stop requirement is met, the time and the number are recorded once; When the length of the recording time does not exceed the first length and the number of times that the monitoring stop requirement is met reaches a second value, the straight line monitoring length between the control device and the water conservancy monitoring device is obtained; wherein the second value is greater than the first value; when the straight line monitoring length is within the length limit of the limit analysis processing, the data analysis between the control device and the water conservancy monitoring device will intermittently experience alternating situations of data loss and restoration of normal monitoring; When the straight line monitoring length meets the requirements for resuming monitoring, the first signal is sent to the water conservancy monitoring device, so that the water conservancy monitoring device resumes the monitoring activity with the control device based on the first signal; wherein the first signal carries a mark corresponding to the water conservancy monitoring device; The requirement to stop monitoring includes that the control device and the water conservancy monitoring device have no monitoring action within the first time period, or that the operator inputs a command to stop monitoring on the interactive interface of the control device; the requirement to resume monitoring includes that the straight line monitoring length has not exceeded the first length within the second time period, or that the straight line monitoring length has not exceeded the first length within the second time period, and the straight line monitoring length of the water conservancy monitoring device shows a tendency to shorten under the action of water flow.

2. The water conservancy monitoring method based on digital twins according to claim 1, characterized in that: A digital twin model is constructed based on the historical conductivity data and the historical water quality result data, the method comprising: Sending the historical conductivity data and the historical water quality result data corresponding to the target water area to a server; Receive the digital twin model sent by the server; wherein the server uses the historical conductivity data corresponding to the target water area as input data, and uses the historical water quality result data corresponding to the historical conductivity data as output data to train the neural network model to obtain the digital twin model.

3. The water conservancy monitoring method based on digital twins according to claim 1 is characterized in that: The method further comprises: Before stopping the monitoring activity with the water conservancy monitoring device, if there is a monitoring action, the straight line monitoring length corresponding to the monitoring action is determined to be the first length, or, before stopping the monitoring activity with the water conservancy monitoring device, if there is no monitoring action, the straight line monitoring length corresponding to the absence of the monitoring action is determined to be the first length.

4. The water conservancy monitoring method based on digital twins according to claim 1, characterized in that: The method further comprises: When the first signal is sent to the water conservancy monitoring device and the monitoring activity between the water conservancy monitoring device and the control device is resumed, the number of times recorded that meet the requirements for stopping monitoring is set to an initial value, and the length of the recorded time is discarded; wherein the initial value is less than the first value.

5. The water conservancy monitoring method based on digital twins according to claim 1, characterized in that: Before obtaining the current target data of the target water area, the method further includes: The control device sends a data acquisition request to the water conservancy monitoring device to obtain the monitoring data of the water conservancy monitoring device; wherein the monitoring data is the monitoring mark data sent to the control device when the water conservancy monitoring device first joins the monitoring activity after being reset; the reset refers to the adjustment from the monitoring abnormality mode to the non-monitoring abnormality mode, or the system reset of the water conservancy monitoring device; In the case where the monitoring mark data matches the preset mark data preset on the control device, a monitoring instruction is sent to the water conservancy monitoring device corresponding to the preset mark according to the preset mark preset on the control device; wherein the preset mark data is data sent to the control device before a reset event occurs in the water conservancy monitoring device; the preset mark is obtained by the control device in advance when the water conservancy monitoring device is in a non-monitoring abnormal mode and in a monitoring activity; the monitoring instruction is used to instruct the water conservancy monitoring device to send the target data monitored in the target water area to the control device; In the case where the monitoring mark data does not match the preset mark data preset on the control device, monitoring control information is generated.

6. The water conservancy monitoring method based on digital twins according to claim 5 is characterized in that: In the case where the monitoring mark data does not match the preset mark data preset on the control device, generating monitoring control information includes: In the case where the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is not adjusted to the water area information recorded in the water conservancy monitoring device, the first control information in the monitoring control information is generated; wherein the first control information is used to prevent the water conservancy monitoring device from sending the monitored target data to the control device; When the monitoring mark data does not match the preset mark data preset on the control device, and the preset target water area information on the control device is adjusted to the water area information recorded in the water conservancy monitoring device, the second control information in the monitoring control information is generated; the second control information is used to instruct the water conservancy monitoring device to send the monitored target data to the control device.

7. The water conservancy monitoring method based on digital twins according to claim 5, characterized in that: Before the control device sends a data acquisition request to the water conservancy monitoring device to acquire the monitoring data of the water conservancy monitoring device, the method further includes: The control device sends a monitoring data generation instruction to the water conservancy monitoring device; Receiving first data sent to the water conservancy monitoring device; wherein the first data is generated by the water conservancy monitoring device according to a monitoring function and a monitoring area; The monitoring data is determined based on the first data.

8. A water conservancy monitoring system based on digital twins, characterized in that: For implementing the method according to any one of claims 1 to 7, the system comprises: An acquisition unit, used to acquire historical data; wherein the historical data includes historical conductivity data of historical periods when the structure of the current water conservancy building has not changed, and historical water quality result data corresponding to the historical conductivity data of historical periods; A generating unit, configured to construct a digital twin model based on the historical conductivity data and the historical water quality result data; wherein the digital twin model is a neural network model trained with the historical conductivity data in the historical data as input data and the historical water quality result data corresponding to the historical conductivity data in the historical period as output data; A detection unit, used to obtain current target data of the target water area; wherein the target data is used to reflect the conductivity data at the current real time moment; An output unit is used to input the target data into the digital twin model so that the digital twin model analyzes and processes the target data and outputs a water quality prediction result corresponding to the target water area.

Citation Information

Patent Citations

  • Rural sewage water quality index prediction method, intelligent system, equipment and storage medium

    CN117273189A