An intelligent water resources sensing system based on the Internet of Things
By deploying sensors in the water resources monitoring system and using the Kalman filter algorithm and deep learning model, the problems of data inconsistency and insufficient prediction capabilities are solved, high-precision prediction of water quality changes is achieved, and the efficiency and science of water resources management are improved. sex.
Patent Information
- Application Number
- CN202410348635.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-26
AI Technical Summary
The existing water resources monitoring system has insufficient data accuracy and reliability due to environmental complexity and data inconsistency, and lacks effective data fusion processing and high-precision water quality prediction models, which limits the ability to predict future changes in water resources and management efficiency. .
An intelligent water resources sensing system based on the Internet of Things is used to monitor water level, water quality and flow data in real time by deploying sensors at key nodes. The Kalman filter algorithm and deep learning model are used for data fusion and water quality prediction, combined with data preprocessing and feature extraction. , time series analysis and output adjustment unit to achieve high-precision prediction of water quality changes.
It improves the scientific decision-making and efficiency of water resources management, enhances the ability to predict water quality changes, provides strong technical support, provides reliable data support for water quality management and pollution prevention, and promotes the rational allocation and distribution of water resources. sustainable development.
Smart Images

Figure CN118152993B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of water resources sensing technology, and in particular to an intelligent water resources sensing system based on the Internet of Things. Background Art
[0002] In the field of modern water resources management and monitoring, Internet of Things technology has been widely used to achieve real-time monitoring and management of water resources status. Traditional water monitoring systems usually include sensor networks, which are deployed at various key water resource nodes to collect important parameters such as water level, water quality, and flow. These data are transmitted to the central database via a wireless network for data storage and further processing. This method provides data support for the effective management of water resources, which is of great significance for preventing water disasters and rationally utilizing water resources.
[0003] However, although the existing technology has made some progress in water resources monitoring, there are still some obvious shortcomings. First, due to the complex and changeable environment, a single data source often cannot accurately reflect the true state of water resources, and the data between sensors may be inconsistent, affecting the accuracy and reliability of the data. Secondly, the existing technology has weak capabilities in data processing and prediction, lacking effective data fusion processing and high-precision water quality prediction models, which limits the ability to predict future changes in water resources and the efficiency of water resources management.
[0004] Therefore, it is urgent to develop a new type of intelligent water resources sensing system. Summary of the invention
[0005] The present application provides an intelligent water resources perception system based on the Internet of Things to improve the accuracy of predictions of future water quality changes.
[0006] The present application provides an intelligent water resources sensing system based on the Internet of Things, comprising:
[0007] Sensors are deployed at key water resource nodes to monitor water resources data at key water resource nodes in real time, including water level, water quality and flow parameters;
[0008] A wireless network configured to receive the water conservancy data collected by the sensor and transmit the water conservancy data to a central database;
[0009] A central database for storing water conservancy data transmitted from the wireless network;
[0010] A processing unit is connected to the central database, and the processing unit includes a data fusion module and a water quality prediction module; the data fusion module uses a Kalman filter algorithm to fuse the water conservancy data stored in the central database to obtain fused data; the water quality prediction module predicts future changes in water quality based on the fused data provided by the data fusion module and the trained water quality prediction model.
[0011] Furthermore, the data fusion module is specifically used to execute an improved Kalman filter algorithm, and the improved Kalman filter algorithm includes the following steps:
[0012] In the initialization phase of the algorithm, the initial values x0 and P0 are set for the system state and covariance matrix respectively; and the system state transfer matrix F, observation model matrix H, process noise covariance Q and basic observation noise covariance R0 are set;
[0013] In the prediction phase of the algorithm, the next state x is predicted according to the following formulas 1 and 2: k|k-1 and covariance P k|k-1 ;
[0014] x k|k-1 =Fx k-1|k-1 (1)
[0015] P k|k-1 =FP k-1|k-1 F T +Q (2)
[0016] In the update phase of the algorithm, the environmental dynamics factor EDF and the time correlation adjustment factor TCF are calculated according to the following formula 3 and formula 4:
[0017]
[0018] Among them, E i represents the i-th environmental parameter; m is the total number of environmental parameters; p is the number of environmental parameters involved in the interaction calculation; ω jk is the weight coefficient;
[0019]
[0020] Among them, x current,i Represents the data point of the current period; x historical,i represents the data points of the same period in history; n is the number of data points; h is the calculation function of cosine similarity; SD(ΔX) is based on the difference between current data and historical data ΔX=x current -x istorical The calculated standard deviation is used to capture the volatility of time series changes; λ is a weight parameter between 0 and 1;
[0021] The observation noise covariance R is dynamically adjusted according to the following formula 5:
[0022] R=R0·(1+α·EDF+β·TCF) (5)
[0023] Among them, α and β are weight coefficients;
[0024] The Kalman gain K is calculated according to the following formula 6: k :
[0025] K k =P k|k-1 H T (HP k|k-1 H T +R) -1 (6)
[0026] Update the state estimate according to the following formula 7:
[0027] x k|k =x k|k-1 +K k (y k -Hx k|k-1 ) (7)
[0028] Among them, y k New observations at time step k;
[0029] Update the estimated covariance according to Formula 8 as follows:
[0030] P k|k =(IK k H)P k|k-1 (8)
[0031] Where I is the identity matrix.
[0032] Furthermore, the water quality prediction model includes a data preprocessing unit, a feature extraction unit, a time series analysis unit, a prediction model unit, and an output adjustment unit;
[0033] The data preprocessing unit is used to receive the fused data from the data fusion module as input, perform standardization on the input data, remove outliers, and normalize the data to obtain preprocessed data;
[0034] The feature extraction unit uses the output of the data preprocessing unit as input to identify and extract key features that affect water quality changes;
[0035] The time series analysis unit is used to receive the key feature vector provided by the feature extraction unit, and adopt the time series analysis technology to capture and analyze the long-term and short-term water quality change trends to obtain the time series analysis results;
[0036] The prediction model unit adopts a deep learning model to obtain a prediction value of future water quality changes according to the time series analysis results provided by the time series analysis unit;
[0037] The output adjustment unit adjusts the predicted value of future water quality changes provided by the prediction model unit according to possible environmental mutation factors, and generates an adjusted water quality prediction report.
[0038] Furthermore, the feature extraction unit is specifically used for:
[0039] receiving preprocessed data from a data preprocessing unit;
[0040] The following steps were used to identify key features affecting water quality changes from the preprocessed data:
[0041] (a) Apply statistical change point analysis techniques to detect significant change points from time series data to identify the time points when water quality parameters suddenly change;
[0042] (b) Use linear or nonlinear regression analysis to determine the temporal trends of water quality parameters, thereby capturing the macro factors that affect water quality changes;
[0043] (c) Applying Fourier transform or autocorrelation function to identify periodic patterns in the data, such as daily or annual cycles, can help identify natural cycles in water quality changes;
[0044] Construct a feature vector based on the key features identified in steps ac;
[0045] Output the constructed key feature vector for further analysis by the time series analysis unit.
[0046] Furthermore, the time series analysis unit is specifically used for:
[0047] The key feature vector from the feature extraction unit is received, and the time series analysis of the key feature vector is performed using the following steps:
[0048] (d) Use linear regression analysis to identify and quantify long-term trends in water quality data;
[0049] (e) Apply seasonal decomposition techniques to identify seasonal and cyclical patterns in the data;
[0050] (f) Use autoregressive moving average models to analyze and predict short-term fluctuations in water quality data;
[0051] (g) using statistical methods to identify outliers or breakpoints in the time series, including control charts or breakpoint analysis;
[0052] Integrate the analysis results of step dg and output a comprehensive time series analysis result.
[0053] Furthermore, the deep learning model is a long short-term memory network model.
[0054] Furthermore, the sensor includes a water level sensor, a water quality sensor and a flow sensor.
[0055] Furthermore, the wireless network uses at least one of the following wireless communication technologies:
[0056] Cellular, Wi-Fi, or long-range low-power networks.
[0057] Furthermore, the processing unit includes a user interface, which allows a user to query the current status of water resources, view water quality prediction results, and receive alarms or suggestions based on the prediction results.
[0058] This application has the following beneficial technical effects:
[0059] (1) By deploying sensors at key water resource nodes, the system can monitor key parameters such as water level, water quality and flow in real time, and quickly transmit data to the central database via wireless networks. This not only ensures the timeliness of the data, but also greatly improves the response speed of water resource management.
[0060] (2) The data fusion module of the Kalman filter algorithm is used to efficiently fuse data from different sensors, significantly reducing data noise and solving the problem of data inconsistency, thereby improving data accuracy and reliability. This allows water resources management decisions to be made based on more accurate data, enhancing the scientific nature and effectiveness of decision-making.
[0061] (3) Through the water quality prediction module, the system can effectively predict future changes in water quality by combining the fused data with the trained water quality prediction model. This prediction capability is based on deep learning technology and can accurately capture the complex patterns of water quality changes, providing strong technical support for water quality management and pollution prevention.
[0062] (4) By integrating real-time monitoring, data fusion processing and advanced prediction technology, this system provides a comprehensive and efficient water resources management tool for water conservancy departments. This not only helps to achieve the rational allocation and utilization of resources, but also effectively prevents and mitigates the impact of water disasters, protects the water environment and promotes sustainable development. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic diagram of an intelligent water resources sensing system based on the Internet of Things provided in the first embodiment of the present application. DETAILED DESCRIPTION
[0064] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0065] The first embodiment of the present application provides an intelligent water resources sensing system based on the Internet of Things. Figure 1 , which is a schematic diagram of the first embodiment of the present application. Figure 1 The first embodiment of the present application provides a detailed description of an intelligent water resources sensing system based on the Internet of Things.
[0066] The IoT-based intelligent water resources sensing system includes a sensor 101 , a wireless network 102 , a central database 103 and a processing unit 104 .
[0067] Sensor 101 is deployed at a key water resource node and is used to monitor the water data of the key water resource node in real time, wherein the water data includes water level, water quality and flow parameters.
[0068] In this embodiment, the sensor 101 is a core component of the intelligent water resource sensing system based on the Internet of Things, and its main function is to be deployed on key water resource nodes for real-time monitoring of key water resource data including water level, water quality and flow. The sensor 101 is described below.
[0069] The sensor 101 is designed as a multifunctional sensor that can monitor water level, water quality and flow parameters simultaneously. To achieve this, the sensor 101 can include three main monitoring units: a water level monitoring unit, a water quality monitoring unit and a flow monitoring unit. Each monitoring unit uses a sensing technology suitable for its monitoring target.
[0070] The water level monitoring unit uses ultrasonic distance measurement technology to measure the distance between the water surface and the sensor by emitting ultrasonic waves and receiving their reflected waves, thereby calculating the water level. This technology can provide accurate and reliable water level data under various environmental conditions.
[0071] The water quality monitoring unit contains multiple sensors for measuring water quality indicators such as pH, dissolved oxygen content, turbidity, etc. These sensors work based on chemical electrodes and optical principles and can provide comprehensive information on water quality in real time.
[0072] The flow monitoring unit uses the principle of electromagnetic flowmeter to calculate the flow rate by measuring the electromagnetic induction intensity generated when water flows through the sensor. This method is not affected by changes in water quality and is suitable for various types of water resource monitoring.
[0073] In order to ensure accurate data transmission, the sensor 101 is also equipped with a wireless communication module to support connection with the wireless network 102. The communication module can send the collected data to the central database 103 via wireless signals to achieve real-time update and storage of data.
[0074] The housing of sensor 101 is designed to be waterproof and corrosion-resistant, ensuring stable operation even in harsh external environments. Its installation method is flexible, and fixed installation or mobile deployment can be selected according to different monitoring scenarios.
[0075] Furthermore, the sensor includes a water level sensor, a water quality sensor and a flow sensor.
[0076] In the intelligent water resource perception system based on the Internet of Things, the role of sensors is crucial. They are the basis for the system to perceive and collect information about water resource conditions. The system includes three types of sensors: water level sensors, water quality sensors, and flow sensors. These sensors work together to provide the ability to fully monitor the status of water bodies, ensuring that the system can accurately and real-time obtain relevant data on water resources.
[0077] Water level sensors are used to monitor the height of water bodies, which is essential for flood warnings, irrigation system management, and other application scenarios. Water level sensors can be float, pressure, ultrasonic, or radar, depending on the installation environment and accuracy requirements. When installing a water level sensor, it is necessary to ensure that it can stably measure the water level changes of a specific water body and can withstand the influence of adverse weather conditions.
[0078] Water quality sensors are used to monitor the quality of water bodies, including but not limited to parameters such as pH, dissolved oxygen content, turbidity, and chemical oxygen demand (COD). These parameters are critical for assessing the health of water bodies, drinking water safety, and the maintenance of aquatic ecosystems. Water quality sensors need to have high sensitivity and accuracy so that they can detect small changes in water quality. In addition, considering that water quality parameters may be affected by a variety of factors, it is also very important to choose sensors with anti-interference capabilities.
[0079] Flow sensors are used to measure the flow rate of water and the amount of water flowing through a specific point. This is very important in areas such as water resource management, hydraulic engineering, and environmental monitoring. Types of flow sensors include turbine, electromagnetic, and ultrasonic, and the choice depends on the measurement requirements and installation conditions. When installing a flow sensor, it is necessary to take into account the characteristics of the water flow, as well as possible environmental and human interference to ensure the accuracy of the measurement results.
[0080] In summary, through the careful design and deployment of these three sensors, the intelligent water resources sensing system based on the Internet of Things can comprehensively monitor the status of water resources and provide reliable data support for the management and protection of water resources.
[0081] In general, Sensor 101 provides an efficient and accurate real-time monitoring capability for the intelligent water resource sensing system through its internal multifunctional monitoring unit and wireless communication module. Its design takes into account the various needs and challenges in practical applications, ensures the reliability and practicality of the system, and meets the high requirements of modern water resource management for data accuracy and real-time performance.
[0082] The wireless network 102 is configured to receive the water conservancy data collected by the sensors and transmit the water conservancy data to a central database.
[0083] In this embodiment, the wireless network 102 is a key communication bridge connecting the sensor 101 and the central database 103. Its design and implementation are crucial to ensure the efficient operation of the intelligent water resources sensing system. The wireless network 102 will be described in detail below.
[0084] The wireless network 102 uses an efficient communication protocol that supports a wide network coverage and high data transmission rate to adapt to different geographical environments and complex water conservancy monitoring scenarios. Specifically, the wireless network 102 can be based on existing wireless communication technologies, such as 4G / 5G mobile communications, LoRaWAN (Long Range Wide Area Network), or Wi-Fi technology. This option enables the system to achieve stable data transmission in a wide water resources monitoring area, even in remote or complex terrain areas.
[0085] To ensure the security and reliability of data transmission, the wireless network 102 should also include encryption and data verification mechanisms. These mechanisms can protect the data during transmission from unauthorized access or tampering, while ensuring the integrity and accuracy of the data. The encryption mechanism can use industry standard encryption technologies such as TLS (Transport Layer Security Protocol), and data verification can be achieved through commonly used verification methods such as CRC (Cyclic Redundancy Check).
[0086] The wireless network 102 also needs to have adaptive capabilities and be able to dynamically adjust the data transmission strategy according to the current network conditions and data transmission requirements. For example, when the network is congested or the signal is weak, the wireless network 102 can automatically adjust the size of the data packet or select a more appropriate transmission frequency and channel to optimize data transmission performance and reduce latency.
[0087] In addition, in order to support seamless data flow from sensor 101 to central database 103, wireless network 102 should also have high compatibility and be able to support seamless integration with sensors of different types and manufacturers and various database technologies. This requires that standardized communication interfaces and protocols should be considered when designing wireless network 102 to ensure the scalability and flexibility of the system.
[0088] Furthermore, the wireless network uses at least one of the following wireless communication technologies:
[0089] Cellular, Wi-Fi, or long-range low-power networks.
[0090] In the intelligent water resources sensing system based on the Internet of Things, the wireless network plays a vital role. It is responsible for transmitting the data collected by each sensor to the central database or processing unit securely and efficiently. In order to meet the diversity of different environments and needs, this system has designed a flexible wireless communication architecture that supports a variety of wireless communication technologies, including cellular networks, Wi-Fi, and long-distance low-power networks (LoRaWAN). The following is a detailed description of the use of these three wireless communication technologies.
[0091] Cellular network is a widely used wireless communication technology that relies on a wide network of base stations to provide stable mobile communications. In this system, cellular network can be used for application scenarios that require wide geographical coverage and high data transmission stability. Especially in remote or highly mobile water resource monitoring points, cellular network has become an ideal communication choice due to its strong mobility and wide service coverage. Technicians need to configure the appropriate cellular communication module and ensure that the sensor can access the nearest cellular network base station.
[0092] Wi-Fi is a commonly used local wireless communication technology, suitable for high-speed data transmission over short distances. In the water resources sensing system, Wi-Fi can be used for monitoring points within the coverage of the Wi-Fi network, such as urban water bodies, water treatment plants, etc. Through the Wi-Fi connection, the sensor can transmit data to the central database or processing unit in the local area network in real time, which is suitable for scenarios with large data transmission volume and high real-time requirements. During implementation, it is necessary to ensure a stable connection between the sensor and the Wi-Fi access point, and it may be necessary to configure network security measures to prevent data leakage.
[0093] Long-range low-power network (LoRaWAN) is a long-range low-power wireless communication technology designed for the Internet of Things. It is particularly suitable for applications that are deployed over long distances and require long battery life, such as in agriculture, smart cities, environmental monitoring and water resource management. The main advantage of LoRaWAN is that it can provide a communication range of more than 10 kilometers while maintaining low power consumption, which allows sensors and devices to operate for years without a regular power supply.
[0094] The working principle of LoRaWAN is based on LoRa (Long Range) modulation technology, which achieves wide wireless coverage by utilizing sub-gigahertz (Sub-GHz) radio frequency bands. This technology enables LoRaWAN networks to penetrate buildings and other obstacles in cities and villages, providing stable and reliable connections.
[0095] In a LoRaWAN network, terminal devices (such as sensors) send data to the nearest gateway, which then forwards the data to a central server. This network architecture supports two-way communication, which can transmit data from terminal devices to servers and send control commands from servers to terminal devices. In addition, the LoRaWAN network has good scalability and can support the connection of thousands of terminal devices.
[0096] In summary, the design and implementation of the wireless network 102 is an integral part of the intelligent water resources sensing system. It not only needs to support efficient, secure and reliable data transmission, but also needs to be able to adapt to complex and changing monitoring environments and meet the long-term development needs of the system. By adopting advanced communication technology and strict security measures, the wireless network 102 provides a stable transmission channel for the data collected by the sensors, ensuring that the system can operate efficiently and meet the needs of water resources monitoring and management.
[0097] The central database 103 is used to store water conservancy data transmitted from the wireless network.
[0098] In this embodiment, the central database 103 is a key component, which is responsible for storing the water conservancy data received from the sensor 101 through the wireless network 102. The central database 103 is described in detail below.
[0099] The central database 103 is designed to process and store a large amount of real-time data from various monitoring points. This includes but is not limited to information on parameters such as water level, water quality, and flow. In order to meet this demand, the database should adopt high-performance data storage technology, support high-concurrency data write operations, and be able to efficiently perform data query and retrieval. The database can be built based on modern database technologies such as relational database management systems (RDBMS) such as MySQL or non-relational databases such as MongoDB, and the specific choice depends on system requirements, data structure complexity, and performance requirements.
[0100] In order to ensure the security and integrity of the data, the central database 103 also needs to implement strict data security measures. This includes data encryption, access control and backup and recovery mechanisms. Data encryption ensures that the stored data cannot be read by unauthorized visitors, the access control mechanism restricts access to the database, allowing only authorized users and system components to access relevant data, and the backup and recovery mechanism ensures that the data can be quickly restored in the event of hardware failure or data loss.
[0101] The central database 103 also needs to support efficient interaction with the processing unit 104. This means that the database not only needs to provide powerful data storage capabilities, but also needs to be able to exchange data efficiently with processing units such as the data fusion module and the water quality prediction module. This is usually achieved by designing an efficient database API (application programming interface) to ensure that the processing unit can quickly read the required data and write the processing results back to the database.
[0102] In addition, in order to support the scalability and future development of the system, the architecture of the central database 103 should be modular and scalable, and can be flexibly expanded as the number of monitoring points and the amount of data increase. This may involve the use of a distributed database system, or, when necessary, by adding hardware and optimizing database configuration to improve performance.
[0103] In summary, as the core storage component of the intelligent water resources sensing system, the central database 103 not only needs to be able to process and store large-scale data, but also must ensure the security and integrity of the data and support efficient data processing and analysis. By adopting advanced database technology and implementing strict security measures, the central database provides a solid foundation for the stable operation and data processing of the entire system.
[0104] The processing unit 104 is connected to the central database, and the processing unit includes a data fusion module and a water quality prediction module; the data fusion module uses a Kalman filter algorithm to fuse the water conservancy data stored in the central database to obtain fused data; the water quality prediction module predicts future changes in water quality based on the fused data provided by the data fusion module and the trained water quality prediction model.
[0105] In this embodiment, the processing unit 104 is a core component of the intelligent water resources sensing system, and is responsible for high-level processing and analysis of the collected water resources data, including key functions such as data fusion and water quality prediction. The structure and function of the processing unit 104 will be described in detail below.
[0106] The processing unit 104 is a high-performance computing platform capable of processing a large amount of water resources data from the central database 103. It includes two main modules: a data fusion module and a water quality prediction module, each of which undertakes a specific data processing task to ensure the accuracy and effectiveness of water resources management and prediction.
[0107] The data fusion module uses a Kalman filter algorithm to integrate and optimize the data collected from the sensor 101. Kalman filtering is an efficient algorithm suitable for processing dynamic system data containing noise. In this system, it dynamically estimates the most accurate values of water level, water quality and flow by considering the uncertainty and time series characteristics of the data. This process involves weighted averaging of data collected at different time points, with the weights based on the reliability of the data and the measurement error. In this way, the data fusion module is able to reduce the impact of random noise and improve the accuracy and reliability of the data.
[0108] The water quality prediction module uses the fused data to predict future water quality changes. This module integrates water quality prediction models built based on deep learning technology, such as convolutional neural networks (CNN). These models predict future water quality conditions by analyzing the patterns and trends of historical water quality data. In order to train these models, the water quality prediction module will use a large amount of historical water conservancy data, including data processed by the data fusion module. This prediction method based on the fusion of historical data and real-time data can greatly improve the accuracy and reliability of water quality prediction.
[0109] The design of the processing unit 104 fully considers the scalability and flexibility of the system. It supports integration with different database technologies and data processing algorithms to ensure that the system can adapt to the ever-changing technical environment and monitoring needs. In addition, the processing unit 104 also has a user-friendly interface that allows the user to configure data processing parameters, such as the weight setting of the Kalman filter algorithm and the training parameters of the deep learning model, so that the system can be customized according to specific monitoring scenarios and needs.
[0110] Furthermore, the data fusion module is specifically used to execute an improved Kalman filter algorithm, and the improved Kalman filter algorithm includes the following steps:
[0111] In the initialization phase of the algorithm, the initial values x0 and P0 are set for the system state and covariance matrix respectively; and the system state transfer matrix F, observation model matrix H, process noise covariance Q and basic observation noise covariance R0 are set;
[0112] Before the algorithm starts, an initial estimate of the state of the system needs to be set. This initial state x0 represents the best guess at the current state of the system. In a water resource sensing system, this may involve initial estimates of parameters such as water level, water quality, and flow. These initial values can be based on historical data, prior knowledge, or directly obtained from the first few readings of the sensor.
[0113] The covariance matrix P0 represents a quantification of the uncertainty in the initial state estimate. A larger initial covariance indicates higher uncertainty in the initial state estimate, while a smaller value indicates higher confidence. Correctly setting P0 is critical to the performance of the algorithm and is usually selected based on the system designer's experience or experimental data.
[0114] The state transition matrix F describes the dynamics of the system state from one time point to the next. It reflects how the system state evolves over time without considering the influence of external control inputs. In water resource sensing systems, F is set according to physical laws or empirical models to reflect the natural changes of parameters such as water level, water quality and flow over time.
[0115] The observation model matrix H maps the system state to the observation space. It describes how to get the expected observation results from the system state. In practice, H is set according to the sensor design and monitoring objectives to ensure that the corresponding observations are correctly extracted from the system state.
[0116] The process noise covariance Q represents the uncertainty inherent in the system model or the intensity of the process noise. This includes uncertainty introduced by model simplification or external disturbances. In a water sensing system, Q can be set based on the variability of system dynamics and the prediction of external environmental impacts.
[0117] The basic observation noise covariance R0 reflects the inherent uncertainty or noise level of the observation data when there is no external change. It is mainly determined by the accuracy and reliability of the sensor and should be determined according to the technical specifications and performance indicators of the sensor.
[0118] These initial settings are the basis for the successful application of the algorithm and are crucial to ensuring the accuracy and efficiency of the data fusion process.
[0119] In the prediction phase of the algorithm, the next state x is predicted according to the following formulas 1 and 2: k|k-1 and covariance P k|k-1 ;
[0120] x k|k-1 =Fx k-1|k-1 (1)
[0121] P k|k-1 =FP k-1|k-1 F T +Q (2)
[0122] In the prediction phase of the improved Kalman filter algorithm, the goal is to predict the state and uncertainty at the next moment based on the current state estimate and the dynamic model of the system. This is accomplished through two key formulas:
[0123] Formula 1: Predict the next state
[0124] x k|k-1 =Fx k-1|k-1 (1)
[0125] This formula is used to calculate the state prediction x for the next time step k. k|k-1 , based on the state estimate x at the current time step k-1 k-1|k-1 .
[0126] x k|k-1 : This represents the state prediction at time step k, which is the system state that we want to estimate at the next moment.
[0127] F: The state transition matrix describes how the system state changes over time. It maps the current state to the state at the next moment, reflecting the dynamic behavior of the system.
[0128] x k-1|k-1 : The state estimate for the current time step k-1 is the best estimate based on all previously observed data.
[0129] Formula 2: Prediction Covariance
[0130] P k|k-1 =FP k-1|k-1 F T +Q (2)
[0131] This formula is used to update the covariance estimate P for the next time step k|k-1 , taking into account the process noise of the system.
[0132] P k|k-1 : This represents the uncertainty of the predicted state and is a quantification of the accuracy of the estimated predicted state.
[0133] F: Same as above, state transfer matrix.
[0134] P k-1|k-1 : The covariance estimate of the current time step, which quantifies the uncertainty of the current state estimate.
[0135] F T : The transpose of the state transfer matrix is used to multiply the covariance matrix to maintain the consistency of mathematical operations.
[0136] Q: Process noise covariance, which reflects the uncertainty introduced in the state transfer process due to imperfect model or external unknown interference.
[0137] By using Formula 1 and Formula 2, the system state and its uncertainty at the next moment can be predicted based on the current state of the system and the known system dynamics (described by the state transfer matrix F). The state transfer matrix F needs to be defined according to the specific physical system or process. It is a crucial part of the algorithm design and reflects the evolution of the system state over time. The process noise covariance Q needs to be set based on system experience or experimental data to accurately reflect the uncertainty of state changes caused by internal and external factors of the system.
[0138] This prediction phase is the core of the Kalman filter algorithm, providing the necessary prediction information for the subsequent update phase, ensuring that the algorithm can effectively update the state estimate and covariance when receiving new observation data, thereby dynamically tracking and predicting changes in the system state.
[0139] In the update phase of the algorithm, the environmental dynamics factor EDF and the time correlation adjustment factor TCF are calculated according to the following formula 3 and formula 4:
[0140]
[0141] Among them, E i represents the i-th environmental parameter; m is the total number of environmental parameters;
[0142] p is the number of environmental parameters involved in the interaction calculation;
[0143] There are a certain number of environmental parameters in the system, which not only affect the system state independently, but also may interact with each other, and this interaction will also affect the system state. Here p refers to the total number of environmental parameters that are taken into account when considering the interaction.
[0144] For example, assuming that the environmental parameters of water resources include temperature, humidity, wind speed, etc., these parameters not only affect water quality individually, but may also interact with each other. For example, the combined effect of temperature and humidity may have different effects on water quality, and this effect cannot be fully captured when considering temperature or humidity alone. If the interaction of the three parameters of temperature, humidity and wind speed is considered when calculating the environmental dynamic factor EDF, then the value of p is 3, indicating that three environmental parameters are involved in the calculation of the interaction.
[0145] In the EDF calculation formula, by weighting and summing these parameters and their interactions, the impact of environmental changes on the system state can be more comprehensively evaluated. jk It is used to adjust the relative importance of the interaction between different parameters to ensure that the model can accurately reflect the comprehensive impact of these environmental parameters on the system state. The weight coefficients in this embodiment can be obtained through experimental data or set according to expert knowledge.
[0146] E j ·E k is the environmental parameter E j and E k The product of is used to represent the interaction effect between two different environmental parameters;
[0147]
[0148] Among them, x current,i Represents the data point of the current period;
[0149] x current,i Specifically, it refers to the real-time data points about the status of water resources collected by the sensor network of the water resource sensing system within a given time period (for example, one hour, one day or one week). These data points may include but are not limited to water level, water quality parameters (such as dissolved oxygen content, pH value, turbidity, etc.) and flow rate information.
[0150] Suppose the system is designed to monitor and predict changes in the water quality of a lake, especially focusing on the dynamics of dissolved oxygen content. In this case, the "current cycle data point" may refer to the dissolved oxygen content measured at 10 am, for example, 6.5 mg / L. If the period considered is measured every hour, then at 11 am, the system will collect the next "current cycle data point", and the dissolved oxygen content at this time may change, for example, 6.7 mg / L.
[0151] These data points not only provide real-time information for water resource management, but they are also key inputs for the update phase of the Kalman filter algorithm. By collecting and analyzing these continuous data points, the improved Kalman filter algorithm can dynamically adjust and optimize the estimated value of the water resource status, thereby improving the accuracy and reliability of the prediction. For example, in the update phase of the algorithm, the time correlation adjustment factor TCF can be used to analyze the similarity or difference between these "current cycle data points" and the data points of the same cycle in the past (historical data), thereby capturing and reflecting the changing trend of water resource status over time. This method enables the water resource perception system to more accurately understand and predict the dynamic changes of water resources, providing a scientific basis for water resource management and protection.
[0152] x historical,i represents the data points of the same period in history; n is the number of data points; h is the calculation function of cosine similarity; SD(ΔX) is based on the difference between current data and historical data ΔX=x current -x hitorical The calculated standard deviation is used to capture the volatility of time series changes; λ is a weight coefficient between 0 and 1;
[0153] The observation noise covariance R is dynamically adjusted according to the following formula 5:
[0154] R=R0·(1+α·EDF+β·TCF) (5)
[0155] In the improved Kalman filter algorithm, dynamically adjusting the observation noise covariance R is a crucial step, which enables the algorithm to adjust the estimated uncertainty according to the current environmental conditions and the characteristics of the time series data.
[0156] Formula (5) provides a method for dynamically adjusting the observation noise covariance R according to the environmental dynamics factor EDF and the time correlation adjustment factor TCF:
[0157] This formula means that the observation noise covariance R will be dynamically adjusted according to the current environmental changes and time series changes, thereby reflecting the impact of these changes on the accuracy of the observation data. The following is a detailed description of each item in the formula:
[0158] R: Dynamically adjusted observation noise covariance. It quantifies the uncertainty or noise level inherent in the observation data given the environmental conditions and time context.
[0159] R0: Basic observation noise covariance, which represents the uncertainty or noise level of the observation data under stable or standard environmental conditions. It is determined by prior experimental measurements or according to sensor specifications.
[0160] α and β: are weight coefficients related to EDF and TCF, respectively, which are used to adjust the proportion of the impact of environmental dynamics factor and time correlation adjustment factor on the observation noise covariance. The setting of these coefficients reflects the relative importance of different factors in specific application scenarios.
[0161] Environmental Dynamics Factor (EDF): quantifies the impact of changes in current environmental conditions (such as temperature, humidity, wind speed, etc.) on the accuracy of observed data. By comprehensively considering various environmental parameters and their changes, EDF provides a quantitative way to assess the impact of environmental changes.
[0162] Time correlation adjustment factor TCT: reflects the impact of time series characteristics on the accuracy of observation data by comparing the difference or similarity between the observation data of the current period and the historical data of the same period.
[0163] The Kalman gain K is calculated according to the following formula 6: k :
[0164] K k =P k|k-1 H T (HP k|k-1 H T +R) -1 (6)
[0165] In the improved Kalman filter algorithm, the Kalman gain K k The calculation of is one of the core steps in the algorithm update phase. It determines how to weigh the new observation data against the predicted state during the update process.
[0166] Explanation of each term in Formula 6
[0167] K k : The specific value of the Kalman gain at time step k, which determines the relative importance of new observation information and the current prediction in the state estimate update.
[0168] P k|k-1 : This is the forecast covariance before time step k, which represents the uncertainty in the estimate of the system state before the latest observation information is taken into account. It is obtained from the update phase or prediction phase of the previous time step.
[0169] H: The observation model matrix transforms the system state variables into the observation space so that the system state estimate can be compared with the actual observation data. This matrix defines how the system state is mapped to the observation value.
[0170] H T : The transpose of the observation model matrix H is used to maintain dimensional consistency in mathematical operations so that the formula can be executed correctly.
[0171] R: Observation noise covariance, which represents the uncertainty or noise level in the observation process.
[0172] In order to calculate the Kalman gain, we first need to accurately define the observation model matrix H, which is usually based on the physical characteristics of the system or an empirical model. Then, according to the dynamics of the system and the observation process, we determine the prediction covariance P k|k-1 and the observation noise covariance R. Finally, the above formula is applied to calculate the Kalman gain.
[0173] This process allows the intelligent water resource sensing system to effectively update the state estimates of parameters such as water level, water quality and flow when new observation data is received. By accurately calculating the Kalman gain, the system can reasonably balance the uncertainty between the predicted and observed data, thereby optimizing the accuracy of the state estimate.
[0174] Update the state estimate according to the following formula 7:
[0175] x k|k =x k|k-1 +K k (y k -Hx k|k-1 ) (7)
[0176] In the improved Kalman filter algorithm, updating the state estimate is a key step, which ensures that the system can adjust and optimize the estimate of the system state based on the latest observation data. The core of this process is formula (7), which precisely defines how to combine previous predictions and new observations to update the state estimate.
[0177] This formula is used to calculate the value of the new observation y at time step k. k , update the estimate of the system state x k|k .
[0178] Detailed description of each term in the formula:
[0179] x k|k : This is the updated state estimate after time step k, taking into account the new observations. It represents the current best estimate of the system state, taking into account the latest information.
[0180] x k|k-1 : This is the predicted state estimate before time step k, i.e. before considering new observations. It predicts the next state of the system based on the previous state estimate and the dynamic model of the system.
[0181] K k : Kalman gain, the specific value at time step k. It determines the new observation information y k and prediction information x k|k-1The relative importance of the Kalman gain in the update process. The Kalman gain is dynamically calculated based on the prediction covariance and the observation noise covariance, and aims to minimize the uncertainty of the updated state estimate.
[0182] y k : New observation data at time step k. This is obtained directly from sensors or measurement devices and reflects the current observed state of the system.
[0183] H: Observation model matrix, used to map the system state space to the observation space. It defines the relationship between the system state and the actual observation data, ensuring the dimensional consistency during the state estimation update process.
[0184] By implementing formula (7), the intelligent water resource sensing system can dynamically adjust the state estimation of parameters such as water level, water quality and flow according to each new observation data. This approach improves the accuracy of the estimation, enables the system to better reflect the actual state of water resources, and provide support for water resource management and decision-making.
[0185] Update the estimated covariance according to Formula 8 as follows:
[0186] P k|k =(IK k H)P k|k-1 (8).
[0187] In the improved Kalman filter algorithm, updating the estimated covariance is a key step in the algorithm update phase, which is related to the algorithm's evaluation of its own estimation accuracy. Correct execution of this step is crucial to ensure algorithm performance and improve the reliability of estimation results.
[0188] Detailed description of each term in formula 8:
[0189] P k|k : This is the updated covariance of the system state estimate after taking into account the new observation data at time step k. It quantifies the uncertainty of the updated state estimate and reflects the confidence level in the accuracy of the state estimate.
[0190] I: The identity matrix, whose dimension is the same as the system state space. In this formula, the identity matrix is used to ensure that P k|k and P k|k-1 Maintain the same dimensions and proportions in mathematical operations.
[0191] K k : Kalman gain, calculated according to formula (6). It plays a role in weighing the new observation data and the previous prediction in the update process, and determines the influence of the new information on the updated state estimate.
[0192] H: Observation model matrix, which maps the system state space to the observation space. This matrix defines how to convert from system state variables to actual observation values, ensuring that the dimensions of each data are consistent during the update process.
[0193] P k|k-1 : This is the forecast covariance before time step k, i.e. before considering new observations. It represents an estimate of the uncertainty in the estimate of the system state before the latest observation.
[0194] Furthermore, the water quality prediction model includes a data preprocessing unit, a feature extraction unit, a time series analysis unit, a prediction model unit, and an output adjustment unit;
[0195] The data preprocessing unit is used to receive the fused data from the data fusion module as input, perform standardization on the input data, remove outliers, and normalize the data to obtain preprocessed data;
[0196] The feature extraction unit uses the output of the data preprocessing unit as input to identify and extract key features that affect water quality changes;
[0197] The time series analysis unit is used to receive the key feature vector provided by the feature extraction unit, and adopt the time series analysis technology to capture and analyze the long-term and short-term water quality change trends to obtain the time series analysis results;
[0198] The prediction model unit adopts a deep learning model to obtain a prediction value of future water quality changes according to the time series analysis results provided by the time series analysis unit;
[0199] The output adjustment unit adjusts the predicted value of future water quality changes provided by the prediction model unit according to possible environmental mutation factors, and generates an adjusted water quality prediction report.
[0200] In the intelligent water resource perception system based on the Internet of Things, the water quality prediction model plays a vital role. It completes the prediction and analysis of water quality changes through a series of carefully designed units, from data collection and processing to the final prediction report generation. The following is a detailed description of each unit of the water quality prediction model.
[0201] First, the data preprocessing unit receives the fused data from the data fusion module, which reflects the real-time status of water resources, including parameters such as water level, water quality and flow. The task of this unit is to remove outliers in the data through standardization and normalization to ensure the quality and consistency of the data, and provide accurate basic data for subsequent analysis and prediction.
[0202] Next, the feature extraction unit uses the preprocessed data as input and uses advanced algorithms to identify and extract key features that affect water quality changes. These features may include but are not limited to the changing trends of indicators such as water temperature, pH value, dissolved oxygen content, and possible interactions between these indicators. By identifying these key features, the unit lays the foundation for accurate prediction of water quality.
[0203] The time series analysis unit then uses the received key feature vectors to explore the changing trends and periodic patterns of these features over time using time series analysis techniques. This unit focuses on analyzing long-term and short-term trends in water quality parameters, such as seasonal changes or the impact of sudden events, to provide in-depth time series analysis results for the prediction model.
[0204] The prediction model unit uses a deep learning-based model that uses a complex neural network structure to predict future water quality trends based on the analysis results provided by the time series analysis unit. This unit can predict possible changes in water quality over a period of time by learning the complex patterns of water quality parameters changing over time.
[0205] Finally, after the prediction model generates the predicted value of future water quality changes, the output adjustment unit will make necessary adjustments to the predicted value taking into account possible environmental mutation factors, such as rainfall, pollution events, etc. This step ensures the accuracy and practicality of the prediction report and provides an adjusted and optimized water quality prediction report.
[0206] Through this series of units and steps, the water quality prediction model can comprehensively utilize real-time data, historical data and their changing trends to accurately predict future changes in water quality and provide a scientific basis for water resources management and decision-making.
[0207] Furthermore, the feature extraction unit is specifically used for:
[0208] receiving preprocessed data from a data preprocessing unit;
[0209] The following steps were used to identify key features affecting water quality changes from the preprocessed data:
[0210] (a) Apply statistical change point analysis techniques to detect significant change points from time series data to identify the time points when water quality parameters suddenly change;
[0211] (b) Use linear or nonlinear regression analysis to determine the temporal trends of water quality parameters, thereby capturing the macro factors that affect water quality changes;
[0212] (c) Applying Fourier transform or autocorrelation function to identify periodic patterns in the data, such as daily or annual cycles, can help identify natural cycles in water quality changes;
[0213] Construct a feature vector based on the key features identified in steps ac;
[0214] Output the constructed key feature vector for further analysis by the time series analysis unit.
[0215] In the intelligent water resources perception system based on the Internet of Things, the feature extraction unit is one of the core components, which is responsible for mining meaningful information from a large amount of water resources data, which is crucial for understanding and predicting water quality changes.
[0216] First, when the feature extraction unit starts working, it receives data from the data preprocessing unit. These data have been standardized, outliers removed, and normalized, so they are clean, consistent, and suitable for further analysis. Receiving these data is the starting point of feature extraction.
[0217] Next, the feature extraction unit will extract the key features that affect water quality changes from these pre-processed data through a series of carefully designed steps:
[0218] 1. Change point analysis: First, the unit will apply the change point analysis technique in statistics to analyze time series data. The purpose of this step is to detect significant change points in the data, which may represent sudden changes in water quality parameters, such as the occurrence of pollution events. By identifying the time points of these sudden changes, it is possible to understand when water quality may be affected.
[0219] 2. Trend analysis: The feature extraction unit will then use linear or nonlinear regression analysis to analyze the changing trends of water quality parameters over time. This step helps capture and quantify long-term trends in water quality changes, such as the trend of water quality gradually improving or deteriorating with seasonal changes. Through trend analysis, macro factors that affect water quality changes can be identified.
[0220] 3. Periodic pattern recognition: In addition, the feature extraction unit also uses Fourier transform or autocorrelation function to analyze the periodic patterns of the data. These techniques can reveal the periodic changes of water quality parameters such as water temperature and pH value over time, such as daily temperature cycles or seasonal water quality change patterns. Identifying these periodic patterns is very helpful for understanding the natural laws of water quality changes.
[0221] After completing the above analysis, the feature extraction unit constructs feature vectors based on the key features identified from step 1 to step 3. These feature vectors integrate various factors that affect water quality changes and provide rich information for water quality prediction.
[0222] Finally, the feature extraction unit outputs the constructed feature vectors for use by the time series analysis unit. These feature vectors not only contain the direct measurements of water quality parameters, but also integrate advanced information such as change points, trends, and periodic patterns, enabling the time series analysis unit to perform a deeper and more accurate analysis of water quality change trends.
[0223] Furthermore, the time series analysis unit is specifically used for:
[0224] The key feature vector from the feature extraction unit is received, and the time series analysis of the key feature vector is performed using the following steps:
[0225] (d) Use linear regression analysis to identify and quantify long-term trends in water quality data;
[0226] (e) Apply seasonal decomposition techniques to identify seasonal and cyclical patterns in the data;
[0227] (f) Use autoregressive moving average models to analyze and predict short-term fluctuations in water quality data;
[0228] (g) using statistical methods to identify outliers or breakpoints in the time series, including control charts or breakpoint analysis;
[0229] Integrate the analysis results of step dg and output a comprehensive time series analysis result.
[0230] In the intelligent water resources perception system based on the Internet of Things, the time series analysis unit is the core part of the in-depth analysis of water quality data, which aims to capture and understand different aspects of water quality changes through comprehensive analysis of feature vectors.
[0231] First, the time series analysis unit starts its workflow by receiving key feature vectors from the feature extraction unit. These feature vectors are obtained from the original water conservancy data after fine processing and screening, and contain key information that has an important impact on water quality changes, such as water temperature, pH value, dissolved oxygen content and other indicators and their changing trends.
[0232] Next, the unit takes a series of steps to perform time series analysis on these key feature vectors, including:
[0233] -Use linear regression analysis to identify and quantify long-term trends in water quality data. By building a regression model of feature vectors and time, this method can reveal how water quality parameters change over time, such as whether dissolved oxygen levels increase or decrease with seasonal changes.
[0234] - Apply seasonal decomposition techniques, such as STL decomposition, to identify seasonal and cyclical patterns in the data. This step helps reveal whether water quality changes follow a seasonal pattern, such as whether significant changes in water quality occur at the same time every year.
[0235] - Use the Autoregressive Moving Average (ARMA) model, or its extensions such as the Autoregressive Integrated Moving Average (ARIMA) model, to analyze and predict short-term fluctuations in water quality data. These models can predict short-term changes in water quality parameters based on historical data, helping to identify and predict upcoming water quality changes.
[0236] - Use statistical methods, such as control charts or breakpoint analysis, to identify outliers or breakpoints in a time series. These methods can detect unusual changes in the data, such as a dramatic deterioration in water quality due to a pollution incident.
[0237] Finally, the time series analysis unit integrates the analysis results of the above steps and outputs a comprehensive time series analysis result. This result not only includes the analysis of long-term trends, seasonal and cyclical patterns, and short-term fluctuations in water quality, but also specifically marks abnormal changes and mutation points in the data, providing a comprehensive and in-depth analysis basis for the prediction of water quality changes.
[0238] Furthermore, the deep learning model is a long short-term memory network model.
[0239] In the IoT-based intelligent water resource perception system, the core of the prediction model unit is the long short-term memory network (LSTM) model, which is a special deep learning model designed to process and predict long-term dependencies in time series data. The LSTM model is selected for its excellent performance in processing time series analysis and prediction, especially when it is necessary to understand the complex patterns of water quality parameters changing over time.
[0240] The LSTM model is a variant of the recurrent neural network (RNN), which solves the gradient vanishing or exploding problem of traditional RNN when processing long sequences by introducing a gating mechanism. These gating units enable LSTM to effectively retain information over long time intervals, making it suitable for analyzing time series data with long-term dependencies, such as water quality monitoring data.
[0241] The following is some reference implementation code of the deep learning model:
[0242]
[0243]
[0244]
[0245] This code outlines how to use an LSTM network to predict water quality changes. First, it normalizes the original water quality data and reshapes the data into a format suitable for the LSTM network based on the characteristics of the time series. Then, a model with two LSTM layers and a Dense output layer is defined to learn the time series characteristics of the water quality data and make predictions. Finally, the model uses the new water quality data to make predictions and denormalizes the prediction results to restore them to the original data range.
[0246] Training a water quality prediction model is a multi-step process designed to learn from historical data in order to accurately predict future changes in water quality. Here are the basic steps for training a water quality prediction model:
[0247] 1. Data Collection:
[0248] First, collect relevant water quality data, which may include water temperature, pH, dissolved oxygen content, turbidity, etc. Make sure the data covers a sufficient time span to include various seasonal changes and possible abnormal events.
[0249] 2. Data preprocessing:
[0250] Clean the data, remove or correct missing values and outliers, and ensure data quality.
[0251] Standardize or normalize data so that data of different magnitudes can be compared and analyzed fairly.
[0252] Serialize data to convert it into a format suitable for time series analysis, such as treating time points as part of a series.
[0253] 3. Feature extraction:
[0254] Identify and extract key features that affect water quality changes. This may include features directly obtained from the original data, as well as implicit features identified through statistical analysis methods.
[0255] Considering the time dependency, the features should reflect the characteristics of the time series, such as trend, periodicity, etc.
[0256] 4. Time Series Analysis:
[0257] Perform time series analysis on features to identify long-term trends, seasonal patterns, cyclical changes, etc.
[0258] This step helps to deeply understand the dynamic changes behind the data and provide more insights for model training.
[0259] 5. Model selection and construction:
[0260] Choose an appropriate model based on the data characteristics and prediction goals. For time series data, recurrent neural networks (RNNs) and their variants such as long short-term memory networks (LSTMs) are common choices.
[0261] Build the model and set the model architecture, such as the number of layers, the number of neurons in each layer, the activation function, etc.
[0262] 6. Model training:
[0263] Train a model using historical water quality data. This typically involves defining a loss function, choosing an optimizer, and specifying the batch size and number of iterations during training.
[0264] While training, the model learns how to predict changes in water quality based on the input features.
[0265] 7. Model evaluation and tuning:
[0266] Evaluate model performance on an independent test set using metrics such as mean squared error (MSE), root mean squared error (RMSE), etc.
[0267] Tune the model based on the evaluation results, which may include adjusting the model architecture, optimizer parameters, etc.
[0268] 8. Deployment and application:
[0269] Deploy the trained and tuned model to the production environment.
[0270] Use the model to make predictions based on newly collected data, providing real-time or periodic water quality forecasts as needed.
[0271] The whole process is iterative and may require multiple adjustments and optimizations to achieve the best predictive performance.
[0272] Furthermore, the processing unit includes a user interface, which allows a user to query the current status of water resources, view water quality prediction results, and receive alarms or suggestions based on the prediction results.
[0273] In the IoT-based intelligent water resource sensing system, a key component of the processing unit is the user interface. This interface is a bridge for interaction between the system and the user. It not only allows users to access real-time and predicted water resource information, but also provides customized alerts and suggestions, thereby enhancing the user experience and the practicality of the system. The following are the detailed steps to implement the user interface.
[0274] User interface design:
[0275] 1. Interface layout: Design an intuitive and easy-to-use interface layout. This should include a clear data display area, a user operation area (such as a query bar, alert settings, etc.), and a feedback information area (for displaying query results and system suggestions).
[0276] 2. Real-time data display: Users should be able to view the real-time status of water resources, including key parameters such as water level, water quality and flow. This data should be dynamically updated in the form of charts or dashboards so that users can intuitively capture changes in resource status.
[0277] 3. Viewing water quality prediction results: In addition to real-time data, users should also be able to access water quality prediction results. The prediction results can be displayed through charts, such as time series prediction charts, showing the predicted change trend of water quality parameters in the future.
[0278] 4. Receiving alerts and suggestions: Based on the water quality prediction results and preset thresholds, the system should be able to automatically generate alerts or suggestions and pass this information to the user through the user interface. For example, if it is predicted that the water quality may deteriorate in the future, the system should notify the user in advance and give corresponding treatment suggestions.
[0279] Technical implementation includes:
[0280] 1. Front-end implementation: Use modern front-end technology stacks such as HTML, CSS, and JavaScript frameworks (such as React or Vue.js) to build the user interface. Make sure the interface is responsive and suitable for different devices and screen sizes.
[0281] 2. Backend integration: The backend service needs to process user query requests, extract real-time data and prediction results, and return this information to the frontend for display. Technologies such as RESTful API or WebSocket can be used to achieve communication between the frontend and backend.
[0282] 3. Security and permission control: Ensure that the user interface has the necessary security measures, such as identity authentication and data encryption, to protect the security of user information and water resources data. In addition, set corresponding access rights according to different user roles (such as administrator, ordinary user).
[0283] In summary, the processing unit 104 provides powerful data analysis and decision support functions for the intelligent water resources sensing system through its efficient data processing capabilities and advanced prediction technology. Its design ensures the high performance, accuracy and flexibility of the system, meeting the high requirements of modern water resources management for real-time monitoring and prediction.
[0284] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. An intelligent water resources sensing system based on the Internet of Things, characterized in that: include: Sensors are deployed at key water resource nodes to monitor water resources data at key water resource nodes in real time, including water level, water quality and flow parameters; A wireless network configured to receive the water conservancy data collected by the sensor and transmit the water conservancy data to a central database; A central database for storing water conservancy data transmitted from the wireless network; A processing unit is connected to the central database, and the processing unit includes a data fusion module and a water quality prediction module; the data fusion module uses a Kalman filter algorithm to fuse the water conservancy data stored in the central database to obtain fused data; the water quality prediction module predicts future water quality changes based on the fused data provided by the data fusion module and the trained water quality prediction model; The data fusion module is specifically used to execute an improved Kalman filter algorithm, and the improved Kalman filter algorithm includes the following steps: In the initialization phase of the algorithm, the initial values x0 and P0 are set for the system state and covariance matrix respectively; and the system state transfer matrix F, observation model matrix H, process noise covariance Q and basic observation noise covariance R0 are set; In the prediction phase of the algorithm, the next state x is predicted according to the following formulas 1 and 2: k|k-1 and covariance P k|k-1 ; x k|k-1 =Fx k-1|k-1 (1) P k|k-1 =FP k-1|k-1 F T + Q (2) Among them, x k-1|k-1 is the state estimate of the current time step; P k-1|k-1 is the covariance estimate of the current time step; F T is the transpose of the state transfer matrix; In the update phase of the algorithm, the environmental dynamics factor EDF and the time correlation adjustment factor TCF are calculated according to the following formula 3 and formula 4: Among them, E i represents the i-th environmental parameter; ω i is the weight coefficient; m is the total number of environmental parameters; p is the number of environmental parameters involved in the interaction calculation; ω jk is the weight coefficient; E j represents the jth environmental parameter; E k represents the kth environmental parameter; Among them, x current,i Represents the data point of the current period; x historical,i represents the data points of the same period in history; n is the number of data points; h is the calculation function of cosine similarity; SD(ΔX) is based on the difference between current data and historical data ΔX=x current,i -x historical,i The calculated standard deviation is used to capture the volatility of time series changes; λ is a weight parameter between 0 and 1; The observation noise covariance R is dynamically adjusted according to the following formula 5: R=R0·(1+α·EDF+β·TCF) (5) Among them, α and β are weight coefficients; R0 is the basic observation noise covariance; The Kalman gain K is calculated according to the following formula 6: k : K k = P k|k-1 H T (HP k|k-1 H T +R) -1 (6) Among them, H T represents the transpose of the observation model matrix H; Update the state estimate according to the following formula 7: x k|k = x k|k-1 + K k (y) k -Hx k|k-1 ) (7) Among them, y k New observations at time step k; Update the estimated covariance according to Formula 8 as follows: P k|k =(I-K k H)P k|k-1 (8) Where I is the identity matrix; Wherein, the water quality prediction model includes a data preprocessing unit, a feature extraction unit, a time series analysis unit, a prediction model unit and an output adjustment unit; The data preprocessing unit is used to receive the fused data from the data fusion module as input, perform standardization on the input data, remove outliers, and normalize the data to obtain preprocessed data; The feature extraction unit uses the output of the data preprocessing unit as input to identify and extract key features that affect water quality changes; The time series analysis unit is used to receive the key feature vector provided by the feature extraction unit, and adopt the time series analysis technology to capture and analyze the long-term and short-term water quality change trends to obtain the time series analysis results; The prediction model unit adopts a deep learning model to obtain a prediction value of future water quality changes according to the time series analysis results provided by the time series analysis unit; The output adjustment unit adjusts the predicted value of future water quality changes provided by the prediction model unit according to environmental mutation factors, and generates an adjusted water quality prediction report; Wherein, the feature extraction unit is specifically used for: receiving preprocessed data from a data preprocessing unit; The following steps were used to identify key features affecting water quality changes from the preprocessed data: (a) Apply statistical change point analysis techniques to detect significant change points from time series data to identify the time points when water quality parameters suddenly change; (b) Use linear or nonlinear regression analysis to determine the temporal trends of water quality parameters, thereby capturing the macro factors that affect water quality changes; (c) applying Fourier transform or autocorrelation function to identify periodic patterns in the data, including daily or annual cycles, which helps to identify natural cycles of water quality changes; Construct a feature vector based on the key features identified in steps ac; Output the constructed key feature vector for further analysis by the time series analysis unit; Wherein, the time series analysis unit is specifically used for: The key feature vector from the feature extraction unit is received, and the time series analysis of the key feature vector is performed using the following steps: (d) Use linear regression analysis to identify and quantify long-term trends in water quality data; (e) Apply seasonal decomposition techniques to identify seasonal and cyclical patterns in the data; (f) Use autoregressive moving average models to analyze and predict short-term fluctuations in water quality data; (g) using statistical methods to identify outliers or breakpoints in the time series, including control charts or breakpoint analysis; Integrate the analysis results of step dg and output a comprehensive time series analysis result; Among them, the deep learning model is a long short-term memory network model, wherein the long short-term memory network model includes a first LSTM layer, a second LSTM layer and an output layer; wherein the first LSTM layer includes 50 LSTM units; the second LSTM layer includes 50 LSTM units; the output layer is implemented using a Dense layer for outputting predicted values.
2. The intelligent water resources sensing system based on the Internet of Things according to claim 1 is characterized in that: The sensors include a water level sensor, a water quality sensor and a flow sensor.
3. The intelligent water resources sensing system based on the Internet of Things according to claim 1 is characterized in that: The wireless network uses at least one of the following wireless communication technologies: Cellular, Wi-Fi, or long-range low-power networks.
4. The intelligent water resources sensing system based on the Internet of Things according to claim 1 is characterized in that: The processing unit includes a user interface that allows a user to query the current status of water resources, view water quality prediction results, and receive alarms or suggestions based on the prediction results.
Citation Information
Patent Citations
Water quality prediction method and system based on coupled Kalman filtering data assimilation
CN117192063A
Multi-sensor data fusion method based on Kalman filtering parameter extraction and state updating
CN117313029A
Water quality monitoring system for environmental protection monitoring
CN117370900A
Method for generating influenza prediction model, apparatus, and computer readable storage medium
WO2019227716A1
