Inspection device for determining defect in an image

SA522441661B1Active Publication Date: 2024-11-19KANADEVIA CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA522441661
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2024-11-19
Estimated Expiration
2041-04-02

AI Technical Summary

Technical Problem

Current defect inspection methods, such as ultrasonic flaw detection and radiographic testing, face challenges in automatically determining the presence or absence of defects with uncertain location, size, and shape, relying heavily on visual inspection which is labor-intensive and prone to variations based on inspector skill.

Method used

An inspection device and method utilizing a generative model built by machine learning to acquire and analyze images, generating a new image with similar characteristics to the input image, allowing for automatic determination of defects by comparing the input image with a restored image, using techniques like autoencoders and heat maps to identify defects and their types.

Benefits of technology

Enables accurate and automated detection of defects, reducing labor and variability, improving inspection efficiency by effectively determining the presence and type of defects in images, even when their position, size, or shape is uncertain.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

Determination of presence or absence of a defect having irregular position, size, shape, and / or the like in an image are made automatically. An inspection device (1) includes: an inspection image obtaining section (103) that obtains an inspection image used to determine presence or absence of an internal defect in an inspection target; and a defect presence / absence determining section (105) that determines presence or absence of a defect with use of a restored image generated by inputting the inspection image into a generative model constructed by machine learning that uses, as training data, an image of a defect-free inspection target, the generative model being constructed so as to generate a new image having a similar feature to that of an image input into the generative model. Fig. 1
Need to check novelty before this filing date? Find Prior Art

Description

Inspection device, inspection method, and inspection program

[0001] The present invention relates to an inspection device or the like that determines the presence or absence of defects from an image of an object to be inspected.

[0002] Non-destructive testing has been widely used in defect inspections conducted before shipping or during inspections of industrial products, etc. For example, Patent Document 1 below discloses a method of automatically detecting defects in a test piece using ultrasonic flaw detection testing. Ultrasonic flaw detection testing is a test that selects signals caused by defects in a test piece from measured ultrasonic signals to identify the location of the defects. The technology in Patent Document 1 detects signals caused by defects in the test piece based on the difference between a waveform obtained by analysis and a waveform obtained by measurement.

[0003] However, since the method of analyzing based on the waveform of an ultrasonic signal as in Patent Document 1 is difficult to understand intuitively, recently, defect inspections have been carried out using ultrasonic images obtained by visualizing waveform data. Also, in radiography (RT), the presence or absence of defects in an object to be inspected is determined from an image (radiograph).

[0004] Japanese Patent Publication No. 2003-232779

[0005] However, when inspecting defects whose positions, sizes, shapes, etc. are indefinite, it is difficult to automatically determine the presence or absence of defects from images. For this reason, inspectors currently determine the presence or absence of defects visually. However, visual inspection has problems such as being time-consuming, requiring a great deal of effort, and the inspection results varying depending on the inspector's level of proficiency.

[0006] An object of one aspect of the present invention is to provide an inspection device or the like that can automatically determine the presence or absence of defects whose positions, sizes, shapes, etc. are indefinite in an image.

[0007] In order to solve the above problem, an inspection device according to one aspect of the present invention comprises an inspection image acquisition unit that acquires an inspection image, which is an image used to determine whether or not there is a defect inside an object to be inspected, and a defect presence / absence determination unit that determines whether or not there is a defect in the object to be inspected by using a restored image generated by inputting the inspection image into a generative model constructed by machine learning to generate a new image having similar characteristics to an input image, the generative model being constructed using an image of an object to be inspected without a defect as training data.

[0008] In addition, in order to solve the above-mentioned problems, an inspection method according to one aspect of the present invention is an inspection method using an inspection device, and includes an inspection image acquisition step of acquiring an inspection image, which is an image for determining whether or not there is a defect inside an object to be inspected, and a defect presence / absence determination step of determining whether or not there is a defect in the object to be inspected, using a restored image generated by inputting the inspection image into a generative model constructed by machine learning to generate a new image having similar characteristics to an input image, the generative model being constructed using an ultrasonic image of an object to be inspected without a defect as training data.

[0009] According to one aspect of the present invention, it is possible to automatically determine the presence or absence of defects in an image whose position, size, shape, etc. are indefinite.

[0010] 1 is a block diagram showing an example of the configuration of the main parts of an inspection apparatus according to a first embodiment of the present invention. FIG. 2 is a diagram showing an overview of an inspection system including the inspection apparatus. FIG. 3 is a diagram showing an overview of inspection by the inspection apparatus. FIG. 4 is a diagram showing an example of the distribution of pixel values ​​in a difference image generated based on an ultrasound image of a portion containing a defect, and an example of the distribution of pixel values ​​in a difference image generated based on an ultrasound image of a portion without a defect. FIG. 5 is a diagram showing an example of generating a heat map from an ultrasound image and performing threshold processing on the generated heat map. FIG. 6 is a diagram explaining the relationship between the position of a defect, an ultrasound image, and a heat map. FIG. 7 is a diagram explaining a method of integrating defects shown in multiple ultrasound images to detect them as a single defect. FIG. 8 is a diagram showing an example of output of inspection results. FIG. 9 is a diagram showing an example of processing for constructing various models used in inspection and determining thresholds. FIG. 10 is a diagram showing an example of an inspection method using the inspection apparatus. FIG. 11 is a flowchart showing an example of a defect type determination process. FIG. 12 is a block diagram showing an example of the configuration of the main parts of an inspection apparatus according to a second embodiment of the present invention. FIG. 13 is a diagram explaining a method of detecting a defect area. FIG. 14 is a diagram showing an example of areas set for each type of defect. FIG. 15 is a flowchart showing an example of a defect type determination process executed by the inspection apparatus.

[0011] [Embodiment 1] (System Overview) An overview of an inspection system according to one embodiment of the present invention will be described with reference to Fig. 2. Fig. 2 is a diagram showing an overview of an inspection system 100. The inspection system 100 is a system that inspects an object for defects based on an image of the object, and includes an inspection device 1 and an ultrasonic flaw detector 7.

[0012] In this embodiment, an example will be described in which the inspection system 100 is used to inspect the presence or absence of defects in tube end welds of a heat exchanger. A tube end weld is a welded portion between multiple metal tubes constituting a heat exchanger and a metal tube sheet that bundles the tubes. A defect in a tube end weld is a defect in which a void occurs inside the tube end weld. The tubes and tube sheet may be made of a non-ferrous metal such as aluminum, or may be made of resin. The inspection system 100 can also inspect the presence or absence of defects in welds (root welds) between pipe stubs and tubes in boiler equipment used in waste incineration facilities, for example. Of course, the inspection area is not limited to welds, and the inspection target is not limited to heat exchangers. In the field of non-destructive testing, abnormalities detected using ultrasonic waveforms or ultrasonic images are generally referred to as "flaws." Such "flaws" are also included in the category of "defects." The "defects" also include chipping, cracks, and the like.

[0013] During inspection, a probe coated with a contact medium is inserted into the pipe end, and ultrasonic waves are transmitted from the inner wall of the pipe toward the pipe end weld, and the ultrasonic echo is measured, as shown in Figure 2. If a defect that creates a void has occurred in the pipe end weld, the echo from the void will be measured, and this can be used to detect the defect.

[0014] For example, in the enlarged view of the area around the probe shown in the lower left of Figure 2, the ultrasonic wave indicated by arrow L3 propagates to a portion of the pipe end weld where there is no void. Therefore, the echo of the ultrasonic wave indicated by arrow L3 is not measured. On the other hand, the ultrasonic wave indicated by arrow L2 propagates toward a portion of the pipe end weld where there is a void, and therefore the echo of the ultrasonic wave reflected from this void is measured.

[0015] In addition, ultrasonic waves are reflected from the periphery of the pipe end weld, so the echo of the ultrasonic waves propagating to the periphery is also measured. For example, the ultrasonic waves indicated by arrow L1 propagate closer to the pipe end than the pipe end weld, so they do not hit the pipe end weld but are reflected by the pipe surface on the pipe end side of the pipe end weld. Therefore, the echo from the pipe surface is measured by the ultrasonic waves indicated by arrow L1. In addition, the ultrasonic waves indicated by arrow L4 are reflected by the pipe surface on the inner side of the pipe end weld, so the echo is measured.

[0016] Since the pipe end weld exists over a 360-degree circumference of the pipe, measurements are repeatedly performed while rotating the probe by a predetermined angle (for example, 1 degree). Data indicating the measurement results by the probe is then transmitted to the ultrasonic flaw detection device 7. For example, the probe may be an array probe consisting of multiple array elements. With an array probe, by arranging the array elements so that their arrangement direction coincides with the extension direction of the pipe, pipe end welds that are wide in the extension direction of the pipe can be efficiently inspected. Note that the array probe may also be a matrix array probe in which multiple array elements are arranged vertically and horizontally.

[0017] The ultrasonic flaw detection device 7 uses data indicating the measurement results by the probe to generate an ultrasonic image by imaging the echoes of ultrasonic waves propagated through the pipe and the pipe end weld. Figure 2 shows an ultrasonic image 111, which is an example of an ultrasonic image generated by the ultrasonic flaw detection device 7. Note that the inspection device 1 may be configured to generate the ultrasonic image 111. In this case, the ultrasonic flaw detection device 7 transmits data indicating the measurement results by the probe to the inspection device 1.

[0018] The measured echo intensity is represented as a pixel value for each pixel in the ultrasonic image 111. The image area of ​​the ultrasonic image 111 can be divided into a pipe area ar1 corresponding to the pipe, a weld area ar2 corresponding to the pipe end weld, and peripheral echo areas ar3 and ar4 in which echoes from around the pipe end weld appear.

[0019] As described above, ultrasonic waves propagated from the probe in the direction indicated by arrow L1 are reflected by the pipe surface on the pipe end side of the pipe end weld. These ultrasonic waves are also reflected by the inner surface of the pipe, and these reflections occur repeatedly. Therefore, repeated echoes a1 to a4 appear in the peripheral echo region ar3 along arrow L1 in the ultrasonic image 111. Furthermore, ultrasonic waves propagated from the probe in the direction indicated by arrow L4 are also repeatedly reflected by the outer and inner surfaces of the pipe. Therefore, repeated echoes a6 to a9 appear in the peripheral echo region ar4 along arrow L4 in the ultrasonic image 111. These echoes that appear in the peripheral echo regions ar3 and ar4 are also called back surface echoes.

[0020] The ultrasonic waves propagating from the probe in the direction indicated by arrow L3 have no reflection, and therefore no echo appears in the region along arrow L3 in the ultrasonic image 111. On the other hand, the ultrasonic waves propagating from the probe in the direction indicated by arrow L2 are reflected by the void, i.e., the defect, in the pipe end weld, resulting in the appearance of echo a5 in the region along arrow L2 in the ultrasonic image 111.

[0021] As will be described in detail below, the inspection device 1 analyzes such ultrasonic images 111 to inspect whether or not there is a defect in the pipe end weld. Furthermore, if the inspection device 1 determines that there is a defect, it also automatically determines the type of the defect.

[0022] (Configuration of Inspection Apparatus) The configuration of the inspection apparatus 1 will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the configuration of the main parts of the inspection apparatus 1. As shown in Fig. 1, the inspection apparatus 1 includes a control unit 10 that controls each part of the inspection apparatus 1, and a storage unit 11 that stores various data used by the inspection apparatus 1. The inspection apparatus 1 also includes an input unit 12 that accepts input operations to the inspection apparatus 1, and an output unit 13 that allows the inspection apparatus 1 to output data.

[0023] The control unit 10 includes an inspection target area extraction unit 101, an inspection image generation unit 102, an inspection image acquisition unit 103, a restored image generation unit 104, a defect presence / absence determination unit 105, a heat map generation unit 106, a defect type determination unit 107, an integrated detection unit 108, and a defect length calculation unit 109. The storage unit 11 also stores an ultrasound image 111 and inspection result data 112.

[0024] The inspection target region extraction unit 101 extracts an inspection target region from the ultrasound image 111. As will be described in detail later, the inspection target region is a region sandwiched between two peripheral echo regions in which echoes from the peripheral portions of the inspection target part in the inspection object repeatedly appear. The inspection target region extraction unit 101 can extract the inspection target region using an extraction model constructed by machine learning. Then, the inspection target region extraction unit 101 generates extraction region information that indicates the position and range of the extracted inspection target region in the ultrasound image 111.

[0025] The inspection image generating unit 102 cuts out the portion of the inspection target area indicated by the extracted area information from the ultrasound image 111, and generates an inspection image for determining whether or not there is a defect inside the object to be inspected.

[0026] Inspection image acquisition unit 103 acquires an inspection image. As inspection device 1 is equipped with inspection target area extraction unit 101 and inspection image generation unit 102 as described above, inspection image acquisition unit 103 acquires the inspection image generated by inspection image generation unit 102. Note that the inspection image may be generated by another device. In this case, inspection image acquisition unit 103 acquires the inspection image generated by the other device.

[0027] The restored image generation unit 104 inputs the inspection image acquired by the inspection image acquisition unit 103 into a generative model to generate a new image having the same features as the input inspection image. Hereinafter, the image generated by the restored image generation unit 104 will be referred to as a restored image. As will be described in detail later, the generative model used to generate the restored image is also called an autoencoder, and is constructed by machine learning using images of defect-free inspection objects as training data. Note that the above-mentioned "features" refer to any information obtained from an image, and include, for example, the distribution and variance of pixel values ​​in an image.

[0028] The defect presence / absence determination unit 105 determines whether or not the object to be inspected has a defect using the restored image generated by the restored image generation unit 104. Specifically, the defect presence / absence determination unit 105 determines that the object to be inspected has a defect when the variance of the pixel values ​​of each pixel constituting the difference image between the inspection image and the restored image exceeds a predetermined threshold. The method of this determination will be described in detail later.

[0029] The heat map generating unit 106 generates a heat map in which the pixel values ​​of the pixels constituting the difference image are represented by colors or shades of gray. The heat map generating unit 106 may also perform threshold processing on the generated heat map. Details of the heat map and threshold processing will be described later.

[0030] The defect type determination unit 107 determines the type of defect appearing in an inspection image determined to contain a defect by the defect presence / absence determination unit 105. More specifically, the defect type determination unit 107 determines the type of defect based on an output value obtained by inputting the heat map generated by the heat map generation unit 106 into a type determination model. This type determination model is constructed by machine learning using, as training data, a heat map of a difference image generated from an inspection image of an inspection object containing a defect of a known type.

[0031] When the defect presence / absence determining unit 105 determines that there are defects in a plurality of ultrasonic images 111 that correspond to adjacent portions of the object to be inspected, the integrated detection unit 108 detects the defects shown in the plurality of ultrasonic images 111 as a single defect. Details of defect integration will be described later.

[0032] The defect length calculation unit 109 calculates the length of the defects integrated by the integration detection unit 108. The method of calculating the defect length will be described later.

[0033] As described above, the ultrasonic image 111 is an image obtained by imaging the echoes of ultrasonic waves propagated through the object to be inspected, and is generated by the ultrasonic flaw detector 7.

[0034] The inspection result data 112 is data indicating the results of the defect inspection by the inspection device 1. The inspection result data 112 records the presence or absence of a defect determined by the defect presence / absence determination unit 105 for each inspection image acquired by the inspection image acquisition unit 103. Furthermore, for an inspection image determined to have a defect, the defect type determination result by the defect type determination unit 107 is recorded in the inspection result data 112. Furthermore, the inspection result data 112 records the defects integrated by the integration detection unit 108, as well as the length of the integrated defect calculated by the defect length calculation unit 109.

[0035] As described above, the inspection device 1 includes an inspection image acquisition unit 103 that acquires an inspection image for determining whether or not there is a defect inside the object to be inspected. The inspection device 1 also includes a defect presence / absence determination unit 105 that determines whether or not there is a defect in the object to be inspected using the restored image generated by the restored image generation unit 104. The restored image is generated by inputting the inspection image into a generative model that has been constructed using an ultrasonic image of an object to be inspected without a defect as training data, so as to generate a new image having similar features to the input image.

[0036] The generative model is constructed by machine learning using images of defect-free inspection objects as training data. Therefore, when an inspection image of a defect-free inspection object is input to this generative model, there is a high possibility that a new image with similar features to the inspection image will be output as the restored image.

[0037] On the other hand, if an inspection image of an object containing a defect is input into this generative model, no matter what position, shape, and size of the defect is shown in the inspection image, the restored image is likely to have different characteristics from the inspection image.

[0038] In this way, there is a difference between a restored image generated from an inspection image that contains a defect and a restored image generated from an inspection image that does not contain a defect, in that the inspection image input into the generative model is either not restored correctly or restored correctly.

[0039] Therefore, according to the above configuration, which determines the presence or absence of defects using the restored image generated by the above generative model, it becomes possible to automatically determine the presence or absence of defects whose position, size, shape, etc. are indefinite using an image of the object to be inspected.

[0040] (Outline of Inspection) An outline of inspection by the inspection device 1 will be described with reference to Fig. 3. Fig. 3 is a diagram showing an outline of inspection by the inspection device 1. Fig. 3 shows processing after an ultrasonic image 111 generated by the ultrasonic flaw detector 7 is stored in the storage unit 11 of the inspection device 1.

[0041] First, the inspection target region extraction unit 101 inputs the ultrasound image 111 into the extraction model and generates extraction region information based on the output value. As described above, the extraction region information indicates a region of the image region of the ultrasound image 111 that should be extracted as an inspection image. The inspection image generation unit 102 cuts out the region indicated by this extraction region information from the ultrasound image 111 to generate an inspection image 111A. The method for generating the extraction model will be described with reference to FIG. 9.

[0042] In this way, the test image generation unit 102 extracts the region indicated by the extraction region information from the ultrasound image 111 as the test region and generates the test image 111A. This test region is the region sandwiched between two peripheral echo regions (peripheral echo regions ar3 and ar4 in the example of FIG. 2 ) in which echoes from the peripheral portions of the test portion of the test object repeatedly appear. The test image acquisition unit 103 then acquires this test image 111A.

[0043] As shown in FIG. 2 , predetermined echoes (echoes a1 to a4 and a6 to a9) are repeatedly observed around the periphery of the inspection target area in the ultrasonic image 111, due to the shape of the periphery. Therefore, the area corresponding to the inspection target area in the ultrasonic image 111 can be identified from the positions of the peripheral echo areas ar3 and ar4 where such echoes repeatedly appear. In other words, with the above configuration, the inspection image 111A can be automatically generated. Note that the appearance of predetermined echoes around the periphery of the inspection target area is not limited to the ultrasonic image 111 of the pipe end weld. Therefore, the configuration for extracting the area surrounded by the peripheral echo area as the inspection target area can also be applied to inspections other than those of the pipe end weld.

[0044] Next, inspection image acquisition unit 103 sends the acquired inspection image 111A to restored image generation unit 104. Restored image generation unit 104 inputs inspection image 111A into a generative model and generates restored image 111B based on the output value. The method for generating the generative model will be described with reference to FIG. 9.

[0045] Then, inspection image acquisition unit 103 removes the peripheral echo region from inspection image 111A to generate removed image 111C, and removes the peripheral echo region from restored image 111B to generate removed image (restored) 111D. Note that the position and size of the peripheral echo region appearing in inspection image 111A will be roughly constant if the inspection object is the same. Therefore, inspection image acquisition unit 103 may remove a predetermined range in inspection image 111A as the peripheral echo region. Alternatively, inspection image acquisition unit 103 may analyze inspection image 111A to detect the peripheral echo region and remove the peripheral echo region based on the detection result.

[0046] By removing the peripheral echo region in the above manner, the defect presence / absence determining unit 105 determines the presence / absence of a defect based on the remaining image region excluding the peripheral echo region from the image region of the restored image 111B. This makes it possible to determine the presence / absence of a defect without being affected by echoes from the peripheral region, thereby improving the accuracy of determining the presence / absence of a defect.

[0047] Next, defect presence / absence determination unit 105 determines the presence or absence of a defect. Specifically, defect presence / absence determination unit 105 first calculates the difference between removed image 111C and removed image (restored) 111D on a pixel-by-pixel basis. Next, defect presence / absence determination unit 105 calculates the variance of the calculated difference. Then, defect presence / absence determination unit 105 determines the presence or absence of a defect based on whether the calculated variance value exceeds a predetermined threshold.

[0048] If it is determined that there is a defect, the type of defect is determined based on the difference value for each pixel calculated by defect presence / absence determination unit 105. Note that the difference value for each pixel indicates the difference between removed image 111C and removed image (restored) 111D, and therefore these values ​​are also referred to as difference images.

[0049] The timing for removing the peripheral echo region is not limited to the above example. For example, a difference image between the inspection image 111A and the restored image 111B may be generated, and the peripheral echo region may be removed from this difference image.

[0050] (Relationship between Variance of Differences Calculated Per Pixel and Presence or Absence of Defects) The relationship between the variance of differences calculated per pixel and the presence or absence of defects will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the distribution of pixel values ​​in a difference image generated based on an ultrasound image 111 of a region with a defect, and an example of the distribution of pixel values ​​in a difference image generated based on an ultrasound image 111 of a region without a defect.

[0051] Since subtracted image 111C and subtracted image (restored) 111D are images of the same size, the difference image is also the same size as these images. The value of each pixel constituting the difference image is equal to the difference in pixel value between subtracted image 111C and subtracted image (restored) 111D.

[0052] As shown in the figure, the pixel values ​​in the difference image generated based on the ultrasound image 111 of the defect-free area are mostly values ​​between 0 and 20, and values ​​greater than that are almost 0. For this reason, the variance of the pixel values ​​in this difference image is a small value of 20.

[0053] On the other hand, as shown in the figure, the pixel values ​​in the difference image generated based on the ultrasound image 111 of the defective area are mostly between 0 and 20, but as shown in the box in the figure, there are also many values ​​larger than that. Pixels with such large values ​​correspond to echoes caused by defects. For this reason, the variance of the pixel values ​​in this difference image is a large value of 70.

[0054] Thus, in a difference image of a defective area, the pixel values ​​of the pixels in the defective area are larger than the pixel values ​​of the other areas, and therefore the variance of the pixel values ​​is also larger. On the other hand, in a difference image of a defect-free area, although there may be some areas where the pixel values ​​are somewhat large due to the influence of noise, etc., there is little possibility of there being areas where the pixel values ​​are extremely large, and the variance of the pixel values ​​is relatively small. In other words, a large variance of pixel values ​​in a difference image is a characteristic phenomenon when the object being inspected has a defect.

[0055] Therefore, if the defect presence / absence determining unit 105 is configured to determine that there is a defect when the variance of the pixel values ​​of each pixel that constitutes the difference image exceeds a predetermined threshold, it is possible to appropriately determine whether there is a defect.

[0056] (Heat Map and Threshold Processing) As described above, a heat map is used to determine the type of defect. Here, the heat map generated by the heat map generation unit 106 and the threshold processing performed on the generated heat map will be described with reference to FIG. 5. FIG. 5 is a diagram showing an example in which a heat map is generated from an ultrasonic image and threshold processing is performed on the generated heat map. More specifically, the upper part of FIG. 5 shows an example of an ultrasonic image 111-a of a portion of a pipe end weld that has a defect, and the lower part of FIG. 5 shows an example of an ultrasonic image 111-b of a portion of a pipe end weld that does not have a defect.

[0057] 3, a subtracted image 111C-a and a subtracted image (restored) 111D-a are generated from the ultrasound image 111-a, and a difference image is generated from the subtracted image 111C-a and the subtracted image (restored) 111D-a. The heat map generator 106 generates a heat map in which each pixel in the difference image is represented by a color or shade corresponding to the pixel value.

[0058] 5 shows a heat map 111E-a in which pixel values ​​ranging from the lower limit to the upper limit are represented by shades of color from black to white. As indicated by the hollow arrows in the heat map 111E-a, areas corresponding to defects (areas where pixels with large pixel values ​​are concentrated) are areas where pixels close to white are concentrated. Therefore, areas corresponding to defects can be visually easily identified in the heat map 111E-a.

[0059] However, the heat map 111E-a also includes regions where pixel values ​​are large due to noise, etc. For this reason, it is preferable that the heat map generation unit 106 performs threshold processing on the generated heat map to correct pixel values ​​in regions where pixel values ​​are large due to noise, etc. For example, the heat map generation unit 106 may set pixel values ​​in the heat map 111E-a that are equal to or smaller than a predetermined threshold to zero (black). This generates a heat map 111F-a from which noise components have been removed. The heat map 111F-a allows regions corresponding to defects to be more clearly identified.

[0060] The same is true for ultrasound image 111-b of a defect-free area; a subtracted image 111C-b and a subtracted image (restored) 111D-b are generated from ultrasound image 111-b, and a difference image is generated from subtracted image 111C-b and subtracted image (restored) 111D-b. Heat map generator 106 then generates heat map 111E-b of this difference image and applies threshold processing to heat map 111E-b to generate heat map 111F-b. Comparing heat map 111F-a and heat map 111F-b, it can be seen that the presence or absence of defects can be clearly determined. It can also be seen that the location of defects can be clearly determined in heat map 111F-a.

[0061] (Types of defects, ultrasonic images, and heat maps) Known defects in pipe end welds include, for example, poor first layer penetration, poor fusion between welding passes, undercut, and blowholes. Poor first layer penetration occurs when a gap is formed due to incomplete welding near the tube sheet. Poor fusion between welding passes occurs when a gap is formed due to incomplete welding when multiple welding passes are performed. Undercut is a defect in which the end of the weld bead is gouged out in a notch shape. Blowholes are spherical cavities that occur in the weld metal.

[0062] These defects occur at different positions. Therefore, it is possible to determine the type of defect from the position where an echo caused by the defect appears in the ultrasound image 111. Similarly, it is also possible to determine the type of defect from the position of the defect area in a heat map (preferably after threshold processing) generated based on the ultrasound image 111. As described above, the defect area is an area where an echo caused by the defect appears, and has a larger pixel value than other areas.

[0063] Determining the defect type based on the position of the defect area will be explained with reference to FIG. 6. FIG. 6 is a diagram illustrating the relationship between the defect position, the ultrasonic image, and the heat map. The leftmost part of the first row of FIG. 6 shows a cross section of a pipe end weld where poor first-layer penetration has occurred. The left side of FIG. 6 is the pipe end side, and the right side is the pipe inner side. In other words, the pipe extends in the left-right direction of FIG. 6. The pipe sheet is located below the outer surface of the pipe. In addition, a scale is applied to the inner wall surface (inner surface) of the pipe so that the width of the pipe end weld can be determined.

[0064] In the leftmost diagram in the first row of Figure 6, the area indicated by the dashed line is the penetration area of ​​the tubesheet formed during welding, and the inverted triangular area to the left of the penetration area is the area made of weld metal. The combined area of ​​these areas is the pipe end weld. A void has occurred in this pipe end weld at the circled location. This void is located near the surface of the pipe, toward the inner end of the pipe end weld.

[0065] As shown in the center of the first row of Fig. 6, echoes caused by the voids appear in ultrasound image 111-c of the area where the voids exist. Then, as shown on the right side of the first row of Fig. 6, an area corresponding to the voids also appears in heat map 111F-c generated based on ultrasound image 111-c, as indicated by the outline arrows in the figure.

[0066] The leftmost section of the second row in Figure 6 shows a cross section of a pipe end weld where there is insufficient fusion between the weld passes. A void is present at the circled location. This void is located near the surface of the pipe and near the center of the pipe end weld through the thickness direction.

[0067] As shown in the center of the second row of Fig. 6, an echo caused by this void appears in ultrasound image 111-d of the area where this void exists. Furthermore, as shown on the right side of the second row of Fig. 6, a region corresponding to the void also appears in heat map 111F-d generated based on this ultrasound image 111-d, as indicated by the outline arrow in the figure. This region is located to the left of heat map 111F-c in the first row.

[0068] The left side of the third row in Figure 6 shows the undercut pipe end weld as viewed from the pipe end. A void has formed at the circled location. This void is located near the surface of the pipe, at the end of the pipe end of the pipe end weld.

[0069] As shown in the center of the third row of Fig. 6, an echo caused by this void appears in ultrasound image 111-e of the area where this void exists. Furthermore, as shown on the right side of the third row of Fig. 6, a region corresponding to the void also appears in heat map 111F-e generated based on this ultrasound image 111-e, as indicated by the outline arrow in the figure. This region is located to the left of heat map 111F-d in the second row.

[0070] The leftmost section of the fourth row in Figure 6 shows a cross section of a pipe end weld where a blowhole has occurred. A void has occurred at the circled location. This void is located closer to the interior of the pipe end weld than the pipe surface, and its position in the left-right direction is near the center of the pipe end weld in the width direction.

[0071] As shown in the center of the fourth row of Figure 6, an echo caused by this void appears in ultrasound image 111-f of the area where this void exists. Furthermore, as shown on the right side of the fourth row of Figure 6, a region corresponding to the void also appears in heat map 111F-f generated based on this ultrasound image 111-f, as indicated by the outline arrow in the figure. This region is close to the heat map 111F-d in the left-right direction, but is located lower in the up-down direction.

[0072] As described above, there is a correlation between the type of defect and the appearance of the heat map 111F. Therefore, based on this correlation, a type determination model for determining the type of defect from the heat map 111F can be constructed. Such a type determination model can be constructed by machine learning using, as training data, a heat map of a difference image generated from an inspection image of an inspection object containing a defect of known type. Then, the defect type determination unit 107 can determine the type of defect based on the output value obtained by inputting the heat map generated by the heat map generation unit 106 into such a determination model.

[0073] As described above, a heat map, which represents the pixel values ​​of each pixel constituting a differential image by color or shade, reflects the differences in the types of defects appearing in the inspection image on which the differential image is based. Therefore, with the above configuration, it is possible to appropriately and automatically determine the type of defect.

[0074] For example, a large number of heat maps, such as heat map 111F-c in FIG. 6, generated from ultrasonic images 111 of locations where initial layer penetration defects occur may be prepared and used as training data. This allows for the construction of a type determination model that outputs the probability that the defect type is initial layer penetration defects. Similarly, by performing machine learning using heat maps generated from ultrasonic images 111 of locations where other types of defects occur as training data, a type determination model that outputs the probability that each type of defect corresponds to that defect may be constructed.

[0075] Therefore, the defect type determination unit 107 can determine the type of defect from the output value obtained by inputting the heat map into such a type determination model. For example, the defect type determination unit 107 may determine that a defect of the type corresponding to the highest probability value has occurred among the probability values ​​corresponding to various defects output from the type determination model.

[0076] (Defect Integration) The pipe end weld exists around the pipe 360 ​​degrees. Therefore, as described above, ultrasonic images 111 of each portion of the pipe end weld are generated while the probe is rotated by a predetermined angle inside the pipe, and defects are detected from each ultrasonic image 111. In such a case, one continuous defect may appear across multiple ultrasonic images, and may be detected as multiple defects, even though it is actually a single defect.

[0077] Therefore, the integrated detection unit 108 integrates defects captured in multiple ultrasonic images 111 and detects them as a single defect. More specifically, when the defect presence / absence determination unit 105 determines that there are defects in multiple ultrasonic images 111 that correspond to adjacent portions of the pipe end weld, the integrated detection unit 108 detects the defects captured in the multiple ultrasonic images as a single defect. This enables appropriate detection that is in line with the actual nature of the defect.

[0078] The defect merging method will be described with reference to Fig. 7. Fig. 7 is a diagram illustrating a method for merging defects captured in multiple ultrasonic images 111 and detecting them as a single defect. The upper left of Fig. 7 shows a cross section of a pipe and a pipe end weld. The lower left of Fig. 7 shows a longitudinal section of a pipe, a pipe end weld, and a tubesheet.

[0079] In the example of Figure 7, a wide range of weld defects has occurred along the outer wall surface of the pipe. When echoes are measured while rotating the probe along the inner wall surface of the pipe by a predetermined angle, the measurement results in the area where the weld defects have occurred reflect echoes from the weld defects. As a result, as shown on the right side of Figure 7, echoes caused by the weld defects appear in ultrasonic images 111g to 111i generated based on the above measurement results. Therefore, when determining whether or not a defect exists based on these ultrasonic images 111g to 111i, the defect presence / absence determining unit 105 determines that a defect exists.

[0080] Here, the ultrasonic images 111g to 111i correspond to adjacent portions of the pipe end weld, and therefore the integrated detection unit 108 detects the defects that appear in the ultrasonic images 111g to 111i that the defect presence / absence determination unit 105 has determined to be defective as a single defect.

[0081] The integration detection unit 108 may integrate defects detected from the ultrasonic images 111g to 111i on the condition that the defects are located at the same or close positions. As described above, the positions of defects vary depending on the type. Therefore, the integration detection unit 108 may integrate defects on the condition that the same type of defects are detected from the ultrasonic images 111g to 111i. These configurations can improve the accuracy of defect integration.

[0082] Furthermore, the defect length calculation unit 109 calculates the length of the defects integrated by the above-described processing. For example, the defect length calculation unit 109 may calculate the length of the defects by multiplying the length of the defects per ultrasonic image 111 by the number of defects integrated by the integrated detection unit 108.

[0083] For example, assume that 360 echo measurements are performed on a pipe end weld formed 360 degrees around the pipe, with the probe moving once each around the central axis of the pipe along the inner wall surface of the pipe, resulting in 360 ultrasonic images 111. In this case, the length of the defect captured in one ultrasonic image 111 is approximately (outer diameter of the pipe) × π × 1 / 360. Therefore, when defects in three ultrasonic images 111g to 111i are integrated as shown in FIG. 7, the defect length calculation unit 109 may calculate the defect length as (outer diameter of the pipe) × π × 3 × 1 / 360, where π is the ratio of the circumference of a circle to its diameter.

[0084] (Example of output of inspection results) The result of the determination by the inspection device 1 as to whether or not an object to be inspected has a defect is output via the output unit 13. Here, an example of output of the inspection results will be described with reference to Fig. 8. Fig. 8 is a diagram showing an example of output of the inspection results.

[0085] A defect map 300 is shown in the upper left of Figure 8. The defect map 300 is a donut-shaped area 301 that shows the pipe end weld as viewed from the pipe end, with line segments 302 that indicate detected defects. The defect map 300 makes it easy to recognize the distribution of defects in the pipe end weld.

[0086] Also, a tubesheet map 400 is shown in the upper right corner of Fig. 8. The tubesheet map 400 is a schematic representation of a heat exchanger in which a large number of tubes are welded to a tubesheet, as shown in Fig. 2, as viewed from the tube end side. The tubesheet map 400 shows the inspection results by drawing a figure at the position of each tube, which indicates the result of a defect inspection of the tube end weld of that tube.

[0087] Specifically, as a result of the inspection, open circles are drawn at the positions of tubes where no defects were detected, and black circles are drawn at the positions of tubes where flaws (defects) were detected. This makes it easy to identify the distribution of defective tube end welds. Furthermore, in the tubesheet map 400, triangles are drawn at the positions of tubes that have not been inspected, and squares are drawn at the positions of tubes that were not inspected. In this way, various information related to inspections may also be included in the tubesheet map 400.

[0088] 8 shows an ultrasound image set 500. The ultrasound image set 500 includes three ultrasound images (501 to 503). The ultrasound image 501 is obtained by a sector scan on the tube end side, the ultrasound image 502 is obtained by a linear scan, and the ultrasound image 503 is obtained by a sector scan on the tube depth side.

[0089] Note that linear scanning is scanning in a flaw detection direction perpendicular to the central axis of the pipe. The above-mentioned ultrasound image 111 is also obtained by linear scanning. Pipe end side sector scanning is scanning in which ultrasonic waves are propagated in a flaw detection direction tilted toward the inner side of the pipe from a direction perpendicular to the central axis of the pipe. Furthermore, pipe inner side sector scanning is scanning in which ultrasonic waves are propagated in a flaw detection direction tilted toward the pipe end from a direction perpendicular to the central axis of the pipe.

[0090] In these ultrasound images, the reflected echoes corresponding to the detected defects are marked. By displaying the marked ultrasound images as the inspection results, the location of the defects can be easily recognized.

[0091] Here, the ultrasonic images 501 to 503 are all images obtained by scanning the same position in the pipe end weld, but because the inspection directions are different, the defects appear differently. Therefore, the inspection device 1 determines whether or not there is a defect for multiple ultrasonic images 111 with different inspection directions, and if a defect is determined to be present in one of the inspection directions, the final determination result may be determined to be a defect, even if no defect is determined to be present in the other inspection directions. This reduces the probability of missing a defect. Furthermore, the inspection device 1 may determine whether or not there is a defect using a composite image obtained by combining an ultrasonic image obtained by linear scanning and an ultrasonic image obtained by sector scanning.

[0092] The inspection device 1 may output all or some of the defect map 300, the tubesheet map 400, and the ultrasonic image set 500 as inspection results. The inspection device 1 may also output information indicating the results of the defect type determination as inspection results. Of course, these are merely examples, and the inspection device 1 may output the determination results in any format that allows a person to recognize the content of the results.

[0093] (Flow of processing performed before inspection) Before performing defect inspection using the inspection device 1, it is necessary to prepare various models and thresholds to be used in the inspection. Here, the flow of processing for constructing various models to be used in the inspection and determining thresholds will be described with reference to Fig. 9. Fig. 9 is a diagram showing an example of processing for constructing various models to be used in the inspection and determining thresholds. Note that these processes may be performed by the inspection device 1 or by another computer.

[0094] In S1, an extraction model is constructed. The construction of the extraction model is performed by machine learning using training data in which extraction region information is associated as correct data with the ultrasound image 111. This extraction region information may be generated based on input content, for example, by displaying the ultrasound image 111 on a display device and having an operator input the region to be extracted.

[0095] The extraction model can be constructed using any learning model suitable for extracting regions from an image. For example, the extraction model may be constructed using YOLO (You Only Look Once), which has excellent extraction accuracy and processing speed.

[0096] The region to be extracted may be any region that includes the pipe end weld, which is the inspection target portion. Furthermore, it is preferable that the region to be extracted also include at least a portion of the region in which echoes from the peripheral portion are captured. This is because, if there is no defect in the inspection target portion, feature points that can be used for machine learning may not be observed in that portion of the ultrasonic image 111, making it difficult to construct an extraction model. For example, in the ultrasonic image 111 shown in FIG. 2, the region to be extracted may be a region that includes echoes a1, a2, a6, and a7. This allows for the construction of an extraction model that extracts a region that includes the pipe end weld and also echoes from the peripheral portion.

[0097] In S1, when an extraction model is constructed by machine learning using an area including an area where echoes from the peripheral portion are captured as correct answer data, the inspection image generation unit 102 extracts the inspection target area using this extraction model. Since echoes from the peripheral portion of the inspection target area have characteristics that can be learned by machine learning, as shown in Figure 2, this configuration makes it possible to automatically extract the inspection target area with high accuracy.

[0098] In S2, a generative model is constructed. The generative model is constructed by machine learning using an ultrasound image 111 of a defect-free inspection object, more specifically, an image of the inspection object region extracted from the ultrasound image 111 using the extraction model constructed in S1, as training data. As described above, the generative model may be an autoencoder. Alternatively, the generative model may be an improved or modified version of an autoencoder. For example, a variational autoencoder or the like may be applied as the generative model.

[0099] In S1, if an extraction model is constructed by machine learning using an area including an area where an echo from the peripheral portion is captured as correct answer data, the training data used to construct the generative model will also include an area where an echo from the peripheral portion is captured. In an ultrasound image 111 of an inspection object without defects, the inspection object area does not include any echoes and there are few feature points to be machine-learned, but by using training data that includes an area where an echo from the peripheral portion is captured, it is possible to construct a valid generative model.

[0100] In S3, test images are input into the generative model constructed in S2 to construct restored images. The test images include images generated by extracting an inspection target area from an ultrasound image 111 of an inspection target without defects using the extraction model constructed in S1, and images generated by extracting an inspection target area from an ultrasound image 111 of an inspection target with defects. In addition, the test images generated from the ultrasound image 111 of an inspection target with defects are classified by the type of defect.

[0101] In S4, a threshold value for determining the presence or absence of a defect is determined. Specifically, the difference between the test image and the restored image generated in S3 is calculated on a pixel-by-pixel basis, and the variance of the difference is calculated. The threshold value is then determined so that the variance values ​​calculated for the multiple test images generated from the ultrasound image 111 of the inspection object without a defect can be distinguished from the variance values ​​calculated for the multiple test images generated from the ultrasound image 111 of the inspection object with a defect.

[0102] In S5, a type determination model is constructed using heat maps generated from test images of various defects as training data. As described with reference to Fig. 6, the heat maps contain characteristics according to the defect type, so a type determination model can be constructed by performing machine learning using these heat maps as training data.

[0103] The type determination model can be constructed using any learning model suitable for image classification. For example, the type determination model may be constructed using a convolutional neural network or the like that has excellent image classification accuracy.

[0104] (Processing flow during inspection) The processing flow during inspection will be described with reference to Fig. 10. Fig. 10 is a diagram showing an example of an inspection method using the inspection device 1. Note that the following description will be given on the assumption that an ultrasonic image 111, which is an image of echoes from the pipe end weld and its peripheral portion measured while rotating the probe, is stored in the storage unit 11.

[0105] In S11, the inspection target region extraction unit 101 acquires one of the ultrasound images 111 stored in the storage unit 11, inputs it to the extraction model, and generates extracted region information based on the output value. Then, the inspection image generation unit 102 extracts the region indicated by the extracted region information from the ultrasound image 111 to generate an inspection image 111A.

[0106] In S12 (inspection image acquisition step), inspection image acquisition unit 103 acquires inspection image 111A generated in S11. Then, inspection image acquisition unit 103 duplicates acquired inspection image 111A, sends one of the duplicates to restored image generation unit 104, and sends the other to defect presence / absence determination unit 105. Note that inspection image acquisition unit 103 may also send to defect presence / absence determination unit 105 a removed image 111C obtained by removing the peripheral echo region from inspection image 111A.

[0107] In S13, restored image generation unit 104 inputs inspection image 111A acquired in S12 into a generative model and generates restored image 111B based on the output value. Furthermore, if inspection image acquisition unit 103 is configured to send removed image 111C to defect presence / absence determination unit 105, restored image generation unit 104 preferably generates removed image (restored) 111D from generated restored image 111B and transmits this to defect presence / absence determination unit 105. Note that the generation of removed image 111C and removed image (restored) 111D may be configured to be performed by defect presence / absence determination unit 105.

[0108] In S14, defect presence / absence determining unit 105 calculates the difference for each pixel between inspection image 111A generated in S12 and restored image 111B generated in S13. Note that if removed image 111C and removed image (restored) 111D have also been generated, defect presence / absence determining unit 105 calculates the difference between these images.

[0109] In S15, the defect presence / absence determining unit 105 calculates the variance of the difference calculated in S14. Then, in S16 (defect presence / absence determining step), the defect presence / absence determining unit 105 determines whether or not a defect exists based on the value of the variance calculated in S15. Specifically, the defect presence / absence determining unit 105 determines that a defect exists if the value of the variance exceeds a predetermined threshold, and determines that no defect exists if the value of the variance is equal to or less than the predetermined threshold.

[0110] If it is determined in S16 that there is a defect (YES in S16), the process proceeds to S17. In S17, the defect presence / absence determination unit 105 records the determination result of S16, i.e., that there is a defect in the inspection object, in the inspection result data 112. Thereafter, the process proceeds to S18, where a defect type determination process is performed. Details of the defect type determination process will be described later with reference to FIG. 11.

[0111] On the other hand, if it is determined in S16 that there is no defect (NO in S16), the process proceeds to S19. In S19, the defect presence / absence determination unit 105 records the determination result of S16, i.e., that the inspection object has no defect, in the inspection result data 112. Thereafter, the process proceeds to S20.

[0112] In S20, the inspection target region extraction unit 101 determines whether all of the ultrasound images 111 to be inspected have been processed. If it is determined that there are unprocessed ultrasound images 111 (NO in S20), the process returns to S11, where the inspection target region extraction unit 101 reads out the unprocessed ultrasound images 111 from the storage unit 11 and generates extracted region information. On the other hand, if it is determined that there are no unprocessed ultrasound images 111 (YES in S20), the process proceeds to S21.

[0113] In S21, the integration detection unit 108 integrates the defects detected by the defect presence / absence determination unit 105. Then, the integration detection unit 108 records the integration result in the inspection result data 112. The method of integrating defects has been described with reference to Fig. 7, so the description will not be repeated here. Note that if there are no defects to be integrated, the processes of S21 and S22 are not performed and the process of Fig. 10 ends.

[0114] In S22, the defect length calculation unit 109 calculates the length of the defects integrated by the integrated detection unit 108. For example, the defect length calculation unit 109 may calculate the defect length by multiplying the defect length per ultrasonic image 111 by the number of defects integrated by the integrated detection unit 108. Then, the defect length calculation unit 109 records the calculation result in the inspection result data 112. This completes the processing of FIG. 10 .

[0115] (Flow of Defect Type Determination Process) The flow of the defect type determination process performed in S18 of FIG. 10 will be described with reference to FIG. 11. FIG. 11 is a flowchart showing an example of the defect type determination process. In S31, the heat map generation unit 106 generates a heat map using the difference values ​​calculated in S14 of FIG. 10. Then, in S32, the heat map generation unit 106 performs threshold processing on the heat map generated in S31. The threshold processing has been described with reference to FIG. 5, and therefore will not be described again here.

[0116] In S33, the defect type determination unit 107 determines the type of defect using a type determination model. Specifically, the defect type determination unit 107 inputs the heat map that has been subjected to threshold processing in S32 into the type determination model and determines the type of defect based on the output value. For example, if the type determination model outputs a numerical value indicating the possibility that each defect type corresponds to that type, the defect type determination unit 107 may determine that the type with the largest numerical value is that defect type.

[0117] In S34, the defect type determination unit 107 records the determination result of S33 in the inspection result data 112. This completes the defect type determination process.

[0118] [Embodiment 2] Another embodiment of the present invention will be described below. For ease of explanation, components having the same functions as those described in the above embodiment will be denoted by the same reference numerals, and their description will not be repeated. In this embodiment, an example will be described in which the type of defect is determined by a method different from that of the above embodiment.

[0119] (Configuration of Inspection Apparatus) The configuration of the inspection apparatus 2 according to this embodiment will be described with reference to Fig. 12. Fig. 12 is a block diagram showing an example of the configuration of the main parts of the inspection apparatus 2. The inspection apparatus 2 differs from the inspection apparatus 1 shown in Fig. 1 in that the control unit 10 is replaced with a control unit 20. The control unit 20 does not include the heat map generation unit 106 and the defect type determination unit 107 that were included in the control unit 10, but instead includes a defect area detection unit 201 and a defect type determination unit 202.

[0120] The defect area detection unit 201 detects, as a defect area, an area consisting of multiple pixels in the difference image whose pixel value is equal to or greater than a threshold. The defect type determination unit 202 then determines the type of defect associated with the defect area based on the position at which the defect area is detected in the image area of ​​the difference image. Details of the detection of the defect area and the determination of the type of defect based on the position of the defect area are described below.

[0121] (Detection of Defective Area) A method for detecting a defective area by the defective area detection unit 201 will be described with reference to Fig. 13. Fig. 13 is a diagram for explaining the method for detecting a defective area. Note that Fig. 13 shows an example in which a heat map is used to detect a defective area, but as will be described below, generation of a heat map is not essential.

[0122] 13 shows a heat map 111E generated from an ultrasound image 111 of an object to be inspected having a defect, and a heat map 111F obtained by performing threshold processing on the heat map 111E. Also shown in FIG. 13 is an enlarged view of the upper left corner of the heat map 111F, in which the pixel value of each pixel in the heat map 111F is written.

[0123] In detecting a defective area, the defective area detection unit 201 first detects the pixel with the maximum pixel value in the heat map 111F. In the example of Fig. 13, the maximum pixel value is 104, so this pixel is detected. Next, the defective area detection unit 201 detects pixels adjacent to the detected pixel whose pixel value is equal to or greater than a predetermined threshold value (a threshold value greater than the threshold value used in the threshold processing in S32 of Fig. 11).

[0124] The defective area detection unit 201 repeats this process until no adjacent pixels having pixel values ​​equal to or greater than the threshold are detected. This allows the defective area detection unit 201 to detect, as a defective area, a continuous area made up of pixels having pixel values ​​equal to or greater than a predetermined threshold. The defective area detection unit 201 may also detect, as a defective area, a rectangular area ar5 that includes the defective area detected as described above.

[0125] The above process can be performed if there is data indicating the difference value for each pixel between the inspection image 111A and the restored image 111B, i.e., a difference image. That is, a defective area can be detected by detecting the pixel with the maximum pixel value in the difference image and then repeating the process of detecting pixels adjacent to that pixel with pixel values ​​equal to or greater than a predetermined threshold. Therefore, as described above, it is not necessary to generate the heat map 111E or 111F to detect a defective area.

[0126] As described above, the defective area detection unit 201 detects, as a defective area, an area consisting of multiple pixels in the difference image whose pixel values ​​are equal to or greater than the threshold value. In the difference image, the pixel values ​​of the pixels in the defective area are larger than the pixel values ​​of the pixels in the other areas, so this configuration makes it possible to automatically detect valid defective areas.

[0127] (Determination of defect type based on position) As explained with reference to Fig. 6, various types of defects are known in welds, such as poor first layer penetration and poor fusion between welding passes, and differences in the types of defects appear as differences in position in the ultrasonic image. Utilizing this, the defect type determination unit 202 determines the type of defect associated with the defect area from the position where the defect area is detected in the image area of ​​the difference image. This allows the type of defect to be determined automatically.

[0128] For example, if areas corresponding to each type of defect are set in advance in the differential image, the defect type determination unit 202 can determine the type of defect based on which area the defect area detected by the defect area detection unit 201 is included in.

[0129] FIG. 14 shows an example of regions set for each defect type. In the example of FIG. 14, a region AR1 corresponding to an undercut is set in the upper left corner of the heat map 111F, a region AR2 corresponding to incomplete fusion between welding passes is set in the center of the top edge, and a region AR3 corresponding to incomplete first-layer penetration is set in the upper right corner. A region AR4 corresponding to a blowhole is set slightly above the center. These regions may be set in advance by analyzing differential images or heat maps based on inspection images of various defect locations. In the example of FIG. 14, a defect region indicated by a hollow arrow is detected in region AR3, so the defect type determination unit 202 determines that this defect is due to incomplete first-layer penetration.

[0130] 14, part of the area AR4 corresponding to the blowhole overlaps with parts of the areas AR1 to AR3. In this way, the areas for determining the type of defect may be set so that they partially overlap with other areas.

[0131] In this case, when a defect area is detected in an area where multiple areas overlap, the defect-type determination unit 202 may output all of the types corresponding to those areas as the defect-type determination results. For example, when a defect area is detected in the overlapping area of ​​areas AR1 and AR4, the defect-type determination unit 202 may output both undercut and blowhole as the determination results.

[0132] Furthermore, the defect-type determination unit 202 may narrow down the defect-type determination results depending on whether a specific condition for each defect type is satisfied. For example, if the defect has a characteristic shape, a condition related to the shape may be set, and if the defect has a characteristic size, a condition related to the size may be set.

[0133] To give a specific example, a blowhole is a defect in which a spherical cavity occurs, and its diameter is generally 2 mm or less. Therefore, if one ultrasonic image 111 covers an area of ​​the inspection object that is about 1 mm wide, one blowhole will fit into about two to three ultrasonic images 111. Therefore, if a defect is detected consecutively in multiple ultrasonic images 111 that correspond to adjacent parts of the inspection object, and the number of ultrasonic images 111 is three or less, there is a possibility that the defect is a blowhole. On the other hand, if the number of ultrasonic images 111 in which the defect is detected consecutively is four or more, there is a high possibility that the defect is not a blowhole.

[0134] Therefore, when a defect area is detected in the overlapping area between area AR4 and another area, the defect type determination unit 202 may determine that the type of defect is a blowhole, provided that the number of ultrasonic images 111 in which the defect is detected consecutively is less than or equal to a threshold value (e.g., 3).

[0135] For example, suppose that a defect area is detected in the overlapping area between areas AR4 and AR2 in the example of Fig. 14. In this case, the defect type determination unit 202 determines the type of defect as a blowhole if the number of ultrasonic images 111 in which defects are continuously detected is equal to or less than a threshold, and determines the type of defect as poor fusion between welding passes if the number of ultrasonic images 111 exceeds the threshold.

[0136] Furthermore, as described above, because blowholes are spherical, when one blowhole is detected across multiple ultrasonic images 111, the peak values ​​of the echoes caused by that blowhole often differ between the ultrasonic images 111. Such differences in peak values ​​are manifested as differences in pixel values ​​in the ultrasonic images 111. For example, suppose one blowhole is detected across three ultrasonic images 111. In this case, if the peak value of the echo caused by that blowhole in the central ultrasonic image 111 of the three ultrasonic images 111 is 50%, the peak values ​​of the echoes caused by the blowhole in the ultrasonic images 111 before and after that will be lower values, such as 30%.

[0137] Therefore, when a defect area is detected in an overlapping area between area AR4 and another area, the defect-type determination unit 202 may determine that the type of defect is a blowhole on the condition that there is a difference in pixel values ​​of the defect area in each ultrasonic image 111 in which the defect is successively detected. For example, the defect-type determination unit 202 may calculate an average value of the pixel values ​​of each pixel included in the defect area in each ultrasonic image 111, and determine that there is a difference if the difference in the average values ​​is equal to or greater than a threshold value.

[0138] (Flow of defect type determination process) Defect inspection by the inspection device 2 is performed in the same manner as the inspection device 1, according to the flow of the flowchart shown in Fig. 10. However, the content of the defect type determination process performed in S18 is different. Here, the flow of the defect type determination process performed by the inspection device 2 in S18 of Fig. 10 will be described with reference to Fig. 15. Fig. 15 is a flowchart showing an example of the defect type determination process executed by the inspection device 2.

[0139] In S41, the defect area detection unit 201 applies threshold processing to the difference value calculated in S14 of Fig. 10. Then, in S42, the defect area detection unit 201 detects a defect area from the difference value after threshold processing. The method for detecting a defect area is as described with reference to Fig. 13, so the description will not be repeated here.

[0140] In S43, the defect type determination unit 202 determines the type of defect from the position of the defect area identified in S42. For example, the defect type determination unit 202 may determine the type of defect based on which of the areas AR1 to AR4 shown in FIG. 14 the defect area detected in S42 is included in.

[0141] In S44, the defect type determination unit 202 records the determination result of S43 in the inspection result data 112. This completes the defect type determination process.

[0142] [Application Example] In the above-described embodiments, examples of determining the presence or absence of defects using ultrasonic images have been described, but the inspection devices 1 and 2 can also be applied to determining the presence or absence of defects from other images. For example, the inspection devices 1 and 2 can be applied to inspections that determine the presence or absence of defects in an object to be inspected in radiography (RT). In this case, defect images are detected from image data obtained using an electronic device such as an imaging plate, instead of a radiograph.

[0143] [Modifications] The entity that executes each process described in each of the above embodiments can be changed as appropriate. For example, in the flowchart of FIG. 10 , steps S11 (generation of inspection image), S13 (generation of restored image), S18 (defect type determination), S21 (defect integration), and S22 (defect length calculation) may be executed by another information processing device. In this case, the other information processing device may be one or more. In this way, the functions of the inspection devices 1 and 2 can be realized by various system configurations. Furthermore, when building a system including multiple information processing devices, some of the information processing devices may be located on the cloud. In other words, the functions of the inspection device 1 can also be realized using one or more information processing devices that perform information processing online.

[0144] [Example of implementation by software] The control blocks of the inspection devices 1 and 2 (particularly the parts included in the control units 10 and 20) may be implemented by logic circuits (hardware) formed on an integrated circuit (IC chip) or the like, or may be implemented by software.

[0145] In the latter case, the inspection devices 1 and 2 each include a computer that executes instructions from an inspection program, which is software that realizes each function. This computer may include, for example, one or more processors and a computer-readable recording medium storing the inspection program. The object of the present invention is achieved by the processor reading and executing the inspection program from the recording medium. The processor may be, for example, a central processing unit (CPU). The inspection devices 1 and 2 may also include a graphics processing unit (GPU) in addition to a processor such as a CPU. Using a GPU enables high-speed calculations using the various models described above. The recording medium may be a "non-transitory tangible medium," such as a read-only memory (ROM), tape, disk, card, semiconductor memory, or programmable logic circuit. The storage medium may also include a random access memory (RAM) for expanding the program. The program may also be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or radio waves). In addition, one aspect of the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

[0146] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention.

[0147] REFERENCE SIGNS LIST 1 Inspection device 102 Inspection image generation unit 103 Inspection image acquisition unit 105 Defect presence / absence determination unit 106 Heat map generation unit 107 Defect type determination unit 108 Integrated detection unit 111 Ultrasonic image 2 Inspection device 201 Defect area detection unit 202 Defect type determination unit

Claims

1. An inspection device comprising: an inspection image acquisition unit that acquires an inspection image, which is an image used to determine whether or not there is a defect inside an object to be inspected; and a defect presence / absence determination unit that determines whether or not there is a defect in the object to be inspected by using a restored image generated by inputting the inspection image into a generative model constructed by machine learning to generate a new image having similar characteristics to an input image, the generative model being constructed using images of an object to be inspected without defects as training data.

2. The inspection device according to claim 1, wherein the defect presence / absence determination unit determines that the object being inspected has a defect if the variance of the pixel values ​​of each pixel constituting the difference image between the inspection image and the restored image exceeds a predetermined threshold value.

3. The inspection device according to claim 1 or 2, further comprising an inspection image generation unit that extracts, from an ultrasound image that visualizes the echoes of ultrasound propagated through the object to be inspected, an area sandwiched between two peripheral echo areas in which echoes from the peripheral parts of the part to be inspected in the object to be inspected repeatedly, and generates the inspection image; and the inspection image acquisition unit acquires the inspection image generated by the inspection image generation unit.

4. The inspection device of claim 3, wherein the inspection image generation unit extracts the inspection area based on the output value obtained by inputting the ultrasound image into an extraction model of the inspection area constructed by machine learning using an area including the inspection area and at least a portion of the area in which echoes from the peripheral portion of the inspection area are captured as correct answer data.

5. The inspection device described in claim 4, wherein the defect presence / absence determination unit determines the presence or absence of a defect in the object to be inspected by targeting the remaining image area of ​​the restored image, excluding the area in which echoes from the peripheral portion of the inspection target area are captured.

6. The inspection device according to claim 2, further comprising a defect area detection unit that detects, as a defect area, an area consisting of a plurality of pixels whose pixel values ​​are equal to or greater than a threshold value in the difference image.

7. The inspection device according to claim 6, wherein the defect is a defect in a welded portion of the object to be inspected, and the inspection device is provided with a defect type determination unit that determines the type of defect associated with the defect area from the position where the defect area is detected in the image area of ​​the differential image.

8. An inspection device as claimed in any one of claims 1 to 7, further comprising an integrated detection unit that, when the defect presence / absence determination unit determines that there is a defect in a plurality of ultrasonic images corresponding to adjacent portions of the object to be inspected, detects the defects shown in the plurality of ultrasonic images as a single defect.

9. The inspection device according to claim 2, further comprising: a heat map generation unit that generates a heat map in which the pixel values ​​of each pixel constituting the difference image are represented by color or shade; and a defect type determination unit that determines the type of defect based on the output value obtained by inputting the heat map generated by the heat map generation unit into a type determination model constructed by machine learning using as training data a heat map of the difference image generated from an inspection image of an object to be inspected that has a defect of known type.

10. An inspection method using an inspection device, comprising: an inspection image acquisition step of acquiring an inspection image that is an image for determining whether or not there is a defect inside an object to be inspected; and a defect presence / absence determination step of determining whether or not there is a defect in the object to be inspected by using a restored image generated by inputting the inspection image into a generative model constructed using machine learning to generate a new image having similar characteristics to an input image, the generative model being constructed using ultrasonic images of an object to be inspected without a defect as training data.

11. An inspection program for causing a computer to function as the inspection device according to claim 1, the inspection program causing the computer to function as the inspection image acquisition unit and the defect presence / absence determination unit.