A method for optimizing power parameters based on energy consumption, terminal equipment and storage medium
By combining the LSTM network and the policy network of reinforcement learning, and using feature screening and GBDT algorithms, the problem of low automation and neglect of dynamic factors in the energy management system in the existing technology is solved, and high real-time and high-accuracy energy consumption are achieved. Prediction and optimization strategies improve the energy management efficiency of data centers.
Patent Information
- Application Number
- CN202111375172.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-11-19
AI Technical Summary
The existing energy management system relies on physical modeling, has low automation and intelligence, cannot provide specific energy consumption optimization strategies in real time, and ignores changes in dynamic factors and equipment parameters, making it difficult to adapt to energy consumption fluctuations and dynamic scenarios. management needs.
Using the energy consumption prediction model based on the LSTM network and the strategy network of reinforcement learning, through feature screening and feature selection algorithms, the energy consumption prediction model and agent are constructed to achieve dynamic sequential energy consumption prediction and parameter adjustment, combined with the GBDT feature selection algorithm And the agent of 8-layer fully connected neural network outputs the optimal adjustment strategy.
It achieves high real-time and high-accuracy prediction of energy consumption and PUE indicators, overcomes the complexity of mathematical modeling and the low degree of automation, provides dynamic energy consumption management and optimization strategies, and improves the energy utilization of the data center. efficiency.
Smart Images

Figure CN114066071B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power systems, and in particular to an energy consumption-based power parameter optimization method, terminal equipment and storage medium. Background Art
[0002] The existing computer room energy management system relies too much on physical modeling, requires a lot of manual calculations and evaluations, and has a low level of automation and intelligence. In addition, manual analysis of massive amounts of information and data is slow and inefficient.
[0003] In order to more effectively analyze energy consumption and PUE (Power Usage Effectiveness) indicators, a number of energy consumption analysis technologies based on machine learning or deep learning have emerged. However, the current energy efficiency analysis methods for data centers can only analyze and count the energy consumption and PUE of data centers, and cannot provide specific optimization strategies to reduce energy consumption in real time. At the same time, these analysis methods ignore the dynamic factors that can cause energy consumption fluctuations or the dynamic changes in equipment parameters. The analysis of energy consumption remains at static energy consumption data, making it difficult to adapt to energy consumption fluctuations and achieve real-time regulation, and unable to adapt to energy consumption management needs in dynamic scenarios. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes an energy consumption-based power parameter optimization method, a terminal device and a storage medium.
[0005] The specific plan is as follows:
[0006] A method for optimizing power parameters based on energy consumption comprises the following steps:
[0007] S1: Collect the power characteristic parameters of each device and the parameter values corresponding to the overall energy consumption index in the area to be studied in different time periods;
[0008] S2: Based on the data collected in step S1, feature selection algorithm is used to perform feature screening on the power feature parameters of each device;
[0009] S3: Construct an energy consumption prediction model based on the LSTM network, and train the energy consumption prediction model through the parameter values corresponding to the device power characteristic parameters after feature screening and the parameter values corresponding to the overall energy consumption index, so that the difference between the parameter value of the overall energy consumption index output by the trained model and the parameter value of the overall energy consumption index collected in step S1 is minimized;
[0010] S4: Combine the trained energy consumption prediction model with the policy network based on reinforcement learning, use the energy consumption prediction model to evaluate the optimization strategy given by the policy network agent, and after training the policy network, obtain an agent that can output the optimal adjustment strategy of each parameter and its evaluation results;
[0011] S5: After inputting the parameter values of the power characteristic parameters of each device in the area to be studied after feature screening in the current time period into the trained energy consumption prediction model, the parameter value of the overall energy consumption index in the future time period of the area to be studied is obtained, and the parameter values of the power characteristic parameters of each device after feature screening in the current time period and the parameter value of the overall energy consumption index in the future time period are input into the trained intelligent body together, and the optimal parameter adjustment strategy is obtained as output.
[0012] Furthermore, the feature selection algorithm in step S2 adopts the GBDT feature selection algorithm.
[0013] Furthermore, the process of feature screening using the GBDT feature selection algorithm includes the following steps:
[0014] S21: Calculate the distribution confusion between the power characteristic parameters of each device and the overall energy consumption index;
[0015] S22: extracting, according to the calculated distribution confusion, the device power characteristic parameters whose distribution confusion degree with the overall energy consumption index is less than the distribution confusion degree threshold from all device power characteristic parameters;
[0016] S23: constructing a decision tree according to the parameter values corresponding to the extracted device power characteristic parameters, wherein the parameter values of the device power characteristic parameters in different time periods form different decision trees, all decision trees form a decision tree forest, and each decision tree is trained;
[0017] S24: According to the trained tree structure, the importance of each device power characteristic parameter in each tree is calculated:
[0018]
[0019] in, represents the importance of the equipment power characteristic parameter j in each tree, M represents the number of leaf nodes in the decision tree, M-1 represents the number of non-leaf nodes in the decision tree, i represents the sequence number of the node, and v i represents the equipment power characteristic parameter corresponding to node i, Represents the reduction value of the loss function after the i-th node is split;
[0020] S25: Calculate the importance of each device power characteristic parameter in the decision tree forest according to the importance of each device power characteristic parameter in each tree:
[0021]
[0022] in, Represents the importance of equipment power characteristic parameter j in the decision tree forest;
[0023] S26: Sort the power characteristic parameters of each device in descending order of importance in the decision tree forest, and extract the first n power characteristic parameters of each device as the result after feature screening.
[0024] Furthermore, the calculation formula for the distribution confusion degree f of any two parameters in step S21 is:
[0025]
[0026] Among them, μ1 and μ2 represent the means of the parameter values corresponding to the two parameters in all time periods, and α1 and α2 represent the variances of the parameter values corresponding to the two parameters in all time periods.
[0027] Furthermore, the method for training each decision tree in step S23 is: traversing all possible tree structures in the decision tree, calculating the loss function value corresponding to each tree structure, and obtaining the tree structure with the minimum loss function;
[0028] The calculation formula of the loss function L is:
[0029]
[0030]
[0031]
[0032] Among them, x k represents the parameter value corresponding to the equipment power characteristic parameter extracted in the kth time period, k represents the sequence number of the time period, K represents the total number of time periods, and f t Represents the index mapping function that maps data to the leaf nodes of the decision tree, t represents the number of iterations during training, and g k and h k Represent the first-order derivative and the second-order derivative, y k represents the actual energy consumption value in the kth time period, y pi Represents the predicted energy consumption value in the kth time period.
[0033] Furthermore, step S4 specifically includes the following steps:
[0034] S401: Setting constraints of various parameters;
[0035] S402: constructing a strategy generator according to the constraints of each parameter, so that it can output adjustment strategies of each parameter that meet the set constraints, and outputting multiple adjustment strategies through the strategy generator;
[0036] S403: Using the trained energy consumption prediction model as a strategy evaluator, superimposing the parameter adjustment value corresponding to each adjustment strategy with the original parameter value, and inputting them into the strategy evaluator respectively, to obtain the predicted energy consumption value corresponding to each adjustment strategy, and obtaining the evaluation result corresponding to each adjustment strategy according to the difference between the predicted energy consumption value and the actual energy consumption value; if the predicted energy consumption value corresponding to the adjustment strategy is less than the actual energy consumption value, it means that the adjustment strategy can reduce energy consumption, and a certain reward value is given to the adjustment strategy, otherwise the reward value is 0;
[0037] S404: Construct an intelligent agent, set the input of the intelligent agent to the original parameter value, each adjustment strategy, and the predicted energy consumption value corresponding to each adjustment strategy, the output of the intelligent agent is the evaluation result corresponding to each adjustment strategy, and train the intelligent agent so that the trained intelligent agent can output the optimal adjustment strategy and its corresponding evaluation result.
[0038] Furthermore, the intelligent agent constructed in step S404 adopts a neural network with 8 fully connected layers, the first layer contains 128 neurons, the last layer contains 1 neuron, the number of neurons in the intermediate layers decreases layer by layer, and each layer except the last layer uses the Relu activation function. The last layer uses the softmax activation function, and the loss function type is the mean square error.
[0039] A terminal device for optimizing power parameters based on energy consumption includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method described above in the embodiment of the present invention are implemented.
[0040] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described above in an embodiment of the present invention are implemented.
[0041] The present invention adopts the above technical solution and has the following beneficial effects:
[0042] 1. Establish a data screening mechanism based on feature selection. According to the characteristics of data center equipment diversity, parameter heterogeneity, and complex coupling relationships, screen out key data that affect the PUE and energy consumption indicators of data centers under different circumstances, eliminate redundant data efficiently and accurately, and enhance the overall data quality.
[0043] 2. For the first time, dynamic time-series PUE indicators and energy consumption prediction are realized. The long and short cycles in the time-series neural network are used to effectively capture the characteristics of energy consumption mutation parameters and gradual parameter information, and predict energy consumption and PUE indicators with high real-time and high accuracy.
[0044] 3. In order to solve the problem of difficulty in parameter adjustment caused by the large number and rich variety of data parameters in data centers, an automated parameter adjustment mechanism combining energy consumption prediction model and reinforcement learning is designed. This overcomes the shortcomings of the current parameter adjustment mechanism that relies on mathematical modeling, such as complex process and low degree of automation. At the same time, through the study of simulation parameter changes in a theoretical numerical environment, the risks brought by physical parameter adjustment are avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 Shown is a flow chart of Embodiment 1 of the present invention.
[0046] Figure 2 Shown is a flowchart corresponding to the strategy network in this embodiment.
[0047] Figure 3 The figure shows a comparison between the predicted PUE and the actual PUE over a period of time in this embodiment.
[0048] Figure 4 The figure shows a comparison of the changes in energy consumption of IT equipment after adjustment according to the optimal parameters in this embodiment.
[0049] Figure 5 Shown is a comparison chart of changes in energy consumption of HVAC equipment after adjustment according to optimal parameters in this embodiment. DETAILED DESCRIPTION
[0050] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.
[0051] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.
[0052] Embodiment 1:
[0053] The embodiment of the present invention provides a method for optimizing power parameters based on energy consumption, such as Figure 1 As shown, the method comprises the following steps:
[0054] S1: Collect the power characteristic parameters of each device and the parameter values corresponding to the overall energy consumption index in the area to be studied in different time periods.
[0055] Since the area to be studied contains a large number of various types of power equipment, the equipment power characteristic parameters contain multiple types of data from multiple types of equipment.
[0056] S2: Based on the data collected in step S1, the power characteristic parameters of each device are screened by a feature selection algorithm.
[0057] The feature selection algorithm in this embodiment adopts the GBDT (Gradient Boosting Decision Tree) feature selection algorithm, which specifically includes the following steps:
[0058] S21: Calculate the distribution confusion between the power characteristic parameters of each device and the overall energy consumption index.
[0059] Step S21 is used to remove useless dimensions in the device power characteristic parameters. These useless dimensions have little impact on energy consumption and are removed to speed up processing. The dimensions here correspond to different device power characteristic parameters, and one parameter is used as a dimension.
[0060] Since the types of various power devices are diverse and numerous, and the physical meanings of the power characteristic parameters of different devices are quite different, the maximum Fisher discriminant rate is used in this embodiment to calculate the distribution confusion between the power characteristic parameters of different devices. The specific calculation formula is:
[0061]
[0062] Among them, μ1 and μ2 represent the means of the parameter values corresponding to the two parameters in all time periods, and α1 and α2 represent the variances of the parameter values corresponding to the two parameters in all time periods.
[0063] S22: According to the calculated distribution confusion, extract the device power characteristic parameters whose distribution confusion degree with the overall energy consumption index is less than the distribution confusion threshold from among all the device power characteristic parameters.
[0064] The extraction of the device power characteristic parameters in this embodiment adopts a two-way search strategy that combines forward search and backward search. The forward search uses the overall energy consumption index as the initial candidate subset, and gradually increases the device power characteristic parameters related to the overall energy consumption index, that is, the device power characteristic parameters with a small distribution confusion between the overall energy consumption index; the backward search starts from the set consisting of all device power characteristic parameters, and judges the distribution confusion between each device power characteristic parameter and the overall energy consumption index one by one, and screens out device power characteristic parameters with a large distribution confusion and removes them from the set.
[0065] S23: construct a decision tree according to the parameter values corresponding to the extracted equipment power characteristic parameters, the parameter values of the equipment power characteristic parameters in different time periods form different decision trees, all decision trees form a decision tree forest, and each decision tree is trained.
[0066] Step S23 is used to sort the remaining dimensions in the equipment power characteristic parameters according to importance and select the most important dimensions.
[0067] In this embodiment, the method for training each decision tree is: traversing all possible tree structures in the decision tree, calculating the loss function value corresponding to each tree structure, and obtaining the tree structure with the minimum loss function.
[0068] The loss function L uses the overall energy consumption index or PUE index as the regression target and the mean square loss as the error. The specific calculation formula is:
[0069]
[0070]
[0071]
[0072] Among them, x k represents the parameter value corresponding to the equipment power characteristic parameter extracted in the kth time period, k represents the sequence number of the time period, K represents the total number of time periods, and f t Represents the index mapping function that maps data to the leaf nodes of the decision tree, t represents the number of iterations during training, and g k and h k Represent the first-order derivative and the second-order derivative, y k represents the actual energy consumption value in the kth time period, y pi Represents the predicted energy consumption value in the kth time period.
[0073] S24: According to the trained tree structure, the importance of each device power characteristic parameter in each tree is calculated:
[0074]
[0075] in, represents the importance of the equipment power characteristic parameter j in each tree, M represents the number of leaf nodes in the decision tree, M-1 represents the number of non-leaf nodes in the decision tree, i represents the sequence number of the node, and v i represents the equipment power characteristic parameter corresponding to node i, Represents the reduction value of the loss function after the i-th node is split;
[0076] S25: Calculate the importance of each device power characteristic parameter in the decision tree forest according to the importance of each device power characteristic parameter in each tree:
[0077]
[0078] in, Represents the importance of equipment power characteristic parameter j in the decision tree forest;
[0079] S26: Sort the power characteristic parameters of each device in descending order of importance in the decision tree forest, and extract the first n power characteristic parameters of each device as the result after feature screening.
[0080] S3: Construct an energy consumption prediction model based on LSTM network (Long Short Term Memory Network), and train the energy consumption prediction model through the parameter values corresponding to the equipment power characteristic parameters after feature screening and the parameter values corresponding to the overall energy consumption index, so that the difference between the parameter value of the overall energy consumption index output by the trained model and the parameter value of the overall energy consumption index collected in step S1 is minimized.
[0081] By utilizing the long- and short-period data processing capabilities of the LSTM network and integrating the corresponding time series, it is possible to capture the changing patterns of gradual and sudden parameters over time without missing out on the different information contained in sudden and gradual parameters.
[0082] In the energy consumption prediction model in this embodiment, the input data is processed using a multi-layer LSTM, and the device parameters of the previous hours and the current hour are used as model input. The specific calculation formula is as follows:
[0083] i t =σ(W i *[y t-1 ,x t ]+b i )
[0084] f t =σ(W f *[y t-1 ,x t ]+b f )
[0085] o t =σ(W O *[y t-1 ,x t ]+b O )
[0086]
[0087]
[0088] y t =o t tanh(C t )
[0089] Among them, W i , W f , W O , W C is the LSTM parameter, b i , bf , b O , b C It is LSTM bias. In actual use, for d-dimensional input data, the number of neurons in the LSTM input layer is set to d, the length of the input time series is 2, and the LSTM output dimension is 2d. The dynamic features extracted by LSTM are input to the 9-layer fully connected layer for regression tasks. The first layer contains 512 neurons, and the neurons in the middle layers are reduced to half of the previous layer layer by layer. The last layer contains 2 neurons, which are responsible for outputting the two overall energy consumption indicators predicted, namely the energy consumption value and the PUE indicator.
[0090] Furthermore, a semi-supervised learning method may be added in step S3 to solve the current problems of data shortage and imbalance and improve the applicability to actual situations.
[0091] S4: Combine the trained energy consumption prediction model with the policy network based on reinforcement learning, use the energy consumption prediction model to evaluate the optimization strategy given by the policy network agent, and after training the policy network, obtain an agent that can output the optimal adjustment strategy of each parameter and its evaluation results.
[0092] refer to Figure 2 As shown, step S4 specifically includes the following steps:
[0093] S401: Setting constraints for each parameter.
[0094] In this embodiment, the constraint conditions include the lower and upper numerical limits of the parameters. For example, the constraint conditions for the air conditioning parameters are that the upper and lower numerical limits are 10 degrees and 30 degrees respectively, and the adjustment step is 0.2 degrees / step. The upper and lower limits of humidity are 30% and 80% respectively, and the step is set to adjust 5% per step. In actual use, the theoretical upper and lower limits and adjustment step of each parameter can be set according to the actual situation, so that the reinforcement learning can realize self-constraint in the process of parameter adjustment. When the upper and lower numerical limits of the parameter setting are reached, the optimization stops automatically.
[0095] S402: constructing a strategy generator according to the constraint conditions of each parameter, so that it can output adjustment strategies of each parameter that meet the set constraint conditions, and outputting multiple adjustment strategies through the strategy generator.
[0096] In this embodiment, the strategy generator outputs two adjustment strategies for each parameter, namely, an increase strategy and a decrease strategy.
[0097] S403: Use the trained energy consumption prediction model as a strategy evaluator, superimpose the parameter adjustment value corresponding to each adjustment strategy with the original parameter value, and input them into the strategy evaluator respectively to obtain the predicted energy consumption value corresponding to each adjustment strategy, and obtain the evaluation result corresponding to each adjustment strategy according to the difference between the predicted energy consumption value and the actual energy consumption value; if the predicted energy consumption value corresponding to the adjustment strategy is smaller than the actual energy consumption value, it means that the adjustment strategy can reduce energy consumption, then a certain reward value is given to the adjustment strategy, otherwise the reward value is 0.
[0098] S404: Construct an intelligent agent, set the input of the intelligent agent to the original parameter value, each adjustment strategy, and the predicted energy consumption value corresponding to each adjustment strategy, the output of the intelligent agent is the evaluation result corresponding to each adjustment strategy, and train the intelligent agent so that the trained intelligent agent can output the optimal adjustment strategy and its corresponding evaluation result.
[0099] In this embodiment, the agent uses a neural network with 8 fully connected layers. The first layer contains 128 neurons, the last layer contains 1 neuron, and the number of neurons in the middle layers decreases layer by layer. Except for the last layer, each layer uses the Relu activation function, and the last layer uses the softmax activation function. The loss function type is the mean square error. The training of the neural network inside the agent is performed using the Adam algorithm.
[0100] S5: After inputting the parameter values of the power characteristic parameters of each device in the area to be studied after feature screening in the current time period into the trained energy consumption prediction model, the parameter value of the overall energy consumption index in the future time period of the area to be studied is obtained, and the parameter values of the power characteristic parameters of each device after feature screening in the current time period and the parameter value of the overall energy consumption index in the future time period are input into the trained intelligent body together, and the optimal parameter adjustment strategy is obtained as output.
[0101] Furthermore, after obtaining the parameter adjustment strategy in step S5, automated control can be further achieved by deploying sensors and automated controllers. Therefore, this embodiment may also include step S6: performing real-time control of device parameters according to the parameter adjustment strategy.
[0102] Experimental verification
[0103] The experiment adopted in this embodiment uses real data generated by an information center, uses a number of equipment parameters including air conditioners to predict the energy consumption and related indicators of the data center, and further proposes an optimization strategy. Field verification shows that the method of this embodiment can accurately predict energy consumption, and the proposed optimization strategy effectively reduces energy consumption, which has a positive effect on energy conservation, emission reduction and economic benefits of the data center.
[0104] 1. Experimental Background
[0105] The data used in this experiment comes from the energy consumption and equipment usage of a data center over a period of 8 months. A sample is read every hour through the open interface of the data center, corresponding to the energy consumption and equipment parameters of the previous hour.
[0106] The data center currently has two categories, more than 100 types, and more than 1,000 devices in total. The two categories of equipment specifically include:
[0107] (1) IT equipment: responsible for the storage and backup of massive data, including server hosts, UPS equipment, racks, high and low voltage distribution cabinets, etc. These devices will continue to generate heat during operation and need to be cooled down continuously to maintain normal operation.
[0108] (2) HVAC equipment: mainly various types of water-cooling and air-cooling equipment, responsible for lowering the temperature of IT equipment and ensuring the normal operation of IT equipment. Specifically includes precision air conditioners, blowers, water towers, high-pressure water pumps, various valves, etc.
[0109] The overall energy consumption index referred to in this experiment includes the PUE index and energy consumption value, where the energy consumption value is the sum of the IT equipment energy consumption and HVAC equipment energy consumption of the data center where the experiment is located. The energy consumption of IT equipment and HVAC equipment is measured by electricity consumption in kilowatt-hours (Kwh).
[0110] 2. Equipment parameters
[0111] The data center has many types of equipment with various physical characteristics. After summarization, they can be roughly divided into the following two categories:
[0112] (1) Numerical data:
[0113] Unadjustable data: measured ambient temperature, humidity, etc., a total of more than 1,800 dimensions;
[0114] Adjustable data: air conditioner set point and set temperature, a total of 66 dimensions.
[0115] (2) Enumeration data:
[0116] Such as valve opening / closing, alarm normal / alarm, control mode manual / automatic, a total of more than 40,000 dimensions.
[0117] 3. Experimental objectives
[0118] The goal of this experiment is to predict and optimize PUE and energy consumption levels, detect PUE peaks in advance, and analyze specific measures to reduce energy consumption. Specific experimental goals include:
[0119] (1) Accurately predict the PUE value of the data center every hour, fit the curve of the PUE indicator changing over time, and predict the PUE peak in advance, so that monitoring personnel can take timely actions, reduce the PUE level, and improve energy utilization.
[0120] (2) By adjusting the parameters of various equipment in the data center, we can find the optimal parameter configuration that can reduce the energy consumption level and maintain a relatively stable level, optimize the energy consumption of the data center, and achieve energy conservation, emission reduction and cost reduction.
[0121] 4. Experimental Procedure
[0122] (1) Feature screening based on GBDT feature selection algorithm
[0123] The power characteristic parameters of each device in the data center from February to October 2020 were screened, with a total of 1,852 available data, each with 46,000 dimensions. GBDT was used to screen out 700 dimensions as input data for subsequent models. Finally, 1,852 available data with a dimension of 700 were obtained.
[0124] (2) Prediction of overall energy consumption indicators based on energy consumption prediction model
[0125] The energy consumption prediction model uses the long short-term memory model, i.e., LSTM (Long Short-Term Memory), to predict the PUE index and specific energy consumption value of the data center every hour. The LSTM model receives the 1852 training data obtained in step (1) for training, sets the input layer to contain 200 neurons, and outputs the predicted PUE and energy consumption values. The time window length is 2, which means that the PUE and energy consumption values of the next hour are predicted using the data of the previous two hours.
[0126] After the training is completed, the trained energy consumption prediction model is used to predict the hourly energy consumption index and observe the prediction accuracy of the model over a period of time.
[0127] (3) Energy consumption optimization based on strategy network
[0128] After predicting the parameter values of the overall energy consumption index of the data center, the policy network model in reinforcement learning is used to adjust the parameters of various equipment in the data center, such as the temperature setting value of the precision air conditioner, the water pressure of the water tower, the wind speed of the blower, etc. Find the optimal temperature and wind speed of the air conditioner that can reduce energy consumption, improve the heat dissipation efficiency, reduce the energy consumption of the data center, reduce energy consumption fluctuations, and control energy consumption stability. The policy network receives the data generated by the data center every hour as input and outputs the optimized recommended equipment parameter values. The data center technicians adjust the set parameters of each device according to the recommended equipment parameter values of the policy network, and observe the changes in the energy consumption indicators of the data center every hour.
[0129] 5. Experimental Results
[0130] (1) PUE prediction results
[0131] like Figure 3 As shown, the PUE index of the data center is predicted using the method of this embodiment, and the prediction results within 120 hours are observed. It can be found that the method of this embodiment accurately predicts the PUE usage peak, and the peak values of the actual PUE curve and the predicted PUE curve are basically consistent.
[0132] As shown in Table 1, during this period, the average value of actual PUE is 1.5029, and the variance is 0.6577×10 -3 The average value of the PUE prediction results is 1.5032, and the variance is 0.6623×10 -3 . The overall error is controlled within 7%.
[0133] Table 1
[0134] Actual value Predicted value Percent Error Mean 1.5029 1.5032 0.0199% variance <![CDATA[0.6577×10 -3 ]]> <![CDATA[0.6623×10 -3 ]]> 6.99%
[0135] (2) Energy consumption optimization results
[0136] According to the data center regulations, large equipment such as water pumps and centrifuges cannot be adjusted. Only the temperature and humidity of precision air conditioners can be adjusted. Figure 4 and Figure 5 As shown in the figure, according to the optimal parameters given by the strategy network, the energy consumption level changes within 24 hours before and after the on-site measurement of the optimal set temperature and humidity of the precision air conditioner in the data center, it can be found that the average hourly energy consumption of the IT system is reduced from 1222.5Kwh to 1218.45Kwh, and the average hourly energy consumption of the HVAC system is reduced from 754.36Kwh to 740.90Kwh. The average hourly energy consumption is reduced by 17.51Kwh.
[0137] In addition, as shown in Table 2, after adjusting the parameters, not only the average level of energy consumption is reduced, but also the variance of energy consumption is further reduced, and the energy consumption level tends to be stable.
[0138] Table 2
[0139]
[0140] The experimental results show that:
[0141] (1) This experiment completed the accurate prediction of the PUE index of the data center based on feature screening. After field measurement, the overall prediction error was controlled within 7%.
[0142] (2) Based on the prediction of PUE, this experiment puts forward optimization suggestions for reducing energy consumption. After field measurements, after adopting the optimization suggestions provided by this experiment, the average hourly energy consumption of the data center is reduced by 17.51Kwh, and the energy consumption fluctuation is significantly improved. The overall energy consumption level is reduced and more stable.
[0143] (3) According to the standard of reducing energy consumption by 17.51Kwh per hour and electricity price of 0.75 yuan / Kwh, this experiment can save 153387.6Kwh of electricity for the data center every year, saving 115,000 yuan in electricity bills. It can be seen that this experiment has great economic and environmental benefits.
[0144] Embodiment 2:
[0145] The present invention also provides an energy consumption-based power parameter optimization terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned method embodiment of the first embodiment of the present invention when executing the computer program.
[0146] Further, as an executable solution, the energy consumption-based power parameter optimization terminal device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The energy consumption-based power parameter optimization terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the composition structure of the above-mentioned energy consumption-based power parameter optimization terminal device is only an example of an energy consumption-based power parameter optimization terminal device, and does not constitute a limitation on the energy consumption-based power parameter optimization terminal device. It may include more or less components than the above, or a combination of certain components, or different components. For example, the energy consumption-based power parameter optimization terminal device may also include input and output devices, network access devices, buses, etc., and the embodiments of the present invention do not limit this.
[0147] Further, as an executable solution, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the energy-based power parameter optimization terminal device, and uses various interfaces and lines to connect the various parts of the entire energy-based power parameter optimization terminal device.
[0148] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the power parameter optimization terminal device based on energy consumption by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and an application required for at least one function; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0149] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in the embodiment of the present invention are implemented.
[0150] If the module / unit integrated in the power parameter optimization terminal device based on energy consumption 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) and software distribution medium, etc.
[0151] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.
Claims
1. A method for optimizing power parameters based on energy consumption, characterized in that: The following steps are involved: S1: Collect the power characteristic parameters of each device and the parameter values corresponding to the overall energy consumption index in the area to be studied in different time periods; S2: Based on the data collected in step S1, the power characteristic parameters of each device are screened by a feature selection algorithm; the feature selection algorithm adopts the GBDT feature selection algorithm, and the feature screening process includes the following steps: S21: Calculate the distribution confusion between the power characteristic parameters of each device and the overall energy consumption index; S22: extracting, according to the calculated distribution confusion, the device power characteristic parameters whose distribution confusion degree with the overall energy consumption index is less than the distribution confusion degree threshold from all device power characteristic parameters; S23: constructing a decision tree according to the parameter values corresponding to the extracted device power characteristic parameters, wherein the parameter values of the device power characteristic parameters in different time periods form different decision trees, all decision trees form a decision tree forest, and each decision tree is trained; S24: According to the trained tree structure, the importance of each device power characteristic parameter in each tree is calculated: in, represents the importance of the equipment power characteristic parameter j in each tree, M represents the number of leaf nodes in the decision tree, M-1 represents the number of non-leaf nodes in the decision tree, i represents the sequence number of the node, and v i represents the equipment power characteristic parameter corresponding to node i, Represents the reduction value of the loss function after the i-th node is split; S25: Calculate the importance of each device power characteristic parameter in the decision tree forest according to the importance of each device power characteristic parameter in each tree: in, Represents the importance of equipment power characteristic parameter j in the decision tree forest; S26: sorting the power characteristic parameters of each device in descending order of importance of the power characteristic parameters of each device in the decision tree forest, and extracting the first n power characteristic parameters of each device as the result after feature screening; S3: Construct an energy consumption prediction model based on the LSTM network, and train the energy consumption prediction model through the parameter values corresponding to the device power characteristic parameters after feature screening and the parameter values corresponding to the overall energy consumption index, so that the difference between the parameter value of the overall energy consumption index output by the trained model and the parameter value of the overall energy consumption index collected in step S1 is minimized; S4: combining the trained energy consumption prediction model with the policy network based on reinforcement learning, using the energy consumption prediction model to evaluate the optimization strategy given by the policy network agent, and obtaining an agent that can output the optimal adjustment strategy of each parameter and its evaluation results after training the policy network; step S4 specifically includes the following steps: S401: Setting constraints of various parameters; S402: constructing a strategy generator according to the constraints of each parameter, so that it can output adjustment strategies of each parameter that meet the set constraints, and outputting multiple adjustment strategies through the strategy generator; S403: Using the trained energy consumption prediction model as a strategy evaluator, superimposing the parameter adjustment value corresponding to each adjustment strategy with the original parameter value, and inputting them into the strategy evaluator respectively, to obtain the predicted energy consumption value corresponding to each adjustment strategy, and obtaining the evaluation result corresponding to each adjustment strategy according to the difference between the predicted energy consumption value and the actual energy consumption value; if the predicted energy consumption value corresponding to the adjustment strategy is less than the actual energy consumption value, it means that the adjustment strategy can reduce energy consumption, and a certain reward value is given to the adjustment strategy, otherwise the reward value is 0; S404: constructing an intelligent agent, setting the input of the intelligent agent to be the original parameter value, each adjustment strategy, and the predicted energy consumption value corresponding to each adjustment strategy, and the output of the intelligent agent to be the evaluation result corresponding to each adjustment strategy, and training the intelligent agent so that the trained intelligent agent can output the optimal adjustment strategy and its corresponding evaluation result; S5: After inputting the parameter values of the power characteristic parameters of each device in the area to be studied after feature screening in the current time period into the trained energy consumption prediction model, the parameter value of the overall energy consumption index in the future time period of the area to be studied is obtained, and the parameter values of the power characteristic parameters of each device after feature screening in the current time period and the parameter value of the overall energy consumption index in the future time period are input into the trained intelligent body together, and the optimal parameter adjustment strategy is obtained as output.
2. The method for optimizing power parameters based on energy consumption according to claim 1, characterized in that: The calculation formula for the distribution confusion degree f of any two parameters in step S21 is: Among them, μ1 and μ2 represent the means of the parameter values corresponding to the two parameters in all time periods, and α1 and α2 represent the variances of the parameter values corresponding to the two parameters in all time periods.
3. The method for optimizing power parameters based on energy consumption according to claim 1, characterized in that: The method for training each decision tree in step S23 is: traverse all possible tree structures in the decision tree, calculate the loss function value corresponding to each tree structure, and obtain the tree structure with the minimum loss function; The calculation formula of the loss function L is: Among them, x k represents the parameter value corresponding to the equipment power characteristic parameter extracted in the kth time period, k represents the sequence number of the time period, K represents the total number of time periods, and f t Represents the index mapping function that maps data to the leaf nodes of the decision tree, t represents the number of iterations during training, and g k and h k Represent the first-order derivative and the second-order derivative, y k represents the actual energy consumption value in the kth time period, y pi Represents the predicted energy consumption value in the kth time period.
4. The method for optimizing power parameters based on energy consumption according to claim 1, characterized in that: The intelligent agent constructed in step S404 adopts a neural network with 8 fully connected layers. The first layer contains 128 neurons, the last layer contains 1 neuron, and the number of neurons in the intermediate layers decreases layer by layer. Except for the last layer, each layer uses the Relu activation function, and the last layer uses the softmax activation function. The loss function type is the mean square error.
5. A terminal device for optimizing power parameters based on energy consumption, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
