Gaze area model generation system and inference device
Patent Information
- Application Number
- JP2024504419
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Priority Date
- 2023-02-09
- Filing Date
- 2023-02-09
- Publication Date
- 2024-11-07
AI Technical Summary
When using object detection models like YOLO for welding defect detection, the detection results may differ from user recognition, and there is a need to understand the basis for these results.
A gaze area model generation system that generates gaze area information indicating maximum noise intensity, which does not affect welding defect information output by a defect detection model, using a teacher data receiving unit, defect detector, parameter storage unit, and machine learning to specify a gaze area model that minimizes loss calculated based on annotation data.
Enables users to obtain information on the basis for defect detection model results, improving understanding and accuracy of welding defect detection, and reducing processing time for multiple categories.
Abstract
Description
Gaze area model generation system and inference device
[0001] The present disclosure relates to a gaze area model generation system that generates a gaze area model that generates gaze area information indicating the maximum noise intensity that does not affect the welding defect information output by a defect detection model at each position in an image, and an inference device that uses the gaze area model.
[0002] Patent Document 1 discloses an inference device that detects an object in an input image using an object detection model of YOLO, which is an object detection algorithm.
[0003] Japanese Patent Application Laid-Open No. 2021-002333
[0004] However, when an object detection model such as YOLO is used to detect defective welding in a welding image of a welded portion, the detection result of the defective welding by the object detection model may differ from the user's recognition of the defective welding. In such cases, there is a demand for allowing the user to know the basis for the detection result derived by the object detection model.
[0005] The present disclosure has been made in consideration of these points, and its purpose is to enable a user to obtain information regarding the basis on which an object detection model derives a detection result.
[0006] In order to achieve the above object, the gaze area model generation system according to the present disclosure includes a teacher data receiving unit that receives teacher data consisting of a plurality of data sets of image data of a welding image including a welding location and annotation data of defective welding information including the type, size, and position of defective welding in the welding image; a parameter storage unit that stores parameters that specify a defect detection model that is generated by machine learning using the teacher data and that outputs the defective welding information based on the image data of the welding image; a gaze area information generation step that receives image data of a predetermined evaluation target data set and generates, using a gaze area model, gaze area information that indicates a maximum noise intensity that does not affect the defective welding information output by the defect detection model at each position in an image indicated by the image data; the defect detection model; and a loss calculation step for calculating a loss based on the defect welding information generated in the defect welding information generation step and annotation data of the evaluation target dataset, the defect detection model being generated ...
[0007] This generates a gaze area model that generates gaze area information indicating the maximum noise intensity that does not affect the defective welding information output by the defect detection model at each position in the image. Therefore, by using this gaze area model, the user can obtain the gaze area information as information regarding the basis for the defective welding information deriving the defect detection model.
[0008] According to the present disclosure, a user can obtain information regarding the basis on which a fault detection model derives a detection result.
[0009] FIG. 1 is a block diagram showing the configuration of a welding system including an AI model generation device as a gaze area model generation system according to an embodiment of the present disclosure. FIG. 2 is an explanatory diagram showing the configuration of a gaze area model generation unit. FIG. 3 is a diagram showing an equation of a loss function used to generate a gaze area model. FIG. 4A is a diagram showing a first example of a welding defect display image. FIG. 4B is a diagram showing a gaze area display image for an undercut corresponding to FIG. 4A. FIG. 4C is a diagram showing a gaze area display image for a pit corresponding to FIG. 4A. FIG. 4D is a diagram showing a gaze area display image for a perforation corresponding to FIG. 4A. FIG. 5A is a diagram showing a second example of a welding defect display image. FIG. 5B is a diagram showing a gaze area display image for an undercut corresponding to FIG. 5A. FIG. 5C is a diagram showing a gaze area display image for a pit corresponding to FIG. 5A. FIG. 5D is a diagram showing a gaze area display image for a perforation corresponding to FIG. 5A. FIG. 6A is a diagram showing, from left to right, a welding defect display image and a gaze area display image for a pit when gamma correction is not performed. Fig. 6B is a diagram equivalent to Fig. 6A when gamma correction is performed. Fig. 7 is a flowchart illustrating the operation of the welding system.
[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0011] 1 shows a welding system 1. The welding system 1 includes an AI model generation device 10 as a gaze area model generation system according to an embodiment of the present disclosure that generates a defect detection model and a gaze area model through machine learning, and a welding device 20 that performs welding.
[0012] The AI model generation device 10 generates a defect detection model and a gaze area model through machine learning.
[0013] The defect detection model is a YOLO object detection model that outputs welding defect information based on input image data. The defect detection model is represented by a convolutional neural network (CNN). Even if a first object to be detected is partially hidden by another second object to be detected in the image, this object detection model can identify the area in the image where the first object overlaps the second object as the area where the first object is located. The welding defect information includes presence / absence information indicating whether a welding defect exists in the image represented by the image data, category information indicating the category of the welding defect, size information indicating the size of the welding defect, and position information indicating the position of the welding defect. Specifically, the size information indicates the size of a bounding box containing the welding defect, and the position information indicates the position of the bounding box containing the welding defect. The bounding box is a rectangular boundary area that surrounds an object such as a welding defect.
[0014] The attention area model is a model that outputs attention area information for multiple categories of welding defects based on input image data. The multiple categories include perforations, pits, spatters, undercuts, and protrusions. Pits are openings on the surface of a weld bead. The attention area information is information that indicates the maximum noise intensity (hereinafter referred to as "maximum noise intensity") at each pixel (position) in an image represented by image data that does not affect the welding defect information output by the defect detection model. The attention area model is also expressed by a CNN. Residual Networks (ResNet) is used as the backbone of the attention area model. Note that a backbone other than ResNet may be used for the attention area model.
[0015] Specifically, the AI model generation device 10 includes a teacher data receiving unit 11, a defect detection model generation unit 12, a parameter storage unit 13, and a gaze area model generation unit 14.
[0016] The teacher data receiving unit 11 receives teacher data consisting of a plurality of data sets each including image data of a welding image including a welding location and annotation data of defective welding information relating to defective welding in the welding image.
[0017] The fault detection model generation unit 12 generates a fault detection model by machine learning using the training data received by the training data receiving unit 11. Specifically, the fault detection model generation unit 12 specifies the weights and biases of each node constituting the CNN that expresses the fault detection model as parameters that specify the fault detection model.
[0018] The parameter storage unit 13 stores the parameters identified by the fault detection model generation unit 12 .
[0019] 2, the gaze area model generation unit 14 includes a calculator 141 and an update unit 142. The gaze area model generation unit 14 identifies a gaze area model by machine learning, referring to the parameters stored in the parameter storage unit 13, so that the loss function calculated by the calculator 141 is minimized.
[0020] The calculator 141 includes a gaze area information generating unit CA1, a multiplying unit CA2, a noise adding unit CA3, a welding defect information generating unit CA4, and a loss calculating unit CA5.
[0021] The gaze area information generating unit CA1 receives image data of a predetermined evaluation target data set and generates gaze area information IN1 to INX for the image data for multiple categories using a gaze area model. Gaze area information IN1 is for holes, gaze area information IN2 is for pits, gaze area information IN3 is for spatters, gaze area information IN4 is for undercuts, and gaze area information IN5 is for protrusions. INX is for any other welding defects.
[0022] The multiplication unit CA2 obtains virtual noise by multiplying the maximum noise intensity at each position indicated by the fixation area information IN1 to INX generated by the fixation area information generation unit CA1 by Gaussian noise.
[0023] The noise adding unit CA3 adds the virtual noise obtained by the multiplying unit CA2 for a plurality of categories to the image data of the evaluation target data set, thereby obtaining noise-added image data.
[0024] The defective welding information generating unit CA4 generates defective welding information for a plurality of categories based on the noise-added image data acquired by the noise adding unit CA3, using the defect detection model generated by the defect detection model generating unit 12. The defect detection model can be identified by referring to the parameters stored in the parameter storage unit 13.
[0025] The loss calculation unit CA5 calculates the loss L using the loss function formula shown in FIG. 3 based on the welding defect information generated by the welding defect information generation unit CA4 and the annotation data of the evaluation target data set.
[0026] In the formula shown in FIG. coord is a weighting coefficient (a preset constant), S 2 is the number of grids of the image shown by the image data, and B is the number of bounding boxes. The part of the two-dot chain line shown by the symbol P1 is 1 if a welding defect exists, and 0 if no welding defect exists. The position (coordinates) of the welding defect shown by the welding defect information generated by the welding defect information generating unit CA4 is expressed as (x i , y i ), and the position (coordinates) of the welding defect indicated by the annotation data of the evaluation target data set is (^x i , ^y i ) The width of the bounding box including the weld defect indicated by the weld defect information is w i , the height of the bounding box containing the weld defect is h i On the other hand, the width of the bounding box including the welding defect indicated by the annotation data is ^w i ,The height of the bounding box containing the weld defect is,^h i classes is a set of categories, and p i (c) is the probability that category c is in grid cell i, ^pi (c) is the probability that category c is present in grid cell i, as indicated by the annotation data. i (c) is a value between 0 and 1, ^p i (c) takes the value 0 or 1.
[0027] The update unit 142 updates the parameters of the attention region model based on the loss L calculated by the calculator 141 so as to reduce the loss L. The parameters of the attention region model are the weights and biases of each node constituting the CNN that expresses the attention region model.
[0028] With the parameters of the attention area model set to predetermined initial values, all data sets constituting the teacher data (teacher data used to generate the fault detection model) received by the teacher data receiving unit 11 are input in order to the calculator 141 as the evaluation target data sets. Each time the calculator 141 calculates the loss L, the update unit 142 updates the parameters of the attention area model based on the loss L so as to reduce the loss L. Then, the update unit 142 specifies the parameters of the attention area model when processing has been completed for all data sets constituting the teacher data.
[0029] In other words, the gaze area model generation unit 14 receives image data of a predetermined evaluation target dataset, and for a plurality of types of categories, performs a gaze area information generation step of generating gaze area information IN1 to INX for the image data using a gaze area model; a multiplication step of multiplying the maximum noise intensity at each position indicated by the gaze area information IN1 to INX generated by the gaze area information generation step by Gaussian noise to obtain virtual noise; a noise imparting step of acquiring noise-added image data by imparting the virtual noise obtained by the multiplication step for the plurality of types of categories to the image data of the evaluation target dataset; a defective welding information generation step of generating defective welding information for the plurality of types of categories using the defect detection model generated by the defect detection model generation unit 12 based on the noise-added image data acquired by the noise imparting step; and a loss calculation step of calculating a loss L based on the defective welding information generated by the defective welding information generation step and annotation data of the evaluation target dataset, by setting each dataset constituting the teacher data as the evaluation target dataset, and the gaze area model is identified by machine learning so that the loss L calculated by the loss calculation step is minimized. The backpropagation method or the like is used to identify the gaze area model. When identifying the gaze area model using the backpropagation method, the parameters of the neural network are adjusted so that the loss L is minimized. Specifically, the parameters are adjusted so that the loss L approaches 0 by partially differentiating it. The backpropagation method is also called the gradient descent method.
[0030] Welding device 20 has welding torch 21, a wire feeder (not shown), welding power source 23, output control unit 24, robot arm 25, robot control unit 26, scanner 27, and data processing device 30 as an inference device. When power is supplied from welding power source 23 to welding wire 28 held in welding torch 21, an arc is generated between the tip of welding wire 28 and workpiece W, and workpiece W is heated to perform arc welding. Welding device 20 also has other components and equipment such as piping and gas cylinders for supplying shielding gas to welding torch 21, but for convenience of explanation, these are not shown or described.
[0031] Output control unit 24 is connected to welding power source 23 and a wire feeder (not shown) and controls the welding output of welding torch 21, in other words, the power supplied to welding wire 28 and the power supply time, in accordance with predetermined welding conditions. Output control unit 24 also controls the feed speed and feed amount of welding wire 28 fed from the wire feeder (not shown) to welding torch 21. Note that the welding conditions may be input directly to output control unit 24 via an input unit (not shown), or may be selected from a welding program separately read out from a recording medium or the like.
[0032] Robot arm 25 is a known articulated robot that holds welding torch 21 at its tip and is connected to robot control unit 26. Robot control unit 26 controls the operation of robot arm 25 so that the tip of welding torch 21, in other words, the tip of welding wire 28 held by welding torch 21, traces a predetermined welding trajectory and moves to a desired position.
[0033] The scanner 27 is attached to the welding torch 21 and measures the shape of the welded portion PW of the workpiece W. The scanner 27 is a three-dimensional shape measurement sensor composed of, for example, a laser light source (not shown) configured to scan the surface of the workpiece W and a camera (not shown) that captures the reflection trajectory of the laser light projected onto the surface of the workpiece W (hereinafter, sometimes referred to as a shape line). The scanner 27 scans the entire welded portion PW of the workpiece W with a laser beam, and the camera captures the laser beam reflected by the welded portion PW, thereby measuring the shape of the welded portion PW. The scanner 27 is configured to measure the shape of not only the welded portion PW but also a predetermined range around it. This is to evaluate the presence or absence of spatter, etc. The camera has a CCD or CMOS image sensor as an imaging element. The configuration of the scanner 27 is not limited to the above, and other configurations are possible. For example, an optical interferometer may be used instead of the camera.
[0034] The data processing device 30 has a main body 31 , a monitor 32 as an image display unit, and an input device 33 .
[0035] The main body 31 is configured as a personal computer, and executes software implemented on a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit) to realize the functions of multiple functional blocks within the main body 31. The main body 31 has an image processing unit 311, a welding defect information calculation unit 312, a welding defect display image generation unit 313, a gaze area information calculation unit 314 as an inference unit, and a gaze area display image generation unit 315 as a pixel value calculation unit.
[0036] The image processing unit 311 receives the shape data acquired by the scanner 27 and converts it into image data of a welding image including the welding point PW. For example, the image processing unit 311 acquires point cloud data of the shape lines captured by the scanner 27. The image processing unit 311 also corrects the inclination and distortion of the base portion of the welding point PW relative to a predetermined reference plane, for example, the installation surface of the workpiece W, by statistically processing the point cloud data, and generates image data including the welding point PW.
[0037] The welding defect information calculation unit 312 calculates welding defect information based on the image data generated by the image processing unit 311 using the defect detection model generated by the AI model generation device 10.
[0038] The defective welding display image generating unit 313 calculates a pixel value of each pixel of the defective welding display image displaying the defective welding information, based on the defective welding information calculated by the defective welding information calculating unit 312. The information specifying the defective welding display image may be compressed using a JPEG format or the like.
[0039] 4A and 5A are examples of defective welding display images. In the defective welding display image of FIG. 4A, areas where holes, pits, and spatters are detected are shown as rectangles. Specifically, areas where holes exist are surrounded by a square line SL1, and the word "pit" DE1 is displayed near areas where pits exist. In the defective welding display image of FIG. 5A, areas where undercuts and spatters are detected are shown as rectangles. Specifically, areas where undercuts exist are surrounded by a square line SL2, and the word "undercut" DE2 is displayed near each area.
[0040] The gaze area information calculation unit 314 uses the gaze area model generated by the AI model generation device 10 to generate gaze area information for multiple categories including pits, holes, sputters, undercuts, and protrusions based on the image data generated by the image processing unit 311.
[0041] The gaze area display image generating unit 315 calculates the pixel value of each pixel (position) of the gaze area display image by performing gamma correction on the pixel value of each pixel in the welding image specified according to the maximum noise intensity indicated by the gaze area information of each category generated by the gaze area information calculating unit 314. The information specifying the gaze area display image may be compressed using a JPEG format or the like.
[0042] Specifically, the gaze area display image generation unit 315 first converts the maximum noise intensity of each pixel indicated by the gaze area information into an 8-bit pixel value C using the following equation 1, assuming that B is a value between 0 and 1.
[0043] C=(1-B)*255 (Equation 1) Next, gamma correction is performed on the pixel value C obtained by Equation 1, and the pixel value after gamma correction is set as the pixel value in the gaze area display image. For example, by making the pixel values correspond to the jet color map array, areas with high maximum noise intensity, i.e., unimportant areas where noise is unlikely to affect the welding defect information, are set as blue pixels, and areas with low maximum noise intensity, i.e., important areas where noise is likely to affect the welding defect information, are set as red pixels.
[0044] Figures 4B to 4D show gaze area display images when the welding defect display image is the image shown in Figure 4A, and respectively show a gaze area display image for an undercut (see Figure 4B), a gaze area display image for a pit (see Figure 4C), and a gaze area display image for a perforation (see Figure 4D). Figures 5B to 5D show gaze area display images when the welding defect display image is the image shown in Figure 5A, and respectively show a gaze area display image for an undercut (see Figure 5B), a gaze area display image for a pit (see Figure 5C), and a gaze area display image for a perforation (see Figure 5D).
[0045] Here, in FIG. 4C, a gaze area image of a pit for the defective welding display image of FIG. 4A, the same location determined to be a pit in FIG. 4A appears white. This means that the pit was determined based on the characteristics of this white area. Also, in FIG. 4D, a gaze area image of a hole for the defective welding display image of FIG. 4A, the same location determined to be a hole in FIG. 4A appears white. This means that the hole was determined based on the characteristics of this white area. In the example of the defective welding display image of FIG. 4A, there are holes, pits, and spatter defects, but no undercut. Also, in the example of the defective welding display image of FIG. 5A, there are undercuts and spatters, but no holes or pits. Therefore, in FIG. 4B, a gaze area display image for an undercut for the defective welding display image of FIG. 4A, there is no area detected as an undercut in FIG. 4A, so there is no gaze area (no light areas, in other words, no white areas). In Fig. 5C, a gaze area display image for pits in relation to Fig. 5A, the poor welding display image, there are no areas detected as pits, so there are no gaze areas (light areas, in other words, no white areas). In Fig. 5D, a gaze area display image for holes in relation to Fig. 5A, there are no areas detected as holes, so there are no gaze areas (light areas, in other words, no white areas). In this way, the gaze area display images in Figs. 4B, 5C, and 5D are all dark images (in other words, black images) with no light areas, in other words, no white areas, resulting in the result that no gaze areas can be found anywhere.
[0046] 4B to 4D and 5B to 5D are grayscale images in which red pixels are shown lighter than blue pixels. (In other words, the patent drawings are monochrome images of the original color images, so red pixels are shown white and blue pixels are shown black, in grayscale. The whiter (lighter) the pixel, the more important the pixel is for determining a defect, and the darker (darker) the pixel, the more irrelevant the pixel is for determining a defect.) In the image of FIG. 4C, the area near the region indicated by the welding defect information as having a pit (in other words, the area around the periphery of the region indicated as having a pit) is shown lighter than the other areas, indicating that this is an area where noise is likely to affect the welding defect information. In the image of FIG. 4D, the area near the region indicated by the welding defect information as having a hole (in other words, the area around the periphery of the region indicated as having a hole) is shown lighter than the other areas, indicating that this is an area where noise is likely to affect the welding defect information. In the image of Figure 5B, the vicinity of the area where the welding defect information indicates that an undercut exists (in other words, the area near the outer edge of the area where the undercut exists) is shown lighter than other areas, and it can be seen that this is a location where noise is likely to affect the welding defect information.
[0047] The monitor 32 displays the poor welding display image based on the pixel values calculated by the poor welding display image generation unit 313, and also displays the gaze area display image based on the pixel values calculated by the gaze area display image generation unit 315.
[0048] Moreover, the image on the left side of Fig. 6A is a poor welding display image. The image on the right side of Fig. 6A is a gaze area display image of a pit in the case where the pixel values obtained by Equation 1 are directly used as pixel values in the gaze area display image without performing gamma correction. The image on the left side of Fig. 6B is the same as the image on the left side of Fig. 6A. The image on the right side of Fig. 6B is a gaze area display image of a pit in the case where gamma correction is performed on the pixel values obtained by Equation 1 and the pixel values after gamma correction are used as pixel values in the gaze area display image. In this way, by performing gamma correction, it is possible to narrow down important areas where noise is likely to affect the poor welding information.
[0049] An example of the operation of the welding system 1 configured as described above will be described with reference to the flowchart of FIG.
[0050] First, in S101, a user of the AI model generation device 10 prepares teacher data and inputs it to the AI model generation device 10. In response, the teacher data receiving unit 11 of the AI model generation device 10 accepts the teacher data.
[0051] Next, in S102, the fault detection model generation unit 12 of the AI model generation device 10 generates a fault detection model by machine learning using the teacher data received by the teacher data receiving unit 11 in S101, and stores parameters that identify the fault detection model in the parameter memory unit 13.
[0052] Next, in S103, the gaze area model generation unit 14 of the AI model generation device 10 identifies a fault detection model by referring to the parameters that identify the fault detection model stored in the parameter memory unit 13 in S102, and generates a gaze area model by machine learning using the fault detection model and the teacher data received by the teacher data receiving unit 11 in S101.
[0053] Thereafter, in S104, the defective welding information calculation unit 312 of the welding device 20 receives image data of the inspection target. Specifically, for example, the defective welding information calculation unit 312 receives image data generated by the image processing unit 311 based on shape data acquired by the scanner 27 during welding.
[0054] Then, in S105, the defective welding information calculation unit 312 calculates defective welding information based on the image data received in S104 using the defect detection model generated in S102. The welding device 20 can specify the defect detection model by, for example, receiving parameters specifying the defect detection model generated in S102 from the AI model generation device 10 via wired communication or wireless communication.
[0055] Then, in S106, the poor welding display image generation unit 313 calculates the pixel value of each pixel of the poor welding display image that displays the poor welding information based on the poor welding information calculated in S105, and the monitor 32 displays the poor welding display image.
[0056] Next, in S107, the gaze area information calculation unit 314 of the welding device 20 uses the gaze area model generated in S103 to generate gaze area information for a plurality of categories including pits, holes, spatters, undercuts, and protrusions, based on the image data of the inspection target accepted by the defective welding information calculation unit 312 in S104. The welding device 20 can specify the gaze area model by, for example, receiving parameters specifying the gaze area model generated in S103 from the AI model generation device 10 via wired communication or wireless communication.
[0057] Then, in S108, the gaze area display image generation unit 315 calculates the pixel value of each pixel in the gaze area display image by performing gamma correction on the pixel value according to the maximum noise intensity indicated by the gaze area information of each category generated by the gaze area information calculation unit 314, and the monitor 32 displays the gaze area display image of each category.
[0058] In addition, the user who views the welding defect display image displayed on the monitor 32 in S106 may be able to select whether or not to have the welding device 20 execute the processes of S107 and S108 by making a predetermined input to the input device 33.
[0059] Therefore, according to this embodiment, the AI model generation device 10 generates a gaze area model that generates gaze area information indicating the maximum noise intensity at each position in the welding image that does not affect the defective welding information output by the defect detection model.The data processing device 30 of the welding device 20 then uses this gaze area model to output the gaze area information as information regarding the basis for the defect detection model to derive the defective welding information.Therefore, the user can obtain information regarding the basis for the defect detection model to derive the defective welding information.
[0060] Furthermore, in the loss calculation step, the loss calculation unit CA5 calculates the loss based on the category information, the size information, and the position information, and the annotation data of the category information, the size information, and the position information, rather than based on the annotation data of the presence / absence information, among the welding defect information. Therefore, a gaze area model can be generated that generates gaze area information with higher accuracy than when the loss is calculated based on the annotation data of the presence / absence information.
[0061] Furthermore, since the AI model generation device 10 generates a gaze area model that outputs the gaze area information for a plurality of categories, it is not necessary to cause the data processing device 30 of the welding device 20 to switch the gaze area model for each category of welding defects and perform inference in order to obtain the gaze area information for a plurality of categories. Therefore, the processing time required to output the gaze area information for a plurality of categories can be shortened.
[0062] Furthermore, since ResNet is used as the backbone of the gaze area model, the accuracy of the generated gaze area information can be improved.
[0063] The gaze area model generation system and inference device disclosed herein are useful because they allow a user to obtain gaze area information as information regarding the basis for a defect detection model to derive welding defect information.
[0064] 10 AI model generation device (gazing area model generation system) 11 Teacher data receiving unit 13 Parameter storage unit 14 Gazing area model generation unit 30 Data processing device (inference device) 314 Gazing area information calculation unit (inference unit) 315 Gazing area display image generation unit (pixel value calculation unit) 32 Monitor (image display unit)
Claims
1. a teacher data receiving unit that receives teacher data consisting of a plurality of data sets of image data of a welding image including a welding portion and annotation data of welding defect information including a type, a size, and a position of a welding defect in the welding image; a parameter storage unit that stores parameters for specifying a defect detection model that is generated by machine learning using the teacher data and that outputs the defective welding information based on image data of a welding image; a gaze area information generating step of receiving image data of a predetermined evaluation target data set, and generating gaze area information indicating a maximum noise intensity that does not affect the welding defect information output by the defect detection model at each position in the image represented by the image data, using the gaze area model; a multiplication step of multiplying a maximum noise intensity at each position indicated by the gaze area information generated by the gaze area information generating step by Gaussian noise to obtain a virtual noise; a noise imparting step of imparting the virtual noise obtained by the multiplication step to the image data of the evaluation target data set to obtain noise-added image data; a welding defect information generating step of generating the welding defect information by using the defect detection model based on the noise-added image data acquired by the noise adding step; and and a model generation unit that identifies the gaze area model by machine learning so that the loss calculated by the loss calculation step is minimized when a loss calculation step of calculating a loss based on the defective welding information generated by a defective welding information generation step and annotation data of the data set to be evaluated is repeatedly executed by setting each data set that constitutes the teacher data as the data set to be evaluated.
2. The gaze area model generating system according to claim 1, The welding defect information includes presence / absence information indicating whether the welding defect exists, category information indicating a category of the welding defect, size information indicating a size of the welding defect, and position information indicating a position of the welding defect, The loss calculation step calculates the loss not based on the annotation data of the presence / absence information, but based on the category information, the size information, and the position information, and the annotation data of the category information, the size information, and the position information.
3. The gaze area model generating system according to claim 1, 11. A gaze area model generating system, comprising: a gaze area model that outputs the gaze area information for a plurality of categories.
4. The gaze area model generating system according to claim 1, A gaze area model generation system characterized in that ResNet is used as the backbone of the gaze area model.
5. An inference unit that generates gaze area information based on image data showing a predetermined welding image by using the gaze area model generated by the gaze area model generation system according to any one of claims 1 to 4; a pixel value calculation unit that calculates pixel values at each position in a display image by performing gamma correction on pixel values of each pixel in the welding image specified according to a maximum noise intensity indicated by the gaze area information generated by the inference unit; and an image display unit that displays the display image based on the pixel values calculated by the pixel value calculation unit.
