Intelligent water level monitoring system and method based on Internet of Things
By collecting water gauge images and topological matrices in the water level monitoring system and using deep learning technology for analysis, the problem of water level monitoring errors under complex lighting conditions is solved, achieving higher stability and accuracy, and adapting to water level monitoring in complex environments. .
Patent Information
- Application Number
- CN202410459931.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing water level monitoring system is prone to errors under complex lighting conditions, especially under the influence of glare and reflection on the water surface. During high flood periods, floating objects entangle the water gauge, causing serious errors in measurement results, and cannot effectively ensure the stability and accuracy of water level monitoring. .
Using an intelligent water level monitoring system based on the Internet of Things, by collecting multiple water gauge images and topological matrices of water level points, deep learning technology is used for feature extraction and analysis, and the decoded value used to represent the actual water level value is comprehensively obtained to avoid the influence of lighting conditions. .
It improves the stability and accuracy of water level monitoring, can better adapt to complex urban environments, reduces errors, and ensures the reliability of monitoring results.
Smart Images

Figure CN118552964A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent water level monitoring, and more specifically, to an intelligent water level monitoring system and method based on the Internet of Things. Background Art
[0002] Accurate measurement and monitoring of water levels is crucial in areas such as rivers, lakes and roads, and is directly related to the national economy and people's well-being. With the acceleration of urbanization, insufficient water level monitoring has led to a series of serious accidents, threatening people's lives and the normal operation of industrial and agricultural production and transportation. Therefore, it is urgent to introduce advanced technical measures to solve this problem and ensure the stability and accuracy of the water level monitoring system to meet the challenges brought by the increasingly complex urbanization environment.
[0003] However, there are challenges in using image segmentation technology to detect water levels, as the system is easily affected by complex lighting conditions such as glare and reflections on the water surface. In addition, during high flood seasons, floating objects may entangle the water gauge, resulting in serious errors in the measurement results.
[0004] Therefore, we look forward to an intelligent water level monitoring system and method based on the Internet of Things, which monitors and analyzes water levels from different water points based on deep learning technology to improve the stability and accuracy of water level line monitoring. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a water level intelligent monitoring system and method based on the Internet of Things, which first collects multiple water gauge images of different water points and topological matrices of different water points as input data, and then uses deep learning technology to extract and analyze the features of these input data respectively, and then comprehensively analyzes these feature information to obtain a decoded value for representing the actual water level value. Among them, the use of deep learning technology can more effectively avoid the influence of complex lighting conditions such as glare and reflection on the water surface. In this way, the stability and accuracy of water level line monitoring can be improved. In this way, it is helpful to cope with the challenges brought by the increasingly complex urban environment.
[0006] According to a first aspect of the present application, there is provided a water level intelligent monitoring system based on the Internet of Things, which comprises:
[0007] The water level data acquisition module is used to collect multiple water gauge images at different water level points and the topological matrix of different water level points;
[0008] A water level feature acquisition module, used to extract and analyze features of the multiple water gauge images at different water level points and the topological matrices at different water level points to obtain a water level monitoring feature matrix;
[0009] The water level feature decoding module is used to obtain a decoded value based on the water level monitoring feature matrix, and the decoded value is used to represent the actual water level value.
[0010] In combination with the first aspect of the present application, in an Internet of Things-based intelligent water level monitoring system of the first aspect of the present application, the water level feature acquisition module includes: a water level feature extraction unit, used to perform feature encoding on multiple water gauge images at different water points to obtain a water level feature matrix; a water level topological feature acquisition unit, used to obtain a water level topological feature matrix by passing the topological matrix of the different water points through a topological feature extraction module based on a feature encoder; a water level feature fusion unit, used to fuse the water level feature matrix and the water level topological feature matrix to obtain the water level monitoring feature matrix.
[0011] According to a second aspect of the present application, a water level intelligent monitoring method based on the Internet of Things is provided, which includes:
[0012] Collect multiple water gauge images at different water locations and topological matrices at different water locations;
[0013] Extracting and analyzing features of the plurality of water gauge images at different water level locations and the topological matrices at different water level locations respectively to obtain a water level monitoring feature matrix;
[0014] A decoded value is obtained based on the water level monitoring characteristic matrix, and the decoded value is used to represent the actual water level value.
[0015] In combination with the second aspect of the present application, in an intelligent water level monitoring method based on the Internet of Things in the second aspect of the present application, a decoding value is obtained based on a water level monitoring feature matrix, and the decoding value is used to represent the actual water level value, including: a water level monitoring feature acquisition unit, used to pass the water level monitoring feature matrix through a water level decoding feature extraction module based on a convolutional neural network model to obtain a water level decoding feature map; a water level monitoring feature optimization unit, used to perform unit activation averaging based on feature representation on the water level decoding feature map to obtain an optimized water level decoding feature map; a water level monitoring decoding unit, used to pass the optimized water level decoding feature map through a decoder to obtain the decoding value.
[0016] Compared with the prior art, the present application provides an intelligent water level monitoring system and method based on the Internet of Things, which first collects multiple water gauge images of different water points and topological matrices of different water points as input data, and then uses deep learning technology to extract and analyze the features of these input data respectively, and then comprehensively analyzes these feature information to obtain a decoded value used to represent the actual water level value. Among them, the use of deep learning technology can more effectively avoid the influence of complex lighting conditions such as glare and reflection on the water surface. In this way, the stability and accuracy of water level line monitoring can be improved. In this way, it is helpful to cope with the challenges brought by the increasingly complex urban environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 The figure illustrates a schematic block diagram of an intelligent water level monitoring system based on the Internet of Things according to an embodiment of the present application.
[0019] Figure 2 The figure illustrates a schematic block diagram of a water level feature acquisition module in an Internet of Things-based water level intelligent monitoring system according to an embodiment of the present application.
[0020] Figure 3 The figure illustrates a schematic block diagram of a water level feature extraction unit in a water level feature acquisition module in an Internet of Things-based water level intelligent monitoring system according to an embodiment of the present application.
[0021] Figure 4 The figure illustrates a schematic block diagram of a water level feature decoding module in an Internet of Things-based water level intelligent monitoring system according to an embodiment of the present application.
[0022] Figure 5 The figure illustrates a flow chart of a water level intelligent monitoring method based on the Internet of Things according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0024] Exemplary Systems
[0025] Figure 1FIG. 1 is a schematic block diagram of a water level intelligent monitoring system based on the Internet of Things according to an embodiment of the present application. Figure 1 As shown, according to the embodiment of the present application, the water level intelligent monitoring system 100 based on the Internet of Things includes: a water level data acquisition module 110, which is used to collect multiple water gauge images at different water points and topological matrices at different water points; a water level feature acquisition module 120, which is used to extract and analyze features of the multiple water gauge images at different water points and the topological matrices at different water points respectively to obtain a water level monitoring feature matrix; a water level feature decoding module 130, which is used to obtain a decoded value based on the water level monitoring feature matrix, and the decoded value is used to represent the actual water level value.
[0026] Accurate measurement and monitoring of water levels is crucial in areas such as rivers, lakes and roads, and is directly related to the national economy and people's well-being. Accurately measuring water levels can help predict floods and take necessary measures early, such as evacuating people, strengthening dams or preparing flood defense facilities in advance. However, with the rapid development of cities, traditional water level monitoring methods are obviously insufficient, which has led to some serious accidents. Therefore, it is crucial to use advanced technology to monitor water levels.
[0027] However, there are challenges in using image segmentation technology to detect water levels, as the system is easily affected by complex lighting conditions such as glare and reflections on the water surface. In addition, during high flood seasons, floating objects may entangle the water gauge, resulting in serious errors in the measurement results. Therefore, an IoT-based water level intelligent monitoring system and method is expected to monitor and analyze water levels from different water points based on deep learning technology to improve the stability and accuracy of water level monitoring.
[0028] Deep learning is a subfield of artificial intelligence that mimics the way the human brain works, using a neural network structure to learn and solve complex tasks. Deep learning is mainly based on artificial neural networks, which are composed of multiple layers, each containing many neurons. These neurons discover patterns and regularities by learning from large amounts of data. Deep learning excels when dealing with large amounts of data and complex problems, such as image recognition, speech recognition, and natural language processing. It has achieved higher accuracy than traditional methods on many tasks, especially when dealing with large amounts of data and complex pattern recognition.
[0029] In the water level intelligent monitoring system based on the Internet of Things in the embodiment of the present application, deep learning technology plays an important role. For example, deep learning technology can realize the monitoring and feedback of water level and provide accurate water level monitoring information. Therefore, in the specific embodiment of the present application, the input data is feature extracted and analyzed by deep learning technology.
[0030] In an embodiment of the present application, the water level data acquisition module 110 is used to collect multiple water gauge images at different water points and topological matrices at different water points. It should be understood that the environmental conditions of different water points may be different. For example, factors such as water flow velocity and water depth may cause differences in the water surface characteristics of different water points. By collecting multiple water gauge images at different water points, the system can learn the characteristics of different water points, so as to better adapt to water level monitoring under different environmental conditions. Therefore, in order for the system to better adapt to different environments, multiple water gauge images at different water points are first collected. In addition, considering that the topological matrix can describe the relationship and connection mode between different water points, it helps the system understand the topological structure between water points. By collecting the topological matrix of different water points, the system can better capture the correlation and mutual influence between water points, and provide more comprehensive information for water level monitoring. Therefore, in order to better and more accurately reflect the actual water level situation, it is also necessary to collect the topological matrix of different water points.
[0031] Specifically, when collecting multiple water gauge images at different water points, a camera or a dedicated water gauge image acquisition device can be installed to capture water gauge images at different water points. When collecting the topological matrix of different water points, wireless sensor network technology can be used to deploy sensor nodes at different water points, and the topological structure of the water level monitoring network can be constructed through the communication and connection relationship between the nodes.
[0032] In the embodiment of the present application, the water level feature acquisition module 120 is used to extract and analyze the features of the multiple water gauge images at different water level points and the topological matrices at different water level points to obtain a water level monitoring feature matrix. It should be understood that after collecting these input data, further feature extraction and analysis tasks are performed on these input data.
[0033] Specifically, Figure 2 FIG. 1 is a schematic block diagram of a water level feature acquisition module in a water level intelligent monitoring system based on the Internet of Things according to an embodiment of the present application. Figure 2 As shown, the water level feature acquisition module 120 includes: a water level feature extraction unit 121, used for performing feature encoding on the multiple water gauge images at different water points to obtain a water level feature matrix; a water level topological feature acquisition unit 122, used for obtaining a water level topological feature matrix by passing the topological matrix of the different water points through a topological feature extraction module based on a feature encoder; and a water level feature fusion unit 123, used for fusing the water level feature matrix and the water level topological feature matrix to obtain the water level monitoring feature matrix.
[0034] First, feature extraction and analysis are performed on the power parameters of the water level to be monitored at multiple predetermined time points. Specifically, Figure 3The figure shows a schematic block diagram of a water level feature extraction unit in a water level feature acquisition module in a water level intelligent monitoring system based on the Internet of Things according to an embodiment of the present application. Figure 3 As shown, the water level feature extraction unit 121 includes: an image de-occlusion subunit 121-1, used to pass the multiple water gauge images at different water points through a de-occlusion generator based on a generative adversarial network to obtain multiple de-occluded water gauge images; a water gauge feature acquisition subunit 121-2, used to pass the multiple de-occluded water gauge images through a water gauge feature extractor based on a depth feature fusion module to obtain multiple water gauge feature matrices; a water gauge feature cascade subunit 121-3, used to cascade the multiple water gauge feature matrices to obtain a water gauge input matrix; a water level feature acquisition subunit 121-4, used to pass the water gauge input matrix through a water level feature acquisition module based on a two-dimensional convolutional neural network model to obtain the water level feature matrix.
[0035] It should be understood that the water gauge image may not only be affected by complex lighting conditions such as glare and reflection on the water surface, but may also be affected by various occlusions, such as entanglement of floating objects, trees or other obstacles, making the identification and monitoring of the water level difficult. By removing the occlusion, the recognition accuracy of the water level can be improved. Therefore, in order to more accurately identify the water gauge features, a de-occlusion generator based on a generative adversarial network is first used to perform de-occlusion operations on the multiple water gauge images at different water points to obtain multiple de-occluded water gauge images. Among them, the generative adversarial network can learn complex nonlinear mapping relationships, which helps to restore the real water level information from the occluded water level image.
[0036] In a specific embodiment of the present application, the image de-occlusion subunit 121-1 is used to: sequentially input each of the multiple water scale images at the different water position points into the de-occlusion generator based on the generative adversarial network to obtain the multiple de-occluded water scale images.
[0037] Next, it is considered that the water gauge image includes not only shallow features such as the texture, edge and color of the water level line, but also deep features such as the collision, position and overall water level of the water level line. Based on this, a water gauge feature extractor based on a deep and shallow feature fusion module is used to extract and analyze the deep and shallow features of the multiple de-occluded water gauge images to obtain multiple water gauge feature matrices. Among them, the deep and shallow feature fusion module can help the model better understand and represent the features of the water gauge image, thereby improving the accuracy of water level monitoring. In this way, comprehensive consideration of feature information at different levels can reduce information loss and improve feature discrimination.
[0038] In a specific embodiment of the present application, the water gauge feature acquisition subunit 121-2 is used to: extract a shallow feature matrix from the i-th layer of the water gauge feature extractor, the i-th layer being the first to sixth layers of the water gauge feature extractor; extract a deep feature matrix from the j-th layer of the water gauge feature extractor, the ratio between the j-th layer and the i-th layer being greater than or equal to 5; and use the shallow-deep feature fusion module to fuse the shallow feature matrix and the deep feature matrix to obtain each of the multiple water gauge feature matrices.
[0039] Furthermore, it should be understood that the water level information at different water level points may be different. By cascading multiple water gauge feature matrices, the information of different water level points can be integrated to improve the global vision and accuracy of water level line monitoring. Therefore, in order to better capture the global feature information of the water level, the multiple water gauge feature matrices are cascaded to obtain the water gauge input matrix. In this way, the feature information of the water level image can be captured more comprehensively, and the monitoring effect can be improved.
[0040] In a specific embodiment of the present application, the water gauge feature cascade subunit 121-3, the specific cascade operation process is: 1. Unify the feature matrix size: ensure that the size and dimension of each water gauge feature matrix are the same, which is the prerequisite for the cascade operation, and can be achieved through adjustment and standardization. 2. Cascade operation: connect multiple water gauge feature matrices in a certain order (for example, according to the position order of water point points) to form a larger water gauge input matrix. This process can be achieved by performing a splicing operation on the feature dimension. 3. Generate a water gauge input matrix: After the cascade operation, the obtained water gauge input matrix contains feature information from different water point points, forming a more comprehensive and integrated input data for subsequent feature extraction and water level line monitoring.
[0041] Then, considering that the matrix obtained by cascading can only capture low-level features of the water level, it is difficult to capture higher-level and deeper feature information. Based on this, a water level feature acquisition module based on a two-dimensional convolutional neural network model is further used to perform a deeper feature extraction operation on the water gauge input matrix. Among them, the convolutional neural network (CNN) is an effective feature extractor that can automatically learn high-level features in images, such as edges, textures, shapes, etc., which helps to improve the accuracy of water level monitoring.
[0042] In a specific embodiment of the present application, the water level feature acquisition subunit 121-4 is used to: use each layer of the two-dimensional convolutional neural network model to perform the following on the input data in the forward pass of the layer: perform convolution processing based on a two-dimensional convolution kernel on the input data to obtain a convolution feature map; perform pooling processing on the convolution feature map along the channel dimension to obtain a pooled feature map; perform nonlinear activation on the pooled feature map to obtain an activation feature map; wherein the input of the first layer of the two-dimensional convolutional neural network model is the water gauge input matrix, and the output of the last layer of the two-dimensional convolutional neural network model is the water level feature matrix.
[0043] Then, the topological matrix of the different water points is subjected to feature extraction and analysis. It should be understood that there are usually spatial relationships and topological structures between the different water points in the water level monitoring system. By extracting topological features, these relationships can be better captured, which helps the system monitor and analyze the water level. Furthermore, considering that the feature encoder can learn higher-level and more abstract features, these features can often better capture the relationships and patterns between water points, thereby improving the performance of the monitoring system. Therefore, in order to better capture the correlation features between different water points, a topological feature extraction module based on a feature encoder is used to extract and analyze the correlation features of the topological matrix of the different water points to obtain a water level topological feature matrix. In this way, the topological structure information between the water points can be better understood and utilized, and the stability and accuracy of monitoring, as well as the adaptability and performance of the system can be improved.
[0044] In a specific embodiment of the present application, the water level topological feature acquisition unit 122 is used to: use each layer of the feature encoder to perform the following on the input data in the forward pass of the layer: use the convolution units of each layer of the feature encoder to perform convolution processing based on a two-dimensional convolution kernel on the input data to obtain a convolution feature map; use the pooling units of each layer of the feature encoder to perform pooling processing on the convolution feature map along the channel dimension to obtain a pooling feature map; and use the activation units of each layer of the feature encoder to perform nonlinear activation on the eigenvalues of each position in the pooling feature map to obtain an activation feature map; wherein the output of the last layer of the feature encoder is the water level topological feature matrix.
[0045] Then, the water level feature matrix and the water level topology feature matrix are fused. It should be understood that the data in the water level feature matrix usually contains specific numerical information about the water level, while the water level topology feature matrix reflects the spatial relationship and connection mode between water level points. The correlation characteristics between the two can help the system better understand the spatial structure behind the water level data. Therefore, in order to capture the spatial structure characteristics between different water level data, the water level feature matrix and the water level topology feature matrix are feature fused to obtain a water level monitoring feature matrix. In this way, the water level monitoring data can be understood and utilized more comprehensively and accurately, and the performance and effect of the system can be improved.
[0046] In a specific embodiment of the present application, the water level feature fusion unit 123 is used to: fuse the water level feature matrix and the water level topology feature matrix using the following cascade formula to obtain a water level monitoring feature matrix; wherein the cascade formula is: a =Concat[M a1 , M a2 ], where M a1 represents the water level feature matrix, M a2 represents the water level topological characteristic matrix, M a represents the water level monitoring feature matrix, and Concat[·,·] represents the cascade function.
[0047] In the embodiment of the present application, the water level feature decoding module 130 is used to obtain a decoded value based on the water level monitoring feature matrix, and the decoded value is used to represent the actual water level value. Specifically, Figure 4 FIG. 1 is a schematic block diagram of a water level feature decoding module in a water level intelligent monitoring system based on the Internet of Things according to an embodiment of the present application. Figure 4 As shown, the water level feature decoding module 130 includes: a water level monitoring feature acquisition unit 131, used to pass the water level monitoring feature matrix through a water level decoding feature extraction module based on a convolutional neural network model to obtain a water level decoding feature map; a water level monitoring feature optimization unit 132, used to perform unit activation averaging based on feature representation on the water level decoding feature map to obtain an optimized water level decoding feature map; a water level monitoring decoding unit 133, used to pass the optimized water level decoding feature map through a decoder to obtain the decoded value.
[0048] It should be understood that feature fusion can combine different types of feature information together, but it cannot capture more representative and distinguishing feature information. Therefore, in order to extract more advanced abstract features, the water level decoding feature extraction module based on the convolutional neural network model is further used to perform feature fusion and analysis operations on the water level monitoring feature matrix. In this way, through feature extraction by convolutional neural network, high-level abstract features in the data can be learned. These features can better capture patterns and associations in the data, which is conducive to the water level monitoring system to understand the data more accurately.
[0049] In particular, in the technical solution of the present application, it is considered that the sensors used in the water level monitoring process may have errors, such as inaccurate calibration, drift and other problems, which may lead to the introduction of noise or outliers when collecting water level data. Water level monitoring is affected by environmental factors, such as water flow, wind force and other factors may cause fluctuations or anomalies in water level data, which may cause noise or outliers in the water level feature extraction process. There may be errors or losses in the transmission and storage of water level data, resulting in partial data missing or errors, and these problems will also cause noise or outliers in the water level decoding feature map. Human operation or interference may also affect the accuracy of water level data, such as misoperation, data entry errors and other factors may cause outliers in the water level decoding feature map. That is, the water level decoding feature map may be affected by noise and outliers, and these abnormal data will reduce the robustness of the decoder, so that the decoded value may not be accurate or reliable. Therefore, in the technical solution of the present application, the unit activation averaging based on feature representation is performed on the water level decoding feature map.
[0050] Specifically, in a specific embodiment of the present application, the water level monitoring feature optimization unit 132 includes: calculating the global average value of each feature matrix of the water level decoding feature map along the channel dimension to obtain a decoding unit feature vector; passing the decoding unit feature vector through an activation unit based on a Sigmoid activation function to obtain an activated decoding unit feature vector; normalizing the activated decoding unit feature vector based on the bi-norm of the activated decoding unit feature vector to obtain a normalized activated decoding unit feature vector; masking the normalized activated decoding unit feature vector based on a predetermined threshold to obtain a masked activation screening weight feature vector; and performing channel-by-channel point multiplication on the water level decoding feature map using the feature values of each position in the masked activation screening weight feature vector as weights to obtain the optimized water level decoding feature map.
[0051] Here, the water level decoding feature map is subjected to unit activation averaging based on feature representation. In order to create a more robust and discriminative feature representation, the unit activation is performed by averaging the individual feature matrices along the channel dimension of the water level decoding feature map. This will produce a masked activation screening weight feature vector, in which each element represents the average activation level of a specific feature in the water level decoding feature map. Then, the water level decoding feature map is point-wise multiplied by the masked activation screening weight feature vector to obtain the optimized water level decoding feature map. Since the masked activation screening weight feature vector captures more comprehensive features in the water level decoding feature map, the decoder can make more accurate predictions. In addition, it averages the activation values of the individual feature matrices along the channel dimension of the water level decoding feature map to reduce the influence of noise and outliers, thereby producing a more robust feature representation, and aggregating the unit activations of the individual feature matrices along the channel dimension from the water level decoding feature map to capture more comprehensive features in the water level decoding feature map, thereby improving decoding performance, and the unit activation averaging based on feature representation can also improve computational efficiency and interpretability.
[0052] Among them, masking the normalized activation decoding unit feature vector based on a predetermined threshold to obtain a masked activation screening weight feature vector, including: in response to the feature value of the corresponding position in the normalized activation decoding unit feature vector being less than or equal to the predetermined threshold, setting the feature value of the corresponding position in the normalized activation decoding unit feature vector to zero to obtain the masked activation screening weight feature vector.
[0053] Based on the two norms of the activation decoding unit feature vector, the activation decoding unit feature vector is normalized to obtain a normalized activation decoding unit feature vector, including: importing a required library, wherein the library is Apache Commons Math; creating a feature vector normalization class; in the feature vector normalization class, writing a normalization method; writing a program entry point and instantiating the feature vector normalization class; and calling the written program entry point to input the activation decoding unit feature vector into the feature vector normalization class, wherein the feature vector normalization class uses the normalization method to calculate the two norms of the activation decoding unit feature vector, and divides each element in the activation decoding unit feature vector by the two norms of the activation decoding unit feature vector to obtain the normalized activation decoding unit feature vector; and displaying the normalized activation decoding unit feature vector.
[0054] The specific code implementation process is:
[0055]
[0056]
[0057] In particular, using the Spring Framework's spring-context-support mechanism to deploy and implement feature vector normalization operations may bring the following advantages:
[0058] 1. Dependency Injection:
[0059] -The Spring framework provides a dependency injection function that can easily manage the dependent objects required for feature processing, such as feature vector data. Through dependency injection, feature vector data can be injected into the components of feature processing, simplifying the dependency management between components.
[0060] 2. Configuration Management:
[0061] -The Spring framework supports externalized configuration, which allows you to configure feature processing parameters in external configuration files, making it easy to flexibly adjust and manage feature processing parameters. In this way, when adjusting feature processing logic, you don’t need to modify the code, you only need to modify the configuration file.
[0062] 3. Aspect-Oriented Programming (AOP):
[0063] -The Spring framework supports aspect-oriented programming, and can implement cross-cutting concerns through AOP, such as logging, performance monitoring, etc. In feature processing, the AOP function can be used to monitor and log the feature processing process.
[0064] 4. Easy to test:
[0065] -The Spring framework provides testing support, which makes it easy to write unit tests and integration tests to verify the correctness of feature processing. With Spring's testing support, it is easier to write and run test cases.
[0066] 5. Scalability and flexibility:
[0067] -Using the Spring framework can better achieve loose coupling and improve the scalability and flexibility of the code. If you need to expand the function of feature processing or introduce new feature processing algorithms in the future, you can do so by configuring and extending Spring Beans without modifying a lot of code.
[0068] 6. Integrate other Spring functions:
[0069] -If there are other components or functions in the application that use the Spring framework, using the spring-context-support mechanism to deploy feature processing functions can better integrate with existing Spring applications and maintain a unified development style and technology stack.
[0070] In general, using the Spring Framework's spring-context-support mechanism to deploy feature vector normalization can improve the maintainability, testability, and extensibility of the code, while taking advantage of the various features provided by the Spring Framework to better manage and organize feature processing code.
[0071] Next, considering that the decoder can help the system restore the information of the original data, the feature map that has been feature extracted and abstracted is converted back into the actual water level value, so that the monitoring system can accurately reflect the actual water level situation. Based on this, the decoder is used to decode the optimized water level decoding feature map to obtain the actual water level value. In this way, the accuracy and stability of the water level monitoring system can be improved, ensuring that the monitoring results are consistent with the actual situation.
[0072] In a specific embodiment of the present application, the water level monitoring decoding unit 133 is used to: use the decoder to decode and regress the optimized water level decoding feature map using the following formula to obtain the decoded value used to represent the actual water level value, wherein the formula is Wherein, X is the optimized water level decoding feature map, Y is the decoded value used to represent the actual water level value, W is the weight matrix, Represents matrix multiplication.
[0073] It is worth mentioning that in addition to using a decoder to perform feature decoding on the optimized water level decoding feature map, a regression model can also be used to directly regress the feature map to obtain a predicted value representing the actual water level value. The following are the specific steps of this implementation method: 1. Data preparation: 1.1. Prepare a training data set with water level data labels, including an optimized water level decoding feature map and the corresponding actual water level value. 1.2. Divide the data set into a training set and a test set for model training and evaluation. 2. Model construction: 2.1. Build a regression model, and you can choose to use a deep learning model such as a fully connected neural network or a lightweight model such as a linear regression model. 2.2. The input is the optimized water level decoding feature map, and the output is the predicted actual water level value. 3. Model training: 3.1. Use the training set to train the regression model and optimize the model parameters to minimize the error between the predicted value and the actual water level value. 3.2. Various optimization algorithms such as gradient descent can be used to update the model parameters. 4. Model evaluation: Use the test set to evaluate the performance of the regression model, compare the difference between the model prediction value and the actual water level value, and evaluate the accuracy and stability of the model. 5. Predict the actual water level value: 5.1. The trained regression model can be used to predict the actual water level value corresponding to the unknown optimized water level decoding feature map. 5.2. The optimized water level decoding feature map is input into the model to obtain the predicted actual water level value as the monitoring result.
[0074] In summary, the water level intelligent monitoring system based on the Internet of Things according to the embodiment of the present application is explained, which first collects multiple water gauge images of different water points and topological matrices of different water points as input data, and then uses deep learning technology to extract and analyze the features of these input data respectively, and then comprehensively analyzes these feature information to obtain a decoded value for representing the actual water level value. Among them, the use of deep learning technology can more effectively avoid the influence of complex lighting conditions such as glare and reflection on the water surface. In this way, the stability and accuracy of water level line monitoring can be improved. In this way, it is helpful to cope with the challenges brought by the increasingly complex urban environment.
[0075] As described above, the water level intelligent monitoring system 100 based on the Internet of Things according to the embodiment of the present application can be implemented in various wireless terminals, such as a server for water level intelligent monitoring based on the Internet of Things. In one example, the water level intelligent monitoring system 100 based on the Internet of Things according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the water level intelligent monitoring system 100 based on the Internet of Things can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the water level intelligent monitoring system 100 based on the Internet of Things can also be one of the many hardware modules of the wireless terminal.
[0076] Alternatively, in another example, the IoT-based water level intelligent monitoring system 100 and the wireless terminal may also be separate devices, and the IoT-based water level intelligent monitoring system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0077] Exemplary Methods
[0078] Figure 5 The figure shows a flow chart of a water level intelligent monitoring method based on the Internet of Things according to an embodiment of the present application. Figure 5 As shown, according to the Internet of Things-based intelligent water level monitoring method of the embodiment of the present application, the method includes: S1, collecting multiple water gauge images at different water points and topological matrices at different water points; S2, respectively extracting and analyzing features of the multiple water gauge images at different water points and the topological matrices at different water points to obtain a water level monitoring feature matrix; S3, obtaining a decoding value based on the water level monitoring feature matrix, and the decoding value is used to represent the actual water level value.
[0079] Here, those skilled in the art can understand that the specific functions and operations of each step in the above-mentioned water level intelligent monitoring method based on the Internet of Things have been referred to above. Figure 1The description of the water level intelligent monitoring system based on the Internet of Things has been introduced in detail, and therefore, its repeated description will be omitted.
[0080] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, apparatuses and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0081] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0082] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0083] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0084] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. Secondary words are used to indicate names, but not to indicate any particular order.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit of the technical solution of the present invention.
Claims
1. An intelligent water level monitoring system based on the Internet of Things, characterized in that: include: The water level data acquisition module is used to collect multiple water gauge images at different water level points and the topological matrix of different water level points; A water level feature acquisition module, used to extract and analyze features of the multiple water gauge images at different water level points and the topological matrices at different water level points to obtain a water level monitoring feature matrix; The water level feature decoding module is used to obtain a decoded value based on the water level monitoring feature matrix, and the decoded value is used to represent the actual water level value.
2. The water level intelligent monitoring system based on the Internet of Things according to claim 1 is characterized in that: The water level feature acquisition module comprises: A water level feature extraction unit, used for performing feature encoding on the plurality of water gauge images at different water level points to obtain a water level feature matrix; A water level topological feature acquisition unit, used for obtaining a water level topological feature matrix by passing the topological matrices of the different water level points through a topological feature extraction module based on a feature encoder; The water level feature fusion unit is used to fuse the water level feature matrix and the water level topology feature matrix to obtain the water level monitoring feature matrix.
3. The water level intelligent monitoring system based on the Internet of Things according to claim 2 is characterized in that: The water level feature extraction unit comprises: An image de-occlusion subunit, used for obtaining a plurality of de-occluded water gauge images by passing the plurality of water gauge images at different water position points through a de-occlusion generator based on a generative adversarial network; A water gauge feature acquisition subunit, used for obtaining a plurality of water gauge feature matrices by passing the plurality of de-occluded water gauge images through a water gauge feature extractor based on a depth feature fusion module; A water gauge feature cascading subunit, used for cascading the multiple water gauge feature matrices to obtain a water gauge input matrix; The water level feature acquisition subunit is used to pass the water gauge input matrix through a water level feature acquisition module based on a two-dimensional convolutional neural network model to obtain the water level feature matrix.
4. The water level intelligent monitoring system based on the Internet of Things according to claim 3 is characterized in that: The image de-occlusion subunit is used to: sequentially input each of the multiple water gauge images at different water position points into the de-occlusion generator based on the generative adversarial network to obtain the multiple de-occluded water gauge images.
5. The water level intelligent monitoring system based on the Internet of Things according to claim 4 is characterized in that: The water level feature fusion unit is used to: fuse the water level feature matrix and the water level topology feature matrix using the following cascade formula to obtain a water level monitoring feature matrix; Wherein, the cascade formula is: M a =Concat[M a1 ,M a2 ] Among them, M a1 represents the water level feature matrix, M a2 represents the water level topological characteristic matrix, M a represents the water level monitoring feature matrix, and Concat[·,·] represents the cascade function.
6. The water level intelligent monitoring system based on the Internet of Things according to claim 5 is characterized in that: The water level feature decoding module comprises: A water level monitoring feature acquisition unit, used for passing the water level monitoring feature matrix through a water level decoding feature extraction module based on a convolutional neural network model to obtain a water level decoding feature map; A water level monitoring feature optimization unit, used for performing unit activation averaging based on feature representation on the water level decoding feature map to obtain an optimized water level decoding feature map; The water level monitoring decoding unit is used to pass the optimized water level decoding characteristic diagram through a decoder to obtain the decoded value.
7. The water level intelligent monitoring system based on the Internet of Things according to claim 6 is characterized in that: The water level monitoring characteristic optimization unit comprises: Calculating the global average of each feature matrix along the channel dimension of the water level decoding feature map to obtain a decoding unit feature vector; Passing the decoding unit feature vector through an activation unit based on a Sigmoid activation function to obtain an activated decoding unit feature vector; Based on the binary norm of the activation decoding unit feature vector, normalizing the activation decoding unit feature vector to obtain a normalized activation decoding unit feature vector; Masking the normalized activation decoding unit feature vector based on a predetermined threshold to obtain a masked activation screening weight feature vector; and The water level decoding feature map is multiplied channel by channel point by using the feature values of each position in the masked activation screening weight feature vector as weights to obtain the optimized water level decoding feature map.
8. The water level intelligent monitoring system based on the Internet of Things according to claim 7 is characterized in that: The method comprises: performing masking processing on the normalized activation decoding unit feature vector based on a predetermined threshold to obtain a masked activation screening weight feature vector. In response to the feature value of the corresponding position in the normalized activation decoding unit feature vector being less than or equal to the predetermined threshold, the feature value of the corresponding position in the normalized activation decoding unit feature vector is set to zero to obtain the masked activation screening weight feature vector.
9. The water level intelligent monitoring system based on the Internet of Things according to claim 8 is characterized in that: Based on the binary norm of the activation decoding unit feature vector, the activation decoding unit feature vector is normalized to obtain a normalized activation decoding unit feature vector, including: Import the required library, wherein the library is Apache Commons Math; Create a feature vector normalization class; In the feature vector normalization class, write a normalization method; Write a program entry point and instantiate the feature vector normalization class; and Calling the programming entry point, inputting the activation decoding unit feature vector into the feature vector normalization class, wherein the feature vector normalization class uses the normalization method to calculate the two-norm of the activation decoding unit feature vector, and divides each element of the activation decoding unit feature vector by the two-norm of the activation decoding unit feature vector to obtain the normalized activation decoding unit feature vector; and The normalized activation decoding unit feature vector is shown.
10. A water level intelligent monitoring method based on the Internet of Things, characterized in that ,include: Collect multiple water gauge images at different water locations and topological matrices at different water locations; Extracting and analyzing features of the plurality of water gauge images at different water level locations and the topological matrices at different water level locations respectively to obtain a water level monitoring feature matrix; A decoded value is obtained based on the water level monitoring characteristic matrix, and the decoded value is used to represent the actual water level value.
