Method, device, equipment and medium for predicting energy consumption of compressor turbine in circulating water system
By using the long-short-term memory network to train the prediction model in the circulating water system, the problem of low accuracy and efficiency of compressor turbine energy consumption prediction in the circulating water system is solved, and accurate energy consumption prediction and energy saving effects are achieved.
Patent Information
- Application Number
- CN202210145680.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-02-10
AI Technical Summary
The existing technology has low accuracy and efficiency in predicting the energy consumption of the compressor turbine in the circulating water system. It relies on manual adjustment, which leads to high contingency. It cannot scientifically consider the overall problem, is not efficient, and is not user-friendly.
The long short-term memory network is used to train the prediction model based on the flow time series historical data of the driving turbine energy of the compressor to be predicted, obtain the current measurement data for prediction, determine the turbine energy consumption value, solve the problem of gradient disappearance and gradient explosion, and improve Forecast accuracy and efficiency.
It achieves accurate prediction of the energy consumption of the compressor turbine of the circulating water system, prompts the operator in advance to adjust the energy consumption, improves the precision of energy use, and achieves the effect of energy saving and consumption reduction.
Smart Images

Figure CN114548539B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of chemical circulating water energy consumption prediction, and in particular to a method, device, electronic device and readable storage medium for predicting the energy consumption of a compressor turbine in a circulating water system. Background Art
[0002] The circulating water system sends cooling water (such as seawater) to the high and low pressure condensers to cool the exhaust steam of the low pressure cylinder of the steam turbine to maintain the vacuum of the high and low pressure condensers so that the steam-water cycle can continue. The compressor is used in the circulating water system as a driven fluid machine that lifts low pressure gas to high pressure gas. It sucks low temperature and low pressure refrigerant gas from the suction pipe, compresses it by driving the piston through the motor, and discharges high temperature and high pressure refrigerant gas to the exhaust pipe to provide power for the refrigeration cycle. In order to better circulate the water system, it is necessary to predict the power demand of the compressor, such as gas demand or steam demand. With the widespread application of machine learning and the improvement of its computing performance and storage capacity, deep learning models based on big data training are becoming more and more popular in academia and industry. Related technologies usually use deep learning methods to predict the demand of compressors. For compressors driven by gas or turbines, such as Hainan Fudao, before using deep learning methods to predict gas demand or steam demand, it is necessary to rely on the experience of on-site operators for adjustment.
[0003] It is understandable that relying on manual adjustment not only fails to scientifically consider the problem from the perspective of the circulating water system as a whole, but also has a large degree of randomness and low final prediction accuracy; it is also inefficient and not user-friendly.
[0004] In view of this, how to improve the prediction accuracy and efficiency of the energy consumption of the compressor turbine of the circulating water system is a technical problem that needs to be solved by technicians in the relevant field. Summary of the invention
[0005] The present application provides a method, device, electronic device and readable storage medium for predicting the energy consumption of a compressor turbine in a circulating water system, which can effectively improve the prediction accuracy and prediction efficiency of the energy consumption of a compressor turbine in a circulating water system and achieve energy saving and consumption reduction.
[0006] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0007] An embodiment of the present invention provides a method for predicting energy consumption of a compressor turbine in a circulating water system, comprising:
[0008] Based on the flow time series historical data of the driving turbine energy of the compressor to be predicted, a turbine energy prediction model is obtained by training a long short-term memory network;
[0009] Acquire current measurement data of driving turbine energy of the compressor to be predicted at the current moment;
[0010] Inputting the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy;
[0011] Based on the predicted flow data, a predicted value of turbine energy consumption of the compressor to be predicted is determined.
[0012] Optionally, the driving turbine energy source is gas, and determining the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data includes:
[0013] Analyzing the gas to obtain gas components and proportions of the components;
[0014] Determining the total combustion enthalpy according to the gas components and the proportions of the components;
[0015] Determining actual combustion release energy according to the predicted flow rate data, the total combustion enthalpy and its corresponding combustion efficiency;
[0016] The turbine energy consumption prediction value is determined according to the actual combustion released energy and the working environment parameters of the compressor to be predicted.
[0017] Optionally, the driving turbine energy is steam, and determining the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data includes:
[0018] Determining an enthalpy change value according to the predicted flow data and the working environment parameters of the compressor to be predicted;
[0019] The enthalpy change value is used as the turbine energy consumption prediction value of the compressor to be predicted.
[0020] Optionally, the turbine energy prediction model is obtained by training a long short-term memory network based on the flow time series historical data of the driving turbine energy of the compressor to be predicted, including:
[0021] According to the prediction ratio, the flow time series historical data of the driving turbine energy of the compressor to be predicted is divided into a training data set and a test data set;
[0022] Normalizing the traffic time series historical data in the training data set;
[0023] Using the normalized training data set to train the pre-built long short-term memory network model, and continuously adjusting the long short-term memory network model hyperparameters according to the training situation until the training stop conditions are met to obtain an initial prediction model;
[0024] Using the test data set to perform prediction performance testing on the initial prediction model to obtain performance prediction testing information;
[0025] If the performance prediction detection information meets the preset prediction performance conditions, the initial prediction model is used as the turbine energy prediction model; if the performance prediction detection information does not meet the preset prediction performance conditions, an instruction to retrain the initial prediction model is output.
[0026] Optionally, before training the pre-built long short-term memory network model, the method further includes:
[0027] Respond to model building instructions and automatically generate a long short-term memory network model based on TensorFlow.Keras;
[0028] In response to the model parameter setting instruction, the input dimension, the time step of the input data, the model structure and the number of neurons in each layer are automatically set for the long short-term memory network model;
[0029] Respond to training parameter setting instructions and automatically set the model optimizer, learning rate, and number of iterations.
[0030] Another aspect of the present invention provides a device for predicting energy consumption of a compressor turbine in a circulating water system, comprising:
[0031] A model pre-training module is used to obtain a turbine energy prediction model by training a long short-term memory network based on the flow time series historical data of the driving turbine energy of the compressor to be predicted;
[0032] A data acquisition module, used to acquire current measurement data of the driving turbine energy of the compressor to be predicted at the current moment;
[0033] A flow prediction module, used for inputting the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy;
[0034] The energy consumption prediction module is used to determine the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data.
[0035] Optionally, the energy consumption prediction module is further used for: when the driving turbine energy is fuel gas, analyzing the fuel gas to obtain fuel gas components and proportions of each component; determining the total combustion enthalpy based on the fuel gas components and proportions of each component; determining the actual combustion released energy based on the predicted flow data, the total combustion enthalpy and its corresponding combustion efficiency; and determining the turbine energy consumption prediction value based on the actual combustion released energy and the working environment parameters of the compressor to be predicted.
[0036] Optionally, the energy consumption prediction module is further used for: when the driving turbine energy is steam, determining an enthalpy change value according to the predicted flow data and the working environment parameters of the compressor to be predicted; and using the enthalpy change value as the turbine energy consumption prediction value of the compressor to be predicted.
[0037] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the method for predicting energy consumption of a compressor turbine in a circulating water system as described in any of the preceding items when executing a computer program stored in a memory.
[0038] Finally, an embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for predicting the energy consumption of a compressor turbine in a circulating water system as described in any of the preceding items are implemented.
[0039] The advantage of the technical solution provided by this application is that it uses a long short-term memory network to predict the flow data of the turbine energy of the circulating water system compressor, without the need for manual adjustment based on experience. It not only effectively alleviates the limitation of the difficulty in establishing a prediction model, but also solves the gradient disappearance and gradient explosion problems in the long sequence training process of the recurrent neural network RNN, and improves the prediction accuracy and prediction efficiency of the turbine energy consumption of the circulating water system compressor. Furthermore, by accurately predicting the compressor turbine energy consumption, the operator can be prompted in advance to increase or reduce the energy consumption of the driving compressor, use energy more finely, and achieve energy saving and consumption reduction.
[0040] In addition, the embodiments of the present invention also provide corresponding implementation devices, electronic devices and readable storage media for the method for predicting the energy consumption of the turbine of the compressor of the circulating water system, which further makes the method more practical, and the devices, electronic devices and readable storage media have corresponding advantages.
[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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 paying creative work.
[0043] Figure 1 A schematic flow chart of a method for predicting turbine energy consumption of a compressor in a circulating water system provided by an embodiment of the present invention;
[0044] Figure 2A schematic flow chart of another method for predicting energy consumption of a compressor turbine in a circulating water system provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of a steam data curve provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of the neuron structure of a long short-term memory network provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of a training loss curve provided in an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of a prediction effect curve provided by an embodiment of the present invention;
[0049] Figure 7 A schematic diagram of the actual deployment effect of an illustrative example provided in an embodiment of the present invention;
[0050] Figure 8 A structural diagram of a specific implementation of a device for predicting turbine energy consumption of a compressor in a circulating water system provided by an embodiment of the present invention;
[0051] Fig. 9 A structural diagram of a specific implementation of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. 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 limited to the listed steps or units, but may include steps or units that are not listed.
[0054] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.
[0055] See first Figure 1 , Figure 1A flow chart of a method for predicting turbine energy consumption of a compressor in a circulating water system provided by an embodiment of the present invention. The embodiment of the present invention may include the following contents:
[0056] S101: Based on the flow time series historical data of the driving turbine energy of the compressor to be predicted, a turbine energy prediction model is obtained by training a long short-term memory network.
[0057] In this embodiment, the driving turbine energy is the energy used to drive the turbine, for example, gas or steam, and the flow time series historical data is the flow time series data of the driving turbine energy of the compressor to be predicted in the past period of time, and the flow time series historical data includes but is not limited to the flow, temperature, pressure and other data at each moment in the past period of time. The flow time series historical data can be obtained, for example, by the PI-OPC interface from the PI (Plant Information System) database corresponding to the historical data of gas or steam, and the historical data includes the flow, temperature, pressure and other data of the set time before the prediction time. The acquired flow time series historical data is used as a data set for machine learning, and a turbine energy prediction model for predicting the energy consumption of the compressor to be tested is obtained by training a pre-built long short-term memory network based on any machine learning algorithm. The turbine energy prediction model can scientifically consider the problem from the overall perspective of the circulating water system, supported by the circulating water system mechanism model and the data-driven model, and effectively utilizes the massive process data generated on site, which can be conducive to the fine management of the operation of the circulating water system. The turbine energy prediction model is built based on the long short-term memory network, which can solve the problems of gradient vanishing and gradient explosion in the long sequence training process and improve the prediction accuracy.
[0058] S102: Acquire current measurement data of the driving turbine energy of the compressor to be predicted at the current moment.
[0059] The current moment is the time that needs to be preset, and the current measurement data is the flow, temperature, pressure and other data collected at the current moment. In order to improve the measurement accuracy, the data type included in the current measurement data can be the same as the data type included in the flow time series historical data of S101.
[0060] S103: Input the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy.
[0061] The measurement data collected at the current moment in the previous step is output to the turbine energy prediction model. The turbine energy prediction model predicts the flow data of driving the turbine energy in a certain period of time in the future with this moment as the starting point based on these measurement data, and uses the flow data in this period of time in the future as the predicted flow data for driving the turbine energy.
[0062] S104: Based on the predicted flow data, determine the predicted value of turbine energy consumption of the compressor to be predicted.
[0063] After the predicted flow data for a period of time in the future from the current moment is predicted by the turbine energy prediction model in the previous step, the turbine energy consumption of the compressor to be predicted is predicted in combination with the driving turbine energy type.
[0064] In the technical solution provided by the embodiment of the present invention, a long short-term memory network is used to predict the flow data of the turbine energy of the compressor of the circulating water system, without the need for manual adjustment based on experience, which not only effectively alleviates the limitation of the difficulty in establishing a prediction model, but also solves the gradient disappearance and gradient explosion problems in the long sequence training process of the recurrent neural network RNN, and improves the prediction accuracy and prediction efficiency of the turbine energy consumption of the compressor of the circulating water system. Furthermore, by accurately predicting the turbine energy consumption of the compressor, the operator can be prompted in advance to increase or reduce the energy consumption of the driving compressor, use energy more finely, and achieve energy saving and consumption reduction.
[0065] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just a schematic and does not mean that this is the only execution order.
[0066] In the above embodiment, there is no limitation on how to execute step S104. In this embodiment, multiple optional prediction methods for the turbine energy consumption of the compressor to be predicted are provided, which may include the following steps:
[0067] If the energy source for driving the turbine is gas, the gas is analyzed to obtain the gas components and the proportions of each component; the total combustion enthalpy is determined based on the gas components and the proportions of each component; the actual combustion released energy is determined based on the predicted flow data, the total combustion enthalpy and its corresponding combustion efficiency; the turbine energy consumption prediction value is determined based on the actual combustion released energy and the working environment parameters of the compressor to be predicted.
[0068] In this embodiment, for the gas energy consumption, the total combustion enthalpy is first calculated according to the gas composition and proportion, and then the combustion enthalpy is multiplied by the corresponding combustion efficiency and the predicted flow rate to calculate the actual combustion release energy, and finally the actual energy consumption is calculated according to the current inlet temperature, pressure and outlet temperature, pressure, etc. Specifically, the turbine energy consumption prediction value can be obtained by calling the following gas energy consumption relationship, which can be expressed as:
[0069]
[0070] C p,i =a+bT+cT 2
[0071] Where ΔH1 is the predicted value of gas turbine energy consumption, Q 1 is the predicted flow data, i.e. the predicted gas flow, ΔH C,i 、M i is the combustion heat and mole fraction of the i-th component in the gas, ω i is the ratio of the i-th gas component, V 1 is the volume flow rate of the gas, T1, T2, p1, and p2 are the temperature and pressure entering and leaving the turbine respectively, and these values can be obtained through the gas component detection instrument. p,i is the constant-pressure specific heat capacity of the ith component, which can be calculated through the relationship with temperature. a, b, and c in the relationship can be obtained by looking up the table.
[0072] The present application also provides another implementation method, which is parallel to the above-mentioned method. If the energy source for driving the turbine is steam, the enthalpy change value is determined according to the predicted flow data and the working environment parameters of the compressor to be predicted; the enthalpy change value is used as the turbine energy consumption prediction value of the compressor to be predicted. Specifically, the turbine energy consumption prediction value can be calculated by calling the following steam energy consumption relationship, which can be expressed as:
[0073]
[0074] C p =a+bT+cT 2 ;
[0075] Where ΔH 2 is the predicted value of steam turbine energy consumption, Q 2 is the predicted flow data, i.e. the predicted steam flow, M 2 is the mole fraction of vapor, V 2 is the volume flow rate of steam, T1, T2, p1, and p2 are the temperature and pressure entering and leaving the turbine respectively, and these values can be obtained through steam detection instruments. p is the constant-pressure specific heat capacity of steam, which can be calculated through the relationship with temperature. a, b, and c in the relationship can be obtained by looking up the table.
[0076] In the above embodiment, there is no limitation on how to train the turbine energy prediction model. In this embodiment, a training method of the turbine energy prediction model is provided, such as Figure 2 As shown, it may include the following:
[0077] A1. Divide the flow time series historical data of the driving turbine energy of the compressor to be predicted into a training data set and a test data set according to the prediction ratio;
[0078] A2. Normalize the traffic time series historical data in the training data set;
[0079] In order to further improve the accuracy of model training, each training sample data of the training data set may be normalized. Correspondingly, in order to improve the data prediction accuracy, after the current measurement data is obtained in step S102, the current measurement data may be normalized accordingly.
[0080] A3. Use the normalized training data set to train the pre-built LSTM network model, and continuously adjust the LSTM network model hyperparameters according to the training situation until the training stop conditions are met to obtain the initial prediction model.
[0081] In this step, the training stop condition may be the number of iterations or the model convergence condition, and technicians in the relevant field may flexibly determine it according to actual needs.
[0082] A4. Use the test data set to perform prediction performance test on the initial prediction model to obtain performance prediction test information;
[0083] In this step, each test data in the test data set is processed according to the normalization method of step A2. The processed samples are used to perform traffic prediction using LSTM. The prediction results are inversely normalized and compared with the label values to test the model performance.
[0084] A5. If the performance prediction detection information meets the preset prediction performance conditions, the initial prediction model is used as the turbine energy prediction model; if the performance prediction detection information does not meet the preset prediction performance conditions, an instruction to retrain the initial prediction model is output.
[0085] Among them, the preset prediction performance condition can be that the model prediction accuracy is not lower than a specific value, or it can be that the proportion of differences between predicted labels and actual labels is lower than a certain value. For example, the total number of test labels and actual labels of the test data set that are the same as the initial prediction model is counted, and the prediction accuracy of the initial model is calculated based on the statistical information. If the prediction accuracy is greater than or equal to 98%, the performance prediction test information meets the preset prediction performance condition; if the prediction accuracy is less than 98%, the performance prediction test information does not meet the preset prediction performance condition.
[0086] In some optional implementations of this embodiment, the process of building a long short-term memory network model may include:
[0087] Respond to model building instructions and automatically generate a long short-term memory network model based on TensorFlow.Keras;
[0088] In response to the model parameter setting instruction, it automatically sets the input dimension, time step of input data, model structure and number of neurons in each layer for the long short-term memory network model;
[0089] Respond to training parameter setting instructions and automatically set the model optimizer, learning rate, and number of iterations.
[0090] In this embodiment, a long short-term memory network model can be built based on TensorFlow.Keras, the input dimension of the long short-term memory network model and the time step of the input data are set, the model structure of the long short-term memory network model and the number of neurons in each layer are set, the model optimizer and learning rate are set, the number of iterations of the model is set, and other hyperparameters of the model are set.
[0091] In order to make the technical solution of the present application more clear to those skilled in the art, the present application also provides an illustrative example, which may include the following contents:
[0092] Step 1: Collect the flow time series historical data of the driving gas or steam of the compressor of the circulating water system of the fertilizer department 2 of Offshore Oil Fudao Co., Ltd.
[0093] Specifically, the flow, pressure and flow data of gas or steam of four compressors from 00:00:00 on May 1, 2021 to 00:00:00 on August 3, 2021 can be obtained by configuring the PI-OPC interface. The sampling frequency is 6 samples / hour, and a total of 4×13536 sample points of flow data are collected. Figure 3 As shown. The 4 groups of samples are divided into time series data according to the number of points with sample length of 109, label length of 12, and step length of 1, and a total of 4×13416 groups of samples are obtained;
[0094] Step 2: Divide the sample data collected in the previous step into a training set and a test set in a ratio of 7:3, that is, 4×9391 groups of training sets and 4×4025 groups of test sets, and scale each group of training set samples to the interval of (0, 1).
[0095] Specifically, each group of training set samples can be scaled to the interval (0, 1) by using the following normalization processing formula. The normalization processing formula can be as follows:
[0096]
[0097] Among them, x represents the original data, x max 、x min Represent the maximum and minimum values of the original data, respectively, norm Indicates the normalized value.
[0098] Step 3: Build an LSTM model and train it using the training set data.
[0099] Use TensorFlow.Keras to build Figure 4The LSTM model shown in the figure sets the structure and hyperparameters, divides the training set data into the validation set at a ratio of 8:2 for training and evaluation, and adjusts the model structure and hyperparameters until the validation set performance reaches the optimal. The model structure has 109 node inputs, two hidden layers, 256 and 64 nodes respectively, and an output layer of 12 nodes. The optimizer is Adam, and the number of iterations is 20 rounds. The hidden layer state h in the LSTM model t It can be expressed as:
[0100] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0101]
[0102] o t =σ(W o ·[h t-1 ,x t ]+b o )
[0103] h t =o t *tanh(C t )
[0104] Among them, f t represents the output of the forget gate, x t Represents the input vector, W f is the weight matrix of the forget gate, [h t-1 , x t ] connects two vectors into a longer vector, b f is the bias term of the forget gate, σ is the sigmoid function; i t Represents the operation result of the input gate, W i , b i Represent the weight matrix and bias of the input gate respectively; Indicates the current input unit state; C t Indicates the unit state at the current moment; o t is the output gate.
[0105] The loss function used in the model training process can be the mean square error (MSE). The effect diagram of the training process can be found in Figure 5 As shown, the loss function can be expressed as:
[0106]
[0107] Where N represents the number of samples, f(x i ) and y iThey represent the predicted value and true value of the i-th sample respectively.
[0108] Step 4: Adjust the model structure and model hyperparameters according to the training situation, and repeat step 4 until satisfactory results are obtained.
[0109] Step 5: Use the trained model to predict the test set data and obtain the model prediction performance data.
[0110] After training the LSTM models corresponding to the four compressors, the performance of the models was verified using the validation set data. The prediction results are as follows: Figure 6 As shown, the energy consumption value is calculated by the relationship between the gas or steam flow rate and the energy consumption, and the predicted value of the energy consumption can also be calculated based on the predicted value of the gas or steam flow rate.
[0111] Step 6: Calculate the energy consumption value based on the relationship between gas or steam flow and energy consumption.
[0112] like Figure 7 As shown, the computer program relied on by the technical solution provided in this embodiment is encapsulated into the storage space of the circulating water system, and the processor of the circulating water system predicts the energy consumption of a compressor in the circulating water system, such as the 103J air compressor, by calling the computer program, and displays the predicted data on the user interface of the upper computer of the circulating water system.
[0113] From the above, it can be seen that the technical solution provided in this embodiment can achieve the goal of predicting the energy consumption of the compressor turbine of the Fudao circulating water system based on deep learning and big data technology, and provide a basis for energy saving and consumption reduction.
[0114] The embodiment of the present invention also provides a corresponding device for the circulating water system compressor turbine energy consumption prediction method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The circulating water system compressor turbine energy consumption prediction device provided by the embodiment of the present invention is introduced below. The circulating water system compressor turbine energy consumption prediction device described below and the circulating water system compressor turbine energy consumption prediction method described above can be referenced to each other.
[0115] From the perspective of functional modules, see Figure 8 , Figure 8 A structural diagram of a circulating water system compressor turbine energy consumption prediction device provided by an embodiment of the present invention in a specific implementation manner, the device may include:
[0116] The model pre-training module 801 is used to obtain a turbine energy prediction model by training a long short-term memory network based on the flow time series historical data of the driving turbine energy of the compressor to be predicted.
[0117] The data acquisition module 802 is used to acquire the current measurement data of the driving turbine energy of the compressor to be predicted at the current moment.
[0118] The flow prediction module 803 is used to input the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy;
[0119] The energy consumption prediction module 804 is used to determine the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data.
[0120] Optionally, in some implementations of the present embodiment, the energy consumption prediction module 804 may be used to: drive the turbine energy source as gas, analyze the gas, and obtain the gas components and proportions of each component; determine the total combustion enthalpy based on the gas components and proportions of each component; determine the actual combustion released energy based on the predicted flow data, the total combustion enthalpy and its corresponding combustion efficiency; determine the turbine energy consumption prediction value based on the actual combustion released energy and the working environment parameters of the compressor to be predicted.
[0121] As an optional implementation parallel to the above-mentioned embodiment, the above-mentioned energy consumption prediction module 804 can be further used for: driving the turbine energy as steam, determining the enthalpy change value according to the predicted flow data and the working environment parameters of the compressor to be predicted; and using the enthalpy change value as the turbine energy consumption prediction value of the compressor to be predicted.
[0122] Optionally, in some other implementations of the present embodiment, the above-mentioned model pre-training module 801 can also be used to: divide the flow time series historical data of the driving turbine energy of the compressor to be predicted into a training data set and a test data set according to the prediction ratio; normalize the flow time series historical data in the training data set; use the normalized training data set to train a pre-built long short-term memory network model, and continuously adjust the long short-term memory network model hyperparameters according to the training situation until the training stop conditions are met to obtain an initial prediction model; use the test data set to perform a prediction performance test on the initial prediction model to obtain performance prediction test information; if the performance prediction test information meets the preset prediction performance conditions, the initial prediction model is used as the turbine energy prediction model; if the performance prediction test information does not meet the preset prediction performance conditions, an instruction to retrain the initial prediction model is output.
[0123] As an optional implementation of the above embodiment, the above model pre-training module 801 can also be further used for: responding to model building instructions, automatically generating a long short-term memory network model based on TensorFlow.Keras; responding to model parameter setting instructions, automatically setting the input dimension, time step of input data, model structure and number of neurons in each layer for the long short-term memory network model; responding to training parameter setting instructions, automatically setting the model optimizer, learning rate and number of iterations.
[0124] The functions of the various functional modules of the circulating water system compressor turbine energy consumption prediction device in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0125] It can be seen from the above that the embodiments of the present invention can effectively improve the prediction accuracy and prediction efficiency of the turbine energy consumption of the compressor of the circulating water system, thereby achieving energy saving and consumption reduction.
[0126] The circulating water system compressor turbine energy consumption prediction device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides an electronic device, which is described from the perspective of hardware. Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application in one implementation manner. Fig. 9 As shown, the electronic device includes a memory 90 for storing computer programs; a processor 91 for implementing the steps of the method for predicting energy consumption of a compressor turbine in a circulating water system as mentioned in any of the above embodiments when executing the computer program.
[0127] Among them, the processor 91 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 91 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 91 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 91 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 91 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 91 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0128] The memory 90 may include one or more computer-readable storage media, which may be non-transitory. The memory 90 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the memory 90 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 90 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 90 may also include both an internal storage unit of an electronic device and an external storage device. The memory 90 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program for executing the vulnerability processing method, etc., but may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 90 is at least used to store the following computer program 901, wherein, after the computer program is loaded and executed by the processor 91, the relevant steps of the method for predicting the energy consumption of the turbine of the compressor of the circulating water system disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 90 may also include an operating system 902 and data 903, and the storage method may be temporary storage or permanent storage. The operating system 902 may include Windows, Unix, Linux, etc. The data 903 may include, but is not limited to, data corresponding to the prediction result of the turbine energy consumption of the compressor of the circulating water system, etc.
[0129] In some embodiments, the electronic device may further include a display screen 92, an input / output interface 93, a communication interface 94 or a network interface, a power supply 95 and a communication bus 96. Among them, the display screen 92 and the input / output interface 93 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 94 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 96 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0130] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, for example, it may also include a sensor 97 for realizing various functions.
[0131] The functions of the functional modules of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0132] It can be seen from the above that the embodiments of the present invention can effectively improve the prediction accuracy and prediction efficiency of the turbine energy consumption of the compressor of the circulating water system, thereby achieving energy saving and consumption reduction.
[0133] It is understandable that if the circulating water system compressor turbine energy consumption prediction method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.
[0134] Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the method for predicting energy consumption of a compressor turbine in a circulating water system as described in any of the above embodiments are performed.
[0135] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices and electronic devices, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0136] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0137] The above is a detailed introduction to a method, device, electronic device and readable storage medium for predicting the energy consumption of a compressor turbine in a circulating water system provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for predicting energy consumption of compressor turbine in a circulating water system, characterized in that: include: Preliminarily dividing the flow time series historical data of the driving turbine energy of the compressor to be predicted into a training data set and a test data set according to the prediction ratio; Normalizing the traffic time series historical data in the training data set; Using the normalized training data set to train the pre-built long short-term memory network model, and continuously adjusting the hyperparameters of the long short-term memory network model according to the training situation until the training stop condition is met to obtain an initial prediction model; using the test data set to perform a prediction performance test on the initial prediction model to obtain performance prediction test information; if the performance prediction test information meets the preset prediction performance condition, the initial prediction model is used as the turbine energy prediction model; if the performance prediction test information does not meet the preset prediction performance condition, an instruction to retrain the initial prediction model is output; before the training of the pre-built long short-term memory network model, it also includes: responding to the model building instruction, automatically generating a long short-term memory network model based on TensorFlow.Keras; responding to the model parameter setting instruction, automatically setting the input dimension, the time step of the input data, the model structure and the number of neurons in each layer for the long short-term memory network model; responding to the training parameter setting instruction, automatically setting the model optimizer, the learning rate and the number of iterations; Acquire current measurement data of driving turbine energy of the compressor to be predicted at the current moment; Inputting the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy; Based on the predicted flow data, a predicted value of turbine energy consumption of the compressor to be predicted is determined.
2. The method for predicting energy consumption of compressor turbine in circulating water system according to claim 1, characterized in that: The driving turbine energy source is gas, and the step of determining the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data includes: Analyzing the gas to obtain gas components and proportions of the components; Determining the total combustion enthalpy according to the gas components and the proportions of the components; Determining actual combustion release energy according to the predicted flow rate data, the total combustion enthalpy and its corresponding combustion efficiency; The turbine energy consumption prediction value is determined according to the actual combustion released energy and the working environment parameters of the compressor to be predicted.
3. The method for predicting energy consumption of compressor turbine in circulating water system according to claim 1, characterized in that: The driving turbine energy is steam, and the step of determining the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data includes: Determining an enthalpy change value according to the predicted flow data and the working environment parameters of the compressor to be predicted; The enthalpy change value is used as the turbine energy consumption prediction value of the compressor to be predicted.
4. A device for predicting energy consumption of compressor turbine in circulating water system, characterized in that: include: A model pre-training module is used to pre-split the flow time series historical data of the driving turbine energy of the compressor to be predicted into a training data set and a test data set according to the prediction ratio; Normalizing the traffic time series historical data in the training data set; Using the normalized training data set, a pre-built long short-term memory network model is trained, and the hyperparameters of the long short-term memory network model are continuously adjusted according to the training situation until the training stop condition is met to obtain an initial prediction model; using the test data set to perform a prediction performance test on the initial prediction model to obtain performance prediction test information; if the performance prediction test information meets the preset prediction performance condition, the initial prediction model is used as a turbine energy prediction model; if the performance prediction test information does not meet the preset prediction performance condition, an instruction to retrain the initial prediction model is output; before the training of the pre-built long short-term memory network model, it also includes: responding to the model building instruction, automatically generating a long short-term memory network model based on TensorFlow.Keras; responding to the model parameter setting instruction, automatically setting the input dimension, the time step of the input data, the model structure and the number of neurons in each layer for the long short-term memory network model; responding to the training parameter setting instruction, automatically setting the model optimizer, the learning rate and the number of iterations; A data acquisition module, used to acquire current measurement data of the driving turbine energy of the compressor to be predicted at the current moment; A flow prediction module, used for inputting the current measurement data into the turbine energy prediction model to obtain the predicted flow data of the driving turbine energy; The energy consumption prediction module is used to determine the predicted value of turbine energy consumption of the compressor to be predicted based on the predicted flow data.
5. The circulating water system compressor turbine energy consumption prediction device according to claim 4, characterized in that: The energy consumption prediction module is further used for: when the driving turbine energy is gas, the gas is analyzed to obtain gas components and proportions of each component; the total combustion enthalpy is determined according to the gas components and proportions of each component; the actual combustion released energy is determined according to the predicted flow data, the total combustion enthalpy and its corresponding combustion efficiency; the turbine energy consumption prediction value is determined according to the actual combustion released energy and the working environment parameters of the compressor to be predicted.
6. The circulating water system compressor turbine energy consumption prediction device according to claim 4, characterized in that: The energy consumption prediction module is further used for: when the driving turbine energy is steam, determining the enthalpy change value according to the predicted flow data and the working environment parameters of the compressor to be predicted; and using the enthalpy change value as the turbine energy consumption prediction value of the compressor to be predicted.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the method for predicting the energy consumption of a compressor turbine in a circulating water system as claimed in any one of claims 1 to 3 when executing a computer program stored in the memory.
8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting the energy consumption of a compressor turbine in a circulating water system as claimed in any one of claims 1 to 3 are implemented.
