Insulating oil damping degree on-site online detection device and detection method
By designing the terahertz automatic detection unit and the NSGAIII-ELM model in the transformer, real-time online monitoring of the moisture content of the transformer insulating oil is realized, which solves the problems of large detection errors and inability to monitor in real time in the existing technology, and improves the automation and accuracy of detection. sex.
Patent Information
- Application Number
- CN202410758360.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology cannot realize real-time online monitoring of the moisture content of the transformer insulating oil. The detection error fluctuates greatly and requires manual regular sampling and testing. It cannot meet the demand for real-time assessment of the moisture content of the insulating oil.
An on-site online detection device for the moisture degree of insulating oil is designed. It uses a terahertz automatic detection unit to transmit oil samples through terahertz waves. It combines a constant temperature control system and an air drying unit to collect data using terahertz time domain spectroscopy technology. The NSGAIII-ELM model is used to evaluate the moisture content of insulating oil, enabling automated detection without contact with oil samples.
It has achieved a high degree of automation in detection, can accurately assess the degree of moisture in insulating oil without contacting oil samples, reduces economic and property losses caused by transformer accidents, and improves the accuracy and reliability of detection.
Smart Images

Figure CN118777250A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of detection, and relates to an on-site online detection device and a detection method for the moisture degree of insulating oil. Background Art
[0002] The transformer is the core equipment of the power system, and the operating status of the transformer is directly related to the reliability of the power system operation. Oil-paper insulation is the main form of insulation inside the transformer, and the degree of moisture of the insulating oil directly affects the service life and operating reliability of the transformer. The reasons for the moisture of the transformer insulating oil mainly include the following aspects: first, moisture from the external environment invades the inside of the transformer during operation; second, the insulating paper itself carries some moisture; third, new moisture will be generated during the aging process of the oil-paper insulation and eventually enter the insulating oil. The presence of moisture will seriously affect the insulating properties of the insulating oil. The moisture content in the insulating oil is a dynamic change process and is affected by the above-mentioned factors. Therefore, it is very urgent to establish a real-time online monitoring device and evaluation method for the moisture content of the transformer insulating oil.
[0003] At present, micro-water detectors are mostly used in actual projects to measure and analyze the moisture level of transformer insulating oil. The operation steps are delicate and there are high requirements for the precision of the instrument. The test results are greatly affected by environmental factors, and manual sampling and testing are required regularly, which makes it impossible to achieve real-time online monitoring of the moisture level of transformer insulating oil. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide an on-site online detection device for the moisture content of insulating oil, so as to solve the problems existing in the prior art such as large fluctuations in detection errors and inability to achieve online monitoring.
[0005] Another object of the present invention is to provide a method for detecting the moisture content of insulating oil.
[0006] Technical solution: An on-site online detection device for the moisture content of insulating oil of the present invention comprises a first valve, a sealed constant temperature oil storage tank, a constant temperature control system, a heating wire, a general control system, a second valve, an air drying unit, a terahertz automatic detection unit, a vacuum pump, a third valve, a nitrogen cylinder, and a host computer; the first valve, the second valve, and the lower end of the third valve are equipped with a micro motor; the terahertz automatic detection unit transmits the terahertz wave to the oil sample to obtain characteristic information measuring the moisture content of the insulating oil;
[0007] The first valve is respectively connected to the transformer and the sealed constant temperature oil reservoir, and is used to control the amount of transformer insulating oil flowing into the oil reservoir; a heating wire is provided below the sealed constant temperature oil reservoir, and the heating wire is controlled by the constant temperature control system; the second valve is respectively connected to the sealed constant temperature oil reservoir and the terahertz automatic detection unit through steel pipelines; the terahertz automatic detection unit is connected to the air drying unit, the vacuum pump and the third valve, and the third valve is connected to the nitrogen cylinder through a rubber pipeline; the first valve, the constant temperature control system, the second valve, the air drying unit, the terahertz automatic detection unit, the vacuum pump, and the third valve are connected to the overall control system, and the overall control system is connected to the host computer.
[0008] Furthermore, the terahertz automatic detection unit also includes a first robotic arm, a sample conveyor belt, a sample pool, a detection platform, a second robotic arm, a terahertz generator, and a terahertz detector; the first robotic arm and the second robotic arm are fixed on the detection platform, the sample conveyor belt is connected to the detection platform, and the sample to be tested is conveyed to the detection platform; the terahertz generator emits an incident terahertz wave, and the terahertz detector detects a transmitted terahertz wave.
[0009] Furthermore, the sample pool is a polyethylene rectangular bottle container.
[0010] Furthermore, a detection method of the above insulating oil moisture degree detection device is provided, comprising the following steps:
[0011] (1) controlling the first door to introduce the insulating oil inside the transformer into a sealed constant temperature oil reservoir, and controlling the oil temperature in the oil reservoir to be constant through the constant temperature control system and the heating wire;
[0012] (2) controlling the second valve to guide the insulating oil in the oil reservoir into the terahertz detection unit, and controlling the air drying unit, the vacuum pump, the third valve, and the nitrogen cylinder to place the terahertz detection unit in a high-purity nitrogen environment and to prevent the space from being humid;
[0013] (3) collecting terahertz time-domain spectrum data of nitrogen through the terahertz automatic detection unit and transmitting it back to the host computer, and this signal is the reference signal; collecting terahertz time-domain spectrum data of insulating oil samples with different moisture levels in a pure nitrogen dry environment through the terahertz automatic detection unit and transmitting it back to the host computer, and this signal is the sample signal;
[0014] (4) Calculating a ratio of the reference signal and the sample signal detected by the host computer, and finally obtaining a characteristic absorption peak of the sample signal, and evaluating the moisture degree of the insulating oil according to a historical data fitting curve of the insulating oil moisture degree evaluation model.
[0015] Furthermore, the method for obtaining the insulating oil moisture degree assessment model in step (4) specifically comprises the following steps:
[0016] S1, Data acquisition: The terahertz time-domain spectroscopy data of insulating oil samples with different moisture levels are collected through the terahertz automatic detection unit in a dry environment of pure nitrogen, and are respectively represented by S ij where i represents different moisture level samples (i ≤ 6), j represents the spectral data of different moisture level samples (j ≤ 10), and the moisture content of the samples is respectively represented by Y i ;
[0017] S2, Data preprocessing: The sample data in step S1 are denoised, and then time-frequency analysis is performed to obtain the terahertz frequency-domain spectral signals of insulating oil with different moisture levels;
[0018] S3, Calculate the absorption spectrum T ij of the sample data, and perform smoothing processing on the absorption spectrum data by moving window smoothing to obtain the signal U ij ;
[0019] S4, Extract the characteristic spectral region: Use the improved VISSA method to select the characteristic frequencies of the U ij data in step S3 to obtain the characteristic frequencies X ijm , where m represents the number of optimal points, m < N, and N is the length of the spectral signal;
[0020] S5, Combine the Y i in step S1 and the X ijm data obtained in step S4, and use the NSGAIII-ELM method to establish an evaluation model for the moisture level of insulating oil based on terahertz spectral time-domain spectroscopy.
[0021] Furthermore, the denoising method in step S2 includes the following steps:
[0022] S201, Select the Gabor dictionary as the over-complete atom library for MP sparse decomposition according to the characteristics of the terahertz time-domain spectral signal of insulating oil, and represent it by D = {g γ}, γ∈Γ where g r represents the atom defined by the parameter γ, and Γ is the set of the parameter γ.
[0023] S202, Represent the S ij signal as:
[0024] S ij = S s + S n
[0025] where S s is the noise-free signal; S n is the noise signal; S ij is the noisy signal.
[0026] S203, S ij The signal can be orthogonally projected in the overcomplete atomic library and decomposed into:
[0027]
[0028] Where: is the best matching atom; Indicates signal S ij The best matching atom Projection on R 1 S ij is the residual signal after the first approximation;
[0029] S204, decompose the residual signal x times (x≥2,3,…,n), that is:
[0030]
[0031] Using Euclidean norm operation, ||R x+1 S ij || 2 It is defined as the residual signal energy, denoted by RSE;
[0032] S205, when the residual signal energy is less than the preset RSE value, the search is stopped. At this time, any signal S in the Hilbert space ij The sparse representation of the overcomplete atomic library after n decompositions is:
[0033]
[0034] Where: It represents the extracted terahertz time-domain spectrum signal of insulating oil, R n S ij It represents the noise signal.
[0035] Furthermore, in step S3, the absorption spectrum T of the sample data ij The calculation method is:
[0036] S301: Analyze from a quantitative perspective, assuming that the electric field is written as:
[0037]
[0038] Where z is the distance along the beam propagation direction, and the sample is the angular wave number, which is a function of the frequency ω;
[0039] Assuming the sample thickness is Δz, the electric field in front of the sample is:
[0040] E(z=0)=E0 exp[-i(-ωt)] (2)
[0041]
[0042] In the formula, Characterizes the change of the electric field after passing through the sample;
[0043]
[0044] Because the vacuum is 1, so
[0045]
[0046] S302: Write the angular wavenumber in the sample in various equivalent forms:
[0047]
[0048] Where α is the absorption coefficient
[0049]
[0050] S303: Assuming that the front end of the sample position is given by formula (2), the electric field at the rear end of the sample is:
[0051]
[0052]
[0053]
[0054] S304: Determine the real part and the imaginary part by the ratio of the observed values, and obtain the real part of the refractive index and the absorption coefficient; S305: After Fourier transformation, the complex quantity of the angular frequency can be obtained:
[0055]
[0056] Finally, optical parameters are extracted, including refractive index, absorption coefficient, and extinction coefficient.
[0057] Furthermore, the step S4 specifically includes the following steps:
[0058] S401, using the binary matrix sampling method to create a binary sampling matrix (M (number of subsets) * N (number of variables)), assigning a weight to each wavelength point (the initial weight is 0.5) to obtain M subset data sets, then building a PLS model on each data set, and calculating the prediction error (RMSECV) of the model;
[0059] S402, sorting the sub-models according to RMSECV, selecting (5%*M) sub-models with the lowest RMSECV as the optimal sub-model, and calculating the average prediction error of the optimal sub-model;
[0060] S403, counting the weights of the variables in the optimal sub-model, and creating a new sub-model using Weighted Binary Matrix Sampling (WBMS);
[0061] S404, using a stepwise regression method, adding the variables with a weight of 0 to the sub-model created in step S403 to form a new sub-model and calculating the RMSECV of the new sub-model;
[0062] S405, when the average error is not less than the average error of the previous round of models, output the final wavelength variable set, otherwise return to step S401.
[0063] Furthermore, in step S4, the Monte Carlo sampling method is used to ijm The data is divided into calibration set samples and test set samples in an 8:2 ratio.
[0064] Furthermore, the step S5 specifically includes the following steps:
[0065] S501, inputting the improved VISSA characteristic wavelength variable selection data set and the sample water content, and dividing it into a calibration set and a test set;
[0066] S502, initializing the population;
[0067] S503, decoding the population to obtain the input layer weights and hidden layer biases of the ELM, and using the calibration set data to calculate the function values of the first generation population on the two objective functions;
[0068] S504, forming a first generation population through non-dominated sorting, selection, crossover and mutation operations;
[0069] S505, merging the parent population and the child population (the population size is 2Q) to form a new parent population and repeating step S503 to obtain the objective function value of each individual;
[0070] S506, dividing the new parent population according to the non-dominated layer, generating reference points using the NSGAII method, and then performing adaptive normalization of the population individuals;
[0071] S507, calculating the distance between each individual and the nearest reference point reference line;
[0072] S508, using the Niche-Preservation operation to select the number of individuals in the L+1th non-dominated layer, ensuring that the optimal number of individuals selected is Q, and obtaining the current Pareto frontier;
[0073] S509, determining whether the preset maximum number of evolution generations is reached; if yes, proceeding to step S510, otherwise returning to step S505;
[0074] S510, decoding the Pareto frontier individuals to obtain the input layer weights and hidden layer biases of NSGAIII-ELM, and outputting the matrix.
[0075] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: 1. The detection device of the present invention has a high degree of automation and is easy to operate; 2. The terahertz time-domain spectroscopy technology is used to evaluate the degree of moisture in the transformer insulating oil. There is no need to contact the oil sample throughout the process. The characteristic absorption peak of the degree of moisture in the insulating oil can be obtained by scanning the oil sample with terahertz waves, which is conducive to further evaluating the insulation condition of the insulating oil and taking appropriate measures; 3. The use of terahertz time-domain spectroscopy technology can participate in the full life cycle management process of the transformer, continuously monitor the transformer insulating oil, and timely and accurately obtain the degree of moisture in the insulating oil during operation, which will greatly reduce the economic and property losses caused by transformer accidents. 4. The sampling sparse decomposition denoising method can further reduce the noise of the signal and retain the original information of the signal to the greatest extent; the sampling improved VISSA algorithm can more accurately screen the characteristic absorption peak; the use of NSGAIII-ELM as a prediction model can significantly improve the accuracy of model prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 It is a structural schematic diagram of an on-site online detection device for the moisture degree of insulating oil of the present invention.
[0077] Figure 2 It is a schematic structural diagram of the terahertz detection unit of the present invention.
[0078] Figure 3 The present invention is a flow chart of the method for evaluating the moisture content of insulating oil.
[0079] Figure 4 Flow chart for wavelength variable selection for the improved VISSA method of the present invention.
[0080] Figure 5 The characteristic wavelength variables finally selected for improving VISSA.
[0081] Figure 6 This is the fitness change curve of NSGAIII-ELM.
[0082] Figure 7This is the effect diagram of the calibration set.
[0083] Figure 8 Comparison of prediction results for the calibration set.
[0084] Fig. 9 This is the test set effect diagram.
[0085] Fig.10 Compare the prediction results for the test set. DETAILED DESCRIPTION
[0086] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0087] like Figure 1-2 As shown, the present invention provides an on-site online detection device for the moisture degree of insulating oil, which includes a valve, a sealed constant temperature oil storage tank 2, a constant temperature control system 3, a heating wire 4, a total control system 5, an air drying unit 7, a terahertz automatic detection unit 8, a vacuum pump 9, a nitrogen cylinder 11, and a host computer, and a micro motor 13 is provided at the lower end of the valve.
[0088] The first valve 1 is connected to the transformer 12 and the sealed constant temperature oil reservoir 2, respectively, and is used to control the amount of transformer insulating oil flowing into the oil reservoir. The insulating oil is left to stand in the sealed constant temperature oil reservoir 2 for a period of time to precipitate sludge and some impurities. Below the sealed constant temperature oil reservoir 2 is a heating wire 4, which is controlled by a constant temperature control system 3. The constant temperature control system 3 and the heating wire 4 ensure that the transformer oil temperature in the sealed constant temperature oil reservoir 2 remains constant. The second valve 6 is connected to the sealed constant temperature oil reservoir 2 and the terahertz automatic detection unit 8 through a steel pipeline. The second valve 6 controls the oil entering the terahertz detection unit 8. The terahertz automatic detection unit 8 is connected to the air drying unit 7, the vacuum pump 9 and the third valve 10. The third valve 10 is connected to the nitrogen cylinder 11 through a rubber pipe. The air drying unit 7 and the vacuum pump 9 ensure that the terahertz detection unit 8 is in a vacuum state. The control valve 3 allows the high-purity nitrogen in the nitrogen cylinder 11 to fill the entire detection unit; the first valve 1, the constant temperature control system 3, the second valve 6, the air drying unit 7, the terahertz automatic detection unit 8, the vacuum pump 9, and the third valve 10 are connected to the general control system 5, and the general control system 5 is connected to the host computer.
[0089] In a specific embodiment, the terahertz automatic detection unit 8 further includes a mechanical arm, a sample conveyor belt 15, a sample pool 16, a detection platform 17, a terahertz generator, and a terahertz detector, wherein the sample pool 16 is preferably a polyethylene rectangular bottle container. The mechanical arm includes a first mechanical arm 14 and a second mechanical arm 18, the first mechanical arm 14 and the second mechanical arm 18 are fixed on the detection platform 17, the sample conveyor belt 15 is connected to the detection platform 17, and the sample to be tested is conveyed to the detection platform 17; the terahertz generator emits an incident terahertz wave, and the terahertz detector detects the transmitted terahertz wave. The master control system 5 controls the first mechanical arm 14, the second mechanical arm 18, the conveyor belt 15, the terahertz generator, and the terahertz detector in the terahertz detection unit 8 through the control bus.
[0090] The method for detecting the moisture degree of the edge oil comprises the following steps:
[0091] (1) The insulating oil inside the transformer is introduced into the sealed constant temperature oil reservoir 2 through the first valve 1, and the oil temperature in the oil reservoir is kept constant through the constant temperature control system 3 and the heating wire 4;
[0092] (2) controlling the second valve 6 to guide the insulating oil in the oil reservoir into the terahertz detection unit 8, and controlling the air drying unit 7, the vacuum pump 9, the third valve 10, and the nitrogen cylinder 11 to ensure that the terahertz detection unit 8 is in a high-purity nitrogen environment and that there is no moisture in the space;
[0093] (3) The terahertz time-domain spectrum data of nitrogen is collected through the terahertz automatic detection unit 8 and transmitted back to the host computer. This signal is the reference signal; the terahertz time-domain spectrum data of insulating oil samples with different moisture levels are collected through the terahertz automatic detection unit 8 in a pure nitrogen dry environment and transmitted back to the host computer. This signal is the sample signal. The specific operation method is that after the master control system 5 fills the terahertz automatic detection unit 8 with pure and dry nitrogen, it controls the first robot 14 to place the sample pool 16 containing nitrogen at position 1 A, and tightens the cover of the sample pool 16 through the robot. The master control system 5 controls the conveyor belt 15 to move the sample pool 16 containing nitrogen to position 2 B through the control bus, controls the terahertz generator to emit an incident terahertz beam to irradiate the sample pool 16 containing nitrogen, and the transmission beam passing through the sample is detected by the terahertz detector and transmitted back to the host computer, completing a detection. The detection signal obtained this time is the reference signal. The master control system 5 controls the conveyor belt 15 to move the detected sample pool 16 to position 3 C through the control bus, and the second robot arm 18 unscrews the cover of the sample pool 16, removes the sample pool 16 and places it in the detection unit. position, to be recovered; after completing the reference signal extraction, the second valve 6 is opened to allow the oil sample to enter the terahertz detection unit 8, the first robotic arm 14 extracts the insulating oil and puts it into the sample pool 16 after the drying and cleaning treatment, and tightens the cover of the sample pool 16 through the robotic arm and places it at position 1 A, controls the conveyor belt 15 to move the sample pool 16 containing the insulating oil to position 2 B, controls the terahertz generator to emit an incident terahertz beam to irradiate the sample pool 16 containing the insulating oil, and the transmission beam through the sample is detected by the terahertz detector and transmitted back to the host computer, completing a detection. The detection signal obtained this time is the sample signal, controls the conveyor belt 15 to move the sample pool 16 after the detection to position 3 C, and the second robotic arm 18 unscrews the cover of the sample pool 16, removes the sample pool 16 and places it at a fixed position in the detection unit, waiting for recovery.
[0094] (4) The ratio of the reference signal and the sample signal detected by the host computer is calculated, and finally the characteristic absorption peak of the sample signal is obtained. The moisture degree of the insulating oil is evaluated according to the historical data fitting curve of the insulating oil moisture degree evaluation model.
[0095] like Figure 3 As shown, in this embodiment, the entire detection device is controlled by a control system, which contains a method for evaluating the degree of moisture in insulating oil using terahertz time-domain spectroscopy technology, and a method for obtaining a model for evaluating the degree of moisture in insulating oil is implemented using the MATLAB programming language. Specifically, the following steps are included:
[0096] S1, data acquisition, the terahertz time domain spectrum data of insulating oil samples with different moisture levels are collected in a pure nitrogen dry environment through the terahertz automatic detection unit, respectively using S ijFor representation, 10 groups of data are collected for each sample of moisture level. Here, i represents different moisture level samples (i ≤ 6), j represents the spectral data of different moisture level samples (j ≤ 10), and the moisture content of the samples is represented by Y i For representation;
[0097] S2, Data preprocessing: The sparse decomposition algorithm is used to denoise the 60 groups of data in step S1, and then time-frequency analysis is performed to extract the frequency domain signal of the sample data;
[0098] S3, Calculate the absorption spectrum Tij of the sample data. The absorption spectrum data is smoothed using moving window smoothing to obtain the signal Uij;
[0099] S4, Extract the characteristic spectral region: The improved VISSA method is used to select the characteristic frequencies from the Uij data in step S3 to obtain the characteristic frequencies X ijm , (m represents the number of optimal points, m < N, N is the length of the spectral signal). The Monte Carlo sampling method is used to divide the X ijm data into calibration set samples and test set samples according to 8:2;
[0100] S5, Combine the Y i data in step S1 and the X ijm data obtained in step S4, and use the NSGAIII-ELM method to establish an evaluation model for the moisture level of insulating oil based on terahertz spectral time-domain spectroscopy.
[0101] In a specific embodiment, the method for denoising the time-domain spectral signal in step S2 includes the following steps:
[0102] S201, Select the Gabor dictionary as the over-complete atomic library for MP sparse decomposition according to the characteristics of the terahertz time-domain spectral signal of insulating oil, and use D = {g γ} γ∈Γ to represent, where g r represents the atom defined by the parameter γ, and Γ is the set of the parameter γ.
[0103] S202, Represent the S ij signal as:
[0104] S ij = S s + S n
[0105] where, S s is the noise-free signal; S n is the noise signal; S ij is the noisy signal.
[0106] S203, Take the S ijThe signal can be orthogonally projected in the overcomplete atomic library and decomposed into:
[0107]
[0108] Where: is the best matching atom; Indicates signal S ij The best matching atom Projection on R 1 S ij is the residual signal after the first approximation;
[0109] S204, decompose the residual signal x times (x≥2,3,…,n), that is:
[0110]
[0111] Using Euclidean norm operation, ||R x+1 S ij || 2 It is defined as the residual signal energy, denoted by RSE;
[0112] S205, when the residual signal energy is less than the preset RSE value, the search is stopped. At this time, any signal S in the Hilbert space ij The sparse representation of the overcomplete atomic library after n decompositions is:
[0113]
[0114] Where: It represents the extracted terahertz time-domain spectrum signal of insulating oil, R n S ij It represents the noise signal.
[0115] In a specific embodiment, in step S3, the absorption spectrum Tij of the sample data is calculated as follows:
[0116] S301, from a quantitative perspective, assuming that the electric field is written as:
[0117]
[0118] Where z is the distance along the beam propagation direction, and the sample is the angular wave number, which is a function of the frequency ω;
[0119] Assuming the sample thickness is Δz, the electric field in front of the sample is:
[0120] E(z=0)=E0exp[-i(-ωt)] (2)
[0121]
[0122] In the formula, Characterizes the change of the electric field after passing through the sample;
[0123]
[0124] Because the vacuum is 1, so
[0125]
[0126] S302, write the angular wave number in the sample into various equivalent forms:
[0127]
[0128] Where α is the absorption coefficient
[0129]
[0130] S303, assuming that the front end of the sample position is given by formula (2), then the electric field at the rear end of the sample is:
[0131]
[0132]
[0133]
[0134] S304, determining the real part and the imaginary part by the ratio of the observed values, and obtaining the real part of the refractive index and the absorption coefficient;
[0135] S305, after Fourier transformation, the complex quantity of angular frequency can be obtained:
[0136]
[0137] Finally, optical parameters such as refractive index, absorption coefficient, and extinction coefficient are extracted.
[0138] like Figure 4 As shown, in a specific embodiment, step S4 specifically includes the following steps:
[0139] S401, using BMS technology to create a binary sampling matrix (M (number of subsets) * N (number of variables)) and assign a weight to each wavelength point, with an initial weight of 0.5, obtain M subset data sets, then build a PLS model on each data set and calculate the prediction error (RMSECV) of the model;
[0140] S402, sorting the sub-models according to RMSECV, selecting (5%*M) sub-models with the lowest RMSECV as the optimal sub-model, and calculating the average prediction error of the optimal sub-model;
[0141] S403, counting the weights of the variables in the optimal sub-model, and creating a new sub-model using Weighted Binary Matrix Sampling (WBMS);
[0142] S404, using a stepwise regression method, adding the variables with a weight of 0 to the sub-model created in step S403 to form a new sub-model and calculating the RMSECV of the new sub-model;
[0143] S405, when the average error is not less than the average error of the previous round of models, output the final wavelength variable set, otherwise return to step S401.
[0144] In a specific embodiment, the NSGAIII-ELM method is used in step S5 to predict the degree of moisture, wherein the extreme learning machine (ELM) theory, for the characteristic wavelength data set obtained in 2 (assuming that it contains N sample sets), xi represents the spectral vector of the i-th sample composed of characteristic wavelength variables (n*1, n represents the selected characteristic wavelength variable), yi represents the water content of the i-th sample (m*1, m represents the concentration variable), then the ELM algorithm containing H hidden nodes is:
[0145]
[0146]
[0147]
[0148] Among them, a i =[a i1 ,a i2 ,…a in ] T is the weight between the n-dimensional input layer and the hidden layer; the column vector of β is the weight between the m-dimensional output layer and the hidden layer; fi(xj) is the activation function; H is the hidden layer output matrix.
[0149] The training process of the extreme learning machine is to optimize the model by setting the weights between the hidden layer and the output layer. The judgment criterion is determined by the following equation:
[0150]
[0151] The solution to the equation is: Where H+ is the Moore-Penrose generalized inverse matrix of matrix H, and Y T is the transposed matrix of the output matrix Y.
[0152] The NSGAIII algorithm is used to optimize the weight variables and hidden layer neuron thresholds of the extreme learning machine. as the objective function.
[0153] The specific method is as follows:
[0154] S501, inputting the improved VISSA characteristic wavelength variable selection data set and the sample water content, and dividing it into a calibration set and a test set;
[0155] S502, initializing the population;
[0156] S503, decoding the population to obtain the input layer weights and hidden layer biases of the ELM, and using the calibration set data to calculate the function values of the first generation population on the two objective functions;
[0157] S504, forming a first generation population through non-dominated sorting, selection, crossover and mutation operations;
[0158] S505, merging the parent population and the child population (the population size is 2Q) to form a new parent population and repeating step S503 to obtain the objective function value of each individual;
[0159] S506, dividing the new parent population according to the non-dominated layer, generating reference points using the NSGAII method, and then performing adaptive normalization of the population individuals;
[0160] S507, calculating the distance between each individual and the nearest reference point reference line;
[0161] S508, using the Niche-Preservation operation to select the number of individuals in the L+1th non-dominated layer, ensuring that the optimal number of individuals selected is Q, and obtaining the current Pareto frontier;
[0162] S509, determining whether the preset maximum number of evolution generations is reached; if yes, proceeding to step S510, otherwise returning to step S505;
[0163] S510, decode the Pareto frontier individuals to obtain the input layer weights and hidden layer biases of NSGAIII-ELM, and output the matrix
[0164] from Figure 5 It can be seen that the improved VISSA algorithm selects 41 characteristic wavelength variable sets that can characterize the moisture content of insulating oil from the original 148 wavelength variables.
[0165] like Figure 6-10 As shown in the figure, in the NSGAIII-ELM algorithm, the population size is set to 20, the maximum number of iterations is set to 200, the binary representation of the variable is 10, the crossover probability is 0.7, and the mutation probability is 0.01. The value range of the variables in the algorithm is limited to between -1 and 1. From the fitness change curve, it can be seen that the fitness value is 0.022 when it is iterated to 82 times, reaching a stable value.
[0166] Select the sigmoid function as the activation function in the NSGAIII-ELM model and set the number of neurons in the hidden layer to 30. Select the coefficient of determination (R 2 ), root mean square error (RMSE), mean square error (MSE), and the ratio of the standard deviation of the test set to the standard deviation of the prediction set (RPD) are used as indicators to evaluate the prediction effect of the model. The calculation formulas of the four parameters are as follows:
[0167]
[0168]
[0169]
[0170]
[0171] In the formula, y i is the true value of water content in the insulating oil sample, is the predicted value of water content in insulating oil sample, for y i The average value, n is the number of samples, and SD is the standard deviation of the test set. 2 The value range is 0 to 1, reflecting the model's ability to explain data variability. The closer the value is to 1, the stronger the model's explanatory ability is. It is one of the most critical indicators for measuring accuracy and fit. RMSE and MSE values are greater than 0, which is an important indicator for measuring model prediction error. The RPD value range is greater than 1, and the larger the value, the stronger the model's prediction ability. Figure 7-8 is the training result of the detection system model.
[0172] according to Figure 7 It can be seen that the determination coefficient (R 2 ) is 0.99608, close to 1, and the root mean square error (RMSE) is 2.0786, which shows that the training result of the model constructed by this patent is good and can be applied to the analysis and evaluation of the moisture degree of insulating oil. Figure 8The details of the calibration set samples during the training process are further shown. The mean square error (MSE) of the calibration set training is 4.3205, and the ratio of the test set standard deviation to the prediction set standard deviation (RPD) is 15.9755, which is significantly greater than 0. The asterisks in the figure represent the true values, and the circles represent the predicted values. From the figure, we can clearly see the deviation between the true value and the predicted value of each sample in the 48 calibration set samples.
[0173] Figure 9-10 is the test result of the detection system model. Fig. 9 It can be seen that the absorption coefficient is positively correlated with the degree of moisture in the insulating oil (water content), and the determination coefficient (R 2 ) is 0.92391, which is greater than 0.85, and the linearity is good. The curve fitting data can be used to detect the moisture content of other insulating oil samples and then infer their water content. Fig.10 The following are the details of the 12 test set samples during the test process. Among the 12 test samples, only 2 samples have slightly larger prediction results, and the prediction results of other samples are good. Therefore, the evaluation system constructed by this patent can be used for on-site detection of the moisture degree of insulating oil in actual engineering.
Claims
1. An on-site online detection device for the moisture content of insulating oil, characterized in that: The invention comprises a first valve (1), a sealed constant temperature oil storage tank (2), a constant temperature control system (3), a heating wire (4), a general control system (5), a second valve (6), an air drying unit (7), a terahertz automatic detection unit (8), a vacuum pump (9), a third valve (10), a nitrogen cylinder (11), and a host computer; the lower ends of the first valve (1), the second valve (6), and the third valve (10) are provided with a micro motor (13); the terahertz automatic detection unit (8) transmits terahertz waves to the oil sample to obtain characteristic information for measuring the degree of moisture absorption of the insulating oil; The first valve (1) is connected to the transformer (12) and the sealed constant temperature oil reservoir (2) respectively, and is used to control the amount of transformer insulating oil flowing into the oil reservoir; a heating wire (4) is provided below the sealed constant temperature oil reservoir (2), and the heating wire (4) is controlled by the constant temperature control system (3); the second valve (6) is connected to the sealed constant temperature oil reservoir (2) and the terahertz automatic detection unit (8) respectively through a steel pipeline; the terahertz automatic detection unit (8) is connected to an air drying unit (7), a vacuum pump (9) and a valve 3 (10), and the third valve (10) is connected to a nitrogen cylinder through a rubber pipeline; the first valve (1), the constant temperature control system (3), the second valve (6), the air drying unit (7), the terahertz automatic detection unit (8), the vacuum pump (9), and the third valve (10) are connected to a general control system (5), and the general control system (5) is connected to a host computer.
2. The on-site online detection device for the moisture content of insulating oil according to claim 1 is characterized in that: The terahertz automatic detection unit (8) further comprises a first mechanical arm (14), a sample conveyor belt (15), a sample pool (16), a detection platform (17), a second mechanical arm (18), a terahertz generator, and a terahertz detector; the first mechanical arm (14) and the second mechanical arm (18) are fixed on the detection platform (17); the sample conveyor belt (15) is connected to the detection platform (17) to convey the sample to be tested to the detection platform (17); the terahertz generator emits an incident terahertz wave, and the terahertz detector detects a transmitted terahertz wave.
3. The on-site online detection device for the moisture content of insulating oil according to claim 2 is characterized in that: The sample pool is a polyethylene rectangular bottle container.
4. A detection method of the insulating oil moisture degree detection device according to any one of claims 1 to 3, characterized in that: The following steps are involved: (1) controlling the first valve (1) to introduce the insulating oil inside the transformer into the sealed constant temperature oil storage tank (2), and controlling the oil temperature in the oil storage tank to be constant through the constant temperature control system (3) and the heating wire (4); (2) controlling the second valve (6) to guide the insulating oil in the oil reservoir into the terahertz detection unit (8), and controlling the air drying unit (7), the vacuum pump (9), the third valve (10), and the nitrogen cylinder (11) to place the terahertz detection unit (8) in a high-purity nitrogen environment and to ensure that the space does not contain moisture; (3) collecting terahertz time-domain spectrum data of nitrogen through the terahertz automatic detection unit (8) and transmitting it back to the host computer, and this signal is the reference signal; collecting terahertz time-domain spectrum data of insulating oil samples with different moisture levels in a pure nitrogen dry environment through the terahertz automatic detection unit (8) and transmitting it back to the host computer, and this signal is the sample signal; (4) Calculating a ratio of the reference signal and the sample signal detected by the host computer, and finally obtaining a characteristic absorption peak of the sample signal, and evaluating the moisture degree of the insulating oil according to a historical data fitting curve of the insulating oil moisture degree evaluation model.
5. The method for detecting the moisture content of insulating oil according to claim 4, characterized in that: The method for obtaining the insulating oil moisture degree assessment model in step (4) specifically comprises the following steps: S1, data collection: The terahertz time domain spectrum data of insulating oil samples with different moisture levels are collected in a pure nitrogen dry environment by using the terahertz automatic detection unit (8), and S ij , where i represents samples with different moisture levels (i≤6), j represents spectral data of samples with different moisture levels (j≤10), and the moisture content of the samples is represented by Y i To express; S2, data preprocessing: denoising the sample data in step S1, and then performing time-frequency analysis to obtain terahertz frequency domain spectrum signals of insulating oils with different moisture levels; S3, calculate the absorption spectrum T of the sample data ij , the absorption spectrum data is smoothed by moving window smoothing to obtain the signal U ij ; S4. Extract the characteristic spectral region: Use the improved VISSA method to perform characteristic frequency selection on the U data in step S3 to obtain the characteristic frequency X ij , where m represents the number of optimal points, m < N, and N is the length of the spectral signal; ijm S5, combined with Y in step S1 i and X obtained in step S4 ijm The data was used using the NSGAIII-ELM method to establish an insulating oil moisture degree assessment model based on terahertz spectroscopy time domain spectroscopy.
6. The method for detecting the moisture content of insulating oil according to claim 5, characterized in that: The denoising method in step S2 comprises the following steps: S201, according to the characteristics of the terahertz time-domain spectrum signal of the insulating oil, a Gabor dictionary is selected as an overcomplete atom library for MP sparse decomposition, and D = {g γ } γ∈Γ Indicates that g r represents an atom defined by the parameter γ, and Γ is the set of parameters γ. S202, S ij The signal is represented as: S ij =S s +S n Among them, S s is a noise-free signal; S n is the noise signal; S ij is the noise-added signal. S203, S ij The signal can be orthogonally projected in the overcomplete atomic library and decomposed into: Where: is the best matching atom; Indicates signal S ij The best matching atom Projection on R 1 S ij is the residual signal after the first approximation; S204, decompose the residual signal x times (x≥2,3,…,n), that is: Using Euclidean norm operation, ||R x+1 S ij || 2 It is defined as the residual signal energy, denoted by RSE; S205, when the residual signal energy is less than the preset RSE value, the search is stopped. At this time, any signal S in the Hilbert space ij The sparse representation of the overcomplete atomic library after n decompositions is: Where: It represents the extracted terahertz time-domain spectrum signal of insulating oil, R n S ij It represents the noise signal.
7. The method for detecting the moisture content of insulating oil according to claim 5, characterized in that: In the step S3, The absorption spectrum Tij of the sample data is calculated as follows: S301, from a quantitative perspective, assuming that the electric field is written as: Where z is the distance along the beam propagation direction, and the sample is the angular wave number, which is a function of the frequency ω; Assuming the sample thickness is Δz, the electric field in front of the sample is: E(z=0)=E0exp[-i(-ωt)] (2) In the formula, Characterizes the change of the electric field after passing through the sample; Because the vacuum is 1, so S302, write the angular wave number in the sample into various equivalent forms: Where α is the absorption coefficient S303, assuming that the front end of the sample position is given by formula (2), then the electric field at the rear end of the sample is: S304, determining the real part and the imaginary part by the ratio of the observed values, and obtaining the real part of the refractive index and the absorption coefficient; S305, after Fourier transformation, the complex quantity of angular frequency can be obtained: Finally, optical parameters are extracted, including refractive index, absorption coefficient, and extinction coefficient.
8. The method for detecting the moisture content of insulating oil according to claim 5, characterized in that: The step S4 specifically comprises the following steps: S401, using the binary matrix sampling method to create a binary sampling matrix (M (number of subsets) * N (number of variables)), assigning a weight to each wavelength point (the initial weight is 0.5) to obtain M subset data sets, then building a PLS model on each data set, and calculating the prediction error (RMSECV) of the model; S402, sorting the sub-models according to RMSECV, selecting (5%*M) sub-models with the lowest RMSECV as the optimal sub-model, and calculating the average prediction error of the optimal sub-model; S403, counting the weights of the variables in the optimal sub-model, and creating a new sub-model using Weighted Binary Matrix Sampling (WBMS); S404, using a stepwise regression method, adding the variables with a weight of 0 to the sub-model created in step S403 to form a new sub-model and calculating the RMSECV of the new sub-model; S405, when the average error is not less than the average error of the previous round of models, output the final wavelength variable set, otherwise return to step S401.
9. The method for detecting the moisture content of insulating oil according to claim 5, characterized in that: In step S4, the Monte Carlo sampling method is used to ijm The data is divided into calibration set samples and test set samples in an 8:2 ratio.
10. The method for detecting the moisture content of insulating oil according to claim 5, characterized in that: The step S5 specifically comprises the following steps: S501, inputting the improved VISSA characteristic wavelength variable selection data set and the sample water content, and dividing it into a calibration set and a test set; S502, initializing the population; S503, decoding the population to obtain the input layer weights and hidden layer biases of the ELM, and using the calibration set data to calculate the function values of the first generation population on the two objective functions; S504, forming a first generation population through non-dominated sorting, selection, crossover and mutation operations; S505, merging the parent population and the child population (the population size is 2Q) to form a new parent population and repeating step S503 to obtain the objective function value of each individual; S506, dividing the new parent population according to the non-dominated layer, generating reference points using the NSGAII method, and then performing adaptive normalization of the population individuals; S507, calculating the distance between each individual and the nearest reference point reference line; S508, using the Niche-Preservation operation to select the number of individuals in the L+1th non-dominated layer, ensuring that the optimal number of individuals selected is Q, and obtaining the current Pareto frontier; S509, determining whether the preset maximum number of evolution generations is reached; if yes, proceeding to step S510, otherwise returning to step S505; S510, decoding the Pareto frontier individuals to obtain the input layer weights and hidden layer biases of NSGAIII-ELM, and outputting the matrix.
Citation Information
Cited By
Online monitoring equipment and method for oil paper insulation aging state of oil-filled equipment
CN119534336A
