NEURAL NETWORK BASED ESTIMATOR OF THE ELECTRODE DEVIATION IN ROBOTIC WELDING WITH ARC OSCILLATIONS Bogdan Pryymaka, Mykola Zhelinskyia, Mykola Ostroverkhova, Oleksiy Khalimovskyya a Igor Sikorsky Kyiv Polytechnic Institute, 37, Prospect Beresteiskyi, Kyiv, 03056, Ukraine Abstract In automatic and robotic welding with arc oscillations, in order to adapt the trajectory of the welding torch to the real location of the joint of the parts, it is promising to estimate the position of the electrode relative to the welding line based on the current of the welding arc. The significant advantages of using estimators are the absence of additional equipment on the welding torch, as well as the combination of welding and measuring points. The paper proposes a new approach based on the use of an artificial neural network to solve the problem of estimating the position of the electrode relative to the seam line. The quality indicators of the estimation processes have been investigated using mathematical modelling. Keywords 1 Neural network, estimator, electrode deviation, welding, arc oscillations, robot 1. Introduction One of the main ways of developing automatic and robotic welding systems is the use of tools for adapting the trajectory of the welding torch [1]. The analysis of literary sources shows that today such means are most often visual sensors (VS) [2-4]. According to the signal of the VS, the trajectory of the welding torch is adapted to the real location of the joint of the parts [2, 3]. In [4], the possibility of using a VS to assess the quality of welds is considered. The prospects for using artificial intelligence methods in welding operations with visual sensors are highlighted in [5]. An alternative to VS are the so-called arc sensors of the position of the electrode relative to the connection line of the welded parts [6]. Such sensors are suitable for welding technologies with transverse oscillations of the arc. It is known that as a result of transverse oscillations of the arc, there are such positive effects as an increase in the width of the seam, a decrease in the penetration depth, and a decrease in overheating of the metal [7-8]. Arc sensors allow the ε̂ estimate of the transverse deviation  of the electrode tip from the weld line to be obtained not on the basis of direct measurements, but indirectly, on the basis of measurement of the welding arc current. Essential advantages of the arc sensors include the absence of any extra equipment on the welding torch and combining the welding points with the measurement ones. Functional dependence of the welding current upon ε under steady conditions in welding fillet, T- overlap or butt joints with groove preparation is of a clearly defined extremal (unimodal) character, resulting from the V-shaped profile of surfaces of the parts joined. Minimum of this functional dependence always falls on the weld line between the parts joined. One of the most common approaches to finding extremum is based on activation of the system using probing oscillations and the method of synchronous detection [9]. Transverse oscillations of the welding torch can be used as the probing oscillations for the case of arc welding. With such oscillations the synchronous detector receives a signal proportional to amplitude of the 1st harmonic of the welding current to obtain the ε̂ estimate [6]. Proceedings ITTAP’2023: 3rd International Workshop on Information Technologies: Theoretical and Applied Problems, November 22–24, 2023, Ternopil, Ukraine, Opole, Poland EMAIL: b.i.pryymak@gmail.com (A. 1); mykola.zhelinskyi@gmail.com (A. 2); n.ostroverkhov@hotmail.com (A. 3); o.khalimovskyy@ukr.net (A. 4) ORCID: 0000-0001-7680-8565 (A. 1); 0000-0003-4862-1802 (A. 2); 0000-0002-7322-8052 (A. 3); 0000-0003-3672-8530 (A. 4) ©️ 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings (CEUR-WS.org) CEUR ceur-ws.org Workshop ISSN 1613-0073 Proceedings However, having such an important advantage as the high frequency selectivity under conditions of substantial interference, the method of synchronous detection is not free from certain drawbacks. The latter include the need to adjust the initial phase of the harmonic signal coming to a multiplication link of the synchronous detector, depending upon the phase delay of the 1 st harmonic of the welding current in an inertia control object of the extremal system, which (delay) can vary with the unstable parameters of the object. In addition, determination of the amplitude of only the 1st harmonic of the welding current gives no way of obtaining the ε̂ estimate, which is insensitive to variations in the welding process parameters. To do this, it is necessary to determine also the amplitude of the 2 nd harmonic of signal [6]. The purpose of this article is to consider a new approach, based on using the artificial neural network (NN), to solving the problem of estimation of the position of the electrode relative to the connection line of the welded parts in welding with arc oscillations. 2. Method for estimation of the electrode deviations Fig. 1 schematically shows the system of welding with arc oscillations. The welding current source WCS is connected to parts welded and the welding torch. Voltage is in the welding torch fed through a sliding contact to the welding wire which serves as the consumable electrode. During the welding process the torch is brought into oscillation in a direction across the weld line. That is, in the system of the X – Y coordinates with a centre on the weld line, where the Y axis is parallel to a longitudinal axis of the electrode extension and the X axis is normal to the weld line, the current position of the electrode tip is determined as follows: 𝑥(𝑡) = 𝜀(𝑡) + 𝐴 sin 𝜔 𝑡; 𝜔 = 2𝜋𝑓, (1) where A and f are the amplitude and frequency of the torch oscillations, respectively, and  is the deviation of the middle position of the electrode from the joining line. The welding current signal i(t) from the current sensor CS is fed to a band filter BF which passes frequencies in a range from f to 2f. In this case the (t) signal of oscillations of the welding current at an outlet of BF will be determined as follows [6]: i(t) (t) BF CS torch wire (electrode) Y  − + 0 X CWS x  Figure 1: Schematic of the system for welding with arc oscillations 𝛿(𝑡) = 𝐴1 cos( 𝜔𝑡 − 𝛽 − 𝜙1 ) + 𝐴2 sin( 2𝜔𝑡 − 𝛾 − 𝜙2 ), (2) where A1 and A2 are the amplitudes of the 1 and 2 harmonics of the δ(t) signal, respectively;  and st nd  are the phase shifts of these harmonics due to dynamics of the welding circuit; ϕ1 and ϕ2 are the phase delays of the above harmonics in the filter. Values in (2) are found from the following formulae: 𝐴𝐾𝐸 𝑡ℎ(𝜇𝜀) (3) 𝐴1 = ; 𝑅𝑤 √1 + (𝜔𝑇𝑤 )−2 𝐴2 𝐾𝐸𝜇 (4) 𝐴2 = ; 4𝑅𝑤 𝑐ℎ2 (𝜇𝜀)√1 + (2𝜔𝑇𝑤 )−2 𝛽 = 𝑎𝑟𝑐𝑡𝑔(𝜔𝑇𝑤 ); 𝛾 = 𝑎𝑟𝑐𝑡𝑔(2𝜔𝑇𝑤 ), (5) where M is the slope of electrode melting rate characteristic depending upon the welding current; E is the intensity of the electric field in the arc column; R w is the welding circuit resistance; Tw=Rw/EM is 𝜋−𝛼 the time constant of the welding circuit; 𝐾 = 𝑡𝑔 ( ); 𝜇 = 𝑑𝑒 −1 √𝐾𝜋𝑣𝑤 ⁄𝑣𝑒 , where de is the electrode 2 diameter, vw is the welding speed and v e is the electrode feed speed. It should be noted here that relationships (1) through (5) are valid on condition of confirmation of a hypothesis of the δ(t) signal being quasi-stationary, i. e. having rather small variations for a period of oscillations of the torch. As it can be seen from expression (3), upon determining amplitude A1 of the 1st harmonic of the δ(t) signal, we can find the ε̂ estimate of the transverse deviation ε of the electrode tip from the weld line. This was a traditional approach to determination of ε̂, based on the use of the method of synchronous detection to find A1 [9]. The synchronous detector is a device for current averaging the δ(t) × sin( ωt + ϕD ) signal, for a period of probing oscillations of where ϕD is the adjusted initial phase determined as π ϕD = − β − ϕ1 . However, during the welding process there is a probability of variations in some 2 parameters of the welding circuit, such as R w, M and E. To obtain the ε̂ estimate, which would be insensitive to variations in these parameters, it is necessary also to determine the amplitude of the 2 nd harmonic of δ(t) [6]. Upon meeting the T