Learning model generation method, determination method, learning model generation program, determination program, determination device and visual inspection device

The learning model generation method improves defect detection in industrial products by using a frequency filter tailored to specific judgment items, enhancing the accuracy of defect determination through machine learning and feature extraction.

JP2024115976APending Publication Date: 2024-08-27OKI ELECTRIC INDUSTRY CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
JP2023021918
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Conventional appearance inspection devices face challenges in accurately determining various types of defects in industrial products due to the difficulty in extracting relevant characteristics from image data, leading to inconsistent judgment accuracy.

Method used

A learning model generation method that applies a frequency filter tailored to specific judgment items, performing machine learning and judgment processing to extract and analyze feature quantities from image data, using a teacher dataset for improved accuracy.

Benefits of technology

Enhances the accuracy of defect detection in industrial products by applying a frequency filter suitable for each judgment item, allowing for precise determination of multiple defects through machine learning and feature extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115976000001_ABST
    Figure 2024115976000001_ABST
Patent Text Reader

Abstract

To enhance an accuracy of determination on an object having a plurality of determination items.SOLUTION: A visual inspection device 1 associates, with a determination item, a learned feature quantity extracted applying a frequency filter according to the determination item to image data for learning, and then determines a determination result based on a difference between a feature quantity for determination extracted applying a frequency filter to image data for determination according to a determination item, and the learned feature quantity. Thereby, the visual inspection device 1 can apply a frequency filter appropriate to a target determination item to image data, can obtain a feature quantity for determination and the learned feature quantity with features related to the determination item excellently exhibited, and can obtain a highly-accurate determination result for the determination item through using these.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning model generation method, a judgment method, a learning model generation program, a judgment program, a judgment device, and an appearance inspection device, and is suitable for application to, for example, an appearance inspection device that inspects the appearance of industrial products. [Background technology]

[0002] Conventionally, a widely used appearance inspection device is installed in a manufacturing factory for industrial products such as electronic circuit boards, captures an image of the manufactured industrial product (hereinafter also referred to as the object) to obtain image data, and performs a judgment process based on the image data to judge whether the industrial product is normal (good) or abnormal (defective).

[0003] In this judgment process, for example, the obtained image data is subjected to image processing such as edge detection to emphasize its features, and based on the differences from image data of a good product that has been subjected to similar image processing, it is possible to judge whether or not defects have occurred, such as the presence or absence of chip components on a circuit board or a deviation in their mounting position.

[0004] Also, as an appearance inspection device, a device has been proposed that aims to improve judgment accuracy by generating multiple filter image data using different colors such as red, green, and blue based on the obtained image data and using the one that satisfies conditions such as the highest contrast (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2012-7952 A (Fig. 3, etc.) Summary of the Invention [Problem to be solved by the invention]

[0006] However, in actual industrial products, various types of defects may occur, such as missing or misaligned chip components in an electronic circuit board, or damage to the circuit board itself. For this reason, visual inspection devices must determine whether or not there are defects in the target object with respect to various inspection items (hereinafter also referred to as judgment items).

[0007] However, the data obtained from the target object may not reveal the characteristics of the defect depending on the type. This makes it difficult for the visual inspection device to accurately determine the presence or absence of various types of defects.

[0008] The present invention has been made in consideration of the above points, and aims to propose a learning model generation method, a judgment method, a learning model generation program, a judgment program, a judgment device, and an appearance inspection device that can improve the accuracy of judgment for objects having multiple judgment items. [Means for solving the problem]

[0009] In order to solve such problems, the learning model generation method of the present invention is a method for generating a learning model that, when data related to an object is input, outputs features extracted from the data, and includes an acquisition step of acquiring data having a plurality of judgment items, a setting step of setting a frequency filter to be applied to the data for each judgment item, an adaptation step of adapting the frequency filter to the data, and a learning step of performing a learning process for the learning model using a teacher dataset that includes the data to which the frequency filter has been applied and the features to be extracted from the data.

[0010] In addition, the judgment method of the present invention includes an acquisition step of acquiring data on an object having a plurality of judgment items and a judgment item among the plurality of judgment items to be judged for the object, a setting step of setting a frequency filter to be applied to the data for each judgment item, an adaptation step of adapting the frequency filter set in the setting step to the data, and a judgment step of performing judgment processing based on the data to which the frequency filter has been applied.

[0011] Furthermore, in the learning model generation program of the present invention, when data related to an object is input to an information processing device, the learning model generation program generates a learning model that outputs features extracted from the data, and is configured to execute an acquisition step of acquiring data having a plurality of judgment items, a setting step of setting a frequency filter to be applied to the data for each judgment item, an adaptation step of adapting the frequency filter to the data, and a learning step of performing a learning process of the learning model using a teacher dataset including the data to which the frequency filter has been adapted and the features to be extracted from the data.

[0012] Furthermore, in the judgment program of the present invention, the information processing device is configured to execute an acquisition step of acquiring data relating to an object having a plurality of judgment items, a reception step of receiving at least one of the plurality of judgment items, a setting step of setting a frequency filter to be applied to the data for each judgment item, an adaptation step of adapting the frequency filter set in the setting step to the data, and a judgment step of performing judgment processing based on the data to which the frequency filter has been applied.

[0013] Furthermore, the judgment device of the present invention is provided with an acquisition unit that acquires data regarding an object having a plurality of judgment items, a reception unit that accepts at least one of the plurality of judgment items, a setting unit that sets a frequency filter to be applied to the data according to the judgment item received by the reception unit, a filter adaptation unit that adapts the frequency filter set in the setting unit to the data, a feature extraction unit that extracts features based on the data to which the frequency filter has been applied, an evaluation value calculation unit that calculates an evaluation value for the judgment items based on the stored features and features that have been saved in advance, and a judgment unit that performs judgment processing regarding the judgment items of the object based on the evaluation value.

[0014] Furthermore, the appearance inspection apparatus of the present invention is provided with an imaging unit that captures an image of an object having a plurality of judgment items by imaging the object, a reception unit that accepts at least one of the plurality of judgment items, a judgment item corresponding unit that provides information to each unit according to the judgment item accepted by the reception unit, a setting unit that sets a frequency filter to be applied to the image data according to the judgment item, a filter adaptation unit that applies the frequency filter set in the setting unit to the image data, a feature extraction unit that extracts features based on the image data to which the frequency filter has been applied, an evaluation value calculation unit that calculates an evaluation value for the judgment item accepted by the reception unit based on the stored features and features that have been saved in advance, a judgment unit that performs judgment processing for the judgment items of the object based on the evaluation value, and an output unit that outputs the results of the judgment processing.

[0015] The present invention performs a learning process using learning data to which a frequency filter corresponding to a judgment item is applied, and therefore can generate a learning model that outputs an appropriate evaluation value for the judgment item in response to input data to which the frequency filter is applied. Furthermore, the present invention uses this learning model to calculate an evaluation value from judgment data to which a frequency filter corresponding to the judgment item to be judged is applied, and therefore, by using this evaluation value, a highly accurate judgment result for the judgment item can be obtained in the judgment process. Effect of the Invention

[0016] According to the present invention, it is possible to realize a learning model generation method, a judgment method, a learning model generation program, a judgment program, a judgment device, and an appearance inspection device that can improve the accuracy of judgment for an object having multiple judgment items. [Brief description of the drawings]

[0017] [Figure 1] FIG. 2 is a schematic block diagram showing a hardware configuration of the appearance inspection device. [Diagram 2] 1 is a schematic diagram showing a state in which a chip component is mounted on a circuit board; [Diagram 3]1 is a schematic diagram showing a state in which a defect occurs in a circuit board; [Figure 4] 11 is a schematic diagram illustrating an example of image data acquired from a circuit board. [Diagram 5] 11 is a schematic diagram illustrating an example of image data to which a low-pass filter is applied; [Figure 6] 11 is a schematic diagram illustrating an example of image data to which a high-pass filter is applied; [Figure 7] FIG. 2 is a schematic diagram showing a functional block configuration according to the first embodiment. [Figure 8] 4A and 4B are schematic diagrams illustrating configurations of a frequency filter table and a threshold table. [Figure 9] 4 is a flowchart showing a learning process procedure according to the first embodiment. [Figure 10] 1 is a flowchart showing a procedure of a determination process according to the first embodiment. [Figure 11] 11A and 11B are schematic diagrams showing frequency distribution graphs of the degree of abnormality when a frequency filter is not applied and when a frequency filter is applied. [Figure 12] 11 is a schematic diagram showing a non-defective product determination rate when a frequency filter is not applied and when a frequency filter is applied; [Figure 13] FIG. 13 is a schematic diagram showing a functional block configuration according to a second embodiment. [Figure 14] 13 is a flowchart showing a learning process procedure according to the second embodiment. [Figure 15] 13 is a flowchart showing a procedure of a determination process according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Hereinafter, modes for carrying out the invention (hereinafter referred to as embodiments) will be described with reference to the drawings.

[0019] 1. First embodiment [1-1. Configuration of visual inspection equipment] The appearance inspection device 1 according to the first embodiment is installed in, for example, a manufacturing factory where electronic components are mounted on a circuit board, and performs a judgment process to judge whether the circuit board on which the electronic components are mounted is a pass or fail, as an inspection target. In this manufacturing factory, a mounting process is performed to mount surface mount components (so-called chip components) such as minute chip-shaped resistors and capacitors, for example, by performing a reflow process on the circuit board. Hereinafter, the circuit board on which the electronic components are mounted is also referred to as the target.

[0020] As shown in a schematic block diagram in FIG. 1, an appearance inspection device 1 serving as a judgment device is configured as an information processing device centered around a control unit 2, to which a memory unit 3 and a communication unit 4 are connected, and which are further connected to a display unit 5, an operation unit 6, and an imaging unit 7.

[0021] The control unit 2 has a CPU (Central Processing Unit) 11 that performs various arithmetic processing, a ROM (Read Only Memory) 12 in which various information is stored in advance, and a RAM (Random Access Memory) 13 that temporarily stores various information, etc. The control unit 2 performs various processes by using the CPU 11 to execute various programs read from the ROM 12, the storage unit 3, etc. while using the RAM 13 as a work area.

[0022] The storage unit 3 is a non-volatile storage medium such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive), and stores various programs, various information, etc. The communication unit 4 has an interface for a wired LAN (Local Area Network) conforming to a standard such as IEEE (Institute of Electrical and Electronics Engineers) 802.3 (IEEE802.3u / ab / an / ae). The communication unit 4 is connected to a network (not shown), and transmits and receives various information to and from other devices installed in the manufacturing plant and external server devices, etc., via the network.

[0023] The display unit 5 as an output unit is a display device such as a liquid crystal panel or an organic EL (Electro Luminescence) panel, and displays various information under the control of the control unit 2. The operation unit 6 is, for example, a touch sensor or a pressable operation button provided on the surface of the liquid crystal panel constituting the display unit 5, and receives operation instructions from a user who uses the appearance inspection apparatus 1.

[0024] The imaging unit 7 has, for example, a lens that collects light and an imaging element that converts light into an electrical signal. The imaging unit 7 is installed in a location where it can capture a good image of an object, for example, near a belt conveyor along which a circuit board (object) on which electronic components are mounted is transported in a manufacturing factory. Under the control of the control unit 2, the imaging unit 7 captures a two-dimensional image including the object using light obtained from an imaging range centered on the optical axis of the lens to generate image data, and supplies the image data to the control unit 2. In response to this, the control unit 2 stores the supplied image data in the storage unit 3.

[0025] [1-2. Basic principles of judgment processing] Next, we will explain the basic principle of the judgment process for judging whether an object is normal (good) or abnormal (defective) in the visual inspection device 1. On the circuit board on which the chip component is mounted, an ideal mounting location for the chip component is set in advance, and electrodes are provided according to the shape, etc., of the chip component.

[0026] For example, Fig. 2(A), (B) and (C) respectively show a schematic diagram of only the circuit board 100, only the chip component 110 and the circuit board 100 on which the chip component 110 is normally mounted. The circuit board 100 shown in Fig. 2(A) has electrodes 101 formed at two locations on the front surface (the front side of the paper), and a virtual mounting area 102 (shown by a dashed line in the figure) is set. The chip component 110 shown in Fig. 2(B) is formed in a tiny rectangular parallelepiped shape and has two electrode portions 111. The surface of the chip component 110 that faces the circuit board 100 when it is mounted on the circuit board 100, i.e., the surface on the back side of the paper in the figure, is called a mounting surface 110S.

[0027] 2(C) shows a circuit board 100 in which a chip component 110 is appropriately mounted in a mounting area 102, and solder 120 is attached so as to extend across each electrode portion 111 of the chip component 110 and each electrode 101 of the circuit board 100. The solder 120 is melted at a predetermined high temperature in, for example, a reflow process and then solidified, thereby physically fixing and electrically connecting the electrode portion 111 of the chip component 110 to the electrode 101 of the circuit board 100. The mounting surface 110S of the chip component 110 faces the surface of the circuit board 100 and is in contact with or in close contact with the surface.

[0028] 3A, 3B, and 3C are examples of a state in which the chip component 110 is not properly mounted on the circuit board 100, and each diagrammatically shows a state that is determined to be defective. FIG. 3A shows a state in which the chip component 110 is not mounted on the circuit board 100, which is called "missing". FIG. 3B shows a state in which the chip component 110 is mounted on the circuit board 100, but its position, inclination, etc. are significantly deviated from the mounting area 102 (FIG. 2A), which is called "misalignment". FIG. 3C shows a state in which the chip component 110 is mounted in a proper position on the circuit board 100, but the amount of attached solder 120 is insufficient, which is called "insufficient solder".

[0029] 4(A) and (B) shown below show a partial area of ​​image data obtained by imaging the circuit board 100 with the imaging unit 7 (FIG. 1). Of these, FIG. 4(A) is an image obtained by imaging the circuit board 100 in a state where the chip component 110 is properly mounted on the circuit board 100 and is determined to be a non-defective product, similar to the case shown in FIG. 2(C).

[0030] 4(B) is an image capturing one type of defect called "chip standing." This shows a state in which the mounting surface 110S of the chip component 110 is separated from the surface of the circuit board 100 and is nearly vertical, that is, the chip component 110 stands upright relative to the circuit board 100. At this time, one electrode portion 111 of the chip component 110 is fixed to one electrode 101 of the circuit board 100 by solder 120.

[0031] In this way, various types of defects may occur on the circuit board 100 after the mounting process of the chip components 110 has been completed. Therefore, the appearance inspection device 1 needs to appropriately determine the presence or absence of various types of expected defects on the circuit board 100.

[0032] In image data, the position of each pixel is generally expressed by two-dimensional coordinates, so the change in brightness (luminance) for each pixel position along the coordinate axis can be considered as a waveform. For this reason, it is possible to evaluate the frequency (also called spatial frequency) in this waveform and perform calculation processing (i.e. image processing) using that frequency.

[0033] That is, in image data, the parts where the luminance changes sharply depending on the pixel position are high frequency, and the parts where the luminance changes gradually are low frequency. Actual image data has a waveform in which multiple frequencies are superimposed. For this reason, when performing defect judgment based on image data, generally, a filter process is performed in which some frequency bands are attenuated and other frequency bands are emphasized, that is, a frequency filter is applied to the image data.

[0034] For example, when a low-pass filter that passes low-frequency components while attenuating high-frequency components is applied to the data shown in Figures 4(A) and (B), image data such as that shown in Figures 5(A) and (B) (hereinafter referred to as low-frequency image data) is obtained. This low-frequency image data emphasizes the characteristics of defects that are relatively large relative to the entire component, such as missing parts (Figure 3(A)) and standing chips (Figure 4(B)), making it easy to detect these defects. On the other hand, the low-frequency image data loses the characteristics of defects that are relatively small compared to the size of the component, such as small scratches and stains, making it difficult to detect these defects.

[0035] Moreover, when a high-pass filter that passes high-frequency components while attenuating low-frequency components is applied to the data shown in Figures 4(A) and (B), image data such as that shown in Figures 6(A) and (B) (hereinafter referred to as high-frequency image data) is obtained. In this high-frequency image data, the characteristics of defects in a relatively small range are emphasized, making it easier to detect these defects. On the other hand, in the high-frequency image data, the characteristics of defects over a relatively large range are lost, making it difficult to detect these defects.

[0036] In this way, when a frequency filter that emphasizes a specific frequency band is applied to image data, it may be possible to accurately determine some defective items, while it may be difficult to determine other defective items.

[0037] Therefore, the visual inspection device 1 according to this embodiment is configured to previously associate the defect items to be judged (hereinafter referred to as judgment items) with the type of frequency filter (i.e., frequency band) suitable for judging the judgment items, and to switch to and adapt the optimal frequency filter for each judgment item to perform the defect judgment process.

[0038] [1-3. Visual inspection processing] Next, the appearance inspection process in the appearance inspection device 1 will be described. In the appearance inspection process, the appearance inspection device 1 performs machine learning processing by a learning process in the front stage and a judgment process in the rear stage for feature amounts obtained from image data to which a frequency filter corresponding to a judgment item is applied. In addition, the control unit 2 of the appearance inspection device 1 forms a plurality of functional blocks therein when performing the learning process and the judgment process. Below, the configuration of the functional blocks, the learning process in the front stage, and the judgment process in the rear stage will each be described in detail.

[0039] It is also assumed here that a circuit board (i.e., an object) on which electronic components are mounted in a manufacturing plant is imaged in advance by the imaging unit 7 (FIG. 1) of the visual inspection device 1, and the generated image data is stored in the storage unit 3. This image data includes learning image data (also called learning data) used in the learning process, and judgment image data (also called judgment data or post-event data) used in the judgment process.

[0040] The learning image data is image data obtained from an object that is known to be a good product, and is also called teacher data. The judgment image data is image data obtained from an object that is to be inspected because electronic components have been mounted on a circuit board in a manufacturing factory but the presence or absence of defects has not been confirmed. Among these, the judgment image data is also provided with information that indicates a correspondence relationship with the object, such as a serial number assigned to the circuit board as the object and a manufacturing date and time.

[0041] Furthermore, each image data (i.e., learning image data and judgment image data) is associated with judgment item information that indicates a judgment item. For example, judgment item information meaning "missing part" is associated with image data to be judged for the presence or absence of a missing part. Similarly, judgment item information meaning "scratch" is associated with image data to be judged for the presence or absence of scratches on a circuit board or a component.

[0042] [1-3-1. Functional block configuration] Next, the configuration of the functional blocks will be described. The control unit 2 (FIG. 1) of the visual inspection device 1 reads out and executes a learning processing program or a judgment processing program pre-stored in the storage unit 3, thereby forming each functional block as shown in FIG. 7. Specifically, the control unit 2 forms an acquisition unit 21, a filter adaptation unit 22, a feature amount processing unit 23, an anomaly degree calculation unit 24, a judgment unit 25, and a judgment item correspondence unit 26, and further forms a feature amount extraction unit 27 and a feature amount management unit 28 within the feature amount processing unit 23.

[0043] The storage unit 3 is also provided with a data storage unit 31 in which image data is stored, a judgment item information storage unit 32 in which information on judgment items is stored, and a feature amount storage unit 33 in which feature amounts extracted from the image data (described in detail later) are stored. Among these, the judgment item information storage unit 32 stores a frequency filter table TBL1 shown in FIG. 8(A), a threshold value table TBL2 shown in FIG. 8(B), and files in which each frequency filter is digitized. The frequency filter table TBL1 stores file names of frequency filters in association with each judgment item. The threshold value table TBL2 stores threshold values ​​(described in detail later) in association with each judgment item. The feature amount storage unit 33 is provided in the feature amount processing unit 23, and stores feature amounts extracted from the image data in association with each judgment item.

[0044] The acquisition unit 21 reads out one or more image data (learning image data or judgment image data) from the data storage unit 31, and supplies the data to the filter adaptation unit 22. The acquisition unit 21 also supplies judgment item information associated with the image data to the judgment item association unit 26. Incidentally, the acquisition unit 21 can selectively read out image data associated with a predetermined judgment item, or selectively read out either the learning image data or the judgment image data, while referring to the attribute information of each image data.

[0045] The judgment item corresponding unit 26 manages the frequency filters and thresholds corresponding to the supplied judgment item information by cooperating with the judgment item information storage unit 32, and supplies them to each unit. For example, the judgment item corresponding unit 26 acquires the file name of the frequency filter corresponding to the supplied judgment item information by referring to a frequency filter table TBL1 (FIG. 8(A)), reads the file with the file name from the judgment item information storage unit 32, and supplies it to the filter adaptation unit 22. The judgment item corresponding unit 26 also acquires the thresholds corresponding to the supplied judgment item information by referring to a threshold table TBL2 (FIG. 8(B)), and supplies it to the judgment unit 25. Furthermore, the judgment item corresponding unit 26 supplies the judgment item information to the feature management unit 28.

[0046] The filter adaptation unit 22 applies the frequency filter supplied from the judgment item corresponding unit 26 to the image data (learning image data or judgment image data) supplied from the acquisition unit 21. As a result, some frequency bands of the image data are attenuated, and the image data represents an image in which the remaining frequency bands are relatively emphasized. Thereafter, the filter adaptation unit 22 supplies the image data to which the frequency filter has been applied to the feature extraction unit 27 of the feature processing unit 23.

[0047] The feature amount processing unit 23 corresponds to a learning model in machine learning processing (also simply referred to as learning processing). As an extraction process, the feature amount extraction unit 27 extracts features from image data (learning image data or judgment image data) to which a frequency filter has been applied in the filter adaptation unit 22, and supplies the features to the feature amount management unit 28 or the anomaly degree calculation unit 24. Specifically, the feature amount extraction unit 27 is configured as, for example, a neural network, and uses a weight parameter learned using a public data set or the like. In addition, the feature amount extraction unit 27 can appropriately hold machine learning parameters and the like by appropriately using the RAM 13 or the storage unit 3 (FIG. 1) as necessary. In addition, in these learning processes, a teacher data set in which image data and features are associated with each other is used.

[0048] In the learning process, the feature amount management unit 28 associates the feature amount supplied from the feature amount extraction unit 27 with the judgment item information supplied from the judgment item correspondence unit 26 and stores the associated feature amount in the feature amount storage unit 33. That is, the feature amount processing unit 23 can be regarded as having a learning model for each judgment item. In addition, in the judgment process, the feature amount management unit 28 reads out the feature amount corresponding to the judgment item information supplied from the judgment item correspondence unit 26 from the feature amount storage unit 33, and supplies it to the anomaly degree calculation unit 24. Hereinafter, the feature amount stored in the feature amount storage unit 33 will also be referred to as a stored feature amount.

[0049] In the judgment process, the anomaly degree calculation unit 24 calculates an anomaly degree indicating the magnitude of the difference between the judgment feature and the learned feature based on the feature supplied from the feature extraction unit 27 (hereinafter referred to as the judgment feature or the ex-post feature) and the feature supplied from the feature management unit 28 (hereinafter referred to as the learned feature), and supplies this to the judgment unit 25. Specifically, the anomaly degree calculation unit 24 calculates the distance between the judgment feature and the learned feature in a multidimensional space by, for example, a nearest neighbor method using Euclidean distance or an arithmetic process using Mahalanobis distance, and sets this as the anomaly degree. For convenience of explanation, the anomaly degree will also be referred to as an evaluation value hereinafter.

[0050] In the judgment process, the judgment unit 25 compares the degree of abnormality supplied from the abnormality degree calculation unit 24 with a threshold value supplied from the judgment item correspondence unit 26, and determines the judgment result. Specifically, the judgment unit 25 determines the judgment result as "normal" if the degree of abnormality is less than the threshold value, and determines the judgment result as "abnormal" if the degree of abnormality is equal to or greater than the threshold value. In other words, the judgment unit 25 classifies the degree of abnormality according to the comparison result with the threshold value. For this reason, hereinafter, the judgment process is also referred to as a classification process, and the judgment result is also referred to as a classification result.

[0051] [1-3-2. Learning process] Next, the learning process will be described. When performing the learning process, the control unit 2 (FIG. 1) of the visual inspection device 1 reads out and executes a predetermined learning process program from the storage unit 3. At this time, the control unit 2 performs a predetermined initialization process and the like, forms each of the functional blocks shown in FIG. 7, and then starts the learning process procedure RT1 shown in FIG. 9 and proceeds to the first step SP11.

[0052] In step SP11 (acquisition step and reception step), the control unit 2 acquires one or more pieces of learning image data from the data storage unit 31 using the acquisition unit 21, acquires judgment item information associated with the learning image data, and proceeds to the next step SP12. At this time, the acquisition unit 21 supplies the acquired learning image data (hereinafter referred to as target learning image data) to the filter adaptation unit 22, and supplies the acquired judgment item information to the judgment item correspondence unit 26. Hereinafter, the judgment item represented by the acquired judgment item information at this time will be referred to as the target judgment item.

[0053] In step SP12 (setting step), the control unit 2 causes the judgment item corresponding unit 26 to refer to the frequency filter table TBL1 (FIG. 8(A)), reads out a frequency filter corresponding to the judgment item of interest (hereinafter referred to as a target frequency filter) from the judgment item information storage unit 32, and supplies it to the filter adaptation unit 22, and proceeds to the next step SP13. In step SP13 (adaptation step), the control unit 2 causes the filter adaptation unit 22 to adapt the target frequency filter to the target learning image data supplied from the acquisition unit 21, and supplies this target learning image data to the feature extraction unit 27 of the feature processing unit 23, and proceeds to the next step SP14.

[0054] In step SP14 (learning step), the control unit 2 causes the feature extraction unit 27 to extract features from the target learning image data, supplies the features to the feature management unit 28, and proceeds to the next step SP15. In step SP15 (learning step), the control unit 2 causes the feature management unit 28 to store the features supplied from the feature extraction unit 27 in the feature storage unit 33 in association with the target judgment item notified by the judgment item correspondence unit 26, and proceeds to the next step SP16. Hereinafter, the features stored in this manner are also referred to as learned features.

[0055] In step SP16, the control unit 2 determines whether a predetermined learning end condition is met. The learning end condition is preset, for example, "processing 100 pieces of learning image data" or "processing all learning image data stored in the data storage unit 31". If a negative result is obtained in step SP16, the control unit 2 returns to step SP11 again to repeatedly execute the series of processes for the next learning image data. On the other hand, if a positive result is obtained in step SP16, the control unit 2 proceeds to the next step SP17 and ends the learning process procedure RT1.

[0056] [1-3-3. Judgment process] Next, the judgment process will be described. When the judgment process is performed, the control unit 2 reads out a predetermined judgment process program from the storage unit 3 and executes it. At this time, the control unit 2 performs a predetermined initialization process and the like, as in the case of the learning process, and forms each of the functional blocks shown in Fig. 7, and then starts the judgment process procedure RT2 shown in Fig. 10 corresponding to Fig. 9, and proceeds to the first step SP21.

[0057] In step SP21 (post-acquisition step), the control unit 2 acquires one or more pieces of judgment image data from the data storage unit 31 using the acquisition unit 21, acquires judgment item information associated with the judgment image data, and proceeds to the next step SP22. At this time, the acquisition unit 21 supplies the acquired judgment image data (hereinafter referred to as target judgment image data) to the filter adaptation unit 22, and supplies the acquired judgment item information to the judgment item correspondence unit 26. Hereinafter, the judgment item represented by the judgment item information acquired at this time will be referred to as the target judgment item, as in the case of the learning process.

[0058] In step SP22 (post-setting step), similarly to step SP12 (FIG. 9), the control unit 2 causes the judgment item corresponding unit 26 to refer to the frequency filter table TBL1 (FIG. 8(A)), reads out a frequency filter corresponding to the judgment item of interest (i.e., a target frequency filter) from the judgment item information storage unit 32, and supplies it to the filter adaptation unit 22, and then proceeds to the next step SP23.

[0059] In step SP23 (post-adaptation step), the control unit 2 causes the filter adaptation unit 22 to adapt the object frequency filter to the object determination image data supplied from the acquisition unit 21, supplies this object determination image data to the feature extraction unit 27 of the feature processing unit 23, and proceeds to the next step SP24. In step SP24 (feature extraction step), the control unit 2 causes the feature extraction unit 27 to extract features from the object determination image data, supplies these features to the abnormality degree calculation unit 24 as determination features, and proceeds to the next step SP25.

[0060] In step SP25, the control unit 2 first causes the judgment item corresponding unit 26 to notify the feature amount management unit 28 of information representing the judgment item of interest. Next, the control unit 2 causes the feature amount management unit 28 to read out the learned feature amount corresponding to the judgment item of interest from the feature amount storage unit 33, and supplies this to the anomaly degree calculation unit 24. Furthermore, the control unit 2 causes the anomaly degree calculation unit 24 to calculate an anomaly degree representing the magnitude of the difference between the judgment feature amount and the learned feature amount, and supplies this anomaly degree to the judgment unit 25, and proceeds to the next step SP26.

[0061] As a result, for example, if the judgment image data is similar to the learning image data with respect to a judgment item and the difference between the judgment feature and the learned feature is relatively small, the value of the degree of abnormality will be relatively small. This means that the judgment item of the object is highly likely to be "normal." On the other hand, if the judgment image data is not very similar to the learning image data with respect to a judgment item and the difference between the judgment feature and the learned feature is relatively large, the value of the degree of abnormality will be relatively large. This means that the judgment item of the object is highly likely to be "abnormal."

[0062] In step SP26 (judgment step and notification step), the control unit 2 first causes the judgment item corresponding unit 26 to refer to the threshold table TBL2 (FIG. 8(B)), read out the threshold corresponding to the judgment item of interest, and supply it to the judgment unit 25. Next, the control unit 2 causes the judgment unit 25 to compare the degree of abnormality with the threshold and determine the judgment result. At this time, the judgment unit 25 determines the judgment result to be "normal" if the degree of abnormality is less than the threshold, and determines the judgment result to be "abnormal" if the degree of abnormality is equal to or greater than the threshold.

[0063] Next, the control unit 2 causes the display unit 5 (FIG. 1) to display a judgment result display screen showing the obtained comparison result, and then proceeds to the next step SP27. This judgment result display screen displays, for example, characters and figures showing the judgment result, as well as information such as the focused judgment item and the serial number of the circuit board. Furthermore, if the judgment result is "abnormal", for example, the judgment result display screen can also read out judgment image data before applying the frequency filter from the data storage unit 31 and display that image on the judgment result display screen.

[0064] In step SP27, the control unit 2 judges whether a predetermined judgment end condition is satisfied. The learning end condition is preset, for example, "processing 100 pieces of judgment image data", "processing all judgment image data stored in the data storage unit 31", or "completion of mounting process of mounting electronic components on a circuit board". If a negative result is obtained here, the control unit 2 returns to step SP21 again to repeatedly execute the series of processes for the next judgment image data. On the other hand, if a positive result is obtained in step SP27, the control unit 2 proceeds to the next step SP28 and ends the judgment process procedure RT2.

[0065] Incidentally, in the data storage unit 31, there are cases where a plurality of judgment items are associated with one judgment image data. In such a case, the control unit 2 first performs the processes of steps SP21 to SP26 for any one judgment item as a judgment item of interest. Next, the control unit 2 sets another judgment item as a new judgment item of interest in step SP27, and returns to step SP21 to perform the processes of steps SP21 to SP26 for the same judgment image data. The control unit 2 can perform the judgment process for each judgment item in sequence by using this procedure.

[0066] [1-4. Effects, etc.] In the above configuration, the visual inspection device 1 according to the first embodiment applies a frequency filter corresponding to a target judgment item to the learning image data in a learning process to extract features, and stores the features as learned features in association with the target judgment item. After that, in a judgment process, the visual inspection device 1 applies a frequency filter corresponding to the target judgment item to the judgment image data to extract judgment features, calculates an anomaly level based on the difference between the features and the learned features, and determines a judgment result based on a comparison result between the features and a threshold value.

[0067] Therefore, since the frequencies at which features tend to appear are different for multiple judgment items, the appearance inspection device 1 can apply a frequency filter suitable for the target judgment item to the image data, and obtain image data in which the features related to the judgment item are well expressed. As a result, by using the feature amount extracted from this image data, the appearance inspection device 1 can appropriately judge whether the judgment item is normal or abnormal, and can perform appearance inspection with extremely high accuracy.

[0068] Here, we introduce experimental examples in which a frequency filter was not applied and was applied. In this experimental example, the judgment item was chip standing (Fig. 4(B)), and multiple image data were prepared for which the visual evaluation of the judgment item (i.e., "normal" or "abnormal") was known in advance. In this experimental example, the feature amount related to the judgment item was extracted from each image data, the degree of abnormality for each judgment item was calculated, and statistical processing was performed.

[0069] Fig. 11(A) is a graph showing the frequency distribution of the degree of abnormality obtained from each image data when a frequency filter was not applied (hereinafter referred to as "no filter application"), unlike the present embodiment, where the horizontal axis shows the degree of abnormality and the vertical axis shows the frequency (number of data). Also, in Fig. 11(A), the patterns in the bar graph are different for cases where the visual evaluation is "good" (shown as "OK" in the figure) and cases where the visual evaluation is "bad" (shown as "NG" in the figure).

[0070] 11A, in the area where the degree of abnormality is slightly larger than 0.4, the degree of abnormality obtained from image data that was visually evaluated as "OK" (hereinafter referred to as "OK abnormality") is relatively close to the degree of abnormality obtained from image data that was visually evaluated as "NG" (hereinafter referred to as "NG abnormality") This means that it is difficult to set an appropriate threshold value that can easily separate the OK abnormality degree from the NG abnormality degree, and erroneous judgment may occur if the threshold value cannot be set appropriately.

[0071] In general, in statistical processing, when data is normally distributed or similarly distributed, the percentage of the data that falls within a range of a certain multiple of the variance σ, with the data's average value AVR at the center, is sometimes used as a variety of indexes. For example, in a normal distribution, 99.7% of the data falls within a range of up to three times the variance σ (so-called 3σ), with the average value AVR at the center.

[0072] Therefore, in this experimental example, the average value AVR and the variance σ of the NG abnormality degree obtained when the filter is not applied are calculated, and a threshold value TH3 is set that is 3σ away from the average value AVR toward the OK abnormality degree side. As a result, as shown in FIG. 12, the rate at which the OK abnormality degree is less than the threshold value, that is, the rate at which normal objects are judged to be normal (hereinafter, this is called the normal judgment rate), is 0.971. This means that when the filter is not applied, the remaining 0.029 (i.e., 2.9%) is judged to be "abnormal" even though it is actually "normal", that is, a misjudgment occurs. In other words, when the filter is not applied, it is not necessarily easy to set an appropriate threshold value that can suppress misjudgment.

[0073] On the other hand, Fig. 11(B), which corresponds to Fig. 11(A), is a graph showing the frequency distribution of the degree of anomaly obtained from each image data when a frequency filter is applied (hereinafter, this is called filter application) as in the present embodiment. Incidentally, in Fig. 8(B), the range of the value of the degree of anomaly is slightly different from that in Fig. 8(A) due to the application of a frequency filter.

[0074] In Fig. 11(B), the OK abnormality degree is distributed in a range of approximately 0.2 or less, while the NG abnormality degree is distributed in a range of approximately 0.5 or more, and the distributions of the two are relatively far apart compared to Fig. 11(A). This means that it is relatively easy to set an appropriate threshold value that can easily separate the OK abnormality degree from the NG abnormality degree, and that by setting the threshold value appropriately, erroneous judgment can be easily prevented.

[0075] For the NG abnormality degree obtained in the case of this filter adaptation, the average value AVR and variance σ were also calculated, and a threshold value TH3 was set that was 3σ away from the average value AVR, and the rate at which the OK abnormality degree was less than the threshold value (normal determination rate) was 1.000, as shown in Fig. 12. This means that in the case of filter adaptation, erroneous determinations do not occur simply by setting the threshold value to a value calculated statistically in this way.

[0076] In this manner, in this embodiment, a frequency filter corresponding to the target judgment item is applied to the image data and then features are extracted, so that it is extremely easy to set an appropriate threshold value that can suppress erroneous judgments.

[0077] In addition, the control unit 2 of the visual inspection device 1 switches the threshold value used in the judgment unit 25 (FIG. 7) in the judgment process (FIG. 10) depending on the judgment item of interest (step SP26). Therefore, in the visual inspection device 1, the distribution of the degree of abnormality (FIG. 11) is expected to differ for each judgment item of interest, and the accuracy of judgment can be significantly improved compared to the case where the threshold value is set to a constant value regardless of the judgment item of interest.

[0078] Furthermore, in both the learning process (FIG. 9) and the judgment process (FIG. 10), the control unit 2 performs processing according to judgment item information previously associated with image data regarding the adaptation of the frequency filter in the filter adaptation unit 22, the storage of learned features in the feature storage unit 33, and the setting of thresholds in the judgment unit 25. Therefore, even if the judgment items associated with each image data are distributed into multiple types, the appearance inspection device 1 can sequentially perform judgment processing related to the set judgment items for each image data.

[0079] According to the above configuration, the appearance inspection device 1 according to the first embodiment associates the learned feature extracted by applying a frequency filter corresponding to the judgment item to the learning image data with the judgment item, and then determines a judgment result based on the difference between the judgment feature extracted by applying a frequency filter corresponding to the judgment item to the judgment image data and the learned feature. Therefore, the appearance inspection device 1 can apply a frequency filter suitable for the target judgment item to the image data, so that it can obtain learned features and judgment features that clearly express the features related to the judgment item, and can use these to obtain a highly accurate judgment result related to the judgment item.

[0080] 2. Second embodiment An appearance inspection apparatus 201 (FIG. 1) according to the second embodiment differs from the appearance inspection apparatus 1 according to the first embodiment in that it has a control unit 202 and a memory unit 203 instead of the control unit 2 and the memory unit 3, but is otherwise configured similarly. The control unit 202 has a CPU 11, ROM 12, RAM 13, etc., like the first embodiment, but by reading and executing various programs from the memory unit 203, it forms functional blocks that are partially different from those of the first embodiment, as shown in FIG. 13, which corresponds to FIG. 7.

[0081] Specifically, the control unit 202 differs from the first embodiment in that it has a feature amount processing unit 223 and an abnormality degree calculation unit 224 instead of the feature amount processing unit 23 and the abnormality degree calculation unit 24, but is otherwise configured similarly. Compared to the feature amount processing unit 23, the feature amount processing unit 223 has a feature amount extraction unit 227 instead of the feature amount extraction unit 27, omits the feature amount management unit 28, and has a feature amount update unit 229.

[0082] Although the feature amount processing unit 223 corresponds to a machine learning model in machine learning processing, unlike the feature amount processing unit 23, it is configured as an autoencoder (autoencoder) that is widely used in processing such as anomaly detection using a neural network. That is, when learning the feature amount of a non-defective product in the learning process, the feature amount processing unit 223 learns the value of a weight parameter so that the feature amount approaches the initial feature amount when the number of dimensions is reduced once and then restored to the original number of dimensions. Incidentally, in the feature amount processing unit 223, a plurality of machine learning models corresponding to each judgment item are configured. In addition, the parameters of each machine learning model are appropriately stored in the RAM 13 or the storage unit 203 (FIG. 1).

[0083] The feature extraction unit 227 has a plurality of machine learning models corresponding to each judgment item, and each machine learning model has a plurality of parameters (also called weight parameters). The feature extraction unit 227 acquires information on a judgment item of interest from the judgment item corresponding unit 26, and extracts a feature from the image data (learning image data or judgment image data) supplied from the filter adaptation unit 22 using a learning model corresponding to the judgment item of interest. The feature extraction unit 227 supplies the feature to the feature update unit 229 or the anomaly degree calculation unit 224.

[0084] In the learning process, the feature amount updating unit 229 calculates an update amount of the parameter based on the feature amount supplied from the feature amount extraction unit 227, and supplies the calculated update amount to the feature amount extraction unit 227. In response to this, the feature amount extraction unit 227 updates the value of the parameter using the supplied update amount.

[0085] In the determination process, the anomaly degree calculation unit 224 calculates the degree of anomaly based on the feature amount supplied from the feature amount extraction unit 227. Specifically, the anomaly degree calculation unit 224 reduces the number of dimensions from the feature amount supplied from the feature amount extraction unit 227, and when the original number of dimensions is restored, calculates the difference between the restored feature amount and the original feature amount, and calculates the magnitude of this difference as the degree of anomaly.

[0086] The storage unit 203, like the storage unit 3 according to the first embodiment, is a non-volatile storage medium such as an SSD or HDD, and stores various programs, various information, etc. This storage unit 203 has the same data storage unit 31 and judgment item information storage unit 32 as in the first embodiment, but omits the feature amount storage unit 33.

[0087] Next, the learning process will be described. When performing the learning process, the control unit 202 (FIG. 1) of the visual inspection device 201 reads out a predetermined learning process program from the storage unit 203 and executes it. At this time, the control unit 202 performs a predetermined initialization process and the like, and forms each of the functional blocks shown in FIG. 13, and then starts the learning process procedure RT21 shown in FIG. 14 corresponding to FIG. 9, and proceeds to the first step SP211.

[0088] In steps SP211 to SP213, the control unit 202 performs the same processes as in steps SP11 to SP13, respectively, and proceeds to the next step SP214. In step SP214, the control unit 202 causes the feature extraction unit 227 to extract features from the target learning image data, supplies the features to the feature update unit 229, and proceeds to the next step SP215.

[0089] In step SP215, the control unit 202 uses the feature amount updating unit 229 to update parameters of the machine learning model corresponding to the target judgment item notified by the judgment item corresponding unit 26, based on the features supplied from the feature amount extraction unit 227. The control unit 202 also causes the feature amount updating unit 229 to supply the updated parameters to the feature amount extraction unit 227, thereby rewriting the parameters of the feature amount extraction unit 227, and proceeds to the next step SP216.

[0090] Thereafter, in step SP216, the control unit 202 determines whether or not a predetermined end condition is satisfied, similar to step SP16, and if a negative result is obtained, returns to step SP211 and repeats the series of processes for the next learning image data. On the other hand, if a positive result is obtained in step SP216, the control unit 202 proceeds to the next step SP217 and ends the learning processing procedure RT21.

[0091] Next, the determination process will be described. When performing the determination process, the control unit 202 reads out a predetermined determination process program from the storage unit 203 and executes it. At this time, the control unit 202 performs a predetermined initialization process and the like, as in the case of the learning process, and forms each of the functional blocks shown in Fig. 13, and then starts the determination process procedure RT22 shown in Fig. 15 corresponding to Fig. 10, and proceeds to the first step SP221.

[0092] In steps SP221 to SP223, the control unit 202 performs the same processes as in steps SP21 to SP23, respectively, and proceeds to the next step SP224. In step SP224, the control unit 202 causes the feature extraction unit 227 to extract features from the object determination image data and supplies these features to the abnormality degree calculation unit 224, and proceeds to the next step SP225.

[0093] In step SP225, the control unit 202 causes the abnormality degree calculation unit 224 to calculate the abnormality degree based on the feature amount supplied from the feature amount extraction unit 227, and proceeds to the next step SP226. In step SP226, similar to step SP26, the control unit 202 causes the judgment unit 25 to compare the abnormality degree supplied from the abnormality degree calculation unit 224 with the threshold value supplied from the judgment item correspondence unit 26, and determines the judgment result. Next, similar to the first embodiment, the control unit 202 causes the display unit 5 (FIG. 1) to display a judgment result display screen showing the obtained judgment result, and proceeds to the next step SP227.

[0094] In step SP227, the control unit 202 determines whether or not a predetermined termination condition is satisfied, similarly to step SP27, and if a negative result is obtained, the control unit 202 returns to step SP221 and repeats the series of processes for the next determination image data. On the other hand, if a positive result is obtained in step SP227, the control unit 202 proceeds to the next step SP228 and ends the determination processing procedure RT22.

[0095] In the above configuration, the appearance inspection device 201 according to the second embodiment applies a frequency filter corresponding to the judgment item to the learning image data in the learning process, extracts a feature amount using a machine learning model corresponding to the judgment item, and updates the parameters of the machine learning model using the feature amount. After that, in the judgment process, the appearance inspection device 201 applies a frequency filter corresponding to the judgment item to the judgment image data, extracts a feature amount using the machine learning model, calculates an anomaly level based on the difference (also called deviation) between the feature amount and the feature amount restored by the autoencoder, and determines a judgment result based on the result of comparing this with a threshold value.

[0096] Therefore, similar to the first embodiment, the appearance inspection device 201 can apply a frequency filter suitable for the target judgment item to the image data, and can obtain image data in which the features related to the judgment item are well expressed. As a result, similar to the first embodiment, the appearance inspection device 201 can appropriately judge whether the judgment item is good or bad by using the feature amount extracted from this image data, and can perform appearance inspection with extremely high accuracy.

[0097] In other respects as well, the appearance inspection apparatus 201 according to the second embodiment can achieve the same effects as the appearance inspection apparatus 1 according to the first embodiment.

[0098] 3. Other embodiments In the above-mentioned first embodiment, a low-pass filter (FIG. 5) and a high-pass filter (FIG. 6) are used as examples of frequency filters. However, the present invention is not limited to this, and various frequency filters may be used that attenuate frequency bands corresponding to unnecessary parts for a judgment item and emphasize the characteristics of the judgment item. In this case, it is sufficient to associate the judgment item with a suitable frequency filter and store it in the frequency filter table TBL1 (FIG. 8(A)). The same applies to the second embodiment.

[0099] In the above-mentioned first embodiment, a frequency filter file is stored in the judgment item information storage unit 32 (FIG. 7) and the file name is associated with the judgment item and stored in the frequency filter table TBL1 (FIG. 8(A)). In this case, in the learning process and judgment process, the judgment item correspondence unit 26 refers to the frequency filter table TBL1, acquires the frequency filter of the judgment item of interest from the judgment item information storage unit 32, and supplies it to the filter adaptation unit 22. However, the present invention is not limited to this. For example, the value of the frequency band to be passed through each frequency filter may be stored in the frequency filter table TBL1 (FIG. 8(A)), and the value of the frequency may be supplied from the judgment item correspondence unit 26 to the filter adaptation unit 22. In this case, the filter adaptation unit 22 may generate a frequency filter corresponding to the acquired frequency band and apply it to the image data. The same applies to the threshold table TBL2 (FIG. 8(B)) and the second embodiment.

[0100] Furthermore, in the above-mentioned first embodiment, a form has been described in which judgment item information indicating "missing item" or the like is associated with and stored in the data storage unit 31. However, the present invention is not limited to this, and for example, information indicating a frequency filter corresponding to a judgment item such as "missing item", such as "low pass" or "high pass", or filter information which is information such as a value indicating a frequency band range, may be associated with each image data. The same applies to the second embodiment.

[0101] Furthermore, in the above-described first embodiment, a configuration has been described in which, when performing the learning process (FIG. 9), a feature amount is stored in the feature amount storage unit 33 for each judgment item. However, the present invention is not limited to this, and for example, only one type of feature amount may be stored in the feature amount storage unit 33 regardless of the judgment item. The same applies to the second embodiment.

[0102] Furthermore, in the above-mentioned embodiment, the judgment item information representing the judgment items is associated with the image data and stored in advance in the data storage unit 31 (FIG. 7), and when the acquisition unit 21 acquires the image data, the judgment item information is acquired and notified to the judgment item association unit 26. However, the present invention is not limited to this. For example, the judgment item information may be stored in advance in the data storage unit 31 without being associated with the image data, and the user of the appearance inspection device 1 may perform an operation to set one or more judgment items (also called inspection judgment items) via the operation unit 6, and learning processing and judgment processing related to the judgment items may be performed. In this case, the judgment items may be set for each individual image data, or the judgment items may be set comprehensively for multiple or all image data. Also, multiple judgment items may be set for each image data. The same applies to the second embodiment.

[0103] Furthermore, in the above-described embodiment, the threshold value to be compared with the degree of abnormality in the judgment unit 25 is switched depending on the judgment item of interest. However, the present invention is not limited to this, and for example, the threshold value may be a fixed value regardless of the judgment item of interest. The same applies to the second embodiment.

[0104] Furthermore, in the above-mentioned first embodiment, the feature extraction unit 27 (FIG. 7) of the feature processing unit 23 is configured as a neural network, and a weight parameter learned using a public data set or the like is used. In the second embodiment, the feature processing unit 223 is configured as an autoencoder. However, the present invention is not limited to this, and the feature processing unit 23 or 223 may be provided with various functional blocks that can calculate the degree of anomaly based on the feature using various machine learning mechanisms, and arithmetic processing may be performed using these. That is, in the present invention, the degree of anomaly based on the feature can be calculated using various well-known machine learning methods, and the determination process can be performed using this degree of anomaly.

[0105] Furthermore, in the above-described first embodiment, when performing the judgment process after the learning process, the feature stored in the feature storage unit 33 of the feature processing unit 23 is not updated, i.e., the learning model is not updated. However, the present invention is not limited to this. For example, in the judgment process after the learning process, when a feature is newly extracted by applying a frequency filter corresponding to the judgment item of interest to the learning image data, the feature stored in the feature storage unit 33 may be updated using the extracted feature as an update step.

[0106] Furthermore, in the above-mentioned first embodiment, the appearance inspection device 1 is provided with the imaging unit 7 (FIG. 1), and the image data captured by the imaging unit 7 is stored in the data storage unit 31. However, the present invention is not limited to this, and image data may be acquired from another device connected via the communication unit 4 and stored in the data storage unit 31. In this case, the other device may be, for example, a network camera having an imaging function similar to that of the imaging unit 7 or a communication function similar to that of the communication unit 4. In addition, the image data acquired from the other device may be associated with the judgment item information in advance by an external information processing device (not shown), or may be set by the user via the operation unit 6 (FIG. 1). In these cases, the imaging unit 7 may be omitted. The same applies to the second embodiment.

[0107] Furthermore, in the above-mentioned first embodiment, when a judgment result is obtained in the judgment process, a predetermined judgment screen display screen is displayed on the display unit 5 to inform the user of the judgment result. However, the present invention is not limited to this. For example, if the user has an information processing device having a communication function and a display function such as a smartphone or a tablet terminal, the information processing device may be configured to communicate information with the communication unit 4 (FIG. 1). In this case, information representing the judgment result may be transmitted from the communication unit 4 to the information processing device, and a predetermined screen representing the judgment result may be displayed on the information processing device. In this case, the display unit 5 and the operation unit 6 (FIG. 1) may be omitted from the appearance inspection device 1. The same applies to the second embodiment.

[0108] Furthermore, in the above-mentioned first embodiment, the image data obtained by imaging an object by the imaging unit 7 is treated as a processing target, and a frequency filter is applied to the image data before extracting a feature amount. However, the present invention is not limited to this. For example, in the inspection work of structures such as tunnels and bridges, various sound data collected by a microphone, such as sound data collected during a tapping test to inspect the internal condition, may be converted into a sound spectrogram, which is multidimensional data, by a well-known method, and the sound spectrogram may be regarded as two-dimensional image data. In this case, a frequency filter may be applied to the image data before extracting a feature amount. In other words, the present invention is not limited to two-dimensional image data obtained by imaging a three-dimensional space, but multidimensional data representing various physical quantities obtained from various objects by various acquisition methods may be converted into a two-dimensional image, and the image data representing the two-dimensional image may be treated as a processing target. The same applies to the second embodiment.

[0109] Furthermore, in the above-mentioned first embodiment, a configuration has been described in which the control unit 2 executes a program such as a learning processing program, and each functional block shown in Fig. 7 is configured by software. However, the present invention is not limited to this, and for example, at least a part of each functional block shown in Fig. 7 may be configured by hardware. The same applies to the second embodiment.

[0110] Furthermore, in the above-mentioned first embodiment, the configuration has been described in which each program, such as the learning process program, is stored in advance in the storage unit 3. However, the present invention is not limited to this, and for example, each program may be stored in a predetermined server device (not shown), and the program may be downloaded from the server device via a predetermined network (not shown) by the communication unit 4 (FIG. 1) and executed. The same applies to the second embodiment.

[0111] Furthermore, the present invention is not limited to the above-mentioned embodiments and other embodiments. That is, the scope of application of the present invention extends to embodiments in which the above-mentioned embodiments and the other embodiments are combined in part or in whole in any manner. The scope of application of the present invention also extends to embodiments in which a part of the configuration described in any of the above-mentioned embodiments and other embodiments is extracted and replaced or diverted with a part of the configuration of any of the above-mentioned embodiments and other embodiments, or an embodiment in which a part of the extracted configuration is added to any of the embodiments.

[0112] Furthermore, in the above-mentioned first embodiment, a form has been described in which the appearance inspection device 1 as a judgment device is configured by the acquisition unit 21 as an acquisition unit, the operation unit 6 as a reception unit, the judgment item corresponding unit 26 as a setting unit, the filter adaptation unit 22 as a filter adaptation unit, the feature amount processing unit 23 as a feature amount extraction unit, the abnormality degree calculation unit 24 as an evaluation value calculation unit, and the judgment unit 25 as a judgment unit. However, the present invention is not limited to this, and the judgment device may be configured by the acquisition unit, setting unit, filter adaptation unit, feature amount extraction unit, evaluation value calculation unit, and judgment unit having various other configurations. [Industrial Applicability]

[0113] The present invention can be used, for example, in an appearance inspection device installed in a factory where products are manufactured. [Explanation of symbols]

[0114] 1, 201...appearance inspection device, 2, 202...control unit, 3, 203...memory unit, 5...display unit, 6...operation unit, 7...imaging unit, 21...input unit, 22...filter adaptation unit, 23, 223...feature processing unit, 24, 224...anomaly calculation unit, 25...judgment unit, 26...judgment item response unit, 27, 227...feature extraction unit, 28...feature management unit, 229...feature update unit, TBL1...frequency filter table, TBL2...threshold table.

Claims

1. A method for generating a learning model that outputs features extracted from data relating to an object when the data is input, comprising the steps of: An acquisition step of acquiring the data having a plurality of determination items; a setting step of setting a frequency filter to be applied to the data for each of the judgment items; an adapting step of adapting the frequency filter to the data; a learning step of performing a learning process of the learning model using a teacher data set including the data to which the frequency filter has been applied and features to be extracted from the data; A learning model generation method comprising the steps of:

2. the data is multidimensional data, The frequency filter is a filter that represents processing related to spatial frequencies according to the position of the multidimensional data. The learning model generating method according to claim 1 .

3. The setting step includes setting a frequency filter to be applied to the data for each judgment item according to a judgment item of interest that is the judgment item to be focused on for the object. The learning model generating method according to claim 1 .

4. a post-event acquisition step of acquiring post-event data having a plurality of the judgment items after the learning process is performed by the learning step; a post-setting step of setting a frequency filter to be applied to the post-data for each of the judgment items; a post-adaptation step of adapting said frequency filter to said post-adaptation data; a feature extraction step of extracting posterior features from the posterior data to which the frequency filter has been applied; The learning model generating method according to claim 1, further comprising:

5. a determination step of determining a classification result based on the posterior feature amounts extracted by the feature amount extraction step; The learning model generating method according to claim 4, further comprising:

6. The determination step determines the classification result based on a comparison result between an evaluation value indicating a deviation between the feature amount and the posterior feature amount included in the teacher data set and a threshold value corresponding to the determination item to be determined for the object. The learning model generating method according to claim 5 .

7. an updating step of updating the learning model using the posterior features extracted in the feature extraction step; The learning model generating method according to claim 5, further comprising:

8. The feature extraction step performs the learning process using the learning model for each of the judgment items. The learning model generating method according to claim 5 .

9. The data is image data obtained by capturing an image of the object.

9. The learning model generating method according to claim 1, wherein the learning model generating method comprises:

10. The data is acoustic data collected from the object.

9. The learning model generating method according to claim 1, wherein the learning model generating method comprises:

11. An acquisition step of acquiring data on an object having a plurality of judgment items and the judgment item to be judged for the object among the plurality of judgment items; a setting step of setting a frequency filter to be applied to the data for each of the judgment items; an adapting step of adapting the frequency filter set in the setting step to the data; a determination step of performing a determination process based on the data to which the frequency filter has been applied; A method for determining whether or not a particular

12. The determining step includes: The determination process is performed using a learning model that has been subjected to a learning process using a teacher data set including the data to which the frequency filter has been applied and a feature amount to be extracted from the data. The method according to claim 11 .

13. a notification step of notifying a result of the determination process performed by the determination step; The method of claim 11 further comprising:

14. The determination step performs the determination process based on a threshold value corresponding to the determination item to be determined for the object. The method according to claim 11 .

15. For the information processing device, A learning model generation program that, when data on an object is input, generates a learning model that outputs a feature amount extracted from the data, An acquisition step of acquiring the data having a plurality of determination items; a setting step of setting a frequency filter to be applied to the data for each of the judgment items; an adapting step of adapting the frequency filter to the data; a learning step of performing a learning process of a learning model using a teacher data set including the data to which the frequency filter has been applied and features to be extracted from the data; A learning model generation program for executing the above.

16. For the information processing device, An acquisition step of acquiring data on an object having a plurality of judgment items; a receiving step of receiving at least one of the plurality of determination items; a setting step of setting a frequency filter to be applied to the data for each of the judgment items; an adapting step of adapting the frequency filter set in the setting step to the data; a determination step of performing a determination process based on the data to which the frequency filter has been applied; A judgment program for executing the above.

17. An acquisition unit that acquires data related to an object having a plurality of determination items; A reception unit that receives at least one of the plurality of determination items; a setting unit that sets a frequency filter to be applied to the data in accordance with the judgment item received by the reception unit; a filter adaption unit that adapts the frequency filter set by the setting unit to the data; a feature extraction unit that extracts features based on the data to which the frequency filter has been applied; an evaluation value calculation unit that calculates an evaluation value for the judgment item based on a stored feature amount that has been stored in advance and the feature amount; a determination unit that performs a determination process for the determination item of the object based on the evaluation value; A determination device comprising:

18. The stored feature amount is extracted in advance based on the learning data to which the frequency filter set in the setting unit is adapted, the learning data being the data for learning, which is acquired by the acquisition unit in advance, the frequency filter to be adapted to the learning data in accordance with the judgment item is set by the setting unit, and the filter adaptation unit adapts the frequency filter to the learning data.

18. The determination device according to claim 17.

19. The acquisition unit acquires image data representing the object as the data by capturing an image of the object.

18. The determination device according to claim 17.

20. an imaging unit that captures an image of an object having a plurality of determination items to obtain image data representing the object; A reception unit that receives at least one of the plurality of determination items; a check item response unit that provides information to each unit according to the check items received by the reception unit; a setting unit that sets a frequency filter to be applied to the image data in accordance with the determination item; a filter adaption unit that adapts the frequency filter set by the setting unit to the image data; a feature extraction unit that extracts features based on the image data to which the frequency filter has been applied; an evaluation value calculation unit that calculates an evaluation value for the judgment item accepted by the acceptance unit based on a stored feature amount that has been previously saved and the feature amount; a determination unit that performs a determination process for the determination item of the object based on the evaluation value; an output unit that outputs a result of the determination process; An appearance inspection apparatus comprising:

Citation Information

Patent Citations

  • Article image defect detection method and device based on convolutional neural network

    CN110766689A

  • Method and device for diagnosing coating degradation

    JP2010032511A

  • Information processing device, information processing method, and program

    JP2016114592A

  • Evaluation system, evaluation method, and evaluation program

    JP2022029155A

  • Defect pattern detection system and detection method for epitaxial wafer

    JP2022126019A