A device temperature regulation method integrating long short-term memory networks
By using multi-source heterogeneous data acquisition and attention-enhanced LSTM models, combined with dual closed-loop control and online learning, the dynamic adaptability and accuracy issues of equipment temperature control in existing technologies have been solved, and stable temperature management of high-power equipment has been achieved.
Patent Information
- Application Number
- CN202511479928.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-16
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2045-10-16
AI Technical Summary
Existing temperature control technologies struggle to match dynamic load changes in high-power, long-cycle operation scenarios. Predictive models fail to capture sufficient temporal characteristics, and control strategies are simplistic and lack online update mechanisms, resulting in insufficient control accuracy and adaptability.
A dual-loop adaptive control system is constructed by using multi-source heterogeneous temperature data acquisition and adaptive preprocessing, combined with an attention-enhanced LSTM prediction model. The system also achieves adaptive model updates through online learning, dynamically adjusting the sampling frequency and control strategy.
It achieves high-precision, rapid-response, and long-term stable control of equipment temperature, adapts to equipment aging and environmental changes, and improves prediction accuracy and system efficiency.
Smart Images

Figure CN120949858B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of temperature control technology, and more specifically, to a method for regulating device temperature by incorporating a long short-term memory network. Background Technology
[0002] With the advancement of technology, the integration and power density of various electronic equipment continue to increase. Local hotspot temperatures are prone to exceeding safety thresholds, leading not only to chip performance degradation and shortened lifespan but also the risk of system downtime. Temperature control has become a core guarantee for reliable equipment operation. Existing temperature control technologies largely revolve around traditional PID control, experience-based fuzzy rule reasoning, or basic time-series models such as ARIMA and shallow neural networks. These technologies collect data using temperature sensors deployed in fixed locations and trigger adjustment actions based on preset thresholds or static parameters, achieving initial applications in low-to-medium power equipment scenarios. However, with the increasing demand for high-power, long-cycle operation, the industry's requirements for control accuracy, dynamic response speed, and long-term adaptive capabilities have significantly increased, and existing technologies are gradually being adapted.
[0003] However, it still has some drawbacks in practical use, such as:
[0004] 1. Fixed sampling frequency cannot match dynamic load changes of equipment: Existing methods mostly use preset sampling intervals. When the load changes suddenly or the temperature fluctuates rapidly, the data acquisition lag can easily lead to control delays. At low loads, redundant sampling will increase system overhead.
[0005] 2. The prediction model is not good at capturing time-series features and has limited generalization ability: Traditional models rely on static features or shallow time-series modeling, which makes it difficult to explore the long-term relationship between temperature and load. When faced with scenarios such as equipment aging and environmental changes, the prediction accuracy drops sharply.
[0006] 3. The control strategy is too simple and difficult to adapt to nonlinear characteristics: Relying solely on PID control or fuzzy rules cannot balance dynamic response speed and steady-state accuracy, and is prone to overshoot or oscillation in nonlinear scenarios of heat dissipation systems.
[0007] 4. The model lacks an online update mechanism and has poor long-term adaptability: After the model is trained, the parameters are fixed and it cannot learn new data patterns generated during the operation of the equipment. As components age and dust accumulates, the control performance gradually deteriorates. Summary of the Invention
[0008] To overcome the aforementioned deficiencies of the prior art, the present invention provides a device temperature regulation method integrating a long short-term memory network, which solves the problems mentioned in the background art through the following solution.
[0009] To achieve the above objectives, the present invention provides the following technical solution: a device temperature regulation method integrating a long short-term memory network, comprising:
[0010] S1: Multi-source heterogeneous temperature data acquisition and adaptive preprocessing: The sensor deployment location is determined by thermal simulation modeling, and temperature data is collected synchronously to construct a temperature data vector; the temperature change rate and load current change rate are calculated by collecting the load current of the device, and the sampling frequency is dynamically adjusted based on the temperature change rate and load current change rate, and the collected data is cleaned and standardized.
[0011] S2: Construction and training of LSTM prediction model with attention mechanism enhancement: The input window length and prediction step size are set according to the thermal response characteristics of the device, and a time series sample dataset is constructed based on the constructed temperature data vector, and divided into training set, validation set and test set according to time series; then the network structure is designed by using the attention and LSTM fusion architecture, and the model is trained and optimized, retaining the optimal model;
[0012] S3: Predictive and feedback dual closed-loop adaptive control: Real-time prediction and deviation calculation are performed based on the optimal model after training and optimization; then, the outer loop PI control takes the dynamic deviation as input, and generates the basic control quantity and limits it by combining the integral separation mechanism; the inner loop fuzzy correction takes the static deviation and its rate of change as input, and outputs the correction quantity after fuzzification, inference and defuzzification, and superimposes the basic control quantity to obtain the final control quantity; based on the final control quantity, control execution and safety interlocking are performed.
[0013] S4. Model Adaptive Update Based on Online Learning: Based on the data after control execution, an incremental data buffer pool is constructed, effective samples are screened and dynamically updated according to the first-in-first-out rule; a hierarchical fine-tuning strategy is adopted to adaptively update model parameters; and an update triggering and evaluation mechanism is set.
[0014] Preferably, S1 includes:
[0015] By analyzing the internal thermal field distribution characteristics of the equipment through thermal simulation modeling, the priority deployment positions of the sensors are determined based on the thermal density gradient. The sensors are simultaneously triggered to collect temperature data at their corresponding positions and load current data during equipment operation. A multi-source data vector with timestamps is constructed to ensure the spatial representativeness and temporal consistency of the data collection.
[0016] The global temperature change rate is calculated based on the collected temperature data, and the load current change rate is calculated based on the load current data. The sampling frequency is set according to the temperature change rate, and the high-frequency sampling mechanism is triggered by the load current change rate to achieve dynamic matching between the sampling frequency and the equipment operating status.
[0017] Transmission and physical range verification are performed on the collected multi-source data to filter out erroneous data. Time series analysis is used to identify and remove outliers. An appropriate imputation method is selected according to the interval of missing data to ensure the continuity of time series. Statistical features are calculated based on historical valid data. Temperature data is converted into standardized data of a uniform scale, and statistical feature parameters are retained for inverse conversion of predicted values.
[0018] Preferably, the construction of the time-series sample dataset includes:
[0019] Based on the thermal response characteristics of the equipment, the input window length and prediction step size are set. Based on the preprocessed standardized multi-source time series data, a continuous time series is extracted as the input sequence by a sliding window method. The input sequence includes temperature data and load current data within a preset time period.
[0020] The device core temperature corresponding to the prediction step size in the input window is used as the sample label to construct sample pairs of input sequence and temperature label. The generated sample pairs are divided into training set, validation set and test set in chronological order. The training set is used for model parameter learning, the validation set is used for hyperparameter tuning and model performance evaluation, and the test set is used to verify the generalization prediction ability of the model.
[0021] Preferably, the network structure design includes:
[0022] An encoding, attention, and decoding fusion architecture is adopted, in which the encoding layer consists of a first-layer LSTM network, which is used to extract features from the input sequence in the constructed time-series sample dataset and output a hidden state sequence containing time-series correlation information; the first-layer LSTM network includes: input gate, forget gate, cell state update, output gate and hidden state;
[0023] An attention mechanism layer is set between the encoding layer and the decoding layer. This attention mechanism layer takes the hidden state sequence output by the encoding layer as input, calculates the weight distribution of the hidden state at each time step, analyzes the key time step features that have a significant impact on the prediction results, and outputs a weighted fusion key temporal feature vector.
[0024] The decoding layer consists of a second-layer LSTM network, which receives the key temporal feature vectors output by the attention mechanism layer and combines them with the initial hidden state to perform sequence decoding and generate high-dimensional hidden states.
[0025] The network output layer adopts a fully connected structure, introduces nonlinearity through activation function, extracts key prediction features through dimensionality reduction, and then outputs standardized predicted temperature. Inverse standardization is used to convert the standardized predicted value into the actual temperature. The parameter dimension of the output layer is adapted to the prediction step size.
[0026] Preferably, the model training and optimization includes:
[0027] Based on the training set in the constructed time-series sample dataset as input, a loss function with regularization is used to quantify the deviation between the predicted value and the sample label. The network parameters are iteratively updated through a gradient descent optimizer, where the regularization term is used to suppress model overfitting.
[0028] During training, the learning rate is dynamically adjusted, and a step-decay strategy is used to balance the model convergence speed and parameter optimization accuracy.
[0029] The model prediction performance is monitored in real time based on the validation set. When the validation set performance does not improve for a set of consecutive rounds, an early stop mechanism is triggered to avoid overtraining.
[0030] The model's generalization ability in different training rounds is evaluated using a test set. The model with the best performance on the validation set and the smallest generalization error on the test set is selected as the final optimal model. At the same time, the model structure and corresponding parameters are saved for subsequent real-time prediction.
[0031] Preferably, the outer loop PI control includes:
[0032] The dynamic deviation calculated based on the deviation is used as input. The basic control quantity is generated through the collaboration of the proportional term and the integral term. The proportional term is proportional to the current value of the dynamic deviation, and the integral term accumulates the historical dynamic deviation. An integral separation mechanism is introduced to dynamically adjust the integral coefficient according to the absolute value of the dynamic deviation: when the dynamic deviation exceeds the preset threshold, the integral coefficient is reduced to avoid integral saturation; when the dynamic deviation is within the preset threshold, the integral coefficient is restored.
[0033] Set upper and lower limits for the cumulative amount of the integral term to limit the cumulative range of historical deviations; perform amplitude limiting on the control quantity after the proportional and integral terms are superimposed to keep it within the physical adjustment range of the actuator, and output the amplitude-limited basic control quantity to provide the initial adjustment basis for inner loop fuzzy correction.
[0034] Preferably, the inner ring blur correction includes:
[0035] Based on the static deviation and its rate of change obtained from the deviation calculation as input, the precise values of the static deviation and the rate of change of deviation are converted into corresponding fuzzy sets through a preset membership function. The fuzzy sets contain linguistic variables that reflect the degree of deviation.
[0036] Reasoning is performed based on a preset fuzzy rule base, which consists of multiple mapping rules between input fuzzy states and output correction actions. Valid rules are determined by calculating the trigger strength of each rule.
[0037] A defuzzing algorithm is used to convert the fuzzy output of effective rules into precise correction values. The defuzzing algorithm performs weighted calculations based on the trigger strength of each rule and the corresponding output center value.
[0038] The precise correction value is superimposed on the basic control value output from the outer loop, and after amplitude limiting, the final control value is obtained, thereby realizing real-time dynamic correction of the basic control value to compensate for the nonlinear characteristics of the equipment and the model prediction error.
[0039] Preferably, the control execution and safety interlock includes:
[0040] The final control quantity output based on the inner loop fuzzy correction is converted into an adjustment signal adapted to the actuator, which drives the actuator to act according to the intensity corresponding to the control quantity, thereby realizing the dynamic adjustment of the heat dissipation capacity of the equipment. The adjustment signal and the physical adjustment parameters of the actuator are in a preset correlation relationship.
[0041] Multiple temperature safety thresholds are preset, including warning temperature thresholds and critical temperature thresholds. The warning temperature threshold is higher than the target temperature of the equipment, and the critical temperature threshold is higher than the warning temperature threshold.
[0042] The system monitors the current core temperature of the equipment and the future temperature prediction value output by the model in real time. When any of the following conditions are met, a safety interlock mechanism is triggered: the current core temperature exceeds the critical temperature threshold, or the temperature prediction value for a preset time in the future exceeds the warning temperature threshold.
[0043] Once the safety interlock mechanism is activated, the actuator operates at the maximum adjustment intensity and triggers an alarm signal. When the current core temperature of the equipment drops below the warning temperature threshold and the future temperature prediction value stabilizes within the safe range, the safety interlock is released, and the dual closed-loop adaptive control mode is restored.
[0044] Preferably, the incremental data buffer pool includes:
[0045] A first-in-first-out buffer is constructed to store the valid samples required for model updates. The sample sources are multi-source time-series data collected after control execution and corresponding real temperature values, forming sample pairs of real-time input sequences and real temperature labels.
[0046] The samples to be stored in the buffer pool are double-verified: first, sensor status verification and data physical rationality verification are performed to filter out data that are faulty or outside the normal operating range of the equipment; then, the model prediction error corresponding to the sample is calculated, and only samples whose prediction error meets the preset threshold are retained to ensure that the sample contains new feature information that the model needs to learn.
[0047] Set a preset capacity for the buffer pool. When the sample storage reaches the capacity limit, delete the earliest stored sample in chronological order of timestamp and add a new qualified sample. Regularly clean up old samples in the buffer pool that have exceeded the preset storage time to maintain the consistency between the data in the buffer pool and the current operating characteristics of the equipment.
[0048] The effective sample set output by the buffer pool is used for subsequent hierarchical fine-tuning of the model, providing a high-quality and timely data foundation for adaptive updates of model parameters, and avoiding the impact of noisy or outdated data on the model update effect.
[0049] Preferably, the adaptive update of model parameters includes:
[0050] A hierarchical parameter adjustment strategy is adopted, which divides the model into frozen layers and fine-tuning layers based on the functional differences of each layer: the layer where the network coding layer learns general temporal features is set as the frozen layer, and its trained parameters are fixed to retain historical knowledge and avoid catastrophic forgetting; the layers where the attention layer, decoding layer and output layer are associated with the current operating characteristics of the device are set as fine-tuning layers, and only the parameters of this type of layer are updated.
[0051] The effective sample set output from the incremental data buffer pool is used as the update data source. The fine-tuning layer is input in a mini-batch iterative manner, and the loss function with a learning rate and knowledge distillation constraint is configured to be lower than that in the initial training stage. The knowledge distillation constraint term is used to quantify the difference between the output of the new model and the output of the original optimal model, and to balance the new data adaptation ability and the old knowledge retention effect.
[0052] During the iterative update process, the convergence status of the fine-tuning layer parameters and the sample prediction error are monitored in real time. When the error does not decrease or increases after a series of preset iterations, the current update is terminated. After the update is completed, the generalization error of the new model and the original model is compared on the independent validation sample set. The original model parameters are replaced only if the error of the new model is lower than that of the original model and meets the preset accuracy requirements. Otherwise, the update results are discarded and the original model parameters are kept unchanged.
[0053] The technical effects and advantages of this invention are as follows:
[0054] 1. Dynamically adjust sampling frequency to match load and temperature changes: Combine the rate of temperature change and the rate of load current change to adjust the sampling frequency in real time. When the load changes abruptly, the sampling density is automatically increased to capture details, and the frequency is reduced to reduce overhead when the load is low, thus balancing data timeliness and system efficiency.
[0055] 2. Attention-enhanced LSTM deeply captures temporal features and improves generalization ability: Through the encoding, attention, and decoding architecture, it focuses on key time step features, strengthens the long-term and short-term correlation learning between temperature and load, and significantly improves the prediction accuracy for scenarios such as equipment aging and environmental fluctuations.
[0056] 3. Dual closed-loop control integrates PI and fuzzy correction to adapt to nonlinear characteristics: the outer loop PI control ensures the stability of basic regulation, while the inner loop fuzzy correction dynamically compensates for nonlinear deviations, taking into account both response speed and steady-state accuracy, and effectively suppressing overshoot and oscillation.
[0057] 4. Online learning enables adaptive model updates and ensures long-term performance: Valid samples are selected through an incremental data buffer pool, and model parameters are fine-tuned in layers. While retaining historical knowledge, new features are learned, and high-precision control can be maintained during long-term operation, reducing the need for manual intervention. Attached Figure Description
[0058] Figure 1 This is a schematic diagram of the overall structure of the present invention.
[0059] Figure 2 This is a schematic diagram of the S2 process of the present invention.
[0060] Figure 3 This is a schematic diagram of the S3 process of the present invention.
[0061] Figure 4 This is a schematic diagram of the S4 process of the present invention. Detailed Implementation
[0062] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0063] refer to Figures 1-4 The device temperature regulation method shown includes:
[0064] S1: Multi-source heterogeneous temperature data acquisition and adaptive preprocessing: The sensor deployment location is determined by thermal simulation modeling, and temperature data is collected synchronously to construct a temperature data vector; the temperature change rate and load current change rate are calculated by collecting the load current of the device, and the sampling frequency is dynamically adjusted based on the temperature change rate and load current change rate, and the collected data is cleaned and standardized.
[0065] S2: Construction and training of LSTM prediction model with attention mechanism enhancement: The input window length and prediction step size are set according to the thermal response characteristics of the device, and a time series sample dataset is constructed based on the constructed temperature data vector, and divided into training set, validation set and test set according to time series; then the network structure is designed by using the attention and LSTM fusion architecture, and the model is trained and optimized, retaining the optimal model;
[0066] S3: Predictive and feedback dual closed-loop adaptive control: Real-time prediction and deviation calculation are performed based on the optimal model after training and optimization; then, the outer loop PI control takes the dynamic deviation as input, and generates the basic control quantity and limits it by combining the integral separation mechanism; the inner loop fuzzy correction takes the static deviation and its rate of change as input, and outputs the correction quantity after fuzzification, inference and defuzzification, and superimposes the basic control quantity to obtain the final control quantity; based on the final control quantity, control execution and safety interlocking are performed.
[0067] S4. Model Adaptive Update Based on Online Learning: Based on the data after control execution, an incremental data buffer pool is constructed, effective samples are screened and dynamically updated according to the first-in-first-out rule; a hierarchical fine-tuning strategy is adopted to adaptively update model parameters; and an update triggering and evaluation mechanism is set.
[0068] The specific analysis is as follows:
[0069] S1: Multi-source heterogeneous temperature data acquisition and adaptive preprocessing
[0070] S101: Intelligent Sensor Network Deployment and Synchronous Data Acquisition: Thermal simulation software is used to perform thermodynamic modeling of the equipment. Equipment structural parameters, heat source power, and heat dissipation conditions are input. A three-dimensional coordinate system encompassing the entire equipment is set up, and a three-dimensional thermal density cloud map is output after simulation. ,in , , For the internal three-dimensional coordinates of the equipment, This indicates the temperature gradient at that location, and its unit is ℃ / mm. The larger the value, the more drastic the temperature change.
[0071] Next, for the pre-set candidate deployment points inside the device, their priorities are calculated and sorted from high to low. The top D points are selected as sensor deployment locations to ensure coverage of the core area with the most significant temperature changes. All sensors are then connected to the main controller via a bus, and a built-in timer generates a period of: A synchronization pulse signal is used to ensure that all sensors sample at the same time; after each sampling, the sampled temperature is read sequentially according to the sensor number to construct a data vector. ,in Sampling time, The actual sampled temperature is represented by each element in the data vector, which corresponds to the measured temperature of a sensor. The data vector is transmitted to the edge computing node via a bus. The sending time is added to the header of the data frame, and the receiving end records the receiving time to ensure that the transmission delay is less than 5ms. Here, t is the sampling time and k is the sampling period.
[0072] S102: Adaptive Frequency Acquisition: The sampling frequency is dynamically adjusted according to the degree of temperature change to reduce redundant data while ensuring data validity. The specific steps are as follows:
[0073] The initial parameter settings define three sampling frequencies: a base frequency of 2Hz with a corresponding sampling period of 0.5s, a medium frequency of 5Hz with a corresponding sampling period of 0.2s, and a high frequency of 10Hz with a corresponding sampling period of 0.1s; the base frequency is used by default in the initial state.
[0074] Constructing a temperature change rate function: Determining dynamic temperature characteristics, calculating the change rate of a single sensor: For the first... Using one sensor, calculate the rate of temperature change between two consecutive samples: ,in This represents the previous sampling period, and the maximum value of the rate of change from all sensors is taken. It serves as an indicator for judging the degree of drastic change in overall temperature.
[0075] Dynamic frequency decision: If This indicates that the temperature is stable, and the sampling period is based on the fundamental frequency. ;like This indicates a moderate temperature change, using a medium-frequency sampling period. ;like This indicates a drastic temperature change, and a high-frequency sampling period is used. ;
[0076] Load linkage: Real-time acquisition of equipment load current Calculate the rate of change of current. ;like This indicates a rapid increase in load, suggesting a potential surge in temperature, and necessitates a forced switch to a higher frequency sampling period. The timer is maintained for 5 seconds to avoid data loss due to lag caused by temperature changes.
[0077] S103: Data Cleaning and Standardization: Error data is filtered through CRC checksum; temperature values exceeding the physically reasonable range (-40℃-150℃) are removed; outliers and missing values are identified using the sliding window MAD method with a window size of 10, and values with a deviation greater than 3 times the median deviation are removed; short-interval missing values less than or equal to 2s are filled with linear interpolation, and long-interval missing values greater than 2s are filled with historical averages to ensure temporal continuity; finally, Z-score standardization is performed on the temperature data: for each sensor d, the mean is calculated based on historical data. and standard deviation Then, the true temperature is converted into standardized data with a mean of 0 and a standard deviation of 1 using a standardization function to eliminate the influence of differences in temperature ranges from different sensors on the model. Finally, the standardized predicted values output by the model are restored to the actual temperature using an inverse standardization function, which is: The inverse normalization function is: , This is the predicted temperature value.
[0078] S2: Construction and Training of LSTM Prediction Model with Enhanced Attention Mechanism
[0079] By constructing an end-to-end model that integrates temporal feature encoding, key information focusing, feature decoding, and temperature prediction, high-precision prediction of the future core temperature of the equipment is achieved. The specific analysis is as follows:
[0080] S201: Construction of Time Series Sample Dataset
[0081] Window and step size settings: Based on the device's thermal response characteristics, the input window length is set to L=300, corresponding to 30 seconds of historical data, calculated at the highest sampling frequency of 10Hz, containing 300 time steps to ensure coverage of the complete temperature change cycle; the prediction step size is set as follows: To match the response delay of the temperature control system;
[0082] Sample generation process: First, input sequences are used to construct the sample from standardized multi-source data. In the middle, the input sequence is truncated using a sliding window method: Where N is the total time step and D is the feature dimension. The end time of the window. Each input sequence contains 30 seconds of historical features; then, labels are defined based on the end time of the window. After that, the The temperature of the core heat-generating component in the step is labeled (the target that the model needs to predict), that is: ,in To obtain the true value of the core temperature, it is necessary to reconstruct it from the standardized data through inverse standardization;
[0083] Dataset partitioning: The dataset is partitioned chronologically to avoid future data being leaked into historical data: Training set: the first 70% of samples are used for model parameter learning; Validation set: the last 20% of samples are used for hyperparameter tuning; Test set: the last 10% of samples are used for final performance validation.
[0084] S202: Network Structure Design: An attention and LSTM fusion architecture is adopted, which realizes temporal feature extraction, key information focusing, and future temperature prediction through a three-level structure of encoding, attention, and decoding. The design and computation logic of each layer are as follows:
[0085] A1: First LSTM temporal feature encoding layer: Converts 30 seconds of multi-source time-series data (L*D) into a high-dimensional temporal feature sequence to capture the long-term dependence of temperature and load;
[0086] Parameter configuration: The number of hidden units H is 64, the input dimension D is the same as the number of features, and batch input is supported;
[0087] Gated computation: LSTM dynamically updates the cell state through input gates, forget gates, and output gates, where... The input sequence contains time steps, not global time. The specific analysis is as follows:
[0088] Input gate: controls the proportion of new information entering the cell state; the larger the value, the more new features are retained. Its specific mathematical function is: ;
[0089] Forgetting gate: controls the proportion of old cell states retained; the larger the value, the less historical information is forgotten. Its specific mathematical function is: ;
[0090] Cell state update: combining forgotten old states with newly selected information to store long-term temporal features: , ;
[0091] Output gate and hidden state: Extract the effective features of the current time step from the cell state and output the hidden state: , ;
[0092] in Input features for the current time step. This is the previous time step concealment state. For trainable weight matrix, For bias vectors, Here, is the Sigmoid function, tanh is the hyperbolic tangent function, and ⊙ is the element-wise product;
[0093] Output: The coding layer outputs a sequence of hidden states over 300 time steps. Each hidden state corresponds to a high-dimensional feature at a time step.
[0094] A2: Attention Layer: Automatically assigns higher weights to time steps that are more important for prediction, improving prediction accuracy. A detailed analysis follows:
[0095] Parameter configuration: The attention dimension is set to 32 to control the complexity of weight calculation;
[0096] Energy score calculation: Evaluating the hidden state at each time step Relevance to prediction tasks: ,in The hidden state weight matrix of the attention layer is applied to the hidden state output of the first LSTM layer. This is used to transform the hidden states into a feature space suitable for calculating importance scores; The score vector of the attention layer, and The transformed features are multiplied by an inner product to output the energy score for a single time step. This is the bias vector for the attention layer, used to adjust... Transformed characteristic baseline;
[0097] Attention weight normalization: Energy scores are converted into weights using the Softmax function. ,in For serial numbers;
[0098] Context vector generation: Weighted summation of the hidden state sequence according to weights to condense key temporal features: ,in For serial numbers;
[0099] Output: A single context vector, replacing the last hidden state of a traditional LSTM, retaining only the information most critical to the prediction;
[0100] A3: Second LSTM feature decoding layer: Further refines the context vector output by the attention layer, mapping key temporal features into core features required for future temperature prediction;
[0101] Parameter configuration: The number of hidden units is 32, which is lower than the encoding layer to avoid overfitting; the input dimension is 64, which is consistent with the dimension of the context vector.
[0102] Its computational logic is as follows: It uses the same gating mechanism as the first-layer LSTM, but only takes a context vector as input instead of a time sequence, and outputs the hidden state of the last time step. ,in , These represent the initial hidden state and the cellular state of the decoding layer, respectively.
[0103] A4: Output Layer Temperature Prediction: This involves converting the high-dimensional hidden states of the decoding layer into the final core temperature prediction value. The specific analysis is as follows:
[0104] Fully connected hidden layers: Introducing nonlinearity through the ReLU activation function to reduce dimensionality and extract key prediction features. ,in , These are trainable parameters;
[0105] Linear prediction layer: Outputs standardized predicted temperature (because the input data has been standardized): ,in , These are trainable parameters;
[0106] Actual temperature restoration: Converting standardized predicted values to actual temperatures (unit: °C) through inverse standardization: ,in , The historical standard deviation and mean of the core temperature;
[0107] It should be further explained that in the first layer, the subscript 'i' corresponds to the input gate, controlling the proportion of new information entering the cell state; the subscript 'f' corresponds to the forget gate, controlling the proportion of old cell states retained; the subscript 'c' corresponds to the cell state, used to store long-term temporal features; the subscript 'o' corresponds to the output gate, controlling the current hidden state extracted from the cell state; and the subscript 'x' indicates that the input to the weight matrix is the original feature of the current time step. The subscript 'h' indicates that the input to the weight matrix is the hidden state of the previous time step. In the attention layer, 'a' is only used to identify that the parameter is related to the attention mechanism; in the output layer, 'fc' is only used to identify that the parameter is a parameter of the non-linear feature transformation sublayer in the output layer, and 'o' is used to identify that this is a parameter of the final prediction sublayer in the output layer, without any mathematical meaning.
[0108] S203: Model Training and Optimization: Through loss function definition, optimizer configuration, regularization strategy, and hyperparameter tuning, the model learns patterns on the training set while ensuring generalization ability on the validation and test sets. A detailed analysis follows:
[0109] Loss function design: The mean squared error (MSE) with L2 regularization is used as the loss function, which measures the deviation between the predicted and actual values while preventing overfitting due to excessively large parameters. Mean squared error: reflects the accuracy of prediction; the smaller the value, the better. ,in The number of samples input for each training session. The standardized predicted value and label of the i-th sample; L2 regularization term, to prevent overfitting: penalizes excessively large model parameters. Regularization strength: ,in This refers to all trainable parameters of the model, including the weight matrix and bias vector.
[0110] Optimizer configuration: The Adam optimizer is selected, which dynamically adjusts the learning rate and is suitable for training complex time series models. The parameter update steps are as follows:
[0111] Calculate the gradient of the loss function with respect to the parameters: ;
[0112] First-order moment estimation: ;
[0113] Second-order moment estimation: ;
[0114] Deviation correction: ;
[0115] Gradient clipping: If the gradient norm Scale the gradient proportionally:
[0116]
[0117] Parameter update: The initial learning rate tc is the number of iterations. To prevent smooth terms with a denominator of 0;
[0118] Regularization strategy:
[0119] Dropout: A Dropout layer is added after the output of the first LSTM layer. During training, 30% of the hidden state neurons are randomly deactivated, and they are restored during testing. This avoids the model from becoming overly reliant on specific neurons. Its mathematical function is: ,in Let be a Bernoulli distributed random vector with elements of 0 or 1, and probabilities of 0.3 and 0.7 respectively.
[0120] Early stopping: If the validation set is lost If the parameters do not decrease after 5 consecutive iterations, stop training immediately, save the current optimal parameters, and avoid model overfitting.
[0121] Learning rate decay: The learning rate decays by 10% every 10 iterations. A larger learning rate is used in the early stages to achieve rapid convergence, and a smaller learning rate is used in the later stages to fine-tune the parameters.
[0122] Hyperparameter optimization: This involves optimizing key hyperparameters of the model, with the goal of maximizing the coefficient of determination on the validation set. The closer it is to 1, the better the prediction effect. The optimized hyperparameters and search range are as follows:
[0123] Hyperparameters: Input window length L, search range: [200, 400], controls the length of historical data;
[0124] Hyperparameters: H is the number of hidden units in the first LSTM layer, and the search range is [32, 128], which controls the ability to extract temporal features;
[0125] Hyperparameters: learning rate, search range: [1e-4, 1e-2], control parameter update step size;
[0126] Hyperparameter: Dropout rate, search range: [0.2, 0.5], controls the regularization strength;
[0127] Bayesian optimization is used to predict the optimal parameter combination based on historical optimization results, and the final hyperparameter configuration is determined after 50 iterations.
[0128] Model Saving and Evaluation: After training, save the model parameters that minimize the loss on the validation set; evaluate performance on the test set, with key metrics including:
[0129] Mean Absolute Error (MAE): ;
[0130] Coefficient of determination R²: This indicates that the model can explain more than 95% of temperature change patterns.
[0131] S3: Adaptive Control with Prediction and Feedback Dual Closed-Loop
[0132] By employing a dual-layer control structure of prediction and feedback loops, precise regulation of the core temperature of the equipment is achieved. Model prediction is used to anticipate temperature changes, and real-time feedback eliminates instantaneous deviations. Specifically, the system comprises four stages: real-time prediction and deviation calculation, outer-loop PI control, inner-loop fuzzy correction, and control execution and safety interlocking. A detailed analysis follows:
[0133] S301: Implementation of Prediction and Deviation Calculation: Based on the attention-enhanced LSTM model trained in S2, future temperature predictions are generated in real time, and prediction deviations and real-time deviations are calculated to provide input signals for dual closed-loop control. The specific steps are as follows:
[0134] Real-time input sequence construction: From the preprocessed standardized data, extract the multi-source features from the most recent 300 time steps to construct the input sequence. ,in For the current time step, D represents the feature dimension, ensuring that the input format is consistent with the S2 training samples;
[0135] Future temperature forecast: Input the trained model and output the predicted core temperature 15 seconds later: The inverse normalization operation of the model output layer restores the normalized predicted values to the actual temperature, with the unit being °C.
[0136] Definition of deviation function:
[0137] Dynamic deviation (prediction loop input): Reflects the degree of deviation between the future temperature trend and the target, used for advance control. ,in The preset target temperature for safe operation of the equipment;
[0138] Static deviation (feedback loop input): reflects the instantaneous deviation of the current temperature from the target temperature, used for real-time correction. ,in This represents the actual core temperature at the current moment.
[0139] S302: Outer loop PI control: The outer loop uses dynamic deviation... As input, a basic control quantity is generated through proportional and integral control to achieve early intervention in future temperature trends. At the same time, integral separation is used to avoid control saturation when there is a large deviation. The specific steps are as follows:
[0140] PI control function construction:
[0141] Proportional term: directly proportional to dynamic deviation; the larger the deviation, the more drastic the control adjustment, quickly suppressing temperature trend deviation. ,in This is the proportionality coefficient;
[0142] Integral term: Accumulates historical deviations and gradually corrects long-standing small deviations, but introduces an integral separation mechanism to avoid integral saturation when there are large deviations: The integral coefficient The dynamic adjustment rule is: when , ;otherwise , This refers to the time from the start of the control system to the current control cycle.
[0143] Basic control quantity: the sum of the proportional and integral terms, used as the outer loop output. ;
[0144] Amplitude limiting:
[0145] Integral term limit: Limits the range of accumulated integrals to prevent long-term deviations from causing the integral term to become too large. ;
[0146] Output limiting: Limits the basic control quantity within the physical range of the actuator. ;
[0147] S303: Inner Ring Blur Correction: The inner ring uses static deviation... Its rate of change is the input, and fuzzy control is used to... Real-time corrections are performed to address the nonlinear characteristics of the equipment's heat dissipation system. The specific analysis is as follows:
[0148] Input variable fuzzification: converting precise values into fuzzy language, the specific analysis of which is as follows:
[0149] Static deviation : Range [-5℃, 5℃], covering common temperature fluctuation ranges, defining 5 fuzzy sets: {NB (negative large, temperature is much lower than the target or the temperature drops rapidly), NM (negative medium, temperature is lower than the target and the temperature change rate is stable), ZO (zero, close to the target and the temperature change rate is stable), PM (positive medium, temperature is higher than the target and the temperature change rate is stable), PB (positive large, temperature is much higher than the target or the temperature rises rapidly)};
[0150] Membership function: , , , , ;
[0151] The rate of change of deviation reflects the speed at which the temperature deviates from the target, and is calculated using the following formula: The unit is (℃ / s), where x is The precise value;
[0152] Construction of a fuzzy rule base: Its fuzzy rule format is as follows: Premise 1: The fuzzy states include: {NB, NM, ZO, PM, PB}; Premise 2: The fuzzy states include: {NB, NM, ZO, PM, PB}; therefore, a total of 25 rules are formed, covering all possible temperature states;
[0153] Fuzzy Reasoning and Defuzzification: From Fuzzy Decision Making to Precise Correction Quantities;
[0154] Inference strength calculation: For each rule, calculate the minimum membership degree of the input variable belonging to the corresponding fuzzy set, which serves as the trigger strength of the rule. Where k is the fuzzy rule ordinal number, , respectively , Membership degree;
[0155] Centroid method for defuzzification: Set output center value for each fuzzy set: {-50, -20, 0, 20, 50}, based on engineering experience, reflecting the magnitude of the correction corresponding to the fuzzy state;
[0156] The precise correction amount is obtained by summing the outputs of all triggering rules in terms of intensity weighting. ,in The number of rules to be triggered, where k is the sequence number. This is the output center value corresponding to the conclusion of the k-th rule;
[0157] Final control quantity: The outer loop basic control quantity and the inner loop correction quantity are superimposed and limited to the actuator range. ;
[0158] S304: Control Execution and Safety Interlock: The final control quantity... This is translated into specific actions by the actuator, while safety monitoring logic prevents temperature from exceeding limits, ensuring equipment safety. The specific operation is as follows:
[0159] Executor driver function:
[0160] Fan control: The relationship between fan speed and duty cycle is shown in the model below: , where N is the fan speed;
[0161] Water-cooled valve control:
[0162] The relationship model between flow rate and valve opening degree is as follows:
[0163] , where Q is the cooling water flow rate;
[0164] Security monitoring logic:
[0165] Set threshold: Warning temperature: The temperature is too high; critical temperature: The critical condition has been reached;
[0166] Alarm Trigger: Safety protection will be activated immediately if any of the following conditions are met:
[0167] B1: Predicted Temperature This indicates that the limit may be exceeded in the future;
[0168] B2: Current Temperature This indicates that the value is approaching a danger level;
[0169] After triggering, force This means that the actuator is running at full load, and an audible and visual alarm is activated simultaneously.
[0170] Alarm cleared: When and When necessary, turn off the alarm;
[0171] S4: Adaptive Model Update Based on Online Learning
[0172] During long-term operation of the equipment, the heat dissipation system will gradually deviate from the initial model's training distribution due to factors such as component aging, environmental changes, and load characteristic drift, thereby reducing the accuracy of the prediction model in S2. S4 achieves adaptive updates of the prediction model through incremental data learning and dynamic fine-tuning of model parameters, ensuring that it maintains high-precision prediction capabilities over the long term. Specifically, it consists of three core steps: incremental data buffer pool management, online model fine-tuning strategy, and update triggering and evaluation mechanism.
[0173] S401: Incremental Data Buffer Management: Continuously collects high-quality, representative new data to provide reliable material for model updates and avoids noisy data from polluting the training process.
[0174] C1: Buffer Pool Initialization and Capacity Design
[0175] Create a first-in-first-out buffer pool Used to store sample pairs of input sequences and real labels. The capacity is set as follows: This ensures that enough samples are included to reflect recent temperature characteristics, while avoiding computational redundancy caused by excessive data volume.
[0176] C2: Sample Selection and Storage Rules
[0177] After each model outputs a predicted value, you need to wait... To predict the step size, obtain the true core temperature at that moment. And the samples are selected according to the following rules:
[0178] Validity verification: If the actual temperature exist If the physical conditions are within a reasonable range, then proceed to the next screening step;
[0179] Information filtering: Calculating prediction error Only retain The sample; if Discard it to save storage space;
[0180] Sample storage: Samples that meet the criteria Stored in the buffer pool in timestamp order. ,in The 300-step input sequence used for prediction. This is a real label.
[0181] C3: Buffer pool dynamic update
[0182] When the number of samples in the buffer pool reaches its capacity When this happens, a FIFO update is triggered: the oldest stored sample is deleted, and a new sample is added simultaneously, i.e.: Every day during periods of low device load, old samples older than 7 days in the buffer pool are automatically cleaned up to prevent long-term accumulated aging data from affecting the model's learning of the current state.
[0183] S402: Online model fine-tuning strategy: Based on incremental data in the buffer pool, the model parameters are updated using a small-batch, low-learning-rate fine-tuning method. This retains historical knowledge while learning new patterns, avoiding the loss of the model's predictive ability for early temperature patterns after the update.
[0184] D1: Fine-tuning data preparation: from the buffer pool Randomly selected from Each sample constitutes a fine-tuning batch, which is then divided into input sequences according to the S201 method. and tags The labels are then Z-score standardized and updated with the latest mean. and standard deviation To ensure consistency with the current data distribution;
[0185] D2: Parameter Freezing and Training Layer Selection: A hierarchical fine-tuning strategy is adopted: the parameters of the first LSTM layer in the S2 model are frozen, and only the parameters of the attention layer and the second LSTM decoding layer are fine-tuned. These parameters are more focused on device-specific features. The learning cost of the lower-level parameters for general rules is high, and freezing can avoid the loss of historical knowledge. The upper-level parameters are more closely related to the current state of the device, and fine-tuning can quickly adapt to new features.
[0186] D3: Fine-tuning the optimizer and the loss function:
[0187] Optimizer: The Adam optimizer is used, with the learning rate set to 0.1 times that of the initial training phase to ensure small and stable parameter updates and avoid drastic adjustments that could cause model oscillations.
[0188] Loss function: The MSE loss with knowledge distillation is used to minimize the prediction error of new data and constrain the difference between the output of the new model and the output of the old model. The formula is as follows:
[0189]
[0190] in, The mean squared error of the new data is used to ensure that the model adapts to the new patterns. KL divergence measures the difference between two distributions. For the old model's predictions of the same input, a constraint weight of 0.2 ensures that the new model retains the effective knowledge of the old model; the weight allocations of 0.8 and 0.2 are determined through validation set debugging to balance learning new information with retaining old knowledge.
[0191] Fine-tuning iteration control: Each fine-tuning iteration is only one. Each epoch involves a complete traversal of 64 samples three times to avoid overfitting to incremental data. During fine-tuning, the training loss is monitored in real time. If the loss increases for two consecutive epochs, the current fine-tuning is stopped immediately to prevent parameter deterioration.
[0192] S403: Update Triggering and Evaluation Mechanism: Model updates must meet the requirements of necessity and effectiveness: updates are only triggered when model performance drops below a threshold, and the updated model must be superior to the old model before it is allowed to go live, ensuring system stability;
[0193] Update trigger condition: Calculate the model's mean absolute error over the most recent 100 predicted samples every hour. Fine-tuning is triggered when any of the following conditions are met:
[0194] Condition 1: The accuracy decreased by half compared to the initial accuracy of 0.5℃, indicating a significant reduction in prediction accuracy.
[0195] Condition 2: 3 consecutive hours An upward trend indicates a continued deterioration in model performance;
[0196] Post-update evaluation metrics: After fine-tuning, the performance of the new model is evaluated on an independent validation set (20% of the samples reserved from the buffer pool that were not involved in fine-tuning). Key metrics include:
[0197] Mean Absolute Error : Must meet The new model has higher accuracy;
[0198] Maximum error : Must meet There are no extreme prediction errors, avoiding triggering false alarms;
[0199] Stability Indicators The standard deviation of the prediction error needs to be It has small error fluctuations and more stable control.
[0200] Model replacement and rollback mechanism:
[0201] If the new model meets all evaluation metrics, then the old model will be replaced and used as the prediction model for S2.
[0202] If the conditions are not met, discard the new model, retain the old model, record the reason for failure, and adjust the strategy the next time it is triggered.
[0203] Save the last 3 model snapshots. If an anomaly occurs within 24 hours after the new model is launched, automatically roll back to the most recent stable old model.
[0204] Secondly: The accompanying drawings of the embodiments disclosed in this invention only involve the structures involved in the embodiments disclosed in this invention. Other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of this invention can be combined with each other.
[0205] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A device temperature adjustment method of a fusion long short-term memory network, characterized by, The application relates to a temperature prediction method based on an online learning LSTM model, which comprises the following steps: S1: multi-source heterogeneous temperature data acquisition and adaptive preprocessing: determining a sensor deployment position through thermal simulation modeling, synchronously acquiring temperature data to construct a temperature data vector; By collecting the load current of the equipment, the temperature change rate and the load current change rate are calculated, and the sampling frequency is dynamically adjusted based on the temperature change rate and the load current change rate; the collected data is cleaned and standardized; S2: construction and training of an attention mechanism enhanced LSTM prediction model: setting an input window length and a prediction step according to the thermal response characteristics of the equipment, constructing a time sequence sample data set based on the constructed temperature data vector, and dividing the time sequence into a training set, a verification set and a test set; Then, a network structure is designed by adopting an attention and LSTM fusion architecture, and the model is trained and optimized, and the optimal model is reserved; The network structure design comprises the following steps: An encoding, attention and decoding fusion architecture is adopted, wherein the encoding layer is composed of a first layer LSTM network, which is used for feature extraction of an input sequence in the constructed time sequence sample data set and outputs a hidden state sequence containing time sequence correlation information; the first layer LSTM network comprises an input gate, a forgetting gate, a cell state update, an output gate and a hidden state; An attention mechanism layer is arranged between the encoding layer and the decoding layer, the attention mechanism layer takes the hidden state sequence output by the encoding layer as input, calculates the weight distribution of each time step hidden state, analyzes the key time step features that significantly affect the prediction result, and outputs a weighted fusion key time sequence feature vector; The decoding layer is composed of a second layer LSTM network, which receives the key time sequence feature vector output by the attention mechanism layer and combines the initial hidden state to generate a high-dimensional hidden state; The network output layer adopts a full connection structure, introduces nonlinearity through an activation function, extracts key prediction features by dimension reduction, and then outputs a standardized prediction temperature; the standardized prediction value is converted into an actual temperature through inverse standardization; the parameter dimension of the output layer is adapted to the prediction step; S3: prediction and feedback double closed loop adaptive regulation: real-time prediction and deviation calculation are carried out based on the optimal model after training and optimization; a dynamic deviation is taken as input through outer ring PI control, a basic control quantity is generated and limited through integral separation mechanism; a static deviation and a change rate thereof are taken as input through inner ring fuzzy correction, a correction quantity is output through fuzzification, reasoning and defuzzification, and the final control quantity is obtained by superimposing the basic control quantity; based on the final control quantity, control execution and safety interlocking are carried out; S4: model adaptive update based on online learning: based on the data after control execution, an incremental data buffer pool is constructed, effective samples are screened and dynamically updated according to the first-in-first-out rule; a hierarchical fine-tuning strategy is adopted to adaptively update model parameters; and an update triggering and evaluation mechanism is set.
2. The method of claim 1, wherein: The S1 comprises the following steps: The internal thermal field distribution characteristics of the equipment are analyzed through thermal simulation modeling, the priority deployment position of the sensor is determined according to the thermal density gradient, the temperature data and the load current data of the equipment during operation at the corresponding position are synchronously collected by the sensor, a multi-source data vector containing a time stamp is constructed, and the spatial representativeness and time consistency of data collection are ensured. The global temperature change rate is calculated based on the collected temperature data, the load current change rate is calculated in combination with the load current data, the sampling frequency is set according to the temperature change rate classification, and the high-frequency sampling mechanism is triggered through the load current change rate linkage, so that the sampling frequency is dynamically matched with the equipment operation state; The collected multi-source data is subjected to transmission verification and physical range verification to filter error data, a time sequence analysis method is used to identify and eliminate abnormal values, and an adaptive filling method is selected according to the interval length of missing data to ensure time sequence continuity; based on historical effective data, statistical characteristic quantities are calculated, temperature data are converted into standardized data of a uniform scale, and statistical characteristic parameters are retained for inverse conversion of predicted values.
3. The method of claim 1, wherein: The time sequence sample data set is constructed, including: Based on the preprocessed standardized multi-source time sequence data, the input window length and the prediction step are set based on the thermal response characteristics of the equipment, a continuous time sequence is intercepted as an input sequence through a sliding window method, and the input sequence contains temperature data and load current data within a preset time length; The core temperature of the equipment after the input window is set to the prediction step is taken as a sample label, and a sample pair of the input sequence and the temperature label is constructed; the generated sample pairs are divided into a training set, a validation set and a test set in chronological order, wherein the training set is used for model parameter learning, the validation set is used for hyperparameter adjustment and model performance evaluation, and the test set is used for verifying the generalization prediction ability of the model.
4. The method of claim 1, wherein: The model training and optimization include: Based on the training set in the constructed time sequence sample data set, a loss function with a regularization term is used to quantify the deviation of the predicted value from the sample label, and the network parameters are iteratively updated by a gradient descent optimizer, wherein the regularization term is used to suppress model overfitting; The learning rate is dynamically adjusted during the training process, and a stepwise decay strategy is used to balance the model convergence speed and parameter optimization accuracy; The model prediction performance is monitored in real time based on the validation set, and the early stopping mechanism is triggered when the validation set performance does not improve for a continuous preset number of rounds, to avoid overtraining; The generalization ability of the model at different training rounds is evaluated through the test set, and the model with the optimal validation set performance and the smallest test set generalization error is selected as the final optimal model, and the model structure and corresponding parameters are saved for subsequent real-time prediction.
5. The method of claim 1, wherein: The outer loop PI control includes: The dynamic deviation calculated based on the deviation is taken as the input, and the basic control quantity is generated through the proportional term and the integral term, wherein the proportional term is proportional to the current value of the dynamic deviation, and the integral term accumulates the historical dynamic deviation; and an integral separation mechanism is introduced, and the integral coefficient is dynamically adjusted according to the absolute value of the dynamic deviation: when the dynamic deviation exceeds the preset threshold, the integral coefficient is reduced to avoid integral saturation; when the dynamic deviation is within the preset threshold, the integral coefficient is restored; The upper limit and the lower limit of the cumulative amount are set for the integral term, to limit the cumulative range of the historical deviation; the control quantity after the superposition of the proportional term and the integral term is subjected to amplitude limiting processing, so that it is within the physical adjustment range of the actuator, and the amplitude-limited basic control quantity is output, to provide an initial adjustment basis for the inner loop fuzzy correction.
6. The method of claim 1, wherein: The inner loop fuzzy correction includes: The static deviation and the rate of change thereof calculated based on the deviation are input, and a preset membership function is used to convert the accurate values of the static deviation and the rate of change thereof into corresponding fuzzy sets, the fuzzy sets containing language variables reflecting the degree of deviation; Inference is performed based on a preset fuzzy rule base, the fuzzy rule base being composed of mapping rules of multiple input fuzzy states and output correction actions, and the effective rules being determined by calculating the triggering strengths of the rules; A defuzzification algorithm is used to convert the fuzzy output of the effective rules into an accurate correction amount, the defuzzification algorithm being based on weighted calculation of the triggering strengths of the rules and corresponding output center values; The accurate correction amount is superimposed on the basic control amount of the outer loop output, and after amplitude limiting processing, the final control amount is obtained, so as to realize real-time dynamic correction of the basic control amount to compensate for the nonlinear characteristics of the equipment and the model prediction error.
7. The method of claim 1, wherein: The control execution and safety interlocking include: The final control amount based on the fuzzy correction output of the inner loop is converted into an adjustment signal suitable for the actuator, the actuator is driven to act according to the strength corresponding to the control amount, and dynamic adjustment of the heat dissipation capacity of the equipment is realized, and the adjustment signal and the physical adjustment parameter of the actuator are in a preset correlation; A plurality of temperature safety thresholds are preset, including a warning temperature threshold and a critical temperature threshold, wherein the warning temperature threshold is higher than the target temperature of the equipment, and the critical temperature threshold is higher than the warning temperature threshold; The current core temperature of the equipment and the future temperature prediction value output by the model are monitored in real time, and when any of the following conditions is met, the safety interlocking mechanism is triggered: the current core temperature exceeds the critical temperature threshold, or the temperature prediction value in the future for a preset time length exceeds the warning temperature threshold; After the safety interlocking mechanism is started, the actuator is forced to act at the maximum adjustment strength, and an alarm signal is triggered; when the current core temperature of the equipment is below the warning temperature threshold and the future temperature prediction value is stable in the safety range, the safety interlocking is released, and the double-loop adaptive control mode is restored.
8. The method of claim 1, wherein: The incremental data buffer pool includes: An advanced first-in-first-out buffer pool for storing effective samples required for model updating is constructed, the samples are derived from multi-source time series data and corresponding true temperature values collected after control execution, forming sample pairs of real-time input sequences and true temperature labels; The samples to be stored in the buffer pool are double-checked: first, sensor state checking and data physical reasonableness checking are performed to filter out data beyond the normal working range of the equipment or caused by sensor failure; then, the model prediction error corresponding to the sample is calculated, and only the sample whose prediction error meets the preset threshold is retained, so as to ensure that the sample contains new feature information to be learned by the model; A preset capacity is set for the buffer pool, when the sample storage capacity reaches the upper limit, the earliest stored sample is deleted and a new qualified sample is added according to the time stamp order; old samples beyond the preset storage time length are periodically cleaned up in the buffer pool, so as to keep the consistency between the data in the buffer pool and the current running characteristics of the equipment; The effective sample set output by the buffer pool is used for subsequent model hierarchical fine-tuning, providing a high-quality and time-effective data basis for adaptive updating of model parameters, and avoiding the influence of noise data or outdated data on the updating effect of the model.
9. The method of claim 1, wherein: The adaptive updating of the model parameters includes: A hierarchical parameter adjustment strategy is adopted to divide the frozen layer and the fine-tuning layer based on the functional differences of each layer of the model: the level of the network coding layer that learns general time sequence features is set as the frozen layer, and the parameters obtained by training are fixed to retain historical knowledge and avoid catastrophic forgetting; the level of the attention layer, the decoding layer and the output layer associated with the current running characteristics of the device is set as the fine-tuning layer, and only the parameters of the attention layer, the decoding layer and the output layer are updated; The effective sample set output by the incremental data buffer pool is used as the update data source, a small batch iterative mode is used to input the fine-tuning layer, a learning rate lower than that in the initial training stage is configured, and a loss function with knowledge distillation constraint is configured; the knowledge distillation constraint term is used to quantify the difference between the output of the new model and the output of the original optimal model, and balance the new data adaptation capability and the old knowledge retention effect; During the iterative update process, the parameter convergence state of the fine-tuning layer and the sample prediction error are monitored in real time, and when the error does not decrease or increases for a continuous preset number of iterations, the current update is terminated; after the update is completed, the generalization errors of the new model and the original model on the independent validation sample set are compared, and only when the error of the new model is lower than that of the original model and meets the preset precision requirement, the parameters of the original model are replaced, otherwise the update result is discarded and the parameters of the original model remain unchanged.
Citation Information
Patent Citations
Industrial electric cabinet cooling fan energy efficiency control method
CN119982615A
Intelligent optimization method for heat tracing system of power plant based on environment temperature fluctuation
CN120145849A