A transformer fault diagnosis model construction method and system
By segmenting and identifying parameters from the chromatographic records of dissolved gases in transformer oil, the problems of incomparable gas composition and unconstrained dispersion coefficients were solved, a more accurate transformer fault diagnosis model was constructed, and the reliability of fault diagnosis was improved.
Patent Information
- Application Number
- CN202611431262.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
In the construction of existing transformer fault diagnosis models, the composition of gas generation is not comparable between different equipment and different maintenance histories. The absolute magnitude of the escaping coefficient is not constrained by the operating data. The migration of composition caused by fault development and the offset of composition caused by escaping parameter mismatch are mixed together, resulting in insufficient diagnostic accuracy.
By segmenting the chromatographic records of dissolved gases in transformer oil, and using log-linear regression and central logarithmic ratio transformation, combined with the identification and iterative updating of the evaporation coefficient, a transformer fault diagnosis model is constructed. The impact of operations such as disconnecting the oil filter and changing the oil is segmented, and the stable threshold limit parameter is solved to ensure the accuracy of the diagnosis model.
It achieves comparability of gas production composition under different equipment and maintenance history conditions, ensures that the absolute magnitude of the escape coefficient is constrained, reduces the migration and offset of composition during fault development, and improves the accuracy and reliability of fault diagnosis.
Smart Images

Figure CN123179043A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine learning technology, and in particular to a method and system for constructing a transformer fault diagnosis model. Background Technology
[0002] The electrical and thermal effects inside oil-immersed power transformers cause the carbon-hydrogen bonds between the mineral insulating oil and solid insulating paper to break and recombine. The composition of dissolved gases in the oil varies with the energy density of the affected area, making chromatographic analysis of dissolved gases a common source for assessing the internal condition. The existing diagnostic model construction process consists of five steps. The first step compiles historical chromatographic records and concentration records from online monitoring platforms, using disassembly and repair conclusions, cover inspection records, or expert consultation opinions as category labels to form concentration-category sample pairs. The second step constructs feature quantities. Early methods used ratios defined by the International Electrotechnical Commission's three-ratio method, Rogers' ratio method, and Dewar's triangle. Later, this was expanded to include derived quantities such as total hydrocarbon content, the percentage of each component in total hydrocarbons, absolute gas production rate, and relative gas production rate. These feature quantities are then sorted using ensemble decision tree methods or random forests, and the top few are selected. The third step addresses the imbalance in the number of categories by employing synthetic minority class oversampling, generative adversarial network sample augmentation, or cost-sensitive weighting. The fourth step involves selecting and training a classifier. Support vector machines (SVMs), backpropagation neural networks (BRNNs), deep belief networks (DNNs), convolutional neural networks (CNNs), and capsule networks are all used in this task. CNNs rearrange features into a two-dimensional matrix, perform feature transformations using convolutional layers, and enhance sensitive components using pooling layers. Capsule networks model the non-linear relationship between gases and categories using vector neurons and dynamic routing. The fifth step evaluates the model using accuracy, macro-average, recall geometric mean, confusion matrix, and receiver operating characteristic (ROC) curves. Once the criteria are met, the model is solidified into a diagnostic model. In this process, the emission parameter is typically a fixed value obtained by looking up a table based on the transformer model, or it is fitted along with other parameters over the entire dataset.
[0003] The above process exhibits the following issues at several technical stages: Concentration records are directly entered into the characteristic construction stage. Faults of the same energy density yield different concentration levels on transformers with varying oil volumes and tank structures. Differences in the equipment itself and its internal state are inseparable in terms of characteristic quantities. The gas production rate is given by the concentration difference between two adjacent samples. However, dissolved gases in the oil continuously escape through the tank capsule interface and seals. The escape rates of each component differ by more than an order of magnitude, resulting in varying degrees of underestimation in the difference values for each component. Consequently, characteristic quantities such as ratios are deformed for each component. Oil filtration, oil changes, oil replenishment, and seal replacement cause dissolved gases in the oil to be carried away or diluted, resulting in a step-like drop in concentration. This drop is read as a change in gas production rate in the difference stage. When the dispersion coefficient is fitted together with other parameters in the operating data, the dispersion coefficients of all seven components are multiplied by a constant, and the resulting gas production rate is also multiplied by the same constant. The constituent quantities remain unchanged after normalization, and the overall magnitude of the fitting result is not constrained by the data. During the development of a fault from its incubation period to its eventual identifiable disassembly, the composition of the gaseous products continuously migrates, and this migration is incorporated into the emission parameters throughout the fitting process. The online chromatography device has a daily sampling cycle, and the product of the emission coefficient and the sampling interval approaches zero. The numerator and denominator of the inversion equation written in exponential decay form both tend towards zero. Discrimination is based on the static composition of a single sample; changes in composition between adjacent sampling intervals are not included in the conclusion. Once the category boundary or prototype upon which the discrimination is based is determined through training, subsequent disassembly and repair conclusions will not alter this boundary. Summary of the Invention
[0004] This application provides a method and system for constructing a transformer fault diagnosis model, which solves the problems of incomparability of gas production composition between different equipment and different maintenance histories, the lack of constraints on the absolute magnitude of the escaping coefficient in the operating data, and the overlapping of composition migration caused by fault development and composition offset caused by escaping parameter mismatch during the construction of the transformer fault diagnosis model.
[0005] Firstly, this application provides a method for constructing a transformer fault diagnosis model, the method comprising:
[0006] Step S1: The dissolved gas chromatography records in the transformer oil are segmented according to the time of operation and maintenance events to obtain the operating segment and the shutdown segment;
[0007] Step S2: Perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient;
[0008] Step S3: Perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the operation segment to obtain the initial gas production distribution direction;
[0009] Step S4: Calculate the quotient of the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Perform threshold discrimination processing on the directional angular velocity according to the stability threshold to obtain a stable window. Identify the component ratio of the emission coefficient with the goal of minimizing the spherical dispersion within the stable window to obtain the component ratio. Multiply the hydrogen emission coefficient with the component ratio to obtain the emission coefficient of each component. Perform emission compensation inversion and central logarithmic ratio transformation on the concentrations of two adjacent chromatographic samples in the operating segment according to the emission coefficients of each component to obtain the updated gas production distribution direction. Iterate and update the stable window according to the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Determine the fault type and evolution direction according to the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity to obtain the discrimination result. Update the fault prototype direction according to the discrimination result and the disassembly and repair conclusion to obtain the transformer fault diagnosis model.
[0010] Secondly, this application provides a transformer fault diagnosis model construction system, the transformer fault diagnosis model construction system comprising:
[0011] The segmentation module is used to segment the dissolved gas chromatographic records in transformer oil according to the time of operation and maintenance events, to obtain the operating segment and the shutdown segment;
[0012] The regression module is used to perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient.
[0013] The transformation module is used to perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the running segment to obtain the initial gas production distribution direction;
[0014] The identification module is used to perform a quotient operation on the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Based on a stability threshold, the directional angular velocity is subjected to threshold discrimination processing to obtain a stability window. The inter-component ratio of the emission coefficient is identified with the goal of minimizing the spherical dispersion within the stability window to obtain the inter-component ratio. The hydrogen emission coefficient is multiplied by the inter-component ratio to obtain the emission coefficient of each component. Based on the emission coefficients of each component, emission compensation inversion and central logarithmic ratio transformation are performed on the concentrations of two adjacent chromatographic samples in the operating segment to obtain an updated gas production distribution direction. The stability window is iteratively updated based on the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Based on the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity, the fault type and evolution direction are discriminated to obtain a discrimination result. Based on the discrimination result and the disassembly and repair conclusion, the fault prototype direction is updated to obtain a transformer fault diagnosis model.
[0015] In the technical solution provided in this application, segmented processing sets the times of oil filtration, oil change, oil replenishment, and seal replacement as breakpoints. Two sampling records on either side of the breakpoint do not constitute adjacent sampling pairs. The concentration steps formed by the overall removal or dilution of dissolved gases in the oil are interrupted here, no longer entering the downstream differential stages and constituent quantities. The logarithmic linear regression of the shutdown section determines the absolute magnitude of the fugitive coefficient using pure decay data under source term termination conditions. This magnitude is no longer taken from the unconstrained source of data—the entire running section fitting. Carbon monoxide is converted according to the reciprocal of its solubility coefficient and cross-checked with hydrogen. Sections where there are still unterminated source terms or oil replenishment / dilution during shutdown are eliminated here. The central logarithmic ratio transformation carries the relationship between components through logarithmic differences; components with concentrations exceeding two orders of magnitude no longer dominate the unitized components. The stability threshold restricts parameter identification to sampling intervals with low constituent quantity deflection rates; the migration of constituent quantities themselves during the fault development period is not included in the solution of component ratios. The escape compensation inversion is based on the integral of the escape coefficient and the sampling interval, with two branches. The situation where the numerator and denominator both tend to zero in the daily sampling interval no longer occurs in this scheme. The updated constituent quantities and the stable window are updated alternately, terminating with the relative change of the escape coefficient between two adjacent rounds. The situation where parameters and constituent quantities are interdependent is handled in a definite order, and the solution cost is constrained within the upper limit of the number of rounds. The fault prototype direction is continuously corrected by the disassembly and repair conclusions through cross-entropy loss and gradient backpropagation; the prototype on which the judgment is based is no longer fixed. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of an embodiment of the transformer fault diagnosis model construction method in this application.
[0018] Figure 2 This is a schematic diagram illustrating the directional angular velocity and the delineation of the stable window in an embodiment of this application;
[0019] Figure 3 This is a schematic diagram of the concentration difference rate and the gas production rate obtained by the inversion of the emission compensation in the embodiments of this application;
[0020] Figure 4 This is a schematic diagram of the included angle between two adjacent sampling intervals in an embodiment of this application. Detailed Implementation
[0021] This application provides a method and system for constructing a transformer fault diagnosis model. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0022] For ease of understanding, the specific process of the embodiments of this application is described below. Please refer to [link / reference]. Figure 1 One embodiment of the transformer fault diagnosis model construction method in this application includes:
[0023] Step S1: The dissolved gas chromatographic records in the transformer oil are segmented according to the time of operation and maintenance events to obtain the operating segment and the shutdown segment.
[0024] This embodiment focuses on a 220 kV oil-immersed power transformer. The electrical and thermal effects inside the transformer cause the carbon-hydrogen bonds in the mineral insulating oil and solid insulating paper to break and recombine. The composition of dissolved gases in the oil varies with the energy density of the affected area, making chromatographic records a readily observable source of the internal state. Chromatographic records are not obtained continuously under the same conditions. Online chromatography uses carrier gas flow rate and column condition as calibration prerequisites, while offline sampling chromatography uses laboratory standard gas as calibration prerequisites. On the same day, there is a systematic difference in the measured values of the same component between the two methods. Oil filtration, oil changes, oil replenishment, and seal replacement cause the dissolved gases in the oil to be carried away or diluted, resulting in a step-like drop in concentration. The magnitude of this drop depends on the workload and is independent of the internal state. During transformer shutdown, the electrical and thermal effects cease, the gas generation source term returns to zero, and the concentration is only governed by the escape. Existing practices include all three types of situations into the same concentration time series. The concentration step is read as a change in gas production by the subsequent differential step. The pure decay during shutdown is read as a negative gas production and is discarded in the whole segment. The only segment of data in the chromatographic record that can constrain the emission level is discarded here.
[0025] The segmented processing separates the gas mass conservation relationship in the oil according to the three scenarios described above. Oil filtration, oil change, oil replenishment, and seal replacement directly change the total amount of dissolved gas in the oil, breaking the conservation relationship at that moment. The two sampling records on either side do not constitute adjacent sampling pairs, thus these are designated as hard breaks. Shutdown start and shutdown termination only reset the source term to zero without changing the conservation relationship; both sides remain separate segments, thus these are designated as soft breaks. The segment in between, with its source term at zero, has another purpose in step S2. In addition to segmentation, there are two pre-processing steps. First, the difference in values between online and offline records is eliminated before segmentation; otherwise, two adjacent records within the same operating segment come from two different calibration bases, and their difference contains calibration errors rather than gas production. Secondly, several records with excessively close time intervals in the daily online records are merged first. It takes a period of time for the gas in the oil to diffuse from the fault point to the sampling port. There is no distinguishable concentration change between two records with an interval less than this time. If they are not merged, the sampling interval will be so small that the inversion formula in step S4 will lose its numerical meaning.
[0026] In some embodiments, step S1 includes: performing component-by-component ratio calculation and arithmetic mean calculation on the online chromatographic records of the same day based on the offline chromatographic records in the dissolved gas chromatographic records in the oil, to obtain a correction coefficient; performing interval discrimination processing and proportional correction processing on the online chromatographic records based on the correction coefficient, to obtain a corrected chromatographic record, wherein the lower limit of the interval discrimination processing is 0.80 and the upper limit of the interval is 1.25; performing negative value screening processing, range exceeding limit screening processing, and sampling time merging processing on the corrected chromatographic records, to obtain a valid chromatographic record, wherein the time interval threshold for the sampling time merging processing is 6 hours; performing time sequence segmentation processing and segment discrimination processing on the valid chromatographic records based on the oil filtration time, oil change time, oil replenishment time, seal replacement time, shutdown start time, and shutdown termination time in the transformer operation and maintenance event log, to obtain the operating segment and the shutdown segment.
[0027] The rated capacity of the object in this embodiment is 180 MVA, the total mass of the insulating oil is 32 tons, the density of the insulating oil is 0.895 kg / L, the oil tank is a capsule type, and the service life is 9 years. Chromatographic records are taken from 12 consecutive months. The sampling period for offline sampling chromatography is 90 days, and the sampling period for online chromatography is 24 hours. The seven components are, in order, hydrogen, methane, ethane, ethylene, acetylene, carbon monoxide, and carbon dioxide, and their serial numbers are... Take numbers 1 to 7, and use the sampling sequence number. Correction coefficient Dimensionless, the lower limit of the interval (0.80) and the upper limit of the interval (1.25) are determined by the magnitude shift caused by carrier gas flow drift and column aging within a calibration cycle of the online chromatography device. Magnitude shifts exceeding this interval are beyond the scope of calibration drift and are therefore discarded entirely from the online records. The time interval threshold for merging sampling times is set at 6 hours, determined by the magnitude of the time required for gas in the oil to diffuse from the internal fault point of the winding through the oil flow to the lower sampling valve.
[0028] The offline and online records for a specific offline sampling chromatographic test were taken. The ratios of the offline concentrations to the online concentrations of the seven components were 1.05, 1.11, 1.07, 1.09, 1.06, 1.10, and 1.08, respectively. The arithmetic mean of these ratios is given. The value was 1.08, falling between 0.80 and 1.25. The concentrations of each component recorded online on the day of the test and from the next offline test were multiplied by 1.08. The maintenance event log recorded one oil filtration operation and one shutdown within the 12 months, with the shutdown lasting 45 days. Based on this, one hard breakpoint and two soft breakpoints were identified. After segmentation, one shutdown segment and two operating segments were obtained. The operating segment after the shutdown ended contained 8 sampling intervals, with sampling sequence numbers... Take values from 0 to 8.
[0029] Step S2: Perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient.
[0030] The escape coefficient characterizes the rate at which dissolved gases in the oil continuously escape through the capsule interface and seals of the oil reservoir. Its dimension is the reciprocal of time, and the unit is daily. This parameter is not entirely identifiable from operational data. The concentration of gas in the oil near quasi-steady state is of the same order as the ratio of the gas production rate to the escape coefficient. Multiplying the escape coefficients of all seven components by a positive constant, the gas production rate obtained from concentration inversion is also multiplied by the same constant. The normalized components remain unchanged, and solutions constrained by the self-consistency of the constituent quantities do not impose any restrictions on this constant. Existing practices fit the escape coefficient along with the other parameters during the operational phase. The overall magnitude of the result is actually determined by the initial fitting values and the regularization term, not by the chromatographic data. Changing the initial values on the same equipment yields a set of coefficients of different magnitudes, and all subsequent inversions dependent on this coefficient are scaled accordingly.
[0031] The shutdown phase opens up the aforementioned unidentifiable one-dimensional dimension. After the source term is zeroed out, the concentration is only governed by escape, and the concentration decays exponentially over time. Taking the natural logarithm results in a straight line, and the negative of its slope is the escape coefficient of that component. The order of magnitude is given directly by the data without relying on any constituent quantity constraints. Among the seven components, hydrogen is responsible for this aspect because it has the lowest Ostwald solubility coefficient in mineral insulating oil, escapes the fastest, has the largest concentration drop within the same shutdown duration, and has the largest margin of regression slope relative to chromatographic repeatability error. The solubility coefficient of carbon monoxide is within one order of magnitude of that of hydrogen, and its decay is also distinguishable within the same shutdown phase. The slope obtained from its individual regression is converted to the hydrogen scale using the reciprocal of the solubility coefficient, and cross-checked with the regression results of hydrogen itself. When the difference between the two exceeds the relative deviation threshold, it indicates that there are still unterminated source terms within the shutdown phase, or that oil replenishment and dilution have occurred during the shutdown period. This phase is then discarded, and a new shutdown phase is selected.
[0032] In some embodiments, step S2 includes: performing a natural logarithmic operation on the hydrogen concentration in the shutdown section to obtain a hydrogen logarithmic concentration sequence; performing deviation operations on the sampling time and the hydrogen logarithmic concentration sequence based on the mean of the sampling time of the shutdown section and the mean of the hydrogen logarithmic concentration sequence to obtain a time deviation sequence and a logarithmic deviation sequence; performing a product summation operation on the time deviation sequence and the logarithmic deviation sequence, and performing a square summation operation on the time deviation sequence to obtain a regression slope; performing an inverse operation on the regression slope to obtain a candidate hydrogen emission coefficient; performing solubility conversion processing and relative deviation discrimination processing on the candidate hydrogen emission coefficient based on the carbon monoxide concentration in the shutdown section to obtain the hydrogen emission coefficient, wherein the relative deviation threshold for the relative deviation discrimination processing is 15%.
[0033] The hydrogen escape coefficient is shown in the following formula.
[0034]
[0035] In the above formula, is the hydrogen emission coefficient, in units of daily, where the subscript 1 indicates the hydrogen's sequence number among the seven components; The number of samples taken for the outage section is dimensionless, with a lower limit of 3. The first of the suspended sections The time of each sampling is in days, with the first sampling of the suspended section as the zero point; The first in the logarithmic concentration sequence of hydrogen gas The term is dimensionless and is obtained by taking the natural logarithm of the hydrogen concentration in this sample. This is the arithmetic mean of the sampling times for the outage period, expressed in days. This is the arithmetic mean of the logarithmic concentration sequence of hydrogen, dimensionless. The dimension of the numerator on the right side of the equation is days, the dimension of the denominator is the square of days, and the dimension of the quotient is the reciprocal of days, consistent with the left side.
[0036] The minimum number of samplings for the shutdown period is set at 3, based on the fact that connecting two points makes it impossible to determine whether the concentration decay deviates from an exponential form; the minimum time span is set at 30 days, based on the fact that the concentration drop of hydrogen in a well-sealed capsule-type oil tank transformer over 30 days must exceed three times the chromatographic repeatability error; the minimum initial hydrogen concentration is set at 30 μL / L, based on the fact that below this value, the relative uncertainty of the chromatographic peak area is on the same order of magnitude as the concentration drop. Ostwald solubility coefficients of the seven components. The values were successively 0.05, 0.40, 2.40, 1.70, 1.20, 0.12, and 1.00, all dimensionless, derived from the gas-liquid two-phase dissolution equilibrium data of mineral insulating oil at room temperature. Relative deviation threshold. The value of 15% is based on the upper limit of the slope deviation that can be caused by the exponential regression amplification of chromatographic repeatability error and environmental temperature fluctuations during shutdown.
[0037] A total of 3 samples were taken from the above-mentioned suspended sections, at the following sampling times: The durations are 0 days, 20 days, and 45 days, respectively. The duration is 21.66667 days. The hydrogen concentrations are 86.0 μL / L, 67.6 μL / L, and 50.2 μL / L respectively. Taking the natural logarithm gives... The values are 4.45435, 4.21358, and 3.91602, respectively. The value is 4.19465. The time deviation sequences are -21.66667 days, -1.66667 days, and 23.33333 days, respectively, and the logarithmic deviation sequences are 0.25970, 0.01893, and -0.27863, respectively. The sum of the products of the two sequences is -12.15975 days, and the sum of the squares of the time deviation sequences is the square of 1016.6667 days. Dividing these two results in a regression slope of -0.0119604 days per day. Taking the inverse, the candidate hydrogen emission coefficient is... Every day, the carbon monoxide concentrations in the same shutdown section were 320.0 μL / L, 289.6 μL / L, and 256.6 μL / L, respectively. Regression using the same method yielded its flotation coefficient as follows: Every day, according to and The ratio 2.4, converted to hydrogen scale, yields... Each day, the relative deviation from the candidate value is 1.483%, which is less than 15%, so it is taken as... The daily hydrogen emission coefficient.
[0038] Step S3: Perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the running segment to obtain the initial gas production distribution direction.
[0039] The fault type is determined by the energy density at the fault point, which in turn determines the gas production distribution ratio of each component. Therefore, the type information is carried by the relative relationships between the components, rather than the absolute quantity of any single component. The difficulty lies in the fact that the orders of magnitude of these seven quantities are not equal. Acetylene is often near the chromatographic detection limit during the latency period, with its absolute quantity measured in decimals per microliter, while the absolute quantity of carbon dioxide is in the thousands, a difference of three orders of magnitude. The discriminant information is precisely concentrated on acetylene, which has the lowest order of magnitude. If the seven quantities are arranged into a vector and then Euclidean normalized, the normalized components are dominated by carbon dioxide and carbon monoxide, while the acetylene component is so small that it is on the same order of magnitude as the chromatographic noise. The orientation of the direction is actually determined by the background gas production of cellulose aging, rather than by the fault point. The reason why existing methods such as the three-ratio method use ratios instead of vectors is to circumvent this situation. The cost is that the ratios are taken from three fixed pairs of components, the relationships between the other components are not included in the discriminant, and the ratios are discontinuous when the denominator approaches zero.
[0040] The central logarithmic ratio transformation, while preserving the physical caliber of the ratio, provides a complete relationship between the seven components. The gas production rate of each component is first divided by its reference gas production rate, ensuring all seven quantities reach the same physical zero point at normal aging levels. Then, the natural logarithm is added to obtain the component logarithmic quantity. Adding this term ensures the operation remains calculable even when the gas production rate approaches zero, avoiding the divergence of the logarithm at zero, and ensuring the logarithmic quantities corresponding to normal aging levels fall within the same order of magnitude. Subtracting the arithmetic mean of the seven components from the logarithmic quantity yields a centralized vector. The difference between the centralized components of two components is the logarithm of the ratio of their normalized gas production rates. The ratio relationship is thus linearly represented by the difference, with relative changes in any component receiving weights of the same order of magnitude across the components. After normalization, the centralized vector represents the gas production distribution direction. Its modulus carries the magnitude of deviations from equilibrium without entering the direction, and changes in fault severity do not alter the orientation of the direction. In this step, the input for transformation is the concentration difference rate, which is the crude quantity without dissipation compensation. The resulting direction serves as the starting point for the alternating solution in step S4. Its function is to open a loop where parameters and constituent quantities are mutually dependent, and at this point, it does not depend on any dissipation coefficient.
[0041] In some embodiments, step S3 includes: performing a difference operation and a sampling interval normalization operation on the concentrations of seven components from two adjacent chromatographic samples in the running segment to obtain a concentration difference rate, wherein the seven components are hydrogen, methane, ethane, ethylene, acetylene, carbon monoxide, and carbon dioxide; performing a 50th percentile operation on the gas production rate of the normal aging sample to obtain a reference gas production rate; performing a component-by-component division operation and a logarithmic addition operation on the concentration difference rate based on the reference gas production rate to obtain the number of component pairs; performing a seven-component arithmetic mean operation and a component-by-component difference operation on the number of component pairs to obtain a centered vector; and performing a L2 norm operation and a component-by-component division operation on the centered vector to obtain the initial gas production distribution direction.
[0042] The centered vector is shown in the following equation.
[0043]
[0044] In the above formula, For the first The centered vector of the sampling interval is... One component, dimensionless; The gas production rate is fed into the transformation, in microliters per liter per day. In this step, the concentration difference rate is taken, and in step S4, the gas production rate obtained by the diffusion compensation inversion is taken. For the first Reference gas production rates for each component, in microliters per liter per day; The component numbers used for summation are taken from 1 to 7. The argument of the logarithm is obtained by dividing two quantities of the same unit; it is dimensionless, and both sides of the equals sign are also dimensionless.
[0045] The gas production distribution direction is shown in the following formula.
[0046]
[0047] In the above formula, For the first The gas distribution direction of the sampling interval is as follows: Each component is dimensionless. In this step, it represents the initial gas production distribution direction; in step S4, it represents the component that updates the gas production distribution direction. The meanings of the other symbols are the same as before. The numerator and denominator on the right side of the equation have the same dimensions, their quotient is dimensionless, and the sum of the squares of the seven components is 1.
[0048] Reference gas production rate The gas production rates of 0.020, 0.010, 0.008, 0.008, 0.002, 0.050, and 0.300 μL / L / day were taken from samples in our unit's sample library that had been disassembled and confirmed to be under normal aging. These rates were the 50th percentile of the component gas production rates. The acetylene rate was constrained by the chromatographic minimum detection concentration and was given by dividing the detection limit of 0.1 μL / L by the reference period of 50 days. The 50th percentile was chosen instead of the arithmetic mean because the distribution is right-skewed, and the mean is affected by a few high-yield samples.
[0049] The sampling interval between the two sampling intervals in the 8th sampling interval of the running segment The sampling period was 30 days. The concentrations of the seven components in the first sampling were 48.0, 22.0, 9.0, 14.0, 1.2, 320.0, and 2100.0 μL / L, respectively. The concentrations in the second sampling were 96.0, 41.0, 13.0, 35.0, 6.8, 360.0, and 2300.0 μL / L, respectively. Dividing the difference by 30 days yielded concentration difference rates of 1.60000, 0.63333, 0.13333, 0.70000, 0.18667, 1.33333, and 6.66667 μL / L / day, respectively. Each component was then divided by... Adding one and taking the natural logarithm, the number of component pairs is 4.394449, 4.164078, 2.871680, 4.483003, 4.546835, 3.320228 and 3.145109 respectively, with an arithmetic mean of 3.846483. Subtracting each component, the centered vectors are 0.547966, 0.317595, −0.974803, 0.636520, 0.700352, −0.526255 and −0.701374 respectively, with a 2-norm of 1.736634. Dividing each component sequentially, the initial gas production distribution directions for the 8th sampling interval are 0.31554, 0.18288, −0.56135, 0.36652, 0.40332, −0.30303, and −0.40393, respectively. Similarly, the initial gas production distribution directions for the 7th sampling interval are 0.58805, 0.35247, −0.57985, 0.24699, −0.28273, −0.16247, and −0.16247, respectively.
[0050] Step S4: Calculate the quotient of the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Perform threshold discrimination processing on the directional angular velocity according to the stability threshold to obtain a stable window. Identify the component ratio of the emission coefficient with the goal of minimizing the spherical dispersion within the stable window to obtain the component ratio. Multiply the hydrogen emission coefficient with the component ratio to obtain the emission coefficient of each component. Perform emission compensation inversion and central logarithmic ratio transformation on the concentrations of two adjacent chromatographic samples in the operating segment according to the emission coefficients of each component to obtain the updated gas production distribution direction. Iterate and update the stable window according to the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Determine the fault type and evolution direction according to the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity to obtain the discrimination result. Update the fault prototype direction according to the discrimination result and the disassembly and repair conclusion to obtain the transformer fault diagnosis model.
[0051] The deflection of the gas production distribution direction over time stems from only two causes. First, the migration of energy density at the fault point. As the fault develops from its incubation period to its confirmed disintegration stage, the energy density increases, and the gas production distribution ratio shifts accordingly; this deflection carries evolutionary information. Second, mismatch in the values of the escape coefficients. If the escape rates of each component are incorrectly chosen, the degree of deviation of the inverted gas production rate from each component will vary, resulting in a shift in the composition. This shift changes with concentration levels, manifesting as a slow drift over time. These two causes are completely overlapping in the concentration data. Existing practices fit the entire data set together, incorporating the deflection caused by fault development into the escape parameters. Consequently, the escape parameters change with the fault stage and lose their physical meaning. The directional angular velocity separates these two causes by using the deflection rate, rather than the magnitude of deflection, as the criterion: energy density migration significantly increases the deflection rate after the fault enters the development phase, while the drift rate caused by parameter mismatch remains relatively constant and of low magnitude within the same operating segment. By using a stable threshold to select a sampling interval with a low deflection rate, the migration of constituent quantities within the obtained stable window can be ignored. The gas production distribution direction of each interval within the window should point to the same place, and the dispersion between them can therefore be attributed to the mismatch of the proportion between components of the dispersion coefficient. Based on this, the proportion is solved with the goal of minimizing the dispersion.
[0052] The component proportions, rather than the dissipation coefficients themselves, are solved here because the mechanism in step S2 has already been explained: the solution constrained by the self-consistency of the constituent quantities is insensitive to the overall scaling of the seven coefficients; only the proportions can be determined by this constraint. The absolute magnitudes are given by the pure attenuation data of the shutdown phase, and multiplying the two yields the complete dissipation coefficients. The initial values for the solution are taken as the reciprocals of the Ostwald solubility coefficients of the seven components, normalized for the hydrogen component. This is based on the fact that the flux of gas escaping from the oil phase is inversely proportional to its solubility in the oil. This reciprocal relationship gives the physical magnitude of the proportions, allowing the iteration to start from a justified starting point rather than from arbitrary assignment. The spherical dispersion is given by summing the squares of the angles between the directions of each interval within the window and the spherical mean of the window. The reason for taking the angles instead of Euclidean distances is that the Euclidean distance between two unit vectors is not proportional to the angle when the angle is large, and the weight of the small angle intervals is reduced after the summation of the squares.
[0053] In some embodiments, the step of quotienting the adjacent angles of the initial gas production distribution directions with the sampling interval to obtain the directional angular velocity, performing threshold discrimination processing on the directional angular velocity according to a stability threshold to obtain a stability window, and identifying the inter-component ratio of the dispersion coefficient with the goal of minimizing the spherical dispersion within the stability window to obtain the inter-component ratio includes: performing inner product and inverse cosine operations on two adjacent initial gas production distribution directions to obtain the adjacent angles; quotienting the adjacent angles with the sampling interval to obtain the directional angular velocity; and performing threshold discrimination processing and continuous interval merging on the directional angular velocity according to the stability threshold. The process involves: obtaining a stable window with a stability threshold of 0.30 degrees per day; performing reciprocal calculations on the Ostwald solubility coefficients of the seven components and normalizing the hydrogen component to obtain initial values for the component proportions; calculating the spherical mean and summing the squares of the angles between each sampling interval within the stable window based on these initial component proportions to obtain the spherical dispersion; and performing a Levenburg-Marquardt iteration based on the spherical dispersion to obtain the component proportions. The iteration termination condition for the Levenburg-Marquardt iteration is that the parameter increment L2 norm is lower than the increment threshold or the number of iterations reaches 200.
[0054] The spherical dispersion is shown in the following formula.
[0055]
[0056] In the above formula, Dimensions are spherical dispersion, expressed in square degrees. The number of sampling intervals within the stable window, dimensionless; For the first in the window The gas distribution direction of the sampling interval is as follows: One component, dimensionless; The spherical mean of this window is the first The component is dimensionless and is obtained by taking the arithmetic mean of the components with the same index in the gas production distribution direction of each interval within the window, and then normalizing it. The argument of the inverse cosine is the inner product of two unit vectors, dimensionless, and its function value is taken as an angle value in degrees. After squaring, the unit is square degrees, consistent with the left side.
[0057] Stability threshold The daily value is 0.30 degrees. This value represents the 85th percentile of the directional angular velocity distribution of samples in the unit's sample library that have been confirmed as having stable faults through disassembly and repair. The 85th percentile is chosen to allow for a 15% margin to accommodate directional fluctuations caused by chromatographic repeatability errors. The incremental threshold is set to... Dimensionless, this is the upper limit of the L2 norm of the proportional vector increment between components. Its value is determined by the fact that the deflection caused by the proportional change of this magnitude in the converged direction is less than 0.01 degrees, which is within the chromatographic repeatability error range. The upper limit of the number of Levenburg-Marquardt iterations is 200, based on the fact that the 99th percentile of the convergence count for proportional solutions in this unit's sample library is 118. The directional angular velocity is determined by dividing the angle between two adjacent gas production distribution directions (the inner product of which is the inverse cosine) by the sampling interval between those two samplings. Its physical meaning is the deflection rate of the gas production distribution direction on a unit sphere, expressed in degrees per day, the same unit as the stability threshold.
[0058] The directional angular velocities of the eight sampling intervals in the operating segment were 0.11, 0.08, 0.14, 0.09, 0.12, 0.34, 0.98, and 1.75 degrees per day, respectively. The first to fifth sampling intervals were lower than... A stable window is obtained by merging consecutive intervals. The value is 5. The reciprocals of the Ostwald solubility coefficients of the seven components are 20.00000, 2.50000, 0.41667, 0.58824, 0.83333, 8.33333, and 1.00000. Normalizing the hydrogen component, the initial values of the component proportions are 1.00000, 0.12500, 0.02083, 0.02941, 0.04167, 0.41667, and 0.05000, respectively. Starting from these initial values, the spherical dispersion within the window is calculated. The initial value was 43.7 square degrees. After 47 iterations by Levenberg and Marquardt, the parameter increment L2 norm decreased to 43.7 square degrees. Below the incremental threshold When the angle is reduced to 7.2 square degrees, the average angle between the directions of each interval within the window and the mean of the sphere is 1.20 degrees. The proportions between the groups are 1.00000, 0.13100, 0.01950, 0.03010, 0.04420, 0.40400 and 0.04880, all of which are dimensionless.
[0059] See Figure 2This figure shows the relative positions of the directional angular velocity and the stability threshold for each sampling interval within the operating segment. The solid step and the diagonal line below it represent the directional angular velocity, while the dashed line represents the stability threshold. From the graph, it can be seen that the directional angular velocities of the first to fifth sampling intervals are close to a horizontal line and fluctuate by about 0.1 degrees per day. The sixth sampling interval rises above the threshold, and the following two intervals rise by nearly an order of magnitude. The flat shape of the first five intervals corresponds to the constant drift caused by parameter mismatch, while the continuous rise in the last three intervals corresponds to the migration of energy density at the fault point. These two causes are separated by a difference in rate magnitude on the same curve. The stability threshold falls precisely at the inflection point between the two segments, indicating that the method of taking the threshold from the 85th percentile of the stable fault distribution is consistent with the actual inflection point.
[0060] In some embodiments, the step of multiplying the hydrogen escape coefficient with the proportion between the components to obtain the escape coefficient of each component, and then performing escape compensation inversion and central logarithmic ratio transformation on the concentrations of two adjacent chromatographic samples in the operating segment based on the escape coefficients of each component to obtain the updated gas production distribution direction includes: performing a component-by-component product operation on the hydrogen escape coefficient with the proportion between the components to obtain the escape coefficient of each component; and performing threshold discrimination processing based on the product of the escape coefficient of each component with the sampling interval and a degradation discrimination threshold to obtain the conventional inversion interval and the degradation inversion interval. The following steps are performed: Based on the dispersion coefficients of each component, the concentrations of two adjacent chromatographic samples in the conventional inversion interval are subjected to exponential decay calculation and decay factor normalization to obtain the conventional gas production rate; based on the dispersion coefficients of each component, the concentrations of two adjacent chromatographic samples in the degraded inversion interval are subjected to difference calculation and dispersion mean compensation calculation to obtain the degraded gas production rate; the conventional gas production rate and the degraded gas production rate are subjected to component-by-component division, addition and logarithm calculation, seven-component arithmetic mean calculation, component-by-component difference calculation, and unitization calculation to obtain the updated gas production distribution direction.
[0061] The escape compensation inversion restores the concentration to the gas production rate. (The text abruptly ends here, likely due to an incomplete sentence or missing information.) The concentration changes of each component are governed by two terms: gas production and emission. The gas production term is considered constant within a sampling interval, while the emission term is proportional to the current concentration. Integrating this over the sampling interval yields the recursive relationship for the concentration, and solving this relationship inversely gives the gas production rate for the conventional inversion interval. This formula can be calculated when the product of the emission coefficient and the sampling interval does not tend to zero. Its denominator is a factor minus the attenuation factor, and the numerator is the concentration of the later time minus the concentration of the previous time after attenuation. The situation is different for daily online sampling intervals: for well-sealed capsule-type oil tank transformers, the emission coefficients of ethane, ethylene, acetylene, and carbon dioxide are on the order of parts per ten thousand per day. Multiplying this by the daily sampling interval gives parts per ten thousand, and both the denominator and numerator tend to zero. The quotient loses significant bits in floating-point operations. The degenerate inversion interval uses the first-order expansion of this recursive relationship at small quantities. Its first term is the concentration difference rate, and the second term is the product of the emission coefficient and the arithmetic mean of the two concentrations. Neither term contains factors that cause the denominator to tend to zero. The two formulas give the same value near the threshold within the valid bits. The purpose of setting two branches is not to change the value, but to make the operation at that point calculable.
[0062] The gas production rate in the conventional inversion range is shown in the following formula.
[0063]
[0064] In the above formula, For the first The sampling interval The gas production rate of each component is expressed in microliters per liter per day. For the first The evaporation coefficient of each component, in units of daily; and These are the sampling times of the last and the first samples in the interval, respectively. The concentration of each component is expressed in microliters per liter. The sampling interval for this range is in days. The argument of the exponential function is the product of the divergence coefficient and the sampling interval, which is dimensionless; the dimension of the fraction is microliters per liter, which, when multiplied by the divergence coefficient, is microliters per liter per day, consistent with the left side.
[0065] The gas production rate in the degradation inversion region is shown in the following formula.
[0066]
[0067] The meanings of the symbols in the above formula are the same as in the previous formula. The first term on the right side of the equal sign has the dimension of microliters per liter per day, and the second term is the product of daily and microliters per liter, both in microliters per liter per day. The two terms can be added together, consistent with the left side.
[0068] Degradation threshold The value is 0.001, which is dimensionless and represents the lower limit of the product of the dissipation coefficient and the sampling interval. The value is determined based on the fact that even after subtracting the attenuation factor from the value of a double-precision floating-point system, there are still more than ten significant bits at this level. Below this level, the significant bits are lost linearly with the magnitude.
[0069] The hydrogen escape coefficient is multiplied by the proportions between components one by one, yielding the escape coefficients of the seven components as follows: , , , , , and Each day, the order of solubility is: hydrogen > carbon monoxide, carbon monoxide > methane, methane > carbon dioxide, carbon dioxide > acetylene, acetylene > ethylene, and ethylene > ethane, consistent with the reverse order of the Ostwald solubility coefficients of the seven components. (Offline sampling interval) For a period of 30 days, the product of the escape coefficients of the seven components and the product of these coefficients were 0.358812, 0.047004, 0.006997, 0.010800, 0.015860, 0.144960, and 0.017510, respectively, all higher than [the previous value]. The entire segment is then placed into the conventional inversion interval. Substituting into the conventional inversion formula, the attenuation factor for the hydrogen term is 0.698505. The numerator is 96.0 minus the product of 48.0 and 0.698505, which is 62.47176 μL / L. The denominator is 0.301495, and the quotient is 207.2054 μL / L. Multiplying by the daily values yields 2.47828 μL / L / day. Using the same method, the gas production rates of the seven components are 2.47828, 0.68284, 0.13590, 0.70882, 0.18879, 2.97854, and 7.95064 μL / L / day, respectively. The sampling interval for the online sampling period is 1 day. The emission coefficients of ethane, ethylene, acetylene, and carbon dioxide, multiplied by this interval, are as follows: , , and All are lower than The concentration falls within the degradation inversion range; taking ethane as an example, the concentrations recorded online on two consecutive days were 12.86 μL / L and 12.93 μL / L, respectively. Substituting these into the degradation inversion formula yields 0.07000 μL / L per day. The product of daily and 12.895 microliters per liter is 0.00301 microliters per liter per day. Adding the two together gives 0.07301 microliters per liter per day.
[0070] The gas production rates of the above seven components are fed into a central logarithmic ratio transform, and each component is divided by... Adding one and taking the natural logarithm, the number of group pairs is 4.827626, 4.238215, 2.889677, 4.495383, 4.558026, 4.103813, and 3.314262, respectively. Their arithmetic mean is 4.061000. Subtracting each group, the centered vectors are 0.766626, 0.177215, and -1.1713, respectively. The values 23, 0.434383, 0.497026, 0.042813, and -0.746738 have a L2 norm of 1.728089. After normalization, the updated gas production distribution directions for the 8th sampling interval are 0.44363, 0.10255, -0.67781, 0.25137, 0.28762, 0.02478, and -0.43212, respectively. The angle between this direction and the initial gas production distribution direction in the same interval is 23.88 degrees, meaning that the dispersion compensation causes a 23.88-degree deflection. Similarly, the updated gas production distribution directions for the 7th sampling interval are 0.56482, 0.11206, -0.56827, -0.01646, -0.37436, 0.42857, and -0.14635, respectively.
[0071] See Figure 3 The figure shows the concentration difference rate of the seven components in the 8th sampling interval and the gas production rate obtained from the emission compensation inversion. The bars filled with diagonal lines represent the former, and the bars filled with cross lines represent the latter. From the graph, it can be seen that the height difference of the two sets of bars is not consistent for each component. The height difference for hydrogen is the largest, with its inversion value being about 55% higher than the difference value. Carbon monoxide is next, while the two bars for ethane, ethylene, and acetylene are almost the same height. This pattern corresponds one-to-one with the order of the emission coefficients of the seven components; the faster the emission, the greater the underestimation of gas production by the concentration difference. Existing methods directly construct a ratio as a characteristic quantity from the difference value, which is equivalent to bringing this set of unequal underestimations for each component into the constituent quantities. The significant difference in the height difference of the hydrogen and acetylene bars in the figure indicates that this underestimation cannot be canceled out by the same coefficient among the components.
[0072] In some embodiments, the iterative update of the stable window based on the updated gas production distribution direction until the relative change of the dissipation coefficients of each component in two adjacent rounds is lower than the convergence threshold, the fault type and evolution direction are determined based on the sector where the converged updated gas production distribution direction is located and the directional angular velocity to obtain a determination result, and the fault prototype direction is updated based on the determination result and the dismantling and maintenance conclusion to obtain the transformer fault diagnosis model includes: performing inner product operation, inverse cosine operation and sampling interval quotient operation on two adjacent updated gas production distribution directions to obtain the updated directional angular velocity; performing threshold discrimination processing and continuous interval merging processing on the updated directional angular velocity based on the stable threshold to obtain the updated stable window; performing re-identification processing and relative change discrimination processing on the component ratio and the dissipation coefficients of each component in sequence based on the updated stable window to obtain the convergence discrimination result, wherein the maximum number of rounds of re-identification processing is 5 rounds; and updating the fault prototype direction based on the converged updated gas production distribution direction. Angle calculations are performed on the six fault prototype directions one by one to obtain the prototype angles. Based on the prototype angles, minimum angle sector discrimination processing and adjacent sampling interval angle change discrimination processing are performed to obtain the discrimination results. The discrimination results include the fault type and evolution direction. The six fault prototype directions correspond to partial discharge, low-energy discharge, high-energy discharge, medium-low temperature overheating, high-temperature overheating, and solid insulation overheating damage in sequence. The discrimination results and the disassembly and repair conclusions are input into the prototype discrimination head for cross-entropy loss calculation and gradient backpropagation processing to obtain the updated fault prototype directions and the transformer fault diagnosis model. The prototype discrimination head includes a direction encoder, an evolution encoder, and six prototype embeddings. The direction encoder is a three-layer fully connected network with 64, 64, and 32 hidden layer neurons in sequence, and the output is a 32-dimensional direction embedding. The evolution encoder is a two-layer fully connected network with 16 hidden layer neurons, and the output is an 8-dimensional evolution embedding. The six prototype embeddings are all 40-dimensional.
[0073] The stable window is defined by the directional angular velocity, which is calculated from the gas production distribution direction. The gas production distribution direction is obtained by inverting the dispersion coefficient, and the proportion between components of the dispersion coefficient is solved within the stable window. These four factors are interdependent. Step S3 gives the initial gas production distribution direction using the concentration difference rate, which does not depend on any dispersion coefficient, thus initiating the loop. The process then proceeds in a fixed order: the angular velocity is calculated using the current direction; a window is drawn using the angular velocity; the proportion within the window is calculated and multiplied by the hydrogen dispersion coefficient to obtain the dispersion coefficient; the gas production rate is inverted using this coefficient and transformed to obtain the updated gas production distribution direction; then the angular velocity is recalculated using the updated direction, and the window is redrawn, entering the next round. The termination criterion is the relative change of the dispersion coefficients of each component in two adjacent rounds. This means the maximum value of the ratio of the absolute value of the difference between the values of the same component in two rounds to the value in the previous round among the seven components. The criterion of relative change rather than absolute change is based on the fact that the seven dispersion coefficients span two orders of magnitude; the same threshold for absolute change is too broad for hydrogen and too strict for ethane. The purpose of the upper limit on the number of rounds is to handle non-convergent segments. If the target is not met even after exceeding the upper limit, the segment is marked as non-convergent, and the samples in that segment are deweighted in subsequent training.
[0074] The discrimination is determined by two quantities. The fault type is the category corresponding to the smallest prototype angle between the updated gas production distribution direction and the six fault prototype directions, i.e., the sector where the direction is located. The evolution direction is the category corresponding to the smallest change in the prototype angle between two adjacent sampling intervals; a negative change indicates that the direction is moving towards that prototype. Both are derived from the same set of prototype angles, using their numerical values and temporal increments respectively. The directional angular velocity plays a secondary role here, determining whether the evolution is fast or slow based on its magnitude. The prototype discriminator concatenates the embedding obtained from the updated gas production distribution direction via the directional encoder with the embedding obtained from the directional angular velocity and its first-order difference via the evolution encoder. Cosine similarity is then calculated with the embeddings of the six learnable prototypes. The cosine value is divided by the temperature coefficient and then normalized to the soft maximum value to obtain the six posterior probabilities. The cross-entropy loss is taken as the negative of the natural logarithm of the posterior probability of the category corresponding to the solution inspection conclusion. Its gradient is backpropagated through the prototype discriminant head to the six prototype embeddings, so that the prototype direction of the confirmed category of the solution moves closer to the updated gas production distribution direction of the sample. The reason for using cosine similarity instead of Euclidean distance as a metric is that the gas production distribution direction has been normalized, and the deviation of the constituent quantity carried by its magnitude does not enter the category assignment.
[0075] Convergence threshold The value is 2%, dimensionless, and is based on the fact that after the relative change of the emission coefficient in the unit's sample library drops to this order of magnitude, the deflection caused by it in the gas production distribution direction is less than 0.5 degrees, which is one order of magnitude lower than the minimum inter-class value of the prototype angle. The orientation encoder is a three-layer fully connected network with an input dimension of 7, and the number of hidden layer neurons is 64, 64, and 32 respectively. The activation function is hyperbolic tangent. Each hidden layer is followed by a batch normalization layer, and the output is a 32-dimensional orientation embedding. The evolutionary encoder is a two-layer fully connected network with an input of 5 dimensions: the directional angular velocity of the current and the two previous sampling intervals and the first difference of the directional angular velocity of the current and the previous sampling interval. The number of hidden layer neurons is 16, and the activation function is hyperbolic tangent. The output is an 8-dimensional evolutionary embedding. The prototype embedding consists of six 40-dimensional learnable vectors. The temperature coefficient is set to 0.07, a value chosen to ensure that the ratio of the posterior probabilities of two classes with a 10-degree difference in their prototype angle falls between 3 and 5. This ensures that the probability of the suboptimal class does not drop to zero, thus losing evolutionary information, nor does it cause the probabilities of the two classes to become too close, thus losing discriminative power. Parameter updates utilize a gradient descent algorithm with joint correction of the first and second moments. The initial learning rate is 0.001, the first moment coefficient is 0.9, the second moment coefficient is 0.999, the weight decay is 0.0001, the batch size is 64, the number of training epochs is 200, and the learning rate is multiplied by 0.1 at epochs 120 and 170.
[0076] The angular velocity was recalculated using the updated gas production distribution direction of the 8th sampling interval. The angle between this angle and the updated direction of the 7th sampling interval is 52.46 degrees. The division yields an update direction angular velocity of 1.75 degrees per day, which is higher than... The 8th sampling interval does not enter the updated stable window; the updated stable window remains the 1st to 5th sampling intervals. The solution is recalculated within the updated stable window. The component ratios obtained in the second round are 1.00000, 0.12980, 0.01970, 0.02990, 0.04380, 0.40530, and 0.04910, respectively. Compared to the first round, the maximum relative change in the seven component escape coefficients is 3.712%, which is higher than... The proportions of the components obtained in the third round were 1.00000, 0.13000, 0.01966, 0.02994, 0.04374, 0.40556, and 0.04906, respectively, with a maximum relative change of 0.905%, which is lower than... The iteration terminated in the third round, and the convergence result was convergent. The components of the six fault prototype directions are as follows: partial discharge: 0.77919, 0.09167, −0.27501, −0.32084, −0.41251, 0.13750, and 0.09167; low-energy discharge: 0.62832, 0.08107, −0.62832, 0.05067, 0.30403, −0.06081, and −0.32429; high-energy discharge: 0.41848, 0.09964, −0.65760, 0.27898, 0.39855, 0.04982, and −0.378. 62. For overheating at medium and low temperatures, the values are -0.10250, 0.56376, 0.30750, 0.20500, -0.63551, 0.15375, and 0.32800. For overheating at high temperatures, the values are 0.08255, 0.28892, -0.18574, 0.68103, -0.59848, 0.10319, and -0.20637. For overheating damage to solid insulation, the values are -0.05034, 0.10069, 0.05034, 0.08055, -0.55378, 0.55378, and 0.60412. All values are dimensionless.
[0077] The angles between the updated gas production distribution direction and the six fault prototype directions in the 8th sampling interval are 72.18 degrees, 17.88 degrees, 7.60 degrees, 117.73 degrees, 73.56 degrees, and 115.63 degrees, respectively. The smallest angle is 7.60 degrees, corresponding to high-energy discharge, indicating a high-energy discharge fault type. The angles between the same group of prototypes in the 7th sampling interval are 35.75 degrees, 51.11 degrees, 57.03 degrees, 85.24 degrees, 61.85 degrees, and 71.99 degrees, respectively. The changes in angle between the two intervals are 36.43 degrees, -33.23 degrees, -49.43 degrees, 32.49 degrees, 11.71 degrees, and 43.64 degrees, respectively. The smallest angle is -49.43 degrees, corresponding to high-energy discharge, indicating a high-energy discharge evolution path. The update direction angular velocity is 1.75 degrees higher per day than... Nearly five times faster, this evolution is judged to be rapid. The cosine values of the six prototype angles are 0.305976, 0.951731, 0.991216, −0.465266, 0.282942, and −0.432489, respectively. After dividing by the temperature coefficient of 0.07 and normalizing to the maximum flexible value, the posterior probabilities of the six classes are 0.00004, 0.36263, 0.63731, close to zero, 0.00003, and close to zero, respectively. This sample was subsequently confirmed as a high-energy discharge after power outage and dismantling repair. The cross-entropy loss is taken as the negative of the natural logarithm of 0.63731, which is 0.45044. After gradient backpropagation, the angle between the prototype direction corresponding to the high-energy discharge and the prototype direction of the updated gas distribution of this sample decreased from 7.60 degrees to 6.92 degrees, resulting in the updated fault prototype direction and transformer fault diagnosis model.
[0078] See Figure 4 The figure uses the angle between the prototypes in the 7th sampling interval as the x-axis and the angle between the prototypes in the 8th sampling interval as the y-axis to show six markers corresponding to the directions of the six fault prototypes. The dashed line represents the reference line with equal coordinates. From the graphic shape, it can be seen that the low-energy discharge and high-energy discharge markers fall below the reference line and are furthest from it, while the other four markers fall above the reference line. Falling below indicates the direction is moving towards the prototype, while falling above indicates it is moving away; the distance from the reference line represents the magnitude of this approach or departure. The high-energy discharge marker has the lowest y-axis and the middle x-axis, indicating that this direction did not yet point to high-energy discharge in the 7th sampling interval but clearly pointed to it in the 8th sampling interval, indicating a cross-sector migration between the two intervals. If only the y-axis of the 8th sampling interval is used for judgment, the conclusion obtained is only the current category; the relative position of the two axes simultaneously indicates whether the category is newly acquired or persistent, information not included in the static composition of a single sample.
[0079] The transformer fault diagnosis model construction method in the embodiments of this application has been described above. The transformer fault diagnosis model construction system in the embodiments of this application is described below. One embodiment of the transformer fault diagnosis model construction system in the embodiments of this application includes:
[0080] The segmentation module is used to segment the dissolved gas chromatographic records in transformer oil according to the time of operation and maintenance events, to obtain the operating segment and the shutdown segment;
[0081] The regression module is used to perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient.
[0082] The transformation module is used to perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the running segment to obtain the initial gas production distribution direction;
[0083] The identification module is used to perform a quotient operation on the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Based on a stability threshold, the directional angular velocity is subjected to threshold discrimination processing to obtain a stability window. The inter-component ratio of the emission coefficient is identified with the goal of minimizing the spherical dispersion within the stability window to obtain the inter-component ratio. The hydrogen emission coefficient is multiplied by the inter-component ratio to obtain the emission coefficient of each component. Based on the emission coefficients of each component, emission compensation inversion and central logarithmic ratio transformation are performed on the concentrations of two adjacent chromatographic samples in the operating segment to obtain an updated gas production distribution direction. The stability window is iteratively updated based on the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Based on the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity, the fault type and evolution direction are discriminated to obtain a discrimination result. Based on the discrimination result and the disassembly and repair conclusion, the fault prototype direction is updated to obtain a transformer fault diagnosis model.
[0084] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for constructing a transformer fault diagnosis model, characterized in that, The method includes: Step S1: The dissolved gas chromatography records in the transformer oil are segmented according to the time of operation and maintenance events to obtain the operating segment and the shutdown segment; Step S2: Perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient; Step S3: Perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the operation segment to obtain the initial gas production distribution direction; Step S4: Calculate the quotient of the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Perform threshold discrimination processing on the directional angular velocity according to the stability threshold to obtain a stable window. Identify the component ratio of the emission coefficient with the goal of minimizing the spherical dispersion within the stable window to obtain the component ratio. Multiply the hydrogen emission coefficient with the component ratio to obtain the emission coefficient of each component. Perform emission compensation inversion and central logarithmic ratio transformation on the concentrations of two adjacent chromatographic samples in the operating segment according to the emission coefficients of each component to obtain the updated gas production distribution direction. Iterate and update the stable window according to the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Determine the fault type and evolution direction according to the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity to obtain the discrimination result. Update the fault prototype direction according to the discrimination result and the disassembly and repair conclusion to obtain the transformer fault diagnosis model.
2. The method for constructing a transformer fault diagnosis model according to claim 1, characterized in that, Step S1 includes: Based on the offline chromatographic records in the dissolved gas chromatographic records of the oil, the online chromatographic records of the same day are calculated by performing component-by-component ratio calculation and arithmetic mean calculation to obtain the correction coefficient; The online chromatographic record is subjected to interval discrimination processing and proportional correction processing based on the correction coefficient to obtain a corrected chromatographic record. The lower limit of the interval discrimination processing is 0.80 and the upper limit of the interval is 1.
25. The calibration chromatographic records are subjected to negative value screening, range exceeding screening, and sampling time merging to obtain valid chromatographic records. The time interval threshold for the sampling time merging process is 6 hours. Based on the oil filtration time, oil change time, oil replenishment time, seal replacement time, shutdown start time, and shutdown end time in the transformer's operation and maintenance event log, the valid chromatographic records are subjected to time-series segmentation and segment discrimination processing to obtain the operating segment and the shutdown segment.
3. The method for constructing a transformer fault diagnosis model according to claim 2, characterized in that, Step S2 includes: Perform a natural logarithmic calculation on the hydrogen concentration in the shutdown section to obtain a hydrogen logarithmic concentration sequence; Based on the average sampling time of the shutdown section and the average hydrogen logarithmic concentration sequence, deviation operations are performed on the sampling time and the hydrogen logarithmic concentration sequence respectively to obtain the time deviation sequence and the logarithmic deviation sequence. The regression slope is obtained by multiplying and summing the time deviation sequence and the logarithmic deviation sequence, and by summing the squares of the time deviation sequence. The candidate hydrogen emission coefficient is obtained by inverting the regression slope. The candidate hydrogen emission coefficient is obtained by performing solubility conversion and relative deviation discrimination processing based on the carbon monoxide concentration in the shutdown section. The relative deviation threshold for the relative deviation discrimination processing is 15%.
4. The method for constructing a transformer fault diagnosis model according to claim 3, characterized in that, Step S3 includes: The concentration difference rate is obtained by performing differential calculation and sampling interval normalization calculation on the concentrations of seven components in two adjacent chromatographic samples in the operation segment. The seven components are hydrogen, methane, ethane, ethylene, acetylene, carbon monoxide and carbon dioxide. The gas production rate of the normal aging sample is calculated at the 50th percentile to obtain the reference gas production rate. The concentration difference rate is then divided component by component and incremented by one and taken as the logarithm based on the reference gas production rate to obtain the number of component pairs. The centered vector is obtained by performing a seven-component arithmetic mean operation and a subtraction operation on each component pair quantity. The initial gas production distribution direction is obtained by performing a L2 norm operation and a component-wise division operation on the centered vector.
5. The method for constructing a transformer fault diagnosis model according to claim 4, characterized in that, The directional angular velocity is obtained by quotienting the adjacent included angles of the initial gas production distribution direction and the sampling interval. A threshold discrimination process is then performed on the directional angular velocity based on a stability threshold to obtain a stability window. Finally, the inter-component ratio of the dispersion coefficient is identified with the goal of minimizing the spherical dispersion within the stability window, resulting in the inter-component ratio, including: Perform inner product and inverse cosine operations on two adjacent initial gas production distribution directions to obtain the adjacent included angle; perform quotient operation on the adjacent included angle and the sampling interval to obtain the directional angular velocity; The directional angular velocity is subjected to threshold discrimination processing and continuous interval merging processing based on the stability threshold to obtain the stability window, wherein the stability threshold is 0.30 degrees per day; The initial values of the proportions between the components are obtained by taking the reciprocal of the Ostwald solubility coefficients of the seven components and normalizing the hydrogen component. Based on the initial value of the component ratio, the initial gas production distribution direction of each sampling interval within the stable window is calculated using spherical mean and summation of the squared angles of each interval to obtain the spherical dispersion. Based on the spherical dispersion, the Levonburg-Marquardt iteration is performed to obtain the component ratio. The iteration termination condition of the Levonburg-Marquardt iteration is that the parameter increment L2 norm is lower than the increment threshold or the number of iterations reaches 200.
6. The method for constructing a transformer fault diagnosis model according to claim 5, characterized in that, The process of multiplying the hydrogen emission coefficient with the proportion between the components to obtain the emission coefficient of each component, and then performing emission compensation inversion and central logarithmic ratio transformation on the concentrations of two adjacent chromatographic samples in the operating segment based on the emission coefficients of each component to obtain the updated gas production distribution direction, includes: The emission coefficient of each component is obtained by multiplying the hydrogen emission coefficient with the proportion between the components one by one. Threshold discrimination processing is performed based on the product of the escape coefficient of each component and the sampling interval and the degradation discrimination threshold to obtain the normal inversion interval and the degradation inversion interval; Based on the dispersion coefficients of each component, the concentrations of two adjacent chromatographic samples in the conventional inversion interval are subjected to exponential decay conversion and decay factor normalization to obtain the conventional gas production rate. Based on the dispersion coefficients of each component, the concentrations of two adjacent chromatographic samples in the degraded inversion interval are subjected to differential calculation and dispersion mean compensation to obtain the degraded gas production rate. The updated gas production distribution direction is obtained by performing component-by-component division, addition and logarithm calculation, seven-component arithmetic mean calculation, component-by-component difference calculation, and unitization calculation on the conventional gas production rate and the degraded gas production rate.
7. The method for constructing a transformer fault diagnosis model according to claim 6, characterized in that, The stable window is iteratively updated according to the updated gas production distribution direction until the relative change of the dispersion coefficients of each component in two adjacent cycles is lower than the convergence threshold. The fault type and evolution direction are then determined based on the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity, yielding a determination result. The fault prototype direction is then updated based on the determination result and the disassembly and maintenance conclusion, resulting in a transformer fault diagnosis model, including: The inner product operation, inverse cosine operation and sampling interval quotient operation are performed on two adjacent updated gas production distribution directions to obtain the updated direction angular velocity. The updated direction angular velocity is then subjected to threshold discrimination processing and continuous interval merging processing according to the stability threshold to obtain the updated stability window. Based on the updated stability window, the proportions between the components and the escape coefficients of each component are sequentially re-identified and relative change discriminant to obtain convergence discriminant results. The maximum number of rounds of re-identification is 5. The angle between the converged updated gas production distribution direction and the six fault prototype directions is calculated one by one to obtain the prototype angle. Based on the prototype angle, the minimum angle sector discrimination processing and the angle change amount discrimination processing of adjacent sampling intervals are performed to obtain the discrimination result. The discrimination result includes the fault type and evolution direction. The six fault prototype directions correspond to partial discharge, low energy discharge, high energy discharge, medium and low temperature overheating, high temperature overheating and solid insulation overheating damage in sequence. The discrimination result and the disassembly and repair conclusion are input into the prototype discrimination head for cross-entropy loss calculation and gradient backpropagation processing to obtain the updated fault prototype direction and the transformer fault diagnosis model. The prototype discrimination head includes a direction encoder, an evolution encoder and six prototype embeddings. The direction encoder is a three-layer fully connected network with 64, 64 and 32 hidden layer neurons respectively, and the output is a 32-dimensional direction embedding. The evolution encoder is a two-layer fully connected network with 16 hidden layer neurons and the output is an 8-dimensional evolution embedding. The six prototype embeddings are all 40-dimensional.
8. A transformer fault diagnosis model construction system, characterized in that, For implementing the transformer fault diagnosis model construction method as described in any one of claims 1-7, the transformer fault diagnosis model construction system comprises: The segmentation module is used to segment the dissolved gas chromatographic records in transformer oil according to the time of operation and maintenance events, to obtain the operating segment and the shutdown segment; The regression module is used to perform logarithmic linear regression on the hydrogen concentration in the shutdown section to obtain the hydrogen emission coefficient. The transformation module is used to perform a central logarithmic ratio transformation on the concentration difference rate of two adjacent chromatographic samples in the running segment to obtain the initial gas production distribution direction; The identification module is used to perform a quotient operation on the adjacent included angles and sampling intervals of the initial gas production distribution direction to obtain the directional angular velocity. Based on a stability threshold, the directional angular velocity is subjected to threshold discrimination processing to obtain a stability window. The inter-component ratio of the emission coefficient is identified with the goal of minimizing the spherical dispersion within the stability window to obtain the inter-component ratio. The hydrogen emission coefficient is multiplied by the inter-component ratio to obtain the emission coefficient of each component. Based on the emission coefficients of each component, emission compensation inversion and central logarithmic ratio transformation are performed on the concentrations of two adjacent chromatographic samples in the operating segment to obtain an updated gas production distribution direction. The stability window is iteratively updated based on the updated gas production distribution direction until the relative change of the emission coefficients of each component in two adjacent rounds is lower than the convergence threshold. Based on the sector where the updated gas production distribution direction is located after convergence and the directional angular velocity, the fault type and evolution direction are discriminated to obtain a discrimination result. Based on the discrimination result and the disassembly and repair conclusion, the fault prototype direction is updated to obtain a transformer fault diagnosis model.
9. The system according to claim 8, characterized in that, The dissolved gas chromatography records in the transformer oil are segmented according to the time of the operation and maintenance event to obtain the operating segment and the shutdown segment, including: Based on the offline chromatographic records in the dissolved gas chromatographic records of the oil, the online chromatographic records of the same day are calculated by performing component-by-component ratio calculation and arithmetic mean calculation to obtain the correction coefficient; The online chromatographic record is subjected to interval discrimination processing and proportional correction processing based on the correction coefficient to obtain a corrected chromatographic record. The lower limit of the interval discrimination processing is 0.80 and the upper limit of the interval is 1.
25. The calibration chromatographic records are subjected to negative value screening, range exceeding screening, and sampling time merging to obtain valid chromatographic records. The time interval threshold for the sampling time merging process is 6 hours. Based on the oil filtration time, oil change time, oil replenishment time, seal replacement time, shutdown start time, and shutdown end time in the transformer's operation and maintenance event log, the valid chromatographic records are subjected to time-series segmentation and segment discrimination processing to obtain the operating segment and the shutdown segment.
10. The system according to claim 8, characterized in that, The hydrogen concentration in the shut-down section is subjected to logarithmic linear regression to obtain the hydrogen emission coefficient, including: Perform a natural logarithmic calculation on the hydrogen concentration in the shutdown section to obtain a hydrogen logarithmic concentration sequence; Based on the average sampling time of the shutdown section and the average hydrogen logarithmic concentration sequence, deviation operations are performed on the sampling time and the hydrogen logarithmic concentration sequence respectively to obtain the time deviation sequence and the logarithmic deviation sequence. The regression slope is obtained by multiplying and summing the time deviation sequence and the logarithmic deviation sequence, and by summing the squares of the time deviation sequence. The candidate hydrogen emission coefficient is obtained by inverting the regression slope. The candidate hydrogen emission coefficient is obtained by performing solubility conversion and relative deviation discrimination processing based on the carbon monoxide concentration in the shutdown section. The relative deviation threshold for the relative deviation discrimination processing is 15%.
