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

Characterization of Partial Discharges in Dielectric Oils Using High-Resolution CMOS Image Sensor and Convolutional Neural Networks

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. José Miguel Monzón-Verona — Electrical Engineering Department (DIE), University of Las Palmas de Gran Canaria, 35017 Las Palmas de Gran Canaria, Spain|||Institute for Applied Microelectronics, University of Las Palmas de Gran Canaria, 35017 Las Palmas de Gran Canaria, Spain
  2. Pablo González-Domínguez — Electrical Engineering Department (DIE), University of Las Palmas de Gran Canaria, 35017 Las Palmas de Gran Canaria, Spain|||Institute for Applied Microelectronics, University of Las Palmas de Gran Canaria, 35017 Las Palmas de Gran Canaria, Spain
  3. Santiago García–Alonso — Department of Electronic Engineering and Automatics (DIEA), University of Las Palmas de Gran Canaria, 35017 Las Palmas de Gran Canaria, Spain
DOI
10.3390/s24041317
저널
Sensors
발행년도
2024
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s24041317
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4391928073

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
규칙(키워드) 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this work, an exhaustive analysis of the partial discharges that originate in the bubbles present in dielectric mineral oils is carried out. To achieve this, a low-cost, high-resolution CMOS image sensor is used. Partial discharge measurements using that image sensor are validated by a standard electrical detection system that uses a discharge capacitor. In order to accurately identify the images corresponding to partial discharges, a convolutional neural network is trained using a large set of images captured by the image sensor. An image classification model is also developed using deep learning with a convolutional network based on a TensorFlow and Keras model. The classification results of the experiments show that the accuracy achieved by our model is around 95% on the validation set and 82% on the test set. As a result of this work, a non-destructive diagnosis method has been developed that is based on the use of an image sensor and the design of a convolutional neural network. This approach allows us to obtain information about the state of mineral oils before breakdown occurs, providing a valuable tool for the evaluation and maintenance of these dielectric oils.

본문 118,829자

본문 펼치기
In this work, an exhaustive analysis of the partial discharges that originate in the bubbles present in dielectric mineral oils is carried out.To achieve this, a low-cost, high-resolution CMOS image sensor is used.Partial discharge measurements using that image sensor are validated by a standard electrical detection system that uses a discharge capacitor.In order to accurately identify the images corresponding to partial discharges, a convolutional neural network is trained using a large set of images captured by the image sensor.An image classification model is also developed using deep learning with a convolutional network based on a TensorFlow and Keras model.The classification results of the experiments show that the accuracy achieved by our model is around 95% on the validation set and 82% on the test set.As a result of this work, a non-destructive diagnosis method has been developed that is based on the use of an image sensor and the design of a convolutional neural network.This approach allows us to obtain information about the state of mineral oils before breakdown occurs, providing a valuable tool for the evaluation and maintenance of these dielectric oils. Introduction The measurement and detection of partial discharges (PDs) are invaluable tools for the evaluation of insulation quality, generating improvements in both maintenance practices and risk management in energy devices.A literature review on current online PD monitoring techniques used for different high-voltage electrical components in power electrical systems is presented in [1]. Introduction In [1], a detailed review and analysis of online monitoring of PDs in order to reduce breakdowns in electrical power systems and the advances in this area are presented.An intelligent framework based on wireless sensors is also proposed to improve the performance of power systems. Introduction Ref. [2] focuses on researching and analyzing measurement techniques that use UHF to monitor PDs in high-voltage systems in real time, which could significantly contribute to the early detection of possible problems in the electrical system and its preventive maintenance.In [3], how voltage harmonics affect the diagnosis of PDs in electric motors that are powered by variable-frequency drives is addressed. Introduction In [4], an analysis of the similarities and differences in surface PDs, both in direct current (DC) and alternating current (AC), is carried out.Furthermore, the underlying Sensors 2024, 24, 1317 2 of 35 mechanisms that generate these discharges and the patterns associated with them are investigated in depth. Introduction PDs in transformer oil play a fundamental role in the progressive deterioration of paper-oil insulation.The bubbles present in the transformer oil, the formation of which can be due to various factors, including some non-electrical, have the ability to move to areas of high electrical intensity due to the cooling system, potentially leading to PDs. Introduction Despite their importance, the underlying mechanisms of PDs in fluids still lack indepth investigation.Therefore, the purpose of this paper is to examine the behavior of PDs generated within gaseous bubbles dissolved in the dielectric oil when subjected to a highfield-intensity alternating electric field.This is achieved by using a low-cost, high-resolution CMOS image sensor and a neural network trained for PD detection. Introduction Given the relevance of PDs originating from bubbles of gases dissolved in liquid dielectrics, a detailed analysis of the most significant works in this area of knowledge is carried out below. Introduction In [5], the results of a numerical investigation that addressed the evolution of streamers in bubbles immersed in liquids are presented.It is established that the formation of streamers does not occur in very small bubbles unless the preexisting or injected charges are considerable enough to trigger PD. Introduction In [6], a detailed analysis of the dynamics of bubbles inside dielectric oil is carried out.The study of the behavior of air bubbles that rise in the transformer oil under the influence of an alternating electric field is investigated, including the measurement of the degree of deformation of these bubbles. Introduction The study presented in [7] focuses on the electrical breakdown voltage of transformer oil when it presents gaseous bubbles.The breakdown voltage stabilization effect is postulated to be due to the predominance of PDs in the sulfur hexafluoride bubbles, as opposed to the stochastic influence of chemical impurities and particulate materials. Introduction In [8], a description is given of the different stages prior to collapse in the dielectric oil of a transformer.This is achieved by deforming an air bubble introduced between highvoltage (HV) electrodes, adjusting the separation between the electrodes and maintaining a non-uniform electric field, while keeping the hydrostatic pressure constant. Introduction In [9], it is explored how the paper insulation system, in a transformer, retains a certain amount of moisture.Moisture tends to release from the paper as temperatures increase, being absorbed by the insulating oil.However, in situations of sudden temperature increase, such as when energizing the transformer for the first time or during an emergency overload, this moisture is abruptly released from the paper into the oil, causing gaseous bubbles. Introduction In [10], the pattern of the evolution of bubbles in liquids in the presence of repetitive pulsed power is analyzed.Finally, ref. [11] addresses the mechanisms of bubble discharge and deterioration of paper-oil insulation, offering guidance for the diagnosis of transformer failures. Introduction The use of low-cost camera systems in remote sensing applications is widely recognized.Research on the utilization of these low-cost cameras in engineering and science applications is discussed in detail in [12].With a similar approach, ref. [13] focuses on the study of the corona effect in aeronautical environments using low-cost cameras, such as the Raspberry Pi. Introduction A more contemporary analysis of low-cost, high-resolution image sensors is presented in [14].This work explores the broad application of optical recording and tracking systems in mechanical and physical testing, such as strain measurements and high-speed particle tracking.These systems provide detailed and precise visual data that escape perception with the naked eye due to their speed. Introduction The determination of breakdown voltage in mineral dielectric oils using low-cost image sensors is analyzed in [15].This study provides a distribution of the Kelvin forces moments before the dynamic behavior of the electric arc begins, as well as the state of the gases that are generated moments after the appearance of the electric arc in the oil. Introduction In [16], a set of hypersensitive optical sensors is developed for multispectral detection of PDs.Multispectral pulses were experimentally obtained for three typical types of PDs in gas-insulated systems.Classification algorithms were adopted to evaluate the three typical types, obtaining success ratios greater than 91%. Introduction In [17], a room-temperature optical humidity sensor based on Nafion, a hydrophilic polymer, is theoretically and experimentally investigated.Results of the relative humidity retrieval with the regression of the physical model parameters are compared to those obtained with different machine learning (ML) techniques. Introduction Convolutional neural networks (CNNs) have revolutionized the ability of computers to analyze and interpret images in a wide variety of applications, ranging from object detection in autonomous vehicles to classifying skin cancer images (for further information, see [18]).These networks, inspired by the visual organization of the human brain, have proven to be highly effective in image classification thanks to their ability to learn and represent the features present in the input data in a hierarchical and discriminative way. Introduction CNNs have become a foundational technology in fields such as computer vision, artificial intelligence, and deep learning.The ability of these networks to automatically learn relevant features from images has greatly simplified the classification process, reducing the need for manual feature extraction. Introduction The references provided below give an overview of recent advances in the field of CNNs and deep learning applied to image classification. Introduction E-cientNet architecture is proposed in [19], which achieves optimal performance in image classification by efficiently optimizing the model size.The contribution of [20] is relevant to image segmentation and has been widely used in object classification applications. Introduction A popular architecture for real-time object detection is studied in [21], and the improved version, YOLOv3, used in image classification applications.The work of [22] focuses on image translation and domain adaptation, which is relevant for image classification in environments with data from different modalities. Introduction Over the years, the architecture of CNNs has undergone constant refinements, giving rise to cutting-edge models such as AlexNet, VGG, Inception, ResNet and other variants, which have set records in image classification competitions such as the Challenge of ImageNet.In [23], an ImageNet Classification with Deep CNNs is studied. Introduction The particular uses of CNNs and signal processing techniques related to PD detection in the field of electrical engineering are summarized below.In [24], the use of CNNs is proposed for PD detection in high-voltage transformers using UHF sensors.In [25], the focus is on the use of CNNs to recognize PD patterns in gas-insulated substations.In [26], an analysis of recent advances in PD classifications using CNNs is made.In [27], PD pattern recognition in GIS-type switches using CNNs with complex data sources is analyzed. Introduction In [28], the CNN model studies PDs, highlighting the importance of not ignoring weak PD signals and the need for extended measurements to improve their detection.This study advances the understanding of epoxy material behavior and the refinement of breakdown detection techniques for practical applications. Introduction A pulse sequence analysis (PSA) method that uses a CNN to recognize defects in power cable splices is presented in [29].PSA showed effective results compared to conventional methods.The accuracy of the PSA-based CNN model was 95.3%. Introduction In [30], a wireless sensor network (WSN) is combined with a CNN, forming a hybrid framework to detect the pollution status in high-voltage insulators.The WSN comprises the set of sensor readings from each high-voltage insulator on the transmission tower.The sensor readings collected from the sensor network are sent to the processing or sensing unit, where the CNN is used to detect high-voltage insulators with PDs. Introduction Ref. [31] presents a state-of-the-art review on ML-based intelligent diagnostics that have been applied for PD detection, localization, and recognition.Furthermore, technical obstacles are identified that prevent smart PD diagnostics from being applied to the industry, such as insufficient/imbalanced data sets, data inconsistency, and difficulties in costeffective real-time implementation. Introduction In [32], a PD test is performed on five types of artificial defects in ethylene propylene rubber cables in an HV laboratory to generate signals containing PD data.A total of 3500 sets of PD transient pulses are also extracted, and then 33 types of PD characteristics are established.With these data, a CNN is applied.The typical CNN architecture and key factors affecting the accuracy of CNN-based pattern recognition are described.In [33], a CNN model is proposed to identify and classify different types of events, including internal PD, corona PD, surface PD, and noise. Introduction To our knowledge, the use of these CNN techniques has not been applied in PD analyses in transformer oils with low-cost optical sensors.In this paper, an exhaustive study of the PDs that originate from the bubbles present in the dielectric mineral oil is carried out.These discharges are precursors to electric arc breakdown, and as such represent a method of diagnosing the condition of the mineral oil before breakdown occurs. Introduction To address this problem, the implementation of a combined system is proposed that integrates a high-resolution, low-cost CMOS camera, together with a standard electrical detection system based on a discharge capacitor.The Raspberry Pi 4/2 GB platform is used in conjunction with camera lenses, providing accessibility and portability.The Raspberry Pi Foundation offers computational and digital tools, such as intuitive documentation and interactive development environments for the Python programming language, facilitating the acquisition and subsequent analysis of data. Introduction In the present article, an image classification model is developed using deep learning with a CNN based on a TensorFlow [34] and Keras [35] model.These images are classified into four classes: containing PDs, without PDs, those that present rupture of the electric arc, and finally those that present gaseous bubbles after the rupture of the arc.The effectiveness of the trained CNN is evaluated by validating it with images that were not used during the training process. Introduction This article is divided into the sections listed below.Section 2, Theoretical and experimental background, describes the experimental design of the test device and explains the optical characterization of the measurement system.In Section 3, PD in gaseous bubbles dissolved in oil, the numerical results of the electric potential and electric field intensity for one and two bubbles in a steady state are presented.Section 4, CNN design, training, and validation, describes the design, training, and validation of a CNN using TensorFlow to identify PDs.Finally, in Section 5, Conclusions, the main conclusions are presented. Theoretical and Experimental Background The theoretical and experimental background of the article is summarized below.Firstly, the experimental design of the test device is presented and the experimental setup used to generate and measure the PDs in the dielectric oil with bubbles is described.It details the main components of the system, such as the power supply, the electrodes, the CMOS image sensor, the discharge capacitor and the polarizers. Theoretical and Experimental Background Secondly, the optical characterization of the measurement system is carried out and the fundamental optical characteristics of the components used in the experiments are analyzed, such as the compact fluorescent lamp (CFL), the laser, the polarizers and the optical glass of the windows of the measurement cell.Additionally, it explains how polarizers are adjusted to minimize transmitted light and how PD is detected using the Kerr effect and the high-quality camera-an HQ camera. HV Laboratory Description The laboratory has two clearly separated rooms: the HV room where the tests are carried out, and the LV room where the low-voltage (LV) control and the measuring equipment are located. HV Laboratory Description The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b). HV Laboratory Description The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b). HV Laboratory Description The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b). HV Laboratory Description The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme. Raspberry Pi HQ and V2 Cameras Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme. Raspberry Pi HQ and V2 Cameras Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme. Raspberry Pi HQ and V2 Cameras Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Figure 5. Electrical scheme.Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme. Raspberry Pi HQ and V2 Cameras Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses in the CS and C-mount formats.It should be noted that for C-mount lenses, the C-CS adapter is included. Raspberry Pi HQ and V2 Cameras in the CS and C-mount formats.It should be noted that for C-mount lenses, the C-CS adapter is included.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm. Raspberry Pi HQ and V2 Cameras In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm. Raspberry Pi HQ and V2 Cameras In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm. Raspberry Pi HQ and V2 Cameras In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras. Description of the Raspberry Pi 4 Computer The Raspberry Pi 4 computer [39] (Figure 8) controls the image sensor, collects the images and sends them to the control zone via Wi-Fi.Its main characteristics are summarized below. Description of the Camera Control Software The camera modules, HQ and V2, connected to the Raspberry Pi computer offer a wide range of possibilities thanks to the system's programmability.These applications provide a multitude of options, and their operation can be further simplified using scripting software.The software version used is Python 3.8.The Raspberry Pi 4 computer [39] (Figure 8) controls the image sensor, collects the images and sends them to the control zone via Wi-Fi.Its main characteristics are summarized below. Description of the Camera Control Software The camera modules, HQ and V2, connected to the Raspberry Pi computer offer a wide range of possibilities thanks to the system's programmability.These applications provide a multitude of options, and their operation can be further simplified using scripting software.The software version used is Python 3.8. Description of the Camera Control Software We used the cameras in the experiments with the Raspberry Pi camera libraries that are available in Python to develop custom applications with their features [40]. Description of the Camera Control Software The practical implementation of the camera modules follows a sequence of four main steps: composition, exposure selection, image or video capture, and post-processing.Composition and focus are initially achieved through a real-time preview window.Exposure time is precisely set to ensure consistent images. Optical Characterization of the Measurement System This section details the key optical characteristics of the components used in the experiments, including the CFL, red laser, polarizers, and the optical glass of the windows of the measurement cell. Optical Characterization of the Measurement System Firstly, in Section 2.2.1, a spectrum analysis of both the CFL and red laser is carried out.A detailed explanation on adjusting the polarizers is provided in Section 2.2.2.Finally, in Section 2.2.3, PD detection using the Kerr effect and the use of the HQ camera is discussed. CFL and Laser Light Spectrum Analysis The light beam from the CFL and the red laser pass through the polarizers and the two quartz glass windows of the measurement cell.We used JGS2 optical quartz glass [41] for the windows. CFL and Laser Light Spectrum Analysis Quartz glass is recognized for its outstanding performance in the transmission of ultraviolet (UV) light, with extremely low absorption of visible light and near-infrared light in the range of 220-2500 nm, without presenting significant absorption bands.We used the cameras in the experiments with the Raspberry Pi camera libraries that are available in Python to develop custom applications with their features [40]. CFL and Laser Light Spectrum Analysis The practical implementation of the camera modules follows a sequence of four main steps: composition, exposure selection, image or video capture, and post-processing.Composition and focus are initially achieved through a real-time preview window.Exposure time is precisely set to ensure consistent images. Optical Characterization of the Measurement System This section details the key optical characteristics of the components used in the experiments, including the CFL, red laser, polarizers, and the optical glass of the windows of the measurement cell. Optical Characterization of the Measurement System Firstly, in Section 2.2.1, a spectrum analysis of both the CFL and red laser is carried out.A detailed explanation on adjusting the polarizers is provided in Section 2.2.2.Finally, in Section 2.2.3, PD detection using the Kerr effect and the use of the HQ camera is discussed. CFL and Laser Light Spectrum Analysis The light beam from the CFL and the red laser pass through the polarizers and the two quartz glass windows of the measurement cell.We used JGS2 optical quartz glass [41] for the windows. CFL and Laser Light Spectrum Analysis Quartz glass is recognized for its outstanding performance in the transmission of ultraviolet (UV) light, with extremely low absorption of visible light and near-infrared light in the range of 220-2500 nm, without presenting significant absorption bands.Furthermore, it is characterized by an exceptionally low coefficient of thermal expansion and good chemical stability similar to that of standard optical glass.In summary, quartz glass is considered the optimal material for harsh environments and is classified as UV optical quartz glass with the JGS2 designation.To achieve precise alignment of polarizers 1 and 2, as clearly shown in Figure 9, a CFL and a red laser were employed. CFL and Laser Light Spectrum Analysis Sensors 2024, 24, x FOR PEER REVIEW 9 of 35 Furthermore, it is characterized by an exceptionally low coefficient of thermal expansion and good chemical stability similar to that of standard optical glass.In summary, quartz glass is considered the optimal material for harsh environments and is classified as UV optical quartz glass with the JGS2 designation. CFL and Laser Light Spectrum Analysis To achieve precise alignment of polarizers 1 and 2, as clearly shown in Figure 9, a CFL and a red laser were employed.We measured the wavelength of the red laser used for the optimal configuration of the polarizers, which was 645.4 nm.The manufacturer specifies it in a range of 650 ± 10 nm.This value and its relationship with the laser spectrum are detailed in Figure 10a. CFL and Laser Light Spectrum Analysis Additionally, the spectrum of the CFL was realized.It includes lines of 435.83 nm in the violet-blue range and 546.07 nm, in deep green, which are attributable to the mercury present in all CFLs.Additional blue lines can also be observed in the final region of the spectrum, which correspond to the infrared region.This spectrum is represented in Figure 10b.A spectrometer was used with a dispersion coefficient of 0.53 nm/pixel for all measurements carried out in the experiments.The spectrometer images were taken with the V2 camera, without an infrared filter and with the Sony IMX219 CMOS sensor.We measured the wavelength of the red laser used for the optimal configuration of the polarizers, which was 645.4 nm.The manufacturer specifies it in a range of 650 ± 10 nm.This value and its relationship with the laser spectrum are detailed in Figure 10a. Optimal Position of the Polarizers PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD. Optimal Position of the Polarizers To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each Additionally, the spectrum of the CFL was realized.It includes lines of 435.83 nm in the violet-blue range and 546.07 nm, in deep green, which are attributable to the mercury present in all CFLs.Additional blue lines can also be observed in the final region of the spectrum, which correspond to the infrared region.This spectrum is represented in Figure 10b.A spectrometer was used with a dispersion coefficient of 0.53 nm/pixel for all measurements carried out in the experiments.The spectrometer images were taken with the V2 camera, without an infrared filter and with the Sony IMX219 CMOS sensor. Optimal Position of the Polarizers PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD. Optimal Position of the Polarizers To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each other, rotated relative to each other at a certain angle that minimizes the passage of light between them (see Figure 11a). Optimal Position of the Polarizers PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD. Optimal Position of the Polarizers To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each other, rotated relative to each other at a certain angle that minimizes the passage of light between them (see Figure 11a). Optimal Position of the Polarizers The cell (Figure 11b) is a transparent methacrylate prism that contains two electrodes, one connected to ground and the other to HV.The PD test circuit was set up according to the IEC 60270 standard [36].The International Electrotechnical Commission (IEC) is a worldwide organization for standardization.The cell (Figure 11b) is a transparent methacrylate prism that contains two electrodes, one connected to ground and the other to HV.The PD test circuit was set up according to the IEC 60270 standard [36].The International Electrotechnical Commission (IEC) is a worldwide organization for standardization. Optimal Position of the Polarizers The sides of the cell have two circular windows of quartz optical glass.These allow the light beam to pass, without distortion, between the two electrodes.The upper part of the part is a removable cover that serves to introduce the dielectric oil that surrounds and covers the electrodes.In addition, the upper cover has a circular opening through which a thermometer can be inserted to take measurements of the oil temperature before and after each test.Likewise, it is suitable for taking overhead images of the electrodes during HV tests. Optimal Position of the Polarizers The two polarizers are in parallel planes.One is fixed, polarizer 1, and the other can rotate around the axis perpendicular to its plane, polarizer 2. The movement is produced in a controlled manner thanks to a stepper motor that transmits its rotation through two gears (see Figure 9).The transmission gear, attached to the motor, transmits the movement through a driving belt to a second, larger gear, integral with the mobile polarizer. Optimal Position of the Polarizers An ESP-32 microcontroller controls the slow rotation of polarizer 2. The ESP-32 microcontroller, working as a transmitter, is in the HV room (see Figure 12 38 pin, dual core, ultralow power, and Wi-Fi and Bluetooth compatible (see Figure 12).The ESP-32s are powered by AC rechargeable 5V DC batteries. Optimal Position of the Polarizers mum luminosity, recording the images of a HQ camera and the relative angle of rotation of polarizer 2, using an ADXL345 inclinometer (see Figure 12). Optimal Position of the Polarizers The digital sensor ADXL345 is a small, thin, ultralow-power, 3-axis accelerometer with high-resolution (13-bit) measurement up to ±16 g.Digital output data are formatted as 16-bit two's complement and are accessible through either a SPI (3-or 4-wire) or I 2 C digital interface.It enables measurement of inclination changes less than 1.0°. Optimal Position of the Polarizers Images acquired by the HQ camera are transmitted by Wi-Fi from a Raspberry Pi transmitter, located in the HV room, to a Raspberry Pi receiver located in the LV room, where a PC displays the images when the experiment is concluded (see Figure 12).To avoid light pollution caused by natural light or possible laboratory spotlights, a dark room large enough to house the experimental devices and two people, who can intervene in the equipment when not working in HV, was constructed.The approximate dimensions of the dark room are 3 × 3 m in plan and 2.25 m in height.Using a lux meter, it was verified that the luminosity was zero when the interior lights of the chamber were turned off. Optimal Position of the Polarizers We precisely determined the relative position in which polarizer 2 transmits a minimum luminosity, recording the images of a HQ camera and the relative angle of rotation of polarizer 2, using an ADXL345 inclinometer (see Figure 12). Optimal Position of the Polarizers The digital sensor ADXL345 is a small, thin, ultralow-power, 3-axis accelerometer with high-resolution (13-bit) measurement up to ±16 g.Digital output data are formatted as 16-bit two's complement and are accessible through either a SPI (3-or 4-wire) or I 2 C digital interface.It enables measurement of inclination changes less than 1.0 • . Optimal Position of the Polarizers Images acquired by the HQ camera are transmitted by Wi-Fi from a Raspberry Pi transmitter, located in the HV room, to a Raspberry Pi receiver located in the LV room, where a PC displays the images when the experiment is concluded (see Figure 12). Optimal Position of the Polarizers The gray scale is an indirect measure of the intensity of light that goes through the polarizer 2 to the HQ camera.In a grayscale image, each pixel has a value between 0 and 255, where zero corresponds to black and 255 corresponds to white.The values between 0 and 255 are varying shades of gray, where values closer to 0 are darker and values closer to 255 are lighter. Optimal Position of the Polarizers The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis. Optimal Position of the Polarizers Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken. Optimal Position of the Polarizers The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis. Optimal Position of the Polarizers Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light. Optimal Position of the Polarizers The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis. Optimal Position of the Polarizers Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light.The CFL presents a minimum in the gray scale for a phase shift of −0.11 • and the red laser beam gives a minimum for −0.33 • .We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure 14). Optimal Position of the Polarizers The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure 12).The average room temperature recorded during the experimental tests was 25 • C, the atmospheric pressure 985 mb, and the relative humidity 58%.The CFL presents a minimum in the gray scale for a phase shift of −0.11° and the red laser beam gives a minimum for −0.33°.We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure 14). Optimal Position of the Polarizers The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure 12).The average room temperature recorded during the experimental tests was 25 °C, the atmospheric pressure 985 mb, and the relative humidity 58%. Optimal Position of the Polarizers A DS18B20 waterproof temperature sensor was used [44] to measure the temperature of the oil before and after the experiments.Temperature changes less than one degree Celsius were detected.Its unique one-wire interface facilitated communication with the devices.It does not require an external power supply unit, as it is powered from the data line.Its stainless-steel probe head makes it suitable for any wet or harsh environment.This thermal sensor was powered from a 3.2 V DC power supply.A DS18B20 waterproof temperature sensor was used [44] to measure the temperature of the oil before and after the experiments.Temperature changes less than one degree Celsius were detected.Its unique one-wire interface facilitated communication with the devices.It does not require an external power supply unit, as it is powered from the data line.Its stainless-steel probe head makes it suitable for any wet or harsh environment.This thermal sensor was powered from a 3.2 V DC power supply. PD Detection Using Kerr Effect and HQ Camera In this section, we begin by defining the magnitudes associated with the Kerr effect.The refractive index, n0, according to [45], is defined as the ratio between the speed of light in a vacuum, c, and the speed of light in a specific medium, v.In our case, when using dielectric oil, this refractive index is calculated as n 0 = √ ε roil •µ roil , which gives us a value of n 0 = √ 2.14.It is essential to note that in the absence of an electric field, mineral oil exhibits isotropy and therefore has this refractive index. PD Detection Using Kerr Effect and HQ Camera However, when an electric field E is applied to the oil, a double-refraction phenomenon is observed.Along with the refractive index, n 0 , an additional ray appears called the extraordinary ray, which has a refractive index of n e .These two indices are related through the well-known Kerr's law, represented as n e − n 0 = kE 2 . PD Detection Using Kerr Effect and HQ Camera Birefringence in oil, which is the double refraction caused by the intensity of the external electric field, is quantified as the difference between these refractive indices, n e − n 0 .The constant k is usually referenced for a wavelength of 546 nm.It corresponds to intense green (see Figure 10b).It is obtained by multiplying this wavelength by the Kerr constant, which for a dielectric mineral oil is 1.8•10 −15 m/V 2 [45].This gives us a value of k = 9.82•10 −22 m 2 /V 2 . PD Detection Using Kerr Effect and HQ Camera Since polarized rays have different refractive indices, their speeds are different.The extraordinary ray, with a higher refractive index, is slower, while the ordinary ray, with a lower refractive index, is faster.The ordinary ray follows Snell's law of refraction.Furthermore, these two rays are polarized perpendicularly to each other. PD Detection Using Kerr Effect and HQ Camera When polarizers 1 and 2 (Figure 9) are orthogonal to each other, as explained in the previous subsection, and in the absence of an external electric field, the light, coming from the CFL and reaching the camera, shows a minimum intensity corresponding to ordinary lightning.However, upon applying an electric field strong enough to generate a PD, the intensity of the electric field increases in the region of the PD.This, in accordance with Kerr's law, causes the extraordinary ray, polarized perpendicularly to the ordinary ray, to pass through polarizer 2 with greater intensity, allowing it to be detected by the HQ camera. PD Detection Using Kerr Effect and HQ Camera This physical principle is used to visualize the areas of greatest electric field that are generated at the electrodes in the PD regions within the oil, as illustrated in Figure 16. PD Detection Using Kerr Effect and HQ Camera a value of = √2.14.It is essential to note that in the absence of an electric field, mineral oil exhibits isotropy and therefore has this refractive index. PD Detection Using Kerr Effect and HQ Camera However, when an electric field is applied to the oil, a double-refraction phenomenon is observed.Along with the refractive index, , an additional ray appears called the extraordinary ray, which has a refractive index of .These two indices are related through the well-known Kerr's law, represented as − = . PD Detection Using Kerr Effect and HQ Camera Birefringence in oil, which is the double refraction caused by the intensity of the external electric field, is quantified as the difference between these refractive indices, − .The constant is usually referenced for a wavelength of 546 nm.It corresponds to intense green (see Figure 10b).It is obtained by multiplying this wavelength by the Kerr constant, which for a dielectric mineral oil is 1.8•10 −15 m/V 2 [45].This gives us a value of = 9.82•10 −22 m 2 /V 2 . PD Detection Using Kerr Effect and HQ Camera Since polarized rays have different refractive indices, their speeds are different.The extraordinary ray, with a higher refractive index, is slower, while the ordinary ray, with a lower refractive index, is faster.The ordinary ray follows Snell's law of refraction.Furthermore, these two rays are polarized perpendicularly to each other. PD Detection Using Kerr Effect and HQ Camera When polarizers 1 and 2 (Figure 9) are orthogonal to each other, as explained in the previous subsection, and in the absence of an external electric field, the light, coming from the CFL and reaching the camera, shows a minimum intensity corresponding to ordinary lightning.However, upon applying an electric field strong enough to generate a PD, the intensity of the electric field increases in the region of the PD.This, in accordance with Kerr's law, causes the extraordinary ray, polarized perpendicularly to the ordinary ray, to pass through polarizer 2 with greater intensity, allowing it to be detected by the HQ camera. PD Detection Using Kerr Effect and HQ Camera This physical principle is used to visualize the areas of greatest electric field that are generated at the electrodes in the PD regions within the oil, as illustrated in Figure 16. PD Detection Using Kerr Effect and HQ Camera Figure 16.The PD between the electrodes generates an intense electric field concentrated in the discharge area.As a result, the extraordinary ray, which is polarized perpendicularly to the ordinary ray, passes through polarizer 2 with a significantly higher intensity, allowing it to be detected by the HQ camera. Validation of the Permanent Regime of the Electric Field of a Bubble Next, the main PD models and their numerical resolution, in a steady state, for the test cell (see Figure 11b) are explained.In [46], the simulation of PD events in a void space within an insulating material is discussed and several models developed to simulate these PD events.They can be classified into three categories: the induced charge concept model, Figure 16.The PD between the electrodes generates an intense electric field concentrated in the discharge area.As a result, the extraordinary ray, which is polarized perpendicularly to the ordinary ray, passes through polarizer 2 with a significantly higher intensity, allowing it to be detected by the HQ camera.Next, the main PD models and their numerical resolution, in a steady state, for the test cell (see Figure 11b) are explained.In [46], the simulation of PD events in a void space within an insulating material is discussed and several models developed to simulate these PD events.They can be classified into three categories: the induced charge concept model, the three-capacitor model, and the finite element method model, which is a distributed parameter model.Each has its own advantages and disadvantages. PD in Gaseous Bubbles In this work, the distributed parameter model was followed [47], which is more accurate than the other two, because unlike them, it considers the 3D geometry of the measurement cell and the electrodes. PD in Gaseous Bubbles In [47], a distributed parameter model is developed, applying the finite formulation [48] and using effective property parameters.This is the model followed in this work.The main equations are presented below: PD in Gaseous Bubbles The most relevant effective physical quantities involved in these equations, which were used in the simulations, are detailed in 47] and can be summarized as follows: the frequency, f = 50 Hz, the relative permittivity, ε roil = 2.14, and the effective electrical conductivity of the oil, σ = 45•10 −12 S/m, for an oil temperature of T = 25 • C. PD in Gaseous Bubbles The boundary condition of the HV electrode is made to match the experimental measurements recorded by the DDX-9101 PD detector.All simulations were carried out in 3D with the Gmsh mesh generator [49].Although in some cases, the problem has axial symmetry, the situation of the bubbles makes a general analysis in 3D necessary.In these latter conditions, the mesh used has a number of nodes equal to 82,655, the number of triangles is 43,290 and the number of tetrahedra is 441,057.The system of equations set out in Equation ( 2) is formulated according to the finite formulation.In that case, the solution is equivalent to applying the finite element method.For this reason, the Getdp program [50] was used, which is a general environment for the treatment of discrete problems. PD in Gaseous Bubbles In order to validate the numerical results obtained from Equation (2), they were compared with the results obtained through a known analytical expression [5] that describes the behavior of an electric field in a gaseous bubble.This equation governs the distribution of electric field intensity both inside and outside a spherical bubble at specific points, the poles and the equator. PD in Gaseous Bubbles We will begin by presenting the numerical results derived from Equation (2). Figure 17a shows the numerical results corresponding to the electric potential in the absence of breaks and without the presence of a bubble.The potential distribution between the electrodes reflects an effective voltage difference of 3.5 kV.In Figure 17b, the distribution of the electric field intensity can be observed, where the maximum value recorded is 2.03•10 6 V/m.This distribution is uniform between the electrodes in their narrowest part without the presence of a bubble.Then, the distribution of the electric field intensity is presented, both inside and outside, of a bubble located between the two electrodes, obtained by solving Equations (2). Figure 18a shows the modulus of the electric field intensity, which is maximum and uniform within the bubble before a rupture occurs in the PD. Figure 18b provides a detail of the electric field intensity in the vicinity of the bubble. PD in Gaseous Bubbles To corroborate the numerical results obtained in this work, a comparison was carried out with a widely recognized analytical equation.In this case, we consider a gaseous bubble with radius R immersed in a dielectric oil characterized by a relative permittivity constant ε roil = ε ε 0 .The bubble is in a uniform external electric field, → E 0 , as depicted in Figure 17b. PD in Gaseous Bubbles → E 0 , without the bubble, is aligned with the axis of the electrode poles, as shown in Figure 17a.By introducing a gaseous bubble between the electrodes, the electric field → E, inside the bubble, becomes parallel and uniform, as seen in Figure 18.There is an analytical equation [5] that establishes the relationship between the field inside the bubble and → E 0 , as presented in Equation ( 4): PD in Gaseous Bubbles At the poles, θ = [0, π], the electric field intensity of the spherical bubble is less than → E 0 , as described in Equation ( 5): PD in Gaseous Bubbles Sensors To corroborate the numerical results obtained in this work, a comparison was carried out with a widely recognized analytical equation.In this case, we consider a gaseous bubble with radius R immersed in a dielectric oil characterized by a relative permittivity constant = .The bubble is in a uniform external electric field, ⃗ , as depicted in Fig- ure 17b. ⃗ , without the bubble, is aligned with the axis of the electrode poles, as shown in Figure 17a.By introducing a gaseous bubble between the electrodes, the electric field ⃗ , inside the bubble, becomes parallel and uniform, as seen in Figure 18.There is an analytical equation [5] that establishes the relationship between the field inside the bubble and ⃗ , as presented in Equation ( 4): PD in Gaseous Bubbles At the poles, = 0, , the electric field intensity of the spherical bubble is less than ⃗ , as described in Equation ( 5): It was also confirmed that at the equator, θ = π /2, the electric field intensity at the surface of the gaseous bubble increases compared to → E 0 in the absence of bubble, as illustrated in Figure 18. PD in Gaseous Bubbles The quotient in the center of the bubble of the values obtained numerically is E center/E 0 = 1.182.The value obtained with the analytical Equation ( 4) is 1.216.It is an error of 2.7%.The electric field intensity distribution in Figure 18a is prior to the breakdown of the PD. Numerical and Experimental Results with Two-Bubble Rupture In the previous section, we looked at the distribution of electric field strength, both inside and around a gaseous bubble.This analysis was carried out by comparing the numerical solution derived from Equation (2) with the analytical formulation presented in Equation (4). Numerical and Experimental Results with Two-Bubble Rupture In this section, we proceed to an evaluation of the distribution of the electric potential and the intensity of the electric field in the area surrounding two bubbles in the region between the electrodes, with the condition of a PD. Figure 19a graphically represents the distribution of the electric potential around two bubbles, each with an approximate diameter of 0.6 mm.This distribution was obtained under a constant boundary condition on the HV electrode, set at 5.3 kV effective. Numerical and Experimental Results with Two-Bubble Rupture Figure 19b provides a view of the electric field intensity distribution in the vicinity of the two bubbles located between the electrodes during a PD.It is relevant to highlight that the electric field intensity reaches its maximum value at the poles of the bubbles and gradually decreases until reaching its minimum value at the center of the bubbles. Numerical and Experimental Results with Two-Bubble Rupture The boundary condition of 5.3 kV used in the simulation was set based on the experimental measurements obtained through the DDX-9101PD detector, with an approximate induced charge of 0.760 nC, as illustrated in Figure 20a.Additionally, in Figure 20b, the image captured by the HQ camera is presented, through an optical glass and specific polarizers, under the same conditions of potential difference of 5.3 kV.From this voltage, in the laboratory, the first PDs were observed.The analysis was carried out in a 3D domain because the general arrangement of the bubbles does not allow an axially symmetrical approach. Numerical and Experimental Results with Two-Bubble Rupture Figure 19b provides a view of the electric field intensity distribution in the vicinity of the two bubbles located between the electrodes during a PD.It is relevant to highlight that the electric field intensity reaches its maximum value at the poles of the bubbles and gradually decreases until reaching its minimum value at the center of the bubbles. Numerical and Experimental Results with Two-Bubble Rupture The boundary condition of 5.3 kV used in the simulation was set based on the experimental measurements obtained through the DDX-9101PD detector, with an approximate induced charge of 0.760 nC, as illustrated in Figure 20a.Additionally, in Figure 20b, the image captured by the HQ camera is presented, through an optical glass and specific polarizers, under the same conditions of potential difference of 5.3 kV. Introduction In order to carry out the design, training and validation of the CNN, the computer applications TensorFlow and Keras were used.Keras is a Python library for machine learning and deep neural networks.Keras can run on top of TensorFlow.It was created by Google Brain in 2011.Since 2015, it has been open source [18].In TensorFlow 2.0 and later, Keras has become the default high-level application programming interface (API) for defining and training neural networks within TensorFlow. Introduction TensorFlow has a backend component that is programmed in more efficient and low-level programming languages, such as C or C++.This is important because Python, although a versatile and easy-to-use language, tends to be slower in executing certain mathematical operations and intensive calculations compared to languages like C/C++. Introduction All our simulations with TensorFlow were carried out in the Google Colab environment.Colaboratory or Google Colab is a free online platform.It allows users to run and write code in Python through their web browser.It is based on the Jupyter Notebook development environment.It offers a cloud runtime environment that includes access to powerful computing resources, such as Google's graphics processing units (GPUs) and tensor processing units (TPUs). Introduction This section details the process that was followed, from the initial collection of images, and their subsequent classification, as described in Section 4.2.Subsequently, the artificial enrichment of the images is addressed by transformations before carrying out the training, which is explained in Section 4.3. Introduction Then, we proceed to the creation and design of the most suitable convolutional neural network, as explained in Section 4.4.Next, the model is compiled.This is a crucial step that is documented in Section 4.5. Introduction The network training process is detailed in Section 4.6, where the specific parameters and settings used in TensorFlow, within the Google Colab environment, are explained in depth to facilitate more precise monitoring.Two fundamental aspects of neural network convergence are addressed in Sections 4.7 and 4.8, which focus on convergence for three and four classes, respectively, providing a detailed understanding of how the network adapts to different data sets and requirements. Introduction Finally, model validation is carried out, where its performance is tested using images that were used in the CNN training process.This is described comprehensively in Section 4.9. Introduction In each of these subsections, detailed explanations of the parameters and functions used in TensorFlow, in the Google Colab environment, are included with the purpose of offering a complete and precise guide to the entire process carried out in this work. Image Collection and Classification into Classes The main objective of the CNN is to analyze images and determine which category they belong to, in addition to quantifying the accuracy of this classification.This can be seen in detail in Figure 21. Image Collection and Classification into Classes Figure 21 shows a visual representation of the CNN.It presents the following layers: Image Collection and Classification into Classes • Convolutional: in this layer, each filter is applied to the image in successive positions along the image, and through convolution operations, a features map is generated. • Pooling: the aim of this layer is to reduce the computational load by reducing the size of the feature maps. • Fully connected: this layer takes the convolutional features, previously flattened, generated by the last convolutional layer and makes a prediction. Image Collection and Classification into Classes The main objective of the CNN is to analyze images and determine which category they belong to, in addition to quantifying the accuracy of this classification.This can be seen in detail in Figure 21.• Convolutional: in this layer, each filter is applied to the image in successive positions along the image, and through convolution operations, a features map is generated. • Pooling: the aim of this layer is to reduce the computational load by reducing the size of the feature maps. • Fully connected: this layer takes the convolutional features, previously flattened, generated by the last convolutional layer and makes a prediction. • To carry out this process, it is essential to have a set of images as broad and diverse as possible, along with their respective classification into classes of interest.In our case, we have a dataset that consists of a total of 2000 images. • In our experiments, we defined four specific classes: • • Class 0-PD (with PD): This category is illustrated in Figure 22, where eight images randomly selected from a set of 500 are shown.These images represent different instances of the PD, which were experimentally verified through electrical measurements through the discharge capacitor. • Class 1-NO_PD (without PD): Figure 23 presents eight random images out of a total of 500 that belong to this category.These images represent moments in which the PD detector DDX-9101 does not detect any PD. • Class 2-ARC (total rupture of the electric arc): Figure 24 shows images that correspond to the moment of total rupture of the electric arc.• Class 3-BREAK (post-arc break with a large number of bubbles): Finally, Figure 25 shows a random selection of eight images out of a total of 500 belonging to this class. • In summary, the main objective of the neural network is to classify images into these four categories, and to achieve this, a large and varied dataset consisting of 2000 images in total was used.Each class has its own identification and is supported by a representative sample of images from its respective category.To carry out this process, it is essential to have a set of images as broad and diverse as possible, along with their respective classification into classes of interest.In our case, we have a dataset that consists of a total of 2000 images. • In our experiments, we defined four specific classes: • • Class 0-PD (with PD): This category is illustrated in Figure 22, where eight images randomly selected from a set of 500 are shown.These images represent different instances of the PD, which were experimentally verified through electrical measurements through the discharge capacitor. • Class 1-NO_PD (without PD): Figure 23 presents eight random images out of a total of 500 that belong to this category.These images represent moments in which the PD detector DDX-9101 does not detect any PD. • Class 2-ARC (total rupture of the electric arc): Figure 24 shows images that correspond to the moment of total rupture of the electric arc. • Class 3-BREAK (post-arc break with a large number of bubbles): Finally, Figure 25 shows a random selection of eight images out of a total of 500 belonging to this class.In summary, the main objective of the neural network is to classify images into these four categories, and to achieve this, a large and varied dataset consisting of 2000 images in total was used.Each class has its own identification and is supported by a representative sample of images from its respective category. Image Transformation In order to strengthen the model's ability to generalize and make accurate predictions, new images were obtained through the HQ camera.For this, the ImageDataGenerator() function was used.This function makes it possible through transformations to create multiple variations of the original images, thus enriching the data set and improving the generalization of the model.This function was applied before training the CNN model.Some of the main arguments used in our work by this function are detailed below: Image Transformation • "rescale = 1/255" is a simple normalization, where the value of each pixel in the image is divided by 255.This is done to ensure that the pixel values are in the range [0, 1], which facilitates processing and improves convergence during training. • "rotation_range = 30" allows us to randomly rotate images within a range of ±30 de- Image Transformation In order to strengthen the model's ability to generalize and make accurate predictions, new images were obtained through the HQ camera.For this, the ImageDataGenerator() function was used.This function makes it possible through transformations to create multiple variations of the original images, thus enriching the data set and improving the generalization of the model.This function was applied before training the CNN model.Some of the main arguments used in our work by this function are detailed below: Image Transformation • "rescale = 1/255" is a simple normalization, where the value of each pixel in the image is divided by 255.This is done to ensure that the pixel values are in the range [0, 1], which facilitates processing and improves convergence during training.• "rotation_range = 30" allows us to randomly rotate images within a range of ±30 degrees.This helps the model to be more robust to different object orientations. Image Transformation • "width_shift_range = 0.25" and "height_shift_range = 0.25" allows us to shift images horizontally and vertically within a range of ±25% of the original image size.This simulates variations in object position in the image and allows the model to support greater variability in object locations.• "shear_range = 15" introduces warps that cause the image to be sheared at an angle of ±15 degrees.This is useful for working with images taken from different angles. Image Transformation • "zoom_range = [0.5, 1.5]" is a transformation that randomly zooms images in the range 0.5 to 1.5.This simulates the variability in the distance from the camera to the object and improves the model's ability to recognize objects in different sizes. Image Transformation • "validation_split = 0.2" sets the proportion of data used for validation.In this case, 20% of the data were separated to be used as a validation set, while the remaining 80% was used for training. Image Transformation Similarly, the "flow_from_directory()" function was employed, which is used in the context of data processing and preparation for training deep learning models.This function simplifies the loading and pre-processing of images stored in a folder structure organized as in the previous section. Image Transformation Below are described some of the arguments used in this function. Image Transformation • "/content/drive/MyDrive/Colab_Notebooks/dataset" is the path to the directory containing the training data.In this case, the data are organized into subfolders, where each subfolder represents an object class; in our case "PD," "NO_PD," "ARC" and "BREAK."• "target_size = (224, 224)" sets the size to which all images will be resized.The images were resized to a size of 224 × 224 pixels, which is a size commonly used in many deep learning applications.• "batch_size = 32" defines the batch size for training.During training, the images were grouped into batches of 32 images each to optimize the training process.• "shuffle = True" was set to True so that the images within each batch were randomly shuffled at each training epoch.This helps ensure that the model does not memorize the order of the images.• "classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure. Image Transformation Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function. Creation of the CNN Model There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process. Creation of the CNN Model the order of the images. Creation of the CNN Model • "classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure. Creation of the CNN Model There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process. Creation of the CNN Model The program responsible for conducting CNN training and validation is Python.shuffled at each training epoch.This helps ensure that the model does not memorize the order of the images. • "classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure. Creation of the CNN Model There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process. Creation of the CNN Model The program responsible for conducting CNN training and validation is Python.The program responsible for conducting CNN training and validation is Python.The function "model = tf.keras.Sequential()" was used to create a CNN model in TensorFlow using the Sequential interface, which is a simple way to define a linear sequence of layers in the neural network. Creation of the CNN Model Each of the sets of layers, which correspond to the arguments of the function "model = tf.keras.Sequential()" used in this model, are explained in detail below, as well as the advantages of each one: Creation of the CNN Model • "tf.keras.layers.Conv2D (32, (3,3), input_shape = (224,224,3), activation ="relu")" is a 2D convolution layer that applies 32 filters, also known as kernels, to the input image.Each filter is 3 × 3 pixels in size. Creation of the CNN Model • "input_shape = (224,224,3)" specifies the size of the input image.The images are 224 × 224 pixels with RGB color channels.The "relu" (rectified linear unit) trigger function is applied after convolution.This function is common in CNN and helps to introduce nonlinearity in the network.• "tf.keras.layers.MaxPooling2D(2,2)" is a pooling layer that reduces the spatial dimension of the output of the convolution layer.It uses the max-pooling method with a window size of 2 × 2 pixels and retains only the maximum value of those pixels.This method simplifies the number of parameters and operations in the network, which helps reduce the risk of overfitting and improves computational efficiency.• "tf.keras.layers.Conv2D(64, (3,3), activation = "relu")" is similar to the first convolution layer, but now 64 filters are used instead of 32. Creation of the CNN Model • "tf.keras.layers.Dropout(0.5)" is a dropout layer that randomly deactivates 50% of the neurons in this layer during training.Dropout is a regularization technique that helps prevent overfitting by reducing interdependence between neurons.• "tf.keras.layers.Flatten()" converts the output of the previous layer into a one- dimensional vector. Compilation Stage Setting up the "model.compile()"function is a critical step in building and training a neural network. Compilation Stage Through this function, several parameters are specified that influence how the model learns and evaluates its performance.The following details how these key parameters were implemented, each with a specific role in configuring the network and optimizing its ability to solve the problem. Compilation Stage • "optimizer = "Adam"," where the Adam optimizer is an optimization algorithm that automatically adjusts the learning rate during training.• "loss = "categorical_crossentropy"," which is the loss function used during training. Compilation Stage Our case is a multiclass classification problem, so categorical cross-entropy loss is a common option.It helps measure the difference between the probabilities predicted by the model and the true labels of the data. Compilation Stage • "metrics = "accuracy"" defines the metrics that are used to evaluate the performance of the model during training and evaluation.In this case, the accuracy metric is used, which measures the proportion of samples classified correctly. CNN Model Training In TensorFlow, the model.fit()function plays a vital role in training a neural network using training data.Through this function, the model training process is configured and monitored. CNN Model Training The arguments that are provided to the model.fit()function are essential to customize and direct this training process effectively. CNN Model Training Below, we detail how these key arguments were implemented, each with a specific role in configuring the network and optimizing its ability to solve the problem: CNN Model Training • "training_data" represents the set of training data used to train the model.It contains the input features and corresponding output labels for training.It is provided as a pair of tensors: one for features and one for labels.• "epochs" specifies the number of epochs or training cycles that are performed. CNN Model Training A complete epoch occurs when the entire training dataset has been used once to update the model weights.The value that was used in training in this work was "epochs = 50."• "batch_size = 32" defines the size of the data batch used in each training step.At each epoch, the training data are divided into batches of the specified size and used to calculate the gradient and update the model weights.A batch size larger than 32 can speed up training but requires more memory. Convergence for Three Classes Neural network design involves computationally intensive processes that can consume a significant amount of time.With the purpose of optimizing execution times and determining the optimal method, along with its parameters, the work begins with an initial focus on a set of three specific classes. Convergence for Three Classes These classes are the PD class, which covers situations with PD, the NO_PD class, which refers to instances where PD does not occur, and the BREAK class, which encompasses all images after the breakdown of the electric arc, including all the ARC class.This initial selection of three classes allows for a more agile and precise evaluation of the methods and parameters, thus accelerating the neural network design process.Three methods were evaluated, which can be implemented using TensorFlow.We wanted to know which of the three was most efficient from a computational point of view.These three methods are called the CNN method with knowledge transfer, the CNN method without dropout, and the CNN method with dropout. The CNN Method with Knowledge Transfer The results of the knowledge transfer method are seen in Figure 28.They represent the average accuracy of the training and validation data over the epochs.These visualizations were generated using TensorFlow and TensorFlow Hub, leveraging a pretrained model known as MobileNetV2. The CNN Method with Knowledge Transfer determining the optimal method, along with its parameters, the work begins with an initial focus on a set of three specific classes. The CNN Method with Knowledge Transfer These classes are the PD class, which covers situations with PD, the NO_PD class, which refers to instances where PD does not occur, and the BREAK class, which encompasses all images after the breakdown of the electric arc, including all the ARC class.This initial selection of three classes allows for a more agile and precise evaluation of the methods and parameters, thus accelerating the neural network design process.Three methods were evaluated, which can be implemented using TensorFlow.We wanted to know which of the three was most efficient from a computational point of view.These three methods are called the CNN method with knowledge transfer, the CNN method without dropout, and the CNN method with dropout.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the MobileNetV2 model remained unchanged and worked as a static feature extractor, avoiding the need to retrain it.This transfer learning strategy contributed significantly to reducing execution times, achieving a total training duration of only 1.22 h. The CNN Method with Knowledge Transfer To ensure compatibility with MobileNetV2, the expected input data were configured with dimensions of 224 × 224 pixels and RGB color channels.The dataset used for training consisted of a total of 1200 images distributed in three different classes, while the verification set consisted of 300 images equally distributed in the same three classes.The training process was carried out over 50 epochs, and no significant improvements in model performance were observed beyond this point. The CNN Method with Knowledge Transfer We observed that there was a stabilization in accuracy at between 40 and 50 epochs.Therefore, it was decided to carry out all the experiments with this maximum value of epochs for all the cases considered, as seen in Figure 28.Furthermore, from 50 epochs onwards, calculation times increase significantly without obtaining significant improvements in accuracy and with risks of overfitting. The CNN Method with Knowledge Transfer The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process. CNN Method without Dropout In this second method implemented in TensorFlow, a model that incorporates convolutional layers interleaved with max-pooling layers was used with the purpose of extracting relevant features from the input images.These features were then flattened before passing through two fully connected dense layers, responsible for carrying out the final classification.It should be noted that the output layer of this model consisted of three units, indicating that the model was designed to perform classification into three different classes. CNN Method without Dropout The results obtained from this second method are represented in Figure 29.It reflects the evolution of the average accuracy during the training and validation process throughout the different epochs. CNN Method without Dropout The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process. CNN Method without Dropout In this second method implemented in TensorFlow, a model that incorporates convolutional layers interleaved with max-pooling layers was used with the purpose of extracting relevant features from the input images.These features were then flattened before passing through two fully connected dense layers, responsible for carrying out the final classification.It should be noted that the output layer of this model consisted of three units, indicating that the model was designed to perform classification into three different classes. CNN Method without Dropout The results obtained from this second method are represented in Figure 29.It reflects the evolution of the average accuracy during the training and validation process throughout the different epochs.Compared to the first method implemented, it is evident that the results obtained in terms of validation accuracy are less favorable in this second approach. CNN Method with Dropout In the third method, also implemented in TensorFlow, an additional technique called dropout is introduced, configured using the argument "tf.keras.layers.Dropout(0.5)."Dropout is a regularization strategy widely used in neural networks with the purpose of mitigating overfitting and enriching the generalization capacity of the model. CNN Method with Dropout The application of the dropout, with a value of 0.5, implies that during the training process, approximately half of the neural connections are randomly deactivated in each iteration.This has the effect of preventing the model from becoming overly reliant on specific neural connections and features, which in turn can boost its ability to generalize and adapt to previously unseen data.The training covered 50 epochs, and the total execution time was approximately 2.20 h. CNN Method with Dropout The results derived from this third method are represented in Figure 30, showing the evolution of the average accuracy during the training and validation stages throughout the various epochs. CNN Method with Dropout By incorporating the dropout technique in this third method (Figure 30), a significant improvement in the accuracy and generalization capacity of the model was achieved compared to the second method that does not have dropout.However, the results are very similar to those obtained with the first method with knowledge transfer. Convergence for Four Classes In the previous section, the three CNN methods were compared.In this section, the study of CNN with dropout and with knowledge transfer is carried out for the four classes, as they were found to be the two best methods, achieving similar results. Convergence for Four Classes Figure 31 shows the evolution of the average accuracy throughout the different epochs during the training and validation process.The estimated time necessary to complete the 50 training epochs was approximately three hours for both methods. Convergence for Four Classes mitigating overfitting and enriching the generalization capacity of the model. Convergence for Four Classes The application of the dropout, with a value of 0.5, implies that during the training process, approximately half of the neural connections are randomly deactivated in each iteration.This has the effect of preventing the model from becoming overly reliant on specific neural connections and features, which in turn can boost its ability to generalize and adapt to previously unseen data.The training covered 50 epochs, and the total execution time was approximately 2.20 h. Convergence for Four Classes The results derived from this third method are represented in Figure 30, showing the evolution of the average accuracy during the training and validation stages throughout the various epochs. Convergence for Four Classes By incorporating the dropout technique in this third method (Figure 30), a significant improvement in the accuracy and generalization capacity of the model was achieved compared to the second method that does not have dropout.However, the results are very similar to those obtained with the first method with knowledge transfer. Convergence for Four Classes In the previous section, the three CNN methods were compared.In this section, the study of CNN with dropout and with knowledge transfer is carried out for the four classes, as they were found to be the two best methods, achieving similar results. Convergence for Four Classes Figure 31 shows the evolution of the average accuracy throughout the different epochs during the training and validation process.The estimated time necessary to complete the 50 training epochs was approximately three hours for both methods. Convergence for Four Classes A final average accuracy of the training and validation data greater than 95% was obtained, with 50 epochs, as can be seen in Figure 31.The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward. Convergence for Four Classes Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32.A final average accuracy of the training and validation data greater than 95% was obtained, with 50 epochs, as can be seen in Figure 31. Convergence for Four Classes The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward. Convergence for Four Classes Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32. Convergence for Four Classes In this matrix, the true labels are on the y axes.They correspond to the actual labels associated with each image in the test dataset.These labels were obtained by loading the test images and assigning a label to each one, based on the directory the image came from.These labels represent the actual class to which each image belongs.The predicted labels, x labels, are the labels that the model generated for each image in the test dataset after performing inferences with the pretrained model.These labels represent the class that the model assigns to each image. Convergence for Four Classes The "confusion_matrix" function calculates and returns a square matrix that has dimensions equal to the number of classes in the classification problem.In this matrix, the rows represent the ground truth classes, while the columns represent the classes predicted by the model.The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward. Convergence for Four Classes Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32.In this matrix, the true labels are on the y axes.They correspond to the actual labels associated with each image in the test dataset.These labels were obtained by loading the test images and assigning a label to each one, based on the directory the image came from.These labels represent the actual class to which each image belongs.The predicted labels, x labels, are the labels that the model generated for each image in the test dataset after performing inferences with the pretrained model.These labels represent the class that the model assigns to each image. Convergence for Four Classes The "confusion_matrix" function calculates and returns a square matrix that has dimensions equal to the number of classes in the classification problem.In this matrix, the Each element of the confusion matrix in row i and column j indicates the number of samples that belong to class i, according to the true labels, and that were classified as class j by the model.In other words, it represents how many times the model was correct in predicting class j when the true class was i. Convergence for Four Classes To graphically visualize the performance of the neural network trained in the last configuration, eight random images are presented in Figures 33-35.These images were randomly selected from the dataset, from the ARC class and from the PD class, respectively.Additionally, the predictions made by the neural network for each of these images are included.Each element of the confusion matrix in row i and column j indicates the number of samples that belong to class i, according to the true labels, and that were classified as class j by the model.In other words, it represents how many times the model was correct in predicting class j when the true class was i. Convergence for Four Classes To graphically visualize the performance of the neural network trained in the last configuration, eight random images are presented in Figures 33-35.These images were randomly selected from the dataset, from the ARC class and from the PD class, respectively.Additionally, the predictions made by the neural network for each of these images are included. CNN Test In this subsection, we carry out the verification of the neural network previously trained in Section 4.8 by using a test dataset that was not used during the network training process. CNN Test In this subsection, we carry out the verification of the neural network previously trained in Section 4.8 by using a test dataset that was not used during the network training process. CNN Test Firstly, we selected a total of 72 images corresponding to 72 instances of breaks, class ARC, which came from the experiments that were not used in the training of the neural network.These experiments were carried out with a cell that is described in [15].This stage focuses on testing the model. CNN Test The 72 instances of rupture are divided into three sets of tests, which correspond to test speeds of 3 kV/s, 2 kV/s and.0.5 kV/s.To provide detailed context on the specific conditions of the experiments and image collection of these arrays, summaries are presented in Tables 2-4. CNN Test The results obtained by using CNN are presented, respectively, in Figures 36-38 for each of the sets of tests mentioned above.In the three figures, the accuracy is found to be 100% for the ARC class. CNN Test The images were captured with three Raspberry Pi V2 cameras, located on the right, Firstly, we selected a total of 72 images corresponding to 72 instances of breaks, class ARC, which came from the experiments that were not used in the training of the neural network.These experiments were carried out with a cell that is described in [15].This stage focuses on testing the model. CNN Test The 72 instances of rupture are divided into three sets of tests, which correspond to test speeds of 3 kV/s, 2 kV/s and.0.5 kV/s.To provide detailed context on the specific conditions of the experiments and image collection of these arrays, summaries are presented in Tables 2-4.The results obtained by using CNN are presented, respectively, in Figures 36-38 for each of the sets of tests mentioned above.In the three figures, the accuracy is found to be 100% for the ARC class. CNN Test The images were captured with three Raspberry Pi V2 cameras, located on the right, R, in the center, C, and on the left, L, of the cell.Each camera captures different frames per second (fps).The room temperature (T) was measured in all the experiments.The experiment ends when the breakdown voltage V rup is achieved. CNN Test Secondly, in this testing stage, PD images were analyzed in two different sets, composed of 400 and 571 images, captured using the HQ camera.Of the 400 images, these correspond to PD tests for voltages varying between 4 and 5 kV.The results of this analysis are presented in Figure 39.This graph shows an improvement in the identification of the PD from image number 150, which is due to the fact that the voltage is closer to 5 kV where PDs are more frequent. CNN Test Secondly, in this testing stage, PD images were analyzed in two different sets, composed of 400 and 571 images, captured using the HQ camera.Of the 400 images, these correspond to PD tests for voltages varying between 4 and 5 kV.The results of this analysis are presented in Figure 39.This graph shows an improvement in the identification of the PD from image number 150, which is due to the fact that the voltage is closer to 5 kV where PDs are more frequent. Conclusions In this paper, a non-destructive diagnostic method is developed based on the use of a high-resolution, low-cost CMOS image sensor and the design of a CNN.This method allows information to be obtained about the state of mineral oils before their breakdown occurs, providing a valuable tool for the evaluation and maintenance of these dielectric materials. Conclusions An exhaustive experimental analysis of PDs originating from gaseous bubbles present in the dielectric oil was carried out by combining a standard electrical detection system and an optical detection system.The work presents the numerical results derived from the solution of an equation that describes the behavior of the electric field intensity in a gaseous bubble.These results were compared with those obtained using a known analytical expression, showing that there is an agreement between both, with an error of 2.7%. Conclusions A CNN was trained to identify and classify the images captured by the image sensor into four classes: with and without PDs, with arc rupture, and with post-breakdown effects.An image classification model was also developed using deep learning with a CNN based on a TensorFlow and Keras model. Conclusions In this work, three different CNN methods based on a TensorFlow were applied: CNN using MobileNetV2, CNN method without dropout, and CNN method with dropout. Conclusions The MobileNetV2 method converges the fastest because it is pretrained and there is previous knowledge transfer.Of the other two methods, the one that converges faster is, logically, the one with dropout, since dropout is a regularization strategy widely used in CNN with the purpose of mitigating overfitting. Conclusions The performance of the three CNN methods was compared, obtaining an accuracy around 95% in the validation set and 82% in the test set with the best method, which was CNN with dropout. Conclusions The reason the accuracy is higher in the validation is that the images used were taken in experiments other than the test ones.The test ones were taken in order to verify the previously trained and validated CNN model. Conclusions As already mentioned, the CNN model was trained and validated with a set of 2000 images from the same set of experiments: 80% was used for training and 20% for validation.However, verification of the model was done using 571 images that had not previously been used for training and validation. Sensors 2024 , 24, x FOR PEER REVIEW 5 of 35 Figure 1 . Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz. Figure 2 . Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V. Figure 1 . Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz. Figure 1 . Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz. Figure 2 . Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V. Figure 2 . Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V. Figure 3 . Figure 3. (a) Operating terminal OT 248 system, Tettex-Haefely test AG.(b) PD detector DDX-9101, Tettex-Haefely test AG. Figure 4 .Figure 5 . Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36]. Figure 3 .Figure 3 . Figure 3. (a) Operating terminal OT 248 system, Tettex-Haefely test AG.(b) PD detector DDX-9101, Tettex-Haefely test AG. Figure 4 .Figure 5 . Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36]. Figure 4 .Figure 3 . Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36]. Figure 4 .Figure 5 . Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36]. Figure 6 . Figure 6.Raspberry Pi cameras: (a) HQ (b) V2. Figure 7 . Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras. Figure 6 . Figure 6.Raspberry Pi cameras: (a) HQ (b) V2. Sensors 2024 ,Figure 6 . Figure 6.Raspberry Pi cameras: (a) HQ (b) V2. Figure 7 . Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras. Figure 7 . Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras. Figure 8 . Figure 8. Computer Raspberry Pi 4. Figure 8 . Figure 8. Computer Raspberry Pi 4. Figure 9 . Figure 9. Test device in the HV laboratory. Figure 9 . Figure 9. Test device in the HV laboratory. Sensors 2024 , 24, x FOR PEER REVIEW 10 of 35 Figure 10 . Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera. Figure 10 . Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera. Figure 10 . Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera. Figure 11 . Figure 11.(a) Detail of the two square polarizers, the test cell and the one gear.(b) Transparent methacrylate cell with the two electrodes. Figure 11 . Figure 11.(a) Detail of the two square polarizers, the test cell and the one gear.(b) Transparent methacrylate cell with the two electrodes. Figure 11 . ).It transmits the measured data in real time to the other paired ESP-32 microcontroller, working as a receiver, located in the control room.The two ESP-32 devices use Wi-Fi technology.These data are then presented in a digital display.The transmitter and receiver boards are type ESP-32, Sensors 2024, 24, 1317 11 of 35 Figure 12 . Figure 12.Sensors, actuators, and control system.Figure 12. Sensors, actuators, and control system. Figure 12 . Figure 12.Sensors, actuators, and control system.Figure 12. Sensors, actuators, and control system. Figure 13 . Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ. Figure 13 . Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ. Figure 13 . Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ. Figure 14 . Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser. Figure Figure15a,b shows the luminosity for a polarizer position of −5.83° and −0.11°.It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees. Figure 14 . Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser. Figure Figure15a,b shows the luminosity for a polarizer position of −5.83 • and −0.11 • .It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees.The CFL presents a minimum in the gray scale for a phase shift of −0.11 • and the red laser beam gives a minimum for −0.33 • .We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure14).The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure12).The average room temperature recorded during the experimental tests was 25 • C, the atmospheric pressure 985 mb, and the relative humidity 58%. Figure 14 . Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser. FigureFigure 15 . Figure15a,b shows the luminosity for a polarizer position of −5.83° and −0.11°.It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees. Figure 15 . Figure 15.(a) Luminosity between the electrodes with the polarizers at −5.83 • .(b) Luminosity be-tween the electrodes with the polarizers at −0.11 • . Figure 15 . Dissolved in Oil 3.1.Validation of the Permanent Regime of the Electric Field of a Bubble Figure 17 .Figure 17 . Figure 17.(a) Potential distribution between the electrodes for an effective voltage of 3.5 kV.(b) The maximum modulus of the electric field is 2.03•10 6 V/m.The distribution is uniform between the electrodes in their narrowest part without bubbles. Figure 17 .Figure 18 . Figure 17.(a) Potential distribution between the electrodes for an effective voltage of 3.5 kV.(b) The maximum modulus of the electric field is 2.03•10 6 V/m.The distribution is uniform between the electrodes in their narrowest part without bubbles. Figure 18 . Figure 18.(a) The modulus of the electric field intensity is maximum and uniform within the bubble.The distribution of the electric field in the figure is prior to the breakdown of the PD.(b) Detail of the increase in the field inside the bubble and its equator, with a decrease in it at the poles. Figure 19 . Figure 19.Permanent break condition results.(a) Electric potential distribution for an HV electrode boundary condition equal to 5.3 kV effective.From this voltage, the first PDs are observed.The two bubbles used in the simulation are observed.(b) Electric field distribution around the two bubbles between the electrodes with PD.The electric field intensity is maximum at the poles and minimum at the center of the bubbles. Figure 19 . Figure 19.Permanent break condition results.(a) Electric potential distribution for an HV electrode boundary condition equal to 5.3 kV effective.From this voltage, the first PDs are observed.The two bubbles used in the simulation are observed.(b) Electric field distribution around the two bubbles between the electrodes with PD.The electric field intensity is maximum at the poles and minimum at the center of the bubbles. Figure 20 . Figure 20.Experimental results for PD using the HQ camera and PD detector DDX-9101 for an effective voltage of 5.3 kV.(a) Electrical measurement of the PD observed in Figure 20b.(b) Image obtained with the HQ camera corresponding to Figure 20a. 4 . CNN Design, Training, and Validation 4.1.Introduction In order to carry out the design, training and validation of the CNN, the computer applications TensorFlow and Keras were used.Keras is a Python library for machine learning and deep neural networks.Keras can run on top of TensorFlow.It was created by Google Brain in 2011.Since 2015, it has been open source [18].In TensorFlow 2.0 and later, Keras has become the default high-level application programming interface (API) Figure 20 . Figure 20.Experimental results for PD using the HQ camera and PD detector DDX-9101 for an effective voltage of 5.3 kV.(a) Electrical measurement of the PD observed in Figure 20b.(b) Image obtained with the HQ camera corresponding to Figure 20a. Figure 21 . Figure 21.The objective of the CNN is to determine from an image which class it belongs to and to quantify its accuracy. Figure 21 Figure 21 shows a visual representation of the CNN.It presents the following layers: Figure 21 . Figure 21.The objective of the CNN is to determine from an image which class it belongs to and to quantify its accuracy. Figure 22 . Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD. Figure 22 . Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD. Figure 22 . Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD. Figure 23 . Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD. Figure 24 . Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC. Figure 23 . Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD. Figure 22 . Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD. Figure 23 . Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD. Figure 24 . Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC. Figure 24 . Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Sensors 2024, 24, x FOR PEER REVIEW 21 of 35 Figure 25 . Figure 25.Eight random images out of a total of 500 belonging to class 3 called BREAK. Figure 25 . Figure 25.Eight random images out of a total of 500 belonging to class 3 called BREAK. Figures 26 and 27 Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function. Figure 26 . Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset. Figure 27 . Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset. Figure 26 . Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset. Figures 26 and 27 Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function. Figure 26 . Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset. Figure 27 . Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset. Figure 27 . Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset. 4. 7 . 1 . The CNN Method with Knowledge TransferThe results of the knowledge transfer method are seen in Figure28.They represent the average accuracy of the training and validation data over the epochs.These visualizations were generated using TensorFlow and TensorFlow Hub, leveraging a pretrained model known as MobileNetV2. Figure 28 . Figure 28.Knowledge transfer method.Average accuracy of training and validation data with epochs.MobileNetV2 is a widely recognized CNN model used in computer vision tasks due to its efficiency and high performance.It was used as a starting point to build a new threeclass classification model.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the Figure 28 . Figure 28.Knowledge transfer method.Average accuracy of training and validation data with epochs.MobileNetV2 is a widely recognized CNN model used in computer vision tasks due to its efficiency and high performance.It was used as a starting point to build a new three-class classification model.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the MobileNetV2 model remained unchanged and worked as a static feature extractor, avoiding the need to retrain it.This transfer learning strategy contributed significantly to reducing execution times, achieving a total training duration of only 1.22 h.To ensure compatibility with MobileNetV2, the expected input data were configured with dimensions of 224 × 224 pixels and RGB color channels.The dataset used for training consisted of a total of 1200 images distributed in three different classes, while the verification set consisted of 300 images equally distributed in the same three classes.The training process was carried out over 50 epochs, and no significant improvements in model performance were observed beyond this point.We observed that there was a stabilization in accuracy at between 40 and 50 epochs.Therefore, it was decided to carry out all the experiments with this maximum value of epochs for all the cases considered, as seen in Figure28.Furthermore, from 50 epochs onwards, calculation times increase significantly without obtaining significant improvements in accuracy and with risks of overfitting.The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process. Figure 29 . Figure 29.CNN without dropout.Average accuracy of training and validation data throughout epochs.Regarding the technical characteristics of this model, it is important to highlight that the input images have dimensions of 224 × 224 pixels and three color channels in the RGB space.The execution time, without the inclusion of dropout techniques, was around 2.20 h.The training set consisted of a total of 1200 images distributed in three classes, while the validation set consisted of 300 images, also distributed in the same three classes.This model had a total of 18,682,195 parameters, all of them considered trainable.The training process was carried out over 50 epochs. Figure 29 . Figure 29.CNN without dropout.Average accuracy of training and validation data throughout epochs.Regarding the technical characteristics of this model, it is important to highlight that the input images have dimensions of 224 × 224 pixels and three color channels in the RGB space.The execution time, without the inclusion of dropout techniques, was around 2.20 h.The training set consisted of a total of 1200 images distributed in three classes, while the validation set consisted of 300 images, also distributed in the same three classes.This model had a total of 18,682,195 parameters, all of them considered trainable.The training process was carried out over 50 epochs.Compared to the first method implemented, it is evident that the results obtained in terms of validation accuracy are less favorable in this second approach. Figure 30 . Figure 30.CNN with dropout.Average accuracy of training and validation data throughout epochs. Figure 30 . Figure 30.CNN with dropout.Average accuracy of training and validation data throughout epochs.Sensors 2024, 24, x FOR PEER REVIEW 27 of 35 Figure 31 . Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%. Figure 31 . Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%. Figure 31 . Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%. Figure 32 . Figure 32.Confusion matrix for the four classes of the dataset. Figure 32 . Figure 32.Confusion matrix for the four classes of the dataset. Sensors 2024 , 24, x FOR PEER REVIEW 28 of 35 rows represent the ground truth classes, while the columns represent the classes predicted by the model. Figure 33 . Figure 33.Eight random images obtained from the dataset.Figure 33.Eight random images obtained from the dataset. Figure 33 . Figure 33.Eight random images obtained from the dataset.Figure 33.Eight random images obtained from the dataset. Figure 33 . Figure 33.Eight random images obtained from the dataset. Figure 34 . Figure 34.Eight random images obtained from the ARC class set.Figure 34.Eight random images obtained from the ARC class set. Figure 34 . Figure 34.Eight random images obtained from the ARC class set.Figure 34.Eight random images obtained from the ARC class set.Sensors 2024, 24, x FOR PEER REVIEW 29 of 35 Figure 35 . Figure 35.Eight random images obtained from the PD class set. Figure 35 . Figure 35.Eight random images obtained from the PD class set. Figure 36 . Figure 36.Experiment ramp of 2 kV/s.Figure 36.Experiment ramp of 2 kV/s. Figure 36 . 35 Figure 37 . Figure 36.Experiment ramp of 2 kV/s.Figure 36.Experiment ramp of 2 kV/s.Sensors 2024, 24, x FOR PEER REVIEW 31 of 35 Figure 38 . Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s. Figure 37 . 35 Figure 37 . Figure 37. Validation of the ARC class with experiments carried out at 2 kV/s. Figure 38 . Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s. Figure 38 . Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s. Figure 38 . Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s. Figure 39 . Figure39.Graph with 400 images obtained at the limit where PDs begin between 4 and 5 kV. Figure 40 Figure40shows the analysis of a video divided into consecutive images, taken during a time interval of 19 s, which corresponds to a total of 571 images.This test was carried out with an effective voltage of 5.23 kV.In this case, the neural network classifies all images as belonging to the class associated with PDs, with an average accuracy of 0.82.Finally, Figures41 and 42represent the PD measured with the DDX-9101 PD detector and Figure 39 . Figure39.Graph with 400 images obtained at the limit where PDs begin between 4 and 5 kV. Figure 40 Figure40shows the analysis of a video divided into consecutive images, taken during a time interval of 19 s, which corresponds to a total of 571 images.This test was carried out with an effective voltage of 5.23 kV.In this case, the neural network classifies all images as belonging to the class associated with PDs, with an average accuracy of 0.82.Finally, Figures41 and 42represent the PD measured with the DDX-9101 PD detector and the image that corresponds to the HQ camera at the initial instant of the time interval and the end, respectively.Sensors 2024, 24, x FOR PEER REVIEW 32 of 35 Figure 40 .Figure 41 . Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82. Figure 40 . Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82.These results indicate the ability of the neural network to adequately identify and classify PDs under different conditions and stresses, supporting its effectiveness in detecting this phenomenon. Figure 40 .Figure 41 .Figure 42 . Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82. Figure 41 . Figure 41.Images corresponding to the initial instant of Figure 40.(a) For the DDX-9101 PD detector.(b) Taken with the HQ camera. Figure 40 .Figure 41 .Figure 42 . Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82. Figure 42 . Figure 42.Images of the HQ camera and the PD detector DDX-9101 corresponding to the final instant of the time interval in Figure 41.(a) PD measured with the DDX-9101 PD detector at the final instant of the time interval.(b) Image taken with the HQ camera at the final instant of the 19 s time interval. Table 1 . Summary of features of the cameras used. Table 1 . Summary of features of the cameras used. Table 1 . Summary of features of the cameras used. Table 2 . Experiment ramp of 3 kV/s. Table 3 . Experiment ramp of 2 kV/s. Table 3 . * Without reading. Table 4 . Experiment ramp of 0.5 kV/s.

섹션 본문 357문단 · 110,845자

(제목 없음)

1In this work, an exhaustive analysis of the partial discharges that originate in the bubbles present in dielectric mineral oils is carried out.To achieve this, a low-cost, high-resolution CMOS image sensor is used.Partial discharge measurements using that image sensor are validated by a standard electrical detection system that uses a discharge capacitor.In order to accurately identify the images corresponding to partial discharges, a convolutional neural network is trained using a large set of images captured by the image sensor.An image classification model is also developed using deep learning with a convolutional network based on a TensorFlow and Keras model.The classification results of the experiments show that the accuracy achieved by our model is around 95% on the validation set and 82% on the test set.As a result of this work, a non-destructive diagnosis method has been developed that is based on the use of an image sensor and the design of a convolutional neural network.This approach allows us to obtain information about the state of mineral oils before breakdown occurs, providing a valuable tool for the evaluation and maintenance of these dielectric oils.

Introduction

2The measurement and detection of partial discharges (PDs) are invaluable tools for the evaluation of insulation quality, generating improvements in both maintenance practices and risk management in energy devices.A literature review on current online PD monitoring techniques used for different high-voltage electrical components in power electrical systems is presented in [1].

3In [1], a detailed review and analysis of online monitoring of PDs in order to reduce breakdowns in electrical power systems and the advances in this area are presented.An intelligent framework based on wireless sensors is also proposed to improve the performance of power systems.

4Ref. [2] focuses on researching and analyzing measurement techniques that use UHF to monitor PDs in high-voltage systems in real time, which could significantly contribute to the early detection of possible problems in the electrical system and its preventive maintenance.In [3], how voltage harmonics affect the diagnosis of PDs in electric motors that are powered by variable-frequency drives is addressed.

5In [4], an analysis of the similarities and differences in surface PDs, both in direct current (DC) and alternating current (AC), is carried out.Furthermore, the underlying Sensors 2024, 24, 1317 2 of 35 mechanisms that generate these discharges and the patterns associated with them are investigated in depth.

6PDs in transformer oil play a fundamental role in the progressive deterioration of paper-oil insulation.The bubbles present in the transformer oil, the formation of which can be due to various factors, including some non-electrical, have the ability to move to areas of high electrical intensity due to the cooling system, potentially leading to PDs.

7Despite their importance, the underlying mechanisms of PDs in fluids still lack indepth investigation.Therefore, the purpose of this paper is to examine the behavior of PDs generated within gaseous bubbles dissolved in the dielectric oil when subjected to a highfield-intensity alternating electric field.This is achieved by using a low-cost, high-resolution CMOS image sensor and a neural network trained for PD detection.

8Given the relevance of PDs originating from bubbles of gases dissolved in liquid dielectrics, a detailed analysis of the most significant works in this area of knowledge is carried out below.

9In [5], the results of a numerical investigation that addressed the evolution of streamers in bubbles immersed in liquids are presented.It is established that the formation of streamers does not occur in very small bubbles unless the preexisting or injected charges are considerable enough to trigger PD.

10In [6], a detailed analysis of the dynamics of bubbles inside dielectric oil is carried out.The study of the behavior of air bubbles that rise in the transformer oil under the influence of an alternating electric field is investigated, including the measurement of the degree of deformation of these bubbles.

11The study presented in [7] focuses on the electrical breakdown voltage of transformer oil when it presents gaseous bubbles.The breakdown voltage stabilization effect is postulated to be due to the predominance of PDs in the sulfur hexafluoride bubbles, as opposed to the stochastic influence of chemical impurities and particulate materials.

12In [8], a description is given of the different stages prior to collapse in the dielectric oil of a transformer.This is achieved by deforming an air bubble introduced between highvoltage (HV) electrodes, adjusting the separation between the electrodes and maintaining a non-uniform electric field, while keeping the hydrostatic pressure constant.

13In [9], it is explored how the paper insulation system, in a transformer, retains a certain amount of moisture.Moisture tends to release from the paper as temperatures increase, being absorbed by the insulating oil.However, in situations of sudden temperature increase, such as when energizing the transformer for the first time or during an emergency overload, this moisture is abruptly released from the paper into the oil, causing gaseous bubbles.

14In [10], the pattern of the evolution of bubbles in liquids in the presence of repetitive pulsed power is analyzed.Finally, ref. [11] addresses the mechanisms of bubble discharge and deterioration of paper-oil insulation, offering guidance for the diagnosis of transformer failures.

15The use of low-cost camera systems in remote sensing applications is widely recognized.Research on the utilization of these low-cost cameras in engineering and science applications is discussed in detail in [12].With a similar approach, ref. [13] focuses on the study of the corona effect in aeronautical environments using low-cost cameras, such as the Raspberry Pi.

16A more contemporary analysis of low-cost, high-resolution image sensors is presented in [14].This work explores the broad application of optical recording and tracking systems in mechanical and physical testing, such as strain measurements and high-speed particle tracking.These systems provide detailed and precise visual data that escape perception with the naked eye due to their speed.

17The determination of breakdown voltage in mineral dielectric oils using low-cost image sensors is analyzed in [15].This study provides a distribution of the Kelvin forces moments before the dynamic behavior of the electric arc begins, as well as the state of the gases that are generated moments after the appearance of the electric arc in the oil.

18In [16], a set of hypersensitive optical sensors is developed for multispectral detection of PDs.Multispectral pulses were experimentally obtained for three typical types of PDs in gas-insulated systems.Classification algorithms were adopted to evaluate the three typical types, obtaining success ratios greater than 91%.

19In [17], a room-temperature optical humidity sensor based on Nafion, a hydrophilic polymer, is theoretically and experimentally investigated.Results of the relative humidity retrieval with the regression of the physical model parameters are compared to those obtained with different machine learning (ML) techniques.

20Convolutional neural networks (CNNs) have revolutionized the ability of computers to analyze and interpret images in a wide variety of applications, ranging from object detection in autonomous vehicles to classifying skin cancer images (for further information, see [18]).These networks, inspired by the visual organization of the human brain, have proven to be highly effective in image classification thanks to their ability to learn and represent the features present in the input data in a hierarchical and discriminative way.

21CNNs have become a foundational technology in fields such as computer vision, artificial intelligence, and deep learning.The ability of these networks to automatically learn relevant features from images has greatly simplified the classification process, reducing the need for manual feature extraction.

22The references provided below give an overview of recent advances in the field of CNNs and deep learning applied to image classification.

23E-cientNet architecture is proposed in [19], which achieves optimal performance in image classification by efficiently optimizing the model size.The contribution of [20] is relevant to image segmentation and has been widely used in object classification applications.

24A popular architecture for real-time object detection is studied in [21], and the improved version, YOLOv3, used in image classification applications.The work of [22] focuses on image translation and domain adaptation, which is relevant for image classification in environments with data from different modalities.

25Over the years, the architecture of CNNs has undergone constant refinements, giving rise to cutting-edge models such as AlexNet, VGG, Inception, ResNet and other variants, which have set records in image classification competitions such as the Challenge of ImageNet.In [23], an ImageNet Classification with Deep CNNs is studied.

26The particular uses of CNNs and signal processing techniques related to PD detection in the field of electrical engineering are summarized below.In [24], the use of CNNs is proposed for PD detection in high-voltage transformers using UHF sensors.In [25], the focus is on the use of CNNs to recognize PD patterns in gas-insulated substations.In [26], an analysis of recent advances in PD classifications using CNNs is made.In [27], PD pattern recognition in GIS-type switches using CNNs with complex data sources is analyzed.

27In [28], the CNN model studies PDs, highlighting the importance of not ignoring weak PD signals and the need for extended measurements to improve their detection.This study advances the understanding of epoxy material behavior and the refinement of breakdown detection techniques for practical applications.

28A pulse sequence analysis (PSA) method that uses a CNN to recognize defects in power cable splices is presented in [29].PSA showed effective results compared to conventional methods.The accuracy of the PSA-based CNN model was 95.3%.

29In [30], a wireless sensor network (WSN) is combined with a CNN, forming a hybrid framework to detect the pollution status in high-voltage insulators.The WSN comprises the set of sensor readings from each high-voltage insulator on the transmission tower.The sensor readings collected from the sensor network are sent to the processing or sensing unit, where the CNN is used to detect high-voltage insulators with PDs.

30Ref. [31] presents a state-of-the-art review on ML-based intelligent diagnostics that have been applied for PD detection, localization, and recognition.Furthermore, technical obstacles are identified that prevent smart PD diagnostics from being applied to the industry, such as insufficient/imbalanced data sets, data inconsistency, and difficulties in costeffective real-time implementation.

31In [32], a PD test is performed on five types of artificial defects in ethylene propylene rubber cables in an HV laboratory to generate signals containing PD data.A total of 3500 sets of PD transient pulses are also extracted, and then 33 types of PD characteristics are established.With these data, a CNN is applied.The typical CNN architecture and key factors affecting the accuracy of CNN-based pattern recognition are described.In [33], a CNN model is proposed to identify and classify different types of events, including internal PD, corona PD, surface PD, and noise.

32To our knowledge, the use of these CNN techniques has not been applied in PD analyses in transformer oils with low-cost optical sensors.In this paper, an exhaustive study of the PDs that originate from the bubbles present in the dielectric mineral oil is carried out.These discharges are precursors to electric arc breakdown, and as such represent a method of diagnosing the condition of the mineral oil before breakdown occurs.

33To address this problem, the implementation of a combined system is proposed that integrates a high-resolution, low-cost CMOS camera, together with a standard electrical detection system based on a discharge capacitor.The Raspberry Pi 4/2 GB platform is used in conjunction with camera lenses, providing accessibility and portability.The Raspberry Pi Foundation offers computational and digital tools, such as intuitive documentation and interactive development environments for the Python programming language, facilitating the acquisition and subsequent analysis of data.

34In the present article, an image classification model is developed using deep learning with a CNN based on a TensorFlow [34] and Keras [35] model.These images are classified into four classes: containing PDs, without PDs, those that present rupture of the electric arc, and finally those that present gaseous bubbles after the rupture of the arc.The effectiveness of the trained CNN is evaluated by validating it with images that were not used during the training process.

35This article is divided into the sections listed below.Section 2, Theoretical and experimental background, describes the experimental design of the test device and explains the optical characterization of the measurement system.In Section 3, PD in gaseous bubbles dissolved in oil, the numerical results of the electric potential and electric field intensity for one and two bubbles in a steady state are presented.Section 4, CNN design, training, and validation, describes the design, training, and validation of a CNN using TensorFlow to identify PDs.Finally, in Section 5, Conclusions, the main conclusions are presented.

Theoretical and Experimental Background

36The theoretical and experimental background of the article is summarized below.Firstly, the experimental design of the test device is presented and the experimental setup used to generate and measure the PDs in the dielectric oil with bubbles is described.It details the main components of the system, such as the power supply, the electrodes, the CMOS image sensor, the discharge capacitor and the polarizers.

37Secondly, the optical characterization of the measurement system is carried out and the fundamental optical characteristics of the components used in the experiments are analyzed, such as the compact fluorescent lamp (CFL), the laser, the polarizers and the optical glass of the windows of the measurement cell.Additionally, it explains how polarizers are adjusted to minimize transmitted light and how PD is detected using the Kerr effect and the high-quality camera-an HQ camera.

HV Laboratory Description

38The laboratory has two clearly separated rooms: the HV room where the tests are carried out, and the LV room where the low-voltage (LV) control and the measuring equipment are located.

39The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b).

40The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].The test equipment, located in the HV room, includes a discharge capacitor (Figure 1a), transformer (Figure 1b), and power supply (Figure 2).Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b).

41The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].Located in the control room is the OT 248 system operating terminal control equipment (Figure 3a), which controls the power supply, and the PD detector DDX-9101 (Figure 3b).

42The OT 248 unit regulates the input LV supplied by the power unit and then supplies the LV input power to the transformer (see Figures 4 and 5).Then, the transformer raises the single-phase voltage to the desired HV.This HV is applied in parallel to the HV cell and the discharge capacitor.The discharge current in the discharge capacitor is measured though the PD detector DDX-9101.Figure 5 shows the electrical scheme following the standard IEC 60270 [36].Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme.

Raspberry Pi HQ and V2 Cameras

43Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme.

44Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme.

45Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses Figure 5. Electrical scheme.Left: electrical scheme using standard IEC60270 [36].Right: description of electrical scheme.

46Detailed information about the Raspberry Pi HQ camera can be found in [37] (see Figure 6a).It is an affordable camera of exceptional quality with a resolution of 12.3 megapixels and a 7.9 mm diagonal sensor.This camera works especially well in low-light conditions.The M12 mount variant has been designed to be compatible with a wide range of interchangeable M12 lenses.The CS mount variant is optimized for interchangeable lenses in the CS and C-mount formats.It should be noted that for C-mount lenses, the C-CS adapter is included.

47in the CS and C-mount formats.It should be noted that for C-mount lenses, the C-CS adapter is included.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm.

48In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.In the experiments, the 16 mm CGL telelens with C-CS mount was used, which provides a high-quality image and a low level of distortion (Figure 7a). Figure 7b shows the situation of the HQ and V2 cameras with respect to the polarizers and the CFL.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm.

49In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras.This camera makes use of the Sony IMX477 sensor [38], an active pixel-stacked CMOS, with a resolution of 12.3 megapixels and a square pixel array with a diagonal of 7.85 mm.

50In the laboratory experiments, another camera model, the Raspberry Pi camera V2, was also used (Figure 6b), which makes use of the Sony IMX219 sensor.Table 1 provides a summary comparing the main characteristics of the sensors of both cameras.

Description of the Raspberry Pi 4 Computer

51The Raspberry Pi 4 computer [39] (Figure 8) controls the image sensor, collects the images and sends them to the control zone via Wi-Fi.Its main characteristics are summarized below.

Description of the Camera Control Software

52The camera modules, HQ and V2, connected to the Raspberry Pi computer offer a wide range of possibilities thanks to the system's programmability.These applications provide a multitude of options, and their operation can be further simplified using scripting software.The software version used is Python 3.8.The Raspberry Pi 4 computer [39] (Figure 8) controls the image sensor, collects the images and sends them to the control zone via Wi-Fi.Its main characteristics are summarized below.

53The camera modules, HQ and V2, connected to the Raspberry Pi computer offer a wide range of possibilities thanks to the system's programmability.These applications provide a multitude of options, and their operation can be further simplified using scripting software.The software version used is Python 3.8.

54We used the cameras in the experiments with the Raspberry Pi camera libraries that are available in Python to develop custom applications with their features [40].

55The practical implementation of the camera modules follows a sequence of four main steps: composition, exposure selection, image or video capture, and post-processing.Composition and focus are initially achieved through a real-time preview window.Exposure time is precisely set to ensure consistent images.

Optical Characterization of the Measurement System

56This section details the key optical characteristics of the components used in the experiments, including the CFL, red laser, polarizers, and the optical glass of the windows of the measurement cell.

57Firstly, in Section 2.2.1, a spectrum analysis of both the CFL and red laser is carried out.A detailed explanation on adjusting the polarizers is provided in Section 2.2.2.Finally, in Section 2.2.3, PD detection using the Kerr effect and the use of the HQ camera is discussed.

CFL and Laser Light Spectrum Analysis

58The light beam from the CFL and the red laser pass through the polarizers and the two quartz glass windows of the measurement cell.We used JGS2 optical quartz glass [41] for the windows.

59Quartz glass is recognized for its outstanding performance in the transmission of ultraviolet (UV) light, with extremely low absorption of visible light and near-infrared light in the range of 220-2500 nm, without presenting significant absorption bands.We used the cameras in the experiments with the Raspberry Pi camera libraries that are available in Python to develop custom applications with their features [40].

60The practical implementation of the camera modules follows a sequence of four main steps: composition, exposure selection, image or video capture, and post-processing.Composition and focus are initially achieved through a real-time preview window.Exposure time is precisely set to ensure consistent images.

Optical Characterization of the Measurement System

61This section details the key optical characteristics of the components used in the experiments, including the CFL, red laser, polarizers, and the optical glass of the windows of the measurement cell.

62Firstly, in Section 2.2.1, a spectrum analysis of both the CFL and red laser is carried out.A detailed explanation on adjusting the polarizers is provided in Section 2.2.2.Finally, in Section 2.2.3, PD detection using the Kerr effect and the use of the HQ camera is discussed.

CFL and Laser Light Spectrum Analysis

63The light beam from the CFL and the red laser pass through the polarizers and the two quartz glass windows of the measurement cell.We used JGS2 optical quartz glass [41] for the windows.

64Quartz glass is recognized for its outstanding performance in the transmission of ultraviolet (UV) light, with extremely low absorption of visible light and near-infrared light in the range of 220-2500 nm, without presenting significant absorption bands.Furthermore, it is characterized by an exceptionally low coefficient of thermal expansion and good chemical stability similar to that of standard optical glass.In summary, quartz glass is considered the optimal material for harsh environments and is classified as UV optical quartz glass with the JGS2 designation.To achieve precise alignment of polarizers 1 and 2, as clearly shown in Figure 9, a CFL and a red laser were employed.

65Sensors 2024, 24, x FOR PEER REVIEW 9 of 35 Furthermore, it is characterized by an exceptionally low coefficient of thermal expansion and good chemical stability similar to that of standard optical glass.In summary, quartz glass is considered the optimal material for harsh environments and is classified as UV optical quartz glass with the JGS2 designation.

66To achieve precise alignment of polarizers 1 and 2, as clearly shown in Figure 9, a CFL and a red laser were employed.We measured the wavelength of the red laser used for the optimal configuration of the polarizers, which was 645.4 nm.The manufacturer specifies it in a range of 650 ± 10 nm.This value and its relationship with the laser spectrum are detailed in Figure 10a.

67Additionally, the spectrum of the CFL was realized.It includes lines of 435.83 nm in the violet-blue range and 546.07 nm, in deep green, which are attributable to the mercury present in all CFLs.Additional blue lines can also be observed in the final region of the spectrum, which correspond to the infrared region.This spectrum is represented in Figure 10b.A spectrometer was used with a dispersion coefficient of 0.53 nm/pixel for all measurements carried out in the experiments.The spectrometer images were taken with the V2 camera, without an infrared filter and with the Sony IMX219 CMOS sensor.We measured the wavelength of the red laser used for the optimal configuration of the polarizers, which was 645.4 nm.The manufacturer specifies it in a range of 650 ± 10 nm.This value and its relationship with the laser spectrum are detailed in Figure 10a.

Optimal Position of the Polarizers

68PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD.

69To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each Additionally, the spectrum of the CFL was realized.It includes lines of 435.83 nm in the violet-blue range and 546.07 nm, in deep green, which are attributable to the mercury present in all CFLs.Additional blue lines can also be observed in the final region of the spectrum, which correspond to the infrared region.This spectrum is represented in Figure 10b.A spectrometer was used with a dispersion coefficient of 0.53 nm/pixel for all measurements carried out in the experiments.The spectrometer images were taken with the V2 camera, without an infrared filter and with the Sony IMX219 CMOS sensor.

70PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD.

71To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each other, rotated relative to each other at a certain angle that minimizes the passage of light between them (see Figure 11a).

72PDs induce an increase in luminosity in the dielectric oil contained between the electrodes of an HV measurement cell due to the Kerr effect [42].This increase in luminosity is indicative of the electric field intensity in the PD.

73To improve the sensitivity and contrast in the measurements taken, the light transmitted by the light beam of the CFL and the red laser, optically characterized in the previous section, was minimized.Two independent studies were carried out for each type of lighting.This beam of light, in both cases, passes through the polarizers, parallel to each other, rotated relative to each other at a certain angle that minimizes the passage of light between them (see Figure 11a).

74The cell (Figure 11b) is a transparent methacrylate prism that contains two electrodes, one connected to ground and the other to HV.The PD test circuit was set up according to the IEC 60270 standard [36].The International Electrotechnical Commission (IEC) is a worldwide organization for standardization.The cell (Figure 11b) is a transparent methacrylate prism that contains two electrodes, one connected to ground and the other to HV.The PD test circuit was set up according to the IEC 60270 standard [36].The International Electrotechnical Commission (IEC) is a worldwide organization for standardization.

75The sides of the cell have two circular windows of quartz optical glass.These allow the light beam to pass, without distortion, between the two electrodes.The upper part of the part is a removable cover that serves to introduce the dielectric oil that surrounds and covers the electrodes.In addition, the upper cover has a circular opening through which a thermometer can be inserted to take measurements of the oil temperature before and after each test.Likewise, it is suitable for taking overhead images of the electrodes during HV tests.

76The two polarizers are in parallel planes.One is fixed, polarizer 1, and the other can rotate around the axis perpendicular to its plane, polarizer 2. The movement is produced in a controlled manner thanks to a stepper motor that transmits its rotation through two gears (see Figure 9).The transmission gear, attached to the motor, transmits the movement through a driving belt to a second, larger gear, integral with the mobile polarizer.

77An ESP-32 microcontroller controls the slow rotation of polarizer 2. The ESP-32 microcontroller, working as a transmitter, is in the HV room (see Figure 12 38 pin, dual core, ultralow power, and Wi-Fi and Bluetooth compatible (see Figure 12).The ESP-32s are powered by AC rechargeable 5V DC batteries.

78mum luminosity, recording the images of a HQ camera and the relative angle of rotation of polarizer 2, using an ADXL345 inclinometer (see Figure 12).

79The digital sensor ADXL345 is a small, thin, ultralow-power, 3-axis accelerometer with high-resolution (13-bit) measurement up to ±16 g.Digital output data are formatted as 16-bit two's complement and are accessible through either a SPI (3-or 4-wire) or I 2 C digital interface.It enables measurement of inclination changes less than 1.0°.

80Images acquired by the HQ camera are transmitted by Wi-Fi from a Raspberry Pi transmitter, located in the HV room, to a Raspberry Pi receiver located in the LV room, where a PC displays the images when the experiment is concluded (see Figure 12).To avoid light pollution caused by natural light or possible laboratory spotlights, a dark room large enough to house the experimental devices and two people, who can intervene in the equipment when not working in HV, was constructed.The approximate dimensions of the dark room are 3 × 3 m in plan and 2.25 m in height.Using a lux meter, it was verified that the luminosity was zero when the interior lights of the chamber were turned off.

81We precisely determined the relative position in which polarizer 2 transmits a minimum luminosity, recording the images of a HQ camera and the relative angle of rotation of polarizer 2, using an ADXL345 inclinometer (see Figure 12).

82The digital sensor ADXL345 is a small, thin, ultralow-power, 3-axis accelerometer with high-resolution (13-bit) measurement up to ±16 g.Digital output data are formatted as 16-bit two's complement and are accessible through either a SPI (3-or 4-wire) or I 2 C digital interface.It enables measurement of inclination changes less than 1.0 • .

83Images acquired by the HQ camera are transmitted by Wi-Fi from a Raspberry Pi transmitter, located in the HV room, to a Raspberry Pi receiver located in the LV room, where a PC displays the images when the experiment is concluded (see Figure 12).

84The gray scale is an indirect measure of the intensity of light that goes through the polarizer 2 to the HQ camera.In a grayscale image, each pixel has a value between 0 and 255, where zero corresponds to black and 255 corresponds to white.The values between 0 and 255 are varying shades of gray, where values closer to 0 are darker and values closer to 255 are lighter.

85The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis.

86Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken.

87The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis.

88Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light.

89The gray scale was determined based on the relative position of the two polarizers, illuminated successively with a CFL and a red laser using Fiji ImageJ software version 1.54f [43].Fiji ImageJ is an image processing package, bundling many plugins that facilitate scientific image analysis.

90Figure 13 presents the two electrodes, seen through the circular quartz optical glass window, and the line where the grayscale experimental measurements were taken.The graphs in Figure 14a,b represent the results obtained, that is, they provide the gray scale vs. the relative position in degrees of the two light polarizers.Both present maximums for the central area located between the two electrodes, since in this area the electrodes do not hinder the passage of light.The CFL presents a minimum in the gray scale for a phase shift of −0.11 • and the red laser beam gives a minimum for −0.33 • .We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure 14).

91The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure 12).The average room temperature recorded during the experimental tests was 25 • C, the atmospheric pressure 985 mb, and the relative humidity 58%.The CFL presents a minimum in the gray scale for a phase shift of −0.11° and the red laser beam gives a minimum for −0.33°.We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure 14).

92The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure 12).The average room temperature recorded during the experimental tests was 25 °C, the atmospheric pressure 985 mb, and the relative humidity 58%.

93A DS18B20 waterproof temperature sensor was used [44] to measure the temperature of the oil before and after the experiments.Temperature changes less than one degree Celsius were detected.Its unique one-wire interface facilitated communication with the devices.It does not require an external power supply unit, as it is powered from the data line.Its stainless-steel probe head makes it suitable for any wet or harsh environment.This thermal sensor was powered from a 3.2 V DC power supply.A DS18B20 waterproof temperature sensor was used [44] to measure the temperature of the oil before and after the experiments.Temperature changes less than one degree Celsius were detected.Its unique one-wire interface facilitated communication with the devices.It does not require an external power supply unit, as it is powered from the data line.Its stainless-steel probe head makes it suitable for any wet or harsh environment.This thermal sensor was powered from a 3.2 V DC power supply.

PD Detection Using Kerr Effect and HQ Camera

94In this section, we begin by defining the magnitudes associated with the Kerr effect.The refractive index, n0, according to [45], is defined as the ratio between the speed of light in a vacuum, c, and the speed of light in a specific medium, v.In our case, when using dielectric oil, this refractive index is calculated as n 0 = √ ε roil •µ roil , which gives us a value of n 0 = √ 2.14.It is essential to note that in the absence of an electric field, mineral oil exhibits isotropy and therefore has this refractive index.

95However, when an electric field E is applied to the oil, a double-refraction phenomenon is observed.Along with the refractive index, n 0 , an additional ray appears called the extraordinary ray, which has a refractive index of n e .These two indices are related through the well-known Kerr's law, represented as n e − n 0 = kE 2 .

96Birefringence in oil, which is the double refraction caused by the intensity of the external electric field, is quantified as the difference between these refractive indices, n e − n 0 .The constant k is usually referenced for a wavelength of 546 nm.It corresponds to intense green (see Figure 10b).It is obtained by multiplying this wavelength by the Kerr constant, which for a dielectric mineral oil is 1.8•10 −15 m/V 2 [45].This gives us a value of k = 9.82•10 −22 m 2 /V 2 .

97Since polarized rays have different refractive indices, their speeds are different.The extraordinary ray, with a higher refractive index, is slower, while the ordinary ray, with a lower refractive index, is faster.The ordinary ray follows Snell's law of refraction.Furthermore, these two rays are polarized perpendicularly to each other.

98When polarizers 1 and 2 (Figure 9) are orthogonal to each other, as explained in the previous subsection, and in the absence of an external electric field, the light, coming from the CFL and reaching the camera, shows a minimum intensity corresponding to ordinary lightning.However, upon applying an electric field strong enough to generate a PD, the intensity of the electric field increases in the region of the PD.This, in accordance with Kerr's law, causes the extraordinary ray, polarized perpendicularly to the ordinary ray, to pass through polarizer 2 with greater intensity, allowing it to be detected by the HQ camera.

99This physical principle is used to visualize the areas of greatest electric field that are generated at the electrodes in the PD regions within the oil, as illustrated in Figure 16.

100a value of = √2.14.It is essential to note that in the absence of an electric field, mineral oil exhibits isotropy and therefore has this refractive index.

101However, when an electric field is applied to the oil, a double-refraction phenomenon is observed.Along with the refractive index, , an additional ray appears called the extraordinary ray, which has a refractive index of .These two indices are related through the well-known Kerr's law, represented as − = .

102Birefringence in oil, which is the double refraction caused by the intensity of the external electric field, is quantified as the difference between these refractive indices, − .The constant is usually referenced for a wavelength of 546 nm.It corresponds to intense green (see Figure 10b).It is obtained by multiplying this wavelength by the Kerr constant, which for a dielectric mineral oil is 1.8•10 −15 m/V 2 [45].This gives us a value of = 9.82•10 −22 m 2 /V 2 .

103Since polarized rays have different refractive indices, their speeds are different.The extraordinary ray, with a higher refractive index, is slower, while the ordinary ray, with a lower refractive index, is faster.The ordinary ray follows Snell's law of refraction.Furthermore, these two rays are polarized perpendicularly to each other.

104When polarizers 1 and 2 (Figure 9) are orthogonal to each other, as explained in the previous subsection, and in the absence of an external electric field, the light, coming from the CFL and reaching the camera, shows a minimum intensity corresponding to ordinary lightning.However, upon applying an electric field strong enough to generate a PD, the intensity of the electric field increases in the region of the PD.This, in accordance with Kerr's law, causes the extraordinary ray, polarized perpendicularly to the ordinary ray, to pass through polarizer 2 with greater intensity, allowing it to be detected by the HQ camera.

105This physical principle is used to visualize the areas of greatest electric field that are generated at the electrodes in the PD regions within the oil, as illustrated in Figure 16.

106Figure 16.The PD between the electrodes generates an intense electric field concentrated in the discharge area.As a result, the extraordinary ray, which is polarized perpendicularly to the ordinary ray, passes through polarizer 2 with a significantly higher intensity, allowing it to be detected by the HQ camera.

Validation of the Permanent Regime of the Electric Field of a Bubble

107Next, the main PD models and their numerical resolution, in a steady state, for the test cell (see Figure 11b) are explained.In [46], the simulation of PD events in a void space within an insulating material is discussed and several models developed to simulate these PD events.They can be classified into three categories: the induced charge concept model, Figure 16.The PD between the electrodes generates an intense electric field concentrated in the discharge area.As a result, the extraordinary ray, which is polarized perpendicularly to the ordinary ray, passes through polarizer 2 with a significantly higher intensity, allowing it to be detected by the HQ camera.Next, the main PD models and their numerical resolution, in a steady state, for the test cell (see Figure 11b) are explained.In [46], the simulation of PD events in a void space within an insulating material is discussed and several models developed to simulate these PD events.They can be classified into three categories: the induced charge concept model, the three-capacitor model, and the finite element method model, which is a distributed parameter model.Each has its own advantages and disadvantages.

PD in Gaseous Bubbles

108In this work, the distributed parameter model was followed [47], which is more accurate than the other two, because unlike them, it considers the 3D geometry of the measurement cell and the electrodes.

109In [47], a distributed parameter model is developed, applying the finite formulation [48] and using effective property parameters.This is the model followed in this work.The main equations are presented below:

110The most relevant effective physical quantities involved in these equations, which were used in the simulations, are detailed in 47] and can be summarized as follows: the frequency, f = 50 Hz, the relative permittivity, ε roil = 2.14, and the effective electrical conductivity of the oil, σ = 45•10 −12 S/m, for an oil temperature of T = 25 • C.

111The boundary condition of the HV electrode is made to match the experimental measurements recorded by the DDX-9101 PD detector.All simulations were carried out in 3D with the Gmsh mesh generator [49].Although in some cases, the problem has axial symmetry, the situation of the bubbles makes a general analysis in 3D necessary.In these latter conditions, the mesh used has a number of nodes equal to 82,655, the number of triangles is 43,290 and the number of tetrahedra is 441,057.The system of equations set out in Equation ( 2) is formulated according to the finite formulation.In that case, the solution is equivalent to applying the finite element method.For this reason, the Getdp program [50] was used, which is a general environment for the treatment of discrete problems.

112In order to validate the numerical results obtained from Equation (2), they were compared with the results obtained through a known analytical expression [5] that describes the behavior of an electric field in a gaseous bubble.This equation governs the distribution of electric field intensity both inside and outside a spherical bubble at specific points, the poles and the equator.

113We will begin by presenting the numerical results derived from Equation (2). Figure 17a shows the numerical results corresponding to the electric potential in the absence of breaks and without the presence of a bubble.The potential distribution between the electrodes reflects an effective voltage difference of 3.5 kV.In Figure 17b, the distribution of the electric field intensity can be observed, where the maximum value recorded is 2.03•10 6 V/m.This distribution is uniform between the electrodes in their narrowest part without the presence of a bubble.Then, the distribution of the electric field intensity is presented, both inside and outside, of a bubble located between the two electrodes, obtained by solving Equations (2). Figure 18a shows the modulus of the electric field intensity, which is maximum and uniform within the bubble before a rupture occurs in the PD. Figure 18b provides a detail of the electric field intensity in the vicinity of the bubble.

114To corroborate the numerical results obtained in this work, a comparison was carried out with a widely recognized analytical equation.In this case, we consider a gaseous bubble with radius R immersed in a dielectric oil characterized by a relative permittivity constant ε roil = ε ε 0 .The bubble is in a uniform external electric field, → E 0 , as depicted in Figure 17b.

115→ E 0 , without the bubble, is aligned with the axis of the electrode poles, as shown in Figure 17a.By introducing a gaseous bubble between the electrodes, the electric field → E, inside the bubble, becomes parallel and uniform, as seen in Figure 18.There is an analytical equation [5] that establishes the relationship between the field inside the bubble and → E 0 , as presented in Equation ( 4):

116At the poles, θ = [0, π], the electric field intensity of the spherical bubble is less than → E 0 , as described in Equation ( 5):

117Sensors To corroborate the numerical results obtained in this work, a comparison was carried out with a widely recognized analytical equation.In this case, we consider a gaseous bubble with radius R immersed in a dielectric oil characterized by a relative permittivity constant = .The bubble is in a uniform external electric field, ⃗ , as depicted in Fig- ure 17b. ⃗ , without the bubble, is aligned with the axis of the electrode poles, as shown in Figure 17a.By introducing a gaseous bubble between the electrodes, the electric field ⃗ , inside the bubble, becomes parallel and uniform, as seen in Figure 18.There is an analytical equation [5] that establishes the relationship between the field inside the bubble and ⃗ , as presented in Equation ( 4):

118At the poles, = 0, , the electric field intensity of the spherical bubble is less than ⃗ , as described in Equation ( 5): It was also confirmed that at the equator, θ = π /2, the electric field intensity at the surface of the gaseous bubble increases compared to → E 0 in the absence of bubble, as illustrated in Figure 18.

119The quotient in the center of the bubble of the values obtained numerically is E center/E 0 = 1.182.The value obtained with the analytical Equation ( 4) is 1.216.It is an error of 2.7%.The electric field intensity distribution in Figure 18a is prior to the breakdown of the PD.

Numerical and Experimental Results with Two-Bubble Rupture

120In the previous section, we looked at the distribution of electric field strength, both inside and around a gaseous bubble.This analysis was carried out by comparing the numerical solution derived from Equation (2) with the analytical formulation presented in Equation (4).

121In this section, we proceed to an evaluation of the distribution of the electric potential and the intensity of the electric field in the area surrounding two bubbles in the region between the electrodes, with the condition of a PD. Figure 19a graphically represents the distribution of the electric potential around two bubbles, each with an approximate diameter of 0.6 mm.This distribution was obtained under a constant boundary condition on the HV electrode, set at 5.3 kV effective.

122Figure 19b provides a view of the electric field intensity distribution in the vicinity of the two bubbles located between the electrodes during a PD.It is relevant to highlight that the electric field intensity reaches its maximum value at the poles of the bubbles and gradually decreases until reaching its minimum value at the center of the bubbles.

123The boundary condition of 5.3 kV used in the simulation was set based on the experimental measurements obtained through the DDX-9101PD detector, with an approximate induced charge of 0.760 nC, as illustrated in Figure 20a.Additionally, in Figure 20b, the image captured by the HQ camera is presented, through an optical glass and specific polarizers, under the same conditions of potential difference of 5.3 kV.From this voltage, in the laboratory, the first PDs were observed.The analysis was carried out in a 3D domain because the general arrangement of the bubbles does not allow an axially symmetrical approach.

124Figure 19b provides a view of the electric field intensity distribution in the vicinity of the two bubbles located between the electrodes during a PD.It is relevant to highlight that the electric field intensity reaches its maximum value at the poles of the bubbles and gradually decreases until reaching its minimum value at the center of the bubbles.

125The boundary condition of 5.3 kV used in the simulation was set based on the experimental measurements obtained through the DDX-9101PD detector, with an approximate induced charge of 0.760 nC, as illustrated in Figure 20a.Additionally, in Figure 20b, the image captured by the HQ camera is presented, through an optical glass and specific polarizers, under the same conditions of potential difference of 5.3 kV.

Introduction

126In order to carry out the design, training and validation of the CNN, the computer applications TensorFlow and Keras were used.Keras is a Python library for machine learning and deep neural networks.Keras can run on top of TensorFlow.It was created by Google Brain in 2011.Since 2015, it has been open source [18].In TensorFlow 2.0 and later, Keras has become the default high-level application programming interface (API) for defining and training neural networks within TensorFlow.

127TensorFlow has a backend component that is programmed in more efficient and low-level programming languages, such as C or C++.This is important because Python, although a versatile and easy-to-use language, tends to be slower in executing certain mathematical operations and intensive calculations compared to languages like C/C++.

128All our simulations with TensorFlow were carried out in the Google Colab environment.Colaboratory or Google Colab is a free online platform.It allows users to run and write code in Python through their web browser.It is based on the Jupyter Notebook development environment.It offers a cloud runtime environment that includes access to powerful computing resources, such as Google's graphics processing units (GPUs) and tensor processing units (TPUs).

129This section details the process that was followed, from the initial collection of images, and their subsequent classification, as described in Section 4.2.Subsequently, the artificial enrichment of the images is addressed by transformations before carrying out the training, which is explained in Section 4.3.

130Then, we proceed to the creation and design of the most suitable convolutional neural network, as explained in Section 4.4.Next, the model is compiled.This is a crucial step that is documented in Section 4.5.

131The network training process is detailed in Section 4.6, where the specific parameters and settings used in TensorFlow, within the Google Colab environment, are explained in depth to facilitate more precise monitoring.Two fundamental aspects of neural network convergence are addressed in Sections 4.7 and 4.8, which focus on convergence for three and four classes, respectively, providing a detailed understanding of how the network adapts to different data sets and requirements.

132Finally, model validation is carried out, where its performance is tested using images that were used in the CNN training process.This is described comprehensively in Section 4.9.

133In each of these subsections, detailed explanations of the parameters and functions used in TensorFlow, in the Google Colab environment, are included with the purpose of offering a complete and precise guide to the entire process carried out in this work.

Image Collection and Classification into Classes

134The main objective of the CNN is to analyze images and determine which category they belong to, in addition to quantifying the accuracy of this classification.This can be seen in detail in Figure 21.

135Figure 21 shows a visual representation of the CNN.It presents the following layers:

136• Convolutional: in this layer, each filter is applied to the image in successive positions along the image, and through convolution operations, a features map is generated.

•

137Pooling: the aim of this layer is to reduce the computational load by reducing the size of the feature maps.

138Fully connected: this layer takes the convolutional features, previously flattened, generated by the last convolutional layer and makes a prediction.

Image Collection and Classification into Classes

139The main objective of the CNN is to analyze images and determine which category they belong to, in addition to quantifying the accuracy of this classification.This can be seen in detail in Figure 21.• Convolutional: in this layer, each filter is applied to the image in successive positions along the image, and through convolution operations, a features map is generated.

•

140Pooling: the aim of this layer is to reduce the computational load by reducing the size of the feature maps.

141Fully connected: this layer takes the convolutional features, previously flattened, generated by the last convolutional layer and makes a prediction.

142To carry out this process, it is essential to have a set of images as broad and diverse as possible, along with their respective classification into classes of interest.In our case, we have a dataset that consists of a total of 2000 images.

143In our experiments, we defined four specific classes:

144• Class 0-PD (with PD): This category is illustrated in Figure 22, where eight images randomly selected from a set of 500 are shown.These images represent different instances of the PD, which were experimentally verified through electrical measurements through the discharge capacitor.

145Class 1-NO_PD (without PD): Figure 23 presents eight random images out of a total of 500 that belong to this category.These images represent moments in which the PD detector DDX-9101 does not detect any PD.

146Class 2-ARC (total rupture of the electric arc): Figure 24 shows images that correspond to the moment of total rupture of the electric arc.• Class 3-BREAK (post-arc break with a large number of bubbles): Finally, Figure 25 shows a random selection of eight images out of a total of 500 belonging to this class.

147In summary, the main objective of the neural network is to classify images into these four categories, and to achieve this, a large and varied dataset consisting of 2000 images in total was used.Each class has its own identification and is supported by a representative sample of images from its respective category.To carry out this process, it is essential to have a set of images as broad and diverse as possible, along with their respective classification into classes of interest.In our case, we have a dataset that consists of a total of 2000 images.

148In our experiments, we defined four specific classes:

149• Class 0-PD (with PD): This category is illustrated in Figure 22, where eight images randomly selected from a set of 500 are shown.These images represent different instances of the PD, which were experimentally verified through electrical measurements through the discharge capacitor.

150Class 1-NO_PD (without PD): Figure 23 presents eight random images out of a total of 500 that belong to this category.These images represent moments in which the PD detector DDX-9101 does not detect any PD.

151Class 2-ARC (total rupture of the electric arc): Figure 24 shows images that correspond to the moment of total rupture of the electric arc.

152Class 3-BREAK (post-arc break with a large number of bubbles): Finally, Figure 25 shows a random selection of eight images out of a total of 500 belonging to this class.In summary, the main objective of the neural network is to classify images into these four categories, and to achieve this, a large and varied dataset consisting of 2000 images in total was used.Each class has its own identification and is supported by a representative sample of images from its respective category.

Image Transformation

153In order to strengthen the model's ability to generalize and make accurate predictions, new images were obtained through the HQ camera.For this, the ImageDataGenerator() function was used.This function makes it possible through transformations to create multiple variations of the original images, thus enriching the data set and improving the generalization of the model.This function was applied before training the CNN model.Some of the main arguments used in our work by this function are detailed below:

154• "rescale = 1/255" is a simple normalization, where the value of each pixel in the image is divided by 255.This is done to ensure that the pixel values are in the range [0, 1], which facilitates processing and improves convergence during training.

•

155"rotation_range = 30" allows us to randomly rotate images within a range of ±30 de-

Image Transformation

156In order to strengthen the model's ability to generalize and make accurate predictions, new images were obtained through the HQ camera.For this, the ImageDataGenerator() function was used.This function makes it possible through transformations to create multiple variations of the original images, thus enriching the data set and improving the generalization of the model.This function was applied before training the CNN model.Some of the main arguments used in our work by this function are detailed below:

157• "rescale = 1/255" is a simple normalization, where the value of each pixel in the image is divided by 255.This is done to ensure that the pixel values are in the range [0, 1], which facilitates processing and improves convergence during training.• "rotation_range = 30" allows us to randomly rotate images within a range of ±30 degrees.This helps the model to be more robust to different object orientations.

158• "width_shift_range = 0.25" and "height_shift_range = 0.25" allows us to shift images horizontally and vertically within a range of ±25% of the original image size.This simulates variations in object position in the image and allows the model to support greater variability in object locations.• "shear_range = 15" introduces warps that cause the image to be sheared at an angle of ±15 degrees.This is useful for working with images taken from different angles.

159• "zoom_range = [0.5, 1.5]" is a transformation that randomly zooms images in the range 0.5 to 1.5.This simulates the variability in the distance from the camera to the object and improves the model's ability to recognize objects in different sizes.

160• "validation_split = 0.2" sets the proportion of data used for validation.In this case, 20% of the data were separated to be used as a validation set, while the remaining 80% was used for training.

161Similarly, the "flow_from_directory()" function was employed, which is used in the context of data processing and preparation for training deep learning models.This function simplifies the loading and pre-processing of images stored in a folder structure organized as in the previous section.

162Below are described some of the arguments used in this function.

163• "/content/drive/MyDrive/Colab_Notebooks/dataset" is the path to the directory containing the training data.In this case, the data are organized into subfolders, where each subfolder represents an object class; in our case "PD," "NO_PD," "ARC" and "BREAK."• "target_size = (224, 224)" sets the size to which all images will be resized.The images were resized to a size of 224 × 224 pixels, which is a size commonly used in many deep learning applications.• "batch_size = 32" defines the batch size for training.During training, the images were grouped into batches of 32 images each to optimize the training process.• "shuffle = True" was set to True so that the images within each batch were randomly shuffled at each training epoch.This helps ensure that the model does not memorize the order of the images.• "classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure.

164Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function.

Creation of the CNN Model

165There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process.

166the order of the images.

167• "classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure.

168There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process.

169The program responsible for conducting CNN training and validation is Python.shuffled at each training epoch.This helps ensure that the model does not memorize the order of the images.

•

170"classes = ["PD," "NO_PD," "ARC," "BREAK"]" sets the list of class names to which the images belong.This is essential so that the data generator knows what labels to assign to the images based on the folder structure.

Creation of the CNN Model

171There are many advantages in adopting a CNN design.First, convolution layers specialize in learning to extract relevant features from images.This is essential for visual information processing.Second, clustering layers play a crucial role in reducing the spatial dimension and the number of parameters in the model.This not only improves computational efficiency but also mitigates the risk of overfitting.Third, the concept of dropout becomes a valuable ally by preventing overfitting through the introduction of a controlled degree of randomness during the training process.Finally, the dense layers at the end of the model play a crucial role in allowing final decisions to be made based on the features extracted throughout the process.

172The program responsible for conducting CNN training and validation is Python.The program responsible for conducting CNN training and validation is Python.The function "model = tf.keras.Sequential()" was used to create a CNN model in TensorFlow using the Sequential interface, which is a simple way to define a linear sequence of layers in the neural network.

173Each of the sets of layers, which correspond to the arguments of the function "model = tf.keras.Sequential()" used in this model, are explained in detail below, as well as the advantages of each one:

174• "tf.keras.layers.Conv2D (32, (3,3), input_shape = (224,224,3), activation ="relu")" is a 2D convolution layer that applies 32 filters, also known as kernels, to the input image.Each filter is 3 × 3 pixels in size.

175• "input_shape = (224,224,3)" specifies the size of the input image.The images are 224 × 224 pixels with RGB color channels.The "relu" (rectified linear unit) trigger function is applied after convolution.This function is common in CNN and helps to introduce nonlinearity in the network.• "tf.keras.layers.MaxPooling2D(2,2)" is a pooling layer that reduces the spatial dimension of the output of the convolution layer.It uses the max-pooling method with a window size of 2 × 2 pixels and retains only the maximum value of those pixels.This method simplifies the number of parameters and operations in the network, which helps reduce the risk of overfitting and improves computational efficiency.• "tf.keras.layers.Conv2D(64, (3,3), activation = "relu")" is similar to the first convolution layer, but now 64 filters are used instead of 32.

176• "tf.keras.layers.Dropout(0.5)" is a dropout layer that randomly deactivates 50% of the neurons in this layer during training.Dropout is a regularization technique that helps prevent overfitting by reducing interdependence between neurons.• "tf.keras.layers.Flatten()" converts the output of the previous layer into a one- dimensional vector.

Compilation Stage

177Setting up the "model.compile()"function is a critical step in building and training a neural network.

178Through this function, several parameters are specified that influence how the model learns and evaluates its performance.The following details how these key parameters were implemented, each with a specific role in configuring the network and optimizing its ability to solve the problem.

179• "optimizer = "Adam"," where the Adam optimizer is an optimization algorithm that automatically adjusts the learning rate during training.• "loss = "categorical_crossentropy"," which is the loss function used during training.

180Our case is a multiclass classification problem, so categorical cross-entropy loss is a common option.It helps measure the difference between the probabilities predicted by the model and the true labels of the data.

181• "metrics = "accuracy"" defines the metrics that are used to evaluate the performance of the model during training and evaluation.In this case, the accuracy metric is used, which measures the proportion of samples classified correctly.

CNN Model Training

182In TensorFlow, the model.fit()function plays a vital role in training a neural network using training data.Through this function, the model training process is configured and monitored.

183The arguments that are provided to the model.fit()function are essential to customize and direct this training process effectively.

184Below, we detail how these key arguments were implemented, each with a specific role in configuring the network and optimizing its ability to solve the problem:

185• "training_data" represents the set of training data used to train the model.It contains the input features and corresponding output labels for training.It is provided as a pair of tensors: one for features and one for labels.• "epochs" specifies the number of epochs or training cycles that are performed.

186A complete epoch occurs when the entire training dataset has been used once to update the model weights.The value that was used in training in this work was "epochs = 50."• "batch_size = 32" defines the size of the data batch used in each training step.At each epoch, the training data are divided into batches of the specified size and used to calculate the gradient and update the model weights.A batch size larger than 32 can speed up training but requires more memory.

Convergence for Three Classes

187Neural network design involves computationally intensive processes that can consume a significant amount of time.With the purpose of optimizing execution times and determining the optimal method, along with its parameters, the work begins with an initial focus on a set of three specific classes.

188These classes are the PD class, which covers situations with PD, the NO_PD class, which refers to instances where PD does not occur, and the BREAK class, which encompasses all images after the breakdown of the electric arc, including all the ARC class.This initial selection of three classes allows for a more agile and precise evaluation of the methods and parameters, thus accelerating the neural network design process.Three methods were evaluated, which can be implemented using TensorFlow.We wanted to know which of the three was most efficient from a computational point of view.These three methods are called the CNN method with knowledge transfer, the CNN method without dropout, and the CNN method with dropout.

The CNN Method with Knowledge Transfer

189The results of the knowledge transfer method are seen in Figure 28.They represent the average accuracy of the training and validation data over the epochs.These visualizations were generated using TensorFlow and TensorFlow Hub, leveraging a pretrained model known as MobileNetV2.

190determining the optimal method, along with its parameters, the work begins with an initial focus on a set of three specific classes.

191These classes are the PD class, which covers situations with PD, the NO_PD class, which refers to instances where PD does not occur, and the BREAK class, which encompasses all images after the breakdown of the electric arc, including all the ARC class.This initial selection of three classes allows for a more agile and precise evaluation of the methods and parameters, thus accelerating the neural network design process.Three methods were evaluated, which can be implemented using TensorFlow.We wanted to know which of the three was most efficient from a computational point of view.These three methods are called the CNN method with knowledge transfer, the CNN method without dropout, and the CNN method with dropout.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the MobileNetV2 model remained unchanged and worked as a static feature extractor, avoiding the need to retrain it.This transfer learning strategy contributed significantly to reducing execution times, achieving a total training duration of only 1.22 h.

192To ensure compatibility with MobileNetV2, the expected input data were configured with dimensions of 224 × 224 pixels and RGB color channels.The dataset used for training consisted of a total of 1200 images distributed in three different classes, while the verification set consisted of 300 images equally distributed in the same three classes.The training process was carried out over 50 epochs, and no significant improvements in model performance were observed beyond this point.

193We observed that there was a stabilization in accuracy at between 40 and 50 epochs.Therefore, it was decided to carry out all the experiments with this maximum value of epochs for all the cases considered, as seen in Figure 28.Furthermore, from 50 epochs onwards, calculation times increase significantly without obtaining significant improvements in accuracy and with risks of overfitting.

194The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process.

CNN Method without Dropout

195In this second method implemented in TensorFlow, a model that incorporates convolutional layers interleaved with max-pooling layers was used with the purpose of extracting relevant features from the input images.These features were then flattened before passing through two fully connected dense layers, responsible for carrying out the final classification.It should be noted that the output layer of this model consisted of three units, indicating that the model was designed to perform classification into three different classes.

196The results obtained from this second method are represented in Figure 29.It reflects the evolution of the average accuracy during the training and validation process throughout the different epochs.

197The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process.

198In this second method implemented in TensorFlow, a model that incorporates convolutional layers interleaved with max-pooling layers was used with the purpose of extracting relevant features from the input images.These features were then flattened before passing through two fully connected dense layers, responsible for carrying out the final classification.It should be noted that the output layer of this model consisted of three units, indicating that the model was designed to perform classification into three different classes.

199The results obtained from this second method are represented in Figure 29.It reflects the evolution of the average accuracy during the training and validation process throughout the different epochs.Compared to the first method implemented, it is evident that the results obtained in terms of validation accuracy are less favorable in this second approach.

CNN Method with Dropout

200In the third method, also implemented in TensorFlow, an additional technique called dropout is introduced, configured using the argument "tf.keras.layers.Dropout(0.5)."Dropout is a regularization strategy widely used in neural networks with the purpose of mitigating overfitting and enriching the generalization capacity of the model.

201The application of the dropout, with a value of 0.5, implies that during the training process, approximately half of the neural connections are randomly deactivated in each iteration.This has the effect of preventing the model from becoming overly reliant on specific neural connections and features, which in turn can boost its ability to generalize and adapt to previously unseen data.The training covered 50 epochs, and the total execution time was approximately 2.20 h.

202The results derived from this third method are represented in Figure 30, showing the evolution of the average accuracy during the training and validation stages throughout the various epochs.

203By incorporating the dropout technique in this third method (Figure 30), a significant improvement in the accuracy and generalization capacity of the model was achieved compared to the second method that does not have dropout.However, the results are very similar to those obtained with the first method with knowledge transfer.

Convergence for Four Classes

204In the previous section, the three CNN methods were compared.In this section, the study of CNN with dropout and with knowledge transfer is carried out for the four classes, as they were found to be the two best methods, achieving similar results.

205Figure 31 shows the evolution of the average accuracy throughout the different epochs during the training and validation process.The estimated time necessary to complete the 50 training epochs was approximately three hours for both methods.

206mitigating overfitting and enriching the generalization capacity of the model.

207The application of the dropout, with a value of 0.5, implies that during the training process, approximately half of the neural connections are randomly deactivated in each iteration.This has the effect of preventing the model from becoming overly reliant on specific neural connections and features, which in turn can boost its ability to generalize and adapt to previously unseen data.The training covered 50 epochs, and the total execution time was approximately 2.20 h.

208The results derived from this third method are represented in Figure 30, showing the evolution of the average accuracy during the training and validation stages throughout the various epochs.

209By incorporating the dropout technique in this third method (Figure 30), a significant improvement in the accuracy and generalization capacity of the model was achieved compared to the second method that does not have dropout.However, the results are very similar to those obtained with the first method with knowledge transfer.

210In the previous section, the three CNN methods were compared.In this section, the study of CNN with dropout and with knowledge transfer is carried out for the four classes, as they were found to be the two best methods, achieving similar results.

211Figure 31 shows the evolution of the average accuracy throughout the different epochs during the training and validation process.The estimated time necessary to complete the 50 training epochs was approximately three hours for both methods.

212A final average accuracy of the training and validation data greater than 95% was obtained, with 50 epochs, as can be seen in Figure 31.The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward.

213Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32.A final average accuracy of the training and validation data greater than 95% was obtained, with 50 epochs, as can be seen in Figure 31.

214The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward.

215Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32.

216In this matrix, the true labels are on the y axes.They correspond to the actual labels associated with each image in the test dataset.These labels were obtained by loading the test images and assigning a label to each one, based on the directory the image came from.These labels represent the actual class to which each image belongs.The predicted labels, x labels, are the labels that the model generated for each image in the test dataset after performing inferences with the pretrained model.These labels represent the class that the model assigns to each image.

217The "confusion_matrix" function calculates and returns a square matrix that has dimensions equal to the number of classes in the classification problem.In this matrix, the rows represent the ground truth classes, while the columns represent the classes predicted by the model.The average accuracy with both CNN dropout and with knowledge transfer is similar to the four classes, as can be seen in Figure 31.They achieved values higher than 95% in fewer than 50 epochs.However, considering that CNN with dropout was not trained previously, we assume that this CNN takes more epochs to reach the same accuracy.As it is possible that a CNN knowledge transfer model may not be accessible, we decided to use CNN with dropout from this point forward.

218Once the final model had been obtained, the confusion matrix was generated for the four classes.It is represented in Figure 32.In this matrix, the true labels are on the y axes.They correspond to the actual labels associated with each image in the test dataset.These labels were obtained by loading the test images and assigning a label to each one, based on the directory the image came from.These labels represent the actual class to which each image belongs.The predicted labels, x labels, are the labels that the model generated for each image in the test dataset after performing inferences with the pretrained model.These labels represent the class that the model assigns to each image.

219The "confusion_matrix" function calculates and returns a square matrix that has dimensions equal to the number of classes in the classification problem.In this matrix, the Each element of the confusion matrix in row i and column j indicates the number of samples that belong to class i, according to the true labels, and that were classified as class j by the model.In other words, it represents how many times the model was correct in predicting class j when the true class was i.

220To graphically visualize the performance of the neural network trained in the last configuration, eight random images are presented in Figures 33-35.These images were randomly selected from the dataset, from the ARC class and from the PD class, respectively.Additionally, the predictions made by the neural network for each of these images are included.Each element of the confusion matrix in row i and column j indicates the number of samples that belong to class i, according to the true labels, and that were classified as class j by the model.In other words, it represents how many times the model was correct in predicting class j when the true class was i.

221To graphically visualize the performance of the neural network trained in the last configuration, eight random images are presented in Figures 33-35.These images were randomly selected from the dataset, from the ARC class and from the PD class, respectively.Additionally, the predictions made by the neural network for each of these images are included.

CNN Test

222In this subsection, we carry out the verification of the neural network previously trained in Section 4.8 by using a test dataset that was not used during the network training process.

223In this subsection, we carry out the verification of the neural network previously trained in Section 4.8 by using a test dataset that was not used during the network training process.

224Firstly, we selected a total of 72 images corresponding to 72 instances of breaks, class ARC, which came from the experiments that were not used in the training of the neural network.These experiments were carried out with a cell that is described in [15].This stage focuses on testing the model.

225The 72 instances of rupture are divided into three sets of tests, which correspond to test speeds of 3 kV/s, 2 kV/s and.0.5 kV/s.To provide detailed context on the specific conditions of the experiments and image collection of these arrays, summaries are presented in Tables 2-4.

226The results obtained by using CNN are presented, respectively, in Figures 36-38 for each of the sets of tests mentioned above.In the three figures, the accuracy is found to be 100% for the ARC class.

227The images were captured with three Raspberry Pi V2 cameras, located on the right, Firstly, we selected a total of 72 images corresponding to 72 instances of breaks, class ARC, which came from the experiments that were not used in the training of the neural network.These experiments were carried out with a cell that is described in [15].This stage focuses on testing the model.

228The 72 instances of rupture are divided into three sets of tests, which correspond to test speeds of 3 kV/s, 2 kV/s and.0.5 kV/s.To provide detailed context on the specific conditions of the experiments and image collection of these arrays, summaries are presented in Tables 2-4.The results obtained by using CNN are presented, respectively, in Figures 36-38 for each of the sets of tests mentioned above.In the three figures, the accuracy is found to be 100% for the ARC class.

229The images were captured with three Raspberry Pi V2 cameras, located on the right, R, in the center, C, and on the left, L, of the cell.Each camera captures different frames per second (fps).The room temperature (T) was measured in all the experiments.The experiment ends when the breakdown voltage V rup is achieved.

230Secondly, in this testing stage, PD images were analyzed in two different sets, composed of 400 and 571 images, captured using the HQ camera.Of the 400 images, these correspond to PD tests for voltages varying between 4 and 5 kV.The results of this analysis are presented in Figure 39.This graph shows an improvement in the identification of the PD from image number 150, which is due to the fact that the voltage is closer to 5 kV where PDs are more frequent.

231Secondly, in this testing stage, PD images were analyzed in two different sets, composed of 400 and 571 images, captured using the HQ camera.Of the 400 images, these correspond to PD tests for voltages varying between 4 and 5 kV.The results of this analysis are presented in Figure 39.This graph shows an improvement in the identification of the PD from image number 150, which is due to the fact that the voltage is closer to 5 kV where PDs are more frequent.

Conclusions

232In this paper, a non-destructive diagnostic method is developed based on the use of a high-resolution, low-cost CMOS image sensor and the design of a CNN.This method allows information to be obtained about the state of mineral oils before their breakdown occurs, providing a valuable tool for the evaluation and maintenance of these dielectric materials.

233An exhaustive experimental analysis of PDs originating from gaseous bubbles present in the dielectric oil was carried out by combining a standard electrical detection system and an optical detection system.The work presents the numerical results derived from the solution of an equation that describes the behavior of the electric field intensity in a gaseous bubble.These results were compared with those obtained using a known analytical expression, showing that there is an agreement between both, with an error of 2.7%.

234A CNN was trained to identify and classify the images captured by the image sensor into four classes: with and without PDs, with arc rupture, and with post-breakdown effects.An image classification model was also developed using deep learning with a CNN based on a TensorFlow and Keras model.

235In this work, three different CNN methods based on a TensorFlow were applied: CNN using MobileNetV2, CNN method without dropout, and CNN method with dropout.

236The MobileNetV2 method converges the fastest because it is pretrained and there is previous knowledge transfer.Of the other two methods, the one that converges faster is, logically, the one with dropout, since dropout is a regularization strategy widely used in CNN with the purpose of mitigating overfitting.

237The performance of the three CNN methods was compared, obtaining an accuracy around 95% in the validation set and 82% in the test set with the best method, which was CNN with dropout.

238The reason the accuracy is higher in the validation is that the images used were taken in experiments other than the test ones.The test ones were taken in order to verify the previously trained and validated CNN model.

239As already mentioned, the CNN model was trained and validated with a set of 2000 images from the same set of experiments: 80% was used for training and 20% for validation.However, verification of the model was done using 571 images that had not previously been used for training and validation.

Sensors 2024 ,

24024, x FOR PEER REVIEW 5 of 35

Figure 1 .

241Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz.

Figure 2 .

242Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V.

Figure 1 .

243Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz.

244Figure 1.(a) Hipotronics discharge capacitor, rated capacitance 1 pF, rated voltage 100 kV, frequency 50 Hz.(b) HV test transformer model HHT7-10T-220 (Hipotronics, Hubbell), rated input 230 V AC, 10 KVA, rated output 100 KVA, 100 mA, frequency 50 Hz.

Figure 2 .

245Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V.

246Figure 2. Power supply for the regulation of the output voltage, from 0 to 230 V.

Figure 3 .

247Figure 3. (a) Operating terminal OT 248 system, Tettex-Haefely test AG.(b) PD detector DDX-9101, Tettex-Haefely test AG.

Figure 4 .Figure 5 .

248Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36].

Figure 3 .Figure 3 .

249Figure 3. (a) Operating terminal OT 248 system, Tettex-Haefely test AG.(b) PD detector DDX-9101, Tettex-Haefely test AG.

Figure 4 .Figure 5 .

250Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36].

Figure 4 .Figure 3 .

251Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36].

Figure 4 .Figure 5 .

252Figure 4. Electrical equipment connection diagram using standard IEC 60270 [36].

Figure 6 .

253Figure 6.Raspberry Pi cameras: (a) HQ (b) V2.

Figure 7 .

254Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras.

Figure 6 .

255Figure 6.Raspberry Pi cameras: (a) HQ (b) V2.

Sensors 2024 ,Figure 6 .

256Figure 6.Raspberry Pi cameras: (a) HQ (b) V2.

Figure 7 .

257Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras.

258Figure 7. (a) 16 mm CGL telelens.(b) Location diagram of the HQ and V2 cameras.

Figure 8 .

259Figure 8. Computer Raspberry Pi 4.

260Figure 8. Computer Raspberry Pi 4.

Figure 9 .

261Figure 9. Test device in the HV laboratory.

262Figure 9. Test device in the HV laboratory.

Sensors 2024 ,

26324, x FOR PEER REVIEW 10 of 35

Figure 10 .

264Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera.

265Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera.

266Figure 10.Light spectrum obtained by the V2 camera without infrared filter used to position the polarizers.(a) Spectrum of the red laser and CFL used.(b) Spectrum of the CFL used, in addition, for the detection of PD with the HQ camera.

Figure 11 .

267Figure 11.(a) Detail of the two square polarizers, the test cell and the one gear.(b) Transparent methacrylate cell with the two electrodes.

268Figure 11.(a) Detail of the two square polarizers, the test cell and the one gear.(b) Transparent methacrylate cell with the two electrodes.

269).It transmits the measured data in real time to the other paired ESP-32 microcontroller, working as a receiver, located in the control room.The two ESP-32 devices use Wi-Fi technology.These data are then presented in a digital display.The transmitter and receiver boards are type ESP-32, Sensors 2024, 24, 1317 11 of 35

Figure 12 .

270Figure 12.Sensors, actuators, and control system.Figure 12. Sensors, actuators, and control system.

271Figure 12.Sensors, actuators, and control system.Figure 12. Sensors, actuators, and control system.

Figure 13 .

272Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ.

273Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ.

274Figure 13.Axial section of the electrodes in which the gray scale was analyzed with Fiji ImageJ.

Figure 14 .

275Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser.

Figure

276Figure15a,b shows the luminosity for a polarizer position of −5.83° and −0.11°.It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees.

Figure 14 .

277Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser.

Figure

278Figure15a,b shows the luminosity for a polarizer position of −5.83 • and −0.11 • .It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees.The CFL presents a minimum in the gray scale for a phase shift of −0.11 • and the red laser beam gives a minimum for −0.33 • .We can affirm that the relative angle between the polarizers is optimal, since it is difficult to register a difference of the order of a tenth of a degree.Therefore, the optimal relative position has a phase shift of zero degrees (see Figure14).The room temperature, atmospheric pressure, and relative humidity were continuously monitored through the BME280, from Bosch company, manufactured in Germany, 3.3 V digital sensor (see Figure12).The average room temperature recorded during the experimental tests was 25 • C, the atmospheric pressure 985 mb, and the relative humidity 58%.

Figure 14 .

279Figure 14.Gray scale for different relative angles of the polarizers.(a) For a CFL.(b) For a red laser.

FigureFigure 15 .

280Figure15a,b shows the luminosity for a polarizer position of −5.83° and −0.11°.It can be observed how the luminosity between the electrodes is noticeably lower when the relative position between the polarizers is optimal, close to zero degrees.

Figure 15 .

281Figure 15.(a) Luminosity between the electrodes with the polarizers at −5.83 • .(b) Luminosity be-tween the electrodes with the polarizers at −0.11 • .

282Dissolved in Oil 3.1.Validation of the Permanent Regime of the Electric Field of a Bubble

Figure 17 .Figure 17 .

283Figure 17.(a) Potential distribution between the electrodes for an effective voltage of 3.5 kV.(b) The maximum modulus of the electric field is 2.03•10 6 V/m.The distribution is uniform between the electrodes in their narrowest part without bubbles.

Figure 17 .Figure 18 .

284Figure 17.(a) Potential distribution between the electrodes for an effective voltage of 3.5 kV.(b) The maximum modulus of the electric field is 2.03•10 6 V/m.The distribution is uniform between the electrodes in their narrowest part without bubbles.

Figure 18 .

285Figure 18.(a) The modulus of the electric field intensity is maximum and uniform within the bubble.The distribution of the electric field in the figure is prior to the breakdown of the PD.(b) Detail of the increase in the field inside the bubble and its equator, with a decrease in it at the poles.

Figure 19 .

286Figure 19.Permanent break condition results.(a) Electric potential distribution for an HV electrode boundary condition equal to 5.3 kV effective.From this voltage, the first PDs are observed.The two bubbles used in the simulation are observed.(b) Electric field distribution around the two bubbles between the electrodes with PD.The electric field intensity is maximum at the poles and minimum at the center of the bubbles.

287Figure 19.Permanent break condition results.(a) Electric potential distribution for an HV electrode boundary condition equal to 5.3 kV effective.From this voltage, the first PDs are observed.The two bubbles used in the simulation are observed.(b) Electric field distribution around the two bubbles between the electrodes with PD.The electric field intensity is maximum at the poles and minimum at the center of the bubbles.

Figure 20 .

288Figure 20.Experimental results for PD using the HQ camera and PD detector DDX-9101 for an effective voltage of 5.3 kV.(a) Electrical measurement of the PD observed in Figure 20b.(b) Image obtained with the HQ camera corresponding to Figure 20a.

4 .

289CNN Design, Training, and Validation 4.1.Introduction In order to carry out the design, training and validation of the CNN, the computer applications TensorFlow and Keras were used.Keras is a Python library for machine learning and deep neural networks.Keras can run on top of TensorFlow.It was created by Google Brain in 2011.Since 2015, it has been open source [18].In TensorFlow 2.0 and later, Keras has become the default high-level application programming interface (API)

Figure 20 .

290Figure 20.Experimental results for PD using the HQ camera and PD detector DDX-9101 for an effective voltage of 5.3 kV.(a) Electrical measurement of the PD observed in Figure 20b.(b) Image obtained with the HQ camera corresponding to Figure 20a.

Figure 21 .

291Figure 21.The objective of the CNN is to determine from an image which class it belongs to and to quantify its accuracy.

Figure 21

292Figure 21 shows a visual representation of the CNN.It presents the following layers:

Figure 21 .

293Figure 21.The objective of the CNN is to determine from an image which class it belongs to and to quantify its accuracy.

Figure 22 .

294Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD.

295Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD.

296Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD.

Figure 23 .

297Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD.

Figure 24 .

298Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.

Figure 23 .

299Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD.

Figure 22 .

300Figure 22.Eight random images out of a total of 500 belonging to class 0 called PD.

Figure 23 .

301Figure 23.Eight random images out of a total of 500 belonging to class 1 called NO_PD.

Figure 24 .

302Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.

303Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Figure 24.Eight random images out of a total of 500 belonging to class 2 called ARC.Sensors 2024, 24, x FOR PEER REVIEW 21 of 35

Figure 25 .

304Figure 25.Eight random images out of a total of 500 belonging to class 3 called BREAK.

305Figure 25.Eight random images out of a total of 500 belonging to class 3 called BREAK.

Figures 26 and 27

306Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function.

Figure 26 .

307Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset.

Figure 27 .

308Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset.

Figure 26 .

309Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset.

Figures 26 and 27

310Figures 26 and 27 show some random examples of images transformed and generated with the ImageDataGenerator function.

Figure 26 .

311Figure 26.Examples of images transformed by the ImageDataGenerator() function.They improve the generalization of the dataset.

Figure 27 .

312Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset.

313Figure 27.Examples of images generated by the ImageDataGenerator() function.They enrich the images of the dataset.

4. 7 . 1 .

314The CNN Method with Knowledge TransferThe results of the knowledge transfer method are seen in Figure28.They represent the average accuracy of the training and validation data over the epochs.These visualizations were generated using TensorFlow and TensorFlow Hub, leveraging a pretrained model known as MobileNetV2.

Figure 28 .

315Figure 28.Knowledge transfer method.Average accuracy of training and validation data with epochs.MobileNetV2 is a widely recognized CNN model used in computer vision tasks due to its efficiency and high performance.It was used as a starting point to build a new threeclass classification model.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the

316Figure 28.Knowledge transfer method.Average accuracy of training and validation data with epochs.MobileNetV2 is a widely recognized CNN model used in computer vision tasks due to its efficiency and high performance.It was used as a starting point to build a new three-class classification model.It is important to highlight that the weights and internal layers of MobileNetV2 were set as non-updatable during the subsequent training process.This means that the MobileNetV2 model remained unchanged and worked as a static feature extractor, avoiding the need to retrain it.This transfer learning strategy contributed significantly to reducing execution times, achieving a total training duration of only 1.22 h.To ensure compatibility with MobileNetV2, the expected input data were configured with dimensions of 224 × 224 pixels and RGB color channels.The dataset used for training consisted of a total of 1200 images distributed in three different classes, while the verification set consisted of 300 images equally distributed in the same three classes.The training process was carried out over 50 epochs, and no significant improvements in model performance were observed beyond this point.We observed that there was a stabilization in accuracy at between 40 and 50 epochs.Therefore, it was decided to carry out all the experiments with this maximum value of epochs for all the cases considered, as seen in Figure28.Furthermore, from 50 epochs onwards, calculation times increase significantly without obtaining significant improvements in accuracy and with risks of overfitting.The CNN had a total of 2,261,827 parameters, of which 3843 were trainable and 2,257,984 non-trainable.This information provides a complete overview of the configuration and performance of the model used in the classification process.

Figure 29 .

317Figure 29.CNN without dropout.Average accuracy of training and validation data throughout epochs.Regarding the technical characteristics of this model, it is important to highlight that the input images have dimensions of 224 × 224 pixels and three color channels in the RGB space.The execution time, without the inclusion of dropout techniques, was around 2.20 h.The training set consisted of a total of 1200 images distributed in three classes, while the validation set consisted of 300 images, also distributed in the same three classes.This model had a total of 18,682,195 parameters, all of them considered trainable.The training process was carried out over 50 epochs.

318Figure 29.CNN without dropout.Average accuracy of training and validation data throughout epochs.Regarding the technical characteristics of this model, it is important to highlight that the input images have dimensions of 224 × 224 pixels and three color channels in the RGB space.The execution time, without the inclusion of dropout techniques, was around 2.20 h.The training set consisted of a total of 1200 images distributed in three classes, while the validation set consisted of 300 images, also distributed in the same three classes.This model had a total of 18,682,195 parameters, all of them considered trainable.The training process was carried out over 50 epochs.Compared to the first method implemented, it is evident that the results obtained in terms of validation accuracy are less favorable in this second approach.

Figure 30 .

319Figure 30.CNN with dropout.Average accuracy of training and validation data throughout epochs.

320Figure 30.CNN with dropout.Average accuracy of training and validation data throughout epochs.Sensors 2024, 24, x FOR PEER REVIEW 27 of 35

Figure 31 .

321Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%.

322Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%.

323Figure 31.CNN with dropout and transference methods trained with the four classes.Average accuracy of the training and validation data throughout the epochs, with a final average accuracy around 95%.

Figure 32 .

324Figure 32.Confusion matrix for the four classes of the dataset.

325Figure 32.Confusion matrix for the four classes of the dataset.

Sensors 2024 ,

32624, x FOR PEER REVIEW 28 of 35 rows represent the ground truth classes, while the columns represent the classes predicted by the model.

Figure 33 .

327Figure 33.Eight random images obtained from the dataset.Figure 33.Eight random images obtained from the dataset.

328Figure 33.Eight random images obtained from the dataset.Figure 33.Eight random images obtained from the dataset.

329Figure 33.Eight random images obtained from the dataset.

Figure 34 .

330Figure 34.Eight random images obtained from the ARC class set.Figure 34.Eight random images obtained from the ARC class set.

331Figure 34.Eight random images obtained from the ARC class set.Figure 34.Eight random images obtained from the ARC class set.Sensors 2024, 24, x FOR PEER REVIEW 29 of 35

Figure 35 .

332Figure 35.Eight random images obtained from the PD class set.

333Figure 35.Eight random images obtained from the PD class set.

Figure 36 .

334Figure 36.Experiment ramp of 2 kV/s.Figure 36.Experiment ramp of 2 kV/s.

Figure 36 . 35 Figure 37 .

335Figure 36.Experiment ramp of 2 kV/s.Figure 36.Experiment ramp of 2 kV/s.Sensors 2024, 24, x FOR PEER REVIEW 31 of 35

Figure 38 .

336Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.

Figure 37 . 35 Figure 37 .

337Figure 37. Validation of the ARC class with experiments carried out at 2 kV/s.

Figure 38 .

338Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.

339Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.

340Figure 38.Validation of the ARC class with the experiments carried out at 0.5 kV/s.

Figure 39 .

341Figure39.Graph with 400 images obtained at the limit where PDs begin between 4 and 5 kV.

Figure 40

342Figure40shows the analysis of a video divided into consecutive images, taken during a time interval of 19 s, which corresponds to a total of 571 images.This test was carried out with an effective voltage of 5.23 kV.In this case, the neural network classifies all images as belonging to the class associated with PDs, with an average accuracy of 0.82.Finally, Figures41 and 42represent the PD measured with the DDX-9101 PD detector and

Figure 39 .

343Figure39.Graph with 400 images obtained at the limit where PDs begin between 4 and 5 kV.

Figure 40

344Figure40shows the analysis of a video divided into consecutive images, taken during a time interval of 19 s, which corresponds to a total of 571 images.This test was carried out with an effective voltage of 5.23 kV.In this case, the neural network classifies all images as belonging to the class associated with PDs, with an average accuracy of 0.82.Finally, Figures41 and 42represent the PD measured with the DDX-9101 PD detector and the image that corresponds to the HQ camera at the initial instant of the time interval and the end, respectively.Sensors 2024, 24, x FOR PEER REVIEW 32 of 35

Figure 40 .Figure 41 .

345Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82.

Figure 40 .

346Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82.These results indicate the ability of the neural network to adequately identify and classify PDs under different conditions and stresses, supporting its effectiveness in detecting this phenomenon.

Figure 40 .Figure 41 .Figure 42 .

347Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82.

Figure 41 .

348Figure 41.Images corresponding to the initial instant of Figure 40.(a) For the DDX-9101 PD detector.(b) Taken with the HQ camera.

Figure 40 .Figure 41 .Figure 42 .

349Figure 40.Analysis of 571 consecutive images in a time interval of 19 s.The test was carried out at an effective voltage of 5.23 kV.The neural network classified all images into the class associated with PD with an average accuracy of 0.82.

Figure 42 .

350Figure 42.Images of the HQ camera and the PD detector DDX-9101 corresponding to the final instant of the time interval in Figure 41.(a) PD measured with the DDX-9101 PD detector at the final instant of the time interval.(b) Image taken with the HQ camera at the final instant of the 19 s time interval.

Table 1 .

351Summary of features of the cameras used.

352Summary of features of the cameras used.

353Summary of features of the cameras used.

Table 2 .

354Experiment ramp of 3 kV/s.

Table 3 .

355Experiment ramp of 2 kV/s.

356* Without reading.

Table 4 .

357Experiment ramp of 0.5 kV/s.

참고문헌 36건

  1. Verification of a VFT measuring method based on the kerr electro-optic effect IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2014 10.1109/tdei.2014.6832258
  2. Electrical breakdown voltage of transformer oil with gas bubbles High Temperature · Pleiades Publishing · 2014 10.1134/s0018151x14050228
  3. A comparison of the formation of bubbles and water droplets in vegetable and mineral oil impregnated transformer paper IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2014 10.1109/tdei.2014.004493
  4. Analysis of Air Bubble Deformation Subjected to Uniform Electric Field in Liquid Dielectric International journal of electromagnetics and applications · 2012 10.5923/j.ijea.20120201.02
  5. Why starting from differential equations for computational physics? Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.08.016
  6. A general environment for the treatment of discrete problems and its application to the finite element method IEEE Transactions on Magnetics · IEEE Magnetics Society · 1998 10.1109/20.717799
  7. Gmsh: A 3‐D finite element mesh generator with built‐in pre‐ and post‐processing facilities International Journal for Numerical Methods in Engineering · Wiley · 2009 10.1002/nme.2579
  8. Initiation of breakdown in bubbles immersed in liquids: pre-existed charges versus bubble size Journal of Physics D Applied Physics · Institute of Physics · 2015 10.1088/0022-3727/48/35/355201
  9. Laying the foundation to use Raspberry Pi 3 V2 camera module imagery for scientific and engineering purposes Journal of Electronic Imaging · SPIE · 2017 10.1117/1.jei.26.1.013014
  10. Comparison between three-capacitance, analytical-based and finite element analysis partial discharge models in condition monitoring IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2017 10.1109/tdei.2016.005971
  11. Dynamics of bubbles in electric field Journal of Physics Conference Series · IOP Publishing · 2017 10.1088/1742-6596/899/8/082003
  12. GIS partial discharge pattern recognition via deep convolutional neural network under complex data source IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2018 10.1109/tdei.2018.006930
  13. A Convolutional Neural Network-Based Deep Learning Methodology for Recognition of Partial Discharge Patterns from High-Voltage Cables IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2019 10.1109/tpwrd.2019.2906086
  14. Partial Discharge Classification Using Deep Learning Methods—Survey of Recent Progress Energies · Multidisciplinary Digital Publishing Institute · 2019 10.3390/en12132485
  15. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_49
  16. Partial Discharge Recognition Based on Optical Fiber Distributed Acoustic Sensing and a Convolutional Neural Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2931040
  17. Transferrable Prototypical Networks for Unsupervised Domain Adaptation 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00234
  18. Pattern of bubble evolution in liquids under repetitive pulsed power IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2019 10.1109/tdei.2018.007631
  19. Partial Discharge Pattern Recognition of Gas-Insulated Switchgear via a Light-Scale Convolutional Neural Network Energies · Multidisciplinary Digital Publishing Institute · 2019 10.3390/en12244674
  20. Experimental Study of Visual Corona under Aeronautic Pressure Conditions Using Low-Cost Imaging Sensors Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20020411
  21. Machine Learning for Optical Gas Sensing: A Leaky-Mode Humidity Sensor as Example IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.2978931
  22. Monitoring and optimizing the state of pollution of high voltage insulators using wireless sensor network based convolutional neural network Microprocessors and Microsystems · Elsevier BV · 2020 10.1016/j.micpro.2020.103299
  23. Convolutional-Neural-Network-Based Partial Discharge Diagnosis for Power Transformer Using UHF Sensor IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3038386
  24. Study of DC partial discharge on dielectric surfaces: Mechanism, patterns and similarities to AC International Journal of Electrical Power & Energy Systems · Elsevier BV · 2020 10.1016/j.ijepes.2020.106600
  25. Condition Monitoring Based on Partial Discharge Diagnostics Using Machine Learning Methods: A Comprehensive State-of-the-Art Review IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2020 10.1109/tdei.2020.009070
  26. An open-source camera system for experimental measurements SoftwareX · Elsevier BV · 2021 10.1016/j.softx.2021.100688
  27. Characterization of Dielectric Oil with a Low-Cost CMOS Imaging Sensor and a New Electric Permittivity Matrix Using the 3D Cell Method Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21217380
  28. Modeling of water temperature in evaporation pot with 7 Ds18b20 sensors based on Atmega328 microcontroller Linguistics and Culture Review · Suryasa and Sons · 2022 10.21744/lingcure.v6ns3.2123
  29. Influence of Voltage Harmonics on Partial Discharge Diagnostics in Electric Motors Fed by Variable-Frequency Drives IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tie.2021.3134085
  30. Multispectral Optical Partial Discharge Detection, Recognition, and Assessment IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3162284
  31. Application of Pulse Sequence Partial Discharge Based Convolutional Neural Network in Pattern Recognition for Underground Cable Joints IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2022 10.1109/tdei.2022.3168328
  32. Study of Ultra High Frequency Measurement Techniques for Online Monitoring of Partial Discharges in High Voltage Systems IEEE Sensors Journal · IEEE Sensors Council · 2022 10.1109/jsen.2022.3172173
  33. Partial Discharge Characteristics and Deterioration Mechanisms of Bubble-Containing Oil-Impregnated Paper IEEE Transactions on Dielectrics and Electrical Insulation · Institute of Electrical and Electronics Engineers · 2022 10.1109/tdei.2022.3183658
  34. Effective Electrical Properties and Fault Diagnosis of Insulating Oil Using the 2D Cell Method and NSGA-II Genetic Algorithm Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23031685
  35. Review on Partial Discharge Diagnostic Techniques for High Voltage Equipment in Power Systems IEEE Access · Institute of Electrical and Electronics Engineers · 2023 10.1109/access.2023.3279355
  36. Deep Learning and Long-Duration PRPD Analysis to Uncover Weak Partial Discharge Signals for Defect Identification Applied Sciences · Multidisciplinary Digital Publishing Institute · 2023 10.3390/app131910570