A method, device, electronic device and storage medium for predicting pump group operation
By simulating the working strategies of different pump groups in the virtual environment of the pump room, predicting water supply and consumption data, and optimizing the energy efficiency of the pump group, the problem of energy waste in traditional constant pressure water supply is solved, and the energy efficiency of the pump group is maximized and the cost of electricity is maximized. of reduction.
Patent Information
- Application Number
- CN202211532462.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-12-01
AI Technical Summary
The traditional constant pressure water supply method wastes energy under low flow conditions, making it difficult to optimize the energy efficiency of the pump unit.
By acquiring the pump room virtual environment and multiple single pump models, different pump group working strategies are generated and simulated, water supply and consumption data are predicted, and the target pump group working strategy is determined to optimize the energy efficiency of the pump group.
While ensuring that the output flow meets demand, the energy efficiency of the pump unit is maximized and energy consumption and electricity costs are reduced.
Smart Images

Figure CN115859808B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of urban water supply pipe scheduling, and in particular to a method, device, electronic equipment and storage medium for predicting the operation of a pump group. Background Art
[0002] In accordance with the Ministry of Housing and Urban-Rural Development's carbon peak construction requirements, reducing unit water supply energy consumption, controlling pipeline leakage to below 8%, and realizing intelligent pipelines are important tasks for water affairs in the near future.
[0003] At present, constant pressure water supply is usually adopted. Although the traditional constant pressure water supply method can ensure that the water supply meets the standards, it also causes some energy waste, especially the waste of head under low flow. Summary of the invention
[0004] The present invention provides a method, device, electronic equipment and storage medium for predicting the operation of a pump group, so as to achieve the optimization of the energy efficiency of the pump group.
[0005] In a first aspect, an embodiment of the present invention provides a method for predicting the operation of a pump group, comprising:
[0006] Acquire a pump room virtual environment, wherein the pump room virtual environment includes a plurality of single pump models;
[0007] Acquire multiple pump group working strategies, and generate a working sequence based on the multiple pump group working strategies; wherein the pump group working strategy includes working parameters of each single pump;
[0008] Based on the working sequence, the working environment of the pump room is simulated in sequence to obtain the predicted water supply data and the predicted consumption data corresponding to the working strategy of each pump group;
[0009] The working strategy of each pump group is determined based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy.
[0010] Optionally, the single pump model is used to perform prediction processing on the input working parameters and state parameters to obtain the single pump water supply data at the prediction time; wherein the working parameters include the working frequency, and the state parameters include the current water level and the current flow rate;
[0011] The single pump model is generated in a manner including:
[0012] An initial single-pump model is created, historical training data is acquired to train the initial single-pump model to obtain a single-pump model, and the trained single-pump model is verified based on verification data of a unit period and total verification data of multiple periods.
[0013] Optionally, the operating parameters of the single pump include an operating frequency in a working state and idle data in an idle state;
[0014] Generating a working sequence based on the multiple pump group working strategies includes:
[0015] Based on the ranking of each single pump, the working parameters in the working strategy of each pump group are formed into a data group;
[0016] A working sequence is formed based on the data groups corresponding to the working strategies of each pump group.
[0017] Optionally, the working simulation of the pump room virtual environment is performed in sequence based on the working sequence to obtain the predicted water supply data and predicted consumption data corresponding to the working strategy of each pump group, including:
[0018] Based on any data group in the working sequence, configuring the working parameters of each single pump model;
[0019] Determine the single pump consumption data corresponding to each of the single pump models based on the working parameters corresponding to the data group, and determine the predicted consumption data based on the sum of the single pump consumption data corresponding to each of the single pump models;
[0020] Based on the single pump models in the pump room virtual environment, the working parameters and state parameters are predicted and processed respectively to obtain the single pump water supply data output by each single pump model, and the predicted water supply data is determined based on the sum of the single pump water supply data output by each single pump model.
[0021] Optionally, determining the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy includes:
[0022] Obtaining a target water supply, determining the predicted water supply data corresponding to each pump group working strategy based on the target water supply, and determining a candidate pump group working strategy whose predicted water supply data is greater than the target water supply;
[0023] The candidate pump group working strategies are sorted based on the predicted consumption data, and the candidate pump group working strategy corresponding to the minimum value of the predicted consumption data is determined as the target pump group working strategy.
[0024] Optionally, obtaining a target water supply includes:
[0025] Acquire the water supply type, water supply date and water supply period, and set tag data according to the water supply type, the water supply date and the water supply period, wherein the tag corresponding to the water supply type includes a residential type tag and an industrial type tag, the tag corresponding to the water supply date includes a working day tag and a holiday tag, and the tag corresponding to the water supply period includes a peak tag, a valley tag and a normal tag;
[0026] The historical water supply data within a preset historical time period is obtained, and the historical water supply data and the marked data are predicted based on the water supply prediction model to obtain the target water supply.
[0027] Optionally, after determining the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy, the method further includes:
[0028] Determining the operating parameter range of each single pump based on the operating parameters of each single pump in the target pump group operating strategy;
[0029] Based on the preset strategy determination model, the operating parameter range and target water supply of each single pump are predicted and processed to obtain the target operating parameters of each single pump, wherein the target operating parameters of each single pump constitute the updated pump group operating strategy.
[0030] In a second aspect, an embodiment of the present invention further provides a pump group operation prediction device, comprising:
[0031] A pump room virtual environment acquisition module, used to acquire a pump room virtual environment, wherein the pump room virtual environment includes a plurality of single pump models;
[0032] A working sequence generation module, used for acquiring a plurality of pump group working strategies, and generating a working sequence based on the plurality of pump group working strategies; wherein the pump group working strategy includes working parameters of each single pump;
[0033] A working simulation module, used to perform working simulation on the virtual environment of the pump room in sequence based on the working sequence, and obtain predicted water supply data and predicted consumption data corresponding to the working strategy of each pump group;
[0034] The working strategy acquisition module is used to determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain the target pump group working strategy.
[0035] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0036] at least one processor; and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the pump group operation prediction method described in any one of the first aspects.
[0039] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the pump group operation prediction method described in any one of the first aspects when executed.
[0040] The present invention obtains a pump room virtual environment, which includes multiple single pump models, obtains multiple pump group working strategies, generates a working sequence based on the multiple pump group working strategies, wherein the pump group working strategy includes the working parameters of each single pump, performs working simulation on the pump room virtual environment in sequence based on the working sequence, obtains the predicted water supply data and predicted consumption data corresponding to each pump group working strategy, determines each pump group working strategy based on the predicted water supply data and predicted consumption data, and obtains the target pump group working strategy. Under the condition of ensuring that the output flow of the pump group meets the demand, the energy efficiency of the pump group is optimized, and the effect of saving energy consumption and reducing electricity costs is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 is a flow chart of a method for predicting the operation of a pump group provided in the first embodiment of the present invention;
[0043] Figure 2 It is a structural schematic diagram of a pump group operation prediction device provided in the second embodiment of the present invention;
[0044] Figure 3 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] Embodiment 1
[0048] Figure 1 This is a flow chart of a method for predicting the operation of a pump group provided in the first embodiment of the present invention. This embodiment is applicable to the case of predicting the operation of a pump group. The method can be executed by a pump group operation prediction device. The pump group operation prediction device can be implemented in the form of hardware and / or software. The pump group operation prediction device can be configured in electronic devices such as computers, servers, mobile terminals, etc. Figure 1 As shown, the method includes:
[0049] S110, obtaining a pump room virtual environment, where the pump room virtual environment includes multiple single pump models.
[0050] Among them, the pump room virtual environment can be a simulation scene of the actual working environment of the pump room formed by a combination of multiple single pump models. The pump room virtual environment can be created according to the actual environment of the pump room. Exemplarily, the number of single pump models in the pump room virtual environment is determined according to the number of single pumps included in the actual environment of the pump room. In some embodiments, the multiple single pump models included in the pump room virtual environment can be the same, and are trained based on the same historical water supply data. In some embodiments, the multiple single pump models included in the pump room virtual environment are different, for example, the model types of each single pump model are different, or the model types of each single pump model are the same, but the model parameters are different. The multiple single pump models can be trained based on the historical water supply data of each single pump in the actual environment of the pump room, further improving the authenticity of the simulation of the pump room virtual environment. The single pump model can be a model that can reflect the working data of a single pump obtained by training based on preset conditions, for example, a logistic regression model, an artificial neural network model, a decision tree model, etc., which is not specifically limited here.
[0051] Optionally, the single pump model is used to perform predictive processing on input working parameters and state parameters to obtain single pump water supply data for a predicted time.
[0052] The working parameters may include the working frequency, and the state parameters may include the current water level and the current flow rate. The prediction time may be set according to the actual situation. The single pump water supply data may be the total flow rate of water in the single pump within the prediction time.
[0053] Optionally, the generation method of the single pump model may include: creating an initial single pump model, obtaining historical training data (i.e., historical water supply data) to train the initial single pump model, obtaining a single pump model, and verifying the trained single pump model based on verification data of a unit time period and total verification data of multiple time periods.
[0054] The initial single pump model can be a blank model that has not been trained with data. The model parameters in the blank model can be random parameters or preset initial parameters, and the above model parameters need to be further adjusted through training. The historical training data can be the actual working data of the initial single pump model in the historical working tasks corresponding to the single pump in the pump room. Correspondingly, the historical training data can be extracted from the work log of the pump room, etc.
[0055] The unit time period can be a time period set by the simulation personnel according to the actual situation, for example, every second, every minute, every hour, etc. The verification data can be the actual working data of the single pump corresponding to the initial single pump model in the pump room in the unit time period of the historical work task, for example, the working frequency of the single pump per minute, the flow rate of the single pump per minute, etc. The total verification data of multiple time periods can be the accumulation of verification data of multiple unit time periods, for example, the working frequency of the single pump within 10 minutes, the flow rate of the single pump within 10 minutes, etc.
[0056] Verification of the trained single pump model can be carried out by comparing the data output by the trained single pump model with the actual working data output by the corresponding single pump in the pump room in historical working tasks. If the absolute value of the difference between the two is less than a preset threshold, it is judged that the trained single pump model meets the requirements.
[0057] Exemplarily, the single pump model can be obtained by first defining the required prediction model, setting the activation function for activation, obtaining the format used by the single pump model when working, compiling and fitting the defined single pump model, adjusting the model parameters in the prediction model through the historical training data set, and evaluating the single pump model according to the verification data. If the evaluation is satisfactory, the training of the prediction model is completed. Among them, the activation function can be a regression function, a binary classification function, a multi-class classification function, etc., which is not specifically limited in the present invention.
[0058] By training and verifying the single pump model, it is possible to predict the input single pump working parameters and state parameters and obtain the single pump water supply data at the predicted time, thereby achieving a more accurate restoration of the real working scene.
[0059] S120, obtaining multiple pump group working strategies, and generating a working sequence based on the multiple pump group working strategies; wherein the pump group working strategy includes working parameters of each single pump.
[0060] The pump group working strategy can be a combination of multiple groups of single pump working parameters given by the simulator according to the actual situation. The working sequence can be a data group sequence of multiple pump group working strategies.
[0061] Optionally, the working parameters of a single pump may further include a working frequency in a working state and idle data in an idle state.
[0062] It should be noted that there are multiple single pumps in the pump room. In a pump group working strategy, multiple single pumps can be freely combined, that is, there are single pumps that need to work, and there may be single pumps that do not need to work. Correspondingly, the working parameters of the single pump that needs to work correspond to the working frequency under the working state, and the working parameters of the single pump that does not need to work correspond to empty data.
[0063] Optionally, generating a working sequence based on multiple pump group working strategies may include: based on the sorting of each single pump, forming a data group with working parameters in each pump group working strategy, and forming a working sequence based on the data groups corresponding to each pump group working strategy.
[0064] The order of the individual pumps may be the actual position order of the individual pumps in the pump room. The data set may be a data set of all individual pumps included in the pump group working strategy.
[0065] Through the production work sequence, the simulation personnel can clearly understand the number and data of pump group working strategies that need to be simulated. By simulating the working strategies of each pump group, the optimal pump group working strategy is recommended to the staff based on the simulation results.
[0066] S130, based on the working sequence, the virtual environment of the pump room is simulated in sequence to obtain the predicted water supply data and predicted consumption data corresponding to the working strategy of each pump group.
[0067] Among them, the work simulation of the pump room virtual environment based on the work sequence can be a data group formed by traversing the working parameters in each group of pump group working strategies in the work sequence, and configuring the data group in the preset single pump model to perform work simulation on the input working parameters and state parameters. The predicted water supply data can be the water supply generated after the work simulation of the input working parameters and state parameters. The predicted consumption data can be the consumption data generated after the work simulation of the input working parameters, such as power consumption data.
[0068] Optionally, based on any data group in the working sequence, the working parameters of each single pump model are configured. Accordingly, any data group in the working sequence, i.e., any pump group working strategy includes the working parameters of each single pump, and the working parameters of each single pump are respectively configured in the corresponding single pump model to form a pump room virtual environment.
[0069] The single pump consumption data corresponding to each single pump model is determined based on the working parameters corresponding to the data group, and the predicted consumption data is determined based on the sum of the single pump consumption data corresponding to each single pump model.
[0070] The single pump consumption data may be the power consumption data of a single pump. Correspondingly, the predicted consumption data may be the sum of the power consumption data of each single pump included in any pump group working strategy. For example, if the consumption data of each single pump are "1, 2, 3" respectively, the predicted consumption data may be "6". This is only for illustration and not for specific limitation.
[0071] Based on each single pump model in the virtual environment of the pump room, the working parameters and state parameters are predicted and processed respectively to obtain the single pump water supply data output by each single pump model, and the predicted water supply data is determined based on the sum of the single pump water supply data output by each single pump model.
[0072] The single pump water supply data may be the water supply of a single pump. Correspondingly, the predicted water supply data may be the sum of the water supply of each single pump included in any pump group working strategy. For example, if the water supply data of each single pump are "1, 2, 3" respectively, the predicted water supply data may be "6". This is only for illustration and not for specific limitation.
[0073] By predicting the single pump data in each pump group working strategy and simply calculating it to obtain the predicted water supply data and predicted consumption data, the amount of calculation is reduced and the simulation efficiency is improved.
[0074] S140. Determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy.
[0075] The determination process of each pump group working strategy may be a process of sorting and screening each pump group working strategy based on the predicted water supply data and the predicted consumption data. The target pump group working strategy may be a pump group working strategy that meets the preset requirements and the predicted consumption data meets the preset consumption conditions. The target pump group working strategy may be one or more. For example, the preset consumption condition may be that the predicted consumption data is less than a preset threshold, or the predicted consumption data is the minimum, etc.
[0076] Optionally, the target pump group working strategy may be obtained by: obtaining the target water supply, judging the predicted water supply data corresponding to each pump group working strategy based on the target water supply, determining the candidate pump group working strategy whose predicted water supply data is greater than the target water supply, sorting the candidate pump group working strategies based on the predicted consumption data, and determining the candidate pump group working strategy corresponding to the minimum value of the predicted consumption data as the target pump group working strategy.
[0077] The target water supply may be the user's water demand. Exemplarily, the user's water demand is obtained, and the predicted water supply data output after the pump group working strategy completes the simulation is compared with the user's water demand. If the predicted water supply data is greater than the user's water demand, the pump group working strategy is determined to be a candidate pump group working strategy, and the working sequence is traversed to select all pump group working strategies that meet the predicted water supply data greater than the user's water demand, and compare their predicted consumption data, and select a group of pump group working strategies with the smallest predicted consumption data as the target pump group working strategy.
[0078] The energy efficiency of the pump group can be optimized while ensuring that the output flow of the pump group meets the demand, thereby saving energy and reducing electricity costs.
[0079] Optionally, obtaining the target water supply volume may include: obtaining a water supply type, a water supply date, and a water supply period, and setting marking data according to the water supply type, the water supply date, and the water supply period.
[0080] Among them, the marks corresponding to the water supply type include a residential type mark and an industrial type mark, the marks corresponding to the water supply date include a weekday mark and a holiday mark, and the marks corresponding to the water supply period include a peak mark, a valley mark and a normal mark.
[0081] The historical water supply data within a preset historical time period is obtained, and the historical water supply data and the marked data are predicted and processed based on the water supply prediction model to obtain the target water supply.
[0082] Among them, the water supply prediction model may include but is not limited to a machine learning model, a logistic regression model, an artificial neural network model, a decision tree model, etc., which are not specifically limited here. Accordingly, the method for obtaining the water supply prediction model can refer to the method for obtaining the single pump model mentioned above, so that the water supply prediction model can satisfy the requirement of predicting and processing the historical water supply data and the marked data based on the water supply prediction model to obtain the target water supply, which will not be repeated here.
[0083] The user's future water demand, i.e. the target water supply, is predicted based on historical data. By refining the regional user types, an accurate estimation of water consumption is achieved, further reducing the power consumption of the pump station.
[0084] Optionally, after obtaining the target pump group working strategy, you can also: determine the working parameter range of each single pump based on the working parameters of each single pump in the target pump group working strategy, determine the model based on the preset strategy, predict the working parameter range of each single pump and the target water supply, and obtain the target working parameters of each single pump.
[0085] Among them, the range of each single pump working parameter can be the error allowable range of each single pump working parameter. The preset strategy determination model can be obtained through the PPO algorithm. Correspondingly, the target working parameters of each single pump constitute the updated pump group working strategy. For example, multiple pump group working strategies output by the user are obtained in advance, and the working simulation of the above multiple pump group working strategies is performed, and the target pump group working strategy is obtained based on the predicted water supply data and predicted consumption data corresponding to each pump group working strategy. The target pump group working strategy can be "A1, B2, C3", that is, after the pump configuration of the target pump group working strategy is completed, there are three single pumps "A, B, C" in the room virtual environment that need to work, and the working parameters of single pump "A" are "parameter 1", the working parameters of single pump "B" are "parameter 2", and the working parameters of single pump "C" are "parameter 3". The number of single pumps and the working parameters of each single pump in the target pump group working strategy here are only examples. Obtain the preset error allowable range of each single pump working parameter, expand the working parameters of the above-mentioned single pumps, and obtain the single pump working parameter range. For example, the working parameter range of single pump "A" can be parameter 1 ± error value, and the working parameter range of single pump "B" can be parameter 2 ± error value, and so on. The error allowable range here, that is, the error value, can be determined according to the screening requirements and is not limited here. By determining the working parameter range of each single pump, a continuous data range is formed, and the working parameter screening is further performed based on the continuous single pump working parameter range, that is, the target working parameters of the single pump are determined. In this scheme, by setting a plurality of discrete pump group working strategies, the optimal pump group working strategy is screened among the plurality of discrete pump group working strategies, that is, coarse-grained working parameter screening. Based on the screened target pump group working strategy, a continuous single pump working parameter range is determined, and fine-grained screening is performed in the above-mentioned continuous single pump working parameter range to determine the target working parameters of each single pump, thereby improving the accuracy of the working parameters of each single pump.
[0086] In this solution, the single pump operating parameter range is processed by a preset strategy determination model to obtain the target operating parameters of each single pump output by the strategy determination model. The preset strategy determination model is obtained by PPO algorithm training, and the preset strategy determination model is used to predict the operating parameter range and target water supply of each single pump. The operating parameters of each single pump that achieve the minimum power consumption (predicted consumption data) under the premise of meeting the user's water demand (target water supply) are updated as the target operating parameters, so that the flow rate after the target pump group working strategy configuration can meet the target flow rate in real time while the predicted consumption data is minimized.
[0087] By predicting the working parameter range and target water supply of each single pump, the target working parameters of each single pump are obtained, so that the working parameters and state parameters of the single pump can meet the target parameter data in actual work in a timely manner.
[0088] Exemplarily, the loss function of the PPO algorithm training strategy is:
[0089]
[0090] In order to prevent excessive deviation after the policy update, PPO truncates the ratio of the new and old policy distributions. Where θ represents the parameters of the neural network in the policy network. Represents the ratio of the action distribution of the strategy output before and after optimization, which measures the degree of change of the strategy after optimization. ∈ is a hyperparameter to be set, which is used to define the range of strategy improvement in one training, usually set to about 0.2. Advantage function It indicates the difference between the selected action value and the average state value. The larger the value, the better the selected action. It ensures that when the selected action is better, the difference between the new and old strategies will not be too large in the direction of strategy improvement. When the selected action is not good, that is, the advantage value is negative, it ensures that there is enough room for optimization in the direction of strategy improvement.
[0091] The technical solution of this embodiment is to obtain a pump room virtual environment, which includes multiple single pump models, obtain multiple pump group working strategies, generate a working sequence based on the multiple pump group working strategies, wherein the pump group working strategy includes the working parameters of each single pump, perform working simulation on the pump room virtual environment in sequence based on the working sequence, obtain the predicted water supply data and predicted consumption data corresponding to each pump group working strategy, determine each pump group working strategy based on the predicted water supply data and predicted consumption data, and obtain the target pump group working strategy. The energy efficiency of the pump group is optimized while ensuring that the output flow of the pump group meets the demand, thereby achieving the effect of saving energy consumption and reducing electricity costs.
[0092] Embodiment 2
[0093] Figure 2 Schematic diagram of the structure of a pump group operation prediction device provided by the second embodiment of the present invention. Figure 2 As shown, the device comprises:
[0094] A pump room virtual environment acquisition module 210 is used to acquire a pump room virtual environment, wherein the pump room virtual environment includes a plurality of single pump models;
[0095] A working sequence generation module 220 is used to obtain a plurality of pump group working strategies and generate a working sequence based on the plurality of pump group working strategies; wherein the pump group working strategy includes working parameters of each single pump;
[0096] A working simulation module 230 is used to perform working simulation on the virtual environment of the pump room in sequence based on the working sequence to obtain predicted water supply data and predicted consumption data corresponding to the working strategy of each pump group;
[0097] The working strategy acquisition module 240 is used to determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy.
[0098] Optionally, the single pump model is used to perform predictive processing on input working parameters and state parameters to obtain single pump water supply data for a predicted time.
[0099] Wherein, the working parameters include the working frequency, and the state parameters include the current water level and the current flow rate.
[0100] Optionally, the pump group operation prediction device comprises:
[0101] The single pump model generation module is used to create an initial single pump model, obtain historical training data to train the initial single pump model, obtain a single pump model, and verify the trained single pump model based on the verification data of the unit time period and the total verification data of multiple time periods.
[0102] Optionally, the operating parameters of the single pump include an operating frequency in a working state and idle data in an idle state;
[0103] Optionally, the work sequence generating module 220 includes:
[0104] A data group generation module, for forming a data group from the working parameters in each pump group working strategy based on the ranking of each single pump;
[0105] The first generating module is used to form a working sequence based on the data groups corresponding to the working strategies of each pump group.
[0106] Optionally, the work simulation module 230 includes:
[0107] A parameter configuration module, used for configuring the working parameters of each single pump model based on any data group in the working sequence;
[0108] The predicted consumption data determination module is used to determine the single pump consumption data corresponding to each of the single pump models based on the working parameters corresponding to the data group, and determine the predicted consumption data based on the sum of the single pump consumption data corresponding to each of the single pump models;
[0109] The predicted water supply data determination module is used to predict the working parameters and state parameters based on each single pump model in the pump room virtual environment, obtain the single pump water supply data output by each single pump model, and determine the predicted water supply data based on the sum of the single pump water supply data output by each single pump model.
[0110] Optionally, the working strategy acquisition module 240 includes:
[0111] A candidate pump group working strategy determination module is used to obtain a target water supply, determine the predicted water supply data corresponding to each pump group working strategy based on the target water supply, and determine a candidate pump group working strategy whose predicted water supply data is greater than the target water supply;
[0112] The target pump group working strategy determination module is used to sort the candidate pump group working strategies based on the predicted consumption data, and determine the candidate pump group working strategy corresponding to the minimum value of the predicted consumption data as the target pump group working strategy.
[0113] Optionally, the candidate pump group working strategy determination module further includes:
[0114] a water supply information acquisition unit, used to acquire the water supply type, water supply date and water supply period, and set mark data according to the water supply type, the water supply date and the water supply period, wherein the mark corresponding to the water supply type includes a residential type mark and an industrial type mark, the mark corresponding to the water supply date includes a working day mark and a holiday mark, and the mark corresponding to the water supply period includes a peak mark, a valley mark and a normal mark;
[0115] The target water supply volume acquisition unit is used to acquire the historical water supply data within a preset historical time period, and perform prediction processing on the historical water supply data and the marked data based on the water supply prediction model to obtain the target water supply volume.
[0116] Optionally, the pump group operation prediction device further includes:
[0117] A single pump working parameter range determination module is used to determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data, and after obtaining the target pump group working strategy, determine the working parameter range of each single pump based on the working parameters of each single pump in the target pump group working strategy;
[0118] The target operating parameter determination module is used to determine the model based on a preset strategy, predict the operating parameter range and target water supply of each single pump, and obtain the target operating parameters of each single pump, wherein the target operating parameters of each single pump constitute an updated pump group working strategy.
[0119] The pump group operation prediction device provided in the embodiment of the present invention can execute the pump group operation prediction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0120] Embodiment 3
[0121] Figure 3 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0122] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0123] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0124] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a pump group operation prediction method.
[0125] In some embodiments, the pump group operation prediction method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the pump group operation prediction method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the pump group operation prediction method in any other appropriate manner (for example, by means of firmware).
[0126] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, 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 thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0127] The computer program for implementing the pump group operation prediction method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or completely on a remote machine or server.
[0128] Embodiment 4
[0129] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a pump group operation prediction method, the method comprising:
[0130] Acquire a pump room virtual environment, wherein the pump room virtual environment includes multiple single pump models; acquire multiple pump group working strategies, and generate a working sequence based on the multiple pump group working strategies; wherein the pump group working strategy includes the working parameters of each single pump; perform working simulation on the pump room virtual environment in sequence based on the working sequence, and obtain predicted water supply data and predicted consumption data corresponding to each pump group working strategy; determine each pump group working strategy based on the predicted water supply data and predicted consumption data, and obtain a target pump group working strategy.
[0131] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0132] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0133] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0134] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. 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 modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for predicting pump group operation, characterized in that: include: Acquire a pump room virtual environment, wherein the pump room virtual environment includes a plurality of single pump models; Acquire multiple pump group working strategies, and generate a working sequence based on the multiple pump group working strategies; wherein the pump group working strategies include working parameters of each single pump, and the working parameters of the single pump include working frequency in working state and empty data in idle state; Based on the working sequence, the working environment of the pump room is simulated in sequence to obtain the predicted water supply data and the predicted consumption data corresponding to the working strategy of each pump group; Determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain a target pump group working strategy; After determining the working strategy of each pump group based on the predicted water supply data and the predicted consumption data to obtain the target pump group working strategy, the method further includes: Determining the operating parameter range of each single pump based on the operating parameters of each single pump in the target pump group operating strategy; Based on the preset strategy determination model, the working parameter range and target water supply of each single pump are predicted and processed to obtain the target working parameters of each single pump, wherein the target working parameters of each single pump constitute the updated pump group working strategy, and the preset strategy determination model is obtained by the PPO algorithm; Wherein, the determining of the working strategies of each pump group based on the predicted water supply data and the predicted consumption data to obtain the target pump group working strategy includes: Obtaining a target water supply, determining the predicted water supply data corresponding to each pump group working strategy based on the target water supply, and determining a candidate pump group working strategy whose predicted water supply data is greater than the target water supply; The candidate pump group working strategies are sorted based on the predicted consumption data, and the candidate pump group working strategy corresponding to the minimum value of the predicted consumption data is determined as the target pump group working strategy.
2. The method according to claim 1, characterized in that The single pump model is used to predict the input working parameters and state parameters to obtain the single pump water supply data of the predicted time; wherein the working parameters include the working frequency, and the state parameters include the current water level and the current flow rate; The single pump model is generated in a manner including: An initial single-pump model is created, historical training data is acquired to train the initial single-pump model to obtain a single-pump model, and the trained single-pump model is verified based on verification data of a unit period and total verification data of multiple periods.
3. The method according to claim 1, characterized in that: Generating a working sequence based on the multiple pump group working strategies includes: Based on the ranking of each single pump, the working parameters in the working strategy of each pump group are formed into a data group; A working sequence is formed based on the data groups corresponding to the working strategies of each pump group.
4. The method according to claim 3, characterized in that The method of sequentially simulating the working environment of the pump room based on the working sequence to obtain predicted water supply data and predicted consumption data corresponding to the working strategies of each pump group includes: Based on any data group in the working sequence, configuring the working parameters of each single pump model; Determine the single pump consumption data corresponding to each of the single pump models based on the working parameters corresponding to the data group, and determine the predicted consumption data based on the sum of the single pump consumption data corresponding to each of the single pump models; Based on the single pump models in the pump room virtual environment, the working parameters and state parameters are predicted and processed respectively to obtain the single pump water supply data output by each single pump model, and the predicted water supply data is determined based on the sum of the single pump water supply data output by each single pump model.
5. The method according to claim 1, characterized in that The step of obtaining the target water supply volume comprises: Acquire the water supply type, water supply date and water supply period, and set tag data according to the water supply type, the water supply date and the water supply period, wherein the tag corresponding to the water supply type includes a residential type tag and an industrial type tag, the tag corresponding to the water supply date includes a working day tag and a holiday tag, and the tag corresponding to the water supply period includes a peak tag, a valley tag and a normal tag; The historical water supply data within a preset historical time period is obtained, and the historical water supply data and the marked data are predicted based on the water supply prediction model to obtain the target water supply.
6. A pump group operation prediction device, characterized in that: include: A pump room virtual environment acquisition module, used to acquire a pump room virtual environment, wherein the pump room virtual environment includes a plurality of single pump models; A working sequence generation module, used for acquiring a plurality of pump group working strategies, and generating a working sequence based on the plurality of pump group working strategies; wherein the pump group working strategies include working parameters of each single pump, and the working parameters of the single pump include working frequency in working state and empty data in idle state; A working simulation module, used to perform working simulation on the virtual environment of the pump room in sequence based on the working sequence, and obtain predicted water supply data and predicted consumption data corresponding to the working strategy of each pump group; A working strategy acquisition module, used to determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data, and obtain a target pump group working strategy; A single pump working parameter range determination module is used to determine the working strategy of each pump group based on the predicted water supply data and the predicted consumption data, and after obtaining the target pump group working strategy, determine the working parameter range of each single pump based on the working parameters of each single pump in the target pump group working strategy; A target working parameter determination module is used to predict and process the working parameter range and target water supply of each single pump based on a preset strategy determination model to obtain the target working parameters of each single pump, wherein the target working parameters of each single pump constitute an updated pump group working strategy, and the preset strategy determination model is obtained through a PPO algorithm; Wherein, the working strategy acquisition module includes: A candidate pump group working strategy determination module is used to obtain a target water supply, determine the predicted water supply data corresponding to each pump group working strategy based on the target water supply, and determine a candidate pump group working strategy whose predicted water supply data is greater than the target water supply; The target pump group working strategy determination module is used to sort the candidate pump group working strategies based on the predicted consumption data, and determine the candidate pump group working strategy corresponding to the minimum value of the predicted consumption data as the target pump group working strategy.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the pump group operation prediction method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the pump group operation prediction method according to any one of claims 1 to 5 when executed.
