Water quality early warning method and device, server and storage medium

Through the server receiving and processing water body indicators and current status, calculating water quality reference values ​​and early warnings, the problems of insufficient timeliness and accuracy, high costs, difficulty in maintenance and incomplete data sharing in the existing technology are solved, and efficient and accurate water quality monitoring and early warning are achieved.

CN119757677AInactive Publication Date: 2025-04-04THREE GORGES INTELLIGENT CONTROL TECHNOLOGY CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411651534.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-04-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing water quality monitoring technology is difficult to take into account both timeliness and accuracy, and is costly, difficult to maintain, and lacks a sound data sharing mechanism, resulting in poor transmission of monitoring information.

Method used

Through the server receiving and testing terminal, the water body index and current status uploaded by the detection terminal, calculate the water quality reference value, determine whether the water quality meets the qualified standards, determine the cause of the abnormality, and match the corresponding warning strategy to send it to the preset warning terminal to achieve water quality warning.

Benefits of technology

It improves the timeliness and accuracy of water quality monitoring, reduces costs, and realizes data processing and sharing of multiple detection terminals through servers, solving the problem of poor monitoring information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119757677A_ABST
    Figure CN119757677A_ABST
Patent Text Reader

Abstract

The invention relates to a water body quality early warning method and device, a server and a storage medium, and the method comprises the steps: receiving a plurality of water body indexes of a target water body uploaded by at least one detection terminal and the current state of the at least one detection terminal; calculating a water quality reference value of the target water body based on the plurality of water body indexes and the current state, and judging whether the target water body meets a preset qualification condition based on the water quality reference value; and if the target water body does not meet the preset qualified condition, determining an abnormal reason of the target water body based on the plurality of water body indexes and the current state, matching a corresponding early warning strategy based on the abnormal reason, and sending the early warning strategy to a preset early warning terminal to perform water quality early warning of the target water body. Therefore, the technical problems that timeliness and accuracy are difficult to consider at the same time, cost is high, maintenance is difficult, a sound data sharing mechanism is lacked, and monitoring information transmission is not smooth in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water quality monitoring, and in particular to a water quality early warning method, device, server and storage medium. Background Art

[0002] Water quality monitoring refers to the process of monitoring and measuring the types, concentrations and changing trends of pollutants in water bodies. There are many methods for monitoring water quality in related technologies: taking water samples back to the laboratory for analysis to obtain the quality analysis results of the water body; directly measuring on-site with portable instruments to obtain preliminary test results; using remote sensing technology to collect electromagnetic wave signals reflected or emitted by the water surface; based on spectral technology, determining the types and concentrations of pollutants by analyzing the spectral characteristics of water bodies, etc.

[0003] However, among the relevant technologies, laboratory analysis takes a long time and has poor timeliness, making it difficult to provide technical guidance for water management. Portable instruments can only obtain preliminary results and have poor monitoring effects. Remote sensing technology and spectral technology are costly and difficult to maintain. In addition, the data sharing mechanism between different monitoring sites is not sound, resulting in poor information transmission, which needs to be improved. Summary of the invention

[0004] The present application provides a water quality early warning method, device, server and storage medium to solve technical problems in related technologies, such as difficulty in balancing timeliness and accuracy, high cost, difficult maintenance, and lack of a sound data sharing mechanism, resulting in poor transmission of monitoring information.

[0005] The first aspect of the present application provides a water quality early warning method, which is applied to a server, wherein the method includes the following steps: receiving multiple water body indicators of a target water body uploaded by at least one detection terminal and the current state of the at least one detection terminal; calculating a water quality reference value of the target water body based on the multiple water body indicators and the current state, and judging whether the target water body meets a preset qualification condition based on the water quality reference value; if the target water body does not meet the preset qualification condition, determining the abnormal cause of the target water body based on the multiple water body indicators and the current state, matching a corresponding early warning strategy based on the abnormal cause, and sending the early warning strategy to a preset early warning terminal to perform a water quality early warning for the target water body.

[0006] Optionally, in one embodiment of the present application, after receiving multiple water body indicators of the target water body uploaded by at least one detection terminal and the current status of the detection terminal, it also includes: determining whether the number of detection terminals that upload the target water body is one; if the number is one, obtaining historical water body indicators of the target water body and the historical status of the detection terminal, and determining whether the detection terminal meets the preset data trust condition based on the historical water body indicators and the historical status, and if the detection terminal does not meet the preset data trust condition, correcting the current status of the detection terminal to the fault state; if the number is not one, screening out all detection terminals that meet the preset fault condition based on the water body indicators and the current status uploaded by all detection terminals, and correcting the current status of the detection terminal to the fault state.

[0007] Optionally, in one embodiment of the present application, after correcting the current state of the detection terminal to the fault state, it also includes: recording the numbers of all detection terminals in the fault state; and generating corresponding fault messages based on the detection terminal numbers.

[0008] Optionally, in one embodiment of the present application, after determining whether the target water body meets the preset qualification conditions based on the water quality reference value, it also includes: if the target water body meets the preset qualification conditions, inputting the multiple water body indicators and the current state into a pre-built water quality prediction model to obtain the water quality prediction result of the target water body; determining the water quality change trend of the target water body based on the water quality prediction result, so as to use the water quality change trend to match the corresponding water body treatment strategy.

[0009] Optionally, in one embodiment of the present application, the pre-constructed water quality prediction model is trained by historical water body indicators and corresponding historical states of the target water body.

[0010] The second aspect of the present application provides a water quality early warning device, which is applied to a server, wherein the device includes: a receiving module, which is used to receive multiple water body indicators of a target water body uploaded by at least one detection terminal and the current state of the at least one detection terminal; a first judgment module, which is used to calculate the water quality reference value of the target water body based on the multiple water body indicators and the current state, and judge whether the target water body meets the preset qualification conditions based on the water quality reference value; an early warning module, which is used to determine the abnormal cause of the target water body based on the multiple water body indicators and the current state when the target water body does not meet the preset qualification conditions, match the corresponding early warning strategy based on the abnormal cause, and send the early warning strategy to the preset early warning terminal to perform a water quality early warning for the target water body.

[0011] Optionally, in one embodiment of the present application, it also includes: a second judgment module, used to judge whether the number of detection terminals that upload the target water body is one; a first correction module, used to obtain historical water body indicators of the target water body and the historical status of the detection terminal when the number is one, and judge whether the detection terminal meets the preset data trust condition based on the historical water body indicators and the historical status, and correct the current status of the detection terminal to the fault state when the detection terminal does not meet the preset data trust condition; a second correction module, used to filter out all detection terminals that meet the preset fault condition based on the water body indicators and current status uploaded by all detection terminals when the number is not one, and correct the current status of the detection terminal to the fault state.

[0012] Optionally, in an embodiment of the present application, it further includes: a recording module, used to record the numbers of all detection terminals in the fault state; and a generating module, used to generate corresponding fault messages based on the detection terminal numbers.

[0013] Optionally, in one embodiment of the present application, it also includes: a calculation module, which is used to input the multiple water body indicators and the current state into a pre-built water quality prediction model to obtain the water quality prediction result of the target water body when the target water body meets the preset qualification conditions; a determination module, which is used to determine the water quality change trend of the target water body based on the water quality prediction result, so as to use the water quality change trend to match the corresponding water body treatment strategy.

[0014] Optionally, in one embodiment of the present application, the pre-constructed water quality prediction model is trained by historical water body indicators and corresponding historical states of the target water body.

[0015] The third aspect of the present application provides a server, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the water quality early warning method as described in the above embodiment.

[0016] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the water quality early warning method as described in the above embodiment.

[0017] The fifth aspect of the present application provides a computer program product, including a computer program, which, when executed, is used to implement the above-mentioned water quality early warning method.

[0018] The embodiment of the present application can receive multiple water body indicators of the target water body uploaded by at least one detection terminal and the current state of at least one detection terminal, and then calculate the water quality reference value of the target water body, and determine whether the water quality of the target water body meets the qualified standards, and if it does not meet the qualified standards, determine the abnormal cause of the target water body, and match the corresponding early warning strategy based on the abnormal cause, and send the early warning strategy to the preset early warning terminal to carry out water quality early warning of the target water body, with high timeliness and accuracy, and low cost, and realize data processing of multiple detection terminals through the server to achieve data sharing. Therefore, it solves the technical problems in the related technology that it is difficult to take into account both timeliness and accuracy, high cost, difficult maintenance, and lack of a sound data sharing mechanism, resulting in poor transmission of monitoring information.

[0019] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0021] Figure 1 A flow chart of a water quality early warning method provided according to an embodiment of the present application;

[0022] Figure 2 This is a schematic diagram of data display of a detection terminal according to an embodiment of the present application;

[0023] Figure 3 This is a schematic diagram of data display of a detection terminal according to another embodiment of the present application;

[0024] Figure 4 A schematic diagram of the structure of a water quality early warning device provided according to an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the structure of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0027] The following describes the water quality early warning method, device, server and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the related technologies mentioned in the above background technology, it is difficult to take into account both timeliness and accuracy, the cost is high, maintenance is difficult, and there is a lack of a sound data sharing mechanism, resulting in poor monitoring information transmission and other technical problems, the present application provides a water quality early warning method, in which multiple water body indicators of the target water body uploaded by at least one detection terminal and the current state of at least one detection terminal can be received, and then the water quality reference value of the target water body can be calculated, and it can be determined whether the water quality of the target water body meets the qualified standard, and if it does not meet the qualified standard, the abnormal cause of the target water body is determined, and the corresponding early warning strategy is matched based on the abnormal cause, and the early warning strategy is sent to the preset early warning terminal to perform water quality early warning of the target water body, with high timeliness and accuracy, and low cost, and the data processing of multiple detection terminals is realized through the server to realize data sharing. Thus, it solves the technical problems that it is difficult to take into account both timeliness and accuracy, the cost is high, maintenance is difficult, and there is a lack of a sound data sharing mechanism, resulting in poor monitoring information transmission and the like in the related technology.

[0028] Specifically, Figure 1 A schematic flow chart of a water quality early warning method provided in an embodiment of the present application.

[0029] like Figure 1 As shown, the water quality early warning method is applied to a server, wherein the method comprises the following steps:

[0030] In step S101, a plurality of water body indicators of a target water body uploaded by at least one detection terminal and a current state of at least one detection terminal are received.

[0031] In the actual implementation process, Figure 2 and Figure 3 As shown, the detection terminal can collect data on multiple indicators of the target water body (such as COD, total phosphorus, total nitrogen, ammonia nitrogen, etc.), and transmit its real-time instrument status data (0 means normal, 1 means cleaning, 2 means fault, 3 means maintenance, and 4 means calibration) to the server, such as the Internet of Things platform, water quality detection cloud platform, etc.

[0032] Among them, the collection method can use sensors, monitoring equipment and other technologies, and data transmission can be achieved using wireless communication technologies (such as cellular networks, LoRa, etc.).

[0033] Optionally, in one embodiment of the present application, after receiving multiple water body indicators of the target water body uploaded by at least one detection terminal and the current status of the detection terminal, it also includes: determining whether the number of detection terminals that upload the target water body is one; if the number is one, obtaining historical water body indicators of the target water body and the historical status of the detection terminal, and determining whether the detection terminal meets the preset data trust condition based on the historical water body indicators and the historical status, and if the detection terminal does not meet the preset data trust condition, correcting the current status of the detection terminal to a fault state; if the number is not one, screening out all detection terminals that meet the preset fault condition based on the water body indicators and the current status uploaded by all detection terminals, and correcting the current status of the detection terminal to a fault state.

[0034] It is understandable that the detection terminal may have a fault. When the detection terminal fails, there will be large errors in the water quality indicators it obtains, and the status information it displays may also be inconsistent with the actual fault status. At this time, judging the water quality based on the data uploaded by the detection terminal will cause the judgment result to be inconsistent with the actual situation.

[0035] To avoid the above situation, the embodiment of the present application can determine the status of the detection terminal.

[0036] The embodiment of the present application can determine the number of detection terminals used to monitor the target water body and upload data, and is divided into two situations according to the number.

[0037] The first is that the number of detection terminals is one. In this case, there is a lack of horizontal comparison. The embodiment of the present application can retrieve the historical uploaded data of the detection terminal. The server in the embodiment of the present application can obtain the code of the detection terminal when the detection terminal uploads data to locate the specific detection terminal and its corresponding historical database.

[0038] After retrieving the historical database, the embodiment of the present application can match the corresponding historical water body indicators according to the current state, and calculate the change trend of each historical water body indicator according to the order of data upload time of the detection terminal, and then determine whether the water body indicators uploaded in the current state are consistent with the change trend. If they are consistent with the change trend, the preset data credibility condition is met, otherwise, the detection terminal is determined to be faulty.

[0039] The second is that the number of detection terminals is not one, in which case the embodiment of the present application can determine whether there is a fault by horizontal comparison. For example, if detection terminal A, detection terminal B, detection terminal C, and detection terminal D are in the same current state, the water body indicators of the four detection terminals are compared, and then the detection terminal with a large difference in water body indicators from other detection terminals is selected, and the detection terminal is determined to be faulty.

[0040] Optionally, in one embodiment of the present application, after correcting the current state of the detection terminal to a fault state, it further includes: recording the numbers of all detection terminals in a fault state; and generating corresponding fault messages based on the detection terminal numbers.

[0041] As a possible implementation method, after correcting the current state of the detection terminal, the embodiment of the present application can record the numbers of all detection terminals in a faulty state, and determine the location of the detection terminal, the detection time, the fault time, the water body indicators and status information uploaded after the fault based on the number to generate a fault message, so as to subsequently troubleshoot the cause of the fault and repair the detection terminal.

[0042] In step S102, a water quality reference value of a target water body is calculated based on a plurality of water body indicators and a current state, and it is determined whether the target water body meets a preset qualification condition based on the water quality reference value.

[0043] Furthermore, the embodiments of the present application can perform data processing on the acquired data before calculation, including status data identification, real-time data outlier processing, etc. The specific data processing method can be selected by technical personnel in this field based on the actual collected water body indicators and status.

[0044] The embodiment of the present application can perform logical judgment on the current status and real-time water index data after data processing {for example: A water quality instrument status mark "0" AND A detection terminal real-time water index data "exceeds the standard"} to obtain a water quality reference value, and judge whether the water quality reference value exceeds a certain warning value to determine whether the target water body meets the preset qualification conditions.

[0045] For example, the embodiment of the present application can set corresponding state coefficients for different states, determine corresponding weight coefficients for each water body index data whether it exceeds a certain standard range, and then combine the state coefficient, weight coefficient and water body index data to obtain a water quality reference value. Among them, the standard range can be set accordingly by those skilled in the art according to actual conditions, and no specific limitation is made here.

[0046] Optionally, in one embodiment of the present application, after determining whether the target water body meets the preset qualification conditions based on the water quality reference value, it also includes: if the target water body meets the preset qualification conditions, inputting multiple water body indicators and the current state into a pre-built water quality prediction model to obtain a water quality prediction result for the target water body; determining the water quality change trend of the target water body based on the water quality prediction result, so as to use the water quality change trend to match the corresponding water body treatment strategy.

[0047] In some embodiments, if the target water body is qualified, the embodiments of the present application can predict the future water quality and water quality change trend of the target water body based on a pre-built water quality prediction model, multiple water body indicators and current status.

[0048] Among them, water quality change trends may include improvement trends, deterioration trends, stable trends, etc.

[0049] For example, if the water quality is predicted to deteriorate, the water treatment strategy matched by the embodiment of the present application may be to strengthen the measurement of purification measures, such as adding aeration equipment to increase the dissolved oxygen level, or to enhance wastewater treatment capacity to reduce pollutant emissions. If the water quality is predicted to stabilize or improve, the water treatment strategy matched by the embodiment of the present application may be to maintain the existing treatment plan and monitor the natural recovery.

[0050] Optionally, in one embodiment of the present application, the pre-constructed water quality prediction model is trained by historical water body indicators and corresponding historical states of the target water body.

[0051] Among them, the embodiment of the present application can use the historical water body indicators of the target water body and the historical status of each detection terminal that detects the target water body when uploading the historical water body indicators as a sample data set, and combine the time sequence and the actual water quality of the target water body at the corresponding time, and the actual water quality of the target water body at the next detection moment to train a water quality prediction model, and obtain a water quality prediction model that can predict the water quality changes at the next moment based on the current data.

[0052] In step S103, if the target water body does not meet the preset qualification conditions, the abnormal cause of the target water body is determined based on multiple water body indicators and the current state, and the corresponding early warning strategy is matched based on the abnormal cause, and the early warning strategy is sent to the preset early warning terminal to perform water quality early warning of the target water body.

[0053] In other embodiments, if the target water body is unqualified, the embodiments of the present application can determine the abnormal cause of the target water body based on multiple water body indicators and the current status.

[0054] The embodiments of the present application can analyze the reasons that may cause a certain indicator to be abnormal based on the correlation between known water quality indicators. For example, a high BOD value may indicate an increase in organic pollutants, while a high NH-N value may mean the influx of domestic sewage or agricultural runoff.

[0055] The embodiments of the present application can be assisted by a geographic information system (GIS): GIS technology is used in combination with geographic location information to analyze whether there are new pollution sources in the nearby area, such as new facilities, industrial emissions, agricultural activities, etc.

[0056] The embodiments of the present application may also take into account the impact of seasonal changes on water quality, such as the rainy season may cause an increase in suspended matter in the river.

[0057] The embodiments of the present application may also consider the impact of human activities and investigate nearby human activities, such as illegal sewage discharge, construction activities, etc.

[0058] After determining the cause of the abnormality, the embodiment of the present application can match the corresponding early warning strategy according to the cause of the abnormality and send it to the preset terminal.

[0059] For example, if the cause of the abnormality is the inflow of domestic sewage or agricultural runoff, the early warning strategy matched by the embodiment of the present application may be a sewage inflow early warning strategy, and the early warning strategy may be sent to the sewage treatment terminal; if the cause of the abnormality is a construction activity, the early warning strategy matched by the embodiment of the present application may be a construction early warning strategy, and the early warning strategy may be sent to urban management and planning terminals near the construction site.

[0060] Combination Figure 2 and Figure 3 As shown, the working principle of the water quality early warning method of the embodiment of the present application is described in detail with an embodiment.

[0061] First, the technology involved in the embodiments of the present application is described.

[0062] Internet of Things Technology: The embodiments of the present application can use Internet of Things technology to realize data collection, transmission and interconnection. Internet of Things technology can enable various devices and sensors to be interconnected and realize intelligent and automated water quality monitoring and management.

[0063] Sensor technology: The embodiments of the present application can use a variety of sensors to collect water quality index data. Sensors can be selected from different types according to the measurement principles of different indicators. Common ones include electrochemical sensors, optical sensors, acoustic sensors, etc.

[0064] Wireless communication technology: The water quality data collected by the sensor needs to be transmitted to the central processing unit through wireless communication technology. Low-power wide area network communication technologies such as cellular networks and LoRa can be used to achieve remote transmission and interconnection of data.

[0065] Data analysis technology: The embodiments of the present application can use data analysis technology to process and analyze the collected water quality data. Statistical methods, machine learning and other means can be used to establish a water quality model and predict future water quality change trends.

[0066] Furthermore, the embodiment of the present application may include the following steps:

[0067] Step S1: Data collection and transmission: Figure 2 and Figure 3As shown, the embodiment of the present application can collect data on multiple indicators of water bodies (such as COD, total phosphorus, total nitrogen, ammonia nitrogen, etc.), and transmit the current status data of the real-time detection terminal (0 means normal, 1 means cleaning, 2 means fault, 3 means maintenance, 4 means calibration) to the Internet of Things platform. The collection method can use sensors, monitoring equipment and other technologies, and data transmission can be achieved using wireless communication technology (such as cellular networks, LoRa, etc.).

[0068] Step S2: Data processing and analysis: After receiving the water quality data collected by the sensor, the embodiment of the present application needs to process and analyze the data. Data processing includes instrument status data identification, real-time data abnormal value processing, etc. Data analysis can use statistical methods and other means to analyze and predict water quality indicators.

[0069] Step S3: Early warning mechanism: The embodiment of the present application can issue early warning signals in time according to the changes in water quality indicators. Perform logical judgment of instrument status and real-time data {for example: A water quality instrument status mark "0" AND A water quality instrument real-time data "exceeds the standard"} operation, and set the early warning value. Once the set value is exceeded, the system will immediately send an alarm message to remind relevant personnel to take emergency measures.

[0070] Step S4: Data visualization and user interface: The embodiment of the present application can also provide an intuitive data visualization interface, which displays the changing trend of water quality indicators in the form of charts, maps, etc., so that users can intuitively understand the health status of the water body.

[0071] Based on the above steps, the embodiment of the present application can monitor the pollution level of water bodies in real time and provide data support to relevant agencies to implement targeted environmental protection measures and policies; it can evaluate water quality in real time and provide suggestions for sustainable use of water resources, providing decision-making references for water resource management departments; it can timely detect abnormal conditions in water bodies, including eutrophication of water bodies, algae outbreaks, etc., to provide data support for water ecological protection and restoration; it can warn of water quality problems at water sources to ensure the safety of drinking water. Once it is found that the water quality at the water source exceeds the warning threshold, the system will promptly remind the relevant departments to take emergency measures.

[0072] To sum up, the embodiments of the present application can realize real-time monitoring, evaluation and early warning of water quality. Intelligent water quality monitoring systems will play an important role in environmental monitoring, water resources management, water ecological protection and water source safety, and improve the efficiency of water management and the level of water quality assurance.

[0073] According to the water quality early warning method proposed in the embodiment of the present application, multiple water body indicators of the target water body uploaded by at least one detection terminal and the current state of at least one detection terminal can be received, and then the water quality reference value of the target water body can be calculated, and it can be determined whether the water quality of the target water body meets the qualified standards. If it does not meet the qualified standards, the abnormal cause of the target water body is determined, and the corresponding early warning strategy is matched based on the abnormal cause, and the early warning strategy is sent to the preset early warning terminal to perform water quality early warning of the target water body, with high timeliness and accuracy, and low cost. Data processing of multiple detection terminals is realized through the server, and data sharing is realized. Therefore, technical problems in related technologies such as difficulty in taking into account timeliness and accuracy at the same time, high cost, difficult maintenance, and lack of a sound data sharing mechanism, resulting in poor transmission of monitoring information, are solved.

[0074] Next, the water quality early warning device proposed in accordance with the embodiment of the present application is described with reference to the accompanying drawings.

[0075] Figure 4 It is a block diagram of a water quality early warning device according to an embodiment of the present application.

[0076] like Figure 4 As shown, the water quality early warning device 10 is applied to a server, wherein the device 10 includes: a receiving module 100, a first judgment module 200 and an early warning module 300.

[0077] Specifically, the receiving module 100 is used to receive a plurality of water body indicators of a target water body uploaded by at least one detection terminal and a current state of at least one detection terminal.

[0078] The first judgment module 200 is used to calculate the water quality reference value of the target water body based on multiple water body indicators and the current state, and judge whether the target water body meets the preset qualification conditions based on the water quality reference value.

[0079] The early warning module 300 is used to determine the abnormal cause of the target water body based on multiple water body indicators and the current state when the target water body does not meet the preset qualified conditions, match the corresponding early warning strategy based on the abnormal cause, and send the early warning strategy to the preset early warning terminal to perform water quality early warning of the target water body.

[0080] Optionally, in one embodiment of the present application, the water quality early warning device 10 further includes: a second judgment module, a first correction module and a second correction module.

[0081] The second judgment module is used to judge whether the number of detection terminals uploading the target water body is one.

[0082] The first correction module is used to obtain the historical water body indicators of the target water body and the historical status of the detection terminal when the quantity is one, and judge whether the detection terminal meets the preset data trust conditions based on the historical water body indicators and the historical status; and if the detection terminal does not meet the preset data trust conditions, correct the current state of the detection terminal to a fault state.

[0083] The second correction module is used to screen out all detection terminals that meet the preset fault conditions based on the water body indicators and current states uploaded by all detection terminals when the number is not one, and correct the current state of the detection terminal to a fault state.

[0084] Optionally, in one embodiment of the present application, the water quality early warning device 10 further includes: a recording module and a generating module.

[0085] The recording module is used to record the numbers of all detection terminals in a fault state.

[0086] The generation module is used to generate a corresponding fault message based on the detection terminal number.

[0087] Optionally, in one embodiment of the present application, the water quality early warning device 10 further includes: a calculation module and a determination module.

[0088] Among them, the calculation module is used to input multiple water body indicators and current status into a pre-built water quality prediction model to obtain the water quality prediction result of the target water body when the target water body meets the preset qualification conditions.

[0089] The determination module is used to determine the water quality change trend of the target water body based on the water quality prediction result, so as to match the corresponding water body treatment strategy with the water quality change trend.

[0090] Optionally, in one embodiment of the present application, the pre-constructed water quality prediction model is trained by historical water body indicators and corresponding historical states of the target water body.

[0091] It should be noted that the above explanation of the embodiment of the water quality early warning method is also applicable to the water quality early warning device of this embodiment, and will not be repeated here.

[0092] According to the water quality early warning device proposed in the embodiment of the present application, it is possible to receive multiple water body indicators of the target water body uploaded by at least one detection terminal and the current state of at least one detection terminal, and then calculate the water quality reference value of the target water body, and determine whether the water quality of the target water body meets the qualified standards, and if it does not meet the qualified standards, determine the abnormal cause of the target water body, and match the corresponding early warning strategy based on the abnormal cause, and send the early warning strategy to the preset early warning terminal to carry out water quality early warning of the target water body, with high timeliness and accuracy, and low cost, and realize data processing of multiple detection terminals through the server to achieve data sharing. Therefore, it solves the technical problems in the related technology that it is difficult to take into account both timeliness and accuracy, high cost, difficult maintenance, and lack of a sound data sharing mechanism, resulting in poor transmission of monitoring information.

[0093] Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may include:

[0094] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0095] When the processor 502 executes the program, the water quality early warning method provided in the above embodiment is implemented.

[0096] Furthermore, the server also includes:

[0097] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0098] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0099] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0100] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0101] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0102] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0103] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned water quality early warning method is implemented.

[0104] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the water quality early warning method provided by an embodiment of the present invention.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0106] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0107] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0108] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0109] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0110] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0111] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0112] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A water quality early warning method, characterized in that: Applied to a server, wherein the method comprises the following steps: Receiving a plurality of water body indicators of a target water body uploaded by at least one detection terminal and a current state of the at least one detection terminal; Calculating a water quality reference value of the target water body based on the multiple water body indicators and the current state, and judging whether the target water body meets a preset qualification condition based on the water quality reference value; If the target water body does not meet the preset qualification conditions, the abnormal cause of the target water body is determined based on the multiple water body indicators and the current state, and the corresponding early warning strategy is matched based on the abnormal cause, and the early warning strategy is sent to the preset early warning terminal to perform a water quality early warning for the target water body.

2. The method according to claim 1, characterized in that After receiving a plurality of water body indicators of a target water body uploaded by at least one detection terminal and a current state of the detection terminal, the method further includes: Determine whether the number of detection terminals uploading the target water body is one; If the number is one, obtaining a historical water body index of the target water body and a historical state of the detection terminal, judging whether the detection terminal meets a preset data credibility condition based on the historical water body index and the historical state, and correcting the current state of the detection terminal to a fault state if the detection terminal does not meet the preset data credibility condition; If the number is not one, all detection terminals that meet the preset fault conditions are screened out based on the water body indicators and current states uploaded by all detection terminals, and the current states of the detection terminals are corrected to the fault states.

3. The method according to claim 2, characterized in that After correcting the current state of the detection terminal to the fault state, the method further includes: Record the numbers of all detection terminals in the fault state; A corresponding fault message is generated based on the detection terminal number.

4. The method according to claim 1, characterized in that After judging whether the target water body meets the preset qualification condition based on the water quality reference value, the method further includes: If the target water body meets the preset qualification condition, the multiple water body indicators and the current state are input into a pre-built water quality prediction model to obtain a water quality prediction result of the target water body; The water quality change trend of the target water body is determined based on the water quality prediction result, so as to match the corresponding water body treatment strategy with the water quality change trend.

5. The method according to claim 4, characterized in that The pre-constructed water quality prediction model is obtained by training the historical water body indicators and corresponding historical states of the target water body.

6. A water quality early warning device, characterized in that: Applied to a server, wherein the device comprises: A receiving module, used for receiving a plurality of water body indicators of a target water body uploaded by at least one detection terminal and a current state of the at least one detection terminal; A first judgment module, configured to calculate a water quality reference value of the target water body based on the multiple water body indicators and the current state, and to judge whether the target water body meets a preset qualification condition based on the water quality reference value; An early warning module is used to determine the abnormal cause of the target water body based on the multiple water body indicators and the current state when the target water body does not meet the preset qualification conditions, match the corresponding early warning strategy based on the abnormal cause, and send the early warning strategy to the preset early warning terminal to perform water quality early warning for the target water body.

7. The device according to claim 6, characterized in that Also includes: A second judgment module is used to judge whether the number of detection terminals uploading the target water body is one; A first correction module is used for obtaining, when the number is one, a historical water body index of the target water body and a historical state of the detection terminal, judging whether the detection terminal meets a preset data credibility condition based on the historical water body index and the historical state, and correcting a current state of the detection terminal to a fault state when the detection terminal does not meet the preset data credibility condition; The second correction module is used to screen out all detection terminals that meet the preset fault conditions based on the water body indicators and current states uploaded by all detection terminals when the number is not one, and correct the current state of the detection terminal to the fault state.

8. The device according to claim 7, characterized in that Also includes: A recording module, used to record the numbers of all detection terminals in the fault state; A generation module is used to generate a corresponding fault message based on the detection terminal number.

9. A server, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the water quality early warning method as described in any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the water quality early warning method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • System and method for monitoring hydrology and water quality of river basin under influence of water projects based on Internet of Things

    CN103175513A

  • Water quality environmental quality assessment pre-warning system and method

    CN103295165A

  • Fault prejudgment method and fault prejudgment device

    CN108805359A

  • System and method for testing urban drinking water safety

    CN109142662A

  • Online fault detection method of continuous blood sugar monitoring sensor based on multi-model fusion

    CN109682976A