Gaze area model generation system and inference device
Through the gaze area model generation system, the maximum noise intensity output by the defect detection model in the welding image is represented, which solves the problem of inconsistency between the welding defect detection results and the user identification results, and improves the transparency and accuracy of the detection results.
Patent Information
- Application Number
- CN202380023007.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-03
- Filing Date
- 2023-02-09
- Publication Date
- 2024-10-15
AI Technical Summary
When using object detection models such as YOLO to detect welding images, the poor welding detection results do not match the results identified by the user, making it difficult for the user to understand the basis for the detection results.
A gaze area model generation system is designed. The gaze area model is generated through machine learning, which represents the maximum noise intensity at each position in the image that does not affect the welding defect information. It combines the Gaussian noise and the welding defect information output by the defect detection model to calculate the loss and update the model. Parameters to generate gaze area information related to the welding defect information output by the defect detection model.
Users can understand the basis of welding defect information derived from the defect detection model, which improves the transparency and accuracy of detection results.
Smart Images

Figure CN118786445A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an attention area model generation system for generating an attention area model and an inference device using the attention area model. The attention area model generates attention area information, which represents the maximum noise intensity at each position in an image that does not affect welding defect information output by a defect detection model. Background Art
[0002] Patent document 1 discloses an inference device that detects objects in an input image using an object detection model of YOLO, which is an object detection algorithm.
[0003] Patent Document 1: Japanese Patent Publication No. 2021-002333 Summary of the invention
[0004] 1. Technical problem to be solved by the invention
[0005] However, when object detection models such as YOLO are used to detect poor welding in welding images obtained by photographing welding parts, sometimes the detection result of poor welding detected by the object detection model is different from the poor welding identified by the user. It is hoped that in this case, the user can be informed of the basis for the detection result derived by the object detection model.
[0006] The present disclosure is made to solve the above-mentioned problem, and its purpose is to enable users to know the information related to the basis of the detection results derived by the object detection model.
[0007] 1. Technical solutions for solving technical problems 1
[0008] In order to achieve the above-mentioned purpose, the attention area model generation system involved in the present disclosure includes a teaching data receiving unit, a parameter storage unit, and a model generation unit. The teaching data receiving unit accepts teaching data, and the teaching data is composed of multiple data groups, and the data group is composed of image data including a welding image of a welding part and annotation data including welding defect information of the type, size and position of the welding defect in the welding image; the parameter storage unit stores parameters, and the parameters are used to determine a defect detection model, and the defect detection model is generated by machine learning using the teaching data, and the welding defect information is output based on the image data of the welding image; the model generation unit sets each data group constituting the teaching data as an evaluation object data group and repeatedly performs the following steps, and determines the attention area model through machine learning so as to minimize the loss calculated by the loss calculation step, and the steps include: an attention area information generation step, which accepts image data of a specified evaluation object data group, uses the attention area model Generate attention area information, wherein the attention area information represents the maximum noise intensity of each position in the image represented by the image data that does not affect the welding defect information output by the defect detection model; a multiplication step, which obtains virtual noise by multiplying the maximum noise intensity of each position represented by the attention area information generated by the attention area information generating step with Gaussian noise; a noise imparting step, which obtains noisy image data by imparting the virtual noise obtained by the multiplication step to the image data of the evaluation object data group; a welding defect information generating step, which generates the welding defect information using the defect detection model based on the noisy image data obtained by the noise imparting step; and a loss calculating step, which calculates the loss based on the welding defect information generated by the welding defect information generating step and the annotation data of the evaluation object data group.
[0009] Thus, the attention area model generates attention area information representing the maximum noise intensity at each position in the image that does not affect the welding defect information output by the defect detection model. Therefore, by using the attention area model, the user can know the attention area information as information related to the basis for deriving the welding defect information by the defect detection model.
[0010] -Effects of the Invention-
[0011] According to the present disclosure, the user can obtain information related to the basis for deriving the detection results of the defect detection model. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram showing the configuration of a welding system including an AI model generation device as an attention area model generation system according to an embodiment of the present disclosure;
[0013] Figure 2 is an explanatory diagram for explaining the structure of a fixation area model generating unit;
[0014] Figure 3 is a diagram showing the formula of the loss function for generating the fixation region model;
[0015] Figure 4A 1 is a diagram showing a first example of a poor welding display image;
[0016] Figure 4B It means Figure 4A A graph showing the image of the fixation area corresponding to the undercut;
[0017] Figure 4C It means Figure 4A A graph showing an image of the fixation area of the corresponding pit;
[0018] Figure 4D It means Figure 4A A diagram of the corresponding perforated fixation area display image;
[0019] Figure 5A is a diagram showing a second example of a poor welding display image;
[0020] Figure 5B It means Figure 5A A graph showing the image of the fixation area corresponding to the undercut;
[0021] Figure 5C It means Figure 5A A graph showing an image of the fixation area of the corresponding pit;
[0022] Figure 5D It means Figure 5A A diagram of the corresponding perforated fixation area display image;
[0023] Fig. 6A The figures are diagrams showing examples of a poor welding display image and a focus area display image of a pit when gamma correction is not performed, in order from the left side;
[0024] Figure 6B is the same as the case when gamma correction is performed Fig. 6A Quite a picture;
[0025] Figure 7 is a flow chart illustrating the operation of an example welding system. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0027] Figure 1A welding system 1 is shown. The welding system 1 includes an AI model generation device 10 as an attention area model generation system according to an embodiment of the present disclosure, which generates a defect detection model and an attention area model by machine learning, and a welding device 20 which performs welding.
[0028] The AI model generation device 10 generates a failure detection model and a fixation area model through machine learning.
[0029] The defect detection model is a YOLO (You Only Look Once) object detection model that outputs defective welding information based on input image data. The defect detection model is expressed by CNN (Convolutional Neural Network). Even if a part of the first object to be detected in the image is hidden behind other second objects to be detected, the object detection model can determine the area where the second object and the first object overlap in the image as the area where the first object is located. The defective welding information includes: information indicating whether there is defective welding in the image represented by the image data; category information indicating the category of the defective welding; size information indicating the size of the defective welding; and position information indicating the location of the defective welding. In detail, the size information indicates the size of the bounding box containing the defective welding, and the position information indicates the location of the bounding box containing the defective welding. It should be noted that the bounding box is a rectangular boundary line area surrounding an object such as defective welding.
[0030] The attention area model is a model that outputs various categories of attention area information about welding defects based on input image data. The various categories include perforations, pits, spatters, undercuts, and protrusions. Pits are openings on the surface of the weld. The attention area information is information representing the intensity of the maximum noise (hereinafter referred to as "maximum noise intensity") for each pixel (position) in the image represented by the image data that does not affect the welding defect information output by the defect detection model. The attention area model is also expressed by CNN. As the backbone of the attention area model, ResNet (Residual Networks) is used. It should be noted that backbones other than ResNet can be used for the attention area model.
[0031] Specifically, the AI model generation device 10 includes a teaching data receiving unit 11 , a failure detection model generation unit 12 , a parameter storage unit 13 , and an attention area model generation unit 14 .
[0032] The teaching data receiving unit 11 receives teaching data including a plurality of data sets including image data of a welding image including a welding portion and annotation data of welding defect information related to welding defects in the welding image.
[0033] The failure detection model generation unit 12 generates a failure detection model by machine learning using the teaching data received by the teaching data receiving unit 11. Specifically, the failure detection model generation unit 12 determines the weight and bias of each node constituting the CNN expressing the failure detection model as parameters for determining the failure detection model.
[0034] The parameter storage unit 13 stores the parameters determined by the failure detection model generation unit 12 .
[0035] like Figure 2 As shown, the attention area model generation unit 14 includes a calculation unit 141 and an updating unit 142. The attention area model generation unit 14 refers to the parameters stored in the parameter storage unit 13 and determines the attention area model by machine learning so as to minimize the loss function calculated by the calculation unit 141.
[0036] The calculation unit 141 includes an attention area information generating unit CA1 , a multiplication unit CA2 , a noise imparting unit CA3 , a welding defect information generating unit CA4 , and a loss calculating unit CA5 .
[0037] The attention area information generating unit CA1 receives image data of a predetermined evaluation target data group, and generates attention area information IN1 to INX regarding the image data for a plurality of categories using an attention area model. Attention area information IN1 is attention area information regarding perforation, attention area information IN2 is attention area information regarding pits, attention area information IN3 is attention area information regarding spatter, attention area information IN4 is attention area information regarding undercuts, and attention area information IN5 is attention area information regarding protrusions. INX is attention area information regarding any other welding defects.
[0038] The multiplication unit CA2 obtains virtual noise by multiplying the maximum noise intensity at each position indicated by the attention area information IN1 to INX generated by the attention area information generation unit CA1 by Gaussian noise.
[0039] The noise imparting unit CA3 imparts the virtual noise obtained for the plurality of types by the multiplication unit CA2 to the image data of the evaluation target data group, thereby acquiring image data with noise.
[0040] The welding failure information generating unit CA4 generates welding failure information for a plurality of types based on the noisy image data acquired by the noise imparting unit CA3 using the failure detection model generated by the failure detection model generating unit 12. The failure detection model can be determined by referring to the parameters stored in the parameter storage unit 13.
[0041] The loss calculation unit CA5 calculates the value of the evaluation object data group using the welding defect information generated by the welding defect information generation unit CA4 and the annotation data of the evaluation object data group. Figure 3 The loss function formula shown calculates the loss L.
[0042] exist Figure 3 In the formula shown, λ coord is the weight coefficient (pre-set constant), S 2 is the number of grids of the image represented by the image data, and B is the number of bounding boxes. The double-dashed line portion represented by the symbol P1 is 1 when there is a welding defect, and is 0 when there is no welding defect. The position (coordinate) of the welding defect represented by the welding defect information generated by the welding defect information generating unit CA4 is (x i ,y i ), the position (coordinate) of the welding defect represented by the annotation data of the evaluation object data group is (^x i ,^y i ). The width of the bounding box containing the poor welding represented by the poor welding information is w i , the height of the bounding box containing the poor weld is h i On the other hand, the width of the bounding box containing the poor welding represented by the annotation data is ^w i , the height of the bounding box containing the poor weld is ^h i . classes is a collection of categories, p i (c) is the probability of class c in grid cell i, ^p i (c) is the probability of class c in grid cell i represented by the annotation data. i (c) takes a value from 0 to 1, ^p i (c) takes a value of 0 or 1.
[0043] The updating unit 142 updates the parameters of the attention area model based on the loss L calculated by the operator 141 so as to reduce the loss L. The parameters of the attention area model are the weights and biases of each node constituting the CNN that expresses the attention area model.
[0044] When all data groups constituting the teaching data (teaching data for generating the defect detection model) received by the teaching data receiving unit 11 are sequentially input as the evaluation target data group to the operator 141 from a state where the parameters of the attention area model are set to predetermined initial values, each time the loss L is calculated by the operator 141, the updating unit 142 updates the parameters of the attention area model based on the loss L so as to reduce the loss L. Then, the updating unit 142 determines the parameters of the attention area model when the processing of all data groups constituting the teaching data is completed.
[0045] That is, when the attention area model generating unit 14 sets each data group constituting the teaching data as the evaluation object data group and repeatedly performs the following steps, the attention area model is determined by machine learning so as to minimize the loss L calculated by the loss calculation step, and the steps include: an attention area information generating step, which receives the image data of the specified evaluation object data group and generates attention area information IN1~INX about the image data for multiple categories using the attention area model; a multiplication step, which obtains virtual noise by multiplying the maximum noise intensity of each position represented by the attention area information IN1~INX generated by the attention area information generating step with Gaussian noise; a noise imparting step, which obtains noisy image data by imparting the virtual noise obtained for multiple categories by the multiplication step to the image data of the evaluation object data group; a welding defect information generating step, which generates welding defect information for multiple categories using the defect detection model generated by the defect detection model generating unit 12 based on the noisy image data obtained by the noise imparting step; and a loss calculation step, which calculates the loss L based on the welding defect information generated by the welding defect information generating step and the annotation data of the evaluation object data group. The determination of the fixation area model uses the error back propagation method, etc. It should be noted that when the error back propagation method is used to determine the fixation area model, the parameters of the neural network are adjusted so as to minimize the loss L. Specifically, the parameters are adjusted by performing partial differentiation on the loss L so that the loss L is close to 0. The error back propagation method is also called the gradient descent method.
[0046] The welding device 20 includes a welding torch 21, a welding wire feeding device (not shown), a welding power source 23, an output control unit 24, a robot arm 25, a robot control unit 26, a scanner 27, and a data processing device 30 as an inference device. By supplying power from the welding power source 23 to the welding wire 28 held on the welding torch 21, an arc is generated between the tip of the welding wire 28 and the workpiece W, and the workpiece W is heated to perform arc welding. It should be noted that the welding device 20 includes other components and devices such as a pipe and a gas cylinder for supplying shielding gas to the welding torch 21, but for the convenience of explanation, their illustration and description are omitted.
[0047] The output control unit 24 is connected to the welding power source 23 and the welding wire feeder (not shown), and controls the welding output of the welding torch 21 according to the prescribed welding conditions, in other words, controls the power supplied to the welding wire 28 and the power supply time. The output control unit 24 also controls the feed speed and feed amount of the welding wire 28 fed from the welding wire feeder (not shown) to the welding torch 21. It should be noted that the welding conditions can be directly input to the output control unit 24 via an input unit not shown, or can be selected from a welding program read from another recording medium or the like.
[0048] The robot arm 25 is a well-known multi-joint axis robot, which holds the welding torch 21 at its tip and is connected to the robot control unit 26. The robot control unit 26 controls the movement of the robot arm 25 so that the tip of the welding torch 21, in other words, the tip of the welding wire 28 held on the welding torch 21, traces a prescribed welding trajectory and moves to a desired position.
[0049] The scanner 27 is mounted on the welding torch 21 to measure the shape of the welding part PW of the workpiece W. The scanner 27 is a three-dimensional shape measurement sensor composed of a laser light source (not shown) and a camera (not shown). The laser light source is configured to scan the surface of the workpiece W, and the camera captures the reflection trajectory of the laser projected on the surface of the workpiece W (hereinafter, sometimes referred to as the shape line). The shape of the welding part PW is measured by scanning the entire welding part PW of the workpiece W with laser light by the scanner 27 and capturing the laser light reflected by the welding part PW with the camera. It should be noted that the scanner 27 is configured to measure the shape of not only the welding part PW, but also the surrounding of the welding part PW within a specified range. This is to evaluate the presence or absence of spatter, etc. It should be noted that the camera has a CCD or CMOS image sensor as an imaging element. The structure of the scanner 27 is not particularly limited to the above structure, and other structures may also be used. For example, an optical interferometer may be used instead of a camera.
[0050] The data processing device 30 includes a main body 31 , a monitor 32 as an image display unit, and an input device 33 .
[0051] The main body 31 is composed of a personal computer, and the functions of the plurality of functional blocks in the main body 31 are realized by executing software installed on a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit). The main body 31 includes an image processing unit 311, a welding defect information calculation unit 312, a welding defect display image generation unit 313, an attention area information calculation unit 314 as an inference unit, and an attention area display image generation unit 315 as a pixel value calculation unit.
[0052] 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 part PW. For example, the image processing unit 311 acquires point cloud data of the shape line that has been photographed by the scanner 27. The image processing unit 311 corrects the inclination and deformation of the base portion of the welding part PW relative to a predetermined reference surface such as the installation surface of the workpiece W by statistically processing the point cloud data, and generates image data including the welding part PW.
[0053] The welding failure information calculation unit 312 calculates welding failure information from the image data generated by the image processing unit 311 using the failure detection model generated by the AI model generation device 10 .
[0054] The poor welding display image generator 313 calculates the pixel value of each pixel of the poor welding display image displaying the poor welding information based on the poor welding information calculated by the poor welding information calculator 312. The information defining the poor welding display image may be compressed by a jpeg method or the like.
[0055] Figure 4A and Figure 5A This is an example of a display image of a poor weld. Figure 4A In the welding defect display image, the detection areas of perforation, pitting, and spatter are represented by rectangles. Specifically, the area where perforation exists is surrounded by a square line SL1, and the description DF1 of "pit" is displayed near the area where pit exists. Figure 5A In the welding defect display image of , the area where the undercut and spatter are detected is represented by a rectangle. Specifically, the area where the undercut exists is surrounded by a square line SL2, and a description DE2 of "undercut" is displayed near each area.
[0056] The attention area information calculation unit 314 generates attention area information for a plurality of categories including pits, holes, splashes, undercuts, and protrusions based on the image data generated by the image processing unit 311 using the attention area model generated by the AI model generation device 10 .
[0057] The attention area display image generation unit 315 calculates the pixel value of each pixel (position) of the attention area display image by performing gamma correction on the pixel value of each pixel in the welding image determined based on the maximum noise intensity indicated by the attention area information of each category generated by the attention area information calculation unit 314. The information for determining the attention area display image may be compressed by a jpeg method or the like.
[0058] Specifically, the attention area display image generation unit 315 first converts the maximum noise intensity of each pixel indicated by the attention area information into an 8-bit pixel value C using the following equation 1, assuming that the maximum noise intensity of each pixel is B having a value of 0 to 1.
[0059] C=(1-B)*255……Formula 1
[0060] Next, the pixel value C obtained by equation 1 is gamma-corrected, and the pixel value after gamma correction is used as the pixel value in the attention area display image. For example, by arranging the pixel values in correspondence with the jet color map, the part with the largest noise intensity, i.e., the unimportant part where the noise is not likely to affect the poor welding information, is the blue pixel; the part with the smallest maximum noise intensity, i.e., the important part where the noise is likely to affect the poor welding information, is the red pixel.
[0061] Figure 4B to Figure 4D Indicates poor welding display image Figure 4A The attention area display images for the image shown in FIG. 1 and the attention area display images for the bite edge are shown in sequence (refer to FIG. 1 ). Figure 4B ), about the pit focus area display image (refer to Figure 4C ), about the perforated attention area display image (refer to Figure 4D ). Figure 5B to Figure 5D If the welding is bad, the image will be Figure 5A The attention area display images at the time of the bite edge are shown in sequence (refer to Figure 5B ), about the pit focus area display image (refer to Figure 5C ), about the perforated attention area display image (refer to Figure 5D ).
[0062] Here, in the image showing the defective welding Figure 4A The fixation area of the pit image Figure 4C in Figure 4A The same position as the part judged as a pit in the image is white. This means that the part is judged as a pit by observing the characteristics of the white part. Figure 4A The perforated fixation area image Figure 4D in Figure 4A The same position judged as a perforation in the image is white. This means that the part is judged as a perforation by observing the characteristics of the white part. Figure 4A In the example of the welding defect display image, there are defects such as perforation, pitting, and spatter, but no undercut. Figure 5A In the example of the welding defect display image, there are undercuts and spatters, but no perforations or pits. Figure 4A The undercut of the fixation area shows the image Figure 4B In, due to Figure 4A There is no area detected as undercut, so there is no focus area (lighter area, in other words, no white area). Figure 5A The fixation area of the pit shows the image Figure 5CIn the image, there is no area detected as a pit, so there is no focus area (a lighter area, in other words, no white area). Figure 5A The perforated fixation area displays the image Figure 5D In the image, there is no area detected as a perforation, so there is no focus area (lighter area, in other words, no white area). Figure 4B , Figure 5C , Figure 5D The fixation area display images are all darker images (in other words, black images) without lighter areas, in other words, without white areas, so that the fixation area cannot be observed anywhere.
[0063] Figure 4B to Figure 4D and Figure 5B to Figure 5D It is a grayscale image in which the red pixels are displayed lighter than the blue pixels (in other words, the patent drawings record the original color image converted into a black and white image, so the red pixel area is displayed in white, and the blue pixel area is displayed in black and grayscale. The whiter (lighter) the color, the more important the area is for judging the defect; the darker (darker) the color, the less important the area is for judging the defect). Figure 4C In the image, the area near the area indicated by the poor welding information as the presence of a pit (in other words, the area near the outer edge of the area indicated as the presence of a pit) is displayed lighter than other areas, which shows that this area is where noise can easily affect the poor welding information. Figure 4D In the image, the area near the area indicated by the poor welding information as having perforations (in other words, the area near the outer edge of the area indicated as having perforations) is displayed lighter than other areas, which shows that this area is where noise can easily affect the poor welding information. Figure 5B In the image, the vicinity of the area indicated by the poor welding information as the existence of undercut (in other words, the area near the outer edge of the area indicated as the existence of undercut) is displayed lighter than other areas, which shows that this vicinity is a location where noise can easily affect the poor welding information.
[0064] The monitor 32 displays the welding failure display image based on the pixel values calculated by the welding failure display image generation unit 313 , and displays the attention area display image based on the pixel values calculated by the attention area display image generation unit 315 .
[0065] Fig. 6A The image on the left is an image showing a poor weld. Fig. 6A The image on the right side of is an attention area display image of the pit when gamma correction is not performed and the pixel value obtained by Formula 1 is directly used as the pixel value in the attention area display image. Figure 6B The image on the left is Fig. 6A Same as the image on the left. Figure 6B The image on the right is the attention area display image of the pit when the pixel value obtained by equation 1 is gamma corrected and the pixel value after gamma correction is used as the pixel value in the attention area display image. In this way, by performing gamma correction, it is possible to reduce the important part where noise is likely to affect the welding defect information.
[0066] Reference Figure 7 An example of the operation of the welding system 1 configured as described above will be described with reference to the flowchart of FIG.
[0067] First, in S101, the user of the AI model generation device 10 prepares teaching data and inputs the teaching data into the AI model generation device 10. In response, the teaching data receiving unit 11 of the AI model generation device 10 receives the teaching data.
[0068] Next, in S102 , the failure detection model generation unit 12 of the AI model generation device 10 generates a failure detection model by performing machine learning using the teaching data received by the teaching data receiving unit 11 in S101 , and stores parameters that determine the failure detection model in the parameter storage unit 13 .
[0069] Next, in S103, the attention area model generation unit 14 of the AI model generation device 10 determines the bad detection model with reference to the parameters for determining the bad detection model stored in the parameter storage unit 13 in S102, and generates the attention area model through machine learning using the bad detection model and the teaching data received by the teaching data receiving unit 11 in S101.
[0070] Then, in S104, the welding defect information calculation unit 312 of the welding device 20 receives the image data of the inspection object. Specifically, for example, the image data generated by the image processing unit 311 based on the shape data acquired by the scanner 27 during the welding process is received.
[0071] In S105, the welding defect information calculation unit 312 calculates welding defect information based on the image data received in S104 using the defect detection model generated in S102. The welding device 20 receives the parameters for determining the defect detection model generated in S102 from the AI model generation device 10 through wired communication or wireless communication, for example, and can determine the defect detection model.
[0072] Then, in S106 , the welding failure display image generator 313 calculates the pixel value of each pixel of the welding failure display image displaying the welding failure information based on the welding failure information calculated in S105 , and the welding failure display image is displayed on the monitor 32 .
[0073] Next, in S107, the attention area information calculation unit 314 of the welding device 20 uses the attention area model generated in S103 to generate attention area information for multiple categories including pits, perforations, spatter, undercuts, and protrusions based on the image data of the inspection object received by the welding defect information calculation unit 312 in S104. The welding device 20 receives the parameters for determining the attention area model generated in S103 from the AI model generation device 10 through wired communication or wireless communication, for example, and can determine the attention area model.
[0074] Then, in S108, the attention region display image generation unit 315 calculates the pixel value of each pixel of the attention region display image by performing gamma correction on the pixel value corresponding to the maximum noise intensity indicated by each category of the attention region information generated by the attention region information calculation unit 314, and the monitor 32 displays the attention region display image of each category.
[0075] It should be noted that whether or not to cause welding device 20 to execute the processes of S107 and S108 can also be selected by a user who has viewed the welding failure display image displayed on monitor 32 in S106 by making a predetermined input to input device 33 .
[0076] Therefore, according to the present embodiment, the AI model generation device 10 generates an attention area model, which generates attention area information representing the maximum noise intensity of each position in the welding image that does not affect the welding defect information output by the defect detection model. Then, the data processing device 30 of the welding device 20 outputs the attention area information as information related to the basis for deriving the welding defect information by the defect detection model by using the attention area model. Therefore, the user can know the information related to the basis for deriving the welding defect information by the defect detection model.
[0077] 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, instead of calculating the loss based on the annotation data of the presence or absence of information in the poor welding information. Therefore, compared with the case where the loss is calculated based on the annotation data of the presence or absence of information, it is possible to generate an attention area model that can generate attention area information with good accuracy.
[0078] Since the gaze area model of the AI model generation device 10 generates the gaze area information for multiple categories, in order to obtain the gaze area information for multiple categories, the data processing device 30 of the welding device 20 does not need to switch the gaze area model for each category of welding defects to perform inference. Therefore, the processing time required to output the gaze area information for multiple categories can be shortened.
[0079] Since ResNet is used as the backbone of the gaze area model, the accuracy of the gaze area information to be generated can be improved.
[0080] Industrial Applicability
[0081] The gaze area model generation system and the inference device of the present disclosure are extremely useful, which can enable users to obtain gaze area information as information related to the basis for deriving welding defect information by the defect detection model.
[0082] Symbol Explanation
[0083] 10 AI model generation device (gaze area model generation system)
[0084] 11 Teaching data receiving unit
[0085] 13 Parameter storage unit
[0086] 14 Gaze area model generation unit
[0087] 30 Data processing device (inference device)
[0088] 314 Gaze area information calculation unit (inference unit)
[0089] 315 Gaze area display image generation unit (pixel value calculation unit)
[0090] 32 Monitor (image display unit).
Claims
1. A gaze area model generation system, Features: It includes a teaching data receiving unit, a parameter storage unit, and a model generation unit. The teaching data receiving unit receives teaching data, the teaching data is composed of a plurality of data groups, the data group is composed of image data including a welding image of a welding part and annotation data including welding defect information including a type, size and position of the welding defect in the welding image, The parameter storage unit stores parameters for determining a defect detection model, the defect detection model being generated by machine learning using the teaching data and outputting the welding defect information based on image data of the welding image, The model generation unit determines the attention area model by machine learning so as to minimize the loss calculated in the loss calculation step when setting each data group constituting the teaching data as the evaluation target data group and repeatedly performing the following steps, The steps include: an attention area information generating step, which receives the image data of the specified evaluation target data group and generates attention area information using an attention area model, wherein the attention area information indicates the maximum noise intensity at each position in the image represented by the image data that does not affect the welding defect information output by the defect detection model; a multiplication step of obtaining virtual noise by multiplying Gaussian noise by the maximum noise intensity of each position represented by the attention area information generated by the attention area information generating step; a noise imparting step of imparting virtual noise obtained in the multiplication step to the image data of the evaluation target data group, thereby acquiring image data with noise; a welding defect information generating step of generating the welding defect information using the defect detection model based on the noisy image data acquired in the noise imparting step; and A loss calculation step is to calculate a loss based on the welding defect information generated in the welding defect information generation step and the annotation data of the evaluation target data group.
2. The gaze area model generation system according to claim 1, Features: The poor welding information includes: presence information indicating whether the poor welding exists, category information indicating the category of the poor welding, size information indicating the size of the poor welding, and position information indicating the position of the poor welding. 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 generation system according to claim 1 or 2, Features: The gaze area model outputs the gaze area information for a plurality of categories.
4. The gaze area model generation system according to any one of claims 1 to 3, Features: As one of the backbones of the gaze region model, a residual network is used.
5. An inference device, Features: It includes an inference unit, a pixel value calculation unit and an image display unit. The inference unit generates attention area information based on image data representing the prescribed welding image using the attention area model generated by the attention area model generation system according to any one of claims 1 to 4, The pixel value calculation unit calculates the pixel value of each position in the display image by performing gamma correction on the pixel value of each pixel in the welding image determined based on the maximum noise intensity indicated by the attention area information generated by the inference unit, The image display section displays the display image based on the pixel value calculated by the pixel value calculation section.
Citation Information
Cited By
Automobile welding part position identification method based on deep learning
CN122223022A
A Deep Learning-Based Method for Position Recognition of Automotive Welded Components
CN122223022B
