Data prediction model building method and device, fan rotating speed adjusting method and device and BMC
By building a data prediction model, using convolutional neural networks and long-short-term memory neural networks to predict server temperature data and adjust fan speed, the problem of traditional BMC fan control lag is solved, and the heat dissipation efficiency and equipment lifespan are improved.
Patent Information
- Application Number
- CN202410804699.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-17
AI Technical Summary
The traditional baseboard management controller (BMC) fan cooling control method has hysteresis and cannot accurately predict the data at the next moment, resulting in system control lag and affecting hardware stability and lifespan.
Adopting a data prediction model construction method, using a combination of convolutional neural network and long short-term memory neural network, iterative training is performed by obtaining time series sample data and label data, predicting future temperature data, and adjusting the fan speed duty cycle based on the prediction results to reduce Control hysteresis.
Realizing the timely adjustment of the fan speed, improving the heat dissipation effect, reducing power consumption, extending the service life of the equipment, and improving the reliability and stability of the system.
Smart Images

Figure CN118654013A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to data prediction model construction, a fan speed adjustment method, a device and a BMC. Background Art
[0002] In many fields, many technologies are used to regulate the system based on the data collected at the current moment, but such regulation measures often have a certain lag.
[0003] For example, in server management, heat dissipation control is a very important task. Different workloads and their load characteristics will cause the server to generate different levels of heat output. Excessive server temperature will seriously affect hardware stability and life, and even lead to system failures or increased failure rates. Therefore, timely and effective heat dissipation control is very necessary.
[0004] The traditional method of fan heat dissipation control of a baseboard management controller (BMC) is to control the fan speed duty cycle when it is detected that the sensor reading reaches the upper threshold, which has a certain hysteresis. Summary of the invention
[0005] In view of this, the present invention provides a data prediction model construction, a fan speed adjustment method, device and BMC to solve the problem that the data at the next moment cannot be accurately predicted, and measures cannot be taken in time according to the data at the next moment, which may cause lag in system control.
[0006] In a first aspect, the present invention provides a method for constructing a data prediction model, the method comprising:
[0007] Acquire a time series sample data set within a preset time period, wherein the time series sample data set includes a plurality of time series sample data subsets, each of which includes a plurality of time series sample data, and each of which is sample data collected in a unit time;
[0008] Obtain label data corresponding to each time series sample data, wherein the label data is sample data collected at the next unit time corresponding to each time series sample data;
[0009] Inputting the time series sample data into the pre-built data prediction model in sequence for iterative training, and obtaining the prediction results corresponding to each training; wherein the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer, the convolutional neural network sub-model includes a plurality of convolutional units, each convolutional unit includes at least one convolutional layer, and when the convolutional unit includes a plurality of convolutional layers, a pooling convolutional layer is connected between every two convolutional layers;
[0010] When it is determined based on the prediction results and label data that the data prediction model meets the conditions for stopping iterative training, the training is stopped, and the data prediction model finally obtained is determined to be the optimal data prediction model.
[0011] The data prediction model construction method provided by the present invention has the following advantages:
[0012] Obtain a set of time series sample data within a preset time period, and label data corresponding to the time series sample data, wherein the label data is the sample data collected at the next unit time corresponding to each time series sample data. Input the time series sample data into the pre-built data prediction model in sequence for iterative training to obtain the prediction results. When the data prediction model is determined to reach the condition for stopping iterative training according to the prediction results and label data, stop training to obtain the optimal data prediction model. In this process, by collecting sample data per unit time to construct a time series sample data set, the information in the time series can be fully utilized to provide strong support for subsequent prediction and analysis. When constructing a data prediction model, a combination of a convolutional neural network sub-model and a long short-term memory neural network sub-model is used to effectively capture short-term and long-term dependencies in the time series and improve the accuracy of the prediction. Moreover, in order to ensure that each eigenvalue in the receptive domain can be fully utilized, the role of different eigenvalues is more fully utilized, and the consumption of network operations is reduced at the same time, a pooled convolution layer is configured in the multiple convolution units included in the convolutional neural network sub-model in the present invention, which is located between each two adjacent convolution layers. At the same time, while using the pooling convolution layer to retain the main features, it can also reduce the noise and redundant information in the data and improve the generalization ability of the model. The above optimal data prediction model can be used to predict future data changes and trends, and then take effective measures in time. For example, temperature data can be predicted, and the fan speed can be adjusted according to the predicted future temperature data to avoid the lag of fan speed control as much as possible, thereby avoiding unnecessary losses caused by overheating of the system.
[0013] In an optional implementation, obtaining a time series sample data set within a preset time period specifically includes:
[0014] Within a preset time period, with the first preset time as a sliding window and the second preset time as a collection time period for a time series sample subset, target time series sample data are sequentially selected from the time series sample data sequentially collected at all unit times to form a time series sample data subset, and multiple time series sample data subsets within the preset time period constitute a time series sample data set; wherein the first preset time and the second preset time are both composed of multiple unit times, the second preset time is greater than the first preset time, the number of time series sample data included in the time series sample set is equal to the total number of unit times corresponding to the second preset time, and the target time series sample data is one or more pieces of data in the time series sample data sequentially collected at unit times.
[0015] Specifically, the target time series sample data is selected from the time series sample data collected at all unit times by using a sliding window, which can effectively capture the short-term trends and patterns in the time series data. Through the sliding window, data can be obtained continuously in time, avoiding the problem of data discontinuity that may be caused by random sampling. The second preset time is defined as the collection time period of the time series sample subset, and the time period is greater than the first preset time. Such a setting can ensure that the time series sample set contains enough historical data to fully reflect the long-term characteristics and trends of the time series. By increasing the time period, the model can learn richer time patterns and improve the accuracy and reliability of the prediction.
[0016] This method of obtaining a set of time series sample data within a preset time period can provide a richer, continuous and comprehensive representation of time series data, which helps to model and analyze complex patterns and relationships in time series data, and provides a valuable basis for subsequent prediction and analysis.
[0017] In an optional embodiment, the method further includes:
[0018] A point convolution layer is connected between two adjacent convolution units.
[0019] Specifically, considering that two adjacent convolution units will occupy a large amount of memory when information interacts, a point convolution layer can be connected between the two adjacent convolution units to compress the number of feature maps output by the previous convolution unit in the two adjacent convolution units, thereby reducing the computational complexity of the next convolution unit.
[0020] In an optional implementation, the time series sample data is temperature data periodically collected per unit time by a temperature sensor corresponding to each of the multiple fans.
[0021] In a second aspect, the present invention provides a method for adjusting fan speed, the method comprising:
[0022] Acquire temperature data collected by each temperature sensor of a plurality of temperature sensors corresponding to a target fan among the plurality of fans at a current moment, wherein the target fan is any one of the plurality of fans;
[0023] Inputting the temperature data collected by the first temperature sensor at the current moment into the optimal data prediction model of any one of claims 1 to 4 to predict the temperature data collected by the first temperature sensor at the next moment, wherein the first temperature sensor is any one of the multiple temperature sensors;
[0024] After predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, predicting the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the multiple temperature sensors at the next moment;
[0025] According to the speed duty cycle at the next moment, the target fan is controlled to adjust the speed duty cycle at the next moment.
[0026] The fan speed adjustment method provided by the present invention has the following advantages:
[0027] By acquiring the temperature data collected by the temperature sensor in real time, and then using the optimal data prediction model to predict the temperature data at the next moment, the trend of temperature change can be obtained in advance. In particular, the adjustment strategy of the fan speed duty cycle can be generated in advance according to the predicted temperature data at a moment, so as to more accurately control the working state of the fan, thereby better adapting to temperature changes and improving the heat dissipation effect. Moreover, optimizing the fan speed duty cycle can minimize the fan power consumption, improve the energy efficiency of the system, and reduce energy waste under the premise of meeting the heat dissipation requirements. The method can adapt to different working environments and load conditions. By continuously collecting temperature data and updating the prediction model, the fan control strategy can be adjusted in real time so that it can respond flexibly according to actual conditions, thereby improving the reliability and stability of the system. In addition, system failures and equipment damage caused by excessively high or low temperatures can be avoided, thereby improving the reliability and stability of the system and extending the service life of the equipment. In an optional embodiment, after predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, the speed duty cycle of the target fan at the next moment is predicted according to the temperature data collected by each of the multiple temperature sensors at the next moment, specifically including:
[0028] According to the predicted temperature data collected by each temperature sensor at the next moment and the weight coefficient corresponding to each temperature sensor, the speed duty cycle of the target fan at the next moment is predicted, and the weight coefficient corresponding to each temperature sensor is a pre-configured coefficient;
[0029] The following formula is used to calculate the speed duty cycle of the target fan at any time:
[0030]
[0031] Among them, w j represents the weight coefficient of the jth temperature sensor in the i-th fan, s i,j is the temperature data corresponding to the jth temperature sensor in the i-th fan at any time, the i-th fan is the target fan, pwm i is the speed duty cycle of the target fan at any time, and m is the total number of temperature sensors in the target fan.
[0032] Specifically, the data from multiple sensors can provide more comprehensive temperature information. Combining the predicted data and weight coefficients of multiple temperature sensors can more accurately predict the speed duty cycle of the target fan at the next moment. Moreover, the weight coefficient can be used to adjust the impact of different temperature sensors. This can adapt to factors such as the measurement accuracy and installation location of different sensors, making the prediction results more in line with the actual situation. Finally, optimization is performed based on factors such as temperature distribution and fan layout to better meet heat dissipation requirements.
[0033] In a third aspect, the present invention provides a data prediction model construction device, the device comprising:
[0034] A first acquisition module is used to acquire a time series sample data set within a preset time period, wherein the time series sample data set includes a plurality of time series sample data subsets, each of which includes a plurality of time series sample data, and each of which is sample data collected in a unit time;
[0035] A second acquisition module is used to acquire label data corresponding to each time series sample data, wherein the label data is sample data collected at the next unit time corresponding to each time series sample data;
[0036] A processing module is used to input the time series sample data into the pre-built data prediction model in sequence for iterative training, and obtain the prediction results corresponding to each training; wherein the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer, the convolutional neural network sub-model includes a plurality of convolutional units, each convolutional unit includes at least one convolutional layer, when the convolutional unit includes a plurality of convolutional layers, a pooling convolutional layer is connected between every two convolutional layers; when it is determined according to the prediction results and label data that the data prediction model meets the conditions for stopping iterative training, the training is stopped, and the data prediction model finally obtained is determined to be the optimal data prediction model.
[0037] The data prediction model construction device provided by the present invention has the following advantages:
[0038] Obtain a set of time series sample data within a preset time period, and label data corresponding to the time series sample data, wherein the label data is the sample data collected at the next unit time corresponding to each time series sample data. Input the time series sample data into the pre-built data prediction model in sequence for iterative training to obtain the prediction results. When the data prediction model is determined to reach the condition for stopping iterative training according to the prediction results and label data, stop training to obtain the optimal data prediction model. In this process, by collecting sample data per unit time to construct a time series sample data set, the information in the time series can be fully utilized to provide strong support for subsequent prediction and analysis. When constructing a data prediction model, a combination of a convolutional neural network sub-model and a long short-term memory neural network sub-model is used to effectively capture short-term and long-term dependencies in the time series and improve the accuracy of the prediction. Moreover, in order to ensure that each eigenvalue in the receptive domain can be fully utilized, the role of different eigenvalues is more fully utilized, and the consumption of network operations is reduced at the same time, a pooled convolution layer is configured in the multiple convolution units included in the convolutional neural network sub-model in the present invention, which is located between each two adjacent convolution layers. At the same time, while using the pooling convolution layer to retain the main features, it can also reduce the noise and redundant information in the data and improve the generalization ability of the model. The above optimal data prediction model can be used to predict future data changes and trends, and then take effective measures in time. For example, temperature data can be predicted, and the fan speed can be adjusted according to the predicted future temperature data to avoid the lag of fan speed control as much as possible, thereby avoiding unnecessary losses caused by overheating of the system.
[0039] In a fourth aspect, the present invention provides a fan speed adjustment device, the device comprising:
[0040] an acquisition module, used to acquire temperature data collected by each temperature sensor of a plurality of temperature sensors corresponding to a target fan among the plurality of fans at a current moment, wherein the target fan is any one of the plurality of fans;
[0041] a processing module, configured to input the temperature data collected by the first temperature sensor at the current moment into the corresponding optimal data prediction model of the first aspect or any corresponding embodiment thereof, and predict the temperature data collected by the first temperature sensor at the next moment, wherein the first temperature sensor is any one of the plurality of temperature sensors; after predicting the temperature data collected by each of the plurality of temperature sensors corresponding to the target fan at the next moment, predict the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the plurality of temperature sensors at the next moment;
[0042] The adjustment module is used to control the target fan to adjust the speed duty cycle at the next moment according to the speed duty cycle at the next moment.
[0043] The data fan speed adjustment device provided by the present invention has the following advantages:
[0044] By acquiring the temperature data collected by the temperature sensor in real time, and then using the optimal data prediction model to predict the temperature data at the next moment, the trend of temperature change can be obtained in advance. In particular, the adjustment strategy of the fan speed duty cycle can be generated in advance according to the predicted temperature data at a moment, so as to more accurately control the working state of the fan, thereby better adapting to temperature changes and improving the heat dissipation effect. Moreover, optimizing the fan speed duty cycle can minimize the fan power consumption, improve the energy efficiency of the system, and reduce energy waste under the premise of meeting the heat dissipation requirements. The method can adapt to different working environments and load conditions. By continuously collecting temperature data and updating the prediction model, the fan control strategy can be adjusted in real time so that it can respond flexibly according to actual conditions, thereby improving the reliability and stability of the system. In addition, system failures and equipment damage caused by excessively high or low temperatures can be avoided, thereby improving the reliability and stability of the system and extending the service life of the equipment. In a fifth aspect, the present invention provides a BMC, including: a memory and a processor, the memory and the processor are connected to each other in communication, the memory stores computer instructions, and the processor executes the data prediction model construction method of the first aspect or any corresponding embodiment thereof by executing the computer instructions; or executes the fan speed adjustment method of the second aspect or any corresponding embodiment thereof.
[0045] In a sixth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the fan speed adjustment method of the second aspect or any corresponding embodiment thereof.
[0046] In the seventh aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the data prediction model construction method of the above-mentioned first aspect or any corresponding embodiment, or to execute the fan speed adjustment method of the above-mentioned second aspect or any corresponding embodiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 It is a flowchart of a method for building a data prediction model provided by an embodiment of the present invention;
[0049] Figure 2 It is a schematic diagram of obtaining features by using the two pooling methods of maximum pooling and average pooling provided by the present invention;
[0050] Figure 3 is a schematic diagram of the fully connected layer structure provided by the present invention;
[0051] Figure 4 It is a schematic diagram of the traditional CNN network structure provided by the present invention and a schematic diagram of the improved CNN network in this embodiment;
[0052] Figure 5 It is a schematic diagram of the structure of the long short-term memory neural network provided by the present invention;
[0053] Figure 6 It is a schematic diagram of a prediction model structure provided by an embodiment of the present invention;
[0054] Figure 7 It is a schematic diagram of short-time sample division provided by the present invention;
[0055] Figure 8 is a flow chart of a fan speed adjustment method provided by an embodiment of the present invention;
[0056] Fig. 9 It is a structural block diagram of a data prediction model building device provided by an embodiment of the present invention;
[0057] Fig.10 It is a structural block diagram of a fan speed adjustment device provided by an embodiment of the present invention;
[0058] Fig.11 FIG. 4 is a schematic diagram of the hardware structure of the BMC according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0060] In many fields, many technologies are used to regulate the system based on the data collected at the current moment, but such regulation measures often have a certain lag.
[0061] For example, in server management, heat dissipation control is a very important task. Different workloads and their load characteristics will cause the server to generate different levels of heat output. Excessive server temperature will seriously affect hardware stability and life, and even lead to system failures or increased failure rates. Therefore, timely and effective heat dissipation control is very necessary.
[0062] The Baseboard Management Controller (BMC) is a management controller based on server hardware. It is usually a part of the server hardware and exists independently of the main processor (CPU). It is an embedded microcontroller with independent processing power and storage space, used to monitor, manage and control various hardware and software functions of the server.
[0063] Traditional BMC fan heat dissipation control methods usually monitor and adjust fan speed based on preset temperature thresholds. BMC uses sensors to monitor the temperature of each component in the system in real time, and triggers corresponding heat dissipation control measures when the temperature exceeds the set upper threshold. However, these thresholds are often set statically and cannot adapt to dynamic workload changes. When the sensor reading reaches the upper threshold, it will be regulated, which has a certain lag.
[0064] In order to solve the problem that the data at the next moment cannot be accurately predicted, and thus measures cannot be taken in time according to the data at the next moment, which may cause lag in system control, an embodiment of the present invention provides an embodiment of building a data prediction model. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system (BMC) including a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0065] In this embodiment, a data prediction model construction method is provided, which can be used in the above-mentioned terminal devices, such as mobile phones, tablet computers, etc. Figure 1 is a flow chart of a method for constructing a data prediction model provided by an embodiment of the present invention, such as Figure 1 As shown, the process includes the following steps:
[0066] Step S101, obtaining a time series sample data set within a preset time period.
[0067] Specifically, the time series sample data set includes a plurality of time series sample data subsets, each of which includes a plurality of time series sample data, and each of which is sample data collected in a unit time.
[0068] In an optional example, the unit may be 1 minute. Therefore, the time series sample data is sample data collected in units of every minute. The sample data may be determined according to the field, for example, in the field of server heat dissipation, it may be temperature data collected by a temperature sensor.
[0069] Step S102, obtaining label data corresponding to each time series sample data.
[0070] Specifically, the label data is the sample data collected at the next unit time corresponding to each time series sample data.
[0071] Because in the embodiment of the present application, the purpose is to predict future data, so when selecting label data, the sample data collected at the next unit time corresponding to each time series sample data is used as the label data corresponding to the sample data.
[0072] Step S103, inputting the time series sample data into the pre-built data prediction model in sequence for iterative training, and obtaining the prediction results corresponding to each training.
[0073] Specifically, the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer. The convolutional neural network sub-model includes multiple convolutional units, each convolutional unit includes at least one convolutional layer. When the convolutional unit includes multiple convolutional layers, a pooling convolutional layer is connected between every two convolutional layers.
[0074] Specifically, the traditional convolutional neural network (CNN) is a feedforward neural network, which consists of an input layer, a convolutional layer, a pooling layer, a fully connected layer (FC), and an output layer. In general, the network contains several convolutional layers and pooling layers, which are set alternately, that is, one or two convolutional layers are connected to a pooling layer, and the pooling layer is connected to the convolutional layer, and so on. Among them, the convolutional layer is the core layer for building the network, which generates most of the computational complexity in the network. The function of the filter is achieved through convolution calculation, and because convolution has the characteristic of "weight sharing", the number of parameters can be reduced to reduce the computational overhead, thereby preventing overfitting due to too many parameters.
[0075] The convolution kernel of the convolution layer is commonly used in the form of discrete convolution operation. The convolution kernel is calculated step by step in a smooth moving manner, and the step size is set manually, so that all input data participate in the convolution operation without omission, and try to ensure that the final mined features are comprehensive and sufficient. By changing the number and size of the convolution kernel, the number and speed of learning features can be controlled.
[0076] After the convolution kernel operation, in order to reduce the amount of model calculations and speed up the learning rate, the pooling layer is used to compress the receptive field of the convolution layer to reduce the consumption of network operations. Pooling layers are usually inserted periodically between consecutive convolution layers to gradually reduce the spatial size of the data body, thereby reducing the number of parameters in the network, reducing the consumption of computing resources, and effectively controlling overfitting. The pooling process can be expressed as:
[0077] F l = p(F l-1 )(Formula 1)
[0078] Among them, p(.) represents pooling processing, F l-1 is the feature matrix of the previous layer output, F l is the output feature matrix of the current layer. Common pooling methods include maximum pooling and average pooling, such as Figure 2 shown. Figure 2 A schematic diagram showing the two pooling methods of maximum pooling and average pooling for obtaining features.
[0079] After the processing of the pooling layer, some feature points in the input feature are discarded, and each pooling area only retains the most representative features. And from Formula 1, we can see that the data feature F after pooling l And the original feature F after convolution l-1 There is a one-to-one correspondence, and the number of feature maps has not decreased.
[0080] The fully connected layer can map the features learned in the early stage to the sample label space, and plays the role of a classifier in the convolutional neural network. In the CNN structure, after multiple convolutional layers and pooling layers, one or more fully connected layers are connected to integrate the information with category distinction in the convolutional layer or pooling layer. Each layer of the fully connected layer is tiled with many neurons, and each neuron is fully connected to all neurons in the previous layer. For details, see Figure 3 Schematic diagram of the fully connected layer structure shown in Figure 2.
[0081] For convolutional neural networks, generally, each or two convolutional layers are followed by a pooling layer. The purpose of the pooling layer is to compress the receptive field of the convolutional layer to reduce the consumption of network operations. However, the pooling layer simply takes the local maximum or average value, and does not fully utilize the eigenvalues in the receptive field.
[0082] Therefore, in this embodiment, the CNN network sub-model is improved by replacing the pooling layer in the network with a pooling convolution layer. That is, the convolutional neural network sub-model includes multiple convolution units, each convolution unit includes at least one convolution layer, and when the convolution unit includes multiple convolution layers, a pooling convolution layer is connected between every two convolution layers. For details, see Figure 4 shown. Figure 4 The traditional CNN network structure diagram and the improved CNN network structure diagram in this embodiment are respectively illustrated. The traditional CNN network structure diagram includes 1×3 convolution layer (1×3Conv), maximum pooling layer (max-pooling), 1×5 convolution layer (1×5Conv), maximum pooling layer (max-pooling), 1×5 convolution layer (1×5Conv), average pooling layer (mean-pooling), and fully connected layer. Among them, Figure 4 The improved CNN network includes two convolution units. The first convolution unit includes a 1×3 convolution layer (1×3Conv) and a 1×5 convolution layer (1×5Conv). A pooling convolution layer is connected between two adjacent convolution layers. For example Figure 4 The second convolution unit is a 1×5 convolution layer (1×5Conv), followed by a mean-pooling layer and a fully connected layer.
[0083] In the improved CNN network, the pooling convolution layer is used to calculate the feature fusion of each eigenvalue in the same receptive field, and the convolution calculation is used to obtain different weights for each point, which makes full use of the role of different eigenvalues.
[0084] The Long Short Term Memory Network (LSTM) contains several storage units consisting of forget gates, input gates, and output gates. The basic structure of each unit is as follows: Figure 5 shown.
[0085] The Forget Gate is used to control whether the unit discards (forgets) or retains information. Figure 5 The current input is x t , the output at the previous moment is h t-1 , then the output f of the forget gate t for:
[0086] f t =sigmoid(W f [h t-1 ,x t ]+b f ) (Formula 2)
[0087] Among them, W f represents the weight matrix of the forget gate, b f Represents the bias vector.
[0088] The input gate is used to update the unit information, including Sigmoid and Tanh. Figure 5 The corresponding output of Sigmoid and Tanh is i t and g t , both of which contain the current input x t With the previous hidden state h t-1 :
[0089] i t =sigmoid(W i [h t-1 ,x t ]+b i ) (Formula 3)
[0090] g t =tanh(W g [h t-1 ,x t ]+b g ) (Formula 4)
[0091] Then, combined with the output f of the forget gate at the current moment t With the state c at the previous moment t-1 , get the current new state c t :
[0092] C t =ft ⊙C t-1 +i t ⊙g t (Formula 5)
[0093] Among them, ⊙ represents the Hadamard product, that is, the multiplication of the corresponding positions of two vectors.
[0094] The output gate is used to read the current updated state and control what information the entire unit outputs. t Represents the output obtained through the output gate, which is calculated as follows:
[0095] o t =sigmoid(W o [h t-1 ,x t ]+b o ) (Formula 6)
[0096] By t With c t The LSTM unit output h at the current moment can be obtained t :
[0097] h t =o t ⊙tanh(c t ) (Formula 7)
[0098] Through the storage unit composed of the above forget gate, input gate and output gate, LSTM can obtain and store effective time series information, thereby overcoming the long-term dependency problem to a certain extent and showing excellent performance in dealing with time series related problems.
[0099] Step S104, when it is determined based on the prediction results and the label data that the data prediction model meets the conditions for stopping iterative training, the training is stopped, and the data prediction model finally obtained is determined to be the optimal data prediction model.
[0100] Through the improved CNN network equipped with LSTM, through the design and selection of appropriate network structure and hyperparameters, the collected sensor signals are trained to obtain a classifier model with predictive ability, which is also the optimal data prediction model.
[0101] Specifically, in the embodiment of the present application, the convolutional neural network includes three convolutional units (Block1 to Block3), and each convolutional unit includes multiple convolutional layers. Figure 6As shown in the figure, it includes 11 convolutional layers, and optionally includes 1 maximum pooling layer. The final output part is a fully connected layer, which is used to output the calculation results of the CNN model. Among them, the first convolution unit includes 4 convolutional layers, the second convolution unit includes 4 convolutional layers, and the third convolution unit includes 3 convolutional layers and a maximum pooling layer. The reason why the maximum pooling layer is configured in the last convolution unit is that the previous convolutional layer has completed feature extraction as much as possible. At this time, the advantage of the pooling layer can be used to compress the receptive field of the convolutional layer to reduce the consumption of network operations.
[0102] In an alternative example, Figure 6 As shown in the figure, the pooling convolution layer is a 1×11 convolution layer, that is, the step size of the pooling convolution layer is greater than 1.
[0103] Among them, a step size greater than 1 can increase the sliding interval of the convolution kernel on the input data, thereby covering more input elements in each convolution operation, and realizing data compression and downsampling. It helps to reduce the amount of calculation and the number of parameters, and can also extract higher-level features. In addition, a larger step size will reduce the repeated coverage of the convolution kernel on the input data, thereby effectively increasing the receptive field of the convolution kernel. The receptive field is the range of input data that the convolution kernel can perceive. Increasing the receptive field can capture a wider range of contextual information, which is of great significance for processing large-scale data. In addition, a step size greater than 1 can reduce the number of convolution operations without increasing the size of the convolution kernel, thereby reducing the complexity of the model, speeding up training and reducing the risk of overfitting. A larger step size makes the convolution layer insensitive to small translations of the input data, introducing a certain degree of translation invariance. This makes the data prediction model more robust to small changes in position and can better handle input data at different positions.
[0104] The CNN-LSTM network structure parameters can be seen in Table 1 below.
[0105] Table 1
[0106]
[0107] In addition, batch normalization and RELU activation function are used after each convolution layer to prevent gradient vanishing and gradient exploding phenomena; the output layer activation function uses Sigmoid (output layer of the fully connected layer); the loss function uses the binary cross entropy function; the root mean square propagation (RMSProp) optimization algorithm is used to update the network weights; the batch size is 64. The batch size is set to 64, which means that in each iteration, 64 samples will be processed as a batch.
[0108] The data prediction model construction method provided in this embodiment obtains a set of time series sample data within a preset time period, and label data corresponding to the time series sample data, wherein the label data is the sample data collected at the next unit time corresponding to each time series sample data. The time series sample data is sequentially input into the pre-built data prediction model for iterative training to obtain the prediction results. When the data prediction model is determined to reach the condition for stopping iterative training according to the prediction results and the label data, the training is stopped to obtain the optimal data prediction model. In this process, by collecting sample data per unit time to construct a time series sample data set, the information in the time series can be fully utilized to provide strong support for subsequent prediction and analysis. When constructing a data prediction model, a combination of a convolutional neural network sub-model and a long short-term memory neural network sub-model is used to effectively capture short-term and long-term dependencies in the time series and improve the accuracy of the prediction. Moreover, in order to ensure that each eigenvalue in the receptive domain can be fully utilized, the role of different eigenvalues is more fully utilized, and the consumption of network operations is reduced at the same time, a pooling convolution layer is configured in the multiple convolution units included in the convolutional neural network sub-model in the present invention, which is located between each two adjacent convolution layers. At the same time, while using the pooling convolution layer to retain the main features, it can also reduce the noise and redundant information in the data and improve the generalization ability of the model. The above optimal data prediction model can be used to predict future data changes and trends, and then take effective measures in time. For example, temperature data can be predicted, and the fan speed can be adjusted according to the predicted future temperature data to avoid the lag of fan speed control as much as possible, thereby avoiding unnecessary losses caused by overheating of the system.
[0109] In this embodiment, a data prediction model construction method is provided, which can be used for the above-mentioned mobile terminal, such as a mobile phone, a tablet computer, etc. On the basis of the above-mentioned embodiment, a subset of time series sample data is obtained, which can be implemented by the following steps:
[0110] Within a preset time period, with the first preset time as the sliding window and the second preset time as the collection time period for the time series sample subset, target time series sample data are sequentially selected from the time series sample data collected in sequence at all unit times to form a time series sample data subset; multiple time series sample data subsets within the preset time period constitute a time series sample data set.
[0111] Specifically, the first preset time and the second preset time are both composed of multiple unit times, the second preset time is greater than the first preset time, the number of time series sample data included in the time series sample set is equal to the total number of unit times corresponding to the second preset time, and the target time series sample data is one or more data in the time series sample data collected sequentially per unit time.
[0112] In a specific example, the time series sample data is described by taking temperature data periodically collected by a temperature sensor corresponding to each of a plurality of fans according to a unit time as an example.
[0113] Take a certain model of server as an example. This model has 6 fans. Each fan duct corresponds to n temperature sensors. Let the temperature data collected by the temperature sensor corresponding to the i-th (1≤i≤6) fan be s i,j (1≤j≤n), collect s i,j Used as training and testing samples for training and testing of deep learning networks.
[0114] In this example, the sampling frequency is 1 time / min, and the s of 20 machines for 30 days are collected. i,j For details, see Figure 7 As shown in the figure, using a sliding time window with a time overlap of 240 minutes, s is converted into s in units of 1 day. i,j Divide into short-term training samples with a length of 300 minutes (i.e., 300 sampling points), forming a time series sample data subset. Figure 7 A schematic diagram of short-term sample division is shown in FIG. 1 , which is a schematic diagram of obtaining a plurality of time-domain sample data word sets ( Figure 7 In the example, it is abbreviated as sample subset). Then a total of Time series sample data.
[0115] In addition, the label of each training set sample is collected as the temperature data l at the next moment i,j All samples are divided into training set and test set in a ratio of 7:3, which are used to train the network model to enable it to have time series prediction capabilities.
[0116] Specifically, the target time series sample data is selected from the time series sample data collected at all unit times by using a sliding window, which can effectively capture the short-term trends and patterns in the time series data. Through the sliding window, data can be obtained continuously in time, avoiding the problem of data discontinuity that may be caused by random sampling. The second preset time is defined as the collection time period of the time series sample subset, and the time period is greater than the first preset time. Such a setting can ensure that the time series sample set contains enough historical data to fully reflect the long-term characteristics and trends of the time series. By increasing the time period, the model can learn richer time patterns and improve the accuracy and reliability of the prediction.
[0117] This method of obtaining a set of time series sample data within a preset time period can provide a richer, continuous and comprehensive representation of time series data, which helps to model and analyze complex patterns and relationships in time series data, and provides a valuable basis for subsequent prediction and analysis.
[0118] In an alternative example, see Figure 6 As shown in the above CNN sub-model, a point convolution layer is connected between two adjacent convolution units. Similarly, you can also refer to Figure 4 In the improved CNN network structure, the point convolution layer is also illustrated, and the point convolution layer is located between two adjacent convolution units.
[0119] Specifically, considering that two adjacent convolution units will occupy a large amount of memory when information interacts, a point convolution layer can be connected between the two adjacent convolution units to compress the number of feature maps output by the previous convolution unit in the two adjacent convolution units, thereby reducing the computational complexity of the next convolution unit.
[0120] In this embodiment, a fan speed adjustment method is provided, which can be used in the above-mentioned terminal equipment, such as a mobile phone, a tablet computer, etc. Figure 8 FIG. 4 is a flow chart of a fan speed adjustment method according to an embodiment of the present invention. Figure 8 As shown, the process includes the following steps:
[0121] Step S801 : acquiring temperature data collected by each temperature sensor of a plurality of temperature sensors corresponding to a target fan among a plurality of fans at a current moment.
[0122] Specifically, the target fan is any one of the multiple fans.
[0123] Step S802: input the temperature data collected by the first temperature sensor at the current moment into the optimal data prediction model corresponding to any of the above embodiments to predict the temperature data collected by the first temperature sensor at the next moment.
[0124] Specifically, the first temperature sensor is any one of the multiple temperature sensors. It can be seen from any of the above embodiments that the data prediction model constructed by the above embodiments can be applied to many scenarios for predicting future data, for example, it can be applied to application scenarios for predicting temperature data. Therefore, the above data prediction model can be used to predict the temperature data that each temperature sensor may collect at the next moment.
[0125] Step S803, after predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, predict the speed duty cycle of the target fan at the next moment based on the predicted temperature data collected by each of the multiple temperature sensors at the next moment.
[0126] Step S804: According to the speed duty cycle at the next moment, the target fan is controlled to adjust the speed duty cycle at the next moment.
[0127] Specifically, because the temperature data and the fan speed duty cycle are closely related. Therefore, after predicting the temperature data collected by different temperature sensors at the next moment, the speed duty cycle of the target fan at the next moment can be predicted based on the next actual collected temperature data. In the specific implementation process, for example, the functional relationship or linear relationship between the temperature data and the fan speed duty cycle can be determined based on a large amount of experimental data, and then the speed duty cycle at the next moment can be determined based on the relevant functional relationship or linear relationship, as well as the temperature data. Of course, if the fan speed duty cycle corresponding to different temperature data has been determined based on a large amount of experimental data, and the corresponding data table has been generated, the corresponding fan speed duty cycle can be queried from the data table and adjusted in a timely manner.
[0128] The fan speed adjustment method provided in this embodiment can obtain the temperature data collected by the temperature sensor in real time, and then use the optimal data prediction model to predict the temperature data at the next moment, so as to obtain the trend of temperature change in advance. In particular, it can generate the fan speed duty cycle adjustment strategy in advance according to the predicted temperature data at a certain moment, so as to more accurately control the working state of the fan, so as to better adapt to temperature changes and improve the heat dissipation effect. Moreover, optimizing the fan speed duty cycle can minimize the fan power consumption, improve the energy efficiency of the system, and reduce energy waste while meeting the heat dissipation requirements. This method can adapt to different working environments and load conditions. By continuously collecting temperature data and updating the prediction model, the fan control strategy can be adjusted in real time so that it can respond flexibly according to actual conditions, thereby improving the reliability and stability of the system. It can also avoid system failures and equipment damage caused by excessively high or low temperatures, improve the reliability and stability of the system, and extend the service life of the equipment. In this embodiment, another fan speed method is provided, which can be used for the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. Figure 8 On the basis of the corresponding method embodiment, after predicting the temperature data collected by each temperature sensor of the multiple temperature sensors corresponding to the target fan at the next moment, predicting the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each temperature sensor of the multiple temperature sensors at the next moment can be achieved by the following method:
[0129] The speed duty cycle of the target fan at the next moment is predicted based on the temperature data collected by each temperature sensor of the predicted multiple temperature sensors at the next moment and the weight coefficient corresponding to each temperature sensor.
[0130] The weight coefficient corresponding to each temperature sensor is a preconfigured coefficient;
[0131] The following formula is used to calculate the speed duty cycle of the target fan at any time:
[0132]
[0133] Among them, w j represents the weight coefficient of the jth temperature sensor in the i-th fan, s i,j is the temperature data corresponding to the jth temperature sensor in the i-th fan at any time, the i-th fan is the target fan, pwm i is the speed duty cycle of the target fan at any time, and m is the total number of temperature sensors in the target fan.
[0134] Specifically, the data from multiple sensors can provide more comprehensive temperature information. Combining the predicted data and weight coefficients of multiple temperature sensors can more accurately predict the speed duty cycle of the target fan at the next moment. Moreover, the weight coefficient can be used to adjust the impact of different temperature sensors. This can adapt to factors such as the measurement accuracy and installation location of different sensors, making the prediction results more in line with the actual situation. Finally, optimization is performed based on factors such as temperature distribution and fan layout to better meet heat dissipation requirements.
[0135] In this embodiment, a data prediction model construction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0136] This embodiment provides a data prediction model construction device, such as Fig. 9 As shown, it includes: a first acquisition module 901, a second acquisition module 902, and a processing module 903.
[0137] The first acquisition module 901 is used to acquire a time series sample data set within a preset time period, wherein the time series sample data set includes multiple time series sample data subsets, each time series sample data subset includes multiple time series sample data, and each time series sample data is sample data collected in a unit time;
[0138] The second acquisition module 902 is used to acquire label data corresponding to each time series sample data, wherein the label data is sample data collected in the next unit time corresponding to each time series sample data;
[0139] Processing module 903 is used to input the time series sample data into the pre-built data prediction model in sequence for iterative training, and obtain the prediction results corresponding to each training; wherein, the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer, the convolutional neural network sub-model includes multiple convolution units, each convolution unit includes at least one convolution layer, when the convolution unit includes multiple convolution layers, a pooling convolution layer is connected between every two convolution layers; when it is determined that the data prediction model meets the conditions for stopping iterative training based on the prediction results and label data, the training is stopped, and the data prediction model finally obtained is determined to be the optimal data prediction model.
[0140] In an optional implementation, the first acquisition module 901 is specifically configured to:
[0141] Within a preset time period, with the first preset time as a sliding window and the second preset time as a collection time period for a time series sample subset, target time series sample data are sequentially selected from the time series sample data sequentially collected at all unit times to form a time series sample data subset, and multiple time series sample data subsets within the preset time period constitute a time series sample data set; wherein the first preset time and the second preset time are both composed of multiple unit times, the second preset time is greater than the first preset time, the number of time series sample data included in the time series sample set is equal to the total number of unit times corresponding to the second preset time, and the target time series sample data is one or more pieces of data in the time series sample data sequentially collected at unit times.
[0142] In an optional implementation, a point convolution layer is connected between two adjacent convolution units.
[0143] In an optional implementation, the time series sample data is temperature data periodically collected per unit time by a temperature sensor corresponding to each of the multiple fans.
[0144] The data prediction model building device in this embodiment is presented in the form of a functional module, where the module refers to an application specific integrated circuit (ASIC), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0145] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0146] A data prediction model construction device provided by an embodiment of the present invention obtains a time series sample data set within a preset time period, and label data corresponding to the time series sample data, wherein the label data is the sample data collected at the next unit time corresponding to each time series sample data. The time series sample data is sequentially input into the pre-built data prediction model for iterative training to obtain the prediction results. When it is determined according to the prediction results and the label data that the data prediction model reaches the condition for stopping iterative training, the training is stopped to obtain the optimal data prediction model. In this process, by collecting sample data per unit time to construct a time series sample data set, the information in the time series can be fully utilized to provide strong support for subsequent prediction and analysis. When constructing the data prediction model, a combination of a convolutional neural network sub-model and a long short-term memory neural network sub-model is used to effectively capture the short-term and long-term dependencies in the time series and improve the accuracy of the prediction. Moreover, in order to ensure that each eigenvalue in the receptive domain can be fully utilized, the role of different eigenvalues is more fully utilized, and the consumption of network operations is reduced at the same time, a pooling convolution layer is configured in the multiple convolution units included in the convolutional neural network sub-model in the present invention, which is located between each two adjacent convolution layers. At the same time, while using the pooling convolution layer to retain the main features, it can also reduce the noise and redundant information in the data and improve the generalization ability of the model. The above optimal data prediction model can be used to predict future data changes and trends, and then take effective measures in time. For example, temperature data can be predicted, and the fan speed can be adjusted according to the predicted future temperature data to avoid the lag of fan speed control as much as possible, thereby avoiding unnecessary losses caused by overheating of the system.
[0147] In this embodiment, a fan speed adjustment device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0148] This embodiment provides a fan speed adjustment device, such as Fig.10 As shown, it includes: an acquisition module 1001, a processing module 1002, and an adjustment module 1003.
[0149] An acquisition module 1001 is used to acquire temperature data collected by each temperature sensor of a plurality of temperature sensors corresponding to a target fan among a plurality of fans at a current moment, wherein the target fan is any one of the plurality of fans;
[0150] Processing module 1002, used to input the temperature data collected by the first temperature sensor at the current moment into the above Figure 1In the optimal data prediction model introduced in the corresponding embodiment, the temperature data collected by the first temperature sensor at the next moment is predicted, wherein the first temperature sensor is any one of the multiple temperature sensors; after predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, the speed duty cycle of the target fan at the next moment is predicted based on the predicted temperature data collected by each of the multiple temperature sensors at the next moment;
[0151] The adjustment module 1003 is used to control the target fan to adjust the speed duty cycle at the next moment according to the speed duty cycle at the next moment.
[0152] In an optional implementation, the processing module 1002 is specifically configured to:
[0153] According to the predicted temperature data collected by each temperature sensor at the next moment and the weight coefficient corresponding to each temperature sensor, the speed duty cycle of the target fan at the next moment is predicted, and the weight coefficient corresponding to each temperature sensor is a pre-configured coefficient;
[0154] The following formula is used to calculate the speed duty cycle of the target fan at any time:
[0155]
[0156] Among them, w j represents the weight coefficient of the jth temperature sensor in the i-th fan, s i,j is the temperature data corresponding to the jth temperature sensor in the i-th fan at any time, the i-th fan is the target fan, pwm i is the speed duty cycle of the target fan at any time, and m is the total number of temperature sensors in the target fan.
[0157] The fan speed adjustment device in this embodiment is presented in the form of a functional module, where the module refers to an application specific integrated circuit (ASIC), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0158] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0159] A fan speed adjustment device provided in an embodiment of the present invention can obtain the temperature data collected by the temperature sensor in real time, and then use the optimal data prediction model to predict the temperature data at the next moment, so as to obtain the trend of temperature change in advance. In particular, it can generate an adjustment strategy for the fan speed duty cycle in advance according to the predicted temperature data at a certain moment, so as to more accurately control the working state of the fan, thereby better adapting to temperature changes and improving the heat dissipation effect. Moreover, optimizing the fan speed duty cycle can minimize the fan power consumption, improve the energy efficiency of the system, and reduce energy waste while meeting the heat dissipation requirements. This method can adapt to different working environments and load conditions. By continuously collecting temperature data and updating the prediction model, the fan control strategy can be adjusted in real time, so that it can respond flexibly according to actual conditions, thereby improving the reliability and stability of the system. It can also avoid system failures and equipment damage caused by excessively high or low temperatures, improve the reliability and stability of the system, and extend the service life of the equipment. An embodiment of the present invention also provides a BMC having the above Fig.10 Fan speed adjustment device.
[0160] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a BMC provided by an optional embodiment of the present invention, such as Fig.11 As shown, the BMC includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the BMC, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple BMCs can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 10 is taken as an example.
[0161] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0162] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0163] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a BMC presented according to a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the BMC via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0164] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0165] The BMC also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.
[0166] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the BMC, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a track ball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0167] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0168] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0169] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for constructing a data prediction model, characterized in that: The method comprises: Acquire a time series sample data set within a preset time period, wherein the time series sample data set includes a plurality of time series sample data subsets, each of the time series sample data subsets includes a plurality of time series sample data, and each of the time series sample data is sample data collected in a unit time; Acquire label data corresponding to each piece of the time series sample data, wherein the label data is sample data collected in the next unit time corresponding to each piece of the time series sample data; The time series sample data are sequentially input into a pre-built data prediction model for iterative training, and prediction results corresponding to each training are obtained; wherein the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer, the convolutional neural network sub-model includes a plurality of convolutional units, each convolutional unit includes at least one convolutional layer, and when the convolutional unit includes a plurality of convolutional layers, a pooling convolutional layer is connected between every two convolutional layers; When it is determined according to the prediction result and the label data that the data prediction model meets the condition for stopping iterative training, the training is stopped, and the finally obtained data prediction model is determined to be the optimal data prediction model.
2. The method according to claim 1, characterized in that The step of obtaining a time series sample data set within a preset time period specifically includes: Within a preset time period, a first preset time is used as a sliding window, and a second preset time is used as a collection time period for a time series sample subset. Target time series sample data are sequentially selected from the time series sample data sequentially collected at all unit times to form the time series sample data subset. Multiple time series sample data subsets within a preset time period constitute the time series sample data set; wherein the first preset time and the second preset time are both composed of multiple unit times, the second preset time is greater than the first preset time, the number of time series sample data included in the time series sample set is equal to the total number of unit times corresponding to the second preset time, and the target time series sample data is one or more pieces of data among the time series sample data sequentially collected at the unit time.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: A point convolution layer is connected between two adjacent convolution units.
4. The method according to claim 1 or 2, characterized in that: The time series sample data is temperature data periodically collected by a temperature sensor corresponding to each of the multiple fans according to a unit time.
5. A method for adjusting fan speed, characterized in that: The method comprises: Acquire temperature data collected by each of a plurality of temperature sensors corresponding to a target fan among a plurality of fans at a current moment, wherein the target fan is any one of the plurality of fans; Inputting the temperature data collected by the first temperature sensor at the current moment into the optimal data prediction model according to any one of claims 1 to 4, and predicting the temperature data collected by the first temperature sensor at the next moment, wherein the first temperature sensor is any one of the multiple temperature sensors; After predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, predicting the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the multiple temperature sensors at the next moment; According to the rotation speed duty cycle at the next moment, the target fan is controlled to adjust the rotation speed duty cycle at the next moment.
6. The method according to claim 5, characterized in that After predicting the temperature data collected by each of the multiple temperature sensors corresponding to the target fan at the next moment, predicting the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the multiple temperature sensors at the next moment, specifically includes: Predicting the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the multiple temperature sensors at the next moment and the weight coefficient corresponding to each of the temperature sensors, wherein the weight coefficient corresponding to each of the temperature sensors is a preconfigured coefficient; Specifically, the following formula is used to calculate the speed duty cycle of the target fan at any time: Among them, w j represents the weight coefficient of the jth temperature sensor in the i-th fan, s i,j is the temperature data corresponding to the jth temperature sensor in the i-th fan at any time, the i-th fan is the target fan, pwm i is the speed duty cycle of the target fan at any time, and m is the total number of the temperature sensors in the target fan.
7. A data prediction model construction device, characterized in that: The device comprises: A first acquisition module is used to acquire a time series sample data set within a preset time period, wherein the time series sample data set includes a plurality of time series sample data subsets, each of the time series sample data subsets includes a plurality of time series sample data, and each of the time series sample data is sample data collected in a unit time; A second acquisition module is used to acquire label data corresponding to each piece of the time series sample data, wherein the label data is sample data collected in the next unit time corresponding to each piece of the time series sample data; A processing module is used to input the time series sample data into a pre-built data prediction model in sequence for iterative training, and obtain prediction results corresponding to each training; wherein the data prediction model includes a convolutional neural network sub-model, a long short-term memory neural network sub-model, and a fully connected layer, the convolutional neural network sub-model includes a plurality of convolutional units, each convolutional unit includes at least one convolutional layer, when the convolutional unit includes a plurality of convolutional layers, a pooling convolutional layer is connected between every two convolutional layers; when it is determined according to the prediction results and the label data that the data prediction model meets the conditions for stopping iterative training, the training is stopped, and the data prediction model finally obtained is determined to be the optimal data prediction model.
8. A fan speed adjustment device, characterized in that: The device comprises: an acquisition module, configured to acquire temperature data collected by each of a plurality of temperature sensors corresponding to a target fan among a plurality of fans at a current moment, wherein the target fan is any one of the plurality of fans; A processing module, configured to input the temperature data collected by the first temperature sensor at the current moment into the optimal data prediction model according to any one of claims 1 to 4, and predict the temperature data collected by the first temperature sensor at the next moment, wherein the first temperature sensor is any one of the plurality of temperature sensors; after predicting the temperature data collected by each of the plurality of temperature sensors corresponding to the target fan at the next moment, predict the speed duty cycle of the target fan at the next moment according to the predicted temperature data collected by each of the plurality of temperature sensors at the next moment; The adjustment module is used to control the target fan to adjust the speed duty cycle at the next moment according to the speed duty cycle at the next moment.
9. A BMC, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the fan speed adjustment method according to any one of claims 5 or 6 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data prediction model construction method described in any one of claims 1 to 7, or to execute the fan speed adjustment method described in any one of claims 5 or 6.
Citation Information
Cited By
Glass kiln temperature intelligent prediction control method based on hybrid neural network
CN120328835A
Fan strategy adjusting method based on optimization algorithm
CN120384887A
A fan strategy adjustment method based on an optimization algorithm
CN120384887B
