Multi-order momentum-guided temperature adaptive adjustment method, system and device and storage medium
Through the multi-order momentum guidance and adaptive adjustment method, using the multi-head attention layer and the spatio-temporal Transformer module, the shortcomings of existing temperature control methods in external interference and outliers are solved, precise and stable temperature control is achieved, and the Luxury Control System is enhanced. Excellent performance and anti-interference ability.
Patent Information
- Application Number
- CN202410932377.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
Existing temperature control methods have low sensitivity and poor robustness in the face of external environmental interference and temperature anomalies, and ignore the temperature sequence, making it difficult to achieve accurate and stable temperature control.
A multi-order momentum-guided temperature adaptive adjustment method is adopted. Temperature values are collected in real time for preprocessing. Temperature characteristic information is extracted using multi-order derivation and difference. Combined with the multi-head attention layer and spatio-temporal Transformer module, the weighted average is calculated to adapt to the problem. Adjust the temperature and enhance anti-interference ability.
It achieves precise temperature control, reduces oscillations and fluctuations in temperature changes, improves the stability and robustness of temperature control, and enhances resistance to external interference.
Smart Images

Figure CN118760282A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent algorithms, and in particular to a multi-order momentum-guided temperature adaptive regulation method, system, terminal equipment and computer-readable storage medium. Background Art
[0002] Temperature control is of great significance to life and industry, and can provide effective and stable protection for multiple industries. For example, in industry and manufacturing, precise temperature control can ensure product quality and consistency. In the food field, precise temperature control can inhibit the growth of bacteria and other microorganisms, extend the shelf life of food, and prevent spoilage and waste. In the agricultural field, temperature control can help prevent and control pests and diseases, and is particularly important for organic farming. Therefore, temperature control has a huge impact on the quality of human life, industrial production efficiency, product quality, safety, and scientific research.
[0003] In recent years, precise temperature control has attracted widespread attention, and many temperature control methods have been proposed, such as proportional-integral-differential control, fuzzy control and other adaptive control methods. However, these methods show low sensitivity in temperature control due to their own defects and limitations of experimental conditions. With the development of deep neural network technology, a feasible solution has been provided for precise temperature control. By utilizing its powerful feature extraction capabilities, the problem of temperature control instability can be solved. For example, convolutional neural networks are combined with long short-term memory networks to learn temperature change trends and modeling timing characteristics; in deep reinforcement learning, intelligent agents are constructed to learn optimal control strategies through trial and error in the environment to ensure temperature stability. Compared with traditional control algorithms, deep neural network technology can more efficiently handle complex nonlinear systems and multivariable control problems.
[0004] Although good results have been achieved using deep neural networks, temperature control and prediction based on deep neural networks are still challenging: first, temperature control requires high sensitivity, but is easily affected by external environmental factors (such as electromagnetic interference and equipment hardness); second, the serious uncertainty caused by the occurrence of temperature anomalies reduces the robustness of the method; finally, the temperature timing is often ignored by existing methods. Summary of the invention
[0005] In order to solve at least one technical problem in the above-mentioned prior art, the present invention provides a multi-order momentum-guided temperature adaptive adjustment method, system, terminal device and computer-readable storage medium.
[0006] The first object of the present invention is to provide a multi-stage momentum-guided temperature adaptive regulation method.
[0007] A second object of the present invention is to provide a multi-stage momentum-guided temperature adaptive regulation system.
[0008] The third object of the present invention is to provide a terminal device.
[0009] A fourth object of the present invention is to provide a computer-readable storage medium.
[0010] The first object of the present invention can be achieved by adopting the following technical solutions:
[0011] A multi-order momentum-guided temperature adaptive regulation method, the method comprising:
[0012] Collect the temperature value of heating equipment in real time and perform preprocessing;
[0013] According to the pre-processed temperature value, a dynamic transformation mode of the temperature value is obtained by multi-order derivation; characteristic information of the dynamic transformation mode of the temperature value is extracted to obtain a multi-order derivative variable of the temperature value;
[0014] According to the preprocessed temperature value, a multi-order difference of the temperature value is obtained by using a multi-order difference; according to the multi-order difference of the temperature value, a multi-order difference variable of the temperature value is obtained;
[0015] According to the waveform of the temperature value collected in real time, linear transformation of multiple scales is used to extract features;
[0016] According to the multi-order differential variables and the extracted waveform characteristics, the temperature adjustment amount is obtained to adaptively adjust the change value of the temperature of the heating object.
[0017] Further, the multi-order difference variables include first-order difference and second-order difference;
[0018] The temperature adjustment amount is obtained according to the multi-order differential variables and the extracted waveform features, including:
[0019] Perform weighted averaging on the multi-order differential variables and waveform characteristics of the temperature value:
[0020]
[0021] Where P i is the weighted average of the temperature values at the i-th moment, w T is the temperature coefficient, T i is the characteristic value of the temperature waveform at the i-th moment, w ΔT is the first-order difference coefficient, ΔT i is the first-order difference of the temperature value at the i-th moment, is the second-order difference coefficient, Δ2T i is the second-order difference of the temperature value at the i-th moment, w W is the waveform characteristic bias coefficient, Wi For learning matrix;
[0022] The weighted average P i Input into the spatiotemporal Transformer module and map out the corresponding temperature adjustment:
[0023] Output=MultiHead(Q,K,V)+PE(P),
[0024] MultiHead(Q,K,V)=Concat(head1,…,Head i )W,
[0025]
[0026] Where Output is the output temperature adjustment value, MultiHead() represents the multi-head attention layer, Q, K, and V are query variables, key variables, and value variables, respectively, which are obtained by linearly changing the weighted average. i , K i 、V i are the temperature query vector, vector, and self-learning value vector input to the i-th attention head, respectively; W is the learning matrix; PE() is the position encoding, p is the position coordinate, j is the resolution, and d j is the coefficient adjustment factor.
[0027] Furthermore, the multi-order differences include first-order differences and second-order differences;
[0028] The method of obtaining a multi-order difference variable of the temperature value according to the multi-order difference of the temperature value includes:
[0029]
[0030] In the formula, conv(x,w) i,j is the multi-order difference variable of the temperature value extracted by the self-learning dilated convolution module, x i,j is the value of the i-th row and j-th column in the multi-order difference matrix, w is the convolution kernel coefficient, M and N are x respectively. i,j The length and width, x (i+m×d),(j+n×d) is the value of the i-th row and j-th column, w m,n is the value of the mth row and nth column in the convolution kernel coefficient matrix, and d is the offset;
[0031] Among them, the number of rows and columns of the convolution kernel coefficient matrix is the same as that of the multi-order difference matrix; the multi-order difference matrix includes a first-order difference matrix and a second-order difference matrix, the first-order difference matrix is composed of the first-order differences of temperature values at different times, and the second-order difference matrix is composed of the second-order differences of temperature values at different times.
[0032] Furthermore, the method of obtaining a multi-order difference of the temperature value by using a multi-order difference according to the pre-processed temperature value includes:
[0033] Use the difference method to calculate the first-order difference of temperature values at adjacent moments:
[0034] ΔT i =T i -T i-1 ,i=1,2,…,n;
[0035] In the formula, ΔT i is the first-order difference of the temperature value at the i-th moment, T i is the temperature value at the i-th moment, T i-1 is the temperature value at the i-1th moment; n is the maximum moment;
[0036] Calculate the second-order difference of temperature values at adjacent times:
[0037] Δ2T i =ΔT i -ΔT i-1 ;
[0038] Where, Δ2T i is the second-order difference of the temperature value at the i-th moment, ΔT i-1 is the first-order difference of the temperature value at the i-1th moment;
[0039] The first-order difference and the second-order difference of the temperature value are collectively referred to as multi-order difference of the temperature value.
[0040] Furthermore, the difference method is a central difference method, a forward difference method or a backward difference method.
[0041] Furthermore, the third-order derivative of the pre-processed temperature value is used to obtain a dynamic transformation mode of the temperature value;
[0042] The method of extracting characteristic information from the dynamic transformation mode of the temperature value to obtain multi-order derivative variables of the temperature value includes:
[0043] The dynamic transformation mode x of the temperature value at different times t The constructed sequence is input into the variable length memory module to extract characteristic information and obtain multi-order derivative variables of the temperature value:
[0044] f t =σ(W f ·[h t-1 ,x t ]+b f )Att(x t ),
[0045] i t =σ(W i ·[ht-1 ,x t ]+b i )Att(x t ),
[0046]
[0047] o t =σ(W o ·[h t-1 ,x t ]+b o )Att(x t ),
[0048]
[0049] In the formula, f t is the multi-order derivative variable of the temperature value at the current moment, σ() is the activation function, W f is the learning matrix at the current moment, h t-1 is the state value at the previous moment, x t is the current temperature value, b f is the bias value at the current moment, Att() is the attention mechanism, i t is the input temperature screening value, W i is the input learning matrix, b i is the input bias value, c t is the state center temperature screening value., c t-1 is the state center output value at the previous moment, is the central difference value of the state at the previous moment, o t is the effective value of output temperature, W o is the output learning matrix, b o is the output bias value, h t Update the value for temperature.
[0050] Furthermore, before extracting features using linear transformations at multiple scales, data filtering is used to eliminate Gaussian noise in the waveform of the temperature values collected in real time, and baseline drift is performed to smooth the data.
[0051] Furthermore, the preprocessing includes data cleaning, data calibration and data alignment; wherein, the data cleaning is used to remove outliers and noise in the temperature values and fill in missing data, the data calibration is used to calibrate the cleaned temperature values to ensure the accuracy of the temperature data, and the data alignment is used to time align the calibrated temperature values.
[0052] The second object of the present invention can be achieved by adopting the following technical solutions:
[0053] A multi-stage momentum-guided temperature adaptive regulation system, the system comprising:
[0054] A collection unit, used to collect the temperature value of the heating device in real time and perform preprocessing;
[0055] A derivation unit is used to obtain a dynamic transformation mode of the temperature value by multi-order derivation according to the pre-processed temperature value; extract characteristic information of the dynamic transformation mode of the temperature value to obtain a multi-order derivative variable of the temperature value;
[0056] The difference unit is used to obtain the multi-order difference of the temperature value by using the multi-order difference according to the pre-processed temperature value; and obtain the multi-order difference variable of the temperature value according to the multi-order difference of the temperature value;
[0057] An extraction unit, used for extracting features by linear transformation of multiple scales according to the waveform of the temperature value collected in real time;
[0058] The adjustment unit is used to obtain the temperature adjustment amount according to the multi-order differential variables and the extracted waveform characteristics, so as to adaptively adjust the change value of the temperature of the heating object.
[0059] The third object of the present invention can be achieved by adopting the following technical solutions:
[0060] A terminal device comprises a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the above-mentioned multi-order momentum-guided temperature adaptive adjustment method is implemented.
[0061] The fourth object of the present invention can be achieved by adopting the following technical solutions:
[0062] A computer-readable storage medium stores a program, and when the program is executed by a processor, the above-mentioned multi-order momentum-guided temperature adaptive adjustment method is implemented.
[0063] The present invention has the following beneficial effects compared with the prior art:
[0064] The present invention obtains various characteristics of temperature change over time by performing multi-order derivatives and characteristic information extraction on the collected temperature values; by performing multi-order differences on the collected temperature values, the obtained results can be used to analyze temperature fluctuation values and abnormal values; by performing feature extraction on the original waveform, it can be used to explore the temperature change rules and characteristics; the temperature adjustment amount is calculated based on the obtained weighted average value, so as to adaptively adjust the temperature change value of the heating device, realize precise temperature control, and effectively enhance the anti-interference ability of temperature control; at the same time, the weighted average value is calculated using the results of multi-order differences, and the temperature is adjusted by the weighted average value, which reduces the shock and fluctuation in the temperature change process and ensures that the temperature is stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0066] Figure 1 is a schematic flow chart of a multi-order momentum-guided temperature adaptive adjustment method according to Embodiment 1 of the present invention;
[0067] Figure 2 is a schematic diagram of a variable length memory module according to Embodiment 1 of the present invention;
[0068] Figure 3 is a schematic diagram of the attention mechanism of Example 1 of the present invention;
[0069] Figure 4 Schematic diagram of a self-learning dilated convolution module according to Embodiment 1 of the present invention;
[0070] Figure 5 is a schematic diagram of a multi-scale linear module in Example 1 of the present invention;
[0071] Figure 6 is a schematic diagram of a spatiotemporal Transformer module of Example 1 of the present invention;
[0072] Figure 7 This is a structural block diagram of a multi-order momentum-guided temperature adaptive regulation system according to Embodiment 2 of the present invention;
[0073] Figure 8 This is a structural block diagram of the terminal device of embodiment 3 of the present invention. DETAILED DESCRIPTION
[0074] 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 in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should be understood that the specific embodiments described are only used to explain the present application and are not used to limit the present application.
[0075] Embodiment 1:
[0076] like Figure 1 As shown, this embodiment provides a multi-order momentum-guided temperature adaptive adjustment method, comprising the following steps:
[0077] S101, collecting temperature values of heating devices in real time and performing preprocessing.
[0078] In this embodiment, the temperature value of the heating device is collected in real time through the temperature collection circuit.
[0079] Specifically, the temperature acquisition circuit includes multiple temperature sensors, data acquisition converters, data transmission converters and peripheral circuits. The temperature of the heating device is read in real time through multiple temperature sensors (such as thermocouples, RTDs, NTCs or PTC thermistors), and transmitted to the data acquisition converter and the data transmission converter in turn. The temperature value is obtained and recorded through the corresponding converter.
[0080] After collecting the temperature values, the data is preprocessed, including data cleaning, data calibration, data alignment, and data filtering. Data cleaning is used to remove abnormal values and noise in the collected temperature values and fill in missing data; data calibration is used to calibrate the cleaned temperature values to ensure the accuracy of the temperature data; data alignment is used to time align the calibrated temperature values.
[0081] S102, according to the preprocessed temperature value, a dynamic transformation pattern of the temperature value is obtained by multi-order derivation; effective temperature characteristic information is extracted from the dynamic transformation pattern of the temperature value to obtain a multi-order derivative variable of the temperature value.
[0082] Use multi-order derivatives and variable-length memory modules to obtain multi-order derivative variables of temperature values to obtain various characteristics of temperature changes over time.
[0083] Furthermore, step S102 specifically includes:
[0084] (1) Perform multi-order derivatives on the preprocessed temperature value to obtain a dynamic transformation pattern of the temperature value.
[0085] First, calculate the first-order derivative of the temperature value to obtain the temperature change rate (temperature change rate) of the temperature value. The formula is:
[0086]
[0087] Among them, dT i is the temperature change rate of the temperature value at the i-th moment, T i is the temperature value at the i-th moment, T i-1 is the temperature value at the i-1th moment, when i=1, T1 is the temperature value at the initial moment, n is the nth temperature sampling value; Δt is T i With T i-1 time difference;
[0088] Secondly, the second-order derivative of the temperature value is calculated to obtain the acceleration of the temperature value change. The formula is:
[0089]
[0090] Among them, d2T i is the temperature change acceleration of the temperature value at the i-th moment, dT i-1 is the temperature change rate of the temperature value at the i-1th moment;
[0091] Finally, the third-order derivative of the temperature value is calculated to obtain the dynamic transformation mode of the temperature value to improve the stability and accuracy of the differential feedback. The formula is:
[0092]
[0093] Among them, d3T i is the dynamic transformation mode of the temperature value at the i-th moment, d2T i-1 is the temperature change acceleration of the temperature value at the i-1th moment;
[0094] (2) Extract effective temperature characteristic information from the dynamic transformation pattern of the temperature value and obtain multi-order derivative variables of the temperature value.
[0095] The dynamic transformation mode of the temperature value x t The constructed sequence is input into the variable length memory module to extract the effective temperature characteristic information and obtain the multi-order derivative variables of the temperature value. The process is described as:
[0096] f t =σ(W f ·[h t-1 ,x t ]+b f )Att(x t ),
[0097] i t =σ(W i ·[h t-1 ,x t ]+b i )Att(x t ),
[0098]
[0099] o t =σ(W o ·[h t-1 ,x t ]+b o )Att(x t ),
[0100]
[0101] In the formula, f t is the current temperature screening value, σ() is the activation function, Wf is the learning matrix at the current moment, h t-1 is the state value at the previous moment, x t is the current temperature value, b f is the bias value at the current moment, Att() is the attention mechanism, i t is the input temperature screening value, W i is the input learning matrix, b i is the input bias value, c t is the state center temperature screening value., c t-1 is the state center output value at the previous moment, is the central difference value of the state at the previous moment, o t is the effective value of output temperature, W o is the output learning matrix, b o is the output bias value, h t Update the value for temperature.
[0102] like Figure 2 As shown in Figure 2, the variable length memory module includes a convolution layer, a memory layer, and an attention layer. The convolution layer extracts the temperature waveform features, and the memory layer records the temperature features of the current moment and the previous moment. The attention layer is used to screen the effective temperature features and finally output them to the node unit. Figure 3 .
[0103] S103, obtaining a multi-order difference of the temperature value using a multi-order difference according to the preprocessed temperature value; and obtaining a multi-order difference variable of the temperature value according to the multi-order difference of the temperature value.
[0104] The temperature fluctuation values and abnormal values are analyzed by obtaining multi-order difference variables of the preprocessed temperature values.
[0105] Furthermore, step S103 includes:
[0106] (1) Use the difference method to calculate the first-order difference of the temperature values at adjacent moments and find abnormal values by setting a threshold, which is defined as:
[0107] ΔT i =T i -T i-1 ,i=1,2,…,n,
[0108] In the formula, ΔT i is the first-order difference of the temperature value at the i-th moment, T i is the temperature value at the i-th moment, T i-1 is the temperature value at the i-1th moment;
[0109] If ΔT i is greater than the set threshold, then ΔT i is an outlier.
[0110] In this embodiment, the set threshold is taken as three times the average value of the input temperature value sequence.
[0111] (2) Calculate the second-order difference of temperature values at adjacent moments: Δ2T i =ΔT i -ΔT i-1 ,i=1,2,…,n,
[0112] Where, Δ2T i is the second-order difference of the temperature value at the i-th moment, ΔT i-1 is the first-order difference of the temperature value at the i-1th moment.
[0113] In this embodiment, the difference method may be a central difference method, a forward difference method or a backward difference method.
[0114] The first-order difference and second-order difference of temperature values are collectively referred to as multi-order differences of temperature values.
[0115] (3) Based on the first-order difference matrix and the second-order difference, the self-learning dilated convolution module is used for analysis to stabilize the temperature change:
[0116]
[0117] In the formula, conv(x,w) i,j is the self-learning dilated convolution module function, x i,j is the value of the i-th row and j-th column in the multi-order difference matrix, w is the convolution kernel coefficient, M and N are x respectively. i,j The length and width, x (i+m×d),(j+n×d) is the value of the i-th row and j-th column, w m,n is the value of the mth row and nth column in the convolution kernel coefficient matrix, and d is the offset.
[0118] Among them, the convolution kernel coefficient matrix has the same number of rows and columns as the matrix; the multi-order difference matrix includes a first-order difference matrix and a second-order difference matrix, the first-order difference matrix is composed of the first-order differences of temperature values at different times, and the second-order difference matrix is composed of the second-order differences of temperature values at different times.
[0119] like Figure 4 As shown in Figure 3, the self-learning dilated convolution module captures features of different scales by adaptively adjusting the dilation rate of the convolution kernel.
[0120] S104: Extract features based on the waveform of the temperature value.
[0121] Data filtering was used to remove Gaussian noise from the raw temperature waveform, and baseline drift was performed to smooth the data.
[0122] This embodiment uses a multi-scale linear module to analyze the filtered waveform to extract waveform features and explore temperature variation patterns and features.
[0123] Specifically, the multi-scale linear module uses multiple linear functions to extract temperature signals, directly analyzes the time series of temperature data, and extracts features such as periodicity, mutations, and trend changes, such as extracting multi-scale temperature changes, searching for maximum and minimum values and their occurrence times.
[0124] like Figure 5 As shown, the multi-scale linear module includes an input layer, an intermediate layer and an output layer, and multiple linear modules of different scales can be generated according to different parameters.
[0125] S105, performing weighted averaging on the multi-order differential variables of the temperature value and the extracted waveform features; calculating the temperature adjustment amount according to the value after the weighted averaging to adaptively adjust the change value of the temperature of the heating device.
[0126] First, the multi-order differential variables and waveform characteristics of the temperature value are weighted averaged:
[0127]
[0128] Where P i is the weighted average of the temperature values at the i-th moment, w T is the temperature coefficient, T i is the characteristic value of the temperature waveform at the i-th moment, w ΔT is the first-order difference coefficient, ΔT i is the first-order difference of the temperature value at the i-th moment, is the second-order difference coefficient, Δ2T i is the second-order difference of the temperature value at the i-th moment, w W is the waveform characteristic bias coefficient, W i For learning matrix;
[0129] The weighted average is input into the spatiotemporal Transformer module, and the module coefficient maps the corresponding temperature adjustment amount according to the given input, thereby adaptively adjusting the temperature change value of the heating device:
[0130] Output=MultiHead(Q,K,V)+PE(P),
[0131] MultiHead(Q,K,V)=Concat(head1,…,Head i )W,
[0132]
[0133] Where Output is the output temperature adjustment value, MultiHead() represents the multi-head attention layer, Q, K, and V are query variables, key variables, and value variables, respectively, which are obtained by linearly changing the weighted average. i , K i 、V i are the temperature query vector, vector, and self-learning value vector input to the i-th attention head, respectively; W is the learning matrix; PE() is the position encoding, p is the position coordinate, j is the resolution, and d j is the coefficient adjustment factor.
[0134] In this embodiment, Figure 6 As shown in the figure, the spatiotemporal Transformer module includes an input layer, a position encoding, a masked multi-head attention layer, a residual connection & normalization layer, a feedforward network, and a linear layer. First, the convolutional layer in the input layer extracts features from the spatial data; the position encoding is then used to provide the position information of the elements in the input sequence; the multiple attention heads in the masked multi-head attention layer are used to flexibly process the sequence data, and the masking operation is used to ensure that future information is not used in prediction; the residual connection & normalization layer is used to add the output of the masked multi-head attention layer to the input of the previous masked multi-head attention layer and then normalize it; the normalized result is sequentially input into the feedforward network, the linear layer, and the softmax.
[0135] In summary, this embodiment obtains various characteristics of temperature changes over time by performing multi-order derivatives on the collected temperature values and extracting effective temperature information in a variable-length memory module; performs multi-order differentiation on the collected temperature values and uses the obtained results to analyze temperature fluctuations and abnormal values; performs feature extraction on the original waveform to explore temperature change patterns and characteristics; calculates the temperature adjustment amount based on the obtained weighted average value, thereby adaptively adjusting the temperature change value of the heating device, thereby achieving precise temperature control and effectively enhancing the anti-interference ability of temperature control.
[0136] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium.
[0137] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0138] Embodiment 2:
[0139] like Figure 7 As shown, this embodiment provides a multi-order momentum-guided temperature adaptive regulation system, which includes a collection unit 701, a derivation unit 702, a difference unit 703, an extraction unit 704 and an adjustment unit 705, wherein:
[0140] The acquisition unit 701 is used to acquire the temperature value of the heating device in real time and perform preprocessing;
[0141] The derivation unit 702 is used to obtain a dynamic transformation mode of the temperature value by multi-order derivation according to the pre-processed temperature value; extract characteristic information of the dynamic transformation mode of the temperature value to obtain a multi-order derivative variable of the temperature value;
[0142] The difference unit 703 is used to obtain a multi-order difference of the temperature value by using a multi-order difference according to the pre-processed temperature value; and obtain a multi-order difference variable of the temperature value according to the multi-order difference of the temperature value;
[0143] An extraction unit 704 is used to extract features by linear transformation of multiple scales according to the waveform of the temperature value collected in real time;
[0144] The adjustment unit 705 is used to obtain the temperature adjustment amount according to the multi-order differential variables and the extracted waveform characteristics, so as to adaptively adjust the change value of the temperature of the heating object.
[0145] The specific implementation of each unit in this embodiment can refer to the above-mentioned embodiment 1, and will not be described one by one here; it should be noted that the system provided in this embodiment is only illustrated by the division of the above-mentioned functional units. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure can be divided into different functional units to complete all or part of the functions described above.
[0146] Embodiment 3:
[0147] This embodiment provides a terminal device, which can be a computer. Figure 8 As shown, a processor 802, a memory, an input device 803, a display 804 and a network interface 805 connected via a system bus 801 are provided. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium 806 and an internal memory 807. The non-volatile storage medium 806 stores an operating system, a computer program and a database. The internal memory 807 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the processor 802 executes the computer program stored in the memory, the multi-order momentum-guided temperature adaptive adjustment method of the above-mentioned embodiment 1 is implemented as follows:
[0148] Collect the temperature value of heating equipment in real time and perform preprocessing;
[0149] According to the pre-processed temperature value, a dynamic transformation mode of the temperature value is obtained by multi-order derivation; characteristic information of the dynamic transformation mode of the temperature value is extracted to obtain a multi-order derivative variable of the temperature value;
[0150] According to the preprocessed temperature value, a multi-order difference of the temperature value is obtained by using a multi-order difference; according to the multi-order difference of the temperature value, a multi-order difference variable of the temperature value is obtained;
[0151] According to the waveform of the temperature value collected in real time, linear transformation of multiple scales is used to extract features;
[0152] According to the multi-order differential variables and the extracted waveform characteristics, the temperature adjustment amount is obtained to adaptively adjust the change value of the temperature of the heating object.
[0153] Embodiment 4:
[0154] This embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the multi-order momentum-guided temperature adaptive adjustment method of the above-mentioned embodiment 1 is implemented as follows:
[0155] Collect the temperature value of heating equipment in real time and perform preprocessing;
[0156] According to the pre-processed temperature value, a dynamic transformation mode of the temperature value is obtained by multi-order derivation; characteristic information of the dynamic transformation mode of the temperature value is extracted to obtain a multi-order derivative variable of the temperature value;
[0157] According to the preprocessed temperature value, a multi-order difference of the temperature value is obtained by using a multi-order difference; according to the multi-order difference of the temperature value, a multi-order difference variable of the temperature value is obtained;
[0158] According to the waveform of the temperature value collected in real time, linear transformation of multiple scales is used to extract features;
[0159] According to the multi-order differential variables and the extracted waveform characteristics, the temperature adjustment amount is obtained to adaptively adjust the change value of the temperature of the heating object.
[0160] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0161] The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and inventive concept of the present invention within the scope disclosed by the present invention, which shall fall within the protection scope of the present invention.
Claims
1. A multi-order momentum-guided temperature adaptive regulation method, characterized in that: The method comprises: Collect the temperature value of heating equipment in real time and perform preprocessing; According to the pre-processed temperature value, a dynamic transformation mode of the temperature value is obtained by multi-order derivation; characteristic information of the dynamic transformation mode of the temperature value is extracted to obtain a multi-order derivative variable of the temperature value; According to the preprocessed temperature value, a multi-order difference of the temperature value is obtained by using a multi-order difference; according to the multi-order difference of the temperature value, a multi-order difference variable of the temperature value is obtained; According to the waveform of the temperature value collected in real time, linear transformation of multiple scales is used to extract features; According to the multi-order differential variables and the extracted waveform characteristics, the temperature adjustment amount is obtained to adaptively adjust the change value of the temperature of the heating object.
2. The temperature adaptive adjustment method according to claim 1, characterized in that: The multi-order difference variables include first-order difference and second-order difference; The temperature adjustment amount is obtained according to the multi-order differential variables and the extracted waveform features, including: Perform weighted averaging on the multi-order differential variables and waveform characteristics of the temperature value: Where P i is the weighted average of the temperature values at the i-th moment, w T is the temperature coefficient, T i is the characteristic value of the temperature waveform at the i-th moment, w ΔT is the first-order difference coefficient, ΔT i is the first-order difference of the temperature value at the i-th moment, is the second-order difference coefficient, Δ2T i is the second-order difference of the temperature value at the i-th moment, w W is the waveform characteristic bias coefficient, W i For learning matrix; The weighted average P i Input into the spatiotemporal Transformer module and map out the corresponding temperature adjustment: Output=MultiHead(Q,K,V)+PE(P), MultiHead(Q,K,V)=Concat(head1,…,Head i )W, Where Output is the output temperature adjustment value, MultiHead() represents the multi-head attention layer, Q, K, and V are the query variable, key variable, and value variable, respectively, which are obtained by linearly changing the weighted average. i , K i 、V i are the temperature query vector, vector, and self-learning value vector input to the i-th attention head, respectively; W is the learning matrix; PE() is the position encoding, p is the position coordinate, j is the resolution, and d j is the coefficient adjustment factor.
3. The temperature adaptive adjustment method according to claim 1, characterized in that: The multi-order differences include first-order differences and second-order differences; The method of obtaining a multi-order difference variable of the temperature value according to the multi-order difference of the temperature value includes: In the formula, conv(x,w) i,j is the multi-order difference variable of the temperature value extracted by the self-learning dilated convolution module, x i,j is the value of the i-th row and j-th column in the multi-order difference matrix, w is the convolution kernel coefficient, M and N are x respectively. i,j The length and width, x (i+m×d),(j+n×d) is the value of the i-th row and j-th column, w m,n is the value of the mth row and nth column in the convolution kernel coefficient matrix, and d is the offset; Among them, the number of rows and columns of the convolution kernel coefficient matrix is the same as that of the multi-order difference matrix; the multi-order difference matrix includes a first-order difference matrix and a second-order difference matrix, the first-order difference matrix is composed of the first-order differences of temperature values at different times, and the second-order difference matrix is composed of the second-order differences of temperature values at different times.
4. The temperature adaptive adjustment method according to claim 1 or 3, characterized in that: The method of obtaining a multi-order difference of the temperature value by using a multi-order difference according to the pre-processed temperature value includes: Use the difference method to calculate the first-order difference of temperature values at adjacent moments: ΔT i =T i -T i-1 ,i=1,2,…,n; Where, ΔT i is the first-order difference of the temperature value at the i-th moment, T i is the temperature value at the i-th moment, T i-1 is the temperature value at the i-1th moment; n is the maximum moment; Calculate the second-order difference of temperature values at adjacent times: Δ2T i =ΔT i -ΔT i-1 ; Where, Δ2T i is the second-order difference of the temperature value at the i-th moment, ΔT i-1 is the first-order difference of the temperature value at the i-1th moment; The first-order difference and the second-order difference of the temperature value are collectively referred to as multi-order difference of the temperature value.
5. The temperature adaptive adjustment method according to claim 4, characterized in that: The difference method is a central difference method, a forward difference method or a backward difference method.
6. The temperature adaptive adjustment method according to claim 1, characterized in that: The third-order derivative of the pre-processed temperature value is used to obtain the dynamic transformation mode of the temperature value; The method of extracting characteristic information from the dynamic transformation mode of the temperature value to obtain multi-order derivative variables of the temperature value includes: The dynamic transformation mode x of the temperature value at different times t The constructed sequence is input into the variable length memory module to extract characteristic information and obtain multi-order derivative variables of the temperature value: f t =σ(W f ·[h t-1 ,X t ]+b f )That(x t ), in t =σ(W i ·[h t-1 ,x t ]+b i )That(x t ), O t =σ(W o ·[h t-1 ,X t ]+b o )That(x t ), In the formula, f t is the multi-order derivative variable of the temperature value at the current moment, σ() is the activation function, W f is the learning matrix at the current moment, h t-1 is the state value at the previous moment, x t is the current temperature value, b f is the bias value at the current moment, Att() is the attention mechanism, i t is the input temperature screening value, W i is the input learning matrix, b i is the input bias value, c t is the state center temperature screening value., c t-1 is the state center output value at the previous moment, is the central difference value of the state at the previous moment, o t is the effective value of output temperature, W o is the output learning matrix, b o is the output bias value, h t Update the value for temperature.
7. The temperature adaptive adjustment method according to any one of claims 1 to 3 and 6, characterized in that: Before extracting features using linear transformations at multiple scales, data filtering is used to eliminate Gaussian noise in the waveform of real-time collected temperature values, and baseline drift is performed to smooth the data.
8. The temperature adaptive adjustment method according to any one of claims 1 to 3 and 6, characterized in that: The preprocessing includes data cleaning, data calibration and data alignment; wherein the data cleaning is used to remove outliers and noise in the temperature values and fill in missing data, the data calibration is used to calibrate the cleaned temperature values to ensure the accuracy of the temperature data, and the data alignment is used to time align the calibrated temperature values.
9. A multi-stage momentum-guided temperature adaptive regulation system, characterized in that: The system comprises: A collection unit, used to collect the temperature value of the heating device in real time and perform preprocessing; A derivation unit is used to obtain a dynamic transformation mode of the temperature value by multi-order derivation according to the pre-processed temperature value; extract characteristic information of the dynamic transformation mode of the temperature value to obtain a multi-order derivative variable of the temperature value; The difference unit is used to obtain the multi-order difference of the temperature value by using the multi-order difference according to the pre-processed temperature value; and obtain the multi-order difference variable of the temperature value according to the multi-order difference of the temperature value; An extraction unit, used for extracting features by linear transformation of multiple scales according to the waveform of the temperature value collected in real time; The adjustment unit is used to obtain the temperature adjustment amount according to the multi-order differential variables and the extracted waveform characteristics, so as to adaptively adjust the change value of the temperature of the heating object.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the temperature adaptive adjustment method according to any one of claims 1 to 8 is implemented.
