Welding information learning model generation method, learning model, program, and welding system
The learning model generation method addresses the instability in welding information extraction by using image data from a visual sensor to capture key welding parameters, ensuring accurate and stable welding outcomes.
Patent Information
- Application Number
- JP2020080006
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-04-30
AI Technical Summary
Existing welding technologies fail to accurately extract welding information due to variations in individual welding condition settings, leading to unstable processing outcomes.
A learning model generation method that uses image data from a visual sensor to capture the protrusion length, positional relationship between the welding wire and molten pool, and other welding conditions, generating a model that outputs stable and accurate welding information using deep learning techniques.
The method enables the generation of a learning model that accurately extracts welding information regardless of varying welding conditions, improving the stability and quality of welding processes.
Smart Images

Figure 0007551327000002 
Figure 0007551327000007 
Figure 0007551327000013
Abstract
Description
[Technical field]
[0001] The present invention relates to a method for generating a learning model for welding information, a learning model, a program, and a welding system. [Background technology]
[0002] In recent years, in the field of welding work, a technique for automatically creating or adjusting optimal welding conditions has been realized. For example, Patent Document 1 discloses a machine learning device (30) for learning to determine at least one arc welding condition, the machine learning device (30) including: a state observation unit (31) for observing state variables constituted of at least one physical quantity related to arc welding and at least one arc welding condition during or after arc welding is performed; and a learning unit (35) for learning by associating a change in the at least one physical quantity observed by the state observation unit with the at least one arc welding condition. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-30014 A Summary of the Invention [Problem to be solved by the invention]
[0004] In Patent Document 1, the physical quantities used are the waveform of the welding current and the welding voltage obtained from a current / voltage measuring unit, image data of the welded part imaged by an imaging unit, and information extracted from the image data. The information extracted from the image data refers to the appearance of the weld bead, the bead reinforcement height, the bead width, and the amount of spatter. Incidentally, welding phenomena vary depending on the combination of welding current, arc voltage, tip-base metal distance (hereinafter also referred to as "extension length"), shape of the workpiece (hereinafter also referred to as "work"), welding position, position of the visual sensor, and other arc welding conditions (hereinafter referred to as "welding conditions").
[0005] Furthermore, changes in welding phenomena occur not only due to differences in combinations but also due to differences in the settings of individual welding conditions. However, Patent Document 1 does not mention the influence that differences in the settings of individual welding conditions have on the welding phenomenon. For this reason, in the case of Patent Document 1, if the welding condition settings used to train the learning model differ from the welding condition settings used in actual welding, the accuracy of the physical quantities (hereinafter also referred to as "welding information") automatically extracted from the welding phenomenon will not be stable, and there is a possibility that erroneous processing will be performed based on erroneously extracted welding information.
[0006] An object of the present invention is to generate a learning model capable of stably extracting welding information from captured image data with high accuracy, regardless of the various welding conditions set in actual welding. [Means for solving the problem]
[0007] To this end, one invention provides a learning model generation method for generating a learning model that outputs welding information corresponding to image data when image data is input from a visual sensor that captures an image of a welding process, the image data used to generate the learning model being at least Regarding the extension length of the welding wire and the positional relationship between the welding wire and the molten pool The present invention provides a method for generating a learning model for welding information, characterized in that images are captured for a plurality of settings, the image data includes at least one of a molten pool, a welding wire, and an arc, the welding information includes at least one of information relating to the behavior of the molten pool, information relating to the position of the welding wire, and information relating to the arc, and the image data and the welding information corresponding to the image data are used as teacher data to generate a learning model.
[0008] In addition, image data is 、It is preferable that the setting corresponds to two or more settings related to at least one of the nozzle shape, the brightness of the image data, the shape of the workpiece, the shape of the contact tip, the welding current, the arc voltage, the welding speed, the weaving conditions, and the welding position. Also 、 It is preferable that the protrusion length is set to a number of values selected from at least a range of 10 to 40 mm. In addition, it is preferable that the information regarding the behavior of the molten pool includes information on one or more positions of the tip of the molten pool appearing in the direction in which the welding proceeds, and information on the positions of the left and right ends of the molten pool relative to the direction in which the welding proceeds. Moreover, the information regarding the position of the welding wire preferably includes information regarding the tip position of the welding wire. Additionally, the information regarding the arc preferably includes information regarding the center point of the arc.
[0009] As another invention, a learning model is provided that outputs welding information corresponding to image data when image data is input from a visual sensor that captures an image of a welding state, and the image data used to generate the learning model includes at least Regarding the extension length of the welding wire and the positional relationship between the welding wire and the molten pool The present invention provides a learning model in which images are captured for a plurality of settings, the image data includes at least one of a molten pool, a welding wire, and an arc, the welding information includes at least one of information relating to the behavior of the molten pool, information relating to the position of the welding wire, and information relating to the arc, and the learning model is generated using the image data and the welding information corresponding to the image data as teacher data.
[0010] As yet another invention, there is provided a program for causing a computer to realize a function of generating a learning model that outputs welding information corresponding to image data when image data output from a visual sensor that captures an image of a welding state is input, the function using the image data and the welding information corresponding to the image data as teacher data, and the image data used to generate the learning model includes at least Regarding the extension length of the welding wire and the positional relationship between the welding wire and the molten poolThe present invention provides a program for capturing images for a plurality of settings, the image data including at least one of a molten pool, a welding wire, and an arc, and the welding information including at least one of information regarding the behavior of the molten pool, information regarding the position of the welding wire, and information regarding the arc.
[0011] As yet another invention, there is provided a welding device for welding workpieces, a visual sensor for capturing an image of the welding state, a learning model for outputting welding information corresponding to image data when image data output from the visual sensor is input, and a control device for controlling the movement of the welding device using the welding information output when image data captured by the visual sensor is input to the learning model, wherein the image data used to generate the learning model is at least Regarding the extension length of the welding wire and the positional relationship between the welding wire and the molten pool The present invention provides a welding system in which images are captured for a plurality of settings, the image data includes at least one of a molten pool, a welding wire, and an arc, the welding information includes at least one of information relating to the behavior of the molten pool, information relating to the position of the welding wire, and information relating to the arc, and a control device generates a learning model using the image data and the welding information corresponding to the image data as teacher data.
[0012] In addition to the learning model that outputs welding information corresponding to image data, the welding system preferably includes another learning model that inputs the welding information output from the learning model and outputs a correction signal for the welding information. 。 Effect of the Invention
[0013] According to the present invention, it is possible to generate a learning model capable of stably extracting welding information from captured image data with high accuracy, regardless of the various welding conditions set in actual welding. [Brief description of the drawings]
[0014] [Figure 1] 1 is a diagram showing an example of the configuration of an automatic welding system used in explaining an embodiment; [Diagram 2] FIG. 2 is a perspective view illustrating an arrangement position of a visual sensor. [Diagram 3] FIG. 2 is a diagram illustrating an example of the configuration of a robot control device that controls the operation of a welding robot. [Figure 4] FIG. 1 is a diagram illustrating an example of the configuration of a data processing device. [Diagram 5] FIG. 2 is a diagram conceptually explaining the process of generating a learning model. [Figure 6] FIG. 13 is a diagram illustrating an example of a screen used for a teaching operation. [Figure 7] 1 is a flowchart illustrating supervised learning of a learning model. [Figure 8] 4 is a flowchart illustrating the processing operations of the robot control device and the power supply device. [Figure 9] 10 is a flowchart illustrating a process of generating correction information by a data processing device. [Figure 10] FIG. 11 is a diagram illustrating an example of welding conditions used to generate training data. [Figure 11] 11A and 11B are diagrams illustrating an example of output of welding information corresponding to Specific Example 1 and an example of output of welding information corresponding to Comparative Example 1. [Figure 12] FIG. 11 is a diagram illustrating another example of welding conditions used to generate teaching data. [Figure 13] 13A and 13B are diagrams illustrating an example of output from specific example 2 when the aperture value of the camera is F=8. [Figure 14] 13 is a diagram for explaining an output example of concrete example 2 when the aperture value of the camera used in the actual welding environment is F=15. FIG. [Figure 15] 13A and 13B are diagrams illustrating an example of output from Comparative Example 2 when the aperture value of the camera is F=8. [Figure 16] 13 is a diagram for explaining an example of output from Comparative Example 2 when the aperture value of a camera used in a real welding environment is F=15. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, embodiments of a method for generating a learning model for welding information, a learning model, a program, and a welding system according to the present invention will be described with reference to the accompanying drawings. Note that each drawing is created for the purpose of explaining the present invention, and the embodiments of the present invention are not limited to the contents shown in the drawings.
[0016] <Automatic welding system configuration> FIG. 1 is a diagram showing an example of the configuration of an automatic welding system 1 used to explain the embodiment. The automatic welding system 1 shown in FIG. 1 includes a welding robot 10, a robot control device 20, a power supply device 30, a visual sensor 40, and a data processing device 50. The automatic welding system 1 in this embodiment has a function of generating a learning model using an image of a welding position and welding information taught by an operator about the corresponding image as teaching data, and a function of automatically controlling arc welding using the generated learning model. Note that deep learning is used to generate the learning model.
[0017] 1 is a six-axis articulated robot, and a welding torch 11 for arc welding is attached to the tip of the robot. Arc welding includes, for example, MIG (Metal Inert Gas) welding and MAG (=Metal Active Gas) welding, and MAG welding is selected in this embodiment. The welding robot 10 may be, for example, a small portable robot.
[0018] A welding wire 13 is supplied to the welding torch 11 from a wire feeder 12. The welding wire 13 is fed from the tip of the welding torch 11. Power supply device 30 is a power supply device that supplies power to welding wire 13. This power causes an arc voltage to be applied between welding wire 13 and workpiece W, generating an arc. Power supply device 30 is provided with a current sensor (not shown) that detects the welding current flowing from welding wire 13 to workpiece W during welding.
[0019] Power supply device 30 has a CPU (=Central Processing Unit) and a memory (not shown), and controls the power applied to welding wire 13 by the CPU executing a computer program for power supply control. The power supply device 30 is also connected to the wire feeder 12 , and the CPU controls the feed speed of the welding wire 13 .
[0020] The visual sensor 40 is, for example, a CCD (=Charge Coupled Device) camera. 2 is a perspective view for explaining the arrangement position of the visual sensor 40. In the present embodiment, the workpiece W is a butt joint. The workpiece W is two metal plates that are butted together with a groove between them. A ceramic backing material 14 is attached to the back sides of the two butted metal plates. A metal backing material may be used on the back side, or no backing material may be used. In a butt joint, arc welding is performed in one direction along the groove. Hereinafter, the direction in which welding proceeds will be referred to as “forward.” In Fig. 2, the direction in which welding proceeds is indicated by an arrow. For this reason, welding torch 11 is located behind visual sensor 40. In this embodiment, the side where the right hand is positioned when looking backward from the visual sensor 40 is referred to as the "right side", and the side where the left hand is positioned when looking forward is referred to as the "left side".
[0021] In this embodiment, the workpiece W is placed horizontally so that the surface to be welded faces vertically upward. Therefore, the welding robot 10 welds the workpiece W from above. 2, the visual sensor 40 is installed obliquely above the welding position of the workpiece W. The imaging range of the visual sensor 40 includes the welding position of the workpiece W, and captures an image of the welding position during arc welding. This image includes the molten pool, the welding wire 13, and the arc. The visual sensor 40 in this embodiment can continuously capture still images of, for example, 1024 x 768 pixels. In other words, the visual sensor 40 can capture welding images as moving images.
[0022] <Configuration of the robot control device> FIG. 3 is a diagram illustrating an example of the configuration of a robot control device 20 that controls the operation of the welding robot 10. The robot control device 20 has a CPU 201 that controls the entire device, a memory 202 that stores data, an operation panel 203 including a number of switches, a teaching pendant 204 used in teaching operations, an input / output unit 205, and a communication unit 206. The memory 202 stores a control program 202A used to control the welding robot 10. The CPU 201 controls the welding operation performed by the welding robot 10 through execution of the control program 202A.
[0023] An operation panel 203 and a teaching pendant 204 are used to input instructions to the robot control device 20. An operator can use the teaching pendant 204 to input a teaching program. The robot control device 20 controls the welding operation of the welding robot 10 according to a teaching program inputted from a teaching pendant 204. However, the teaching program can also be created using a computer (not shown).
[0024] Power supply device 30 and a drive circuit for welding robot 10 are connected to input / output unit 205. A current value of a welding current detected by, for example, a current sensor (not shown) is provided from power supply device 30 to CPU 201 through input / output unit 205. CPU 201 also outputs a control signal based on control program 202A to the drive circuit for welding robot 10. The communication unit 206 is a communication module for wired or wireless communication and is used for data communication with the power supply device 30 and the data processing device 50.
[0025] Robot controller 20 also controls the speed of welding torch 11 by controlling each axis of welding robot 10. In the present embodiment, robot controller 20 uses the result of image recognition to control the speed of welding torch 11. However, the speed of welding torch 11 may be controlled to be constant.
[0026] The robot controller 20 also controls the weaving operation of the welding robot 10. The weaving operation refers to alternately swinging the welding torch 11 in a direction intersecting the welding progress direction. The robot controller 20 controls the weaving operation according to the set period, amplitude, and welding speed. The robot control device 20 executes weld line tracking control in addition to the weaving operation. The weld line tracking control is an operation for controlling the left and right positions of the welding torch 11 so that a bead is formed along the weld line.
[0027] <Configuration of data processing device> FIG. 4 is a diagram illustrating an example of the configuration of the data processing device 50. As shown in FIG. The data processing device 50 is configured, for example, by a computer. The computer includes a main body 510, an input unit 520, and a display unit 530. The main body 510 has a CPU 511 , a ROM 512 , a RAM 513 , a non-volatile storage device 514 , an input / output interface 515 , a communication interface 516 , and a video output interface 517 . The CPU 511, ROM 512, RAM 513, non-volatile storage device 514, input / output interface 515, communication interface 516, and video output interface 517 are connected to one another via buses and signal lines.
[0028] The non-volatile memory device 514 stores a learning program 514A that performs deep learning using image data of a welding phenomenon and welding information taught by an operator for the image data as teacher data, a learning model 514B generated through execution of the learning program 514A, a welding information generation program 514C that generates welding information related to arc welding using the learning model 514B, and image data 514D of the welding position. The learning model 514B in this embodiment is configured by a Convolutional Neural Network. In addition, the non-volatile storage device 514 also has an operating system and application programs installed therein.
[0029] The data processing device 50 realizes various functions by the CPU 511 executing the programs. In the present embodiment, the data processing device 50 realizes a function of generating a learning model and a function of inputting image data when actual welding is performed and outputting welding information. The contents of these functions will be described later. The data processing device 50 may be divided according to the function of generating a learning model and the function of inputting image data when actual welding is performed and outputting welding information. From the viewpoint of versatility, it is preferable to divide the data processing device 50 according to each function. The ROM 512 stores a BIOS (=Basic Input Output System) and the like executed by the CPU 511. The RAM 513 is used as a working area for programs read from the non-volatile storage device 514.
[0030] The input / output interface 515 is connected to an input unit 520 that is constituted by a keyboard, a mouse, etc. The visual sensor 40 is also connected to the input / output interface 515. Image data output from the visual sensor 40 is provided to the CPU 511 via the input / output interface 515. The communication interface 516 is a communication module for wired or wireless communication. The video output interface 517 is connected to a display unit 530 configured by, for example, a liquid crystal display or an organic EL (=Electro-Luminescence) display, and outputs a video signal corresponding to video data provided by the CPU 511 to the display unit 530.
[0031] <Automatic welding system operation> The operation of the automatic welding system 1 will now be described.
[0032] <Creating learning models> Here, a description will be given of the generation of the learning model 514B. The learning model 514B is generated by executing the learning program 514A. 5 is a diagram conceptually explaining the generation process of the learning model 514B. The learning model 514B in this embodiment is configured by a convolutional neural network, and includes a plurality of convolution layers, a plurality of pooling layers, and a plurality of fully connected layers.
[0033] Learning model 514B receives image data output from visual sensor 40 as input, and outputs various welding information appearing in the image data. The image data input to learning model 514B includes the molten pool, welding wire 13 (see FIG. 1), and the arc. Hereinafter, this image data will be referred to as a "welding image." In the case of this embodiment, welding is performed with different settings of the welding conditions, and welding images are prepared by capturing images of the state of each welding. The welding conditions in this embodiment include, for example, the extension length of the welding wire 13, the brightness (F value) of the image data, the shape of the workpiece W, the shape of the contact tip, the welding current, the arc voltage, the welding speed, the weaving conditions, and the posture of the welding wire 13 relative to the workpiece W (welding posture). For example, the shape of the contact tip can be a straight nozzle or a tapered nozzle, and the information that defines the welding position can be, for example, the sweep angle, the forward angle, and the deviation of the weld line from the groove.
[0034] In this embodiment, a number of welding operations are performed with different settings for the "extension length" among the welding conditions, and welding images of the welding operations are captured and prepared as teacher data. For example, welding images for an extension length of 22 mm, 27 mm, and 32 mm are prepared. In addition, welding information taught by the operator for these welding images is prepared as teacher data. It is also possible to perform welding by changing the settings of welding conditions other than the extension length, and to prepare welding images captured during each welding operation and welding information instructed by the operator about the welding images.
[0035] In this embodiment, the welding information used includes the tip of welding wire 13 (wire tip), the center point of the arc (arc center), the positions of the left and right tips of the molten pool, and the positions of the left and right ends of the molten pool. The welding information used as teaching data is input by an operator specifying a specific position on a welding image according to instructions on an operation screen that supports the teaching work. Fig. 6 is a diagram for explaining an example of a screen used for a teaching operation. The welding image shown in Fig. 6 includes a molten pool 15, a welding wire 13, and an arc 16. In Fig. 6, the molten pool 15 is shown shaded.
[0036] In this embodiment, the operator teaches the welding information as follows: the coordinate position of the arc center (ArcX, ArcY), the coordinate position of the wire tip (WireX, WireY), the coordinate position of the left end of the molten pool tip (Pool_Lead_Lx, Pool_Lead_Ly), the coordinate position of the right end of the molten pool tip (Pool_Lead_Rx, Pool_Lead_Ry), the coordinate position of the left end of the molten pool (Pool_Lx), and the coordinate position of the right end of the molten pool (Pool_Rx). The welding information is input by the operator designating a specific position on the screen. The coordinates that define the boundary between welding wire 13 and the arc are an example of the position coordinates of the wire tip. Moreover, the left end of the front edge of the molten pool, the right end of the front edge of the molten pool, the left end of the molten pool, and the right end of the molten pool are examples of information about the behavior of the molten pool 15. If the left end of the molten pool and the right end of the molten pool are known, the width of the molten pool 15 can be calculated.
[0037] 7 is a flowchart for explaining supervised learning of the learning model 514B. The symbol S in the figure means a step. When performing supervised learning, the CPU 511 (see FIG. 4) of the data processing device 50 (see FIG. 1) receives, as teacher data, image data captured during welding performed with settings of at least one of the welding conditions changed, and welding information taught about the image data (step 1). As described above, the welding information is prepared in advance by the operator. In the case of this embodiment, a grayscale image reduced in size to, for example, 120×100 pixels is used as the welding image as the teacher data.
[0038] Next, CPU 511 inputs the grayscale image as teacher data to learning model 514B, and executes supervised learning so that output welding information matches the welding information as teacher data (step 2). Specifically, backpropagation processing or the like is executed as error feedback, and parameters of each layer and between layers of learning model 514B are adjusted. Next, the CPU 511 determines whether or not a termination condition is satisfied (step 3). The termination condition is, for example, that the average error in a certain number of nearest neighboring teacher data is less than a predetermined value. If the termination condition is not satisfied (negative result in step 3), CPU 511 returns to step 2 and continues supervised learning. On the other hand, if the termination condition is satisfied (positive result in step 3), CPU 511 ends the generation of learning model 514B.
[0039] <Actual welding using the generated learning model> The welding operation of the automatic welding system 1 during actual welding will now be described. When performing arc welding, the operator activates the robot control device 20, the power supply device 30, and the data processing device 50, respectively. A robot control device 20 controls the movement of the welding robot 10, and a power supply device 30 performs welding. A data processing device 50 monitors welding images captured by a visual sensor 40, and sequentially calculates welding information related to the arc welding. In this embodiment, the welding information includes the position of the wire tip, the center of the arc, the right and left end positions of the tip of the molten pool, and the right and left end positions of the molten pool.
[0040] 8 is a flowchart illustrating the processing operations of the robot control device 20 and the power supply device 30. The symbol S in the figure indicates a step. When starting arc welding, an operator operates teaching pendant 204 (see FIG. 3) to input a teaching program, various setting values, and a welding start command to robot control device 20. The teaching program here specifies the movement of welding robot 10 (see FIG. 1), etc. The CPU 201 (see FIG. 3) of the robot control device 20 receives a teaching program, various setting values, and a welding start command (step 11).
[0041] CPU 201 issues a command to power supply device 30 to start welding (start supplying welding power) (step 12). Power supply device 30 receives this command (step 13) and controls a power circuit built into power supply device 30 to start welding (step 14). As a result, a welding voltage is applied between welding wire 13 (see FIG. 1) and workpiece W (see FIG. 1), and an arc is generated. Next, CPU 201 transmits a control signal to welding robot 10 to execute welding control (step 15). The welding control includes automatic welding control (step 151), weaving operation control (step 152), and weld line tracking control (step 153). In the automatic welding control, CPU 511 automatically moves welding torch 11 in the welding direction while transmitting a correction signal to power supply device 30 for controlling at least one of the welding speed, welding current, and arc voltage, and power supply device 30 performs welding in accordance with the correction signal. From the viewpoint of ease of control, it is preferable that the automatic welding control also includes control of the welding speed, and in this embodiment, only the welding speed is controlled.
[0042] CPU 201 determines whether or not it is necessary to stop the welding operation (step 16). If it is not necessary to stop the welding operation (negative result in step 16), robot control device 20 receives welding information from data processing device 50 (step 17) and returns to step 15. After returning to step 15, CPU 201 executes welding control based on the received welding information. For example, when an instruction to stop welding is received from an operator, when the welding end position is detected by a sensor provided on the welding robot 10, or when a welding abnormality is detected, or when both are detected (positive result in step 16), the CPU 201 determines that it is necessary to stop the welding operation.
[0043] In this case, CPU 201 stops the welding control (step 18), and commands power supply device 30 to stop welding (step 19). The welding is stopped by stopping the supply of welding power. Moreover, CPU 201 instructs data processing device 50 to stop generating welding information (step 20). On the other hand, when the power supply device 30 receives a command to stop welding (step 21), the power supply device 30 controls the power supply circuit by a CPU (not shown) to stop welding (step 22). This ends the operations of the robot control device 20 and the power supply device 30.
[0044] The welding information received by the CPU 201 of the robot control device 20 in step 17 is generated as follows. 9 is a flowchart explaining the process of generating welding information by data processing device 50, executing welding control based on the welding information, and transmitting correction signals for each control factor to power supply device 30. Note that each control factor refers to a welding condition, such as welding speed, welding current, arc voltage, weaving operation, or weld line tracking. The symbol S in the figure indicates a step. While automatic welding is being performed, the CPU 511 of the data processing device 50 receives a welding image obtained by capturing an image of the welding position from the visual sensor 40 (step 31). Next, CPU 511 reduces the received welding image and converts it into a grayscale image (step 32). CPU 511 reduces the size of the welding image to 120×100 pixels.
[0045] Next, CPU 511 inputs the reduced welding image to learning model 514B, and acquires welding information output from learning model 514B (step 33). The learning model 514B outputs the coordinate position of the arc center (ArcX, ArcY), the coordinate position of the wire tip (WireX, WireY), the coordinate position of the left end of the molten pool tip (Pool_Lead_Lx, Pool_Lead_Ly), the coordinate position of the right end of the molten pool tip (Pool_Lead_Rx, Pool_Lead_Ry), the coordinate position of the left end of the molten pool (Pool_Lx), and the coordinate position of the right end of the molten pool (Pool_Rx).
[0046] CPU 511 performs welding control based on the acquired welding information, and calculates correction signals for each control factor (step 34). In this embodiment, the correction signals calculated are a left / right position correction amount ΔX of welding torch 11, a speed correction amount ΔV of welding torch 11, and a set value w of the width of the weaving operation (hereinafter referred to as "weaving width"). The left-right position correction amount ΔX of the welding torch 11 is calculated by the following formula (1). PoolCenX=(Pool_Lx+Pool_Rx) / 2 ΔX=PoolCenX-X0 (1) Here, X0 is a reference value for the left-right position of the center of the molten pool, and is a preset value. The calculated left-right position correction amount ΔX is used to move the welding torch 11 left-right so that the center PoolCenX of the molten pool image coincides with X0.
[0047] When calculating the speed correction amount ΔV, first, ΔL is calculated by the following equation (2). LeadY=(Pool_Lead_Ly+Pool_Lead_Ry) / 2-ArcY ΔL=LeadY-L0 (2) Here, L0 is the distance between the tip of the molten pool and the center of the arc, and is preset to a value that can form the best quality back bead. LeadY is also the distance between the tip of the molten pool and the center of the arc, where LeadY is calculated by the above formula (2) using Pool_Lead_Ly, Pool_Lead_Ry, and ArcY, which are image feature information extracted from the welding image. ΔL is the difference between LeadY and L0. Once the distance ΔL is calculated, the velocity ΔV is calculated by the following equation (3) using a conversion coefficient β. ΔV=ΔL×β (3)
[0048] The set value w of the weaving width is calculated by the following formula (5) or (6). Leadw=Pool_Lead_Rx-Pool_Lead_Lx IF Leadw < w0 THEN w=0 (4) IF Leadw ≧ w0 THEN w=(Leadw-α) (5) Here, w0 is the gap width of the groove, and is preset to the minimum value at which weaving is required.
[0049] Leadw also indicates the gap width, which is a value calculated as described above since the coordinate positions (Pool_Lead_Lx, Pool_Lead_Rx) of the image feature information extracted from the welding image correspond to the left and right positions of the groove. According to the above formula (4), when the gap width Leadw is less than w0, the set value w of the weaving width becomes 0, and the weaving operation is not performed. According to the above formula (5), when the gap width Leadw is equal to or larger than w0, the set value w of the weaving width is set to a value smaller than the gap width Leadw by α, where α is a value that is set in advance.
[0050] The process of step 34 may be separately modeled, for example, a learning model may be generated using information associating welding information with welding result information, etc. as teacher data, the welding information may be input to this learning model, and correction signals for each control factor may be output so as to obtain an optimal welding result. Here, welding result information may include welding current waveform data, arc voltage waveform data, arc sound data during welding, bead shape data, spatter generation data, fume generation data, welding defect data, etc., and it is preferable to handle at least one of these data as welding result information.
[0051] When the calculation of the correction signal in step 34 is completed, the CPU 511 transmits the correction signal to the robot control device 20 (step 35). Next, the CPU 511 judges whether or not a command to stop generating the correction signal has been received from the robot control device 20 (step 36). If the stop command has not been received (negative result in step 36 ), CPU 511 returns to step 31 . On the other hand, if a stop command has been received (positive result in step ), CPU 511 ends the process of generating the correction signal.
[0052] As described above, in the automatic welding system 1 according to the present embodiment, the learning model 514B is generated by performing deep learning using the welding images captured by changing the settings of at least one of the welding conditions and the welding information taught by the operator about the welding images as teacher data, so that highly reliable welding information is stably output regardless of the various welding conditions set in the actual welding. In other words, a learning model with high robustness is generated.
[0053] <Example> Hereinafter, it will be described how the recognition accuracy of welding information is improved by using learning model 514B generated by the method described in the embodiment. (1) Specific Example 1 Fig. 10 is a diagram for explaining an example of welding conditions used for generating training data. In Fig. 10, training data corresponding to the method described in the embodiment is referred to as Specific Example 1, and training data corresponding to the conventional method is referred to as Comparative Example 1. In the case of Specific Example 1, a total of 5400 welding images are used as training data. This number is twice the number of welding images used in Comparative Example 1.
[0054] The welding image of Example 1 differs from the welding image of Comparative Example 1 in the following two points. The first difference is that two types of settings are used for the extension length, which is one of the welding conditions. In the case of Comparative Example 1, only the welding image captured with the extension length set to 25 mm is included, whereas in the case of Specific Example 1, a welding image captured with the extension length set to 22 mm is added. The second difference is that welding images are added for the cases where the welding wire 13 (see FIG. 1) is located to the right and left of the molten pool. However, in the case of Comparative Example 1, the position of the welding wire 13 in the welding images used as the training data is not specified, so there is a possibility that the welding images may include those captured when the welding wire 13 is located to the right of the molten pool and those captured when the welding wire 13 is located to the left of the molten pool. However, the number of images at the corresponding positions is significantly smaller than that of Specific Example 1.
[0055] FIG. 11 is a diagram for explaining an output example of welding information corresponding to the specific example 1 and an output example of welding information corresponding to the comparative example 1. In FIG. 11 shows six welding images. The top three welding images correspond to a state where welding wire 13 is located to the right of the molten pool, and the bottom three welding images correspond to a state where welding wire 13 is located to the left of the molten pool. The two rows of welding images on the left correspond to Comparative Example 1, and the one row of welding images on the right corresponds to Specific Example 1. In each welding image, the positions of the arc center, wire tip, left end of the tip of the molten pool, right end of the tip of the molten pool, left end of the molten pool, and right end of the molten pool, recognized using learning model 514B, are indicated with circles.
[0056] In the case of Comparative Example 1, in all of the welding images, the circle indicating the recognized position of the wire tip appears in a position different from the actual tip of the welding wire 13. This means that there is an error in the recognition of the wire tip. For this reason, NG1 and NG2 are added to the column for Comparative Example 1 in Fig. 11. On the other hand, in the case of Specific Example 1, the circle indicating the recognized position of the wire tip overlaps with the tip of the welding wire 13 in all of the welding images. That is, the correct position is recognized in the case of Specific Example 1. Note that, in the case of Specific Example 1, improvement in the recognition accuracy of the wire tip is confirmed regardless of the position of the welding wire 13 relative to the molten pool. In addition, in the case of Comparative Example 1, it was confirmed that the recognition accuracy of the wire tip decreased when the extension length used to generate the learning model differed from the extension length used in the actual welding environment, but in the case of the specific example, highly accurate recognition is possible regardless of the extension length used in the welding environment.
[0057] (2) Example 2 Fig. 12 is a diagram for explaining another example of welding conditions used for generating training data. In Fig. 12, training data corresponding to the method described in the embodiment is referred to as Specific Example 2, and training data corresponding to the conventional method is referred to as Comparative Example 2. The welding image of Specific Example 2 differs from the welding image of Specific Example 1 in some of the corresponding welding conditions. Specific Example 2 also uses as training data welding images in which the welding wire 13 (see FIG. 1) is located on the right side and on the left side of the molten pool, but also considers multiple settings for the exposure time and groove gap, which are welding conditions.
[0058] For example, the exposure time in Comparative Example 2 is one type, 1,100 μs, whereas the exposure time in Specific Example 2 is three types, 2,000 μs, 1,100 μs, and 800 μs. In addition, the groove gap in Comparative Example 2 is only 5 mm, but 100 patterns in the range of 3 to 10 mm are considered for the groove gap in Specific Example 2. The value of the groove gap is determined randomly. The aperture value of the camera used in the welding image in Example 2 and the comparative example 2 is F=8.
[0059] FIG. 13 is a diagram for explaining an output example of the specific example 2 when the aperture value of the camera is F=8. Six welding images are shown in Fig. 13. The top three welding images are for narrow groove gaps, and the bottom three welding images are for wide groove gaps. The leftmost row is for an exposure time of 2,000 μs, the middle row is for an exposure time of 1,100 μs, and the rightmost row is for an exposure time of 800 μs. In all of the welding images, the positions of the arc center, wire tip, left end of the tip of the molten pool, right end of the tip of the molten pool, left end of the molten pool, and right end of the molten pool are correctly recognized. Fig. 14 is a diagram for explaining an example of output of Specific Example 2 when the aperture value of the camera used in the actual welding environment is F = 15. In Fig. 14, the leftmost column is when the exposure time is 6,000 μs, the middle column is when the exposure time is 5,000 μs, and the rightmost column is when the exposure time is 4,000 μs. In the case of Fig. 14, both the exposure time and the camera aperture value F are different from the settings of the welding conditions used for learning the learning model 514B. However, in all of the welding images shown in Fig. 14, all of the welding information is accurately recognized.
[0060] Fig. 15 is a diagram for explaining an example of output of Comparative Example 2 when the aperture value of the camera is F=8. In Fig. 15, the parts corresponding to those in Fig. 13 are indicated with the corresponding reference symbols. That is, the three welding images in the upper row are for cases where the groove gap is narrow, and the three welding images in the lower row are for cases where the groove gap is wide. The leftmost column is for cases where the exposure time is 2,000 μs, the middle column is for cases where the exposure time is 1,100 μs, and the rightmost column is for cases where the exposure time is 800 μs. In the case of Comparative Example 2, in all welding images, there is a deviation in the recognition of the positions of the arc center, wire tip, left end of the molten pool, right end of the molten pool, left end of the molten pool, and right end of the molten pool. For example, when the exposure time is 2,000 μs, the recognized arc center and wire tip are significantly deviated from the correct positions regardless of the width of the groove gap. Similarly, the right and left ends of the molten pool are also significantly deviated from the correct positions.
[0061] Fig. 16 is a diagram for explaining an example of output of Comparative Example 2 when the aperture value of the camera used in the actual welding environment is F=15. In Fig. 16, the parts corresponding to those in Fig. 14 are shown with corresponding reference symbols. That is, the three welding images in the upper row are for a narrow groove gap, and the three welding images in the lower row are for a wide groove gap. The leftmost column is for an exposure time of 6,000 μs, the middle column is for an exposure time of 5,000 μs, and the rightmost column is for an exposure time of 4,000 μs. In the case of Figure 16, deviations were also observed in the recognition of the positions of the arc center, wire tip, left end of the molten pool, right end of the molten pool, left end of the molten pool, and right end of the molten pool. For example, when the exposure time is 6,000 μs and the groove gap is narrow, the recognized right and left ends of the molten pool and the right and left ends of the molten pool are significantly deviated from the correct positions. Also, when the exposure time is 6,000 μs and the groove gap is wide, the recognized arc center and wire tip are significantly deviated from the correct positions. As described above, in the case of Comparative Example 2, when the welding conditions used in the actual welding environment differ from the welding conditions used during learning, the recognition accuracy is significantly reduced.
[0062] (3) Summary As explained using the above two specific examples, by preparing welding images corresponding to multiple settings of at least one welding condition as training data used for learning learning model 514B, the impact of changes in exposure conditions in the usage environment on the recognition accuracy of welding information is reduced compared to the case where welding images corresponding to one setting of one welding condition are used as training data. As a result, welding control using the recognition results becomes more appropriate, and improved quality is achieved through automatic welding.
[0063] <Other embodiments> Although the embodiment of the present invention has been described above, the technical scope of the present invention is not limited to the scope described in the above embodiment. It is clear from the claims that various modifications and improvements to the above embodiment are also included in the technical scope of the present invention. (1) For example, in the above-mentioned embodiment, consumable electrode type MIG welding and MAG welding are exemplified as examples of arc welding machines, but TIG (=Tungsten Inert Gas) welding, which generates an arc in an inert gas, may be used. In this case, welding images captured under conditions in which the shape and posture of the filler metal are changed as welding conditions may be additionally prepared. In addition, the present invention may be applied to welding machines that do not generate an arc. For example, the present invention may be used for welding by electroslag welding.
[0064] (2) In the above embodiment, the welding robot 10 is an articulated robot, but it may be a single-joint type robot. (3) In the above embodiment, the left end and right end of the molten pool are output as welding information, but the width of the molten pool calculated from this information may be output. The welding information may also include the width of the molten pool tip calculated from the left end and right end of the molten pool tip. The welding information may also include L0 and LeadY, which are the distances between the weld pool tip position and the center of the arc.
[0065] (4) In the above embodiment, the extension length, which is a welding condition, is changed in 5 mm increments, such as 22 mm, 27 mm, and 32 mm, and welding images capturing images of the welding state at each extension length are used as training data, but the extension length increments may be 3 mm as in specific example 1. However, the extension length increments used in capturing welding images to be used as training data may be any increment.
[0066] (5) In the above-mentioned embodiment and specific example, the case where the extension length of the welding conditions is changed during welding to capture the welding images used as the training data is illustrated, but this does not mean that the extension length must be variable for the welding images used as the training data. In other words, the learning model 514B may be generated by using, as the training data, welding images captured by changing the settings for any one or more of the above-mentioned welding conditions. [Explanation of symbols]
[0067] 1...automatic welding system, 10...welding robot, 11...welding torch, 12...wire feeder, 13...welding wire, 14...backing material, 20...robot control device, 30...power supply device, 40...visual sensor, 50...data processing device, 514A...learning program, 514B...learning model, 514C...welding information generation program, 514D...image data
Claims
1. A learning model generation method for generating a learning model that outputs welding information corresponding to image data output from a visual sensor that captures an image of a welding state, the learning model generating method comprising the steps of: The image data used to generate the learning model is Images are taken for a plurality of settings related to at least the extension length of the welding wire and the positional relationship between the welding wire and the molten pool; the image data includes at least one of a molten pool, a welding wire, and an arc; the welding information includes at least one of information about a behavior of a molten pool, information about a position of a welding wire, and information about an arc; The learning model is generated by using the image data and the welding information corresponding to the image data as training data. A method for generating a learning model for welding information, comprising:
2. The image data corresponds to two or more settings related to at least one of a nozzle shape, a brightness of the image data, a shape of a workpiece, a shape of a contact tip, a welding current, an arc voltage, a welding speed, a weaving condition, and a welding position.
2. The method for generating a learning model for welding information according to claim 1.
3. The protruding length is set to a number of settings within a range of at least 10 to 40 mm.
2. The method for generating a learning model for welding information according to claim 1.
4. The information regarding the behavior of the molten pool is The information includes information on one or more positions of the leading edge of the molten pool appearing in the direction in which the welding advances, and information on the positions of the left and right ends of the molten pool with respect to the direction in which the welding advances.
4. The method for generating a learning model for welding information according to claim 1,
5. The information regarding the position of the welding wire is The information on the tip position of the welding wire is included.
4. The method for generating a learning model for welding information according to claim 1,
6. The information about the arc includes: Contains information on the center point of the arc 4. The method for generating a learning model for welding information according to claim 1,
7. a learning model that, when image data output from a visual sensor that captures an image of a welding state is input, outputs welding information corresponding to the image data; The image data used to generate the learning model is captured for a plurality of settings related to at least a projection length of the welding wire and a positional relationship between the welding wire and the molten pool; The image data includes at least one of a molten pool, a welding wire, and an arc, and the welding information includes at least one of information on a behavior of the molten pool, information on a position of the welding wire, and information on the arc; The learning model is generated by using the image data and the welding information corresponding to the image data as training data. A learning model characterized by:
8. A program that causes a computer to realize a function of generating a learning model that outputs welding information corresponding to image data output from a visual sensor that captures an image of a welding state, The function uses the image data and the welding information corresponding to the image data as teacher data, The image data used to generate the learning model is captured for a plurality of settings related to at least a projection length of the welding wire and a positional relationship between the welding wire and the molten pool; the image data includes at least one of a molten pool, a welding wire, and an arc; The welding information includes at least one of information about a behavior of a molten pool, information about a position of a welding wire, and information about an arc. A program characterized by:
9. A welding device for welding workpieces; A visual sensor that captures the welding state; a learning model that outputs welding information corresponding to image data output from the visual sensor when the image data is input; a control device that controls the movement of the welding device by using the welding information that is output when the image data captured by the visual sensor is input to the learning model; having The image data used to generate the learning model is captured for a plurality of settings related to at least a projection length of the welding wire and a positional relationship between the welding wire and the molten pool; the image data includes at least one of a molten pool, a welding wire, and an arc; the welding information includes at least one of information about a behavior of a molten pool, information about a position of a welding wire, and information about an arc; The control device generates the learning model by using the image data and the welding information corresponding to the image data as teacher data. A welding system comprising:
10. In addition to the learning model that outputs the welding information corresponding to the image data, another learning model is provided that receives the welding information output from the learning model and outputs a correction signal for the welding information. The welding system of claim 9 .
Citation Information
Patent Citations
Sensor for welding
JP2002120066A
Machine learning device, arc-welding control device, arc-welding robot system and welding system
JP2017030014A
Automatic welding system, welding control method, and machine learning model
JP2018192524A
Device, method and program for controlling welding
JP2019188437A
Weld control device, display controller, welding system, weld control method and program
JP2020028889A
