Pump station water level prediction method and device
Through improved generative adversarial network and graph neural network feature extraction, combined with an asynchronous parallel high-order neural network classification model, the problem of insufficient efficiency and accuracy of traditional methods in large-scale pumping station water level prediction is solved, and efficient and accurate water level prediction is achieved. , which improves management efficiency and model adaptability.
Patent Information
- Application Number
- CN202410015081.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-01-05
AI Technical Summary
Traditional pumping station water level prediction methods are inefficient when processing large-scale, high-dimensional and non-linear data. They cannot effectively capture the deep patterns of complex environmental variables and internal parameters, and their accuracy is insufficient, which limits the application scope and long-term stability of the model.
An improved generative adversarial network is used to generate new sample data, combined with the feature extraction method of graph neural network, and a prediction model is built based on an asynchronous parallel high-order neural network classification model to improve the efficiency of data processing and analysis, and enhance the generalization ability and adaptability of the model. .
It achieves efficient processing and analysis of large-scale, multi-dimensional pumping station data, improves prediction accuracy and model application scope, can accurately predict pumping station water levels, improve management efficiency and prevent water resources crises.
Smart Images

Figure CN118535888A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water level prediction, and in particular to a method and device for predicting water level in a pump station. Background Art
[0002] In large-scale, highly complex industrial application scenarios, the management of water resources is particularly critical, involving urban water supply, agricultural irrigation, flood prevention, ecological protection and other aspects. With the further development of urbanization and the impact of climate change, the management and prediction of water resources have become more important and complex. As a key link in water resource management, the efficiency and accuracy of pumping stations are crucial to the stable operation of the entire water resource management system. The prediction and regulation of water levels at pumping stations directly affect the allocation and utilization efficiency of water resources.
[0003] Traditional methods for predicting water levels at pumping stations mostly rely on physical models or simple statistical methods. On the one hand, such processing methods have limited data processing capabilities and are inefficient when dealing with large-scale, high-dimensional, and nonlinear data in existing technologies. In particular, these methods may not be able to effectively capture deep patterns and associations in the data when faced with complex environmental variables and internal parameters. On the other hand, existing technologies often lack accuracy due to their reliance on simplified physical models or basic statistical methods, which is particularly important in scenarios where accurate water level predictions are needed to guide resource management and emergency response. In addition, traditional models may perform well on specific data sets, but perform poorly under new data or changing environmental conditions, which limits the scope of application and long-term stability of the models.
[0004] Therefore, there is an urgent need to provide a pump station water level prediction method and device to solve the above-mentioned technical problems. Summary of the invention
[0005] The present application provides a method and device for predicting water level at a pumping station, which enriches water level data through an improved generative adversarial network, extracts feature data based on a graph neural network feature extraction method, obtains input data, and constructs a prediction model according to an asynchronous parallel high-order neural network classification algorithm. It can realize efficient processing and analysis of large-scale, multi-dimensional pumping station data, effectively solve the problems of large data volume and high complexity, improve prediction accuracy and model application scope, so as to accurately predict the water level of the pumping station, so as to improve management efficiency and prevent possible water resource crises.
[0006] In the first aspect, the present application provides a method for predicting water level of a pumping station, the method comprising: collecting water level data of the pumping station, performing data preprocessing on the water level data to obtain an original data set; generating new sample data based on the original data set according to an improved generative adversarial network, and supplementing the new sample data to the original data set to obtain an extended data set; performing feature extraction on the extended data set based on a feature extraction method of a graph neural network to obtain input data; and constructing a prediction model based on the input data based on an asynchronous parallel high-order neural network classification model to predict the water level of the pumping station.
[0007] Optionally, the method generates new sample data based on the original data set according to the improved generative adversarial network, and adds the new sample data to the original data set to obtain an expanded data set, including: representing the pump station water level data according to the sparse coding technology, with the original data set ,in, Indicates data points, is a dictionary matrix, each column represents a primitive, each data point It is described by formula (2): ; in, is a sparse representation vector, most of the elements are 0, For the Pump station water level data points; Initialize dictionary ; Based on the improved generative adversarial network, iteratively update the dictionary , in In the iterations, the dictionary The update method of is described by formula (3): ; in, is the loss function, is the learning rate, Express The gradient of Loss Function It is described by formula (4): ; in, is the loss function of the generator, and the goal is to minimize the following loss: ; is the loss function of the discriminator, and the goal is to minimize the following loss: ; Gradient of dictionary It is described by formula (7): ; Sparse coding solves the sparse representation vector by minimizing the following objective function , which is described by formula (8): ; in, is the regularization parameter, and are the L1 and L2 norms respectively.
[0008] Optionally, the improved generative adversarial network is used to iteratively update the dictionary. , specifically including: the improved generative adversarial network includes a generator and the discriminator ; The generator Receive noise vector And generate data , which is described by formula (9): ; in, are the parameters of the generator, noise It is sampled from a multidimensional Gaussian distribution and can be expressed as: ,in, is the identity matrix, is the Gaussian (normal) distribution symbol; it will be passed through the generator Generated data Input to the discriminator In the above example, the authenticity of the input data sample is evaluated, which is expressed by formula (10): ; in, are the parameters of the discriminator, For sample The probability function of determining it as a real sample; based on the obtained generator and the discriminator, adjusting their parameters and optimizing them; the improved generative adversarial network is trained by the following objective function, which is described by formula (11): ; in, is the actual data distribution, is the noise distribution, is the expected value symbol.
[0009] Optionally, adjusting parameters of the obtained generator and the discriminator to optimize the generator and the discriminator includes integrating sparse coding into the generator, and the sparse coding generator is described by formula (12): ; The generator generates a sparse representation ,and for ; When the discriminator is optimized, the optimization of the discriminator is based on the concept of entropy to increase its discriminative ability, and the discriminator entropy optimization method is described by formula (13): ; in, is entropy, and are the probability distributions of data and discriminator outputs respectively; new data samples are generated based on the generator and verified by the discriminator, and the effectiveness of the generated data in improving the model performance is ensured by the cross-validation method; according to the preset trained random forest classifier, the generated data is used to train the pump station water level prediction model, and according to the loss function of the generator And the loss function of the discriminator Parameters to the generator and the parameters of the discriminator Adjustment is made and described by formulas (14) and (15): , ; in, is the learning rate, which is preset manually. and are the gradients of the generator and discriminator parameters, and is the loss function of the generator and the discriminator.
[0010] Optionally, the feature extraction method based on graph neural network performs feature extraction on the expanded data set to obtain input data, including: the graph neural network includes a node generation module and a feature interaction module, the expanded data set is input into the node generation module to extract eigenvalues, and the extracted eigenvalues are sent to the fully connected neural network to learn to obtain the attention coefficients of each eigenvalue, and the first K eigenvalues with the largest attention coefficients are selected as key eigenvalues; a graph neural network is constructed based on the key eigenvalues as nodes, and an adjacency matrix is constructed based on the attention coefficients, and features are interacted through the feature interaction module to obtain feature data after feature extraction.
[0011] Optionally, the expanded data set is input into the node generation module to extract eigenvalues, and the extracted eigenvalues are sent to the fully connected neural network to learn the attention coefficients of the eigenvalues, and the eigenvalues with the largest attention coefficients are selected as key eigenvalues, including: in the node generation module, the eigenvalues are extracted, and the weight coefficients of each eigenvalue are obtained by processing the fully connected neural network. The input features are described by formula (16), the weight coefficients of each eigenvalue are described by formula (17), and the processing method of the fully connected neural network is described by formula (18): , , ; in, represent the characteristic dimension and the number of eigenvalues respectively, is the input feature, C is the weight coefficient, is the weight, is the bias; the weight coefficient obtained is The attention coefficient is obtained after normalization using the softmax function and is described by formula (19): ; in, is the attention coefficient, For the The weight coefficient of is the summation function; according to the attention coefficient obtained, select the previous The maximum attention coefficient is denoted as , and record the index value of the corresponding eigenvalue , get the corresponding eigenvalue according to the index value , that is, the key eigenvalues are obtained.
[0012] Optionally, the graph neural network is constructed based on the key feature values as nodes, and an adjacency matrix is constructed based on the attention coefficient, and the features are interacted with each other through the feature interaction module to obtain feature data after feature extraction, including: constructing a graph neural network based on the key feature values as nodes, and the constructed graph neural network is ,node Represents the key eigenvalue, each key eigenvalue With a node Related, is a size of The adjacency matrix of ,and Represents known eigenvalues The characteristic value under the condition The probability of occurrence is described by formula (20): ; in, For the The attention coefficient of the key feature value; according to each node , assuming that The hidden state at time , first use the key eigenvalue features initialization The hidden state at At that moment, using a gated recurrent update mechanism, each node in the graph aggregates messages from its neighbors, The hidden state at time t is described by formula (21). The gated loop update mechanism is described by formula (22): ; in, represents the key eigenvalue feature, represents an aggregate feature vector; based on the aggregate feature vector and the previous time step , each node updates its hidden state through the gating mechanism, which is described by formulas (23), (24), (25), and (26): , , , ; in, represents the sigmoid function, is the hyperbolic tangent function, represents element-wise multiplication, is the network parameter to be learned; when the feature With features When the correlation is high, the graph neural network will transfer information between the two, otherwise it will inhibit information transfer, and the above feature updates will be iterated. Second, generate the final hidden state , that is, The output of the feature extraction module is composed to obtain the feature data after feature extraction.
[0013] Optionally, the asynchronous parallel-based high-order neural network classification model constructs a prediction model based on the input data to predict the water level of the pumping station, including: initializing model parameters, including the number of neurons, connection weights, and configuration of high-order terms; inputting the input data into the high-order neural network classification model, each of the input data is processed by a high-order neuron, and the high-order feature mapping transformation of the data is described by formula (27): ; in, is the input data, is a function that maps input data to a high-dimensional space, is the weight matrix, is a nonlinear activation function, High-dimensional mapping function, the high-dimensional mapping function It can be expressed as: ; in, Represents input features of order term; based on the processing of the input data, the calculation of different departments of the network is performed in an asynchronous parallel manner, so as to process and learn data more quickly, and the training model is continuously updated to build a prediction model. The asynchronous parallel weight update method is described by formulas (28) and (29). The gradient of the error function in the asynchronous parallel weight update is It is described by formula (30): , , ; in, is the current weight, is the learning rate, is the change in weight, and Based on the error function The gradient and momentum terms of Based on the predicted output With the actual output The function of the error between is the error function for the weight The partial derivative of is used to guide the update of weights; according to the performance of the model during training, the learning rate is dynamically adjusted to ensure the stability and efficiency of convergence. The adaptive learning rate adjustment method is described by formula (31). The partial derivative of the learning rate in the adaptive learning rate adjustment is The calculation method of is described by formula (32): ; in, is the learning rate adjustment factor, It is the partial derivative of the error with respect to the learning rate, which is used to dynamically adjust the learning rate to optimize the training process. This partial derivative measures the error with respect to the learning rate The situation that changes with the changes of is used to dynamically adjust the learning rate to achieve better training results.
[0014] Optionally, the asynchronous parallel-based high-order neural network classification model constructs a prediction model based on the input data to predict the water level of the pumping station, and also includes: dynamically adjusting the connection between neurons according to the data characteristics and learning process of the model, and increasing the flexibility and adaptability of the model by dynamic connection reorganization. The dynamic connection reorganization method is described by formula (33), and the adjustment factor in the dynamic connection reorganization is described by formula (34): , ; in, is the original connection weight, It is an adjustment factor calculated based on network performance feedback and is used to dynamically adjust the connections between neurons. is the adjustment factor, is the error function for a particular weight The partial derivative of is used to calculate the adjustment amount of each connection weight; based on the difference between the predicted result and the actual water level, the network parameters are continuously adjusted to optimize the prediction accuracy, which is described by formula (35): ; in, is the water level at the pumping station predicted by the model, is the actual water level, is the total error, which is used as feedback for model optimization.
[0015] In the second aspect, the present application provides a pump station water level prediction device, which includes: an acquisition module, which is used to collect pump station water level data, perform data preprocessing on the water level data, and obtain an original data set; a data processing module, which is used to generate new sample data based on the original data set according to an improved generative adversarial network, and supplement the new sample data to the original data set to obtain an extended data set; a feature extraction module, which is used to extract features from the extended data set based on a feature extraction method of a graph neural network to obtain input data; a prediction module, which is used to construct a prediction model based on the input data based on an asynchronous parallel high-order neural network classification model to predict the water level of the pump station.
[0016] In a third aspect, the present application also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-described method when executing the computer program.
[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
[0018] This application has at least the following advantages: In this application, pump station water level data is collected and preprocessed to obtain an original data set, and new samples are generated based on the improved generative adversarial network according to the original data set to obtain an expanded data set, thereby increasing the diversity of training data and thus improving the generalization ability of the model. A prediction model is constructed based on the input data using an asynchronous and parallel high-order neural network, and combined with dynamic connection reorganization and feedback mechanism optimization, the flexibility and adaptability of the model are improved, and large-scale, multi-dimensional pump station data can be efficiently processed and analyzed, effectively solving the problems of large data volume and high complexity, and improving the prediction accuracy and scope of model application, so that the water level of the pump station can be accurately predicted to improve management efficiency and prevent possible water resource crises. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A diagram showing an application environment of a pump station water level prediction method in one embodiment; Figure 2 A schematic diagram showing a flow chart of a method for predicting water level of a pumping station in one embodiment; Figure 3 A schematic diagram of a process of obtaining an expanded data set based on an original data set according to an improved generative adversarial network in one embodiment; Figure 4 In one embodiment, the improved generative adversarial network is used to iteratively update the dictionary. Schematic diagram of the process; Figure 5 A schematic diagram of a flow chart showing a process of adjusting parameters of a generator and a discriminator obtained based on the obtained parameters and performing optimization in one embodiment; Figure 6 A structural block diagram showing a feature extraction method based on a graph neural network for extracting features from an expanded data set in one embodiment; Figure 7 A schematic diagram of a process of extracting features from an expanded data set using a feature extraction method based on a graph neural network in one embodiment; Figure 8 A schematic diagram of a process for obtaining key feature values based on a graph neural network in one embodiment; Fig. 9 A schematic diagram of a process for obtaining feature data according to key feature values in one embodiment; Fig.10 A schematic diagram showing a process of building a prediction model based on an asynchronous parallel high-order neural network classification model in one embodiment; Fig.11 A schematic diagram of a process flow showing optimization according to a high-order neural network in combination with dynamic connection reorganization and feedback mechanism in one embodiment; Fig.12 A structural block diagram of a pump station water level prediction device is shown in one embodiment; Fig.13 FIG. 4 is a schematic structural diagram of a computer device in one embodiment. Implementation
[0020] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0021] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when "including" and / or "comprising" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0022] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined with each other and quoted from each other without contradiction.
[0023] For ease of understanding, the system to which this application is applicable is first described. The pump station water level prediction method provided in this application can be applied to Figure 1The system architecture shown. The system includes: a user space file server 103 and a terminal device 101, and the terminal device 101 communicates with the user space file server 103 through the network. Among them, the user space file server 103 can be a file server based on the NFSv3\v4 protocol, running in a Linux environment, and NFS (Network File System) is a network abstraction above the file system, which allows remote clients running on the terminal device 101 to access through the network in a manner similar to the local file system. The terminal device 101 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc., and the user space file server 103 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0024] Figure 2 A flow chart of a pump station water level prediction method provided in an embodiment of the present application, the method can be performed as follows Figure 1 The user space file server is executed in the system shown. Figure 2 As shown, the method may include the following steps: S201, collecting pump station water level data, performing data preprocessing on the water level data, and obtaining an original data set; S202, generating new sample data based on the original data set according to the improved generative adversarial network, and adding the new sample data to the original data set to obtain an expanded data set; S203, extracting features from the expanded data set using a feature extraction method based on a graph neural network to obtain input data; S204. Based on the asynchronous parallel high-order neural network classification model, a prediction model is constructed according to the input data to predict the water level of the pumping station.
[0025] Based on the training process of the above steps, a high-order neural network prediction model for urban pump station water level prediction can be obtained, thereby realizing efficient processing and analysis of large-scale, multi-dimensional pump station data, effectively solving the problems of large data volume and high complexity, improving the prediction accuracy and model application scope, and thus being able to accurately predict the water level of the pump station.
[0026] The following is a detailed description of each step: Reference Figure 2 As shown, S201, collecting pump station water level data, performing data preprocessing on the water level data, and obtaining an original data set; In this embodiment, it should be noted that the water level data of the pump station is collected, including sampling time, startup time, voltage, current, water pump blade angle, pipeline pressure, water pump frequency, number of operations, current operation time, cumulative operation time, cumulative flow, reverse cumulative flow, active power, reactive power, unit vibration and swing, outlet pressure, water pump speed, water level of the water inlet pool, water level of the front and rear pools, etc. The data is collected by sensors, and the collection frequency is once per minute. The collected data is preprocessed to obtain the first water level data for subsequent calculation.
[0027] Specifically, in one example, the sampling time is 10:00 am on November 20, 2023. Start-up time: the time when the pump station was last started, indicating that the pump station has been running since 9:30. Voltage: the voltage when the pump station is working, in volts (V), 220V. Current: the current when the pump station is running, in amperes (A), 15A. Water pump blade angle: indicates the position of the water pump blade, in degrees (°), 45°. Pipeline pressure: the pressure in the water pipe, in bar, 3.5bar; Water delivery pump frequency: the operating frequency of the pump, in Hertz (Hz), 50Hz. Number of operations: the cumulative number of operations of the pump station, 100 times. Current operation time: the operating time since the current startup, in minutes, 30 minutes. Cumulative operation time: the total cumulative operation time of the pump station, in minutes, 15,000 minutes. Cumulative flow: the cumulative amount of water delivered by the pump station, in cubic meters, 500,000 cubic meters. Reverse cumulative flow: the cumulative amount of water delivered by the pump station in reverse operation, in cubic meters, 500 cubic meters. Active power: the power consumed by the pump station during operation, in watts (W), 3300W. Reactive power: the reactive power generated when the pump station is running, in watts (VAR), 500VAR; Unit vibration and swing: The vibration level of the pump station during operation, usually in millimeters per second (mm / s), 0.02mm / s. Outlet pressure: The pressure at the outlet of the pump station, in bar (bar), 4bar. Pump speed: The speed of the pump, in revolutions per minute (rpm), 1500rpm. Inlet pool water level: The water level height of the inlet pool, in meters (m), 2.5m. Front and rear pool water level difference: The water level difference between the front pool and the rear pool, in meters (m), 0.5m. Based on the data collected about the water level of the pump station, the collected data is preprocessed to obtain the original data set, which provides a data basis for subsequent training and model construction.
[0028] In some embodiments, the water level data of the pump station is collected, and the water level data is preprocessed to obtain the original data set, which specifically includes: cleaning the collected water level data of the pump station, mainly including deleting abnormal values and filling missing values; standardizing the cleaned data, converting data of different dimensions to a unified scale, and obtaining the first water level data, which is described by formula (1): ; in, and are the minimum and maximum values in the data set, respectively.
[0029] In this embodiment, it should be noted that the water level data is preprocessed. In one example, a series of data points are provided. ,in, Representative data points. Here we use the Z-score method to detect outliers. For each data point , calculate its Z score , which can be expressed as: ; in, is the mean value of the data set, is the standard deviation.
[0030] if , is the preset threshold, which is set to 3 here, then it is considered It is an abnormal value and is processed. The processing method is to delete the abnormal data.
[0031] Furthermore, if the data point Missing, use interpolation method to fill. In one example, linear interpolation is used for processing, which can be expressed as: ; in, and are adjacent non-missing values.
[0032] After cleaning, the data is normalized to finally obtain the preprocessed original data set, providing a data basis for subsequent model construction.
[0033] S202, generating new sample data based on the original data set according to the improved generative adversarial network, and adding the new sample data to the original data set to obtain an expanded data set; In this embodiment, it should be noted that the Generative Adversarial Network (GAN) can learn the generation task in a semi-supervised or unsupervised application scenario. The Generative Adversarial Network is a generative model that learns by competing with each other between two neural networks. The Generative Adversarial Network can learn the generation task without using labeled data. The Generative Adversarial Network consists of a generator and a discriminator. The generator randomly samples from the latent space as input, and its output needs to imitate the real samples in the training set as much as possible. The input of the discriminator is the real sample or the output of the generator, and its purpose is to distinguish the output of the generator from the real sample as much as possible. The generator and the discriminator confront each other and learn continuously, and the ultimate goal is to make the discriminator unable to judge whether the output of the generator is true. Here, the Generative Adversarial Network is used to expand the water level data of the pump station, which effectively enhances the quality and diversity of the water level data samples of the pump station.
[0034] S203, extracting features from the expanded data set using a feature extraction method based on a graph neural network to obtain input data; In this embodiment, it should be noted that the deep learning method that has emerged in recent years uses a neural network module to automatically learn the low-dimensional dense representation vector of the molecule from the molecular structure or the descriptor that retains a large amount of original information, without feature engineering, thereby reducing the drug development cycle. Recently, the concept of graph neural networks (graph neural networks, GNN) has been introduced to describe chemical molecules, and various types of GNNs, such as graph convolution network (graphconvolutionnetwork, GCN), gated neural network (gated graph neural network, GGNN) and directed message passing neural network (directed message passing neural network, DMPNN), etc., can be used to automatically extract features from molecules. Compared with traditional machine learning methods, the training of stable GNN models requires a large number of training samples and powerful computing power, and uses classifiers to build accurate prediction models of molecular properties, and then build new frameworks for predicting molecular properties. Specifically, a method based on graph neural networks is used here to extract features from the expanded data set, combined with attention mechanisms and gating mechanisms, to improve the model's attention and accuracy to key features.
[0035] S204, constructing a prediction model based on an asynchronous parallel high-order neural network classification model according to input data to predict the water level of the pumping station; In this embodiment, it should be noted that the use of a high-order neural network algorithm based on asynchronous parallelism can not only capture complex patterns and relationships in the data, but also significantly improve computing efficiency to adapt to complex large-scale data set processing situations.
[0036] Reference Figure 2 , Figure 3 As shown, in some embodiments, in S202, new sample data is generated based on the original data set according to the improved generative adversarial network, and the new sample data is added to the original data set to obtain an expanded data set, including: S2021. Use sparse coding technology to represent the pump station water level data. Suppose the original data set ,in, Indicates data points, is a dictionary matrix, each column represents a primitive, each data point It is described by formula (2): ; in, is a sparse representation vector, most of the elements are 0, For the Pump station water level data points; S2022, Initialize dictionary ; S2023, iteratively update dictionary based on improved generative adversarial network , in In the iteration, the dictionary The update method of is described by formula (3): ; in, is the loss function, is the learning rate, Express The gradient of It is described by formula (4): ; in, is the loss function of the generator, and the goal is to minimize the following loss: ; is the loss function of the discriminator, and the goal is to minimize the following loss: ; It is described by formula (7): ; S2024, sparse coding solves the sparse representation vector by minimizing the following objective function , which is described by formula (8): ; in, is the regularization parameter, and are the L1 and L2 norms respectively.
[0037] In this embodiment, it should be noted that the sparse coding algorithm is an unsupervised learning method, which is used to find a set of "overcomplete" basis vectors to more efficiently represent sample data. The purpose of the sparse coding algorithm is to find a set of basis vectors that allow us to represent the input vector as a linear combination of these basis vectors. For the sparse coding integration of the generator, a sparse coding mechanism is embedded in the generator, inspired by the principle of catalytic reaction in chemistry, where reactants are converted into products through the minimum energy path. The generator learns how to generate data using the least primitives, thereby improving the quality and diversity of the generated data. Specifically, sparse coding is integrated into the generator to optimize the quality of the generated data. Here, the pump station water level data is represented by sparse coding, and the water level data is trained according to the generative adversarial network, thereby generating new pump station water level data more quickly.
[0038] Reference Figure 3 , Figure 4 As shown, in some embodiments, in S2023, based on the improved generative adversarial network, the dictionary is iteratively updated ,include: S20231. Generative adversarial networks include generators and the discriminator , generator Receive noise vector And generate data , which is described by formula (9): ; in, are the parameters of the generator, noise It is sampled from a multidimensional Gaussian distribution and can be expressed as: ,in, is the identity matrix, is the Gaussian (normal) distribution symbol; S20232, will be generated by the generator Generated data Input to the discriminator In the above example, the authenticity of the input data sample is evaluated, which is expressed by formula (10): ; in, are the parameters of the discriminator, For sample The probability function of being judged as a true sample; S20233. Based on the obtained generator and discriminator, adjust their parameters and optimize them; S20234. The generative adversarial network is trained using the following objective function, described by formula (11): ; in, is the actual data distribution, is the noise distribution, is the expected value symbol.
[0039] In this embodiment, it should be noted that the generator is used to generate new data samples, and the data generated by the generator is verified by the discriminator with the real pump station water level data to ensure the effectiveness of the generated data in improving the model performance. The generative adversarial network is continuously trained to achieve the preset goal through the objective function, and finally new sample data is obtained.
[0040] Reference Figure 4 , Figure 5 As shown, S20233, based on the obtained generator and discriminator, adjust their parameters and optimize them, including: S202331. Integrate sparse coding into the generator, and the sparse coding generator is described by formula (12): ; Generator produces sparse representation ,and for ; S202332. When optimizing the discriminator, the optimization of the discriminator is based on the concept of entropy to increase its discrimination ability. The method of optimizing the entropy of the discriminator is described by formula (13): ; in, is entropy, and are the probability distributions of data and discriminator output respectively; S202333. Generate new data samples based on the generator and verify them through the discriminator. Ensure the effectiveness of the generated data in improving model performance through cross-validation. S202334. According to the preset trained random forest classifier, the generated data is used to train the pump station water level prediction model. According to the loss function of the generator And the loss function of the discriminator Parameters to the generator and the parameters of the discriminator Adjustment is made and described by formulas (14) and (15): , ; in, is the learning rate, which is preset manually. and are the gradients of the generator and discriminator parameters, and is the loss function of the generator and the discriminator.
[0041] In this embodiment, it should be noted that by integrating sparse coding into the generator, the quality of generated data is optimized, the generative adversarial network is continuously trained, and the generated data is used for training the pump station water level prediction model through a preset trained random forest classifier. According to the performance of the model, the generator and the discriminator are continuously adjusted to form a feedback loop to optimize the data generation process, thereby increasing the diversity of training data for the subsequent construction of the prediction model and improving the generalization ability of the model.
[0042] Reference Figure 6 , Figure 7 As shown, S203, a feature extraction method based on a graph neural network is used to extract features from the expanded data set to obtain input data, including: S2031, the graph neural network includes a node generation module and a feature interaction module, the expanded data set is input into the node generation module to extract feature values, and the extracted feature values are sent into the fully connected neural network to learn the attention coefficients of each feature value, and the first K feature values with the largest attention coefficient values are selected as key feature values; S2032. Construct a graph neural network based on key eigenvalues as nodes, and construct an adjacency matrix based on the attention coefficient. Interaction between features is performed through a feature interaction module to obtain feature data after feature extraction.
[0043] In this embodiment, it should be noted that the Graph Neural Network (GNNQ) is a type of deep learning model for processing graph data. It can learn the nodes and edges of the graph and is suitable for tasks of various structures, such as node classification, link prediction, community discovery, etc. The basic structure of the graph neural network usually consists of two parts: Node Embedding: Map each node in the graph to a low-dimensional representation, usually using some linear transformations, nonlinear activation functions and normalization techniques. The purpose of node embedding is to capture the characteristics and local structural information of the node. The second is Graph Convolution, which uses node embedding and graph structure information to update node features, thereby achieving representation learning of the entire graph. Graph convolution operations can generally be regarded as an aggregation operation based on local neighborhood features, while considering node features and local topological structure information. The main purpose of graph convolution is to achieve representation learning of graph structure by updating node embeddings in succession.
[0044] Specifically, the obtained expanded data set is first used to extract feature values through the node generation module of the graph neural network, and the extracted feature values are sent to the fully connected neural network to learn the attention coefficients of each feature value. Then, the graph neural network is constructed, the node features are updated, and the features interact with each other to obtain updated features, thereby obtaining extracted features to improve the accuracy of the subsequent construction of the prediction model.
[0045] In some embodiments, reference Figure 7 , Figure 8 As shown, in S2031, the expanded data set is input into the node generation module to extract eigenvalues, and the extracted eigenvalues are sent to the fully connected neural network to learn the attention coefficients of each eigenvalue, and the eigenvalues with the largest attention coefficients are selected as key eigenvalues, including: S20311. In the node generation module, the eigenvalues are extracted and processed by the fully connected neural network to obtain the weight coefficient of each eigenvalue. The input features are described by formula (16), the weight coefficient of each eigenvalue is described by formula (17), and the processing method of the fully connected neural network is described by formula (18): , , ; in, represent the characteristic dimension and the number of eigenvalues respectively, is the input feature, C is the weight coefficient, is the weight, is bias; S20312, the weight coefficient obtained The attention coefficient is obtained after normalization using the softmax function and is described by formula (19): ; in, is the attention coefficient, For the The weight coefficient of is the sum function; S20313. According to the obtained attention coefficient, select the The maximum attention coefficient is denoted as , and record the index value of the corresponding eigenvalue , get the corresponding eigenvalue according to the index value , that is, the key eigenvalues are obtained.
[0046] In this embodiment, it should be noted that the characteristic values of the expanded data set are extracted to obtain the attention coefficient, and then the top K maximum attention coefficients are selected to obtain the key characteristic values, so as to improve the model's attention and accuracy to the key features for the subsequent construction of the prediction model.
[0047] Reference Figure 7 , Fig. 9 As shown, S2032, a graph neural network is constructed based on key eigenvalues as nodes, and an adjacency matrix is constructed based on the attention coefficient. The features are interacted with each other through a feature interaction module to obtain feature data after feature extraction, including: S20321. Construct a graph neural network based on key eigenvalues as nodes. The constructed graph neural network is ,node Represents the key eigenvalue, each key eigenvalue With a node Related, is a size of The adjacency matrix of ,and Represents known eigenvalues The characteristic value under the condition The probability of occurrence is described by formula (20): ; in, For the The attention coefficient of key feature values; S20322, according to each node , assuming that The hidden state at time , first use the key eigenvalue features initialization The hidden state at At that moment, using a gated recurrent update mechanism, each node in the graph aggregates messages from its neighbors, The hidden state at time t is described by formula (21). The gated loop update mechanism is described by formula (22): ; in, represents the key eigenvalue feature, represents the aggregate feature vector; S20323, based on aggregated feature vector and the previous time step , each node updates its hidden state through the gating mechanism, which is described by formulas (23), (24), (25), and (26): , , , ; in, represents the sigmoid function, is the hyperbolic tangent function, represents element-wise multiplication, are the network parameters to be learned; S20324, when the characteristics With features When the correlation is high, the graph neural network will transfer information between the two, otherwise it will inhibit information transfer. The above features are updated iteratively. Second, generate the final hidden state , that is, The output of the feature extraction module not only encodes the features It not only combines the information of the feature sequence, but also integrates the context information of the feature sequence to perform feature interaction and obtain the feature data after feature extraction.
[0048] In this embodiment, it should be noted that the graph neural network may also include other modules, such as attention mechanisms, pooling layers, and classifiers, to better handle the characteristics and complexity of graph data. Different types of graph neural networks may have different node embedding and graph convolution designs. Among them, the attention mechanism is in neural network learning. Generally speaking, the more parameters a model has, the stronger the model's expressive ability is, and the more information the model stores. However, this will bring about the problem of information overload. By introducing the attention mechanism Q, the information that is more critical to the current task can be focused on among the numerous input information, reducing the attention to other information, and even filtering out irrelevant information. This can solve the problem of information overload and improve the efficiency and accuracy of task processing. The gated fusion mechanism refers to the fusion of information from different sources by weighted sum to improve the effect of the model.
[0049] Specifically, a graph neural network is constructed with key feature values as nodes, and a gating mechanism is introduced into the graph neural network. Information interaction of node features is realized through the gated graph neural network. Combining the attention mechanism and the gating mechanism, the model's attention to and accuracy of key features are improved.
[0050] In some embodiments, reference Figure 2 , Fig.10 As shown, in S204, based on the asynchronous parallel high-order neural network classification model, a prediction model is constructed according to the input data to predict the water level of the pumping station, including: S2041. Initialize model parameters, including the number of neurons, connection weights, and configuration of high-order terms. Input data into the high-order neural network classification model. Each input data is processed by a high-order neuron. The high-order feature mapping transformation of the data is described by formula (27): ; in, is the input data, is a function that maps input data to a high-dimensional space, is the weight matrix, is a nonlinear activation function, High-dimensional mapping function, high-dimensional mapping function It can be expressed as: ; in, Represents input features of order item; S2042. Based on the processing of input data, the calculation of different departments of the network is performed in an asynchronous parallel manner to process and learn data faster, and the training model is continuously updated to build a prediction model. The asynchronous parallel weight update method is described by formulas (28) and (29). The gradient of the error function in the asynchronous parallel weight update is It is described by formula (30): , , ; in, is the current weight, is the learning rate, is the change in weight, and Based on the error function The gradient and momentum terms of Based on the predicted output The actual output The function of the error between is the error function over the weights The partial derivative of is used to guide the update of weights; S2043. According to the performance of the model during the training process, the learning rate is dynamically adjusted to ensure the stability and efficiency of convergence. The adaptive learning rate adjustment method is described by formula (31). The partial derivative of the learning rate in the adaptive learning rate adjustment is The calculation method of is described by formula (32): , ; in, is the learning rate adjustment factor, It is the partial derivative of the error with respect to the learning rate, which is used to dynamically adjust the learning rate to optimize the training process. This partial derivative measures the error with respect to the learning rate The situation that changes with the changes of is used to dynamically adjust the learning rate to achieve better training results.
[0051] In this embodiment, it should be noted that the high-order neural network classification model based on asynchronous parallelism uses a high-dimensional mapping function , increasing the model's ability to capture complex feature relationships. In an example, is a two-dimensional feature vector ,So include Items such as . Calculations are performed independently according to different parts of the network to further improve the data processing and learning speed, and the model parameters are continuously trained and updated to build a prediction model that can handle large-scale data sets with high prediction accuracy.
[0052] In some embodiments, reference Figure 2 , Fig.11 As shown, in S204, based on the asynchronous parallel high-order neural network classification model, a prediction model is constructed according to the input data to predict the water level of the pumping station, and also includes: S2044. According to the data characteristics and learning process of the model, the connections between neurons are dynamically adjusted to increase the flexibility and adaptability of the model through dynamic connection reorganization. The dynamic connection reorganization method is described by formula (33), and the adjustment factor in the dynamic connection reorganization is described by formula (34): , ; in, is the original connection weight, It is an adjustment factor calculated based on network performance feedback and is used to dynamically adjust the connections between neurons. is the adjustment factor, is the error function for a particular weight The partial derivative of is used to calculate the adjustment amount of each connection weight; S2045. Based on the difference between the predicted result and the actual water level, the network parameters are continuously adjusted to optimize the prediction accuracy, which is described by formula (35): ; in, is the water level at the pumping station predicted by the model, is the actual water level, is the total error, which is used as feedback for model optimization.
[0053] In this embodiment, it should be noted that according to the high-order neural network combined with dynamic connection reorganization and feedback mechanism optimization, the constructed model can better adapt to changes in data characteristics and learning process, improve the flexibility and adaptability of the model, and can cope with water level prediction needs in complex environments with large amounts of data.
[0054] Specifically, according to the feedback mechanism optimization, for samples, measuring accuracy The calculation method can be expressed as: ; in, is the number of samples in the dataset, and They are The predicted and actual pump station water levels of each sample are compared to ensure that the prediction error of each sample is taken into account and the prediction accuracy of the prediction model is improved.
[0055] The implementation principle of this embodiment is as follows: the water level data of the pumping station is collected and preprocessed to obtain the original data set, new samples are generated based on the improved generative adversarial network according to the original data set to obtain an expanded data set, the diversity of the training data is increased, and thus the generalization ability of the model is improved, and then the feature extraction method of the graph neural network is used to extract features from the obtained expanded data set to improve the model's attention and accuracy to key features, and the input data for constructing the prediction model is obtained, and the prediction model is constructed according to the input data using an asynchronous and parallel high-order neural network, which greatly improves the processing speed of large-scale data sets, and through dynamic connection reorganization and feedback mechanism optimization, the prediction model can better adapt to changes in data characteristics and learning process, improve the flexibility and adaptability of the model, and can more efficiently and accurately predict the water level of the pumping station to meet the challenges brought by urbanization and climate change.
[0056] Reference Fig.12 As shown, the present application also provides a pump station water level prediction device, which can include: a collection module, a data processing module, a feature extraction module, and a prediction module. The main functions of each component module are as follows: The acquisition module 301 is used to acquire the water level data of the pump station, perform data preprocessing on the water level data, and obtain the original data set; A data processing module 302 is used to generate new sample data based on the original data set according to the improved generative adversarial network, and add the new sample data to the original data set to obtain an expanded data set; A feature extraction module 303 is used to extract features from the expanded data set based on a feature extraction method of a graph neural network to obtain input data; The prediction module 304 is used to construct a prediction model based on an asynchronous parallel high-order neural network classification model according to input data to predict the water level of the pumping station.
[0057] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium.
[0058] like Fig.13 , is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0059] like Fig.13 As shown, the device 600 includes a computing unit 601, a ROM 602, a RAM 603, a bus 604, and an input / output (I / O) interface 605. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via the bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0060] The computing unit 601 may perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 602 or the computer instructions loaded from the storage unit 608 to the random access memory (RAM) 603. The computing unit 601 may be various general and / or special processing components with processing and computing capabilities. The computing unit 601 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application may be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 608.
[0061] RAM 603 may also store various programs and data required for the operation of device 600. Part or all of a computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609.
[0062] The input unit 606, output unit 607, storage unit 608 and communication unit 609 in the device 600 can be connected to the I / O interface 605. The input unit 606 can be, for example, a keyboard, a mouse, a touch screen, a microphone, etc. The output unit 607 can be, for example, a display, a speaker, an indicator light, etc. The device 600 can exchange information, data, etc. with other devices through the communication unit 609.
[0063] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of the present application, rather than all the components shown in the figure.
[0064] Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations of them.
[0065] Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations of them.
[0066] The computer-readable storage medium provided in the present application may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0067] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for predicting water level at a pumping station. It is characterized in that The following steps are involved: Collecting water level data of the pump station, and performing data preprocessing on the water level data to obtain an original data set; Generate new sample data based on the original data set according to the improved generative adversarial network, and add the new sample data to the original data set to obtain an expanded data set; Performing feature extraction on the expanded data set based on a feature extraction method of a graph neural network to obtain input data; Based on the asynchronous parallel high-order neural network classification model, a prediction model is constructed according to the input data to predict the water level of the pumping station.
2. The pump station water level prediction method according to claim 1, It is characterized in that The step of generating new sample data based on the original data set according to an improved generative adversarial network, and adding the new sample data to the original data set to obtain an expanded data set includes: The pumping station water level data is represented according to the sparse coding technology; Suppose the original data set {cX 1 , cX 2 , ..., cX n }, where cX i represents the i-th data point; Let cD be the dictionary matrix, each column represents a primitive, and each data point cX i It is described by formula (2): cX i ≈cD(cA i ) (2) Among them, cA i is a sparse representation vector, most of the elements are 0, cX i is the water level data point of the i-th pump station; Initialize dictionary cD (0) ; Based on the improved generative adversarial network, the dictionary cD is iteratively updated. In the kth iteration, the updating method of the dictionary cD is described by formula (3): Where L is the loss function, α is the learning rate, Indicates cD (k) The gradient of The loss function L is described by formula (4): L=L cG +L cD (4) Among them, L cG is the loss function of the generator, and the goal is to minimize the following loss: L cD is the loss function of the discriminator, and the goal is to minimize the following loss: Gradient of dictionary It is described by formula (7): Sparse coding solves the sparse representation vector cA by minimizing the following objective function i , described by formula (8): where λ is the regularization parameter, ||·|| 1 and ||·|| 2 are the L1 and L2 norms respectively.
3. The pump station water level prediction method according to claim 2, It is characterized in that The iterative updating of the dictionary cD based on the improved generative adversarial network specifically includes: The improved generative adversarial network includes a generator cG and a discriminator cD; The generator cG receives the noise vector cz and generates data It is described by formula (9): Where cθ g is the parameter of the generator, and the noise cz is sampled from a multidimensional Gaussian distribution and can be expressed as: Where I is the identity matrix, N is the Gaussian (normal) distribution symbol; The data generated by the generator cG Input to the discriminator cD, and evaluate the authenticity of the input data sample, which is expressed by formula (10): cD(cX;cθ d )=pr(cX) (10) Where cθ d is the parameter of the discriminator, pr() is the probability function of the sample cX being determined as a true sample; based on the obtained generator and the discriminator, adjust their parameters and optimize them; The improved generative adversarial network is trained by the following objective function, which is described by formula (11): Among them, p data is the real data distribution, p z is the noise distribution and E is the expected value symbol.
4. The pump station water level prediction method according to claim 3, It is characterized in that The generator and the discriminator are adjusted based on the obtained parameters to optimize them, including: Sparse coding is integrated into the generator, and the sparse coding generator is described by formula (12): The generator generates a sparse representation cA, and is cD(cA); When the discriminator is optimized, the optimization of the discriminator is based on the concept of entropy to increase its discrimination ability. The discriminator entropy optimization method is described by formula (13): cH(cD,cX)=-∑ cX p(cX)log p(cD(cX)) (13) Wherein, cH is entropy, P(cX) and p(cD(cX)) are the probability distributions of data and discriminator output, respectively; new data samples are generated based on the generator and verified by the discriminator, and the effectiveness of the generated data in improving the model performance is ensured by the cross-validation method; According to the preset trained random forest classifier, the generated data is used to train the pump station water level prediction model. According to the generator's loss function L cG And the loss function L of the discriminator cD The parameters cθ of the generator g and the discriminator parameters cθ d Adjustment is made and described by formulas (14) and (15): Among them, β is the learning rate, which is preset manually. and are the gradients of the generator and discriminator parameters, respectively, and L cG and L cD is the loss function of the generator and the discriminator.
5. The pump station water level prediction method according to claim 1, It is characterized in that The feature extraction method based on graph neural network extracts features from the expanded data set to obtain input data, including: The graph neural network includes a node generation module and a feature interaction module. The expanded data set is input into the node generation module to extract feature values, and the extracted feature values are sent to the fully connected neural network to learn the attention coefficients of each feature value, and the first K feature values with the largest attention coefficients are selected as key feature values; A graph neural network is constructed based on the key eigenvalues as nodes, and an adjacency matrix is constructed based on the attention coefficient. The features are interacted with each other through the feature interaction module to obtain feature data after feature extraction.
6. The pump station water level prediction method according to claim 5, It is characterized in that The step of inputting the expanded data set into the node generation module to extract eigenvalues, and sending the extracted eigenvalues into a fully connected neural network to learn the attention coefficients of the eigenvalues, and selecting the eigenvalues with the largest attention coefficients as the key eigenvalues, includes: In the node generation module, the eigenvalues are extracted and processed by the fully connected neural network to obtain the weight coefficient of each eigenvalue. The input features are described by formula (16), the weight coefficient of each eigenvalue is described by formula (17), and the processing method of the fully connected neural network is described by formula (18): x={x 1 ...,x r ...,x R }∈R B×R (16), C={C 1 ,...,C r ,...,C R } (17), C=Wx+b (18), Among them, B and R represent the feature dimension and the number of eigenvalues respectively, x is the input feature, C is the weight coefficient, W is the weight, and b is the bias; The obtained weight coefficient C is normalized using the softmax function to obtain the attention coefficient, which is described by formula (19): in, is the attention coefficient, C r is the weight coefficient of the rth one, ∑ is the summation function; According to the obtained attention coefficient, select the first K maximum attention coefficients, denoted as a k ={a 1 , ..., a K }, and record the corresponding feature value index ID = {id 1 , ..., id K }, according to the index value, the corresponding eigenvalue F = {f 1 , ..., f K }, that is, the key eigenvalue is obtained.
7. The pump station water level prediction method according to claim 6, It is characterized in that The step of constructing a graph neural network based on the key feature values as nodes, constructing an adjacency matrix based on the attention coefficient, and performing interaction between features through the feature interaction module to obtain feature data after feature extraction includes: A graph neural network is constructed based on the key feature values as nodes. The constructed graph neural network is G = (V, A), and the node V = {v 1 , ..., v k , ..., v K } represents the key eigenvalue, each key eigenvalue k is associated with a node v k ∈V, A is an adjacency matrix of size K×K, whose elements are A kk′ , and A kk′ represents the probability of occurrence of eigenvalue k under the condition of known eigenvalue k', which is described by formula (20): Among them, a k is the attention coefficient of the kth key feature value; According to each node v k ∈V, assuming that its hidden state at time t is First, use the key eigenvalue feature f k Initialize the hidden state at t = 0. At time t, use the gated loop update mechanism. Each node in the graph aggregates messages from its neighbors. The hidden state at t = 0 is described by formula (21). The gated loop update mechanism at time t is described by formula (22): Among them, f k represents the key eigenvalue feature, represents the aggregate feature vector; Based on the aggregated feature vector and the previous time step Each node updates its hidden state through a gating mechanism, which is described by formulas (23), (24), (25), and (26): Among them, σ() represents the sigmoid function, tanh() is the hyperbolic tangent function, ⊙ represents the element-wise multiplication operation, and Wr, Ur, W, and U are the network parameters to be learned; When the feature v k With feature v k ′ is highly correlated, the graph neural network will transfer information between the two, otherwise it will inhibit information transfer. The above feature update iterations T times to generate the final hidden state That is, The output of the feature extraction module is composed to obtain the feature data after feature extraction.
8. The pump station water level prediction method according to claim 1, It is characterized in that The asynchronous parallel-based high-order neural network classification model constructs a prediction model based on the input data to predict the water level of the pumping station, including: Initialize the model parameters, including the number of neurons, connection weights, and configuration of high-order terms; input the input data into the high-order neural network classification model, each of the input data is processed by a high-order neuron, and the high-order feature mapping transformation of the data is described by formula (27): eY=f(W·h(eX) T ) (27), Wherein, X is the input data, h(eX) is a function that maps the input data to a high-dimensional space, W is a weight matrix, f is a nonlinear activation function, and h(eX) is a high-dimensional mapping function. The high-dimensional mapping function h(eX) can be expressed as: h(eX)=[eX,eX 2 ,eX 3 ,...,eX n ] Among them, eX n Represents the n-order term of the input feature eX; Based on the processing of the input data, the calculation of different departments of the network is performed in an asynchronous parallel manner, so as to process and learn data more quickly and continuously update the training model to build a prediction model. The asynchronous parallel weight update method is described by formulas (28) and (29). The gradient of the error function in the asynchronous parallel weight update is It is described by formula (30): W new =W+η·△W (28), Where W is the current weight, η is the learning rate, and ΔW is the change in weight; and α·ΔW prev They are based on the gradient and momentum terms of the error function E(W); E(W) is based on the predicted output eY predicted The actual output eY actual The function of the error between is the partial derivative of the error function with respect to the weight W, which is used to guide the update of the weight; according to the performance of the model during the training process, the learning rate is dynamically adjusted to ensure the stability and efficiency of convergence. The adaptive learning rate adjustment method is described by formula (31). The partial derivative of the learning rate in the adaptive learning rate adjustment is The calculation method of is described by formula (32): Among them, γ is the learning rate adjustment factor, It is the partial derivative of the error with respect to the learning rate, which is used to dynamically adjust the learning rate to optimize the training process. This partial derivative measures the change of the error with the change of the learning rate η, and is used to dynamically adjust the learning rate to achieve better training results.
9. The pump station water level prediction method according to claim 8, It is characterized in that The asynchronous parallel-based high-order neural network classification model constructs a prediction model based on the input data to predict the water level of the pumping station, and also includes: According to the data characteristics and learning process of the model, the connections between neurons are dynamically adjusted to increase the flexibility and adaptability of the model through dynamic connection reorganization. The dynamic connection reorganization method is described by formula (33), and the adjustment factor in the dynamic connection reorganization is described by formula (34): Among them, W ij is the original connection weight, δ ij It is an adjustment factor calculated based on network performance feedback and is used to dynamically adjust the connections between neurons. β is the adjustment coefficient. is the error function for a particular weight W ij The partial derivative of is used to calculate the adjustment amount of each connection weight; Based on the difference between the predicted results and the actual water level, the network parameters are continuously adjusted to optimize the prediction accuracy, which is described by formula (35): E total =∑(eP predicted -eP actual ) 2 (35), Among them, eP predicted is the pumping station water level predicted by the model, eP actual is the actual water level, E total is the total error, which is used as feedback for model optimization.
10. A pump station water level prediction device, It is characterized in that include: The acquisition module is used to collect the water level data of the pump station, and perform data preprocessing on the water level data to obtain an original data set; A data processing module, used to generate new sample data based on the original data set according to the improved generative adversarial network, and add the new sample data to the original data set to obtain an expanded data set; A feature extraction module, used to extract features from the expanded data set based on a feature extraction method of a graph neural network to obtain input data; The prediction module is used to construct a prediction model based on an asynchronous parallel high-order neural network classification model according to the input data to predict the water level of the pumping station.
Citation Information
Patent Citations
Internet of Things-oriented accumulated water level prediction method based on long-short-term memory network
CN111222698A
Drainage basin multi-point water level prediction and early warning method based on generative adversarial network
CN115688579A
Basin flood prediction method based on artificial intelligence hydrological model
CN116989749A
Water level prediction device in sewer pipe, water level prediction method in sewer pipe, and water level prediction program in sewer pipe
JP2019096255A
Method Of Predicting Amount Of Precipitation Based On Deep Learning
US20220268964A1
Cited By
Underground water level monitoring method and system based on artificial intelligence
CN119476632A
