원시데이터 수집 시스템
선정목록으로

Predicting the insulating paper state of the power transformer based on XGBoost/LightGBM models

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Sherif S. M. Ghoneim — Department of Electrical Engineering, College of Engineering, Taif University, Taif, 21944, Saudi Arabia
  2. Mohammed Baz — Department of Computer Engineering, College of Computers and Information Technology, Taif University, Taif, 21944, Saudi Arabia
  3. Ali Alzaed — Architectural Engineering Program - Civil Engineering Department, Faculty of Engineering, Taif University, Taif, 21944, Saudi Arabia
  4. Yohannes Tesfaye Zewdie — Department of Electrical and Computer Engineering, Faculty of Technology, Debre Markos University, P. BOX 269, Debre Markos, Ethiopia. yohannes_tesfaye@dmu.edu.et|||Department of Electrical and Computer Engineering, Faculty of Technology, Debre Markos University, P. BOX 269, Debre Markos, Ethiopia
DOI
10.1038/s41598-025-03033-4
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
5
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-03033-4
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4410595406

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Power transformer plays a crucial role in the power networks. Most of the transformer malfunctions was due to failure in the insulating systems. The utilities keen on the contentious operation of the power network, so early detection of the transformer faults avoiding the undesirable outage of the transformer from the service. The insulating paper state is an indication to the transformer health and aging of it may lead to failure of the transformer, so some periodic and routine test must be performed on the insulting oil to get information about the insulating paper condition. The value of the degree of polymerization (DP) is a key of the insulating paper state. Various recommended tests such as the dissolved gases (DGA), breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)) were carried out to correlate between these variables and the DP and then to the insulating oil state. The collected data from these tests were used to supply XGBoost/LightGBM to build artificial intelligence model to predict the insulating paper state. The results indicated that the great ability of the proposed model to predict the insulating state with high accuracy. Of these various configurations for these two classification models, one achieved perfect prediction accuracy (100%) of the insulating paper state prediction accuracy. The other configurations showed accuracy values from 1.0 down to 0.955.

본문 75,465자

본문 펼치기
## OPEN # Predicting the insulating paper state of the power transformer based on XGBoost/LightGBM models Sherif S. M. Ghoneim <sup>1</sup> , Mohammed Baz <sup>2</sup> , Ali Alzaed <sup>3</sup> & Yohannes Tesfaye Zewdie <sup>4</sup> <sup></sup> Power transformer plays a crucial role in the power networks. Most of the transformer malfunctions was due to failure in the insulating systems. The utilities keen on the contentious operation of the power network, so early detection of the transformer faults avoiding the undesirable outage of the transformer from the service. The insulating paper state is an indication to the transformer health and aging of it may lead to failure of the transformer, so some periodic and routine test must be performed on the insulting oil to get information about the insulating paper condition. The value of the degree of polymerization (DP) is a key of the insulating paper state. Various recommended tests such as the dissolved gases (DGA), breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)) were carried out to correlate between these variables and the DP and then to the insulating oil state. The collected data from these tests were used to supply XGBoost/LightGBM to build artificial intelligence model to predict the insulating paper state. The results indicated that the great ability of the proposed model to predict the insulating state with high accuracy. Of these various configurations for these two classification models, one achieved perfect prediction accuracy (100%) of the insulating paper state prediction accuracy. The other configurations showed accuracy values from 1.0 down to 0.955. Keywords Power transformer, Insulating paper, Insulating oil, Dissolved gas analysis, Furnic compounds, XGBoost/LightGBM For electrical utilities, maintaining a power transformer’s continuous operation is crucial since any transformer malfunction results in a loss of revenue. The majority of transformer malfunctions are due to insulation system damage or failure, which is made up of paper and insulating oil <sup>1–4</sup> . The insulating paper is an essential part of the transformer, and its state can be used as an indicator key for the transformer’s general health <sup>5</sup> . The degree of polymerization (DP) is a measure Explaining the insulating paper’s state. A decrease in the DP refers to the aging of the paper and indicates more degradation of the paper, which leads to a higher failure risk <sup>5–7</sup> . When the insulating paper degrades some chemical computes such as Furfural (2-FAL), carbon monoxide (CO), and Carbon dioxide (CO2) dissolve in the insulating oil, and analyzing these compounds refers to the insulating paper state <sup>8,9</sup> . Other parameters can degrade the insulating paper such as moisture content and the interfacial tension <sup>10,11</sup> . A deep learning-based method for evaluating the aging state of transformers that combines FDS and SE was introduced in <sup>12</sup> . With the ability to automatically extract features, the suggested technique offers an intelligent and autonomous technique for aging oil-immersed cellulose insulation under various moisture circumstances. This study examined the aging characteristics of the transformer’s oil-paper insulation (OPI) system using a thermally accelerated aging experiment. The squeeze-and-excitation-enabled convolutional neural network (SE-CNN) based model takes moisture variation into account and concentrates on pertinent aspects. The approach has been evaluated using a local interpretable model-agnostic explanatory method and contrasted with conventional machine learning models. The findings demonstrate a 99.12% accuracy rate in automatic deep 1Department of Electrical Engineering, College of Engineering, Taif University, Taif 21944, Saudi Arabia. 2Department of Computer Engineering, College of Computers and Information Technology, Taif University, Taif 21944, Saudi Arabia. <sup>3</sup> Architectural Engineering Program - Civil Engineering Department, Faculty of Engineering, Taif University, Taif 21944, Saudi Arabia. <sup>4</sup> Department of Electrical and Computer Engineering, Faculty of Technology, Debre Markos University, P. BOX 269, Debre Markos, Ethiopia. <sup></sup> email: yohannes_tesfaye@dmu.edu.et aging feature extraction and visual evaluation of transformer OPI systems. The study in <sup>13</sup> introduced a review to examine existing assessment techniques and explains how oil-paper insulation deteriorates in contemporary power systems, especially in transformers. It emphasizes the importance of assessing and tracking the insulation condition, especially using the dielectric response technique. A diagnostic method is presented in this work to assess 26 distinct transformers that are currently in use to ascertain their operational state under the CIGRE brochure and the IEC 60599:2022 standard <sup>14</sup> . The method combines visual inspections, dissolved gas analysis (DGA), transformer oil integrity analysis, and two Back Propagation Neural Network (BPNN) algorithms to forecast the transformers’ loss of life (LOL) by monitoring the cellulose paper’s state. In the first BPNN algorithm, the degree of polymerization (DP) is predicted using the 2-Furaldehyde (2-FAL) concentration measured from oil samples using DGA. In the second BPNN algorithm, transformer LOL is forecasted using the 2-FAL and DP data from the first BPNN algorithm. The correlation coefficient was 0.97 between DP and 2 FAL in the first algorithm, which is used as the input to the second algorithm to correlate the relation between LOL and the 2-FAL and DP as the output from the first algorithm. The correlation coefficient of 0.999 was predicted. In <sup>15</sup>, paper insulation is used as a key indicator to continuously monitor transformer health state. it introduced a new artificial intelligence method to estimate the residual life of paper insulation in oil-immersed power transformers. This proposed technique utilized four AI models with backpropagation-based neural networks to predict the lifespan based on four failure indices: degree of polymerization, 2-FAL, CO, and CO2. Each model also incorporates moisture and temperature data, with optimization techniques enhancing performance. This approach accurately predicts the remaining usable life of the paper insulation, allowing utilities to take proactive measures for safe and efficient transformer operation. Gradient boosting machines (GBMs)are used in many scientific areas <sup>16–19</sup> . In the current work, it was used to predict the state of the insulating paper based on various tests made on the oil transformer. These tests the dissolved gases (DGA), breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)). Gradient boosting machines (GBMs) are powerful machine learning algorithms that combine weak learners iteratively to create a strong predictive model. XGBoost and LightGBM are popular and efficient implementations known for their performance and scalability. These algorithms excel at solving structured/tabular data problems and often achieve top results in machine-learning competitions. GBMs work by sequentially building a series of weak learning models (usually decision trees), with each model correcting the errors of the previous one. They optimize the objective function by minimizing the loss between predicted and true values, training each weak learner based on the gradient of this loss function. The advantages of GBMs over the other AI techniques are the ability to provide highly accurate predictions by combining multiple weak learners to form a strong model, work exceptionally well with structured/tabular data, and customize with various loss functions, so it is adaptable to a wide range of tasks, from regression to classification, less prone to overfitting compared to other ensemble methods, especially when combined with techniques like regularization, provide insights into feature importance, helping to understand which features contribute most to the model’s predictions, high efficiency and scalability, making them suitable for large datasets and parallel processing, and achieve top results in machine learning competitions and real-world applications, demonstrating their effectiveness across diverse problem domains. The results indicated that the predictive model using XGBoost/LightGBM can be used with high precision to predict the insulating paper class and it developed with specified model parameters a. (Of these various configurations for these two classification models, one achieved perfect prediction accuracy (100%) of the insulating paper state prediction accuracy. The other configurations showed accuracy values from 1.0 down to 0.955,) The remain section of the article was addressed as follows’ Sect. “Data collection” for the data collection, that was based on real experimental data from the chemical laboratory of Electric Saudi Company, jedda branch. Section "Experimental test devices" illustrated the instrument devices that were used in the laboratory. Section "Model XGBoost/LightGBM" presented the Model XGBoost/LightGBM to build the predictive model for the insulating paper state. Section "Results and discussion" Tackled the results and discussion and finally, the conclusions. Data collection The degree of polymerization (DP) computation relies on various transformer test results to assess its state, particularly during abnormal operations considering different American Society for Testing and materials (AMST) and IEC Standard <sup>20–22</sup> . Tests such as dissolved gas analysis (DGA) for combustible gases (Hydrogen (H2), Methane (CH4), Ethan (C2H6), Ethylene (C2H4), and Acetylene (C2H2)) and oil quality tests (BDV, MC, ACI, IFT, OC, DF, and 2-FAL) are essential. These involve collecting oil samples and conducting chromatographic analysis to detect dissolved gases. High-performance liquid chromatography (HPLC) measures furanic compounds following ASTM D5837 procedures. Water content is determined using the Karl Fischer method with an 899 coulometer device. The Baur oil tester DTL (JCL 003) can be used to assess the dissipation factor. Either the Megger oil tester or the Baur oil tester DPA may perform the breakdown voltage test. The mobility of surfactants based on the dynamic surface tension (SFT) is examined using the Kruss bubble pressure tensiometer BP100. It determines the rate at which surface-active materials, like detergents or wetting agents, reduce SFT to the necessary level. Transformer oil acidity kit can be used to measure oil acidity. Transformer oil’s acidity is expressed in mgKOH/mg. The acidity of the oil results from the production of acidic oxidation products, which, when combined with solid and water impurities, decrease the insulation of the oil. So, low oil acidity is therefore preferred. In this study, a total of 147 oil samples collected from various transformers within the Saudi power networks were utilized to construct the proposed prediction model. Each sample includes comprehensive data from all <u>H2</u> <u>CH4</u> <u>CO</u> <u>CO2</u> <u>C2H4</u> <u>C2H6</u> <u>C2H2</u> <u>BDV</u> <u>MC</u> <u>ACI</u> <u>IFT</u> <u>2 FAL</u> <u>Units</u> <u>ppm</u> <u>kV</u> <u>ppm</u> <u>DF</u> <u>mgKOH/mg</u> <u>mN/m</u> <u>OC</u> <u>ppm</u> <u>DF</u> <u>OC</u> <u>S1</u> <u>95</u> <u>100</u> <u>606</u> <u>3423</u> <u>31</u> <u>300</u> <u>0</u> <u>41</u> <u>19</u> <u>4</u> <u>0.09</u> <u>24</u> <u>3.5</u> <u>0.21</u> <u>S2</u> <u>3</u> <u>4</u> <u>235</u> <u>1957</u> <u>27</u> <u>1</u> <u>0</u> <u>49</u> <u>2</u> <u>1</u> <u>0.01</u> <u>39</u> <u>0.5</u> <u>0.018</u> <u>S3</u> <u>3</u> <u>4</u> <u>242</u> <u>1892</u> <u>28</u> <u>1</u> <u>0</u> <u>34</u> <u>4</u> <u>1</u> <u>0.01</u> <u>39</u> <u>0.5</u> <u>0.013</u> <u>S4</u> <u>25</u> <u>16</u> <u>708</u> <u>3340</u> <u>31</u> <u>8</u> <u>0</u> <u>36</u> <u>4</u> <u>1</u> <u>0.1</u> <u>32</u> <u>2</u> <u>0.221</u> <u>S5</u> <u>11</u> <u>7</u> <u>976</u> <u>6734</u> <u>94</u> <u>3</u> <u>0</u> <u>43</u> <u>7</u> <u>1</u> <u>0.06</u> <u>32</u> <u>1.5</u> <u>0.152</u> <u>S6</u> <u>1</u> <u>29</u> <u>1548</u> <u>9457</u> <u>18</u> <u>5</u> <u>0</u> <u>38</u> <u>6</u> <u>1</u> <u>0.03</u> <u>35</u> <u>1.5</u> <u>0.093</u> <u>S7</u> <u>2</u> <u>5</u> <u>301</u> <u>4181</u> <u>2</u> <u>3</u> <u>0</u> <u>41</u> <u>11</u> <u>5</u> <u>0.21</u> <u>18</u> <u>4.5</u> <u>8.647</u> <u>S8</u> <u>5</u> <u>5</u> <u>362</u> <u>3917</u> <u>3</u> <u>2</u> <u>0</u> <u>48</u> <u>5</u> <u>5</u> <u>0.16</u> <u>21</u> <u>4.5</u> <u>1.754</u> <u>S9</u> <u>8</u> <u>3</u> <u>198</u> <u>2627</u> <u>1</u> <u>1</u> <u>0</u> <u>52</u> <u>8</u> <u>5</u> <u>0.16</u> <u>20</u> <u>4.5</u> <u>4.661</u> <u>S10</u> <u>22</u> <u>1000</u> <u>865</u> <u>5348</u> <u>124</u> <u>81</u> <u>0</u> <u>46</u> <u>3</u> <u>1</u> <u>0.02</u> <u>31</u> <u>1</u> <u>0.094</u> Table 1 . Samples of the testing insulating oils from a chemical laboratory. <u>DP</u> <u>> 600</u> <u>< 600–400</u> <u>< 400–200</u> <u>< 200</u> <u>Class</u> <u>1</u> <u>2</u> <u>3</u> <u>4</u> <u>Description</u> <u>Normal state</u> <u>An increase in the aging rate</u> <u>Te danger zone of excessive aging rateh</u> <u>Failure may be occur</u> Table 2 . Categories of the insulating paper state based on DP value and its description. <u>Category</u> <u>Number of oil Samples in each category</u> <u>1</u> <u>94</u> <u>2</u> <u>11</u> <u>3</u> <u>30</u> <u>4</u> <u>12</u> <u>Total</u> <u>147</u> Table 3 . Distribution data samples according to categories. tests conducted in the chemical laboratory, such as the DGA test, oil quality test, and furan compounds test. Table 1 illustrates the data from some of these collected samples. Table 1 shows some results of the collected data including dissolved gas analysis (DGA) for combustible gases (Hydrogen (H2), Methane (CH4), Ethan (C2H6), Ethylene (C2H4), and Acetylene (C2H2)) and breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (DF) refereeing to (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)).The classification of the insulating paper state was determined based on the degree of polymerization (DP) values, as shown in Table 2. Table 3 illustrates the distribution of the 147 dataset samples that were collected from various transformers. In this table, the distribution of each class can be illustrated as follows: 94 samples were classified as category 1 (normal aging rate), 11 as accelerating aging rate, 30 as excessive aging danger zone, and 12 as high risk of failure. Each class refers to the DP value that was explained in Table 2 <sup>2</sup> . Experimental test devices Gas chromatography (GC) <sup>23,24</sup>, a type of chromatographic analysis, is a very efficient way to determine the dissolved gases in insulating oil. The oil samples are taken from the transformer and transferred in airtight containers to a chemical laboratory to avoid contamination and gas loss. The oil sample is prepared for analysis, so the dissolved gases may need to be released through degassing. Hence, it ensures that all dissolved gases are extracted for measurement. The extracted gases are injected into the gas chromatograph, which comprises a long column filled with a mobile phase (carrier gas) and a stationary phase material. As the gas sample travels through the column, different gas components move at various rates due to their varying affinities for the stationary phase. This separation is based on the unique chemical properties of each gas. Following separation, the gases pass through a detector, which is frequently a flame ionization or thermal conductivity detector. Signals are produced by the detector in proportion to each gas’s concentration. A chromatogram was developed from the detector’s signals, which displays peaks corresponding to different gases. the concentration of each dissolved gas (such as hydrogen, methane, ethylene, ethane, carbon monoxide, and carbon dioxide) is identified by analyzing the retention times and peak areas. The assessment of the transformer condition is known based on the dissolved gases concentrations. The fault type of the transformer can be specified based on the gases’ concentration, these fault types are such as partial discharge, low and high energy discharge, overheating, or insulation degradation. The potent method of high-performance liquid chromatography (HPLC) <sup>25,26</sup> is employed to identify furanic compounds in insulating oil. Furanic compounds are extracted from the oil using a liquid-liquid extraction method with solvents such as acetonitrile. The oil sample is injected into the HPLC system and carried by the mobile phase (a liquid solvent) through the column. The column is packed with a stationary phase, typically a silica-based material. When the sample travels through the column, the furanic compounds interact differently with the stationary phase based on their chemical properties. This differential interaction causes the compounds to separate as they move through the column. The furanic compounds exit the column after separation and pass via a detector, often a diode array detector or a UV-Vis absorbance detector. Each compound’s absorbance at particular wavelengths is used by the detector to determine its concentration. The recorded detector’s signals were analyzed to develop a chromatogram showing peaks to diffident furnic components. The retention time (time taken for a compound to pass through the column) and peak area are used to identify and quantify the compounds. So analyzing the furnic compound concentrations such as 2-furaldehyde, 5-hydroxymethyl-2furaldehyde, and furfuryl alcohol can refer to the degradation of the insulating paper in the transformer. The Karl Fischer method with an 899 coulometer device is a precise technique for determining the water content in insulating oil <sup>27,28</sup> . The oil sample was placed in the titration cell of the 899 coulometers. It uses electrolysis to generate iodine from an iodide-containing reagent. It uses Faraday’s law where the amount of electric charge that passes through the solution is related to the amount of iodine generated. The generated iodine reacts with water in the sample to form hydrogen iodide (HI) and iodide ions (I ⁻ ). The coulometer measures how much electric charge is needed to produce the iodine that must react with all of the sample’s water. The amount of water contained directly correlates with this charge. The water content is calculated based on the measured charge and Faraday’s constant (96485 C/mol). The result is expressed in micrograms or milligrams of water per kilogram of oil. A double platinum wire electrode receives an alternating current to determine the titration’s endpoint voltammetrically. The endpoint is automatically determined and then calculates the water content. This method is highly accurate and can detect water content down to trace levels, making it ideal for assessing the quality of insulating oil in transformers. Under fault conditions, moisture dynamics can analyze how moisture content and its behavior are between the insulating oil and paper in the transformer. It presents clues about the nature and location of the fault inside the transformer, therefore, it is considered one of the transformer health indicators. Moisture tends to reach the equilibrium point between insulating oil and paper under normal operating conditions, which it distributes based on the temperature, where more moisture can be absorbed in oil when temperatures increase. The loss of the insulating papers leads to the loss of moisture from the papers, so more moisture can be noticed in the oil over time. Moisture can migrate from paper to oil due to the change in load cycles and ambient temperature. The Baur oil tester DTL (JCL 003) is an instrument that was used to measure the dissipation factor (tan δ) of insulating oil <sup>5,29</sup> . In the first stage, it must ensure that the oil is free from any contaminants. Then, put the sample in the cell of DTL. So, the sample was heated to a specified temperature (90 <sup>o</sup> c) to meet the standard. Applying alternating AC voltage on the oil, so it induces the electric fields. Then, the device measures the dielectric loss (power loss) in the oil sample, which is related to the dissipation factor. The dissipation factor is calculated as the ratio of the dielectric loss to the capacitance of the oil sample. The value of the dissipation factor refers to the insulating oil condition where A higher dissipation factor indicates higher levels of contamination, oxidation, or aging in the oil, which can affect the transformer’s performance. The breakdown voltage of insulating oil, which shows how long the oil can tolerate electrical stress before failing, is measured using the Baur oil tester DPA <sup>2,10,30</sup> . The oil sample fills into the DPA device’s test cell. The oil sample in the test cell receives an alternating current (AC) voltage from the DPA device. Until the oil breaks down, the voltage is progressively raised. The breakdown voltage, or the voltage at which the oil fails and permits an electrical discharge to flow through, is detected by the device. Poor oil quality is indicated by a decreased breakdown voltage, which may be brought on by oxidation, contaminants, or an excessive water content. The Kruss Bubble Pressure Tensiometer BP100 measures interfacial tension (IFT) by analyzing the mobility of surfactants in a liquid (oil) sample <sup>5</sup> . After inserting the oil sample into the device, the sample was heated to ensure the consistent measurement. Air bubbles are created in the oil sample by the BP100. The dynamic surface tension (SFT) at various surface ages is measured by varying the rate of bubble formation. The device measures the internal pressure of the bubbles by a high-precision sensor, which is related to the interfacial tension of the liquid. The measured pressures are analyzed to identify the IFT as a function of surface age. The results provide the behavior of surfactants and other surface-active substances in the oil. Oil acidity can be measured with a transformer oil acidity kit <sup>2,5,10</sup> . The acidity of transformer oil is measured in mgKOH/mg. The creation of acidic oxidation products causes the oil to become acidic, which reduces the oil’s insulating properties when mixed with solid and water contaminants. Therefore, low oil acidity is favored. Model XGBoost/LightGBM Gradient Boosting Machines (GBMs) was introduced by Jerome H. Friedman <sup>31</sup> as an innovative learning algorithm that can refine and consolidate the knowledge gained from a collection of weak learners (e.g. decision trees, linear regression or logistic regression, or Naive Bayes) to improve the predictive power of the overall models. Inspired by the tremendous benefits offered by the GBM and its underlying approaches, several implementations have been published in the open literature, including Categorical Boosting, Gradient Boosting Machines and HistGradientBoostingClassifier. Nevertheless, XGBoost (Extreme Gradient Boosting) and LightGBM (Light Gradient Boosting Machine) have emerged as leading and widely used GBM algorithms, as they can provide very accurate prediction results with very low computational resources. One of the main reasons for the excellent results of XGBoost and LightGBM is their ability to automatically process noisy and outlier data points without the need for hand-crafted features or hard-coded algorithms. Another important reason is the fact that both XGBoost and LightGBM work with the regularization techniques Least Absolute Shrinkage and Selection Operator (L1) and Least Squares Regression (R2). These operations allow these algorithms to reduce their potential for overfitting and increase the convergence rate of the models to the optimal classification boundaries. Gradient Boosting Machines (GBMs), specifically XGBoost and LightGBM, can be used to diagnose faults in power transformers by predicting the state of the insulating paper based on oil test data. The main differences and potential challenges associated with this approach compared to traditional methods can be summarized as follows: a. Main Differences Compared to Traditional Methods: The traditional methods have relied on manual interpretation of DGA charts, threshold-based rules (like CIGRE and IEC standards), and visual inspections. The proposed methodology in this work offers an intelligent and autonomous technique for fault diagnosis. It uses machine learning to automatically learn complex relationships between various oil parameters and the state of the insulating paper. In addition, Traditional methods might focus on individual parameters or simple ratios. On the other hand, GBMs can consider a wide array of input features simultaneously (dissolved gases, BDV, IFT, acidity, moisture, color, Tan δ, 2-FAL) and capture intricate non-linear interactions between them to make a prediction and distinguish between classes of each sample. While traditional methods were primarily interested in identifying existing faults based on established guidelines, the AI-based approach, especially when combined with time-series data (as hinted at in <sup>15</sup> for residual life prediction), has the potential for predictive maintenance by identifying early indicators of degradation and predicting future states. The 100% accuracy in predicting the insulating paper class suggests a strong diagnostic capability. The heavy-tailed distribution of acetylene and the ability of GBMs to learn complex patterns suggest a potential advantage in diagnosing more sophisticated thermal and electrical defects that might produce unique combinations of dissolved gases and oil property changes that traditional rules might miss or misinterpret. GBMs provide insights into feature importance, allowing utilities to understand which oil parameters are most indicative of the insulating paper’s state. It can help focus monitoring efforts and refine diagnostic strategies, a feature not inherent in standard rule-based systems. b. Potential Challenges for Fault Diagnosis in the Proposed Methodology: The performance of any machine learning model, including XGBoost and LightGBM, is heavily dependent on the quality and representativeness of the training data. If the training data of the model does not adequately cover the full spectrum of possible fault conditions, aging stages, and transformer designs, the model’s accuracy and reliability on unseen data might be compromised. GBMs themselves can be complex “black box” models. Understanding why a particular prediction was made can be challenging, which might hinder trust and acceptance by domain experts who rely on a mechanistic understanding. A model trained on a specific set of transformers and operating conditions might not generalize well to different types, sizes, manufacturers, or operational environments. Retraining or fine-tuning the model with data relevant to the specific fleet of transformers being monitored might be necessary. Implementing this methodology requires a robust infrastructure for regular oil sampling and testing to generate the input data for the models. The frequency and reliability of this data collection process will directly impact the effectiveness of the diagnostic system. Real-world fault data is often imbalanced, with normal operating conditions being far more frequent than severe fault events. Training GBMs on imbalanced data can lead to biased models that perform well on the majority class but poorly on the minority (fault) classes. Specific techniques (e.g., oversampling, undersampling, cost-sensitive learning) might be needed. Successfully deploying this AI-based methodology requires seamless integration with existing data management systems, monitoring platforms, and maintenance workflows within the electrical utility. This can involve overcoming technical and organizational hurdles. While XGBoost and LightGBM are efficient, deploying and running these models, especially for a large fleet of transformers with frequent data updates, might require significant computational resources. Therefore, the proposed GBM-based methodology offers significant advantages in terms of automation, holistic analysis, and predictive capabilities for transformer fault diagnosis. However, challenges related to data dependency, interpretability, generalizability, infrastructure requirements, data imbalance, model maintenance, integration, and computational resources need to be carefully addressed for successful implementation in real-world electrical utility settings. XGBoost and LightGBM can be effectively employed to overcome many of the challenges associated with building a robust and practical fault diagnosis system for power transformers based on oil analysis using some features and strategies, such as regularization parameters that help prevent overfitting to noisy or limited datasets, using cross-validation technique, handle missing data directly without requiring imputation, controlling the complexity of the individual decision trees, and providing insights into which features are most important for prediction. To formally explain the underlying approach of the XGBoost and LightGBM model in the context of this paper, let _D_ = _{_ ( _xi, yi_ ) _}i_ <sup>_n_</sup> =1 <sup>be the data set consisting of the measured values of the electrical transformers and</sup> their desired outputs. Where n is the number of samples of this data set, _xi_ _∈_ _R_ <sup>_d_</sup> are the feature vectors of the _i_ <sup>th</sup> instances input to the model, and _yi_ is the corresponding class of, _xi_, 1 _≤_ _i < n_ The ultimate goal of the XGBoost and LightGBM models is to construct the gradient boosting _F_ ( _x_ ) that can approximate the classes of a given input as accurately as possible. Typically, these models use the differentiable loss function _L_ ( _y, F_ ( _x_ )), which can be defined based on the learning objectives. In the case of regression, for example, the mean square error can be used, while in the case where the learning objective is to classify the given input, the loss function cross entropy can be used. _F_ ( _x_ ) can be expressed in terms of the output of the _M_ weak learners as follows <sup>32,33</sup>, : _F_ ( _x_ ) = _m_ =1 <sup>_η fm_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> (1) <u>∑</u> _M_ where _η_ is a learning rate that controls the contribution of each tree. it is of interesting to note that this equation ensures that each weak learner can correct the residual errors generated by its predecessors, which in turn leads to an improvement in the overall model accuracy. At each iteration _m_, the algorithm fits a new tree _fm_ ​ to the negative gradient of the loss function, known as the pseudo-residuals <sup>31</sup> : (2) _ri,m_ = _−_ <sup>_<u>∂L</u>_</sup> <sup><u>(</u></sup> <sup>_<u>yi, Fm−</u>_</sup> <sup><u>1 (</u></sup> <sup>_<u>xi</u>_</sup> <sup><u>))</u></sup> _∂Fm−_ 1 ( _xi_ <u>)</u> For classification tasks, the final output _F_ ( _x_ ) is transformed via a link function (e.g., sigmoid or softmax) to generate class probabilities. This iterative refinement allows gradient boosting to adaptively focus on challenging samples, progressively reducing bias and variance. XGBoost distinguishes itself from classical gradient boosting through systematic regularization and computational optimizations. The framework introduces a penalized objective function that combines loss and regularization terms: <sup><u>1</u></sup> <u>2</u> <sup>_λ |wm|_</sup> <sup>2)</sup> (3) _m_ ∑ _M_ Obj = _i_ ∑ _n_ _i_ =1 <sup>_L_</sup> <sup>(</sup> <sup>_yi, F_</sup> <sup>(</sup> <sup>_xi_</sup> <sup>)) +</sup> _m_ =1 ( _γ Tm_ + <sup><u>1</u></sup> <u>2</u> where _Tm_ ​ is the number of leaves in the _m_ -th tree, _wm_ are the leaf weights, and _γ_, _λ_ are hyperparameters that penalize model complexity? This regularization combats overfitting, enabling XGBoost to generalize well even with high-dimensional data. A key innovation in XGBoost is its use of second-order Taylor approximations to accelerate convergence. By incorporating the second derivative _hi_ = _∂F∂_ <sup>2</sup> <sup>~~2~~</sup> _<u>L</u>_ _m_ algorithm refines the gain calculation for tree splits: <sup>2</sup> _<u>L</u>_ <sup>~~2~~</sup> _m−_ 1 <sup>(</sup> <sup>_xi_</sup> <sup>) of the loss function, the</sup> _<u>G</u>_ <sup>2</sup> _<u>R</u>_ <u>(</u> _<u>GL</u>_ <u>+</u> _<u>GR</u>_ <u>)</u> <sup>2</sup> _HR_ <u>+</u> _λ_ <sup>_−_</sup> _HL_ <u>+</u> _HR_ <u>+</u> _λ_ _HL_ <u>+</u> _HR_ <u>+</u> _λ_ Gain = <sup><u>1</u></sup> <u>2</u> [ _HLG_ <u>+</u> <sup>2</sup> _<u>L λ</u>_ <sup>+</sup> _<u>G</u>_ <sup>2</sup> _<u>R</u>_ _HR_ <u>+</u> _<u>G</u>_ <sup>2</sup> _<u>L</u>_ ] _−_ _γ_ (4) where _GL_, _GR_ and _HL_, _HR_ ​ are the sums of gradients and Hessians for the left and right child nodes, respectively. This approach not only improves the quality of splits but also reduces the computational burden of exhaustive search procedures. LightGBM was developed by Microsoft and solves the problems of scalability with large data sets using two pioneering techniques: Gradient-Based One-Side Sampling (GOSS) and Exclusive Feature Bundling (EFB). GOSS prioritizes instances with large gradients (i.e., inadequately matched samples), while instances with smaller gradients are randomly included in the sample, reducing the training set size without significant loss of accuracy. To mitigate bias, the gradients of samples with low significance are scaled by a factor of _a_ and _b_ represent the sampling ratios for high- and low-gradient samples. Exclusive feature bundling (EFB): <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> _b_ <sup>_<u>a</u>_</sup> where Bundles mutually exclusive features — those that rarely take non-zero values at the same time — into composite features, significantly reducing dimensionality in sparse datasets. In contrast to XGBoost, which uses a stepwise tree growth strategy, LightGBM uses a leaf-by-leaf strategy, where the node with the highest information gain is expanded first. This approach allows for deeper trees and faster convergence but may require additional regularization to prevent overfitting <sup>33</sup> . it is worth talking about how the XGBoost and LightGBM algorithms differ from other AI algorithms. Random forests, for example, construct decision trees using bootstrap sampling and majority voting, which prevents overfitting by reducing variance. However, they lack the iterative error correction mechanism of boosting. Gradient boosting models refine the predictions sequentially and often achieve higher accuracy, but at the cost of higher sensitivity to hyperparameter adjustments. While neural networks are excellent for highdimensional, unstructured data (e.g., images, text) because they learn hierarchical representations through backpropagation, they require extensive computational resources and large data sets to avoid overfitting. In contrast, gradient boosting frameworks dominate applications for structured data due to their faster training times, inherent interpretability and superior performance on smaller datasets <sup>34</sup> . Support vector machines (SVMs) use kernel methods to map data into high-dimensional spaces to improve separability, but scale poorly with dataset size. XGBoost and LightGBM are computationally efficient, inherently able to handle missing data, and adapt seamlessly to distributed computing environments, making them preferable for large-scale learning tasks. Although both XGBoost and LightGBM are based on gradient boosting, their architectural differences lead to significant differences in performance. In the type of tree growth strategy: XGBoost grows trees incrementally to ensure balanced structures, while LightGBM takes a leaf-by-leaf approach that focuses on local profit maximization. Feature treatment: LightGBM inherently supports categorical features through optimal partitioning, while XGBoost requires one-hot coding or ordinal transformation. In terms of computational efficiency, empirical benchmarks show that LightGBM achieves 2–10x faster training times and better memory efficiency on large datasets <sup>35</sup> . However, XGBoost provides finer control over regularization and hyperparameter tuning, making it preferable in situations that require high interpretability or generalization control. Results and discussion Heatmap To gain a quantitative insight into the relationships between the different factors influencing the diagnosis of transformer faults, the correlation between all explanatory variables in the data set was calculated and plotted in the heatmap in Fig. 1. In general, it can be seen that the degrees of correlation between the variables do not follow a consistent pattern, as some variables, such as IFT and colors, have a high negative correlation or a value of 0.86, while the correlation between BDV and monoxide is approximately negligible. Such a discrepancy in correlation values confirms the complex interactions between these variables and their contribution to health. For example, it can be seen that the color variables have the highest overall correlation with several variables, including acidity (0.77), IFT (−0.86), water (0.60) and 2-FAL (0.57). This in turn makes the color of the oil a diagnostic indicator of the overall aging condition of transformers and can therefore serve as a key feature for prediction in an AI model. From a physical and chemical point of view, the high correlation of the gas color with other values is due to the fact that the chemical reactions that take place in the transformer shaft lead to a discoloration of the oil. Figure 1 shows that acetylene (C₂H₂) has a consistently low correlation rate for most characteristics. This can be explained by the fact that acetylene is mainly formed during high-energy electrical faults such as arcs and heavy discharges in the transformer, while other gasses such as methane, ethylene and hydrogen are formed at different thermal and electrical voltages. Due to these different generation conditions, the correlation of acetylene with other gasses is low. However, the presence of this gas in the measured values is also an indication of the extreme generation conditions to which the transformer was exposed. From the perspective of the usability of these elements in the machine learning model, their use can improve the predictive ability of the model by refining the classification boundaries. Histograms The correlation heatmap presented in the previous subsection provides a comprehensive understanding of the interactions between the different predictive features. We are now interested in examining the characteristics of each individual feature. To this end, the distribution of all 13 features was calculated and then presented in Fig. 2. From this figure, it can be seen that the distribution of gas resolutions such as hydrogen (H₂), methane (CH₄), ethylene (C₂H₄), ethane (C₂H₆), carbon monoxide (CO) and carbon dioxide (CO₂) are highly right skewed distributions. This highly tail-heavy distribution indicates that the majority of transformer samples contain low concentrations of these gasses, while a few samples contain much higher values. This can be explained by Fig. 1 . The correlation matrix Heatmap of predictive elements of the dataset. the fact that these gasses tend to form rather stably and slowly under normal operating conditions and their concentration can therefore vary from case to case, albeit only slightly. However, if we compare the histogram of the concentrations of these gasses with the corresponding values for acetylene, we see that the tail of the distribution of this gas is higher than the tails of the other distributions. This is consistent with the results of the heat map, which shows the low correlation of acetylene with other gasses, which is due to the natural origin of the gas. Figure 2 also shows that some parameters such as water content, acidity and interfacial tension (IFT) follow a non-uniform distribution where the low values occur with greater frequency. These characteristics can be attributed to the effects of the oxidation and hydrolysis processes, which can lead to a sudden deterioration of the insulation, which in turn is reflected in a higher frequency of the measured values of the parameters contributing to these processes. In addition, the high variability of the IFT distributions shows the differences in the degree of aging of the different transformers considered in this study. Interestingly, when interpreting the distribution of IFT with its correlation from Fig. 1, it becomes clear that a sharp decrease in IFT is usually accompanied by an increase in contamination of the insulating oil, which typically leads to reduced dielectric strength and accelerates the overall failure of the insulation. The distribution of breakdown voltage (BDV) as shown in its histogram shows an interesting characteristic, namely an almost symmetrical distribution with moderate values in the middle areas. This characteristic reflects an almost stable dielectric strength over different measured values of the investigated transformers. Nevertheless, the presence of lower BDV values in non-critical cases may indicate an earlier degradation of the oil in the transformer. Further evidence of this is the correlation of BDV with water content and acidity, as can be seen in the correlation matrix in Fig. 1. It is interesting to note that the distributions of the predicted values together with the correlation heatmap show the coherence of the dataset for the different aging phases of the transformers, which should improve the learning ability of the models during the training phases and thus the generalizability of their findings during the test phase. Boxplots A collection of boxplots as in Fig. 3 provides a differentiated insight into the distribution of the different parameters across the different classes within the dataset, which are likely related to the oil and gas samples. Hydrogen content shows remarkable variability between classes. Class 3, for example, has a greater dispersion and a higher median value compared to the other classes, indicating greater variability and potentially higher hydrogen concentrations in this class. This could indicate differences in the origin or processing of the samples within this class. Methane concentrations appear to be relatively consistent across all classes, with similar median values and interquartile ranges. However, there are some outliers in Class 1 with higher methane levels Fig. 2 . The histogram of the predictive variables. that may warrant further investigation. This could indicate that certain samples within Class 1 have unique characteristics or have been subjected to different processes. Monoxides and dioxides show different patterns in the different classes. Class 2 has higher median values and greater dispersion for both variables, indicating greater variability and potentially higher concentrations in this class. This could be related to differences in combustion or chemical reactions within this class. Ethylene concentrations are relatively uniform across all classes, with comparable median values and scatter. Class 3, however, shows some outliers with higher ethylene concentrations. In contrast, Ethane shows greater variability between classes, with class 2 having a higher median and greater dispersion. These differences could reflect variations in the composition of the hydrocarbon mixture or different formation mechanisms in the different classes. Acetylene levels are generally low in all classes, with most data points at the lower end. However, Class 3 stands out with a significantly higher median value and greater dispersion, indicating greater variability and possibly higher acetylene concentrations in this class. This could be due to specific reactions or processes that occur predominantly in this class. The BDV, water, acidity, IFT, color, and 2-FAL show different patterns in the different classes. BDV shows different median values and scatter for the different classes, indicating variations in degradation characteristics. Water and acidity are generally higher in class 2, while IFT and color show less pronounced differences between classes. 2-FAL, which may be related to microbial activity, has higher levels in class 3, which could indicate more microbial contamination in this class. The boxplots also show possible correlations between variables within specific classes. For example, in class 2, where water and acidity are higher, we might expect correlations between these variables, as suggested by the heat map. Similarly, in class 3, the higher levels of 2-FAL and acetylene could be related, possibly indicating specific microbial processes or reactions. Implementation details The algorithms were implemented on a state-of-the-art workstation equipped with an AMD Ryzen Threadripper PRO 5995 WX CPU with 64 cores and 128 threads, 256 GB DDR4 memory and running the Ubuntu 22.04 LTS operating system. Python 3.9 was used in the software environment together with the following important libraries: xgboost 1.7.0, lightgbm 3.3.5 and scikit-learn 1.2.2. An NVIDIA GeForce RTX 4090 GPU with 24 GB GDDR6X memory was used to accelerate the model training. The XGBoost and LightGBM models were trained and evaluated using a comprehensive grid search approach to optimize the hyperparameters. The XGBoost models examined max_depth values between 3 and 7, learning_rate values between 0.05 and 0.2 and n_estimators values of 100, 150 and 200. The LightGBM models were similarly configured with the same range of hyperparameter values. The dataset was splitting to training and testing subsets using split ratio of 70:30 and the accuracy, precision, recall and F1 is used to evaluate the performance of the proposed models. Learning patterns of the models Figure 4 illustrates the training dynamics of XGBoost and LightGBM models under different hyperparameter configurations. The normalized error curves plotted against the number of epochs provide important insights into the behavior of these algorithms and the impact of the hyperparameter setting on model performance. Figure 4 illustrates the normalized error versus epochs for all XGBoost and LightGBM models under different configurations. They show a robust and stable trend as the normalized error values start at 1 at the beginning of the training phase (epoch number 1) and then decrease exponentially as more epochs pass until they are at low normalized errors at the end of the training phase (epoch number 100). This monotonic decrease of the normalized errors over the epochs confirms the good learning ability of the XGBoost and LightGBM methods and their suitability for predicting the aging behavior of electrical transformers. However, this figure also shows that some error curves such as those of XGBoost with _max_ _ _depth_ : 3, _learning_ _ _rate_ : 0.2, _n_ _ _estimators_ : 150 (orange curve) and the LightGBM with _max_ _ _depth_ : 3, _learning_ _ _rate_ : 0.2, _n_ _ _estimators_ : 150 (brown curve) suffer from strong fluctuations. These fluctuations can be interpreted in the light of their hyperparameters. For example, it can be seen that the learning rate of these two models was set to 0.2, the highest value used in this evaluation. Using a high learning rate forces the model to aggressively update its learnable parameters at each training epoch, which in turn increases the likelihood that the model will overshoot the range of optimal representation of the datasets. This overshooting manifest itself in “jumps that bounce back and forth” during different learning epochs, resulting in an unstable learning pattern. It is interesting to discuss the fluctuation characteristics of these two models from the perspective of their decision tree. As you can see in Fig. 4, the maximum depth of the decision tree of these two models is fixed at 3. While reducing the depth of the model may decrease its ability to capture more complex relationships and dependencies in the dataset, it also makes the model more susceptible to instability in loss reduction across epochs. Further confirmation of the above can be seen by comparing the error curves of those curves that have low learning rates or a larger number of decision trees, for example XGBoost ( _max_ _ _depth_ : 5 _,_ _learning_ _ _rate_ : 0 _._ 05 _,_ _n_ _ _estimators_ : 100) (green curve), LightGBM ( _max_ _ _depth_ : 7 _,_ _learning_ _ _rate_ : 0 _._ 1 _,_ _n_ _ _estimators_ : 150) (gray curve) and LightGBM ( _max_ _ _depth_ : 3 _,_ _learning_ _ _rate_ : 0 _._ 1 _,_ _n_ _ _estimators_ : 100) (brown curve). These curves show lower fluctuations in their learning curves, which is due to the ability of the lower learning rate to stabilize the gradient boosting process used by both the XGBoost and LightGBM models, i.e. each instance of the new learners corrects the errors generated by the previous decision tree, which in turn leads to a reduction in the fluctuation of the learning ability of these models. The effects of the maximum depth hyperparameters on the normalized error curves at lower learning rates can also be explained from the perspective of the way XGBoost and LightGBM constructed the learning graphs. For example, it can be seen that using the leaf-wise tree partitioning approach in the LightGBM-based model tends to have slightly more unstable loss curves compared to XGBoost, which uses the depth-wise tree growth approach. In addition, the models characterized by low fluctuation have some common Fig. 3 . A boxplots of the distribution of the predictive variables within the dataset. hyperparameters, such as a larger number of decision tree depths or a smaller number of estimates. For example, the following model XGBoost ( _max_ _ _depth_ : 7 _,_ _learning_ _ _rate_ : 0 _._ 1 _,_ _n_ _ _estimators_ : 150) (blue curve) LightGBM ( _max_ _ _depth_ : 7 _,_ _learning_ _ _rate_ : 0 _._ 1 _,_ _n_ _ _estimators_ : 100) (pink curve) LightGBM ( _max_ _ _depth_ : 3 _,_ _learning_ _ _rate_ : 0 _._ 1 _,_ _n_ _ _estimators_ : 100) (purple curve). The use of such Fig. 4 . Learnability characteristics of the proposed models under different hyperparameters. hyperparameters indeed leads to a simpler model architecture that can learn faster and implement its findings effectively for unseen patterns, which in turn translates into a low fluctuation error curve. The results presented in the figure show how important it is to select the hyperparameters of the approach according to the type of dataset in order to achieve stable learning characteristics. As shown in the previous subsection, the dataset exhibits strong correlations, so simpler models with moderate learning rates may be more effective in capturing the salient features of the dataset. Confusion matrix The previous subsection provides a comprehensive evaluation of the proposed model and the underlying datasets from different perspectives. These evaluations demonstrate the effectiveness of the XGBoost and LightGBM models and their suitability for learning from the datasets. Here, it is time to evaluate the extent to which these models are able to accurately classify the dataset. To this end, the true/false positive/negative values of the eight models considered in the previous subsections were calculated, and the confusion matrix corresponding to these models is shown in Fig. 5. From these figures, it can be seen that the XGBoost and LightGBM models can provide an accurate classification for different types of transformer aging phases under different hyperparameters. This is evident from the darkness of the diagonals of the confusion matrices and the high value they have compared to other cells. However, the variations in the off-diagonal elements illustrate the influence of the hyperparameters on the specific types and frequencies of misclassifications. The hyperparameters of the models primarily include the learning rate, the confusion matrices illustrate the trade-off associated with the learning rate. Although higher learning rates potentially lead to faster convergence, they can also lead to more instability and misclassifications. This is evident in the XGBoost model with a learning rate of 0.2, where a higher number of off-of-corner entries means more prediction errors compared to models with lower learning rates. Model complexity (max_depth), increasing the model complexity generally leads to fewer misclassifications as the model can capture more complicated relationships in the data. However, excessive complexity can lead to overfitting, where the model performs well on the training data but poorly on the unseen data. This trend is subtly reflected in the XGBoost models. Increasing max_depth from 3 to 7 initially reduces misclassifications, but eventually leads to a plateau, indicating a possible limit of complexity beyond which overfitting may occur. Number of estimators (n_estimators), The effects of increasing the number of estimators appear to be less pronounced in these matrices. This suggests that within the tested range, adding more estimators does not significantly change the classification patterns. However, it is important to note that this observation may be specific to this data set and the hyperparameter ranges chosen. Fig. 5 . A confusion matrices of the proposed model under different configurations. It can also be shown that LightGBM performs consistently well across different configurations with minimal misclassification. This is consistent with its reputation as an efficient and robust model, especially when processing complex datasets. the analysis of the behavior of the XGBoost-based model shows that they can provide good classification accuracy for different types of transformer aging phenomena. However, it also shows that these models are very sensitive to the value of their hyperparameters. This becomes clear when comparing the classification performance of the XGBoost model under different learning rates and max_depth. It can also be seen that the LightGBM model with max_depth: 3, learning_rate: 0.2, and n_estimators: 150 offers an almost Figure 5. (continued) perfect classification performance compared to all other models. This can be attributed to the fact that LightGBM uses the leaf-wise tree growth approach, which can make the learning process more fine-grained compared to the depth-wise tree growth approach of the XGBoost algorithm. It can also be seen that the model considered above achieves a good balance between the learning rate and the depth of the network, which is of great importance for ensuring stable learning characteristics as described in the previous subsections. A comparison with the classification performance of the XGBoost-based models shows that setting the max_ _depth_ to 7 in this algorithm increases the misclassification between certain classes. This can be attributed to the fact that the dataset used in this work has a higher dependency, as can be seen from the correlation heatmap, which in turn requires a simpler architecture. in conclusion it can be seen that LightGBM generally offers faster convergence and robustness, while XGBoost offers flexibility in controlling model complexity. Table 4, summarizes the key characteristics of each model during the training and test phase along with their performance metrics. Conclusions The results of applying the suggested model XGBoost and LightGBM on determining the Transformer state based on various test on the insulating oil and paper indicated the following; - The correlation matrix shows a strong positive correlation between water content and acidity, indicating water’s importance in preventing corrosion. A moderately positive correlation exists between water content and 2-FAL, and a strong negative correlation between IFT and color. - A right-skewed distribution of various parameters, such as hydrogen, methane, monoxide, dioxide, ethylene, acetylene, BDV, water, acidity, IFT, color, and 2-FAL was concluded. The hydrogen and methane distributions are symmetrical, suggesting homogeneous processing conditions. The monoxide and dioxide distributions are right-skewed, suggesting lower concentrations are more common. Ethylene and ethane distributions are different, with ethylene showing a more even distribution and ethane showing a right-skewed distribution. The heavy-tailed distribution of acetylene shows the important role it could play in determining the perfect classes, as it serves as a discriminator for more sophisticated thermal and electrical defects. - The large differences in the prediction variables between the various classes reflect the different degradation patterns and fault characteristics of the various transformer groups. Class 3 transformers, for example, exhibit severe degradation, which is reflected in a high dispersion of values for chemical elements produced by electrical discharges and overheating, such as hydrogen and ethylene. In addition, the high value of the BDV and 2-FAL values can be used to emphasize the high degree of degradation of the insulation and oil of the transformers, which in turn exposes these elements to the highest risk of failure. Class 2 transformers show significant insulation degradation, as the CO and CO₂ values are much higher than the others. These elements are used as indicators of prolonged thermal and oxidative stress, while the increased acidity, IFT and water content of this class indicate progressive aging, which in turn can be used as an early warning system for those transformers that require close monitoring. Finally, it can be seen that Class 1 transformers remain relatively stable as their predicted values have a low dispersion compared to other classes. However, it is important to point out that the sharp rise and fall in methane levels occasionally highlights the potential risk levels, which can serve as a basis for determining the need for preventive maintenance of these transformers within this class in order to extend their service life. - The learning behavior of the XGBoost and LightGBM models is influenced by the way these models build the decision trees and the values of their hyperparameters. In general, LightGBM shows faster convergence at earlier training epochs, while XGBoost takes more time to converge to similar predicted values. However, the XGBoost models show a more stable learning curve after reaching the same learning values. This can be seen as a direct consequence of using different methods to create the decision trees. In addition, the signif <u>Model Type</u> <u>Hyperparameters</u> <u>Label in Fig. 5</u> max_depth = 3, learning_rate = 0.1, XGBoost (a) n_estimators = 100 Performance Metrics <u>(Testing phase)</u> <u>Remarks</u> Accuracy: 0.9779 Precision: 0.9780 Recall: 0.9779 <u>F1-score: 0.9778</u> Accuracy: 0.9979 Precision: 0.9980 Recall: 0.9779 F1-score: 0.9779 Accuracy: 0.9524 Precision: 0.9530 Recall: 0.9524 <u>F1-score: 0.9524</u> Accuracy: 0.9715 Precision: 0.9616 Recall: 0.9735 <u>F1-score: 0.9745</u> Accuracy: 0.9660 Precision: 0.9661 Recall: 0.9660 <u>F1-score: 0.9660</u> Accuracy: 0.9881 Precision: 0.9882 Recall: 0.9881 <u>F1-score: 0.9881</u> Accuracy: 1.000 Precision: 1.000 Recall: 1.000 F1-score: 1.000 Accuracy: 0.9915 Precision: 0.9915 Recall: 0.9915 F1-score: 0.9915 Low fluctuations during the training phase and high consistent accuracy during the testing phase. Stable and gradual error reduction during the training phase and minimal misclassifications in the testing phase, the lower F1-score can <u>be due to the recall imbalance.</u> Strong fluctuations due to high learning rate during the training phase and lower accuracy frequent <u>misclassifications.</u> Fast convergence during the earlier phase of training and then plateauing. moderating accuracy but <u>overftting signs in confusion matrix.i</u> More stable learning curves during the learning phase but with moderate accuracy in the testing <u>phase.</u> Moderate fluctuations in the training phase and good classification performance in testing phase. Despite the early fluctuations in the learning curves, the model exhibited more stabilizes later during the training phase which in turn leads to <u>p</u> <u>erfect accuracy in the testing phase</u> Smooth reduction in the normalized error curves without a major plateau during the training phase and r obust classification performance during <u>the testing phase.</u> XGBoost XGBoost XGBoost LightGBM max_depth = 5, learning_rate = 0.05, n_estimators = 100 max_depth = 3, learning_rate = 0.2, n_estimators = 150 max_depth = 7, learning_rate = 0.1, n_estimators = 150 max_depth = 3, learning_rate = 0.1, n_estimators = 100 (b) (c) (d) (e) max_depth = 5, learning_rate = 0.05, LightGBM (f) n_estimators = 100 max_depth = 3, learning_rate = 0.2, LightGBM (g) n_estimators = 150 LightGBM max_depth = 7, learning_rate = 0.1, n_estimators = 150 (h) Table 4 . Summarization of the main characteristics of the models during the training and testing phases. icant effects of the main hyperparetmers such as learning rate, model complexity and number of estimators are clearly visible in the performance evaluation performed for different confirmations. LightGBM maintains a stable balance between plasticity and variance, while XGBoost exhibits high generalizability. However, the results of this work show that both models achieve high classification accuracy under different configurations. - Finally, the suggest models have a great ability to predict the insulating paper class based on the various data from the specified tests, which carried out on the insulating oil as in Fig. 5 g. - LightGBM showed faster convergence than XGBoost at earlier training epochs, suggesting it might be more computationally efficient in terms of the time required to reach a certain level of performance. Both models achieve high classification accuracy under different configurations, suggesting they are both efficient in terms of achieving the desired outcome (accurate prediction). LightGBM maintains a stable balance between plasticity and variance, while XGBoost exhibits high generalizability. These relate to how efficiently the models learn and perform on unseen data. So, both XGBoost and LightGBM are considered efficient in terms of their primary goal as accurately classifying the transformer state. Data availability The datasets used and/or analyzed during the current study are available from the corresponding author upon reasonable request. Received: 22 March 2025; Accepted: 19 May 2025 References 1. Saeid, M., Zeinoddini-Meymand, H., Kamel, S. & Khan, B. Interaction of transformer oil parameters on each other and on transformer health index using curve Estimation regression method. _Int. Trans. Electr. Energy Syst._ 2022 [, 1–14. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​](https://doi.org/10.1155/2022/7548533) [1​1​5​5​/​2​0​2​2​/​7​5​4​8​5​3​3 (2022).](https://doi.org/10.1155/2022/7548533) ​ 2. Ghoneim, S. S. M. Identification of power transformer insulating paper’s state based on principal component analysis. _Int. J. Electr._ _Eng. Inf._ 14 [(4), 770–781. https://doi.org/10.15676/ijeei.2022.14.4.3 (2022).](https://doi.org/10.15676/ijeei.2022.14.4.3) 3. Adekunle, A. A., Fofana, I., Picher, P., Rodriguez-Celis, E. M. & Arroyo-Fernandez, O. H. Analyzing transformer insulation paper prognostics and health management: A modeling framework perspective. _IEEE Access._ 12 [, 58349–58377. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​1​0​9​/​](https://doi.org/10.1109/access.2024.3391823) [a​c​c​e​s​s​.​2​0​2​4​.​3​3​9​1​8​2​3 (2024).](https://doi.org/10.1109/access.2024.3391823) ​ 4. Zahra, S. T., Imdad, S. K., Khan, S., Khalid, S. & Baig, N. A. Power transformer health index and life span assessment: A comprehensive review of conventional and machine learning based approaches. _Eng. Appl. Artif. Intell._ 139 [, 109474. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​](https://doi.org/10.1016/j.engappai.2024.109474) [g​/​1​0​.​1​0​1​6​/​j​.​e​n​g​a​p​p​a​i​.​2​0​2​4​.​1​0​9​4​7​4 (2024).](https://doi.org/10.1016/j.engappai.2024.109474) ​ 5. Ghoneim, S. S. M. Determination of Transformers’ insulating paper state based on classification techniques. _Processes_ 9 (3), 427. [https://doi.org/10.3390/pr9030427 (2021).](https://doi.org/10.3390/pr9030427) 6. Taha, I. B. M. Power Transformers health index enhancement based on convolutional neural network after applying Imbalanced Data oversampling. _Electronics_ 12 [, 2405. https://doi.org/10.3390/electronics12112405 (2023).](https://doi.org/10.3390/electronics12112405) 7. Soni, R. Bhinal Mehta Evaluation of power transformer health analysis by internal fault criticalities to prevent premature failure [using statistical data analytics approach, Engineering Failure Analysis, Volume 136, 2022, 106213, (2022). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​](https://doi.org/10.1016/j.engfailanal.2022.106213) [/​j​.​e​n​g​f​a​i​l​a​n​a​l​.​2​0​2​2​.​1​0​6​2​1​3](https://doi.org/10.1016/j.engfailanal.2022.106213) ​ 8. Zhang, E. et al. Aging state assessment of transformer cellulosic paper insulation using multivariate chemical indicators. _Cellulose_ 28 [(4), 2445–2460. https://doi.org/10.1007/s10570-021-03683-3 (2021).](https://doi.org/10.1007/s10570-021-03683-3) 9. Rediansyah, D., Prasojo, R. A., Abu-Siada, A. & Suwarno, & Artificial Intelligence-Based power transformer health index for handling data uncertainty. _IEEE Access._ 9 [, 150637–150648. https://doi.org/10.1109/access.2021.3125379 (2021).](https://doi.org/10.1109/access.2021.3125379) 10. Ghoneim, S. S. M. The degree of polymerization in a prediction model of insulating paper and the remaining life of power Transformers. _Energies_ 14 [(3), 670. https://doi.org/10.3390/en14030670 (2021a).](https://doi.org/10.3390/en14030670) 11. Liu, X., Xie, J., Luo, Y. & Yang, D. A novel power transformer fault diagnosis method based on data augmentation for KPCA and deep residual network. _Energy Rep._ 9 [, 620–627. https://doi.org/10.1016/j.egyr.2023.04.279 (2023).](https://doi.org/10.1016/j.egyr.2023.04.279) 12. Vatsa, A. & Hati, A. S. Insulation aging condition assessment of transformer in the visual domain based on SE-CNN. _Eng. Appl._ _Artif. Intell._ 128 [, 107409. https://doi.org/10.1016/j.engappai.2023.107409 (2023).](https://doi.org/10.1016/j.engappai.2023.107409) 13. Jiang, Z. et al. Research progress and prospect of condition assessment techniques for Oil–Paper insulation used in power systems: A review. _Energies_ 17 [(9), 2089. https://doi.org/10.3390/en17092089 (2024).](https://doi.org/10.3390/en17092089) 14. Ngwenyama, M. K. & Gitau, M. N. Application of back propagation neural network in complex diagnostics and forecasting loss of life of cellulose paper insulation in oil-immersed Transformers. _Sci. Rep._ 14 [(1). https://doi.org/10.1038/s41598-024-56598-x](https://doi.org/10.1038/s41598-024-56598-x) (2024). 15. Nezami, M. M. et al. A novel artificial neural network approach for residual life Estimation of paper insulation in oil-immersed power Transformers. _IET Electr. Power Appl._ 18 [(4), 477–488. https://doi.org/10.1049/elp2.12407 (2023).](https://doi.org/10.1049/elp2.12407) 16. Airlangga, G. & Liu, A. A hybrid gradient boosting and neural network model for predicting urban happiness: integrating ensemble learning with deep representation for enhanced accuracy. _Mach. Learn. Knowl. Extr._ 7 [(1), 4. https://doi.org/10.3390/make7010004](https://doi.org/10.3390/make7010004) (2025). 17. Bakkouri, S., Bakkouri, I. & Elyousfi, A. GBM-QTMT: gradient boosting Machine-based fast QTMT partition decision for VVC inter-coding. _Signal. Image Video Process._ 19 [(1). https://doi.org/10.1007/s11760-024-03780-3 (2025).](https://doi.org/10.1007/s11760-024-03780-3) 18. Nikzad, M. H., Heidari-Rarani, M., Rasti, R. & Sareh, P. Machine learning-driven prediction of tensile strength in 3D-printed PLA parts. _Expert Syst. Appl._ [125836. https://doi.org/10.1016/j.eswa.2024.125836 (2024).](https://doi.org/10.1016/j.eswa.2024.125836) 19. Sonthalia, A., Js, F. J., Aloui, F. & Varuvel, E. G. Evaluating the effectiveness of boosting and bagging ensemble techniques in forecasting Lithium-Ion battery useful life. _Energy Storage_ . 7 [(1). https://doi.org/10.1002/est2.70118 (2025).](https://doi.org/10.1002/est2.70118) 20. IEC Publication 60567, Guide for the Sampling of Gases and Oil from Oil-Filled Electrical Equipment and for the Analysis of Free and Dissolved Gases. Geneva, Switzerland. (1992). 21. ASTM. D3612-2 Standard Test Method for Analysis of Gases Dissolved in Electrical Insulating Oil by Gas Chromatography; (2017). 22. ASTM. D5837 Standard Test Method for Furanic Compounds in Electrical Insulating Liquids by High Performance Liquid Chromatography (HPLC); ASTM: West Conshohocken, PA, USA, (2005). 23. Basic gas chromatography. _Choice Reviews Online_, 47 [(10), 47–5660. https://doi.org/10.5860/choice.47-5660. (2010).](https://doi.org/10.5860/choice.47-5660) 24. Zi’, Y. et al. Fault diagnosis methods of transformer based on dissolved gas detection in oil by gas chromatography, Proc. SPIE [13159, Eighth International Conference on Energy System, Electricity, and Power (ESEP 2023), 131595A (13 May 2024); ​h​t​t​p​s​:​/​/​d​](https://doi.org/10.1117/12.3024626) [o​i​.​o​r​g​/​1​0​.​1​1​1​7​/​1​2​.​3​0​2​4​6​2​6](https://doi.org/10.1117/12.3024626) ​ 25. Vempatapu, B. P., Kumar, J., Upreti, B. & Kanaujia, P. K. Application of high-performance liquid chromatography in petroleum analysis: challenges and opportunities. _TRAC Trends Anal. Chem._ 177 [, 117810. https://doi.org/10.1016/j.trac.2024.117810 (2024).](https://doi.org/10.1016/j.trac.2024.117810) 26. Suboor, A. et al. A graphitic carbon nitride film capacitive sensor for selective trace moisture detection in transformer oil. _IEEE_ _Sens. J._ [1. https://doi.org/10.1109/jsen.2024.3486614 (2024).](https://doi.org/10.1109/jsen.2024.3486614) 27. Vatsa, A., Hati, A. S. & Khadkikar, V. Enhanced visual identification of dimensionally expanded FDS for Transformers insulation aging state assessment. _IEEE Trans. Ind. Appl._ [1–11. https://doi.org/10.1109/tia.2024.3523886 (2024).](https://doi.org/10.1109/tia.2024.3523886) 28. Raj, R. A., Murugesan, S., Venkatachary, S. K. & Stonier, A. A. Conversion of non-edible baobab oil as an alternative cooling medium in Transformers and practicability analysis of ageing using Euler’s method and artificial neural network. _Biomass Convers._ _Biorefinery_ . 14 [(10), 11365–11376. https://doi.org/10.1007/s13399-022-02991-3 (2022).](https://doi.org/10.1007/s13399-022-02991-3) 29. Darwish, M. M. F., Hassan, M. H. A., Abdel-Gawad, N. M. K., Lehtonen, M. & Mansour, D. A. A new technique for fault diagnosis in transformer insulating oil based on infrared spectroscopy measurements. _High. Voltage_ . 9 [(2), 319–335. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​4​9​](https://doi.org/10.1049/hve2.12405) [/​h​v​e​2​.​1​2​4​0​5 (2024).](https://doi.org/10.1049/hve2.12405) ​ 30. Pagger, E. P., Pattanadech, N., Uhlig, F. & Muhr, M. Properties of new insulating liquids and main differences. In Springer eBooks [(pp. 65–140). (2023). https://doi.org/10.1007/978-3-031-22460-7_4](https://doi.org/10.1007/978-3-031-22460-7_4) 31. Friedman, J. H. Greedy function approximation: A gradient boosting machine. _Ann. Stat._ 29 [(5), 1189–1232. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​2​](https://doi.org/10.1214/aos/1013203451) [1​4​/​a​o​s​/​1​0​1​3​2​0​3​4​5​1 (2001).](https://doi.org/10.1214/aos/1013203451) ​ 32. Chen, T. & Guestrin, C. XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International [Conference on Knowledge Discovery and Data Mining (KDD), 785–794. (2016). https://doi.org/10.1145/2939672.2939785](https://doi.org/10.1145/2939672.2939785) 33. Ke, G. et al. LightGBM: A highly efficient gradient boosting decision tree. _Adv. Neural Inform. Process. Syst. (NeurIPS)_ . 30, 3146– 3154. https: ​ //proceedin​gs.neur​ip​s.cc/​pape​r/20​17​/file/6449f44a102fde848669bdd9​eb6b7​6fa-Paper.pdf (2017). 34. Breiman, L. _Random Forests Mach. Learn._, 45 [(1), 5–32. https://doi.org/10.1023/A:1010933404324 (2001).](https://doi.org/10.1023/A:1010933404324) 35. Goodfellow, I., Bengio, Y. & Courville, A. _Deep Learning_ [(MIT Press, 2016). http://www.deeplearningbook.org](http://www.deeplearningbook.org) Acknowledgements The authors would like to acknowledge the Deanship of Graduate Studies and Scientific Research, Taif University for funding this work. Author contributions Sherif S. M. Ghoneim, Mohammed Baz: Conceptualization, Methodology, Software, Visualization, Investigation, Writing- Original draft preparation, Project administration, Funding Acquisition. Ali Alzaed, Yohannes Tesfaye Zewdie: Data curation, Validation, Supervision, Resources, Writing - Review & Editing. Funding This work is funded and supported by the Deanship of Graduate Studies and Scientific Research, Taif University. Declarations Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to Y.T.Z. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to [obtain permission directly from the copyright holder. To view a copy of this licence, visit ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2025

섹션 본문 47문단 · 51,198자

(제목 없음)

1Power transformer plays a crucial role in the power networks.Most of the transformer malfunctions was due to failure in the insulating systems.The utilities keen on the contentious operation of the power network, so early detection of the transformer faults avoiding the undesirable outage of the transformer from the service.The insulating paper state is an indication to the transformer health and aging of it may lead to failure of the transformer, so some periodic and routine test must be performed on the insulting oil to get information about the insulating paper condition.The value of the degree of polymerization (DP) is a key of the insulating paper state.Various recommended tests such as the dissolved gases (DGA), breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)) were carried out to correlate between these variables and the DP and then to the insulating oil state.The collected data from these tests were used to supply XGBoost/LightGBM to build artificial intelligence model to predict the insulating paper state.The results indicated that the great ability of the proposed model to predict the insulating state with high accuracy.Of these various configurations for these two classification models, one achieved perfect prediction accuracy (100%) of the insulating paper state prediction accuracy.The other configurations showed accuracy values from 1.0 down to 0.955.

Data collection

2The degree of polymerization (DP) computation relies on various transformer test results to assess its state, particularly during abnormal operations considering different American Society for Testing and materials (AMST) and IEC Standard [20][21][22] .Tests such as dissolved gas analysis (DGA) for combustible gases (Hydrogen (H 2 ), Methane (CH 4 ), Ethan (C 2 H 6 ), Ethylene (C 2 H 4 ), and Acetylene (C 2 H 2 )) and oil quality tests (BDV, MC, ACI, IFT, OC, DF, and 2-FAL) are essential.These involve collecting oil samples and conducting chromatographic analysis to detect dissolved gases.High-performance liquid chromatography (HPLC) measures furanic compounds following ASTM D5837 procedures.Water content is determined using the Karl Fischer method with an 899 coulometer device.The Baur oil tester DTL (JCL 003) can be used to assess the dissipation factor.Either the Megger oil tester or the Baur oil tester DPA may perform the breakdown voltage test.The mobility of surfactants based on the dynamic surface tension (SFT) is examined using the Kruss bubble pressure tensiometer BP100.It determines the rate at which surface-active materials, like detergents or wetting agents, reduce SFT to the necessary level.Transformer oil acidity kit can be used to measure oil acidity.Transformer oil's acidity is expressed in mgKOH/mg.The acidity of the oil results from the production of acidic oxidation products, which, when combined with solid and water impurities, decrease the insulation of the oil.So, low oil acidity is therefore preferred.

3In this study, a total of 147 oil samples collected from various transformers within the Saudi power networks were utilized to construct the proposed prediction model.Each sample includes comprehensive data from all tests conducted in the chemical laboratory, such as the DGA test, oil quality test, and furan compounds test.Table 1 illustrates the data from some of these collected samples.Table 1 shows some results of the collected data including dissolved gas analysis (DGA) for combustible gases (Hydrogen (H 2 ), Methane (CH 4 ), Ethan (C 2 H 6 ), Ethylene (C 2 H 4 ), and Acetylene (C 2 H 2 )) and breakdown voltage (BDV), oil interfacial tension (IF), oil acidity (ACI), moisture content (MC), oil color (OC), dielectric loss (DF) refereeing to (Tan δ), and furans concentration specifically (2-furfuraldehyde (2-FAL)).The classification of the insulating paper state was determined based on the degree of polymerization (DP) values, as shown in Table 2. Table 3 illustrates the distribution of the 147 dataset samples that were collected from various transformers.In this table, the distribution of each class can be illustrated as follows: 94 samples were classified as category 1 (normal aging rate), 11 as accelerating aging rate, 30 as excessive aging danger zone, and 12 as high risk of failure.Each class refers to the DP value that was explained in Table 2 2 .

Experimental test devices

4Gas chromatography (GC) 23,24 , a type of chromatographic analysis, is a very efficient way to determine the dissolved gases in insulating oil.The oil samples are taken from the transformer and transferred in airtight containers to a chemical laboratory to avoid contamination and gas loss.The oil sample is prepared for analysis, so the dissolved gases may need to be released through degassing.Hence, it ensures that all dissolved gases are extracted for measurement.The extracted gases are injected into the gas chromatograph, which comprises a long column filled with a mobile phase (carrier gas) and a stationary phase material.As the gas sample travels through the column, different gas components move at various rates due to their varying affinities for the stationary phase.This separation is based on the unique chemical properties of each gas.Following separation, the gases pass through a detector, which is frequently a flame ionization or thermal conductivity detector.Signals are produced by the detector in proportion to each gas's concentration.A chromatogram was developed from the detector's signals, which displays peaks corresponding to different gases.the concentration of each dissolved gas (such as hydrogen, methane, ethylene, ethane, carbon monoxide, and carbon dioxide) is identified by analyzing the retention times and peak areas.The assessment of the transformer condition is known based on the dissolved gases concentrations.The fault type of the transformer can be specified based on the gases' concentration, these fault types are such as partial discharge, low and high energy discharge, overheating, or insulation degradation.The potent method of high-performance liquid chromatography (HPLC) 25,26 is employed to identify furanic compounds in insulating oil.Furanic compounds are extracted from the oil using a liquid-liquid extraction method with solvents such as acetonitrile.The oil sample is injected into the HPLC system and carried by the mobile phase (a liquid solvent) through the column.The column is packed with a stationary phase, typically a silica-based material.When the sample travels through the column, the furanic compounds interact differently with the stationary phase based on their chemical properties.This differential interaction causes the compounds to separate as they move through the column.The furanic compounds exit the column after separation and pass via a detector, often a diode array detector or a UV-Vis absorbance detector.Each compound's absorbance at particular wavelengths is used by the detector to determine its concentration.The recorded detector's signals were analyzed to develop a chromatogram showing peaks to diffident furnic components.The retention time (time taken for a compound to pass through the column) and peak area are used to identify and quantify the compounds.So analyzing the furnic compound concentrations such as 2-furaldehyde, 5-hydroxymethyl-2furaldehyde, and furfuryl alcohol can refer to the degradation of the insulating paper in the transformer.

5The Karl Fischer method with an 899 coulometer device is a precise technique for determining the water content in insulating oil 27,28 .The oil sample was placed in the titration cell of the 899 coulometers.It uses electrolysis to generate iodine from an iodide-containing reagent.It uses Faraday's law where the amount of electric charge that passes through the solution is related to the amount of iodine generated.The generated iodine reacts with water in the sample to form hydrogen iodide (HI) and iodide ions (I⁻).The coulometer measures how much electric charge is needed to produce the iodine that must react with all of the sample's water.The amount of water contained directly correlates with this charge.The water content is calculated based on the measured charge and Faraday's constant (96485 C/mol).The result is expressed in micrograms or milligrams of water per kilogram of oil.A double platinum wire electrode receives an alternating current to determine the titration's endpoint voltammetrically.The endpoint is automatically determined and then calculates the water content.This method is highly accurate and can detect water content down to trace levels, making it ideal for assessing the quality of insulating oil in transformers.Under fault conditions, moisture dynamics can analyze how moisture content and its behavior are between the insulating oil and paper in the transformer.It presents clues about the nature and location of the fault inside the transformer, therefore, it is considered one of the transformer health indicators.Moisture tends to reach the equilibrium point between insulating oil and paper under normal operating conditions, which it distributes based on the temperature, where more moisture can be absorbed in oil when temperatures increase.The loss of the insulating papers leads to the loss of moisture from the papers, so more moisture can be noticed in the oil over time.Moisture can migrate from paper to oil due to the change in load cycles and ambient temperature.

6The Baur oil tester DTL (JCL 003) is an instrument that was used to measure the dissipation factor (tan δ) of insulating oil 5,29 .In the first stage, it must ensure that the oil is free from any contaminants.Then, put the sample in the cell of DTL.So, the sample was heated to a specified temperature (90 o c) to meet the standard.Applying alternating AC voltage on the oil, so it induces the electric fields.Then, the device measures the dielectric loss (power loss) in the oil sample, which is related to the dissipation factor.The dissipation factor is calculated as the ratio of the dielectric loss to the capacitance of the oil sample.The value of the dissipation factor refers to the insulating oil condition where A higher dissipation factor indicates higher levels of contamination, oxidation, or aging in the oil, which can affect the transformer's performance.

7The breakdown voltage of insulating oil, which shows how long the oil can tolerate electrical stress before failing, is measured using the Baur oil tester DPA 2,10,30 .The oil sample fills into the DPA device's test cell.The oil sample in the test cell receives an alternating current (AC) voltage from the DPA device.Until the oil breaks down, the voltage is progressively raised.The breakdown voltage, or the voltage at which the oil fails and permits an electrical discharge to flow through, is detected by the device.Poor oil quality is indicated by a decreased breakdown voltage, which may be brought on by oxidation, contaminants, or an excessive water content.

8The Kruss Bubble Pressure Tensiometer BP100 measures interfacial tension (IFT) by analyzing the mobility of surfactants in a liquid (oil) sample 5 .After inserting the oil sample into the device, the sample was heated to ensure the consistent measurement.Air bubbles are created in the oil sample by the BP100.The dynamic surface tension (SFT) at various surface ages is measured by varying the rate of bubble formation.The device measures the internal pressure of the bubbles by a high-precision sensor, which is related to the interfacial tension of the liquid.The measured pressures are analyzed to identify the IFT as a function of surface age.The results provide the behavior of surfactants and other surface-active substances in the oil.

9Oil acidity can be measured with a transformer oil acidity kit 2,5,10 .The acidity of transformer oil is measured in mgKOH/mg.The creation of acidic oxidation products causes the oil to become acidic, which reduces the oil's insulating properties when mixed with solid and water contaminants.Therefore, low oil acidity is favored.

Model XGBoost/LightGBM

10Gradient Boosting Machines (GBMs) was introduced by Jerome H. Friedman 31 as an innovative learning algorithm that can refine and consolidate the knowledge gained from a collection of weak learners (e.g.decision trees, linear regression or logistic regression, or Naive Bayes) to improve the predictive power of the overall models.Inspired by the tremendous benefits offered by the GBM and its underlying approaches, several implementations have been published in the open literature, including Categorical Boosting, Gradient Boosting Machines and HistGradientBoostingClassifier.Nevertheless, XGBoost (Extreme Gradient Boosting) and LightGBM (Light Gradient Boosting Machine) have emerged as leading and widely used GBM algorithms, as they can provide very accurate prediction results with very low computational resources.One of the main reasons for the excellent results of XGBoost and LightGBM is their ability to automatically process noisy and outlier data points without the need for hand-crafted features or hard-coded algorithms.Another important reason is the fact that both XGBoost and LightGBM work with the regularization techniques Least Absolute Shrinkage and Selection Operator (L1) and Least Squares Regression (R2).These operations allow these algorithms to reduce their potential for overfitting and increase the convergence rate of the models to the optimal classification boundaries.

11Gradient Boosting Machines (GBMs), specifically XGBoost and LightGBM, can be used to diagnose faults in power transformers by predicting the state of the insulating paper based on oil test data.The main differences and potential challenges associated with this approach compared to traditional methods can be summarized as follows:

12a. Main Differences Compared to Traditional Methods:

13The traditional methods have relied on manual interpretation of DGA charts, threshold-based rules (like CIGRE and IEC standards), and visual inspections.The proposed methodology in this work offers an intelligent and autonomous technique for fault diagnosis.It uses machine learning to automatically learn complex relationships between various oil parameters and the state of the insulating paper.In addition, Traditional methods might focus on individual parameters or simple ratios.On the other hand, GBMs can consider a wide array of input features simultaneously (dissolved gases, BDV, IFT, acidity, moisture, color, Tan δ, 2-FAL) and capture intricate non-linear interactions between them to make a prediction and distinguish between classes of each sample.While traditional methods were primarily interested in identifying existing faults based on established guidelines, the AI-based approach, especially when combined with time-series data (as hinted at in 15 for residual life prediction), has the potential for predictive maintenance by identifying early indicators of degradation and predicting future states.The 100% accuracy in predicting the insulating paper class suggests a strong diagnostic capability.The heavy-tailed distribution of acetylene and the ability of GBMs to learn complex patterns suggest a potential advantage in diagnosing more sophisticated thermal and electrical defects that might produce unique combinations of dissolved gases and oil property changes that traditional rules might miss or misinterpret.GBMs provide insights into feature importance, allowing utilities to understand which oil parameters are most indicative of the insulating paper's state.It can help focus monitoring efforts and refine diagnostic strategies, a feature not inherent in standard rule-based systems.

b. Potential Challenges for Fault Diagnosis in the Proposed Methodology:

14The performance of any machine learning model, including XGBoost and LightGBM, is heavily dependent on the quality and representativeness of the training data.If the training data of the model does not adequately cover the full spectrum of possible fault conditions, aging stages, and transformer designs, the model's accuracy and reliability on unseen data might be compromised.GBMs themselves can be complex "black box" models.Understanding why a particular prediction was made can be challenging, which might hinder trust and acceptance by domain experts who rely on a mechanistic understanding.A model trained on a specific set of transformers and operating conditions might not generalize well to different types, sizes, manufacturers, or operational environments.Retraining or fine-tuning the model with data relevant to the specific fleet of transformers being monitored might be necessary.Implementing this methodology requires a robust infrastructure for regular oil sampling and testing to generate the input data for the models.The frequency and reliability of this data collection process will directly impact the effectiveness of the diagnostic system.Real-world fault data is often imbalanced, with normal operating conditions being far more frequent than severe fault events.Training GBMs on imbalanced data can lead to biased models that perform well on the majority class but poorly on the minority (fault) classes.Specific techniques (e.g., oversampling, undersampling, cost-sensitive learning) might be needed.Successfully deploying this AI-based methodology requires seamless integration with existing data management systems, monitoring platforms, and maintenance workflows within the electrical utility.This can involve overcoming technical and organizational hurdles.While XGBoost and LightGBM are efficient, deploying and running these models, especially for a large fleet of transformers with frequent data updates, might require significant computational resources.Therefore, the proposed GBM-based methodology offers significant advantages in terms of automation, holistic analysis, and predictive capabilities for transformer fault diagnosis.However, challenges related to data dependency, interpretability, generalizability, infrastructure requirements, data imbalance, model maintenance, integration, and computational resources need to be carefully addressed for successful implementation in real-world electrical utility settings.XGBoost and LightGBM can be effectively employed to overcome many of the challenges associated with building a robust and practical fault diagnosis system for power transformers based on oil analysis using some features and strategies, such as regularization parameters that help prevent overfitting to noisy or limited datasets, using cross-validation technique, handle missing data directly without requiring imputation, controlling the complexity of the individual decision trees, and providing insights into which features are most important for prediction.

15To formally explain the underlying approach of the XGBoost and LightGBM model in the context of this paper, let D = {(xi, yi) } n i=1 be the data set consisting of the measured values of the electrical transformers and their desired outputs.Where n is the number of samples of this data set, xi ∈ R d are the feature vectors of the i th instances input to the model, and yi is the corresponding class of, xi, 1 ≤ i < n The ultimate goal of the XGBoost and LightGBM models is to construct the gradient boosting F (x) that can approximate the classes of a given input as accurately as possible.Typically, these models use the differentiable loss function L (y, F (x)), which can be defined based on the learning objectives.In the case of regression, for example, the mean square error can be used, while in the case where the learning objective is to classify the given input, the loss function cross entropy can be used.F (x) can be expressed in terms of the output of the M weak learners as follows 32,33 , :

16where η is a learning rate that controls the contribution of each tree. it is of interesting to note that this equation ensures that each weak learner can correct the residual errors generated by its predecessors, which in turn leads to an improvement in the overall model accuracy.At each iteration m, the algorithm fits a new tree fm to the negative gradient of the loss function, known as the pseudo-residuals 31 :

17For classification tasks, the final output F (x) is transformed via a link function (e.g., sigmoid or softmax) to generate class probabilities.This iterative refinement allows gradient boosting to adaptively focus on challenging samples, progressively reducing bias and variance.XGBoost distinguishes itself from classical gradient boosting through systematic regularization and computational optimizations.The framework introduces a penalized objective function that combines loss and regularization terms:

18where Tm is the number of leaves in the m-th tree, wm are the leaf weights, and γ , λ are hyperparameters that penalize model complexity?This regularization combats overfitting, enabling XGBoost to generalize well even with high-dimensional data.A key innovation in XGBoost is its use of second-order Taylor approximations to accelerate convergence.By incorporating the second (xi) of the loss function, the algorithm refines the gain calculation for tree splits:

19where GL, GR and HL, HR are the sums of gradients and Hessians for the left and right child nodes, respectively.This approach not only improves the quality of splits but also reduces the computational burden of exhaustive search procedures.LightGBM was developed by Microsoft and solves the problems of scalability with large data sets using two pioneering techniques: Gradient-Based One-Side Sampling (GOSS) and Exclusive Feature Bundling (EFB).GOSS prioritizes instances with large gradients (i.e., inadequately matched samples), while instances with smaller gradients are randomly included in the sample, reducing the training set size without significant loss of accuracy.To mitigate bias, the gradients of samples with low significance are scaled by a factor of 1−a b where a and b represent the sampling ratios for high-and low-gradient samples.Exclusive feature bundling (EFB): Bundles mutually exclusive features -those that rarely take non-zero values at the same time -into composite features, significantly reducing dimensionality in sparse datasets.In contrast to XGBoost, which uses a stepwise tree growth strategy, LightGBM uses a leaf-by-leaf strategy, where the node with the highest information gain is expanded first.This approach allows for deeper trees and faster convergence but may require additional regularization to prevent overfitting 33 .

20it is worth talking about how the XGBoost and LightGBM algorithms differ from other AI algorithms.Random forests, for example, construct decision trees using bootstrap sampling and majority voting, which prevents overfitting by reducing variance.However, they lack the iterative error correction mechanism of boosting.Gradient boosting models refine the predictions sequentially and often achieve higher accuracy, but at the cost of higher sensitivity to hyperparameter adjustments.While neural networks are excellent for highdimensional, unstructured data (e.g., images, text) because they learn hierarchical representations through backpropagation, they require extensive computational resources and large data sets to avoid overfitting.In contrast, gradient boosting frameworks dominate applications for structured data due to their faster training times, inherent interpretability and superior performance on smaller datasets 34 .Support vector machines (SVMs) use kernel methods to map data into high-dimensional spaces to improve separability, but scale poorly with dataset size.XGBoost and LightGBM are computationally efficient, inherently able to handle missing data, and adapt seamlessly to distributed computing environments, making them preferable for large-scale learning tasks.

21Although both XGBoost and LightGBM are based on gradient boosting, their architectural differences lead to significant differences in performance.In the type of tree growth strategy: XGBoost grows trees incrementally to ensure balanced structures, while LightGBM takes a leaf-by-leaf approach that focuses on local profit maximization.Feature treatment: LightGBM inherently supports categorical features through optimal partitioning, while XGBoost requires one-hot coding or ordinal transformation.In terms of computational efficiency, empirical benchmarks show that LightGBM achieves 2-10x faster training times and better memory efficiency on large datasets 35 .However, XGBoost provides finer control over regularization and hyperparameter tuning, making it preferable in situations that require high interpretability or generalization control.

Heatmap

22To gain a quantitative insight into the relationships between the different factors influencing the diagnosis of transformer faults, the correlation between all explanatory variables in the data set was calculated and plotted in the heatmap in Fig. 1.

23In general, it can be seen that the degrees of correlation between the variables do not follow a consistent pattern, as some variables, such as IFT and colors, have a high negative correlation or a value of 0.86, while the correlation between BDV and monoxide is approximately negligible.Such a discrepancy in correlation values confirms the complex interactions between these variables and their contribution to health.For example, it can be seen that the color variables have the highest overall correlation with several variables, including acidity (0.77), IFT (−0.86), water (0.60) and 2-FAL (0.57).This in turn makes the color of the oil a diagnostic indicator of the overall aging condition of transformers and can therefore serve as a key feature for prediction in an AI model.From a physical and chemical point of view, the high correlation of the gas color with other values is due to the fact that the chemical reactions that take place in the transformer shaft lead to a discoloration of the oil.Figure 1 shows that acetylene (C₂H₂) has a consistently low correlation rate for most characteristics.This can be explained by the fact that acetylene is mainly formed during high-energy electrical faults such as arcs and heavy discharges in the transformer, while other gasses such as methane, ethylene and hydrogen are formed at different thermal and electrical voltages.Due to these different generation conditions, the correlation of acetylene with other gasses is low.However, the presence of this gas in the measured values is also an indication of the extreme generation conditions to which the transformer was exposed.From the perspective of the usability of these elements in the machine learning model, their use can improve the predictive ability of the model by refining the classification boundaries.

Histograms

24The correlation heatmap presented in the previous subsection provides a comprehensive understanding of the interactions between the different predictive features.We are now interested in examining the characteristics of each individual feature.To this end, the distribution of all 13 features was calculated and then presented in Fig. 2.

25From this figure, it can be seen that the distribution of gas resolutions such as hydrogen (H₂), methane (CH₄), ethylene (C₂H₄), ethane (C₂H₆), carbon monoxide (CO) and carbon dioxide (CO₂) are highly right skewed distributions.This highly tail-heavy distribution indicates that the majority of transformer samples contain low concentrations of these gasses, while a few samples contain much higher values.This can be explained by the fact that these gasses tend to form rather stably and slowly under normal operating conditions and their concentration can therefore vary from case to case, albeit only slightly.However, if we compare the histogram of the concentrations of these gasses with the corresponding values for acetylene, we see that the tail of the distribution of this gas is higher than the tails of the other distributions.This is consistent with the results of the heat map, which shows the low correlation of acetylene with other gasses, which is due to the natural origin of the gas.

26Figure 2 also shows that some parameters such as water content, acidity and interfacial tension (IFT) follow a non-uniform distribution where the low values occur with greater frequency.These characteristics can be attributed to the effects of the oxidation and hydrolysis processes, which can lead to a sudden deterioration of the insulation, which in turn is reflected in a higher frequency of the measured values of the parameters contributing to these processes.In addition, the high variability of the IFT distributions shows the differences in the degree of aging of the different transformers considered in this study.Interestingly, when interpreting the distribution of IFT with its correlation from Fig. 1, it becomes clear that a sharp decrease in IFT is usually accompanied by an increase in contamination of the insulating oil, which typically leads to reduced dielectric strength and accelerates the overall failure of the insulation.The distribution of breakdown voltage (BDV) as shown in its histogram shows an interesting characteristic, namely an almost symmetrical distribution with moderate values in the middle areas.This characteristic reflects an almost stable dielectric strength over different measured values of the investigated transformers.Nevertheless, the presence of lower BDV values in non-critical cases may indicate an earlier degradation of the oil in the transformer.Further evidence of this is the correlation of BDV with water content and acidity, as can be seen in the correlation matrix in Fig. 1.

27It is interesting to note that the distributions of the predicted values together with the correlation heatmap show the coherence of the dataset for the different aging phases of the transformers, which should improve the learning ability of the models during the training phases and thus the generalizability of their findings during the test phase.

Boxplots

28A collection of boxplots as in Fig. 3 provides a differentiated insight into the distribution of the different parameters across the different classes within the dataset, which are likely related to the oil and gas samples.

29Hydrogen content shows remarkable variability between classes.Class 3, for example, has a greater dispersion and a higher median value compared to the other classes, indicating greater variability and potentially higher hydrogen concentrations in this class.This could indicate differences in the origin or processing of the samples within this class.Methane concentrations appear to be relatively consistent across all classes, with similar median values and interquartile ranges.However, there are some outliers in Class 1 with higher methane levels that may warrant further investigation.This could indicate that certain samples within Class 1 have unique characteristics or have been subjected to different processes.Monoxides and dioxides show different patterns in the different classes.Class 2 has higher median values and greater dispersion for both variables, indicating greater variability and potentially higher concentrations in this class.This could be related to differences in combustion or chemical reactions within this class.Ethylene concentrations are relatively uniform across all classes, with comparable median values and scatter.Class 3, however, shows some outliers with higher ethylene concentrations.In contrast, Ethane shows greater variability between classes, with class 2 having a higher median and greater dispersion.These differences could reflect variations in the composition of the hydrocarbon mixture or different formation mechanisms in the different classes.Acetylene levels are generally low in all classes, with most data points at the lower end.However, Class 3 stands out with a significantly higher median value and greater dispersion, indicating greater variability and possibly higher acetylene concentrations in this class.This could be due to specific reactions or processes that occur predominantly in this class.The BDV, water, acidity, IFT, color, and 2-FAL show different patterns in the different classes.BDV shows different median values and scatter for the different classes, indicating variations in degradation characteristics.Water and acidity are generally higher in class 2, while IFT and color show less pronounced differences between classes.2-FAL, which may be related to microbial activity, has higher levels in class 3, which could indicate more microbial contamination in this class.

30The boxplots also show possible correlations between variables within specific classes.For example, in class 2, where water and acidity are higher, we might expect correlations between these variables, as suggested by the heat map.Similarly, in class 3, the higher levels of 2-FAL and acetylene could be related, possibly indicating specific microbial processes or reactions.

Implementation details

31The algorithms were implemented on a state-of-the-art workstation equipped with an AMD Ryzen Threadripper PRO 5995 WX CPU with 64 cores and 128 threads, 256 GB DDR4 memory and running the Ubuntu 22.04 LTS operating system.Python 3.9 was used in the software environment together with the following important libraries: xgboost 1.7.0,lightgbm 3.3.5 and scikit-learn 1.2.2.An NVIDIA GeForce RTX 4090 GPU with 24 GB GDDR6X memory was used to accelerate the model training.The XGBoost and LightGBM models were trained and evaluated using a comprehensive grid search approach to optimize the hyperparameters.The XGBoost models examined max_depth values between 3 and 7, learning_rate values between 0.05 and 0.2 and n_estimators values of 100, 150 and 200.The LightGBM models were similarly configured with the same range of hyperparameter values.The dataset was splitting to training and testing subsets using split ratio of 70:30 and the accuracy, precision, recall and F1 is used to evaluate the performance of the proposed models.Figure 4 illustrates the normalized error versus epochs for all XGBoost and LightGBM models under different configurations.They show a robust and stable trend as the normalized error values start at 1 at the beginning of the training phase (epoch number 1) and then decrease exponentially as more epochs pass until they are at low normalized errors at the end of the training phase (epoch number 100).This monotonic decrease of the normalized errors over the epochs confirms the good learning ability of the XGBoost and LightGBM methods and their suitability for predicting the aging behavior of electrical transformers.However, this figure also shows that some error curves such as those of XGBoost with max_depth: 3, learning_rate: 0.2, n_estimators: 150 (orange curve) and the LightGBM with max_depth: 3, learning_rate: 0.2, n_estimators: 150 (brown curve) suffer from strong fluctuations.These fluctuations can be interpreted in the light of their hyperparameters.For example, it can be seen that the learning rate of these two models was set to 0.2, the highest value used in this evaluation.Using a high learning rate forces the model to aggressively update its learnable parameters at each training epoch, which in turn increases the likelihood that the model will overshoot the range of optimal representation of the datasets.This overshooting manifest itself in "jumps that bounce back and forth" during different learning epochs, resulting in an unstable learning pattern.It is interesting to discuss the fluctuation characteristics of these two models from the perspective of their decision tree.As you can see in Fig. 4, the maximum depth of the decision tree of these two models is fixed at 3. While reducing the depth of the model may decrease its ability to capture more complex relationships and dependencies in the dataset, it also makes the model more susceptible to instability in loss reduction across epochs.

Learning patterns of the models

32Further confirmation of the above can be seen by comparing the error curves of those curves that have low learning rates or a larger number of decision trees, for example XGBoost ( max_depth : 5, learning_rate : 0.05, n_estimators : 100) (green curve), LightGBM ( max_depth : 7, learning_rate : 0.1, n_estimators : 150) (gray curve) and LightGBM ( max_depth : 3, learning_rate : 0.1, n_estimators : 100) (brown curve).These curves show lower fluctuations in their learning curves, which is due to the ability of the lower learning rate to stabilize the gradient boosting process used by both the XGBoost and LightGBM models, i.e. each instance of the new learners corrects the errors generated by the previous decision tree, which in turn leads to a reduction in the fluctuation of the learning ability of these models.The effects of the maximum depth hyperparameters on the normalized error curves at lower learning rates can also be explained from the perspective of the way XGBoost and LightGBM constructed the learning graphs.For example, it can be seen that using the leaf-wise tree partitioning approach in the LightGBM-based model tends to have slightly more unstable loss curves compared to XGBoost, which uses the depth-wise tree growth approach.In addition, the models characterized by low fluctuation have some common hyperparameters, such as a larger number of decision tree depths or a smaller number of estimates.For example, the following model XGBoost ( max_depth : 7, learning_rate : 0.1, n_estimators : 150) (blue curve) LightGBM ( max_depth : 7, learning_rate : 0.1, n_estimators : 100) (pink curve) LightGBM ( max_depth : 3, learning_rate : 0.1, n_estimators: 100) (purple curve).The use of such The results presented in the figure show how important it is to select the hyperparameters of the approach according to the type of dataset in order to achieve stable learning characteristics.As shown in the previous subsection, the dataset exhibits strong correlations, so simpler models with moderate learning rates may be more effective in capturing the salient features of the dataset.

Confusion matrix

33The previous subsection provides a comprehensive evaluation of the proposed model and the underlying datasets from different perspectives.These evaluations demonstrate the effectiveness of the XGBoost and LightGBM models and their suitability for learning from the datasets.Here, it is time to evaluate the extent to which these models are able to accurately classify the dataset.To this end, the true/false positive/negative values of the eight models considered in the previous subsections were calculated, and the confusion matrix corresponding to these models is shown in Fig. 5. From these figures, it can be seen that the XGBoost and LightGBM models can provide an accurate classification for different types of transformer aging phases under different hyperparameters.This is evident from the darkness of the diagonals of the confusion matrices and the high value they have compared to other cells.However, the variations in the off-diagonal elements illustrate the influence of the hyperparameters on the specific types and frequencies of misclassifications.

34The hyperparameters of the models primarily include the learning rate, the confusion matrices illustrate the trade-off associated with the learning rate.Although higher learning rates potentially lead to faster convergence, they can also lead to more instability and misclassifications.This is evident in the XGBoost model with a learning rate of 0.2, where a higher number of off-of-corner entries means more prediction errors compared to models with lower learning rates.Model complexity (max_depth), increasing the model complexity generally leads to fewer misclassifications as the model can capture more complicated relationships in the data.However, excessive complexity can lead to overfitting, where the model performs well on the training data but poorly on the unseen data.This trend is subtly reflected in the XGBoost models.Increasing max_depth from 3 to 7 initially reduces misclassifications, but eventually leads to a plateau, indicating a possible limit of complexity beyond which overfitting may occur.Number of estimators (n_estimators), The effects of increasing the number of estimators appear to be less pronounced in these matrices.This suggests that within the tested range, adding more estimators does not significantly change the classification patterns.However, it is important to note that this observation may be specific to this data set and the hyperparameter ranges chosen.It can also be shown that LightGBM performs consistently well across different configurations with minimal misclassification.This is consistent with its reputation as an efficient and robust model, especially when processing complex datasets.the analysis of the behavior of the XGBoost-based model shows that they can provide good classification accuracy for different types of transformer aging phenomena.However, it also shows that these models are very sensitive to the value of their hyperparameters.This becomes clear when comparing the classification performance of the XGBoost model under different learning rates and max_depth.It can also be seen that the LightGBM model with max_depth: 3, learning_rate: 0.2, and n_estimators: 150 offers an almost perfect classification performance compared to all other models.This can be attributed to the fact that LightGBM uses the leaf-wise tree growth approach, which can make the learning process more fine-grained compared to the depth-wise tree growth approach of the XGBoost algorithm.It can also be seen that the model considered above achieves a good balance between the learning rate and the depth of the network, which is of great importance for ensuring stable learning characteristics as described in the previous subsections.A comparison with the classification performance of the XGBoost-based models shows that setting the max_ depth to 7 in this algorithm increases the misclassification between certain classes.This can be attributed to the fact that the dataset used in this work has a higher dependency, as can be seen from the correlation heatmap, which in turn requires a simpler architecture.in conclusion it can be seen that LightGBM generally offers faster convergence and robustness, while XGBoost offers flexibility in controlling model complexity.Table 4, summarizes the key characteristics of each model during the training and test phase along with their performance metrics.

Conclusions

35The results of applying the suggested model XGBoost and LightGBM on determining the Transformer state based on various test on the insulating oil and paper indicated the following;

36• The correlation matrix shows a strong positive correlation between water content and acidity, indicating water's importance in preventing corrosion.A moderately positive correlation exists between water content and 2-FAL, and a strong negative correlation between IFT and color.• A right-skewed distribution of various parameters, such as hydrogen, methane, monoxide, dioxide, ethylene, acetylene, BDV, water, acidity, IFT, color, and 2-FAL was concluded.The hydrogen and methane distributions are symmetrical, suggesting homogeneous processing conditions.The monoxide and dioxide distributions are right-skewed, suggesting lower concentrations are more common.Ethylene and ethane distributions are different, with ethylene showing a more even distribution and ethane showing a right-skewed distribution.The heavy-tailed distribution of acetylene shows the important role it could play in determining the perfect classes, as it serves as a discriminator for more sophisticated thermal and electrical defects.• The large differences in the prediction variables between the various classes reflect the different degradation patterns and fault characteristics of the various transformer groups.Class 3 transformers, for example, exhibit severe degradation, which is reflected in a high dispersion of values for chemical elements produced by electrical discharges and overheating, such as hydrogen and ethylene.In addition, the high value of the BDV and 2-FAL values can be used to emphasize the high degree of degradation of the insulation and oil of the transformers, which in turn exposes these elements to the highest risk of failure.Class 2 transformers show significant insulation degradation, as the CO and CO₂ values are much higher than the others.These elements are used as indicators of prolonged thermal and oxidative stress, while the increased acidity, IFT and water content of this class indicate progressive aging, which in turn can be used as an early warning system for those transformers that require close monitoring.Finally, it can be seen that Class 1 transformers remain relatively stable as their predicted values have a low dispersion compared to other classes.However, it is important to point out that the sharp rise and fall in methane levels occasionally highlights the potential risk levels, which can serve as a basis for determining the need for preventive maintenance of these transformers within this class in order to extend their service life.• The learning behavior of the XGBoost and LightGBM models is influenced by the way these models build the decision trees and the values of their hyperparameters.In general, LightGBM shows faster convergence at earlier training epochs, while XGBoost takes more time to converge to similar predicted values.However, the XGBoost models show a more stable learning curve after reaching the same learning values.This can be seen as a direct consequence of using different methods to create the decision trees.In addition, the signif- icant effects of the main hyperparetmers such as learning rate, model complexity and number of estimators are clearly visible in the performance evaluation performed for different confirmations.LightGBM maintains a stable balance between plasticity and variance, while XGBoost exhibits high generalizability.However, the results of this work show that both models achieve high classification accuracy under different configurations.• Finally, the suggest models have a great ability to predict the insulating paper class based on the various data from the specified tests, which carried out on the insulating oil as in Fig. 5 g.• LightGBM showed faster convergence than XGBoost at earlier training epochs, suggesting it might be more computationally efficient in terms of the time required to reach a certain level of performance.Both models achieve high classification accuracy under different configurations, suggesting they are both efficient in terms of achieving the desired outcome (accurate prediction).LightGBM maintains a stable balance between plasticity and variance, while XGBoost exhibits high generalizability.These relate to how efficiently the models learn and perform on unseen data.So, both XGBoost and LightGBM are considered efficient in terms of their primary goal as accurately classifying the transformer state.

Fig. 1 .

37Fig. 1.The correlation matrix Heatmap of predictive elements of the dataset.

Fig. 2 .

38Fig. 2. The histogram of the predictive variables.

Figure 4

39Figure4illustrates the training dynamics of XGBoost and LightGBM models under different hyperparameter configurations.The normalized error curves plotted against the number of epochs provide important insights into the behavior of these algorithms and the impact of the hyperparameter setting on model performance.Figure4illustrates the normalized error versus epochs for all XGBoost and LightGBM models under different configurations.They show a robust and stable trend as the normalized error values start at 1 at the beginning of the training phase (epoch number 1) and then decrease exponentially as more epochs pass until they are at low normalized errors at the end of the training phase (epoch number 100).This monotonic decrease of the normalized errors over the epochs confirms the good learning ability of the XGBoost and LightGBM methods and their suitability for predicting the aging behavior of electrical transformers.However, this figure also shows that some error curves such as those of XGBoost with max_depth: 3, learning_rate: 0.2, n_estimators: 150 (orange curve) and the LightGBM with max_depth: 3, learning_rate: 0.2, n_estimators: 150 (brown curve) suffer from strong fluctuations.These fluctuations can be interpreted in the light of their hyperparameters.For example, it can be seen that the learning rate of these two models was set to 0.2, the highest value used in this evaluation.Using a high learning rate forces the model to aggressively update its learnable parameters at each training epoch, which in turn increases the likelihood that the model will overshoot the range of optimal representation of the datasets.This overshooting manifest itself in "jumps that bounce back and forth" during different learning epochs, resulting in an unstable learning pattern.It is interesting to discuss the fluctuation characteristics of these two models from the perspective of their decision tree.As you can see in Fig.4, the maximum depth of the decision tree of these two models is fixed at 3. While reducing the depth of the model may decrease its ability to capture more complex relationships and dependencies in the dataset, it also makes the model more susceptible to instability in loss reduction across epochs.Further confirmation of the above can be seen by comparing the error curves of those curves that have low learning rates or a larger number of decision trees, for example XGBoost ( max_depth : 5, learning_rate : 0.05, n_estimators : 100) (green curve), LightGBM ( max_depth : 7, learning_rate : 0.1, n_estimators : 150) (gray curve) and LightGBM ( max_depth : 3, learning_rate : 0.1, n_estimators : 100) (brown curve).These curves show lower fluctuations in their learning curves, which is due to the ability of the lower learning rate to stabilize the gradient boosting process used by both the XGBoost and LightGBM models, i.e. each instance of the new learners corrects the errors generated by the previous decision tree, which in turn leads to a reduction in the fluctuation of the learning ability of these models.The effects of the maximum depth hyperparameters on the normalized error curves at lower learning rates can also be explained from the perspective of the way XGBoost and LightGBM constructed the learning graphs.For example, it can be seen that using the leaf-wise tree partitioning approach in the LightGBM-based model tends to have slightly more unstable loss curves compared to XGBoost, which uses the depth-wise tree growth approach.In addition, the models characterized by low fluctuation have some common

Fig. 3 .

40Fig. 3.A boxplots of the distribution of the predictive variables within the dataset.

Fig. 4 .

41Fig. 4. Learnability characteristics of the proposed models under different hyperparameters.

Fig. 5 .

42Fig. 5.A confusion matrices of the proposed model under different configurations.

Figure 5 .

43Figure 5. (continued)

Table 3 .

44Distribution data samples according to categories.

45Description Normal state An increase in the aging rate The danger zone of excessive aging rate Failure may be occur

Table 2 .

46Categories of the insulating paper state based on DP value and its description.

Table 1 .

47Samples of the testing insulating oils from a chemical laboratory.

참고문헌 31건

  1. Greedy function approximation: A gradient boosting machine. The Annals of Statistics · Institute of Mathematical Statistics · 2001 10.1214/aos/1013203451
  2. XGBoost 2016 10.1145/2939672.2939785
  3. LightGBM: A Highly Efficient Gradient Boosting Decision Tree 2017
  4. Random Forests Machine Learning · Springer Science+Business Media · 2001 10.1023/a:1010933404324
  5. The Degree of Polymerization in a Prediction Model of Insulating Paper and the Remaining Life of Power Transformers Energies · Multidisciplinary Digital Publishing Institute · 2021 10.3390/en14030670
  6. Aging state assessment of transformer cellulosic paper insulation using multivariate chemical indicators Cellulose · Springer Science+Business Media · 2021 10.1007/s10570-021-03683-3
  7. Determination of Transformers’ Insulating Paper State Based on Classification Techniques Processes · Multidisciplinary Digital Publishing Institute · 2021 10.3390/pr9030427
  8. Artificial Intelligence-Based Power Transformer Health Index for Handling Data Uncertainty IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3125379
  9. Evaluation of power transformer health analysis by internal fault criticalities to prevent premature failure using statistical data analytics approach Engineering Failure Analysis · Elsevier BV · 2022 10.1016/j.engfailanal.2022.106213
  10. Interaction of Transformer Oil Parameters on Each Other and on Transformer Health Index Using Curve Estimation Regression Method International Transactions on Electrical Energy Systems · Wiley · 2022 10.1155/2022/7548533
  11. Conversion of non-edible Baobab oil as an alternative cooling medium in transformers and practicability analysis of ageing using Euler’s method and artificial neural network Biomass Conversion and Biorefinery · Springer Nature · 2022 10.1007/s13399-022-02991-3
  12. Basic gas chromatography Choice Reviews Online · Association of College and Research Libraries · 2010 10.5860/choice.47-5660
  13. Identification of Power Transformer Insulating Paper's State Based on Principal Component Analysis International Journal on Electrical Engineering and Informatics · School of Electrical Engineering and Informatics · 2022 10.15676/ijeei.2022.14.4.3
  14. Properties of New Insulating Liquids and Main Differences Springer eBooks · Springer Nature · 2023 10.1007/978-3-031-22460-7_4
  15. A novel power transformer fault diagnosis method based on data augmentation for KPCA and deep residual network Energy Reports · Elsevier BV · 2023 10.1016/j.egyr.2023.04.279
  16. Power Transformers Health Index Enhancement Based on Convolutional Neural Network after Applying Imbalanced-Data Oversampling Electronics · Multidisciplinary Digital Publishing Institute · 2023 10.3390/electronics12112405
  17. Insulation aging condition assessment of transformer in the visual domain based on SE-CNN Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.107409
  18. A novel artificial neural network approach for residual life estimation of paper insulation in oil‐immersed power transformers IET Electric Power Applications · Institution of Engineering and Technology · 2023 10.1049/elp2.12407
  19. A new technique for fault diagnosis in transformer insulating oil based on infrared spectroscopy measurements High Voltage · Institution of Engineering and Technology · 2024 10.1049/hve2.12405
  20. Application of back propagation neural network in complex diagnostics and forecasting loss of life of cellulose paper insulation in oil-immersed transformers Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-56598-x
  21. Analyzing Transformer Insulation Paper Prognostics and Health Management: A Modeling Framework Perspective IEEE Access · Institute of Electrical and Electronics Engineers · 2024 10.1109/access.2024.3391823
  22. Research Progress and Prospect of Condition Assessment Techniques for Oil–Paper Insulation Used in Power Systems: A Review Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17092089
  23. Fault diagnosis methods of transformer based on dissolved gas detection in oil by gas chromatography 2024 10.1117/12.3024626
  24. Application of high-performance liquid chromatography in petroleum analysis: Challenges and opportunities TrAC Trends in Analytical Chemistry · Elsevier BV · 2024 10.1016/j.trac.2024.117810
  25. Power transformer health index and life span assessment: A comprehensive review of conventional and machine learning based approaches Engineering Applications of Artificial Intelligence · Elsevier BV · 2024 10.1016/j.engappai.2024.109474
  26. A Graphitic Carbon Nitride Film Capacitive Sensor for Selective Trace Moisture Detection in Transformer Oil IEEE Sensors Journal · IEEE Sensors Council · 2024 10.1109/jsen.2024.3486614
  27. Machine learning-driven prediction of tensile strength in 3D-printed PLA parts Expert Systems with Applications · Elsevier BV · 2024 10.1016/j.eswa.2024.125836
  28. Enhanced Visual Identification of Dimensionally Expanded FDS for Transformers Insulation Aging State Assessment IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2024 10.1109/tia.2024.3523886
  29. GBM-QTMT: Gradient Boosting Machine-based fast QTMT partition decision for VVC inter-coding Signal Image and Video Processing · Springer Science+Business Media · 2025 10.1007/s11760-024-03780-3
  30. A Hybrid Gradient Boosting and Neural Network Model for Predicting Urban Happiness: Integrating Ensemble Learning with Deep Representation for Enhanced Accuracy Machine Learning and Knowledge Extraction · Multidisciplinary Digital Publishing Institute · 2025 10.3390/make7010004
  31. Evaluating the Effectiveness of Boosting and Bagging Ensemble Techniques in Forecasting Lithium‐Ion Battery Useful Life Energy Storage · Wiley · 2025 10.1002/est2.70118