Internal temperature measurement method and system of electrical equipment winding based on optical fiber sensing and machine learning
By using fiber optic sensors and machine learning models outside the windings of electrical equipment, the problem of space occupied by sensors and electromagnetic balance in traditional methods is solved, highly accurate and robust predictions of the temperature inside the windings are achieved, and the measurement process is simplified.
Patent Information
- Application Number
- CN202210507701.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-10
AI Technical Summary
The existing technology has problems in measuring the internal temperature of the windings of electrical equipment, such that the sensor arrangement occupies a large space and affects efficiency and electromagnetic balance, and it is difficult to achieve accurate global temperature monitoring using traditional methods.
Using a method based on optical fiber sensing and machine learning, fiber grating sensors are arranged outside the winding to obtain spectral center wavelength characteristic information and electrical characteristic information, and the machine learning model is used to predict the internal temperature of the winding, which avoids the built-in problems of traditional sensors and improves efficiency. Measurement accuracy and robustness.
It achieves accurate prediction of temperature at multiple locations inside the winding without affecting the winding slot fullness and electromagnetic balance, improves the accuracy and reliability of temperature measurement, and simplifies sensor layout and maintenance.
Smart Images

Figure CN115099122B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical equipment containing windings, and in particular to a method and system for measuring the internal temperature of windings of electrical equipment based on optical fiber sensing and machine learning. Background Art
[0002] The measurement of the internal temperature of the winding is generally achieved by embedding a corresponding number and position of thermocouples in the winding. If the global monitoring of the internal temperature of the winding is required, a large number of temperature sensors need to be arranged in the winding. However, the arrangement of a large number of traditional electronic sensors will lead to a chaotic winding layout and affect efficiency. Even the arranged thermocouples themselves may cause local hot spots due to electromagnetic imbalance with the winding. Therefore, the industry will not place too many thermocouples inside the windings of electrical equipment, so the industry is in an uncontrollable state for the local hot spots inside the windings of electrical equipment.
[0003] At present, it has been proposed to use fiber Bragg grating sensors (FBG) for thermal monitoring of fixed components in motors. The advantages of fiber optic sensors include dielectric, anti-electromagnetic interference, compactness (small weight and size), high sensitivity and high robustness. Related literature has also demonstrated the feasibility of using fiber Bragg grating sensors for temperature monitoring inside the winding.
[0004] However, whether it is a fiber grating sensor or a thermocouple to monitor the internal temperature of the winding, the sensor is placed inside the winding, such as Figure 1 The diagram in the figure shows the structure of using a thermocouple to monitor the internal temperature of the winding. Figure 2 The figure shows a schematic diagram of the structure of monitoring the internal temperature of the winding by using a fiber Bragg grating sensor. Although the use of fiber Bragg grating sensors can eliminate the occurrence of local hot spots to a certain extent, it still cannot solve the problems of occupying physical space, reducing the winding slot full rate, and even the chaotic winding layout. If the fiber Bragg grating sensor is directly placed on the outer surface of the winding, it is impossible to monitor the temperature inside the winding accurately in a good way. Summary of the invention
[0005] In order to better monitor the temperature of windings in electrical equipment, the present application provides a method and system for measuring the internal temperature of windings of electrical equipment based on optical fiber sensing and machine learning.
[0006] In the first aspect, the present application provides a method for measuring the internal temperature of an electrical equipment winding based on optical fiber sensing and machine learning, which adopts the following technical solution:
[0007] A method for measuring the internal temperature of a winding of an electrical device based on optical fiber sensing and machine learning, comprising:
[0008] Acquire the characteristic information of the center wavelength of the spectrum, the electrical characteristic information of the electrical equipment and the temperature characteristic information of the winding at several moments, wherein the characteristic information of the center wavelength of the spectrum is obtained by a fiber grating sensor arranged outside the winding;
[0009] The spectral center wavelength characteristic information, electrical characteristic information and winding temperature characteristic information at the same moment are used as input variable data sets, and the winding temperature characteristic information at the same moment is used as output variable data sets, wherein the output variable data sets correspond to the input variable data sets one by one;
[0010] Training a prediction model based on the acquired input variable data set and output variable data set;
[0011] In the process of predicting the internal temperature of the winding, data corresponding to the input variable data set is input into the prediction model to obtain corresponding winding temperature characteristic information at the same time.
[0012] By adopting the above technical solution, the method of combining real-time sensor monitoring data with machine learning models for prediction can overcome the related shortcomings of difficult determination of measurement point locations, temperature measurement blind spots, and insufficient timeliness. In terms of sensor layout, fiber grating sensors can be placed only on the surface of the winding to predict the temperature at multiple locations inside the winding. Compared with the traditional method of placing thermocouples inside the winding, this implementation scheme neither affects the slot fill rate of the winding nor the electromagnetic balance of the electrical equipment. At the same time, by taking multiple reliability parameters of electrical equipment as input, the robustness and accuracy of the temperature prediction at multiple locations inside the winding are higher. And the specific feature quantity of the characteristic information can be modified according to the specific reliability parameters of the actual application electrical equipment.
[0013] Preferably, the input variable data set and the output variable data set include data of the winding under all working modes.
[0014] By adopting the above technical solution, the prediction model needs to be trained for data under all working systems, so as to avoid the deviation of the trained prediction model caused by the omission of data and improve the accuracy of the prediction model training results.
[0015] Preferably, the input variable data set includes a training data set and a test data set, and the method for training the prediction model includes:
[0016] Constructing a target prediction model function according to an input variable data set in a training data set, wherein the target prediction model function has a plurality of preset and pending hyperparameters, wherein the plurality of pending hyperparameters are defined as a hyperparameter combination;
[0017] Input the input variable data set in the test data set into the target prediction model function, and verify the result with the corresponding output variable data set to determine whether the preset termination training condition is met;
[0018] If the preset termination training condition is not met, the hyperparameter combination will be iteratively optimized until the preset termination training condition is met.
[0019] By adopting the above technical solution, the prediction model is evolved towards the optimal prediction model by iterating and evolving the hyperparameter combination required by the prediction model, thereby improving the accuracy of the prediction model in the process of continuous training and iteration.
[0020] Preferably, the constructed target prediction model function is:
[0021]
[0022] Among them, K(x i , x) is the kernel function, x i is the input variable data set, is the Lagrangian operator, b is the intercept, i represents the i-th data set sample containing the input variable data set and the output variable data set, and n represents the sample size.
[0023] By adopting the above technical solution, the prediction model constructed by using this target prediction model function has a shorter modeling cycle, and it shows good prediction performance and generalization ability for small samples, high dimensions, and nonlinear models. The application of internal temperature prediction of electrical equipment windings just meets the characteristics of the above three application scenarios.
[0024] Preferably, the kernel function is a linear combination of a radial basis kernel function, a sigmoid kernel function and a polynomial kernel function, and the kernel function is:
[0025] K(x i ,x)=μ1K1(x i ,x)+μ2K2(x i ,x)+μ3K3(x i , x)
[0026] in,
[0027]
[0028]
[0029]
[0030] Where σ is the radial basis kernel scale and is greater than 0, β is the Sigmoid kernel coefficient and is greater than 0, d is the polynomial kernel coefficient and is greater than or equal to 0, μ1, μ2, and μ3 are the weights of the radial basis kernel function, the Sigmoid kernel function, and the polynomial kernel function, respectively.
[0031] μ1+μ2+μ3=1°
[0032] Preferably, the termination training condition includes calculating at least one or more of the mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient in sequence according to the result of the output target prediction model function and the corresponding output variable data set, and comparing the obtained result with the corresponding termination condition;
[0033] The mean absolute error is expressed as follows:
[0034]
[0035] The mean absolute percentage error is calculated using the formula:
[0036]
[0037] The root mean square error is expressed as:
[0038]
[0039] The regression coefficient of determination is expressed as:
[0040]
[0041] Where N is the number of input variable data sets in the test data set, e MAE is the mean absolute error, e MAPE is the mean absolute percentage error, e RMSE为 Root mean square error, R is the regression determination coefficient, Represents the winding temperature characteristic information obtained after the i-th input variable data set is input into the target prediction model function, Represents the winding temperature characteristic information of the i-th output variable data set.
[0042] Preferably, the method for iterative optimization of hyperparameter combinations comprises:
[0043] According to the hyperparameter combination required to be iterated and the set population size, a corresponding hyperparameter combination population is formed;
[0044] Select a number of population individuals from the hyperparameter combination population and mutate them to obtain mutant individuals;
[0045] Perform a crossover operation on the mutant individuals to obtain the experimental individuals;
[0046] The mean absolute error, mean absolute percentage error, and root mean square error of the target prediction model function constructed by the experimental individuals are calculated, and compared with the mean absolute error, mean absolute percentage error, and root mean square error of the target prediction model function constructed by the required iterative hyperparameter combination. Based on the comparison results, the experimental individuals or the required iterative hyperparameter combination are selected as the iteratively optimized hyperparameter combination.
[0047] By adopting the above technical solution, this iterative optimization method has simpler steps, fewer algorithm control parameters, stronger global search capabilities and robustness, and significantly improves optimization accuracy and speed. Compared with other evolutionary algorithms, this method can train the prediction model faster and with higher accuracy.
[0048] Preferably, three individuals are selected from the population, and the mutation operation satisfies the formula:
[0049]
[0050] Where r1, r2, r3∈[1, NP]'NP is the set population size, and r1, r2, r3 are different from each other, F is the preset scaling factor, g is the number of iterative optimizations, z is the hyperparameter combination individual in the hyperparameter combination population, and v is the variant individual;
[0051] The crossover operation satisfies the formula:
[0052]
[0053] In the formula, j∈[0,1] is randomly generated, CR∈[0,1] is the crossover probability, and u is the test individual;
[0054] Select operations that satisfy the formula:
[0055]
[0056] Preferably, before being divided into a training data set and a test data set, the obtained input variable data set and output variable data set are standardized;
[0057] The standardization process satisfies the formula:
[0058]
[0059] In the formula is the standardized input variable data set, x i is the input variable data set before standardization, and are the maximum and minimum values of the input variable data set before standardization.
[0060] By adopting the above technical solution, after standardization preprocessing, it will be converted into standardized values, unify the comparison standards, ensure the reliability of the results, and eliminate the impact of different attributes between different indicators.
[0061] In the second aspect, the present application provides an electrical equipment winding internal temperature measurement system based on optical fiber sensing and machine learning, which adopts the following technical solutions:
[0062] An electrical equipment winding internal temperature measurement system based on optical fiber sensing and machine learning, comprising: an FBG sensor unit, including an optical fiber grating sensor, arranged outside the winding and used to obtain spectral center wavelength characteristic information;
[0063] A temperature measurement unit, having a built-in prediction model, for processing data input into the temperature measurement unit to obtain a corresponding winding temperature;
[0064] The method for constructing the prediction model includes:
[0065] Acquire the characteristic information of the center wavelength of the spectrum, the electrical characteristic information of the electrical equipment and the temperature characteristic information of the winding at several moments, wherein the characteristic information of the center wavelength of the spectrum is obtained by a fiber grating sensor arranged outside the winding;
[0066] The spectral center wavelength characteristic information, electrical characteristic information and winding temperature characteristic information at the same moment are used as input variable data sets, and the winding temperature characteristic information at the same moment is used as output variable data sets, wherein the output variable data sets correspond to the input variable data sets one by one;
[0067] The prediction model is trained based on the obtained input variable data set and output variable data set.
[0068] In summary, the present application includes at least one of the following beneficial technical effects:
[0069] 1. Through the method of combining real-time sensor monitoring data with machine learning models for prediction, the shortcomings of previous direct measurement methods (difficult to determine the location of the measurement point, temperature measurement blind spots), numerical simulation methods (long modeling cycle, requiring detailed electromagnetic, material, and dimensional parameters of the corresponding electrical equipment, and errors with actual conditions) and intelligent learning methods (lack of model generalization ability and lack of timeliness) are overcome;
[0070] 2. In terms of sensor placement, the temperature at multiple locations inside the winding can be predicted by placing fiber grating sensors only on the surface of the winding. Compared with the traditional method of placing thermocouples inside the copper enameled wire winding, this implementation scheme neither affects the slot fullness of the winding nor the electromagnetic balance of the electrical equipment; at the same time, the sensors placed on the surface of the winding are easy to install, uninstall, calibrate and maintain;
[0071] 3. It shows good prediction performance and generalization ability for small samples, high dimensions, and nonlinear models. The application of temperature prediction inside the winding of electrical equipment just meets the characteristics of the above three application scenarios. At the same time, multiple reliability parameters of electrical equipment are used as inputs of the prediction model, and the robustness and accuracy of temperature prediction at multiple positions inside the winding are higher. The hyperparameter iterative optimization method using differential evolution also has the advantages of high precision and high speed. At the same time, the weights corresponding to multiple kernel functions can also be optimized through the iterative method of differential evolution, which solves the problem that there is no universal standard for selecting kernel functions for nonlinear prediction applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a schematic diagram of the structure when the thermocouple sensor is placed in the winding.
[0073] Figure 2 It is a schematic diagram of the structure when the fiber grating sensor is placed in the winding.
[0074] Figure 3 It is a structural schematic diagram when the fiber grating sensor is arranged outside the winding of the motor.
[0075] Figure 4 It is a flowchart of a training method for a prediction model according to one embodiment of the present invention.
[0076] Figure 5 It is a flowchart of a hyperparameter iterative optimization method according to one embodiment of the present invention. DETAILED DESCRIPTION
[0077] The following is combined with Figure 3-5 This application is described in further detail.
[0078] An embodiment of the present application discloses a method for measuring the internal temperature of an electrical equipment winding based on optical fiber sensing and machine learning, wherein the method inputs corresponding parameters into a pre-trained prediction model, and then the results output by the prediction model can characterize the real-time temperature of multiple points inside the winding.
[0079] This method is based on the corresponding temperature measurement system, which collects data outside the winding through a fiber Bragg grating sensor (multi-point fiber Bragg grating string) set outside the winding (refer to Figure 3), combined with a machine learning algorithm model, the temperature of each point in the winding can be estimated well without sensors in the winding. Therefore, in the manufacturing process of electrical equipment windings with the same parameters, there is no need to embed any sensors inside the windings. On the one hand, it will make the manufacturing process of the windings simpler, and at the same time, it will not occupy the physical space inside the windings, thereby improving the slot fill rate of the windings. Multi-point fiber grating strings have the advantages of being customizable, immune to electromagnetic interference, and small in space (generally the diameter of a single-mode optical fiber is 125 microns, and after high-temperature resistant coating, it will basically not exceed 500 microns).
[0080] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the construction of the prediction model will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0082] The construction of the prediction model is further described in detail below in conjunction with the accompanying drawings of the specification. Figure 4 , and its specific methods include:
[0083] S100: Acquire spectrum center wavelength characteristic information, electrical characteristic information of electrical equipment, and winding temperature characteristic information at several moments.
[0084] The characteristic information of the central wavelength of the spectrum is obtained through a fiber grating sensor (custom-written multi-grating fiber grating string) arranged outside the winding, and the fiber grating sensor is a part of the FBG sensor unit.
[0085] The electrical characteristic information of electrical equipment will change according to the target object. When the target object is a rotating motor, its electrical characteristic information includes load current I, load voltage V, motor torque τ, and speed r. For the motor, the total power and mechanical power of the motor can be analyzed from the above four mechanical and electrical characteristic quantities, which are effective characteristic quantities when the motor is running. The corresponding electrical characteristic information is collected from the power supply or the control system of the electrical equipment. For other non-motor winding practical examples, such as when the target object is a transformer winding, the switching frequency of its control unit, the oil temperature at various locations, etc. can also be introduced as input features for the construction of the machine learning model, while the torque, speed and other mechanical characteristics that do not exist in the transformer are deleted.
[0086] The characteristic information of winding temperature is the temperature at different positions inside the winding. The acquisition of the internal temperature of the winding is achieved by embedding a temperature sensor in the winding of the test prototype of the same winding electrical characteristics. The temperature sensor can be the aforementioned fiber grating sensor and obtain the corresponding temperature through the corresponding conversion method, or the temperature can be collected through a thermocouple sensor.
[0087] Among them, taking the motor as an example, in the process of collection, it is necessary to simulate the prototype under full working conditions to collect the spectral center wavelength characteristic information, the electrical characteristic information of the winding and the winding temperature characteristic information of each working mode under full working conditions, so as to ensure that in the subsequent training of the prediction model, the prediction model can identify the various conditions of the winding under full working conditions. In general, the working condition standards of rotating motors are formulated by IEC (IEC 60034-1: duty type S1-S10). However, according to the actual application scenarios of the motor, other specific new working conditions can also be introduced to collect data for machine learning model training.
[0088] S200: Using the spectral center wavelength characteristic information, electrical characteristic information and the winding temperature characteristic information at the previous moment as input variable data sets, and using the winding temperature characteristic information at the same moment as output variable data sets, wherein the output variable data sets correspond to the input variable data sets one by one.
[0089] Among them, at time zero, the winding temperature characteristic information in the input variable data set is the same as the winding temperature characteristic information in the output variable data set, both of which are characterized by the temperature of the winding at room temperature. Specifically, the input variable data set contains The output variable dataset contains CW1-CW N represents the central wavelength of the spectrum obtained by each fiber Bragg grating sensor, N represents the number of fiber Bragg grating sensors, and T ambient represents the ambient temperature, represents the temperature of each point in the winding obtained by the test prototype at the previous moment, and M represents the number of temperatures obtained by the sensor in the winding. n represents the sequence of moments, that is, n represents this moment, and n-1 represents the previous moment.
[0090] After obtaining the input variable data set and the output variable data set, the obtained input variable data set and the output variable data set will be standardized, and then the standardized data set will be randomly divided into a training data set and a test data set, which are used to perform different processing in subsequent steps.
[0091] The specific standardization preprocessing method is:
[0092]
[0093] In the formula is the standardized input variable data set, x i is the input variable data set before standardization, and They are the maximum and minimum values of the input variable data set before standardization. After standardization preprocessing, they will be converted into standardized values to unify the comparison standards, ensure the reliability of the results, and eliminate the impact of different attributes between different indicators.
[0094] The output variable data set is also processed in the same way, and the input variable data set and the output variable data set after standardization preprocessing are still in a one-to-one mapping relationship at the same time. As for the division of the training data set and the test data set, in the embodiment of the present application, the standardized data set is divided into a training data set and a test data set using the method of time series data division, for example, the first 50% is used for training and the second 50% is used for testing, and the training data set and the test data set still satisfy a one-to-one mapping relationship.
[0095] S300: constructing a target prediction model function according to an input variable data set in a training data set, wherein the target prediction model function has a number of preset and pending hyperparameters, wherein the number of pending hyperparameters are defined as a hyperparameter combination.
[0096] Among them, the temperature of multiple points inside the winding shows nonlinear characteristics over time, so it is necessary to first map the input variable data set from the low-dimensional space to the high-dimensional space through nonlinear mapping, so as to facilitate the corresponding operation in the high-dimensional feature space. The hyperplane function f(x) of this nonlinear mapping can be expressed as:
[0097] f(x)=ω·φ(x)+b
[0098] In the formula, ω, x, and b are weight coefficients, input features, and intercepts, respectively.
[0099] After that, since the parameters of the hyperplane function need to be solved, it is necessary to introduce slack variables to control the upper and lower bounds of the output and The analytical goal becomes to find the hyperplane function f(x), that is:
[0100]
[0101]
[0102] Where ε is the insensitive loss function parameter and C is the penalty factor.
[0103] Introducing the Lagrange multiplier After constructing the Lagrangian universal function with the kernel function, the above formula can be transformed into an equivalent quadratic programming dual problem, namely:
[0104]
[0105]
[0106] After minimizing the Lagrangian functional, the target prediction model function including the constructed kernel function can be obtained, namely:
[0107]
[0108] In the formula, K(x i , x) is the kernel function, x i is the input variable data set, i represents the i-th data set sample containing the input variable data set and the output variable data set, and n represents the sample size.
[0109] In this embodiment, the kernel function is formed by a linear combination of several kernel functions, so as to better perform the nonlinear temperature prediction function inside the winding. Among them, the kernel function is formed by a linear combination of a radial basis kernel function, a sigmoid kernel function and a polynomial kernel function, and the kernel function is:
[0110] K(x i ,x)=μ1K1(x i ,x)+μ2K2(x i ,x)+μ3K3(x i , x)
[0111] in,
[0112]
[0113]
[0114]
[0115] Where σ is the radial basis kernel scale and is greater than 0, β is the Sigmoid kernel coefficient and is greater than 0, d is the polynomial kernel coefficient and is greater than or equal to 0, μ1, μ2, μ3 are the weights of the radial basis kernel function, the Sigmoid kernel function, and the polynomial kernel function, and μ1+μ2+μ3=1
[0116] Therefore, based on the basic structure of the above prediction model, we know that ε, C, σ, β, d, μ1, μ2, and μ3 are all parameters that affect the prediction model, so these corresponding parameters are defined as hyperparameters. The corresponding is the hyperparameter combination. In the case of the first model construction, each hyperparameter in the hyperparameter combination will randomly generate an initial value within its respective limited range and bring it into the process of model construction to obtain the initial prediction model.
[0117] S400: Inputting the input variable data set in the test data set into the target prediction model function, and verifying the result with the corresponding output variable data set to determine whether the preset termination training condition is met.
[0118] S500: If the preset termination training condition is not met, the hyperparameter combination is iteratively optimized until the preset termination training condition is met.
[0119] Among them, after obtaining the initial prediction model, a corresponding prediction result can be initially obtained by inputting any data in the input variable data set into the target prediction model function. However, under the premise that the hyperparameter combination is randomly generated, the deviation between the prediction result and the actual result will be large. Generally speaking, it is necessary to compare the result of the output prediction model with the output variable data set corresponding to the input variable data set of the input prediction model to determine whether the hyperparameter combination needs to be adjusted to obtain a more accurate hyperparameter combination.
[0120] The termination training conditions include calculating at least one or more of the mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient in sequence according to the results of the output target prediction model function and the corresponding output variable data set, and the mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient each have a corresponding threshold to determine whether they meet the corresponding requirements.
[0121] The mean absolute error is calculated using the formula:
[0122]
[0123] The mean absolute percentage error is calculated using the formula:
[0124]
[0125] The root mean square error uses the formula:
[0126]
[0127] The regression coefficient of determination adopts the formula:
[0128]
[0129] Where N is the number of input variable data sets in the test data set, e MAE is the mean absolute error, e MAPE is the mean absolute percentage error, e RMSE is the root mean square error, R is the regression determination coefficient, Represents the winding temperature characteristic information output by the model after the i-th input variable data set is input into the target prediction model function, Represents the winding temperature characteristic information of the i-th output variable data set.
[0130] As a specific implementation, in this embodiment, the termination training condition needs to simultaneously meet the requirements of mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient. Among them, as a feasible way, setting the termination threshold e MAE <5℃,e MAPE <10%,e RMSE <5℃,R>0.85.
[0131] Among them, if one of the mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient does not reach the termination threshold, the hyperparameter combination representing the construction of the prediction model still needs to be iterated, that is, the preset termination training condition is not reached.
[0132] For specific iteration methods, refer to Figure 5 , which comprises the following steps:
[0133] S510: According to the hyperparameter combination to be iterated and the set population size, a corresponding hyperparameter combination population is formed.
[0134] The hyperparameter combination required for iteration is the hyperparameter combination when the preset termination training condition is not reached. The hyperparameter combination population is a range framed according to the hyperparameter combination, and individuals of the corresponding population size will be generated within the framed range according to the corresponding set population size, and the collection of these individuals is the hyperparameter combination population. The population size is represented by NP, and the population size can be adjusted accordingly based on specific empirical settings.
[0135] S520: Select a number of population individuals from the hyperparameter combination population and mutate them to obtain mutant individuals.
[0136] The specific number of selected population individuals can be adjusted accordingly according to the setting method. In this application, the number of selected population individuals is three in total, and the corresponding mutation operation satisfies the formula:
[0137]
[0138] Where r1, r2, r3∈[1, NP]'NP is the set population size, and r1, r2, r3 are different from each other, F is the preset scaling factor, g is the number of iterative optimizations, z is the hyperparameter combination individual in the hyperparameter combination population, and v is the variant individual.
[0139] S530: Perform a crossover operation on the mutant individuals to obtain test individuals.
[0140] Among them, the crossover operation satisfies the formula:
[0141]
[0142] Where j∈[0,1] is randomly generated, CR∈[0,1] is the crossover probability, and u is the test individual.
[0143] S540: Calculate the mean absolute error, mean absolute percentage error and root mean square error of the target prediction model function constructed by the experimental individuals, and compare them with the mean absolute error, mean absolute percentage error and root mean square error of the target prediction model function constructed by the required iterative hyperparameter combination, and select the experimental individual or the required iterative hyperparameter combination as the iteratively optimized hyperparameter combination based on the comparison result.
[0144] Among them, each test individual and the required iterative hyperparameter combination will generate a corresponding prediction model, and then all the input variable data sets in the test set are input into the two prediction models, and then e is calculated in turn. MAE 、e MAPE and e RMSE Then, we compare the e corresponding to the two prediction models. MAE 、e MAPE and e RMSE To determine the result of the selection operation.
[0145] Correspondingly, the specific selection operation satisfies the formula:
[0146]
[0147] It can be seen that when the e calculated by the experimental individualMAE 、e MAPE and e RMSE Less than the e calculated for the hyperparameter combination required for the iteration MAE 、e MAPE and e RMSE When , the experimental individual is taken as the result of the selection operation. On the contrary, when the e calculated by the experimental individual MAE 、e MAPE and e RMSE Greater than the e calculated for the hyperparameter combination of the required iterations MAE 、e MAPE and e RMSE When , the original hyperparameter combination is kept as the hyperparameter combination after iteration. Therefore, the offspring formed after each iteration can make the mean absolute error, mean absolute percentage error and root mean square error evolve in the direction close to the corresponding threshold, so that the hyperparameter combination is optimized in the optimal direction.
[0148] After completing one iteration, the corresponding hyperparameter combination of the offspring can still generate a corresponding prediction model, and then return to step S500 to determine whether the optimized prediction model meets the termination training condition. If it still does not meet the condition, execute the steps in step S510-step S540 to perform the next iterative evolution.
[0149] The termination condition of training can also be associated with the number of iterations. In order to avoid infinite iterations or excessive training time, an upper limit can be set for the number of iterations. When the number of iterations reaches the upper limit, the iteration is stopped and the hyperparameter combination output by the last iterative evolution is used as the optimal hyperparameter combination, and the constructed prediction model is saved accordingly.
[0150] When the internal temperature of the winding needs to be measured later, the temperature of the winding at each time node under all working conditions can be obtained by directly obtaining the spectral center wavelength, electrical characteristic information and winding temperature characteristic information in the initial state obtained by each fiber grating sensor. It should be noted that at room temperature and when the winding has not been working for a long time, the temperature of the winding will be slightly lower than room temperature, and the temperature of the winding will have a related functional relationship with the room temperature, and the corresponding functional relationship is generally determined when the winding is designed.
[0151] In addition, the prediction model constructed through the above steps can only be applied to windings with the same parameters as the prototype. When the parameters of the monitored windings change, it is necessary to retrain the prototype with the same new parameters to obtain the optimal prediction model.
[0152] Based on the same inventive concept, the embodiment of the present application also discloses a system for measuring the internal temperature of a winding of an electrical device based on optical fiber sensing and machine learning, which comprises:
[0153] The FBG sensor unit, including a fiber grating sensor, is arranged outside the winding and is used to obtain characteristic information of the central wavelength of the spectrum.
[0154] The temperature measurement unit has a built-in prediction model for processing the data input into the temperature measurement unit to obtain the corresponding winding temperature.
[0155] The method for constructing the prediction model is as described in the aforementioned steps S100 to S500.
[0156] In the process of building a prediction model and training the prototype, the system also includes an electrical feature acquisition unit and a temperature acquisition unit. The electrical feature acquisition unit is used to collect electrical feature information of the electrical equipment, and the temperature acquisition unit is used to collect the temperature of each point inside the winding required for training the prediction model. Among them, the temperature acquisition unit needs to be implemented by pre-embedding sensors in the winding of the prototype, but it is not necessary to pre-embed sensors on the actual temperature-monitored electrical equipment. The corresponding temperature measurement results can be obtained by combining the data obtained by the fiber grating sensor on the surface of the winding with the trained prediction model.
[0157] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0158] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0159] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0160] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0161] As described above, the above embodiments are only used to introduce the technical solution of the present application in detail, but the description of the above embodiments is only used to help understand the method and core idea of the present invention and should not be understood as limiting the present invention. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention.
Claims
1. A method for measuring the internal temperature of an electrical equipment winding based on optical fiber sensing and machine learning, characterized in that: include: Acquire the characteristic information of the center wavelength of the spectrum, the electrical characteristic information of the winding, and the temperature characteristic information of the winding at several moments, wherein the characteristic information of the center wavelength of the spectrum is obtained by a fiber grating sensor arranged outside the winding; The spectral center wavelength characteristic information, electrical characteristic information and winding temperature characteristic information at the same moment are used as input variable data sets, and the winding temperature characteristic information at the same moment is used as output variable data sets, wherein the output variable data sets correspond to the input variable data sets one by one; Training a prediction model based on the acquired input variable data set and output variable data set; In the process of predicting the internal temperature of the winding, data corresponding to the input variable data set is input into the prediction model to obtain the corresponding characteristic information of the winding temperature at the same time; The input variable data set includes a training data set and a test data set, and the method for training the prediction model includes: Constructing a target prediction model function according to an input variable data set in a training data set, wherein the target prediction model function has a plurality of preset and pending hyperparameters, wherein the plurality of pending hyperparameters are defined as a hyperparameter combination; Input the input variable data set in the test data set into the target prediction model function, and verify the result with the corresponding output variable data set to determine whether the preset termination training condition is met; If the preset termination training condition is not met, the hyperparameter combination is iteratively optimized until the preset termination training condition is met; Among them, the constructed target prediction model function is: in, is the kernel function, is the input variable data set, is the Lagrangian operator, is the intercept, Indicates the first A sample of the data set, Indicates the sample size.
2. The method according to claim 1, characterized in that The input variable data set and the output variable data set contain data of the winding under all working modes.
3. The method according to claim 1, characterized in that The kernel function is a linear combination of a radial basis kernel function, a sigmoid kernel function and a polynomial kernel function. The kernel function is: , in, , In the formula, is the radial basis kernel scale and is greater than 0, is the Sigmod kernel coefficient and is greater than 0, is the polynomial kernel coefficient and is greater than or equal to 0, are the weights of the radial basis kernel function, the sigmoid kernel function, and the polynomial kernel function, respectively, and .
4. The method according to claim 1, characterized in that: The termination training condition includes calculating at least one or more of the mean absolute error, mean absolute percentage error, root mean square error and regression determination coefficient in sequence according to the result of the output target prediction model function and the corresponding output variable data set, and comparing the obtained result with the corresponding termination condition; The mean absolute error is expressed as follows: , The mean absolute percentage error is calculated using the formula: , The root mean square error is expressed as: , The regression coefficient of determination is expressed as: , where N is the number of input variable data sets in the test data set, is the mean absolute error, is the mean absolute percentage error, is the root mean square error, is the regression determination coefficient, Representative The winding temperature characteristic information obtained after the input variable data set is input into the target prediction model function, Representative The winding temperature characteristic information of the output variable data set.
5. The method according to claim 4, characterized in that The method for iterative optimization of hyperparameter combinations includes: According to the hyperparameter combination required to be iterated and the set population size, a corresponding hyperparameter combination population is formed; Select a number of population individuals from the hyperparameter combination population and perform mutation operations to obtain mutant individuals; Perform a crossover operation on the mutant individuals to obtain the experimental individuals; The mean absolute error, mean absolute percentage error, and root mean square error of the target prediction model function constructed by the experimental individuals are calculated, and compared with the mean absolute error, mean absolute percentage error, and root mean square error of the target prediction model function constructed by the required iterative hyperparameter combination. Based on the comparison results, the experimental individuals or the required iterative hyperparameter combination are selected as the iteratively optimized hyperparameter combination.
6. The method according to claim 5, characterized in that A total of three individuals are selected from the population, and the mutation operation satisfies the formula: , where , is the set population size, and They are different from each other, F is the preset scaling factor, is the number of iterative optimizations, is the hyperparameter combination individual in the hyperparameter combination population, For variant individuals; The crossover operation satisfies the formula: , where And randomly generated, and is the crossover probability, For the test individuals; Select operations that satisfy the formula: 。 7. The method according to claim 1, characterized in that Before dividing into a training data set and a test data set, the obtained input variable data set and output variable data set are standardized; The standardization process satisfies the formula: , where is the standardized input variable data set, is the input variable data set before standardization, and are the maximum and minimum values of the input variable data set before standardization.
8. An electrical equipment winding internal temperature measurement system based on optical fiber sensing and machine learning, characterized in that: include, The FBG sensor unit includes a fiber grating sensor, which is arranged outside the winding and is used to obtain characteristic information of the central wavelength of the spectrum; A temperature measurement unit, having a built-in prediction model, for processing data input into the temperature measurement unit to obtain a corresponding winding temperature; The method for constructing the prediction model includes: Acquire the characteristic information of the center wavelength of the spectrum, the electrical characteristic information of the winding, and the temperature characteristic information of the winding at several moments, wherein the characteristic information of the center wavelength of the spectrum is obtained by a fiber grating sensor arranged outside the winding; The spectral center wavelength characteristic information, electrical characteristic information and winding temperature characteristic information at the same moment are used as input variable data sets, and the winding temperature characteristic information at the same moment is used as output variable data sets, wherein the output variable data sets correspond to the input variable data sets one by one; Training a prediction model based on the acquired input variable data set and output variable data set; In the process of predicting the internal temperature of the winding, data corresponding to the input variable data set is input into the prediction model to obtain the corresponding characteristic information of the winding temperature at the same time; The input variable data set includes a training data set and a test data set, and the method for training the prediction model includes: Constructing a target prediction model function according to an input variable data set in a training data set, wherein the target prediction model function has a plurality of preset and pending hyperparameters, wherein the plurality of pending hyperparameters are defined as a hyperparameter combination; Input the input variable data set in the test data set into the target prediction model function, and verify the result with the corresponding output variable data set to determine whether the preset termination training condition is met; If the preset termination training condition is not met, the hyperparameter combination is iteratively optimized until the preset termination training condition is met; Among them, the constructed target prediction model function is: ,in, is the kernel function, is the input variable data set, is the Lagrangian operator, is the intercept, Indicates the first A sample of the data set, Indicates the sample size.
