Wire temperature prediction method and device based on power transmission line, terminal equipment and storage medium
By decomposing the temperature signal into sub-signals of different frequencies and performing independent prediction processing, the problem of low accuracy of wire temperature prediction in the existing technology is solved, more accurate temperature prediction is achieved, and the safe operation of the power grid is ensured.
Patent Information
- Application Number
- CN202410935082.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, conductor temperature prediction has a large deviation between the prediction result and the actual value due to the complexity and uncertainty of temperature data. It is difficult to accurately capture the temperature change trend and characteristics, which affects the safe operation of the power grid.
The temperature signal is decomposed into several sub-signals of different frequencies to be predicted, and each sub-signal is independently predicted and processed through the wire temperature prediction model, spectral features and periodic features are extracted, and the predicted sub-signals are generated and reconstructed to obtain the current moment. temperature signal.
The temperature prediction accuracy is significantly improved, and potential safety hazards such as wire overheating can be discovered in time to ensure the safe operation of power grid lines.
Smart Images

Figure CN118798047A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of conductor temperature prediction, and in particular to a conductor temperature prediction method, device, terminal equipment and storage medium based on a transmission line. Background Art
[0002] As one of the most important components of a power transmission line, the conductor must meet the main function of the line - the requirement of transmitting electric energy, and at the same time operate safely and reliably. The resistance of the conductor changes with the temperature, which in turn affects the efficiency of current transmission. At high temperatures, the resistance of the conductor increases, the current transmission efficiency decreases, and it may cause the conductor to overheat or even cause a fire. By predicting the surface temperature of the conductor, the tendency of the conductor to overheat or overload can be discovered in advance, so that corresponding measures can be taken in time, such as adjusting the conductor load, increasing heat dissipation measures, etc., to avoid conductor damage or accidents, which helps to ensure the safe operation of the power grid.
[0003] In the prior art, temperature prediction is usually performed directly based on the original temperature data, and temperature data often has complex nonlinear characteristics and multiple influencing factors, such as periodic fluctuations and random noise, etc., which make it difficult to directly predict the original temperature data. Due to the complexity and uncertainty of temperature data, it is often difficult to accurately capture its changing trends and characteristics when directly predicting the original data, resulting in a large deviation between the predicted results and the actual values. Therefore, it is impossible to obtain accurate temperature prediction results, and thus it is impossible to take corresponding conductor protection measures in time, and it is impossible to ensure the safe operation of the power grid lines. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, terminal device and storage medium for predicting conductor temperature based on a transmission line, which can decompose a temperature signal into a plurality of sub-signals to be predicted with different frequencies, and perform independent prediction processing on each sub-signal, so as to more accurately capture the temperature change trend and characteristics, improve the temperature prediction accuracy, and effectively solve the problem in the prior art that a large deviation exists between the prediction result and the actual value due to direct prediction of the original data.
[0005] An embodiment of the present invention provides a method for predicting conductor temperature based on a transmission line, comprising:
[0006] Acquire a plurality of temperature signals corresponding to the conductor in a preset time period; wherein the preset time period is a time period before the current moment;
[0007] Decompose each temperature signal into several sub-signals with different frequencies to be predicted;
[0008] For each sub-signal to be predicted, the sub-signal to be predicted is input into a preset wire temperature prediction model, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time;
[0009] Reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment;
[0010] The training process of the conductor temperature prediction model is as follows:
[0011] Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model.
[0012] Preferably, the step of decomposing each temperature signal into a plurality of sub-signals to be predicted with different frequencies comprises:
[0013] Decompose each temperature signal into corresponding sub-signals;
[0014] For each sub-signal, the frequency corresponding to each sub-signal is obtained based on Hilbert transform;
[0015] For each sub-signal, a demodulated signal of the corresponding temperature signal is obtained, and a bandwidth corresponding to the sub-signal is generated according to a gradient norm of the demodulated signal and a frequency corresponding to the sub-signal;
[0016] According to the bandwidth of each sub-signal, an objective function with the minimum sum of bandwidth as the goal is established; wherein the objective function includes: frequency constraints of the sub-signals;
[0017] Under the frequency constraint, the objective function is solved by an augmented Lagrange multiplier method and an alternating direction multiplier method, and a plurality of sub-signals to be predicted with different frequencies are generated when the sum of the bandwidths of the sub-signals to be predicted is minimized;
[0018] The frequency constraint is that the sum of the frequencies of the sub-signals to be predicted is equal to the original frequency of a temperature signal.
[0019] Preferably, before generating the bandwidth corresponding to the sub-signal according to the gradient norm of the demodulated signal and the frequency corresponding to the sub-signal, the method further comprises:
[0020] Applying the hybrid operator to the frequency adjustment process of the sub-signal to obtain the adjusted frequency of the sub-signal;
[0021] The frequency of the sub-signal after adjustment is calculated according to the following formula:
[0022] f um (t) = [δ(t) + j / πt) * um(t)]e jwnt ;
[0023] In the formula, f um(t) is the frequency of the sub-signal after adjustment, δ(t) is the Dirac distribution function, u m (t) is the frequency of the sub-signal before adjustment, e jwnt is a mixed operator.
[0024] Preferably, the formula corresponding to the objective function is:
[0025]
[0026] Among them, B um (t) is the bandwidth of the mth sub-signal, k is the preset number of sub-signals to be predicted; u m (t) is the frequency of the sub-signal before adjustment, S is the original frequency of a temperature signal, It means to take partial derivative of the adjusted frequency of the sub-signal.
[0027] Preferably, the conductor temperature prediction model is composed of a Transformer model; wherein the decoding module in the Transformer model is composed of an LSTM neural network;
[0028] The generation process of the predicted sub-signal corresponding to the sub-signal to be predicted includes:
[0029] Inputting the sub-signals to be predicted into a preset wire temperature prediction model so that the Transformer model performs position encoding on each sub-signal to be predicted, then comparing each sub-signal to be predicted that has undergone position encoding, and generating an attention weight for characterizing position correlation for each sub-signal to be predicted according to the comparison result;
[0030] Inputting the attention weight of each sub-signal to be predicted into the Transformer model, so that the Transformer model extracts the spectral features in the sub-signal to be predicted, the statistical features for characterizing the distribution of the temperature signal, and the periodic features for characterizing the change of temperature over time according to the attention weight of each sub-signal to be predicted;
[0031] The spectral features, statistical features and periodic features of the sub-signal to be predicted are input into the LSTM neural network, so that the LSTM neural network can capture the contextual dependencies in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, and then generate a predicted sub-signal corresponding to the sub-signal to be predicted according to the contextual dependencies.
[0032] Preferably, the LSTM neural network includes a forget gate, an input gate and an output gate;
[0033] The LSTM neural network captures the context dependency in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, including:
[0034] The spectral features, statistical features and periodic features are respectively converted into features in numerical form, and each feature is combined into an initial word vector matrix;
[0035] The initial hidden state is used as the hidden state of the current time step; wherein the hidden state is used to characterize the context dependency currently captured by the LSTM neural network;
[0036] Use the initial word vector matrix as the word vector matrix of the current time step;
[0037] Repeat the following context dependency generation operation until the preset number of iterations is reached to generate the context dependency in the sub-signal to be predicted:
[0038] Input the word vector matrix of the current time step and the hidden state of the current time step into the forget gate of the LSTM neural network, so that the forget gate processes the word vector matrix and the hidden state through matrix multiplication and weighted sum of biases to generate a forgetting factor for forgetting features corresponding to the word vector matrix;
[0039] The word vector matrix of the current time step and the hidden state of the current time step are input into the input gate of the LSTM neural network, so that the input gate processes the word vector matrix and the hidden state through the sigmoid activation function to generate an update factor for retaining the feature.
[0040] Input the word vector matrix of the current time step and the hidden state of the current time step into the output gate of the LSTM neural network, so that the output gate processes the word vector matrix of the current time step and the hidden state of the current time step through an activation function to generate an output factor for outputting features;
[0041] The forgetting factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be forgotten; then the update factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be updated;
[0042] Generate an updated word vector matrix according to the vector features to be forgotten and the vector features to be updated;
[0043] Inputting the updated word vector matrix into the output gate so that the output gate generates an updated hidden state according to the output factor and the updated word vector matrix;
[0044] When it is determined that the preset number of iterations has not been reached, the updated word vector matrix is used as the word vector matrix of the current time step for the next execution of the context dependency generation operation, and the updated hidden state is used as the hidden state of the current time step for the next execution of the context dependency generation operation.
[0045] Preferably, when the iterative training of the wire temperature prediction model to be trained is performed, it also includes:
[0046] During each training, a sub-signal sample data is input into the conductor temperature prediction model, so that the conductor temperature prediction model generates a sub-signal prediction result corresponding to the sub-signal sample data according to the spectral characteristics in the sub-signal sample data, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the temperature change over time;
[0047] The sub-signal prediction results are compared with the actual sub-signal results, and the network parameters of the conductor temperature prediction model are adjusted according to the comparison results.
[0048] Based on the above method embodiments, the present invention provides corresponding device embodiments.
[0049] An embodiment of the present invention provides a conductor temperature prediction device based on a transmission line, comprising: a temperature signal acquisition module, a sub-signal decomposition module, a sub-signal prediction module and a temperature signal prediction module;
[0050] The temperature signal acquisition module is used to acquire a plurality of temperature signals corresponding to the wire in a preset period; wherein the preset period is a period before the current moment;
[0051] The sub-signal decomposition module is used to decompose each temperature signal into a plurality of sub-signals to be predicted with different frequencies;
[0052] The sub-signal prediction module is used to input the sub-signal to be predicted into a preset wire temperature prediction model for each sub-signal to be predicted, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time;
[0053] The temperature signal prediction module is used to reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment;
[0054] The training process of the conductor temperature prediction model is as follows:
[0055] Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model.
[0056] Based on the above method embodiments, the present invention provides corresponding terminal device embodiments.
[0057] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a conductor temperature prediction method based on a transmission line as described in the above-mentioned embodiment of the invention is implemented.
[0058] Based on the above method embodiments, the present invention provides corresponding storage medium item embodiments.
[0059] Another embodiment of the present invention provides a storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a conductor temperature prediction method based on a transmission line as described in the above-mentioned embodiment of the invention.
[0060] The following beneficial effects are achieved by implementing the present invention:
[0061] The embodiment of the present invention provides a method, device, terminal equipment and storage medium for predicting the temperature of a conductor based on a transmission line. In order to predict the conductor temperature at the current moment, the present invention takes the current moment as a reference point, and obtains several temperature signals of a preset time period as temperature data to be processed, so as to obtain the temperature signal predicted at the current moment. Specifically, in order to better capture the temperature change trend and characteristics, the present invention first decomposes the temperature signal into several sub-signals to be predicted with different frequencies, and then predicts the corresponding predicted sub-signal for each sub-signal to be predicted by model prediction. In the process of model processing, the spectral features, statistical features and periodic features in the sub-signal to be predicted can be extracted by the conductor temperature prediction model, so as to predict the corresponding sub-signal based on the above features. Finally, after reconstructing each predicted sub-signal, the predicted temperature signal corresponding to the conductor at the current moment can be obtained, that is, the temperature of the conductor at the current moment can be obtained. The present invention decomposes the temperature signal into several sub-signals to be predicted with different frequencies and performs independent prediction processing on each sub-signal, so that the subsequent model can more accurately capture the temperature change trend and characteristics when predicting according to the characteristics. Compared with the prior art that directly predicts the overall temperature signal, the temperature prediction accuracy can be significantly improved. Through the timely and accurate temperature prediction of the present invention, potential safety hazards such as overheating of the conductor can be discovered in time, and corresponding protective measures can be taken, thereby greatly ensuring the safe operation of the power grid line. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 The present invention is a flowchart of a method for predicting conductor temperature based on a transmission line provided by an embodiment of the present invention.
[0063] Figure 2 1 is a schematic diagram of VMD decomposition results of conductor temperature data provided by an embodiment of the present invention.
[0064] Figure 3 It is a flow chart of a conductor temperature prediction method provided by another embodiment of the present invention.
[0065] Figure 4 It is a schematic diagram of the processing flow of each order IMF provided by an embodiment of the present invention.
[0066] Figure 5 It is a comparison diagram of the predicted result of the conductor temperature and the actual temperature result provided by an embodiment of the present invention.
[0067] Figure 6 It is a structural schematic diagram of a conductor temperature prediction device based on a transmission line provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] like Figure 1 FIG. 1 is a flow chart of a method for predicting conductor temperature based on a transmission line according to an embodiment of the present invention. The method for predicting conductor temperature based on a transmission line comprises:
[0070] Step S1: obtaining a plurality of temperature signals corresponding to the conductor in a preset period; wherein the preset period is a period before the current moment;
[0071] Step S2: decomposing each temperature signal into a number of sub-signals to be predicted with different frequencies;
[0072] Step S3: for each sub-signal to be predicted, input the sub-signal to be predicted into a preset wire temperature prediction model, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time;
[0073] The training process of the conductor temperature prediction model is as follows:
[0074] Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model;
[0075] Step S4: reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment.
[0076] For step S1, in a preferred embodiment, the present invention can predict the wire temperature corresponding to the current moment based on the temperature data at the historical moment, and there is a certain relationship between the wire temperature and the accumulation of time. When the current flows through the wire, due to the existence of resistance, the wire will generate heat, and this part of the heat is proportional to the square of the current, the resistance of the wire and the power-on time. Therefore, the temperature at the current moment can be obtained by analyzing the temperature at the past time.
[0077] Moreover, the change of conductor temperature is often sequential and cyclical. It may be affected by many factors such as seasons, weather patterns, day and night changes, and these factors usually show a certain periodicity. By analyzing historical temperature data, these periodic patterns can be identified and used to predict future temperatures.
[0078] The operation of the power grid usually has a certain stability, that is, its operating conditions (such as load level, transmission capacity, etc.) may not change significantly in the future. Therefore, predictions based on historical data are reasonable in this case, because the conductor temperature in the future is likely to be similar to the temperature in the past under similar operating conditions.
[0079] In a preferred embodiment, the preset time period may be a fixed time window, such as the past 24 hours, the past week, or the past month, etc. The preset time period may be dynamically adjusted according to actual conditions. For example, the size of the time window may be automatically adjusted according to factors such as weather changes, seasonal changes, or grid load changes.
[0080] Once the preset time period is determined, the temperature signal data within the period can be obtained from the corresponding data source. These data may come from temperature sensors, data loggers, power grid monitoring systems, etc. The acquired data needs to be properly preprocessed, such as denoising, smoothing or missing value filling, to improve the accuracy of subsequent analysis.
[0081] After the temperature signal data within the preset time period is obtained, subsequent analysis and prediction can be performed according to steps S2 to S4.
[0082] For step S2, in a preferred embodiment, decomposing each temperature signal into a plurality of sub-signals to be predicted with different frequencies includes:
[0083] Decompose each temperature signal into corresponding sub-signals;
[0084] For each sub-signal, the frequency corresponding to each sub-signal is obtained based on Hilbert transform;
[0085] For each sub-signal, a demodulated signal of the corresponding temperature signal is obtained, and a bandwidth corresponding to the sub-signal is generated according to a gradient norm of the demodulated signal and a frequency corresponding to the sub-signal;
[0086] According to the bandwidth of each sub-signal, an objective function with the minimum sum of bandwidth as the goal is established; wherein the objective function includes: frequency constraints of the sub-signals;
[0087] Under the frequency constraint, the objective function is solved by an augmented Lagrange multiplier method and an alternating direction multiplier method, and a plurality of sub-signals to be predicted with different frequencies are generated when the sum of the bandwidths of the sub-signals to be predicted is minimized;
[0088] The frequency constraint is that the sum of the frequencies of the sub-signals to be predicted is equal to the original frequency of a temperature signal.
[0089] Before generating the bandwidth corresponding to the sub-signal according to the gradient norm of the demodulated signal and the frequency corresponding to the sub-signal, the method further includes:
[0090] Applying the hybrid operator to the frequency adjustment process of the sub-signal to obtain the adjusted frequency of the sub-signal;
[0091] The frequency of the sub-signal after adjustment is calculated according to the following formula:
[0092] f um (t) = [δ(t) + j / πt) * u m (t)]e jwnt ;
[0093] In the formula, f um (t) is the frequency of the sub-signal after adjustment, δ(t) is the Dirac distribution function, u m (t) is the frequency of the sub-signal before adjustment, e jwnt is a mixed operator.
[0094] The formula corresponding to the objective function is:
[0095]
[0096] Among them, B um (t) is the bandwidth of the mth sub-signal, k is the preset number of sub-signals to be predicted; u m (t) is the frequency of the sub-signal before adjustment, S is the original frequency of a temperature signal, It means to take partial derivative of the adjusted frequency of the sub-signal.
[0097] Specifically, after obtaining a plurality of temperature signals corresponding to a preset time period, the present invention can decompose each temperature signal into sub-signals, extract features from the sub-signals, and then predict.
[0098] After each temperature signal is decomposed into corresponding sub-signals, the frequency corresponding to each sub-signal is first obtained based on the Hilbert transform. Specifically, Figure 2 As shown, the present invention can utilize VMD to decompose a series of intrinsic mode components (IMFs), that is, to decompose a series of sub-signals.
[0099] Set the temperature data of the wire as f(x), VMD decomposes f(x) into K orders with different frequencies ω n The sub-signal u m , in calculating different u m When the frequency is , the Hilbert method is used in VMD to calculate u m After the spectrum calculation, the Hilbert spectrum u m With the mixed operator e -jωnt Multiply them together to make the frequencies of each order IMF more concentrated and the temperature data more thoroughly decomposed. The adjusted frequencies of the sub-signals (i.e. the adjusted frequencies of each order IMF component) are shown in the following formula:
[0100] f um =[δ(t)+j / πt)*u m (t)]e jwnt ;
[0101] in, is a mixed operator, u m (t) is a sub-signal, and δ(t) is the Dirac distribution function.
[0102] Furthermore, in order to estimate the bandwidth of each order IMF, the gradient norm of the demodulated signal is calculated for estimation, as shown in the following formula:
[0103]
[0104] After generating the bandwidth corresponding to the sub-signal according to the gradient norm of the demodulated signal and the frequency corresponding to the sub-signal, the present invention establishes an objective function with the minimum sum of bandwidths as the goal by establishing the frequency, that is, when the sum of the bandwidths of the IMF components of each order is minimized and the sum of the frequencies of the obtained IMFs of each order is equal to the original vibration signal, the optimal solution of the objective function is obtained.
[0105] It can be understood that the present invention searches and optimizes multiple decomposed sub-signals. When the combination of several sub-signals can satisfy the minimum sum of bandwidths and the sum of the frequencies of these sub-signals is equal to the original vibration signal, these sub-signals are output as optimal solutions, and these sub-signals are input as representative sub-signals into the model for analysis and prediction.
[0106] The present invention can reduce the influence of noise and redundant information by minimizing bandwidth while maintaining the frequency characteristics of the signal, thereby improving the efficiency and accuracy of signal processing. In addition, the optimal solution found by the optimization algorithm can usually provide a more representative combination of IMF components, which can further improve the performance of subsequent analysis and prediction.
[0107] Specifically, since VMD divides the temperature data into K-order IMF components, and each order IMF component has its own natural frequency, the original vibration signal can be distinguished according to different natural frequencies. In the process of solving the objective function, the present invention can solve the objective function by augmented Lagrange multiplier method and alternating direction multiplier method under the constraint that the sum of the frequencies of each sub-signal to be predicted must be equal to the original frequency of a temperature signal, and generate a plurality of sub-signals to be predicted with different frequencies when the sum of the bandwidths of each sub-signal to be predicted is minimized;
[0108] In order to obtain the optimal solution to this constraint, the augmented Lagrange multiplier method and the alternating direction multiplier method are used to continuously update the constraint problem, and the penalty factor α and the Lagrange multiplication operator λ(t) are introduced, as shown in the following formula:
[0109]
[0110] The above formulas are the function formulas corresponding to the Lagrange multiplier method and the alternating direction multiplier method, respectively. f(t) is the Fourier transform of the original signal, f λ (t) is the Fourier transform of the Lagrange multiplication operator, ω n is the central frequency of each order IMF, α and λ(t) are the penalty factor and Lagrange multiplier respectively.
[0111] In signal processing, many problems are non-convex, that is, there are multiple local optimal solutions. The augmented Lagrange multiplier method and the alternating direction multiplier method can usually find the global optimal solution or a solution close to the global optimal solution. By introducing penalty factors and Lagrange multipliers, the smoothness and stability of the solution can be further controlled.
[0112] By finding the optimal combination of IMF components, the influence of noise and redundant information can be eliminated or reduced, thereby improving the accuracy of subsequent analysis and prediction. In addition, since these components have clear frequency characteristics, they can provide strong support for subsequent model frequency domain analysis and processing.
[0113] The main process of the present invention includes five parts: inputting conductor time-history temperature data, VMD decomposition, Transformer encoding, LSTM prediction and reconstruction. The result of conductor time-history temperature data after VMD processing is as follows: Figure 2 As shown in the figure, it can be seen that VMD achieves the separation of features of various orders; among them, the process of the energy-saving wire surface temperature prediction method based on the Transformer-LSTM algorithm is as follows Figure 3 As shown, it includes input wire time history temperature data, VMD decomposition, Transformer, LSTM and reconstruction.
[0114] For step S3, in a preferred embodiment, the IMFs of various orders obtained in step 2 (i.e., the solved sub-signals to be predicted) are first normalized, and the process is as follows:
[0115]
[0116] Among them, X represents the value of each IMF component (i.e. the sub-signal to be predicted after solution), Xmax represents the maximum value of the IMF component, and Xmin represents the minimum value of the IMF component. The values in the IMF component refer to u m Each data size in (t), u m The horizontal axis of (t) is time and the vertical axis is temperature.
[0117] When the sub-signal to be predicted is input into a preset wire temperature prediction model, the wire temperature prediction model can generate a prediction sub-signal corresponding to the sub-signal to be predicted based on the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time.
[0118] Indicatively, when the conductor temperature prediction model to be trained is iteratively trained, it includes:
[0119] During each training, a sub-signal sample data is input into the conductor temperature prediction model, so that the conductor temperature prediction model generates a sub-signal prediction result corresponding to the sub-signal sample data according to the spectral characteristics in the sub-signal sample data, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the temperature change over time;
[0120] The sub-signal prediction results are compared with the actual sub-signal results, and the network parameters of the conductor temperature prediction model are adjusted according to the comparison results;
[0121] Until the model converges, a preset wire temperature prediction model is generated.
[0122] Specifically, the wire temperature prediction model is composed of a Transformer model; wherein the decoding module in the Transformer model is composed of an LSTM neural network; that is, the present invention can replace the decoding module in the Transformer model with the LSTM neural network, thereby obtaining a Transformer-LSTM combination model.
[0123] The generation process of the prediction sub-signal corresponding to the sub-signal to be predicted specifically includes:
[0124] Inputting the sub-signals to be predicted into a preset wire temperature prediction model so that the Transformer model performs position encoding on each sub-signal to be predicted, then comparing each sub-signal to be predicted that has undergone position encoding, and generating an attention weight for characterizing position correlation for each sub-signal to be predicted according to the comparison result;
[0125] Inputting the attention weight of each sub-signal to be predicted into the Transformer model, so that the Transformer model extracts the spectral features in the sub-signal to be predicted, the statistical features for characterizing the distribution of the temperature signal, and the periodic features for characterizing the change of temperature over time according to the attention weight of each sub-signal to be predicted;
[0126] The spectral features, statistical features and periodic features of the sub-signal to be predicted are input into the LSTM neural network, so that the LSTM neural network can capture the contextual dependencies in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, and then generate a predicted sub-signal corresponding to the sub-signal to be predicted according to the contextual dependencies.
[0127] Wherein, the LSTM neural network includes a forget gate, an input gate and an output gate;
[0128] The LSTM neural network captures the context dependency in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, including:
[0129] The spectral features, statistical features and periodic features are respectively converted into features in numerical form, and each feature is combined into an initial word vector matrix;
[0130] The initial hidden state is used as the hidden state of the current time step; wherein the hidden state is used to characterize the context dependency currently captured by the LSTM neural network;
[0131] Use the initial word vector matrix as the word vector matrix of the current time step;
[0132] Repeat the following context dependency generation operation until the preset number of iterations is reached to generate the context dependency in the sub-signal to be predicted:
[0133] Input the word vector matrix of the current time step and the hidden state of the current time step into the forget gate of the LSTM neural network, so that the forget gate processes the word vector matrix and the hidden state through matrix multiplication and weighted sum of biases to generate a forgetting factor for forgetting features corresponding to the word vector matrix;
[0134] The word vector matrix of the current time step and the hidden state of the current time step are input into the input gate of the LSTM neural network, so that the input gate processes the word vector matrix and the hidden state through the sigmoid activation function to generate an update factor for retaining the feature.
[0135] Input the word vector matrix of the current time step and the hidden state of the current time step into the output gate of the LSTM neural network, so that the output gate processes the word vector matrix of the current time step and the hidden state of the current time step through an activation function to generate an output factor for outputting features;
[0136] The forgetting factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be forgotten; then the update factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be updated;
[0137] Generate an updated word vector matrix according to the vector features to be forgotten and the vector features to be updated;
[0138] Inputting the updated word vector matrix into the output gate so that the output gate generates an updated hidden state according to the output factor and the updated word vector matrix;
[0139] When it is determined that the preset number of iterations has not been reached, the updated word vector matrix is used as the word vector matrix of the current time step for the next execution of the context dependency generation operation, and the updated hidden state is used as the hidden state of the current time step for the next execution of the context dependency generation operation.
[0140] Specifically, the positions of IMFs of different orders are encoded by different sine and cosine functions as shown in the following formula:
[0141]
[0142] Among them, pos represents the position information, i represents the dimension of the position encoding, and d modl Represents the dimension of the input vector.
[0143] After position encoding, each element in the position-encoded IMF of each order is compared with other elements, and the attention weight between each data and other data is calculated by the following formula:
[0144] MuliHead(Q,K,V)=Conaathed1,..,head h )W 0
[0145] heed i =Attention(QW iQ ,KW i K ,VW i V );
[0146] Through the above formula, the model can pay attention to all the position information at the current moment and derive the correlation between them. Then a feedforward layer is connected to the network to extract the effective features of the input data. The process is as follows:
[0147] FFN(x)=max(0,xW1+b1)W2+b2;
[0148] Among them, W1, W2, b1, and b2 represent the parameters of the feedforward sublayer respectively.
[0149] Schematically, in the Transformer model, spectral features are usually extracted from the frequency domain representation of the signal, such as by performing Fourier transform (or its variant, such as fast Fourier transform FFT) on the signal to obtain the frequency composition of the signal. In spectrum analysis, the main focus is on the frequency distribution, main frequency components, harmonics, etc. of the signal, so that the model can understand the periodicity and oscillation characteristics in the signal.
[0150] Statistical features are extracted from the time domain representation of the signal to describe the overall or local properties of the signal, such as mean, median, mode, standard deviation, skewness, kurtosis, maximum, minimum, range (maximum-minimum), etc. For temperature signals, statistical features can characterize the overall level, range of variation, volatility, etc. For example, the standard deviation can indicate the magnitude of temperature variation, while skewness and kurtosis can provide information about the shape of the temperature distribution.
[0151] Periodic features are used to describe periodic patterns or trends in a signal, such as the signal's period length, phase, amplitude, etc. Schematically, potential periodicity can be detected by calculating the autocorrelation function or power spectral density.
[0152] After being processed by the Transformer, the model can learn and understand the data more fully. The extracted feature information can then be input into the LSTM to enhance the extraction of nonlinear features and provide smoother prediction results, that is, the contextual dependencies in the sub-signal to be predicted can be further captured, thereby deriving accurate prediction sub-signals.
[0153] Schematically, the LSTM neural network includes a forget gate, an input gate and an output gate;
[0154] First, the data and features processed by Transformer will enter the forget gate f as input data t, which will discard some unimportant information from the data, i.e.
[0155] f t =σ(W f ·[h t-1 ,x t ]+b f );
[0156] Among them, σ is the activation function; W is the weight related to the input in each gate; h t-1 is the recursive weight; b is the bias component in each gate. t Refers to the input IMF components.
[0157] Then, the data will enter the input gate i t , which will determine how much of the current moment's input is retained to the current moment, that is,
[0158] i t =σ(W i ·[h t-1 ,x t ]+b i );
[0159]
[0160] in, Represents the candidate state information within the unit; tanh is the hyperbolic tangent function.
[0161] The old state With f t Multiplying and discarding the information that needs to be discarded completes the state update, that is,
[0162]
[0163] in, The output value of each gate and the status information of the previous unit c t-1 Together they determine the status information c in the next level unit t .
[0164] Finally, the data will go into the output gate, which will determine how many outputs the cell state at the current moment has:
[0165] o t =σ(W o [h t-1 ,x t ]+b o );
[0166] h t =o t tanhc t ;
[0167] That is, the output gate o t and the status information c in the next level unit t This determines the unit layer output information h t , that is, each prediction sub-signal, where the unit layer outputs information h t It is also u' mentioned in the following step S4 m .
[0168] For step S4, in a preferred embodiment, after the prediction by Transformer-LSTM, the prediction results u' of each IMF are m By adding them together, we can get the final conductor temperature prediction result f'(x). The process is as follows:
[0169]
[0170] like Figure 4 As shown in the processing flow diagram of each order IMF, the present invention can decompose the scene of each sub-signal, analyze and predict each order IMF separately, and then reconstruct each prediction result to obtain the final prediction result of the surface temperature of the conductor.
[0171] The Transformer-LSTM prediction results for the temperature signal are as follows Figure 5 As shown, it can be seen that the prediction accuracy of the present invention is high, and the predicted signal and the actual signal basically coincide with each other, which illustrates the feasibility of the present method in wire temperature prediction.
[0172] Therefore, the present invention can independently analyze and predict each intrinsic mode function (IMF) by decomposing the original temperature signal into multiple intrinsic mode functions (IMFs), so that the model can focus on the specific frequency and characteristics of each IMF, thereby more accurately capturing the subtle patterns of conductor temperature changes. Figure 5 It is shown in FIG. 1 that the predicted signal of the present invention substantially coincides with the actual signal, which proves the high accuracy of the decomposition-and-reconstruction method in predicting the wire temperature.
[0173] The wire temperature signal is usually complex and nonlinear, containing multiple frequency components and noise. By decomposing the signal, these components can be separated, allowing the model to process each component separately, thereby improving the model's adaptability to complex signals. And because each IMF can be processed independently, parallel computing technology can be used to speed up the prediction process, which can not only improve computational efficiency but also reduce overall prediction time.
[0174] In the model of the present invention, the LSTM model is used to capture the long-term dependencies in the sequence data. In the decomposition and reconstruction framework, the LSTM can focus on the long-term trend of each IMF, while the Transformer model is responsible for capturing the global dependencies, so that the present invention can achieve more accurate temperature prediction.
[0175] In a preferred embodiment, the present invention can use the predicted temperature signal to monitor the temperature status of the wire in real time and set a threshold to trigger an early warning system. When the predicted temperature exceeds the safety threshold, the system can automatically send an alarm so that timely measures can be taken to prevent potential equipment damage or safety risks.
[0176] By analyzing the predicted temperature signals, it is also possible to predict the thermal stress or other potential problems that the conductor may face, so that preventive maintenance plans can be developed. Appropriate measures can be taken before problems occur, reducing equipment failures and downtime.
[0177] like Figure 6 As shown, based on the above-mentioned various embodiments of the method for predicting conductor temperature based on the transmission line, the present invention provides a corresponding device embodiment;
[0178] An embodiment of the present invention provides a conductor temperature prediction device based on a transmission line, comprising: a temperature signal acquisition module, a sub-signal decomposition module, a sub-signal prediction module and a temperature signal prediction module;
[0179] The temperature signal acquisition module is used to acquire a plurality of temperature signals corresponding to the wire in a preset period; wherein the preset period is a period before the current moment;
[0180] The sub-signal decomposition module is used to decompose each temperature signal into a plurality of sub-signals to be predicted with different frequencies;
[0181] The sub-signal prediction module is used to input the sub-signal to be predicted into a preset wire temperature prediction model for each sub-signal to be predicted, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time;
[0182] The temperature signal prediction module is used to reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment;
[0183] The training process of the conductor temperature prediction model is as follows:
[0184] Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model.
[0185] It should be noted that the device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, and may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without paying creative labor.
[0186] Those skilled in the art can clearly understand that, for the sake of convenience and simplicity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0187] Based on the above-mentioned various embodiments of the method for predicting conductor temperature based on a power transmission line, the present invention provides corresponding embodiments of terminal equipment items.
[0188] An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a conductor temperature prediction method based on a transmission line as described in any method embodiment of the present invention is implemented.
[0189] The terminal device may be a computing terminal device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0190] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0191] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.
[0192] Based on the above-mentioned various embodiments of the method for predicting conductor temperature based on a power transmission line, the present invention provides a corresponding storage medium item embodiment.
[0193] An embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a conductor temperature prediction method based on a transmission line as described in any method embodiment of the present invention.
[0194] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0195] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for predicting conductor temperature based on a transmission line, characterized in that: include: Acquire a plurality of temperature signals corresponding to the conductor in a preset time period; wherein the preset time period is a time period before the current moment; Decompose each temperature signal into several sub-signals with different frequencies to be predicted; For each sub-signal to be predicted, the sub-signal to be predicted is input into a preset wire temperature prediction model, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time; Reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment; The training process of the conductor temperature prediction model is as follows: Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model.
2. A method for predicting conductor temperature based on a transmission line according to claim 1, characterized in that: The step of decomposing each temperature signal into a plurality of sub-signals to be predicted with different frequencies includes: Decompose each temperature signal into corresponding sub-signals; For each sub-signal, the frequency corresponding to each sub-signal is obtained based on Hilbert transform; For each sub-signal, a demodulated signal of the corresponding temperature signal is obtained, and a bandwidth corresponding to the sub-signal is generated according to a gradient norm of the demodulated signal and a frequency corresponding to the sub-signal; According to the bandwidth of each sub-signal, an objective function with the minimum sum of bandwidth as the goal is established; wherein the objective function includes: frequency constraints of the sub-signals; Under the frequency constraint, the objective function is solved by an augmented Lagrange multiplier method and an alternating direction multiplier method, and a plurality of sub-signals to be predicted with different frequencies are generated when the sum of the bandwidths of the sub-signals to be predicted is minimized; The frequency constraint is that the sum of the frequencies of the sub-signals to be predicted is equal to the original frequency of a temperature signal.
3. A method for predicting conductor temperature based on a transmission line according to claim 2, characterized in that: Before generating the bandwidth corresponding to the sub-signal according to the gradient norm of the demodulated signal and the frequency corresponding to the sub-signal, the method further includes: Applying the hybrid operator to the frequency adjustment process of the sub-signal to obtain the adjusted frequency of the sub-signal; The frequency of the sub-signal after adjustment is calculated according to the following formula: f um(t) =[δ(t)+j / πt)*u m (t)]e jwnt ; In the formula, f um(t) is the frequency of the sub-signal after adjustment, δ(t) is the Dirac distribution function, u m (t) is the frequency of the sub-signal before adjustment, e jwnt is a mixed operator.
4. A method for predicting conductor temperature based on a transmission line according to claim 3, characterized in that: The formula corresponding to the objective function is: Among them, B um(t) is the bandwidth of the mth sub-signal, k is the preset number of sub-signals to be predicted; u m (t) is the frequency of the sub-signal before adjustment, S is the original frequency of a temperature signal, It means to take partial derivative of the adjusted frequency of the sub-signal.
5. A method for predicting conductor temperature based on a transmission line according to claim 1, characterized in that: The wire temperature prediction model is composed of a Transformer model; wherein the decoding module in the Transformer model is composed of an LSTM neural network; The generation process of the predicted sub-signal corresponding to the sub-signal to be predicted includes: Inputting the sub-signals to be predicted into a preset wire temperature prediction model so that the Transformer model performs position encoding on each sub-signal to be predicted, then comparing each sub-signal to be predicted that has undergone position encoding, and generating an attention weight for characterizing position correlation for each sub-signal to be predicted according to the comparison result; Inputting the attention weight of each sub-signal to be predicted into the Transformer model, so that the Transformer model extracts the spectral features in the sub-signal to be predicted, the statistical features used to characterize the distribution of the temperature signal, and the periodic features used to characterize the change of temperature over time according to the attention weight of each sub-signal to be predicted; The spectral features, statistical features and periodic features of the sub-signal to be predicted are input into the LSTM neural network, so that the LSTM neural network can capture the contextual dependencies in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, and then generate a predicted sub-signal corresponding to the sub-signal to be predicted according to the contextual dependencies.
6. A method for predicting conductor temperature based on a transmission line according to claim 5, characterized in that: The LSTM neural network includes a forget gate, an input gate and an output gate; The LSTM neural network captures the context dependency in the sub-signal to be predicted according to the spectral features, statistical features and periodic features, including: The spectral features, statistical features and periodic features are respectively converted into features in numerical form, and each feature is combined into an initial word vector matrix; The initial hidden state is used as the hidden state of the current time step; wherein the hidden state is used to characterize the context dependency currently captured by the LSTM neural network; Use the initial word vector matrix as the word vector matrix of the current time step; Repeat the following context dependency generation operation until the preset number of iterations is reached to generate the context dependency in the sub-signal to be predicted: Input the word vector matrix of the current time step and the hidden state of the current time step into the forget gate of the LSTM neural network, so that the forget gate processes the word vector matrix and the hidden state through matrix multiplication and weighted sum of biases to generate a forgetting factor for forgetting features corresponding to the word vector matrix; The word vector matrix of the current time step and the hidden state of the current time step are input into the input gate of the LSTM neural network, so that the input gate processes the word vector matrix and the hidden state through the sigmoid activation function to generate an update factor for retaining the feature. Input the word vector matrix of the current time step and the hidden state of the current time step into the output gate of the LSTM neural network, so that the output gate processes the word vector matrix of the current time step and the hidden state of the current time step through an activation function to generate an output factor for outputting features; The forgetting factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be forgotten; then the update factor is multiplied by the word vector matrix of the current time step to generate the vector feature to be updated; Generate an updated word vector matrix according to the vector features to be forgotten and the vector features to be updated; Inputting the updated word vector matrix into the output gate so that the output gate generates an updated hidden state according to the output factor and the updated word vector matrix; When it is determined that the preset number of iterations has not been reached, the updated word vector matrix is used as the word vector matrix of the current time step for the next execution of the context dependency generation operation, and the updated hidden state is used as the hidden state of the current time step for the next execution of the context dependency generation operation.
7. A method for predicting conductor temperature based on a transmission line according to claim 6, characterized in that: When iteratively training the wire temperature prediction model to be trained, it also includes: During each training, a sub-signal sample data is input into the conductor temperature prediction model, so that the conductor temperature prediction model generates a sub-signal prediction result corresponding to the sub-signal sample data according to the spectral characteristics in the sub-signal sample data, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the temperature change over time; The sub-signal prediction results are compared with the actual sub-signal results, and the network parameters of the conductor temperature prediction model are adjusted according to the comparison results.
8. A conductor temperature prediction device based on a transmission line, characterized in that: include: A temperature signal acquisition module, a sub-signal decomposition module, a sub-signal prediction module and a temperature signal prediction module; The temperature signal acquisition module is used to acquire a plurality of temperature signals corresponding to the wire in a preset period; wherein the preset period is a period before the current moment; The sub-signal decomposition module is used to decompose each temperature signal into a plurality of sub-signals to be predicted with different frequencies; The sub-signal prediction module is used to input the sub-signal to be predicted into a preset wire temperature prediction model for each sub-signal to be predicted, so that the wire temperature prediction model generates a prediction sub-signal corresponding to the sub-signal to be predicted according to the spectral characteristics of the sub-signal to be predicted, the statistical characteristics used to characterize the distribution of the temperature signal, and the periodic characteristics used to characterize the change of temperature over time; The temperature signal prediction module is used to reconstruct each prediction sub-signal to generate a predicted temperature signal corresponding to the current moment; The training process of the conductor temperature prediction model is as follows: Taking the sub-signal sample data of each time period as input and the actual predicted sub-signal corresponding to each sub-signal in the sample data as output, the conductor temperature prediction model to be trained is iteratively trained until the model converges to generate a preset conductor temperature prediction model.
9. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a conductor temperature prediction method based on a transmission line is implemented as claimed in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute a conductor temperature prediction method based on a transmission line according to any one of claims 1 to 7.
Citation Information
Cited By
Method and system for checking electrical fault high-risk points of underground pipe gallery
CN120317864A
