Extracting the Resistive Current Component from a Surge Arrester’s Leakage Current without Voltage Reference

This article presents the development of the theoretical background and the design of an electronic device for monitoring the condition of a gapless Metal Oxide Surge Arrester (MOSA). The device is intended to be used online. Because of the inaccessibility and possible remote location of most surge arresters, it is equipped with a communication system, allowing for the device to convey the measurement of the surge arrester characteristics under any conditions. It is possible to determine the condition of the MOSA by gathering measurements of the surge arrester’s resistive component of leakage current. The leakage current information is sent via data transfer unit to a server and, after interpretation, will be forwarded to the authorised personnel through the surge arrester control centre.


Introduction
Crucial components in transmission and distribution networks are protected against overvoltage by MOSA (Metal Oxide Surge Arresters). For this reason, it is always of high importance to continuously monitor their condition. According to recent trends, monitoring is the most reliable way to decrease network losses and increase the reliability of equipment. Zinc oxide varistors (ZnO varistors) are the main components of MOSA, which are semiconductors that have a non-linear characteristic. This means that the voltagecurrent relationship is not linear, and the resistance of the element varies in regard to the applied voltage. This characteristic allows for the MOSA to perform its function.
There are several proposed methods that explain the conduction mechanism of the ZnO varistors. All of these methods take the time and exposure of the MOSA to the overvoltage into consideration. The conduction mechanism characteristics degrade to the point, where the MOSA does not perform its function adequately and, eventually, does not perform its function at all.
The frequent and high overvoltages, moisture in the housing of the MOSA, overheating, etc. are important factors that reduce the reliability of the MOSA. Overvoltage phenomena can be classified in to two groups, as: • atmospheric discharges, and • consequences of switch devices' manipulations.
Both of these have a destructive effect on the elements of the power system and they reduce the reliability of the power system's operation. Therefore, the role of MOSA is twofold: namely, to start operating immediately when an overvoltage occurs and, secondly, to minimise the losses within the network due to excessive leakage current at continuous operation of electrical devices.
Several different methods have been identified to help determine the MOSA's condition. These can be grouped into online and offline methods. Online testing methods are very commonly used. They tend to be simple to use and are more affordable. They range from fault indicators, disconnectors, and surge counters to more sophisticated methods, such as the failure analysis of metal oxide arresters under the harmonic distortion method [1], leakage current measurements [2][3][4][5][6][7][8], temperature measurements [9][10][11][12], and electro-magnetic field measurements [13], using Genetic Algorithms [14,15]. Another example of such a method is also the Capacitive Current Compensation Method (CCCM), which is explained in [5,16], which compensates the capacitive component to extract the resistive component I r , which is the main indicator of the state of the surge arrester. With the help of finite element analysis [8], leakage currents can be determined under different conditions. A current decomposition-based method [17] can also be used. Here, the total leakage current is decomposed to study the impact of different parameters on the decomposition accuracy. Additionally, many methods have been introduced for measuring the resistive component of the total leakage current [18,19]. However, researchers in the area have also paid significant attention to evaluating the surge arrester's condition to reduce network losses. An arrester is considered to be faulty when the resistive current value exceeds 0.6 mA, according to the IEC 60099-5:2013, 2013 [20]. If the arrester's current exceeds this value and is not replaced, this produces additional power losses, financial losses, and a greater carbon footprint [21], as shown in Table 1. On the basis of the above-mentioned measuring methods, many different innovative devices for monitoring the state of surge arresters have been made available to the market. The devices presented in patents [22][23][24][25] describe a measurement system that determines the state of the MOSA based on the entire leakage current of the MOSA. Other devices [26,27] employ an internal temperature measuring device to predict the state of the MOSA. This greatly differs from the proposed method in this article, which concentrates on the procedure of extracting the resistive current precisely from the total leakage current and using it as a reference for determining the state of the MOSA. This is done without the use of voltage as a reference, which simplifies the measurement greatly and reduces costs.
The offline methods are performed in laboratories and they are more expensive, due purely to the manipulation involved in dismantling and transporting of the MOSA to an adequate facility where all of the tests can be performed or supplied with an independent voltage source for testing. Such a method is the Point On Wave Method (POWM) that is described in [28], which does not require the measurement of voltage. This paper deals with the development of the principle and electronic device capable of a real-time arrester monitoring operation. Section 2 describes the physical background for the arrester condition monitoring principle, based on the leakage current measurement and analogue and digital acquisition of the collected measurement data. The measurement device is designed and described in Section 3 based on the theoretical conclusion. It consists of three main parts: the analogue and digital signal acquisition and communication units. Section 4 deals with experimental verification of the algorithm and electronic device.

Physical Background of the Arrester Monitoring Principle
The functionality of the arrester monitoring system is based on the physical background of the leakage current study. From the measured leakage current (I t ), it is necessary to extract the resistive component (I r ). During long-time operation, the arresters encounter thermal stresses, due to the power losses that are caused by the leakage current. The power dissipation can be calculated, as follows: where P d represents the average power-dissipation, W represents the energy, T is the period of voltage U(ωt) that causes the current I t (ωt), and ω represents the angular frequency. The current through a brand-new arrester is relatively small (the order of a few 10 µA), but, due to the high voltage, the dissipation becomes significant as the arrester deteriorates. It is also known that the voltage is contaminated by high order harmonics (the voltage in the observed power system is contaminated with a third harmonic U 3 = 0.1% of U 1 , fifth harmonic U 5 = 0.3% of U 1 and e.c.t.), mainly with the third and fifth harmonic components, so, the voltage and current in (1) can be described as the sum of higher harmonic components, as follows: whereÛ n andÎ tn represent the magnitudes of the nth voltage and current harmonic components, respectively. After the substitution of (2) and (3) into (1), and, after a short manipulation, the equation is as follows: 3 2 cos 3Φ + 5Û 5Ît,5 2 cos 5Φ + · · · nÛ nÎt,n 2 cos(nΦ) = U 1 I t,1 cos Φ + 3U 3 I t,3 cos 3Φ + 5U 5 I t,5 cos 5Φ + · · · nU n I t,n cos(nΦ), where U n =Û n / √ 2 and I t,n =Î t,n / √ 2; n = 1, 3, 5, . . . represent the root mean square (rms) values of the voltages and currents, respectively, and Φ is the phase delay between current and voltage. The current resistive component represents the measure of the arrester's quality, when I r,rms exceeds the value that is defined by the Standard [29] I r,rms > 600/ √ 2µA , the arrester is in bad condition, and it should be replaced by a new one. A few different MOSA (ten samples) with a nominal voltage of 36 [kV] rms were randomly chosen for measurements, in order to design, in advance, so-called "static characteristics". By presuming that the arresters are made from the same materials under the same production conditions and connected to the same supply voltage U, it is expected that they have statistically similar static characteristics as:Î The measurement principle is based on the classical off-line measurement procedure that is suggested in [28]. The magnitude of the resistive current component (Î r ) is extracted from the oscillograms at the instant when the voltage is at its peak (dU/dt = 0), as shown in Figure 1a. Figure 1b shows the phasor diagram at ωt = ϕ of leakage current I t , and its resistive and capacitive components I r and I c , respectively. The harmonic distortion that was obtained as a projection of the phasor I t to the real (Re) axis causes that distortion of the resistive current is acceptable, and the magnitudeÎ r is accurate enough for further analyses. However, at the same time whenÎ r is extracted from the diagram, the grey shaded areas that are indicated in Figure 1a,c as I t_avg are also extracted, and it depends on ϕ andÎ r , as follows: and it represents an average value of the current I t , in the chosen interval (for example π/3 ≤ ωt ≤ π), as follows: In order to extract the resistive current component (Î r ) from the leakage current (I t ) the measurement is performed at a few different operating points (different supply voltages U). The measurement set-up (the following equipment was used in the set-up: A Tr1autotransformer up to 0.4 kV, a Tr2-transformer for galvanic isolation 1/N1 = 0.4/7 kV, a high voltage transformer, 1/N2 = 0.1/110 [kV], an oscilloscope RIGOL DS4034, multimeter Fluke 189. Arrester type SNO_U = 36 kV class DH producer IZOELEKTRO) is organised, as presented in Figure 2. Figure 3a-f show the measurement results obtained from CSV data (from an oscilloscope), of a randomly chosen arrester (Arrester type SNO_U = 36 kV class DH producer IZOELEKTRO, 2341 Limbuš, Slovenia). The magnitude of the resistive current component (Î r ) is extracted from the oscillograms at the instant when the voltage is at its peak (dU/dt = 0) at six operating points. Further, the measurements were performed on 10 arresters, in order to have a representative result. Table 2 shows the obtained measurement results. For every sample, the exact value of the phase angles (ϕ) and the magnitudes ofÎ r , are indicated for every operating point. and it represents an average value of the current It, in the chosen interval (for example 3 t π ≤ ω ≤ π ), as follows: In order to extract the resistive current component ( )  Figure 2. Figure 3a-f show the measurement results obtained from CSV data (from an oscilloscope), of a randomly chosen arrester (Arrester type SNO_U = 36 kV class DH producer IZOELEKTRO, 2341 Limbuš, Slovenia). The magnitude of the resistive current component (ˆr I ) is extracted from the oscillograms at the instant when the voltage is at its peak (dU/dt = 0) at six operating points. Further, the measurements were performed on 10 arresters, in order to have a representative result. Table 2 shows the obtained measurement results. For every sample, the exact value of the phase angles (φ) and the magnitudes of ˆr I , are indicated for every operating point.

Extraction of the Resistive Current Magnitudes from the Arrester's Leakage Current
From Table 2, it is evident that there are a few measurement results showing every arrester pair ϕ andÎ r . From these values, it is convenient to calculate the average values, which usually represent the most probable values. Accordingly, the statistical parameters as average values for phase delay (ϕ) are: the average values of resistive current magnitudes (Î r ), the other statistical parameters, such as the relative Standard Deviation of phase delay (σ ϕ ) and of current magnitudes (σÎ r ) are calculated for the same operation points, and they are indicated in Table 2. The numbers extracted from the waveforms in Figure 3a-f are indicated in Table 2 as sample 3 results.

Description of the Measurement Principle for the Average Value of Leakage Current at Certain Intervals
Such a measurement of leakage current can only be performed off-line, as can be concluded from the above description. This method is not appropriate for real-time measurement, with the requirements that the voltage U should not be measured because of safety reasons of the whole system. When only leakage current is measured, there is no information about phase delay. However, it can be noticed, as shown in Figure 4, that the magnitudeÎr corresponds with exactly one average value of I t evaluated in the interval π/3 ≤ ωt ≤ π. This interval can be chosen arbitrarily; in this case, it was chosen that the third harmonic component has no influence on average value, so the average value I t_avg , for the real-time measurement, can be evaluated, as follows: where k is the starting point index and n is the end-point index of current instants ( Figure 4).
The average values (I t_avg ) were calculated for different arresters at different operating points, and they are collected in Table 3. The statistical parameters, the average phase delay ϕ, are calculated by (8), and the mean value I t,mn , which corresponds with the phase delay, is calculated, as follows: and shown in Table 3 (grey shaded columns). Additionally, the relative Standard Deviations for the average of I t,mn at certain interval (σ It,mn ), are calculated at the same operation points as: And they are shown in Table 3. Based on the results presented in Tables 2 and 3, the so-called "static" characteristics are drawn to obtain analytical expressions. The obtained curves that are shown in Figure 5 can be approximated by sectional linear function. Because I t,mn (ϕ) is the consequence ofÎ r (ϕ), the intersection of the linear function appears at the  (15) and (17) gives ϕ i = 164.2 • , I t,mn,i = 363 µA). Hence, the trend lines, represented by the linear function, are: Both of the characteristics, for certain arrester types, must be measured in advance, and then prepared for further customer application (for example, these must be available in the arrester's data sheet).
called "static" characteristics are drawn to obtain analytical expressions. The obtained curves that are shown in Figure 5 can be approximated by sectional linear function. Because , ( ) t mn I ϕ is the consequence of φ ( ) r I , the intersection of the linear function appears at the same argument, when ϕ = ϕi (calculating intersection of (15) and (17) Both of the characteristics, for certain arrester types, must be measured in advance, and then prepared for further customer application (for example, these must be available in the arrester's data sheet).

Verification of the Proposed Algorithm
The algorithm was verified while considering (15) to (18)

Verification of the Proposed Algorithm
The algorithm was verified while considering (15) to (18) after measuring of the unknown arrester, but it was extracted from a set of the same type. The arrester leakage current was sampled in the range ϕ ∈ (60, 180)[ • ] and the value of I t_avg was obtained. Figure 6 shows the proposed algorithm as a Unified Modeling Language (UML) diagram.

Verification of the Proposed Algorithm
The algorithm was verified while considering (15) to (18) after measuring of the unknown arrester, but it was extracted from a set of the same type. The arrester leakage current was sampled in the range ϕ∈(60, 180) [°] and the value of It_avg was obtained. Figure 6 shows the proposed algorithm as a Unified Modeling Language(UML) diagram.  Table 4 shows the obtained results. The current, indicated by Ir_cal., was obtained by using the formulas according to the block diagrams that are shown in Figure 6.  Table 4 shows the obtained results. The current, indicated by I r_cal. , was obtained by using the formulas according to the block diagrams that are shown in Figure 6. The results presented in Table 4 were recalculated according to the data chosen randomly from Tables 2 and 4. In the first column are data from Table 3, the second and third columns present the recalculated phase delay and magnitudes of unknown resistive currentÎ r_cal. , and in the fourth column are the collected "oscilloscope" data from Table 2. The relative error was also calculated, and it was always inside the interval ε ∈ −2σÎ r , 2σÎ r defined by the relative Standard Deviation ( Table 2). The predicted limit of resistive current component is shown in the last row in Table 4, which appears at I t,mn = 570 µA with the phase delay of ϕ = 159 • . Accordingly, every measured I t,mn above this number indicates that the arrester should be replaced with a new one.

Surge Arrester Monitoring Device (SAMD)
Analogue input devices, such as an Analogue-to-Digital Converter (ADC) in conjunction with a separate operational amplifier (op-amp), were used to convert a time-varying analogue signal (I t ) into digital representations for further analyses in the microcontroller or a Personal Computer (PC). The proposed circuit architecture deals with the smart sensor structures that are described in more details in [30][31][32][33]. Figure 7 shows the block scheme of the proposed electronic circuit. An ADC is used with an appropriate acquisition circuit in order to obtain leakage current (I t ) values (samples). As a part of the conversion, the signal acquisition circuit is designed as an instrumentation amplifier. The key characteristics are high input impedance, high commonmode rejection, low output offset, and low output impedance. After digitalisation of the leakage current (I t ), it is necessary to extract the resistive current componentÎ r using the algorithm that is based on the UML diagram shown in Figure 6. The resistive component can be calculated in the micro-controller, or digitalised leakage current can be sent through communication channels to the server, where theÎ r can be calculated offline, but in "soft" real time.

Surge Arrester Monitoring Device (SAMD)
Analogue input devices, such as an Analogue-to-Digital Converter (ADC) in conjunction with a separate operational amplifier (op-amp), were used to convert a time-varying analogue signal (It) into digital representations for further analyses in the microcontroller or a Personal Computer (PC). The proposed circuit architecture deals with the smart sensor structures that are described in more details in [30][31][32][33]. Figure 7 shows the block scheme of the proposed electronic circuit. An ADC is used with an appropriate acquisition circuit in order to obtain leakage current (It) values (samples). As a part of the conversion, the signal acquisition circuit is designed as an instrumentation amplifier. The key characteristics are high input impedance, high commonmode rejection, low output offset, and low output impedance. After digitalisation of the leakage current (It), it is necessary to extract the resistive current component ˆr I using the algorithm that is based on the UML diagram shown in Figure 6. The resistive component can be calculated in the micro-controller, or digitalised leakage current can be sent through communication channels to the server, where the ˆr I can be calculated offline, but in "soft" real time.  Based on the above description, it can be summarised that the measurement device must fulfil the following requirements: • galvanic isolation of the measured signal (safety reasons); • acquire and prepare the analogue signal for digital conversion; • collection of current samples in the range ϕ ∈ (ϕ min , ϕ max ); and, • prepare information for wireless transfer to an off-line server.

Electronic Circuits
The analogue acquisition unit was organised as a transimpedance op-amp with appropriate gain and common mode rejection ratio. Such a process requires precise and stable measurement of "small" alternative current (measuring range I t ∈ (−3 mA, +3 mA)) when the op-amp is single voltage supplied. The current I t was captured by using a current transformer with the appropriate ratio (1:300). Such a ratio was chosen as a compromise between the sensitivity to measurement of leakage current and the rejection of the currents' strokes of a few hundreds of an Ampere (I t : I t,stroke = 1 : 10 7 ). This was solved by using an appropriate protection of the op-amp inputs. The battery voltage measurement and temperature measurement circuits were also integrated into the device.

Protection Circuit
The whole measurement circuit was protected over the current's strokes, and some high frequency interferences were rejected (Common Mode (CM) and Differential Mode (DM) interferences). Figure 8 shows the over-current protection that was performed using two Schottky and four Zener diodes. All of the diodes were chosen in order to keep the voltage difference smaller than the supply voltage ( The high frequency interferences (noises) were reduced by using an LC filter, which contained a Common Mode (CM) choke coil (L cm ), two line-bypass capacitors (C cm ) for suppressing the CM noise signals and an across-the-line capacitor (C dm ) for suppressing the Differential Mode (DM) noise signals.

Protection Circuit
The whole measurement circuit was protected over the current's strokes, and some high frequency interferences were rejected (Common Mode (CM) and Differential Mode (DM) interferences). Figure 8 shows the over-current protection that was performed using two Schottky and four Zener diodes. All of the diodes were chosen in order to keep the voltage difference smaller than the supply voltage (V2 − V1 < Up) ( = 3 V p U ). The high frequency interferences (noises) were reduced by using an LC filter, which contained a Common Mode (CM) choke coil (Lcm), two line-bypass capacitors (Ccm) for suppressing the CM noise signals and an across-the-line capacitor (Cdm) for suppressing the Differential Mode (DM) noise signals.

Signal Acquisition Circuit
Hereinafter referred to as the circuit in Figure 8, the current transformer secondary current (Its) was converted to voltage difference on the resistances R0. Because of the properties of the almost infinite open loop gain of the op-amp A1 and the used feed-back by Rf, it follows that: where R0 indicates the resistances in the input loop of the operational amplifier A1 and Its = It/300 ( 2 1 ). Additionally, the alternative input signal must be transformed into a unipolar signal appropriate for A-D conversion of voltage at the output of the measurement system (UoA3). Figure 9 shows the scheme of the chosen electronic circuit. The frequency analyses of the electronic circuit were considered in order

Signal Acquisition Circuit
Hereinafter referred to as the circuit in Figure 8, the current transformer secondary current (I ts ) was converted to voltage difference on the resistances R 0 . Because of the properties of the almost infinite open loop gain of the op-amp A 1 and the used feed-back by R f , it follows that: where R 0 indicates the resistances in the input loop of the operational amplifier A 1 and I ts = . Additionally, the alternative input signal must be transformed into a unipolar signal appropriate for A-D conversion of voltage at the output of the measurement system (U oA3 ). Figure 9 shows the scheme of the chosen electronic circuit. The frequency analyses of the electronic circuit were considered in order to design a suitable gain and band-pass. Assuming that the operational amplifiers were the same type, and after analyses of the scheme in Figure 9, it follows: where A β = R f /R 0 represents closed-loop gain, β 1 = 1/ω t , α 2 = 1/(Bω t 2 ), α 1 = 1/(Bω t ), B = R 0 /(R F + R 0 ) (R 0 = 47Ω, R F = 100 kΩ), ω t is unity-gain bandwidth ( ω t = 2π f ⇒ ω t = 2π4 × 10 5 rad/s (from the data sheet)) (usually specified on the data sheets of op. amps.), and U p denotes the power supply voltage. Using (20) and considering that s → 0 , the output voltages can now be calculated as: Based on (21) the output voltage range of the chosen instrumental amplifier gain could be defined for the whole range of the leakage current 3mA, 3mA)). Additionally, based on (20), the transfer function for alternative difference signal was considered when DC offset (U p /2 = 0) was excluded, as follows: where ω b represents the small-signal bandwidth frequency (f b = 188 Hz), which can be obtained after the short calculation: For certain data parameters and using MATLAB, the frequency characteristics were calculated, and they are shown in Figure 10.
For certain data parameters and using MATLAB, the frequency characteristics were calculated, and they are shown in Figure 10.  Unfortunately, the op-amp devices consist of non-ideal components that can introduce some deviation into the measurement results. The sensitivities function y x S can be used to quantify this inconsistency. This function is defined as: where x denotes the variable of interest. According to (22), a closed-loop gain Aβ, a frequency ωb, and y denote the circuit parameters, as is the absolute form of the function ( ) ω H j , as follows: From (26), the sensitivity of the low-frequency gain change can be evaluated, so the Aβ depends on the resistances Rf and R0; if these change by 1 ± %, the Aβ changes by ±2 , so Unfortunately, the op-amp devices consist of non-ideal components that can introduce some deviation into the measurement results. The sensitivities function S y x can be used to quantify this inconsistency. This function is defined as: where x denotes the variable of interest. According to (22), a closed-loop gain A β , a frequency ω b , and y denote the circuit parameters, as is the absolute form of the function H(jω), as follows: From (26), the sensitivity of the low-frequency gain change can be evaluated, so the A β depends on the resistances R f and R 0 ; if these change by ±1%, the A β changes by ±2, so it follows Based on (27), the other sensitivities' effects can be evaluated for two cases; Accordingly, the worst-case precision of the whole analogue part of the SAMD is evaluated in (28), and it only depends on the precision of the closed-loop gain A β and, consequently, on the resistances R f and R 0 . The microcontroller unit is also capable of operating in a temperature range of −40 to +85 • C. The microcontroller could also communicate with the periphery by using TTL gates. All of the terminals should be protected against over-voltages [29].

Microcontroller and Communication Unit
The communication unit is based on a GSM/GPRS/GNSS module, connected with the microcontroller over three embedded synchronous receivers/transmitters that were incorporated in the microcontroller chip. These transmitters/receivers enabled the use of asynchronous communication protocol. The GSM module can also use a set of Internet protocols. The main feature of this module is low power consumption, which was the main issue for using it in the Surge Arrester Monitoring Devices [34].

Battery
A lithium-thionyl chloride battery was used, with a nominal voltage of 3.6 V and nominal capacity of 6 Ah. The battery (Saft LS17500 A 3.6V Primary Lithium Battery) that was used was distinguished by its greater energy density and operating temperature range between −60 • C and +150 • C. The battery producer claims that, with the current system running at a temperature of −40 • C, the battery would last at least 10 years, if not more (two in parallel enable c.c.a. 20 years of autonomy). The battery is not intended to be replaced during the SAMD's lifetime [31]. Further development is under way to replace the mentioned battery with an energy harvesting system that will, theoretically, prolong the lifespan of the device indefinitely.

Experimental Results
For verification of the described measuring principle that is based on (15) to (18), the experimental test-bench system was built, as shown in Figure 11. The Surge Arrester Monitoring Device prepared the current measurement results into the form that is required for further processing. The measurement results were processed with the acquisition units and microcontroller, as described in Section 3. Subsequently, the results were forwarded to the computer in the "distribution" centre, where they were recalculated to achieve the right values of the resistive current component. Sensors 2021, 21, x FOR PEER REVIEW 14 of 19 Figure 11. Measurement set-bench.

Experimental Test-Bench
The proposed algorithm was verified using the test-bench system. For verification purposes, the arrester was measured using the classical oscilloscope measurement (as a reference system), and it was also measured by using the proposed described system for extraction of the resistive current component ˆr I . The surge arrester was connected, as indicated in Figure 2 for reference measurement (oscilloscope), and as indicated in Figure 7 for the surge arrester monitoring device. Both of the measurements were performed at the same operating points.

Calibration of the Measurement Devices
The signals are provided via the analogue acquisition system to the ADC of the microcontroller. The used ADC allows for a voltage between 0 and 3 V on the input terminals. Because of this, a single power-supply voltage was also used for safety reasons for the analogue acquisition circuit. As a consequence of this, the offset voltage of Up/2 was added to the analogue signal, which represents the leakage current (It) information. After the ADC conversion, the obtained measurement results were sent using the communication unit to the "distribution centre" (computer or server). The information that was sent to the server was coded as a series of numbers representing the leakage current It, but in the unit of quants not in the µA. Definitely, this information must be calibrated in the proper unit µA [34]. For calibration purposes, the measurement constants were calculated from the properties of the entire measurement chain that are described in Section 3.1. Figure 12 shows the block scheme of the calibration process. The analogue signal was prepared for ADC conversion in the signal acquisition circuit. The alternative current signal was amplified and shifted by the offset voltage, as follows:

Measurement Constant
Afterwards, the obtained result was converted to a digital signal using the 12-bit ADC. The offset voltage of 1.5 V corresponded with:

Experimental Test-Bench
The proposed algorithm was verified using the test-bench system. For verification purposes, the arrester was measured using the classical oscilloscope measurement (as a reference system), and it was also measured by using the proposed described system for extraction of the resistive current componentÎ r . The surge arrester was connected, as indicated in Figure 2 for reference measurement (oscilloscope), and as indicated in Figure 7 for the surge arrester monitoring device. Both of the measurements were performed at the same operating points.

Calibration of the Measurement Devices
The signals are provided via the analogue acquisition system to the ADC of the microcontroller. The used ADC allows for a voltage between 0 and 3 V on the input terminals. Because of this, a single power-supply voltage was also used for safety reasons for the analogue acquisition circuit. As a consequence of this, the offset voltage of U p /2 was added to the analogue signal, which represents the leakage current (I t ) information. After the ADC conversion, the obtained measurement results were sent using the communication unit to the "distribution centre" (computer or server). The information that was sent to the server was coded as a series of numbers representing the leakage current I t, but in the unit of quants not in the µA. Definitely, this information must be calibrated in the proper unit µA [34]. For calibration purposes, the measurement constants were calculated from the properties of the entire measurement chain that are described in Section 3.1. Figure 12 shows the block scheme of the calibration process. The analogue signal was prepared for ADC conversion in the signal acquisition circuit. The alternative current signal was amplified and shifted by the offset voltage, as follows:

Measurement Constant
Afterwards, the obtained result was converted to a digital signal using the 12-bit ADC. The offset voltage of 1.5 V corresponded with: U 0,o f f set = U p /2 ⇒ 2500 = 0000 1001 1100 0100 binary (33) when the U 0,min (0.5 V) was applied on the ADC, the input was obtained for: U 0,min = 0.5 V ⇒ 452 = 0000 0011 1000 0100 binary (34) and when the U 0,max (2.5 V) was applied on the ADC, input was obtained for: The upper voltage was limited to 4096 due to the 12-bit quantisation, which means up to the value when the output voltage of the analogue acquisition circuit reached 2.13 V. Carefully following the above-described digitalisation from (24) to (28), it can be concluded that the obtained results, after removing the offset values, should be multiplied by the constant (3000/2048) in order to reconstruct the measured leakage current. Hence, according to this, and also considering the variables indicated in Figure 12, it follows that; Because of the above mentioned 12-bit quantisation, the input current range should be corrected to: I t ∈ (I t,minL I t,maxL ) = (−2300 µA 2300 µA) In practice, the surge arresters are 100% out of order when I t reaches a magnitude over 1500 µA, so this range guarantees the appropriate consideration of the surge arresters' "health" while measuring the resistive component of the leakage current. The upper voltage was limited to 4096 due to the 12-bit quantisation, which means up to the value when the output voltage of the analogue acquisition circuit reached 2.13 V. Carefully following the above-described digitalisation from (24) to (28), it can be concluded that the obtained results, after removing the offset values, should be multiplied by the constant (3000/2048) in order to reconstruct the measured leakage current. Hence, according to this, and also considering the variables indicated in Figure 12, Because of the above mentioned 12-bit quantisation, the input current range should be corrected to: In practice, the surge arresters are 100 % out of order when It reaches a magnitude over 1500 µA, so this range guarantees the appropriate consideration of the surge arresters' "health" while measuring the resistive component of the leakage current.

Verification of the Calibration Process
The obtained results should be verified in order to justify the measurement principle. Three different operating points of the surge arresters were measured with the oscilloscope and with the Surge Arrester Monitoring Device. Figure 13a-c show the results of both measurement principles. The current and voltages' waveforms of the surge arrester measured by oscilloscope are shown in the first row. The results from the oscilloscope CSV files are treated as reference, and they are slightly different from the results obtained

Verification of the Calibration Process
The obtained results should be verified in order to justify the measurement principle. Three different operating points of the surge arresters were measured with the oscilloscope and with the Surge Arrester Monitoring Device. Figure 13a-c show the results of both measurement principles. The current and voltages' waveforms of the surge arrester measured by oscilloscope are shown in the first row. The results from the oscilloscope CSV files are treated as reference, and they are slightly different from the results obtained from the SAMD, as can be noticed from Figure 13a-c. The reason is the pass-band of the used analogue signal acquisition circuit. After inspection of the performance index shown in Table 5, it was concluded that the obtained results reflected the measured currents accurately when comparing them with the scope reference values.   Greater deviation appeared when the leakage current had a higher magnitude that corresponded with the magnitudes of resistive components of ˆr I , which was much greater than the 600 µA. The last row oscilloscope measured value It_avg corresponds with the resistive component of ˆr I = 783 µA.

Measurement Results
The whole Surge Arrester Monitoring Device was tested under laboratory conditions. In order to verify the measurement results, these were compared with the reference resistive current component ˆr I that was measured by an oscilloscope. The leakage current was calibrated appropriately, and the procedure described in Section 2.3 was applied from the files that were obtained from the SAMD. The resistive component of leakage current was calculated using (15) to (18). Table 6 summarises the measurement results. The performance indexes (absolute and relative errors) were calculated, as follows: Greater deviation appeared when the leakage current had a higher magnitude that corresponded with the magnitudes of resistive components ofÎ r , which was much greater than the 600 µA. The last row oscilloscope measured value I t_avg corresponds with the resistive component ofÎ r = 783 µA.

Measurement Results
The whole Surge Arrester Monitoring Device was tested under laboratory conditions. In order to verify the measurement results, these were compared with the reference resistive current componentÎ r that was measured by an oscilloscope. The leakage current was calibrated appropriately, and the procedure described in Section 2.3 was applied from the files that were obtained from the SAMD. The resistive component of leakage current was calculated using (15) to (18). Table 6 summarises the measurement results. The performance indexes (absolute and relative errors) were calculated, as follows: and The obtained results had an expected precision, and the measurement principle with the proposed electronic devices can be used for on-line measurement of the resistive component of the surge arrester leakage current.

Discussion
The measurement principle that is presented here enables the measurement of the resistive component of the MOSA leakage current successfully without the use of voltage measurement as a reference, as shown in Table 4. The error of the resistive component of leakage current fell well within the Standard Deviation range of −2σÎ r , 2σÎ r . The errors had a tendency to decrease as the resistive component of the total leakage current increased, as also seen in Table 4. This is a welcome outcome, when considering that, at lower values of the resistive current, the significance of the state of the MOSA does not play a vital role in the maintenance procedure. However, as the resistive component of the total leakage current increases, it is imperative to determine the state of the MOSA accurately. Transferring data from the SAMD to the server requires the use of a database system. The sampling rate of leakage current is hourly. For a single arrester, the distributor will be faced with enormous amounts of information, which must be processed systematically in order to obtain the adequate values from the measurement system. This would allow for the user to take full advantage of the smart system and be able to monitor the MOSA in even greater detail [32][33][34][35].

Conclusions
The MOSA itself is a relatively inexpensive part of the power grid, but its hindered performance can lead to increasingly greater costs. Maintenance plays a very important role in the distribution and transmission networks, as mentioned before. With the correct insight into the state (health) of the power grid, adequate measures can assure the continuous working of the grid without power outages and high cost maintenance interventions, thus reducing the overall costs of the power grid. The goal was to develop a mechanism to extract the resistive component of the leakage current of a MOSA without the use of voltage as a reference. Usually, the MOSA leakage current and its resistive component measurement is only performed in a laboratory environment, because the method also needs voltage measurement. For this method, the static characteristic, obtained as a result of the analyses performed in Section 2, is required to be measured by the manufacturer of the MOSA. Alternatively, the static characteristic can be established by extensive testing of the MOSA in question, as described in Section 2.3 of the article. The analogue part of the electronic devices is designed with a high gain, because the leakage current represents a small quantity as compared to the current flowing through the arrester when it is operating due to overvoltage (a range of 1000 µA compared with a few 10 kA). Using the described principle, it is possible to design a MOSA monitoring device and equip every surge arrester that is mounted in the distribution and transmission grid as an integrated part of the arrester. The prototype housings have been 3D printed and tested in a high-voltage laboratory, achieving an IP level of 67. The prototype has also been tested in a real-life working environment, where it was exposed to both different electrical (atmospheric discharges, switch devices' manipulations, etc.) as well as environmental (moisture, dust, temperature, etc.) elements. The obtained results were promising, and they are an excellent guide for design of a reliable, precise, and cheap SAMD, appropriate for every installed surge arrester in the high-voltage transmission and distribution grid.