Method for creating data processing sequence, creation device, and computer program
By employing a reference table to restrict connections and ordering in genetic programming, the method efficiently identifies data processing sequences that meet predetermined conditions, addressing inefficiencies in conventional techniques.
Patent Information
- Application Number
- JP2023056837
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-11
AI Technical Summary
Conventional genetic programming techniques for generating image processing sequences lack restrictions on connection relationships between sequence elements, leading to inefficient identification of sequences that satisfy reference conditions, as they repeatedly evaluate multiple sequences without proper ordering or restrictions.
A method and device that generate data processing sequences by using a reference table to restrict connections based on prohibited element sets and connection probabilities, allowing efficient identification of sequences that meet predetermined conditions through genetic programming.
This approach enables the efficient generation of data processing sequences that satisfy reference conditions by restricting connections and ordering, reducing the number of sequences evaluated and improving identification efficiency.
Smart Images

Figure 2024143898000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to techniques for generating data processing sequences. [Background technology]
[0002] Conventionally, a technique for structurally expressing an individual as a tree structure by using genetic programming is known (Patent Document 1). In the conventional technique, a data processing sequence in which multiple image processing layers are combined in a tree structure is generated by using genetic programming. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-87055 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the technology of Patent Document 1, a plurality of image processing sequences are generated by using genetic programming, and the evaluation of the image processing sequences is repeated for each generation to identify an image processing sequence that satisfies a reference condition. However, in the conventional technology, since there is no restriction on the connection relationship between sequence elements of the image processing sequence, it is not possible to set the connection relationship that is preferable to limit the use according to the purpose of image processing, or to set the order of image processing layers. For this reason, it may become necessary to generate more image processing sequences until the reference condition is satisfied, and therefore, there may be cases where an image processing sequence that satisfies the reference condition cannot be efficiently identified. Such a problem is not limited to the technology of generating a plurality of image processing sequences using genetic programming to identify an image processing sequence that satisfies the reference condition, but is common to the technology of generating a plurality of data processing sequences to identify a data processing sequence that satisfies the reference condition. [Means for solving the problem]
[0005] According to a first aspect of the present disclosure, there is provided a method for generating a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements including (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. This generation method comprises the steps of (a) generating a reference table used to generate a plurality of data processing sequences that are candidates for the specific data processing sequence, (b) generating the plurality of data processing sequences using the reference table, and (c) identifying the specific data processing sequence that satisfies the reference condition from the plurality of data processing sequences, wherein the step (a) comprises the steps of: (a1) associating, in the reference table, non-occurrence data indicating that a specific element set that is prohibited from connection among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, and (a2) associating a connection reference value indicating the occurrence probability of an element set that appears as a component of the data processing sequence among the plurality of element sets, which is different from the specific element set with which the non-occurrence data is associated.
[0006] According to a second aspect of the present disclosure, there is provided an apparatus for generating a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements including (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. The generation device comprises a reference table generation unit that generates a reference table used to generate a plurality of data processing sequences that are candidates for the specific data processing sequence, a sequence generation unit that generates the plurality of data processing sequences using the reference table, and an identification unit that identifies the specific data processing sequence that satisfies the reference condition from the plurality of data processing sequences, wherein the reference table generation unit associates, in the reference table, non-occurrence data indicating that a specific element set that is prohibited from connection among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, and associates a connection reference value indicating the occurrence probability of an element set that appears as a component of the data processing sequence among the plurality of element sets, which is different from the specific element set with which the non-occurrence data is associated.
[0007] According to a third aspect of the present disclosure, there is provided a computer program for causing a computer to execute generation of a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements: (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. This computer program causes a computer to execute (a) a function of generating a reference table used to generate a plurality of data processing sequences that are candidates for the specific data processing sequence, (b) a function of generating the plurality of data processing sequences using the reference table, and (c) a function of identifying the specific data processing sequence that satisfies the reference condition from the plurality of data processing sequences, and the function (a) comprises, in the reference table, (a1) a function of associating, with a specific element set that is prohibited from connection, among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, non-occurrence data indicating that the element set is not to appear as a component of the data processing sequence, and (a2) a function of associating, with an element set among the plurality of element sets that is different from the specific element set with which the non-occurrence data is associated, a connection reference value indicating the occurrence probability of the element set appearing as the component of the data processing sequence. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram for explaining a generation system according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating a storage device. [Diagram 3] FIG. 13 is a diagram showing an example of learning data. [Figure 4] FIG. 1 is a diagram for explaining a gene table. [Diagram 5] A diagram to explain a population in one generation. [Figure 6] FIG. 13 is a diagram showing a data processing sequence of a tree structure generated by a gene translation unit. [Figure 7] FIG. 13 is a diagram for explaining a reference table. [Figure 8] 11 is a flowchart showing a process executed by the generating device. [Figure 9] 11 is a detailed flowchart of the reference table generation process in step S10. [Figure 10] 13 is a detailed flowchart of a reference table initialization process. [Figure 11] FIG. 1 is a diagram for explaining a process for generating a reference table. [Figure 12] FIG. 2 is a second diagram for explaining the generation process of the reference table; [Figure 13] FIG. [Figure 14] FIG. 3 is a diagram for explaining the generation process of the reference table; [Figure 15] 11 is a detailed flowchart of a generation process of a specific data processing sequence. [Figure 16] FIG. 11 is a detailed flowchart of step S308. [Figure 17] FIG. 11 is a diagram for explaining the processing from step S316 to step S322. [Figure 18] FIG. 13 is a diagram showing an occurrence range table showing the relationship between genes and occurrence ranges. [Figure 19] FIG. 13 is a diagram showing an occurrence range table showing the relationship between genes and occurrence ranges. [Figure 20] FIG. 13 is a diagram showing an occurrence range table showing the relationship between genes and occurrence ranges. [Figure 21] FIG. 13 is a diagram showing an occurrence range table showing the relationship between genes and occurrence ranges. [Figure 22] 13 is a flowchart of a usage process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] A. Embodiment: FIG. 1 is a diagram for explaining a generating system 10 according to an embodiment. The generating system 10 includes a generating device 20 and a sensor device 200. The generating device 20 and the sensor device 200 can transmit and receive data by wire or wirelessly. The sensor device 200 is a sensor that acquires a physical quantity of an object, and may be an imaging device that detects the intensity of light, which is a physical quantity, to generate an image, or a voltage sensor that acquires a voltage, which is a physical quantity. In this embodiment, the sensor device 200 is an imaging device. The captured image acquired by the sensor device 200 is transmitted to the generating device 20.
[0010] The generating device 20 has a sequence generating function for generating a specific data processing sequence DSq for obtaining desired data after data processing, a reference table generating function, and a data processing function using the specific data processing sequence DSq. The reference table generating function is a function for generating a reference table 88 to be referred to when executing the sequence generating function. The data processing function is a function for processing input data using the data processing sequence Sq.
[0011] For example, the generating device 20 automatically generates a specific data processing sequence DSq for obtaining desired data for achieving a desired purpose based on a captured image. For example, the generating device 20 uses the captured image to process an image of a circuit board, which is an industrial product captured by the sensor device 200, using the specific data processing sequence DSq, and outputs a binary image in which defective parts are represented as black images and other parts are represented as white images as a desired image. Based on this binary image, the presence or absence and position of defective parts are specified by a user or a device, and an industrial product is inspected. For example, the generating device 20 may automatically generate a specific data processing sequence DSq for determining the type of input data based on a captured image, which is input data, and outputting one or more scalar quantities according to the input data. The type of input data is a determination result according to the input data, for example, a label determination result output from a machine learning model as a data processing layer. The scalar quantity according to the input data is a temperature or voltage value, for example, an output result output by regression analysis using a machine learning model as a data processing layer.
[0012] The sequence generation function generates a plurality of data processing sequences Sq using genetic programming, and identifies a specific data processing sequence DSq for obtaining desired data after data processing from the plurality of generated data processing sequences Sq. The reference table generation function generates a reference table 88 for determining which sequence element the numerical value VG of the gene arranged at the gene locus corresponds to. In this embodiment, the sequence generation function, the reference table generation function, and the data processing function are mounted on one generating device 20, but are not limited to this. In other embodiments, the sequence generation function, the reference table generation function, and the data processing function may be mounted on separate devices, or may exist on a cloud.
[0013] The generating device 20 is an electronic calculator such as a personal computer. The generating device 20 includes a processor 25, a storage device 70, an input unit 150, and a display unit 160. The processor 25 controls the operation of the generating device 20 by executing various programs stored in the storage device 70. Detailed functions of the processor 25 will be described later. The storage device 70 is composed of memories such as RAM and ROM. The storage device 70 stores various programs for implementing the various functions of the processor 25 and various data used to generate the data processing sequence Sq. Details of the storage device 70 will be described later. The input unit 150 is an interface that accepts information from the outside. The input unit 150, for example, accepts input of a captured image from the sensor device 200, or accepts input of an image generated by a user using another device. The display unit 160 displays various information. The display unit 160 is, for example, a liquid crystal monitor.
[0014] The processor 25 executes various programs in the storage device 70 to function as a sequence generation unit 30, a data processing unit 40, an identification unit 50, a reference table generation unit 55, and a display control unit 60. Note that some of the functions executed by the processor 25 may be realized by a hardware circuit. Here, in this disclosure, the term "processor" includes a CPU and a GPU.
[0015] The sequence generation unit 30 generates a sequence set composed of a plurality of data processing sequences Sq with different combinations of sequence elements by structurally expressing the gene sequence indicated by the individual IV like a tree structure. The data processing sequence Sq is expressed by a combination of a plurality of sequence elements. The sequence element has (i) a data input layer which is a node for inputting data, (ii) a data processing layer which is an intermediate node between the data input layer and the data output layer, and (iii) a data output layer which is a node for outputting output data PM which is the final data after data processing. The data processing sequence Sq is composed of a data input layer, at least two data processing layers, and a data output layer. Note that at least two data processing layers constituting the data processing sequence may be processing layers which output the input data as it is.
[0016] The sequence generation unit 30 includes an individual generation unit 32 and a gene translation unit 34. The individual generation unit 32 generates an individual IV composed of a plurality of genes arranged one-dimensionally or two-dimensionally based on a genetic algorithm. Each gene constituting the individual IV is a numerical value representing a data input layer and a type of a data processing layer, which is a data processing layer in this embodiment. A data input layer and a different data processing layer are assigned to each numerical range indicating an appearance range. That is, the individual IV is generated by arranging genes corresponding to each of the data input layer and the data processing layer. The individual generation unit 32 generates a predetermined number of individual IVs for each generation. In this embodiment, the individual generation unit 32 generates an individual IV of a predetermined gene length by arranging genes one-dimensionally. In each generation, the combination of sequence elements of the plurality of data processing sequences Sq is different. For the first generation, the individual generation unit 32 randomly arranges a numerical value from 0 to 1 up to the third decimal place as a gene in each gene locus of the individual IV, thereby generating an individual group 84 composed of a plurality of individual IVs. For the second generation and onwards, the individual generation unit 32 generates new individuals IVs from the individuals IVs of the previous parent generation that have high evaluation values, which will be described later, using at least one of crossover and mutation, thereby generating a population 84 that is a collection of the newly generated individuals IVs and individuals IVs maintained in the parent generation, i.e., individuals IVs that are duplicates of the individual IVs of the parent generation.
[0017] The gene translation unit 34 translates each gene of the individual IV by referring to a gene table 82 and a reference table 88 (described later) stored in the storage device 70, to generate a data processing sequence Sq represented in a tree structure. The gene table 82 and the reference table 88 are tables that define the data processing layers corresponding to each numerical range of the numerical values, which are genes, and the connection relationships of each sequence element. The data processing sequence Sq is represented by the individual IV and the gene table 82, or the individual IV and the reference table 88.
[0018] The data processing unit 40 processes the data input to the data input layer using the data processing sequence Sq generated by the gene translation unit 34 or a specific data processing sequence DSq stored in the memory device 70, and outputs the processed output data PM from the data output layer.
[0019] The identification unit 50 compares output data PM, which is an image obtained by data processing the learning image LM using the data processing sequence Sq indicated by the individual IV, with target data TM, which is a target associated with the learning image LM, to calculate an evaluation value EV indicating a similarity SD between the output data PM and the target data TM. The identification unit 50 calculates an evaluation value EV for each of a plurality of data processing sequences Sq indicated by a plurality of individuals IV in one generation G. The calculated evaluation value EV is stored in the storage device 70 in association with the individual IV. The identification unit 50 also uses the calculated evaluation value EV to determine whether the data processing sequence Sq satisfies a predetermined reference condition, and identifies the data processing sequence Sq that satisfies the reference condition as a specific data processing sequence DSq.
[0020] As the evaluation value EV, for example, one of the mean squared error (MSE), the peak signal-to-noise ratio (PSNR), and the structural similarity (SSIM) can be used. When the MSE is used as the evaluation value, the smaller the MSE value, the higher the similarity SD between the output data PM and the target data TM. In other words, the inverse of the MSE indicates the similarity SD. When the PSNR is used as the evaluation value EV, the larger the PSNR, the higher the similarity SD between the output data PM and the target data TM. In other words, the PSNR indicates the similarity SD. When the SSIM is used, for example, an image is divided into small regions, and the MSSIM (Mean SSIM), which is the average value of the SSIM calculated for each small region, is used as the evaluation value EV. When the MSSIM is used as the evaluation value EV, the larger the MSSIM, the higher the similarity SD. In other words, the MSSIM indicates the similarity SD. When the input data ID indicates a discrimination result such as whether the product is good or bad, the similarity SD may be, for example, the matching rate between the output data PM and the target data TM corresponding to a plurality of input data IDs.
[0021] The reference table generating unit 55 generates a reference table 88 used to generate a plurality of data processing sequences Sq that are candidates for the specified data processing sequence DSq. The reference table generating unit 55 generates the reference table 88 by using the evaluation value EV calculated by the specifying unit 50 and the individual IV associated with the evaluation value EV. The reference table 88 is a table in which a connection reference value RV indicating an appearance probability of an element set, which is a pair of sequence elements on the input side and the output side connected to each other, is associated with the element set. The connection reference value RV is an index indicating the compatibility of a connection for processing input data and outputting desired data aimed at the target data TM. The desired data is data that matches the target data TM or is similar to the target data TM. A method for generating the reference table 88 and the details of the reference table 88 will be described later.
[0022] The display control unit 60 causes various information to be displayed on the display unit 160. The display control unit 60 causes the display unit 160 to display, for example, a specific data processing sequence DSq, output data PM, target data TM, and an evaluation value EV.
[0023] FIG. 2 is a diagram for explaining the storage device 70. The storage device 70 stores learning data 74, a sequence element group 80, a gene table 82, a population 84, a reference table 88, a specific data processing sequence DSq, various conditions 92, and various programs 94. The specific data processing sequence DSq is a data processing sequence Sq determined by the determination unit 50 to satisfy a predetermined reference condition. The specific data processing sequence DSq is represented, for example, by a layer identifier that identifies a plurality of data processing layers that are a plurality of data processing layers, and the order of the layer identifiers, that is, a connection relationship. The various conditions 92 store various conditions in the sequence generation function, the reference table generation function, and the data processing function. The various conditions 92 are, for example, a reference condition used in the sequence generation function, information used in the reference table generation function, and the like. The various programs 94 are programs executed by the processor 25.
[0024] FIG. 3 is a diagram showing an example of the learning data 74. The learning data 74 has a plurality of learning sets SM each composed of learning data LM, which is a data processing target by the data processing sequence Sq, and target data TM associated with the learning data LM. The learning data LM is, for example, an image of a circuit board, which is an industrial product. The target data TM is a binarized image in which a defective portion DA is represented as a black image and the other portion is represented as a white image. The target data TM is generated, for example, by a user setting the defective portion DA to a black image and setting the other portion to a white image with reference to the learning data LM in which the location of the defective portion has been specified in advance. Each of the plurality of learning data LM is an image obtained by capturing an image of the same type of circuit board having a different manufacturing number by the sensor device 200. An identification number is assigned to each of the learning data LM and each of the target data TM corresponding to each of the learning data LM. Note that, in another embodiment, the target data TM does not need to be the same type of data as the learning data LM, and the target data TM is set according to the purpose of the data processing by the specific data processing sequence DSq. For example, when the specific data processing sequence DSq is intended to discriminate between labels such as pass / fail for the input data, the target data TM becomes a label indicating a pass / fail item associated with the input data.
[0025] The sequence element group 80 in Fig. 2 includes a plurality of data processing layers that are candidates for sequence elements in the data processing sequence Sq. Examples of the plurality of data processing layers include an average value filter, a maximum value filter, a minimum value filter, a binarization filter, a moving average filter, a Laplacian filter, a Gaussian filter, a Sobel filter, a gamma correction filter, and a filter that combines two images into one image. The plurality of data processing layers may also include a processing layer that extracts features of input data, a processing layer that reduces the amount of data, and a processing layer that performs discrimination processing and regression processing of input data using an algorithm such as a machine learning model. Note that even if the data processing layers are the same type, if the parameter values such as kernel size and coefficients are different, they may be stored in the sequence element group 80 as different data processing layers.
[0026] The gene table 82 is a table showing the connection relationships of sequence elements that are candidates for the data processing sequence Sq, and the correspondence relationships between the types of data processing layers that correspond to the numerical values indicated by the genes.
[0027] FIG. 4 is a diagram for explaining the gene table 82. In the following, for ease of understanding, it is assumed that the sequence element group 80 is composed of five data processing layers FtA to FtE. In reality, more than five data processing layers may be stored in the sequence element group 80. In the gene table 82, the number of inputs, the number of outputs, and the appearance range are specified for each element type indicating the type of the data processing layer. The element type indicates the type of each data processing layer or data input layer of the sequence element group 80. In FIG. 4, the element type of the data input layer is represented by "in". The number of inputs indicates the number of sequence elements connected to the input side of the data processing layer or the data input layer. When the number of inputs is "2", data output from two sequence elements is input to the data processing layer. The number of outputs indicates the number of sequence elements connected to the output side of the data processing layer. In this embodiment, the number of outputs is all "1", and the data processing layer or the data input layer is connected to one sequence element on the output side. In addition, the gene table 82 of this embodiment specifies, for each output sequence element, the element type and occurrence range of the input sequence element that is a candidate for connection to the output sequence element, but the gene table 82 in Figure 4 is shown in a simplified form for ease of understanding.
[0028] The range of the gene value VG is defined as the range of the gene value in the gene table 82. In this embodiment, the range of the gene value is set by dividing the value of 0 to 1 into six equal parts so that each data processing layer appears randomly in the data processing sequence Sq with equal probability. For example, if the gene value VG is a value equal to or greater than 0 and less than 0.167, the data processing layer FtA is assigned to this gene. Note that, for the gene table 82 of this embodiment, the initialization of the reference table 88 described later does not set the range of appearance for the element set of the input side sequence element and the output side sequence element associated with non-appearing data, and the range of appearance is set so that the remaining element sets appear with equal probability. Non-appearing data indicates that it is not to appear as a component of the data processing sequence Sq. In other words, the element set associated with non-appearing data described later does not appear as a component of the data processing sequence.
[0029] The population 84 shown in FIG. 2 is a set of a plurality of individuals IV in one generation generated by the individual generation unit 32. FIG. 5 is a diagram for explaining the population 84 of one generation G. In this embodiment, an example in which five individuals IV1 to IV5 are generated in one generation G will be explained. In each of the individuals IV1 to IV5, a plurality of loci in which genes are arranged are arranged in a one-dimensional manner. The gene lengths of each of the individuals IV1 to IV5 are the same, and each of the individuals IV1 to IV5 is configured by arranging genes in order in loci No. 1 to No. 10. The individual generation unit 32 arranges genes expressed by a numerical value from 0 to 1 up to three decimal places at each locus. That is, in this embodiment, the value that a gene can take at each locus is a numerical value from 0 to 1 up to three decimal places.
[0030] Before further explaining Fig. 2, the generation process of the data processing sequence Sq by the gene translation unit 34 will be described with reference to Fig. 6. Fig. 6 is a diagram showing the tree-structured data processing sequence Sq generated by the gene translation unit 34. The data processing sequence Sq shown in Fig. 6 is the data processing sequence Sq1 generated based on the individual IV1 shown in Fig. 5.
[0031] In this embodiment, there are two types of processes for generating the data processing sequence Sq by the gene translation unit 34: a pre-generation process and a specific generation process. The pre-generation process is a process executed when the reference table generation function is executed to generate the reference table 88. The specific generation process is a process executed when the sequence generation function using the reference table 88 is executed. The difference is that the table referred to when generating the data processing sequence Sq is the gene table 82 in the pre-generation process and the reference table 88 in the specific generation process. Since the algorithm for generating the data processing sequence Sq from the individual IV is the same in the pre-generation process and the specific generation process, the generation of the data processing sequence Sq in the pre-generation process will be described below first.
[0032] In the pre-generation process, the gene translation unit 34 generates a data processing sequence Sq in a tree structure in the order from the data output layer out side to the input side using the individual IV, the gene table 82, and the sequence element group 80. As shown in FIG. 6, the gene translation unit 34 first sets the data output layer out as a terminal node that is the end of the output side, and generates the data processing sequence Sq by connecting sequence elements to the input side in the order of the arrangement of the genes of the individual IV. The connection of the sequence elements is performed according to a predetermined connection rule. In this embodiment, the data processing sequence Sq is generated according to a depth-first rule that prioritizes arrangement from the terminal node side in the order of the arrangement of the genes, and prioritizes arrangement of the left connection destination shown in FIG. 6 over the right connection destination. That is, the data processing layer or the data input layer in is arranged from the data output layer out side in the order of the arrangement of the genes, and when the input side is divided into a plurality of parts, the left side is prioritized until the left sequence becomes the data input layer in. In this embodiment, the number of inputs of the data output layer out is preset to "1".
[0033] The gene translation unit 34 refers to the gene table 82 and the numerical value VG of the gene No. 1 of the individual VI1, "0.534", and identifies that "0.534" is within the appearance range of the data processing layer FtD. As a result, the data processing layer FtD is connected to the input side of the data output layer out. Next, the gene translation unit 34 refers to the gene table 82 and identifies that the number of inputs of the data processing layer FtD is "2", thereby arranging two sequence elements on the input side of the data processing layer FtD. Specifically, the gene translation unit 34 arranges a sequence element corresponding to the gene No. 2 of the individual VI1 at the left input side connection destination shown in FIG. 6. That is, the gene translation unit 34 refers to the gene table 82 and the numerical value VG of the gene No. 2, and identifies that "0.292" is within the appearance range of the data processing layer FtB. As a result, the data processing layer FtB is arranged at the left input side connection destination of the data processing layer FtD.
[0034] Next, the gene translation unit 34 refers to the data processing layer FtB represented by the gene No. 2 and the gene table 82, and determines that the number of inputs of the data processing layer FtB is "1", thereby placing one sequence element on the input side of the data processing layer FtB. Specifically, the gene translation unit 34 refers to "0.462", which is the numerical value VG of the gene No. 3, and the gene table 82, and determines that "0.462" is within the appearance range of the data processing layer FtC. As a result, the data processing layer FtC is placed at the input side connection destination of the data processing layer FtB represented by the gene No. 3.
[0035] Next, the gene translation unit 34 refers to the data processing layer FtC represented by the gene No. 3 and the gene table 82, and determines that the number of inputs of the data processing layer FtC is "1", thereby arranging one sequence element on the input side of the data processing layer FtC. Specifically, the gene translation unit 34 refers to "0.856", which is the numerical value VG of the gene No. 4, and the gene table 82, and determines that "0.856" is within the appearance range of the data input layer in. As a result, the data input layer in is arranged as the input side connection destination of the data processing layer FtC represented by the gene No. 3. This completes the generation of the left side sequence of the data processing sequence Sq in FIG. 6.
[0036] Next, the gene translation unit 34 places a sequence element corresponding to gene No. 5 of individual VI1 in the input side connection destination on the right side shown in Fig. 6. That is, the gene translation unit 34 refers to "0.138", which is the numerical value VG of gene No. 5, and the gene table 82, and determines that "0.138" is within the occurrence range of data processing layer FtA. As a result, the data processing layer FtA is placed in the input side connection destination on the right side of data processing layer FtD.
[0037] Furthermore, the gene translation unit 34 refers to the data processing layer FtA represented by the gene No. 5 and the gene table 82, and determines that the number of inputs to the data processing layer FtA is "1", thereby placing one sequence element on the input side of the data processing layer FtA. Specifically, the gene translation unit 34 refers to "0.932", which is the numerical value VG of the gene No. 6, and the gene table 82, and determines that "0.932" is within the occurrence range of the data input layer in. As a result, the data input layer in is placed as the input side connection destination of the data processing layer FtA represented by the gene No. 5. This completes the generation of the right-side sequence of the data processing sequence Sq in FIG. 6.
[0038] When all the input side sequence elements become the data input layer in, the gene translation unit 34 ends the generation process of the data processing sequence Sq using the pre-generation process even if not all the genes of the individual IV1 are used. Note that when all the genes of the individual IV1 are used and not all the input side sequence elements become the data input layer in, the gene translation unit 34 ends the generation process of the data processing sequence Sq by setting the data processing layer in to the remaining unconnected input side sequence elements.
[0039] The data processing sequence Sq1 represented by the individual VI1 has two data input layers in. The input data input to one of the data input layers in is data-processed by a data processing layer FtC, and then by a data processing layer FtB to generate first processed data. The input data input to the other data input layer in is data-processed by a data processing layer FtA to generate second processed data. The first processed data and the second processed data are data-processed by a data processing layer FtD, and one piece of output data PM after data processing is output by a data output layer out.
[0040] The reference table 88 shown in FIG. 2 is referred to when the gene translation unit 34 generates the data processing sequence Sq from the individual IV by the specific generation process. FIG. 7 is a diagram for explaining the reference table 88. The reference table 88 specifies an input side identifier indicating the type of the input side sequence element that is a candidate to be placed on the input side, an output side identifier indicating the type of the output side sequence element that is a candidate to be connected to the input side sequence element, the number of inputs, the number of outputs, the average value ARV as the connection reference value RV, and "-1" that is non-occurring data. The input side sequence elements are the data processing layers FtA to FtE and the data input layer in. The output side sequence elements are the data processing layers FtA to FtE and the data output layer out. That is, the reference table 88 specifies a plurality of element sets that are pairs of input side and output side sequence elements that are connection candidates. The number of inputs indicates the number of sequence elements that are connected to the input side of the input side sequence element. The number of outputs indicates the number of sequence elements that are connected to the output side of the input side sequence element. The average value ARV as the connection reference value RV is a value specified for each element set, and indicates the compatibility of the connection for processing input data and outputting the desired data aimed at the target data TM. For example, the average value ARV of an element set in which the data processing layer FtA is connected to the input side and the data processing layer FtC is connected to the output side is "0.478". The average value ARV is determined by the reference table generation function. In the sequence generation function for generating a plurality of data processing sequences Sq to obtain a specific data processing sequence DSq, the gene translation unit 34 generates the data processing sequence Sq using the reference table 88 instead of the gene table 82. The appearance range of each sequence element is set so that the larger the connection reference value, the larger the appearance range. In addition, in the reference table 88, "-1" is associated with a specific element set that is prohibited from being connected among the plurality of element sets as non-appearance data indicating that it is not to be made to appear as a component of the data processing sequence Sq. The reference table 88 will be described in detail later. In this embodiment, the desired data is a binarized image in which defective parts are displayed as black images and other parts are displayed as white images, and is the same image as the target data TM shown in FIG.
[0041] 8 is a flowchart showing the processing executed by the generating device 20. The reference table generating function of the generating device 20 first executes processing to generate a reference table 88 in step S10. Next, the sequence generating function of the generating device 20 executes processing to generate a specific data processing sequence DSq using the reference table 88 in step S30. Next, the data processing function of the generating device 20 executes processing to utilize the specific data processing sequence DSq in step S50.
[0042] Fig. 9 is a detailed flowchart of the generation process of the reference table 88 in step S10. Fig. 10 is a detailed flowchart of the initialization step of the reference table 88. Fig. 11 is a first diagram for explaining the generation process of the reference table 88. Fig. 12 is a second diagram for explaining the generation process of the reference table 88. Fig. 13 is a diagram showing a type condition table 925. Fig. 14 is a third diagram for explaining the generation process of the reference table 88.
[0043] As shown in FIG. 9, first, in step S100, the storage device 70 stores a plurality of data processing layers, which are sequence elements, as a sequence element group 80. Step S100 is executed by a user inputting a plurality of data processing layers, which are candidates for use in a specific data processing sequence DSq, to the generating device 20. That is, step S100 is a process of accepting an input of a plurality of data processing layers, which are candidates for sequence elements of a specific data processing sequence DSq. In addition, in step S101, the storage device 70 stores learning data 74, which is composed of a plurality of learning sets SM. Step S101 is executed by a user inputting the learning data 74 to the generating device 20. In addition, in step S102, the reference table generating unit 55 executes an initialization process of initializing the reference table 88.
[0044] In the initialization step of the reference table 88, as shown in FIG. 11, for example, the reference table generating unit 55 associates each element set of the input side sequence element and the output side sequence element with either "1" as an initial value or "-1" as non-occurrence data. The non-occurrence data is data indicating that a specific element set, which is prohibited from being connected, among a plurality of element sets is not to be made to appear as a component of the data processing sequence Sq. The initial value is not limited to "1" and may be any value within a preset range of values that the connection reference value RV may take, which is between 0 and 1. The non-occurrence data is not limited to "-1" and may be any value outside the range of values that the connection reference value RV may take. In this way, the generating device 20 can easily distinguish between the non-occurrence data and the connection reference value RV in the reference table 88. Here, each element set in the reference table 88 is represented by ES[input side identifier, output side identifier]. For example, the element set ES[0,5] indicates an element set in which the data processing layer FtA is arranged on the input side and the data output layer out is arranged on the output side. The initialization process will be described in detail below.
[0045] As shown in FIG. 10, in the initialization process of the reference table 88, in step S103, an initial value of "1" is associated with each element set to set the reference table 88.
[0046] Next, in step S104, the reference table generating unit 55 identifies a specific element set based on the input information, and sets the identified specific element set by associating it with non-occurring data instead of the initial value. The input information is information input to the generating device 20 by the user, and is stored in various conditions 92 shown in FIG. 2. The input information is information indicating a specific element set that is an element set to associate with non-occurring data. In other words, step S104 is a process for associating non-occurring data with a specific element set based on an instruction from the user. Note that if the input information is not stored in the storage device 70, the reference table generating unit 55 does not associate non-occurring data with the input information.
[0047] For example, in step S104, if the information indicated by the input information is the element set ES[5,5],[4,4], as shown in FIG. 11, the non-occurring data "-1" is associated with an element set whose input side is the input layer in and whose output side is the output layer out, and an element set whose input side is the data processing layer FtE and whose output side is the data processing layer FtE, instead of the initial value.
[0048] As shown in FIG. 10, in step S106, the reference table generating unit 55 specifies a specific element set according to the set order, and sets the specified specific element set by associating non-appearing data with the specified specific element set instead of the initial value. For example, the specific data processing sequence DSq may include a plurality of data processing steps that are set in advance, and the order of the plurality of data processing steps may be predetermined as the set order. Each of the plurality of data processing steps may be executed using at least one data processing layer. That is, the data processing steps to be performed on the input data to obtain the desired data and the order of the data processing steps may be predetermined by the user. Information indicating the set order is input to the generating device 20 by the user and stored in the various conditions 92 shown in FIG. 2. The data processing step may be a step of outputting the input data as it is.
[0049] As shown in FIG. 12, when there are a first processing step and a second processing step as data processing steps, the information indicating the setting order is information indicating that the first processing step is executed after the input layer in, the second processing step is executed after the first processing step, and data is output from the output layer out after the execution of the second processing step. Here, the data processing layers that can be used in the first processing step are data processing layers FtA and FtB, and the data processing layers that can be used in the second processing step are data processing layers FtC, FtD, and FtE. The correspondence between each step and the data processing layers that can be used in each step is stored in the storage device 70 in advance. In this case, the reference table generating unit 55 specifies an element set that is in a different order from the setting order as a specific element set, and associates the specified element set with the non-occurring data "-1" instead of the initial value. Note that, when the information indicating the setting order is not stored in the storage device 70, the reference table generating unit 55 does not associate the non-occurring data with the information indicating the setting order.
[0050] 10, in step S108, the reference table generating unit 55 determines the type of each of the multiple data processing layers that are input to the generating device 20 and accepted and stored as the sequence element group 80, and identifies a specific element set according to the determined type. In step S108, the reference table generating unit 55 sets the identified specific element set by associating non-occurrence data instead of an initial value. The type of the data processing layer is classified according to the type of data output from the data processing layer, for example. In this embodiment, the reference table generating unit 55 identifies the type of the data processing layer and the specific element set by referring to a type condition table 925 shown in FIG. 13. The type condition table 925 is a part of the various conditions 92 shown in FIG. 2, and is stored in advance in the storage device 70 by input to the generating device 20 by a user.
[0051] As shown in FIG. 13, the types of data processing layers in this embodiment include a first type indicating a first specific data processing layer and a second type indicating a second specific data processing layer. The first specific data processing layer is a processing layer that determines the type of data for data input to the first specific data processing layer and outputs the data. The first specific data processing layer that determines the type of data may be a data processing layer having an algorithm that can determine the type of input data, and is, for example, a data processing layer having an algorithm that can output a discrimination result such as a classification tree model, a neural network, or a k-nearest neighbor method. The second specific data processing layer is a processing layer that outputs a scalar amount according to the data input to the second specific data processing layer. The scalar amount that is output may be one or more. The second specific data processing layer that outputs a scalar amount is, for example, a data processing layer having an algorithm that performs regression analysis such as a regression tree model or a neural network.
[0052] The type condition table 925 may register information for identifying the specific processing layers of the first specific data processing layer and the second specific data processing layer, for example, a processing layer identifier, or may register definitions of the first specific data processing layer and the second specific data processing layer. When a processing layer identifier is registered in the type condition table 925, the reference table generating unit 55 determines whether or not there is a data processing layer having the same layer identifier among the multiple data processing layers of the sequence element group 80, and identifies the first specific data processing layer and the second specific data processing layer. On the other hand, when a definition of the first specific data processing layer and the second specific data processing layer is registered in the type condition table 925, the reference table generating unit 55 analyzes the algorithm of the data processing layer and identifies a data processing layer that matches the definition as the first specific data processing layer and the second specific data processing layer among the multiple data processing layers of the sequence element group 80.
[0053] If the determined type is the first type indicating the first specific data processing layer in step S108, the reference table generating unit 55 identifies an element set different from the first element set, i.e., an element set other than the first element set, as a specific element set among the multiple element sets. Then, in step S108, the reference table generating unit 55 associates non-occurring data "-1" with the identified element set instead of the initial value. The first element set is defined in the type condition table 925, and is an element set in which the sequence element on the input side is the first specific data processing layer and the sequence element on the output side is the data output layer out.
[0054] Furthermore, in step S108, when the determined type is the second type indicating the second specific data processing layer, the reference table generating unit 55 identifies an element set different from the second element set, i.e., an element set other than the second element set, as a specific element set among the multiple element sets. Then, in step S108, the reference table generating unit 55 associates non-occurring data "-1" with the identified element set instead of the initial value. The second element set is defined in the type condition table 925, and is an element set in which the sequence element on the input side is the second specific data processing layer and the sequence element on the output side is the data output layer out.
[0055] In step S108, if the type condition table 925 is not stored in the storage device 70, association of non-occurring data according to the type of data processing layer is not performed. As described above, steps S104 to S108 are the process of associating non-occurring data with a specific element set.
[0056] By executing the above-mentioned processes of steps S103 to S108 shown in FIG. 10, the initialization process of the reference table 88 in step S102 is completed. Note that the order of steps S104, S106, and S108 in step S102 is not limited to the above, and can be executed in any order. In addition, in the initialization process of the reference table 88, in step S103, initial values are set to all element sets first, but this is not limited. For example, in step S103, the reference table generating unit 55 may blank out the columns corresponding to all element sets in the reference table 88, and then associate non-occurring data with the specific element set identified in steps S104 to S108. In this case, the reference table generating unit 55 sets initial values in association with element sets not associated with non-occurring data in the reference table 88.
[0057] 9, in step S123, the individual generation unit 32 generates an individual group 84 consisting of a plurality of individuals IV for the current generation G. The individual group 84 in one generation G is composed of a plurality of individuals IV1 to IV5. The generated individual group 84 is stored in the storage device 70. Next, in step S124, the gene translation unit 34 selects one of the individuals IV1 to IV5, and translates the selected one individual IV by referring to the gene table 82 to generate a data processing sequence Sq.
[0058] Next, in step S125, the data processing unit 40 processes the multiple learning data LM using the data processing sequence Sq generated in step S104 to generate multiple output data PM. Next, in step S109, the identification unit 50 compares the multiple output data PM generated in step S105 with the target data TM associated with the learning data LM from which the multiple output data PM were generated, and calculates multiple evaluation values EV to evaluate the processing result. The identification unit 50 uses the average value of the multiple evaluation values EV as the final evaluation value EV indicating the similarity SD. Furthermore, in step S109, the identification unit 50 calculates the connection reference value RV from the final evaluation value EV. In this embodiment, the identification unit 50 uses the similarity SD as the connection reference value RV. That is, when the final evaluation value EV is the mean square error, the connection reference value RV is the reciprocal of the evaluation value EV. Furthermore, when the final evaluation value EV is PNSR, MSE, or SSIM, the value of the evaluation value EV is used as the connection reference value RV.
[0059] Next, in step S130, the reference table generating unit 55 executes the update of the reference table 88. For example, a case where the connection reference value RV calculated from the final evaluation value EV of the data processing sequence Sq1 shown in FIG. 6 is "0.800" will be described. First, the reference table generating unit 55 extracts all element sets of a pair of input side sequence elements and output side sequence elements constituting the data processing sequence Sq1. Then, the reference table generating unit 55 adds the connection reference value RV "0.800" to a column representing an element set that is not associated with "-1" which is non-occurrence data among the extracted element sets, that is, to a value associated with the element set. Here, the average value ARV is specified as the final connection reference value RV in a column representing one element set in the reference table 88. In other words, the nth connection reference value RV n The average ARV of a set of elements calculated by adding n is calculated using the following formula (A). The denominator on the right side of formula (A) is "n+1" because an initial value is set.
[0060] ARVn ={RV n +ARV n-1 ×n} / (n+1)...Formula (A) Here, RV n is the connection reference value added at the nth time, and ARV n-1 is the average value specified in the previous element set column.
[0061] When the data processing sequence Sq1 has the same element set, the connection reference value RV may be added as many times as the number of the same element sets, or the connection reference value RV may be added only once. In this embodiment, even when there are a plurality of the same element sets in one data processing sequence Sq1, the connection reference value RV is added only once. When the element set of the input side sequence element and the output side sequence element is expressed as [input side sequence element, output side sequence element], the data processing sequence Sq1 shown in FIG. 6 has the following element sets. For each of the following element sets, the reference table generating unit 55 calculates the average value ARV by adding the connection reference value "0.800" to the column of each element set in the corresponding reference table 88 as shown in FIG. 14. <Element set to be added> ES[3,5],ES[1,3],ES[2,1],ES[5,2],ES[0,3],ES[5,0]
[0062] As described above, step S130 is a process of associating a connection reference value RV with an element set, among a plurality of element sets, that is different from the specific element set with which the non-occurrence data is associated.
[0063] 9, in step S131, reference table generating unit 55 determines whether or not the processes of steps S124 to S130 have been performed on all individuals IV of one generation G. If the determination in step S131 is "No," processor 25 selects one of the individuals IV of one generation G for which steps S124 to S130 have not been performed, and performs the processes of steps S124 to S131 again.
[0064] On the other hand, if the determination in step S131 is "Yes", the reference table generating unit 55 determines in step S133 whether or not the termination condition is satisfied. The termination condition is one of the various conditions shown in FIG. 2. The termination condition is a condition that the processing routine of steps S103 to S111 has been executed a predetermined number of times in advance. The predetermined number of times in advance is set, for example, to a number of times that the connection reference value RV is added at least once, preferably twice or more, in association with all element sets in the reference table 88. For example, the number of times in advance is set to a number that the processing routine of steps S124 to S131 is executed for individuals IV that are twice or more the number of element sets defined in the reference table 88.
[0065] As described above, the reference table 88 is generated by using the similarity SD generated by the processing of step S124 as the connection reference value RV so that, in a pair of sequence elements excluding the element set associated with non-occurring data, the input side sequence element has a relationship in which the input side sequence element is connected to the output side sequence element with random probability. This increases the possibility that an element set with high connection compatibility is included in the data processing sequence Sq. In addition, by associating non-occurring data with a specific element set whose connection is prohibited in the reference table 88, it is possible to prevent the number of data processing sequences Sq that are candidates for the specific data processing sequence Sq from becoming large.
[0066] If the end condition is not satisfied, the individual generation unit 32 executes step S123 again in the next processing routine. m Individual IV m 1~IM m Among the 5, the individual IV with the lowest similarity SD is the Jth. m New individual IV nwhere "J" is an integer equal to or greater than 1. In other words, the individual generation unit 32 duplicates the individuals IV whose similarity SD does not fall within the lowest J-th order, and generates new individuals IV by performing at least one of crossover and mutation on the individuals IV whose similarity SD does not fall within the lowest J-th order. This makes it easy to generate a new data processing sequence Sq whose combination of sequence elements is different from that of the data processing sequence Sq generated previously. The individual IV generated by the re-execution of step S123 n Then, the process from step S124 onward is executed again on the target.
[0067] On the other hand, if the end condition is satisfied, the reference table generating unit 55 outputs the reference table 88 at the time when the end condition is satisfied, and stores it in the storage device 70 in step S135.
[0068] 15 is a detailed flowchart of the generation process of the specific data processing sequence DSq. First, in step S300, a plurality of data processing layers, which are sequence elements, are stored as a sequence element group 80. Step S300 is executed by a user inputting a plurality of data processing layers, which are candidates for use in the specific data processing sequence DSq, to the generation device 20. Note that, when the generation process of the specific data processing sequence DSq is executed by the same device as the generation device 20 in which the generation process of the reference table 88 was executed, the sequence element group 80 is already stored in the storage device 70. Therefore, in this case, step S300 can be omitted.
[0069] In addition, in step S301, the storage device 70 stores the learning data 74 composed of a plurality of learning sets SM. Step S301 is executed by the user inputting the learning data 74 to the generating device 20. Note that, in the case where the generation process of the specific data processing sequence DSq is executed by the same device as the generating device 20 in which the generation process of the reference table 88 is executed, and the same learning data 74 is used, step S301 can be omitted. On the other hand, in the case where, for example, the learning data 74 used in the generation process of the reference table 88 is generated based on a circuit board, which is a target product from which the learning data 74 is based, and a circuit board of the same type but manufactured in, for example, a different factory, or the learning data 74 is generated based on a different product from which the learning data 74 is based, but for the same purpose of inspecting the presence or absence of a defective part DA, step S301 is executed.
[0070] Furthermore, in step S304, the storage device 70 stores the reference table 88 generated in the generation process of the reference table 88. Note that when the generation process of the specific data processing sequence DSq is executed by the same device as the generation device 20 in which the generation process of the reference table 88 was executed, the reference table 88 is already stored in the storage device 70. Therefore, in this case, step S304 can be omitted. Note that the order of steps S300 to S304 is not limited to the above order.
[0071] Next, in step S306, the individual generation unit 32 generates a plurality of individuals IV n 9. Step S306 is the same process as step S103 in Fig. 9. That is, in step S306, the population 84 in one generation G is composed of a plurality of individuals IV1 to IV5. The generated population 84 is stored in the storage device 70.
[0072] Next, in step S308, the gene translation unit 34 selects one of the individuals IV1 to IV5, and translates the selected individual IV by referring to the reference table 88 to generate a data processing sequence Sq. The data processing sequence Sq in step S308 is generated by the above-mentioned specific generation process. Details of step S308 will be described later.
[0073] Next, in step S350, the data processing unit 40 processes the plurality of training images LM using the data processing sequence Sq generated in step S308 to generate a plurality of output data PM.
[0074] Next, in step S352, the identification unit 50 compares the multiple output data PM generated in step S350 with the target data TM associated with the learning data LM from which the multiple output data PM were generated, and calculates multiple evaluation values EV to evaluate the processing result. The identification unit 50 uses the average value of the multiple evaluation values EV as the final evaluation value EV indicating the similarity SD between the output data PM and the target data TM. In addition, step S356 performed for all individuals IV of one generation G and step S356 repeatedly performed until the reference condition is satisfied are steps for identifying a specific data processing sequence DSq that satisfies the reference condition using multiple similarities SD indicated by multiple evaluation values EV corresponding to each of the multiple data processing sequences Sq. The data processing sequence Sq that satisfies the reference condition can be easily identified using the similarity SD between the output data PM and the target data TM.
[0075] Next, in step S354, the identification unit 50 judges whether or not the processing of steps S308 to S352 has been performed on all the individuals IV of one generation G. If the judgment in step S354 is "No," the processor 25 selects one of the individuals IV of one generation G for which steps S308 to S352 have not been performed, and executes the processing of steps S308 to S352 again. That is, the data processing unit 40 processes the learning data LM by each of the multiple data processing sequences Sq corresponding to the multiple individuals IV constituting one generation G, and generates output data PM after data processing for each of the multiple data processing sequences Sq. Then, the identification unit 50 compares the multiple output data PM generated for each of the multiple data processing sequences Sq with the corresponding target data TM to calculate an evaluation value EV.
[0076] On the other hand, if the determination in step S354 is "Yes", the identification unit 50 determines in step S356 whether or not there is a data processing sequence Sq that satisfies a predetermined criterion condition, using the multiple evaluation values EV calculated in the current generation. Specifically, the evaluation determination unit 46 determines that there is a data processing sequence Sq that satisfies the criterion condition if the highest similarity SDmax among the respective similarities SD indicated by the multiple evaluation values EV calculated based on the multiple individuals IV of the current generation is equal to or greater than a predetermined termination threshold. In other words, the process of step S356 is a process of identifying a data processing sequence Sq that satisfies a predetermined criterion condition from among the multiple data processing sequences Sq, using the similarities SD indicated by the multiple evaluation values EV corresponding to each of the multiple data processing sequences Sq.
[0077] If there is a data processing sequence Sq that satisfies the criterion condition, the identifying unit 50 outputs the data processing sequence Sq that satisfies the criterion condition as a specific data processing sequence DSq in step S358. The output specific data processing sequence DSq is stored in the storage device 70.
[0078] On the other hand, if there is no data processing sequence Sq that satisfies the reference condition, the processing of steps S306 to S356 is executed as the next routine. That is, in step S306 of the next routine, the individual generation unit 32 replaces the target data processing sequence Sq, which is one or more data processing sequences Sq with a low similarity SD indicated by the evaluation value EV among the multiple data processing sequences Sq generated in the previous routine, with a new data processing sequence Sq with different sequence elements, thereby generating a sequence set. In this embodiment, the individual generation unit 32 generates new individual IVs of the current generation in the current routine using at least one of crossover and mutation based on individual IVs whose similarity SD does not fall within the Jth lowest level among the multiple individual IVs of the parent generation used in the previous routine. Note that the individual generation unit 32 duplicates individual IVs whose similarity SD does not fall within the Jth lowest level among the multiple individual IVs of the parent generation. A new sequence set is configured by the duplicated individual IVs and individual IVs newly generated using crossover and mutation. Then, the processing of steps S308 to S356 is executed again for the new sequence set. In another embodiment, for an individual IV whose similarity SD is equal to or less than a predetermined duplication reference value among the multiple individuals IV of the parent generation, a new individual IV may be generated using crossover or sudden displacement based on an individual IV whose similarity SD is greater than the duplication reference value. As described above, by generating a new data processing sequence having a different combination of sequence elements based on a data processing sequence Sq with a high similarity SD and replacing one or more data processing sequences Sq with a low similarity SD, the data processing sequence Sq with a low similarity SD can be excluded from the processing target. This makes it possible to more efficiently identify a data processing sequence Sq that satisfies the reference condition.
[0079] In the process of steps S308 to S356 for the new sequence set, for the data processing sequences Sq that are the same as the data processing sequences Sq constituting the sequence set used in the previous routine, the evaluation value EV calculated in the previous routine is used. This eliminates the need to recalculate the evaluation value EV, thereby improving the processing efficiency of the specific data processing sequence generation process.
[0080] As described above, step S308, which is repeatedly executed until the reference condition is satisfied, is a process of generating a plurality of corresponding data processing sequences Sq from a plurality of individuals IV using the reference table 88.
[0081] 16 is a detailed flowchart of step S308. First, in step S311, the gene translation unit 34 selects one unprocessed one of IV1 to IV5 constituting the current generation G. In addition, in step S314, the gene translation unit 34 reads out the reference table 88 stored in the storage device 70.
[0082] Next, in step S316, the gene translation unit 34 selects one connection destination, which is an unconnected output side sequence element to which an input side sequence element is not connected. In this embodiment, the data output layer out is set as a terminal node, and sequence elements are connected in order from the data output layer out side. Therefore, in step S316 in the first routine, the gene translation unit 34 selects the data output layer out as a connection destination. Note that the connection of sequence elements is executed according to the connection rule determined in advance as described above. As described above, the gene translation unit 34 first sets the data output layer out as a terminal node that is the end of the output side, and generates a data processing sequence Sq by connecting sequence elements to the input side in the order of the arrangement of genes of the individual IV. In addition, as described above, the gene translation unit 34 prioritizes arrangement from the terminal node side in the order of the arrangement of genes, and prioritizes arrangement of the connection destination on the left side over the connection destination on the right side shown in FIG. 6.
[0083] Following step S316, in step S318, the genetic translation unit 34 refers to the reference table 88 to select an input side sequence element to be connected to the output side sequence element that is the connection destination. Specifically, the genetic translation unit 34 uses the reference table 88 to generate a data processing sequence Sq such that the input side sequence element has a higher probability of being connected to the output side sequence element, as the input side sequence element has a higher average value ARV as a connection reference value RV, with respect to the output side sequence element, using a probability relationship. The data processing sequence Sq having the above probability relationship is generated by selecting the input side sequence element according to the following input side sequence element selection algorithm.
[0084] <Input sequence element selection algorithm> The prerequisites for the selection algorithm are: ·Gene value··VG (VG is a number between 0 and 1 up to three decimal places) Output sequence element identifier j Here, j is represented by an integer equal to or greater than 0, and a different value is assigned to each output side sequence element. In this embodiment, identifiers j of 0 to 5 are assigned to the input side sequence elements FtA to out in that order. ·Identifier of the input sequence element to be connected···i Here, i is an integer equal to or greater than 0, and ranges from 0 to N f Nf is a value obtained by subtracting 1 from the number of candidates for the input side sequence elements. In this embodiment, as shown in FIG. 7, the number of input side sequence elements is 6, so N f The value of i is 5. The identifiers i are assigned with values of 0 to 5 in the order of the input side sequence elements FtA to in. ·value associated with a set of elements of reference table 88 ···t ij t ij is the average ARV or non-occurrence data "-1" shown in FIG. 7, and the subscript "ij" is an identifier for identifying an element set, and corresponds to the identifier of the input sequence element and the output sequence element. For example, t 12indicates the average ARV of 0.086 for the element set in FIG. 7 in which the input sequence element is data processing layer FtB and the output sequence element is data processing layer FtC. ·Connection reference value RV possible value···H In this embodiment, the connection reference value RV is an evaluation value EV, and can take a value between 0 and 1 inclusive.
[0085] In the selection algorithm, the probability P ij is calculated by the following formula (1).
number
[0086] Here, S in the above formula (1) ij is calculated by the following formula (2).
number
[0087] As can be seen from equations (1) and (2) above, the value t ij If non-occurrence data is associated with, then probability P ij is “0”, the probability that an element set associated with non-occurring data appears as a component of the data processing sequence Sq is zero.
[0088] Also, in the selection algorithm, for an element set to which non-occurrence data is not associated, the upper threshold value T of the numerical range of the number of genes in which the input-side sequence element i is connected to the output-side sequence element j ij is calculated using the following formula (3). The lower threshold value is set to the upper threshold value of the input-side sequence element corresponding to the previous identifier excluding the element set to which non-occurrence data is associated. If there is no previous identifier, the lower threshold value is set to "0".
Number
[0089] By determining the numerical range indicating the occurrence range of genes using the above selection algorithm, the ratio of each average value ARV, which is each connection reference value of each input-side sequence element that is a connection candidate for the same output-side sequence element, becomes the ratio of the connection probability connected to the output-side sequence element, and the data processing sequence Sq is generated.
[0090] The gene translation unit 34 sets a numerical range as a different occurrence range for each of the input-side sequence elements of the data input layer in and the plurality of data processing layers FtA to FtE, which are a plurality of data processing layers, using the upper threshold value calculated by the above formula (3). Then, the gene numerical value selects, as the input-side sequence element, the data input layer in or the data processing layer as the data processing layer corresponding to within the set numerical range.
[0091] The numerical range as the occurrence range and an example of the selected sequence element are shown below. <Selection of Input-Side Sequence Element for Output-Side Sequence Element of Identifier j> When 0 ≦ VG < T0j, the input-side sequence element with identifier i being "0" is selected. T 0j ≦ VG < T 1j When, the input-side sequence element with identifier i being "1" is selected. T 1j ≦ VG < T 2jIf , the input sequence element with identifier i=2 is selected. The same applies below, so we will show an example at the end. T (Nf-1),j ≦VG≦T Nf,j If , the input sequence element with identifier i of Nf is selected.
[0092] Regarding the inequality sign of the numerical range, the presence or absence of the equality sign may be changed as long as the gene value VG is included in one of the occurrence ranges.
[0093] 16, in step S320, the gene translation unit 34 determines whether or not the generation of the data processing sequence Sq is completed. Specifically, the gene translation unit 34 determines that the generation of the data processing sequence Sq is completed when all the upstream nodes are data input layer in and there are no unconnected nodes. In this case, the gene translation unit 34 outputs the data processing sequence Sq generated in step S322 to the data processing unit 40. On the other hand, when the gene translation unit 34 determines that the generation of the data processing sequence Sq is not completed, it executes the processes from step S316 onwards again.
[0094] As described above, step S306 shown in Fig. 15 and step S308 shown in Fig. 16 are steps for generating a sequence set consisting of a plurality of data processing sequences with different combinations of sequence elements. Also, step S306 shown in Fig. 15 and step S308 shown in Fig. 16 are steps for generating a sequence set using at least an individual in which a plurality of genes corresponding to each of the data input layer and the data processing layer are arranged, and the reference table 88.
[0095] Selection of input side sequence elements using the above selection algorithm will be described below using a specific example of generating a data processing sequence Sq from an individual IVa. FIG. 17 is a diagram for explaining the process from step S316 to step S322 in FIG. 16. FIG. 18 is a diagram showing an occurrence range table 889a indicating the relationship between the genes generated based on the reference table 88 and the occurrence range. FIG. 19 is a diagram showing an occurrence range table 889b indicating the relationship between the genes generated based on the reference table 88 and the occurrence range. FIG. 20 is a diagram showing an occurrence range table 889c indicating the relationship between the genes generated based on the reference table 88 and the occurrence range. FIG. 21 is a diagram showing an occurrence range table 889d indicating the relationship between the genes generated based on the reference table 88 and the occurrence range.
[0096] 17, in the first routine Rt1, the gene translation unit 34 selects the data output layer out as the connection destination in step S316. Next, the gene translation unit 34 calculates the upper threshold T ij By calculating the above, the gene translation unit 34 determines the numerical range in which the input side sequence element appears. The gene translation unit 34 may generate an appearance range table 889a shown in FIG. 18 based on the determined numerical range. The gene translation unit 34 executes the selection algorithm to set a wider numerical range indicating the appearance range for an input side sequence element having a higher average ARV, which is the connection reference value RV, for each input side sequence element of an element set in which the output side sequence element is the data output layer out. The gene translation unit 34 compares the numerical value 0.892 of the No. 1 gene shown in FIG. 17 with the numerical range shown in FIG. 18, and selects the data processing layer FtE that falls within the numerical range as the input side sequence element of the data output layer out. The gene translation unit 34 also refers to the reference table 88, and since the number of inputs of the data processing layer FtE is "2", sets two unconnected terminals, which are search branches, on the input side of the data processing layer FtB.
[0097] 17, in the next routine Rt2, the gene translation unit 34 selects the data processing layer FtE as the connection destination in step S316. Next, the gene translation unit 34 calculates the upper threshold T ij The gene translation unit 34 determines the numerical range of the input sequence element by calculating the above. The gene translation unit 34 may generate an occurrence range table 889b shown in FIG. 19 based on the determined numerical range. The gene translation unit 34 executes a selection algorithm to set a wider numerical range indicating the occurrence range for an input sequence element having a higher average ARV for each input sequence element of an element set in which an output sequence element is the data processing layer FtE. The gene translation unit 34 compares the numerical value 0.942 of the gene No. 2 shown in FIG. 17 with the numerical range shown in FIG. 19, and selects the data input layer in that falls within the numerical range as the input sequence element on the left side of the data processing layer FtB.
[0098] 17, in the next routine Rt3, the gene translation unit 34 selects the data processing layer FtE as the connection destination in step S316. Next, the gene translation unit 34 calculates the upper threshold T ij The gene translation unit 34 determines the numerical range of the input side sequence element by calculating the above. Since this numerical range is the numerical range shown in FIG. 19, the gene translation unit 34 uses the numerical range used in the previous routine Rt2. The gene translation unit 34 compares the numerical value 0.075 of the gene No. 3 shown in FIG. 17 with the numerical range shown in FIG. 17, and selects the data processing layer FtA that falls within the numerical range as the input side sequence element on the right side of the data processing layer FtB. Furthermore, the gene translation unit 34 refers to the reference table 88, and since the number of inputs of the data processing layer FtA is "1", sets an unconnected terminal, which is one search branch, on the input side of the data processing layer FtA.
[0099] 17, in the next routine Rt4, the gene translation unit 34 selects the data processing layer FtA as the connection destination in step S316. Next, the gene translation unit 34 calculates the upper threshold T ij The gene translation unit 34 determines the numerical range of the input sequence element by calculating the above. The gene translation unit 34 may generate an occurrence range table 889c shown in FIG. 20 based on the determined numerical range. The gene translation unit 34 executes a selection algorithm to set a wider numerical range indicating the occurrence range for each input sequence element of an element set in which the output sequence element is the data processing layer FtA, as the input sequence element has a higher average ARV. The gene translation unit 34 compares the numerical value 0.412 of the gene No. 4 shown in FIG. 17 with the numerical range shown in FIG. 20, and selects the data processing layer FtB that falls within the numerical range as the input sequence element of the data processing layer FtA. The gene translation unit 34 also refers to the reference table 88, and since the number of inputs of the data processing layer FtB is "1", sets an unconnected terminal, which is one search branch, on the input side of the data processing layer FtA.
[0100] 17, in the next routine Rt5, the gene translation unit 34 selects the data processing layer FtB as the connection destination in step S316. Next, the gene translation unit 34 calculates the upper threshold T ijThe gene translation unit 34 determines the numerical range of the input sequence element by calculating the above. The occurrence range table 889d shown in FIG. 21 may be generated based on the determined numerical range. The gene translation unit 34 executes the selection algorithm to set a wider numerical range indicating the occurrence range for each input sequence element of the element set in which the output sequence element is the data processing layer FtB, as the input sequence element has a higher average value ARV. The gene translation unit 34 compares the numerical value 0.995 of the gene No. 5 shown in FIG. 17 with the numerical range shown in FIG. 21, and selects the data input layer in that falls within the numerical range as the input sequence element of the data processing layer FtB. As a result, all the upstream nodes become the data input layer in, and the generation of the data processing sequence Sq is completed. In other words, when there is no input sequence element that is not connected to the output sequence element, the gene translation unit 34 ends the generation process of the data processing sequence Sq corresponding to the individual IV, even if all of the multiple genes constituting the individual IV are not used as the data processing sequence Sq. This allows the gene translation unit 34 to generate the data processing sequence Sq even when not all of the multiple genes are used.
[0101] Fig. 22 is a flowchart of the utilization process. The utilization process is executed after the specific data processing sequence DSq is specified by the generation process of Fig. 15. First, in step S500, the storage device 70 stores a plurality of data processing layers, which are sequence elements received by the input unit 150, as a sequence element group 80. The plurality of data processing layers of the sequence element group 80 stored in step S500 may be only the data processing layers used in the specific data processing sequence DSq. Note that, when the utilization process and the generation process of Fig. 15 are executed by the same generation device 20, step S500 can be omitted, and the sequence element group 80 stored in the storage device 70 in step S300 can be used.
[0102] Next, in step S501, the storage device 70 stores the specific data processing sequence DSq output in step S358 of Fig. 15. It should be noted that the order of steps S500 and S501 is not limited to that described above.
[0103] Next, in step S503, the data processing unit 40 acquires data stored in the storage device 70 via the input unit 150 by reading out data to be processed by the specific data processing sequence DSq. The data to be processed acquired in step S503 is, for example, an image of an object of the same type as the learning image LM. When there are multiple pieces of data to be processed, the data processing unit 40 may acquire data by reading out one of the multiple pieces of data stored in advance in the storage device 70, or may acquire the target data from the sensor device 200 each time data processing described below is executed.
[0104] Next, in step S504, the data processing unit 40 executes data processing using the specific data processing sequence DSq on the image acquired in step S503. That is, data processing is executed on the data to be processed by applying the data processing layers stored in the sequence element group 80 of the storage device 70 in accordance with the order indicated by the specific data processing sequence DSq.
[0105] Next, in step S505, output data PM, which is data after data processing using the specific data processing sequence DSq, is output. Step S505 is executed, for example, by storing the output data PM in the storage device 70 or by displaying it on the display unit 160.
[0106] Next, in step S506, the data processing unit 40 determines whether or not to continue data processing using the specific data processing sequence DSq. For example, the data processing unit 40 determines to continue data processing when the user inputs information indicating continuation of data processing or when unprocessed data to be processed still remains in the storage device 70. If data processing is to be continued, the processing from step S503 onwards is executed again. On the other hand, the data processing unit 40 ends the usage process when the user inputs information indicating the end of data processing or when unprocessed data to be processed no longer remains in the storage device 70.
[0107] 10 to 13, the reference table generating unit 55 can easily set in advance an element set that is not to appear as a component of the data processing sequence Sq by associating non-occurrence data indicating that a specific element set is not to appear as a component of the data processing sequence Sq with the specific element set in the reference table 88. For example, by associating non-occurrence data in advance with an element set that has a low contribution to achieving the purpose of data processing, a data processing sequence DSq that satisfies a criterion condition can be efficiently identified.
[0108] According to the above embodiment, as shown in step S106 in Fig. 10 and in Fig. 12, the reference table generating unit 55 associates non-occurring data with an element set whose order is different from the set order, thereby easily preventing the order of a plurality of data processing steps in the data processing sequence Sq from being different from the set order. As a result, for example, by associating non-occurring data with a specific element set so that an order of the data processing steps that has a low contribution to achieving the purpose of data processing does not appear as the data processing sequence Sq, a data processing sequence DSq that satisfies the criterion condition can be efficiently identified.
[0109] According to the above embodiment, the reference table generating unit 55 can associate non-occurring data with a specific element set according to the type of data processing layer, as shown in step S108 of Fig. 10 and Fig. 13. Here, depending on the type of data processing layer, there may be sequence elements that have low compatibility for connection with the data processing layer, that is, sequence elements that do not contribute to the purpose of data processing. Therefore, by identifying an element set of a specific data processing layer and a sequence element as a specific element set and associating non-occurring data with the specific element set, it is possible to efficiently identify a data processing sequence DSq that satisfies a criterion condition.
[0110] According to the above embodiment, the reference table generating unit 55 identifies an element set other than the first element set as a specific element set according to the type condition table 925 shown in Fig. 13, and associates non-occurring data with the identified specific element set. As a result, the data processing sequence Sq that is a candidate for the specific data processing sequence DSq has a configuration in which the data output layer out is connected to the output side of the first specific data processing layer. Therefore, when the purpose of data processing using the specific data processing sequence DSq is to determine the type of input data, a data processing sequence Sq according to the purpose can be generated as a candidate, and therefore a data processing sequence DSq that satisfies the reference condition can be efficiently identified.
[0111] According to the above embodiment, the reference table generating unit 55 identifies an element set other than the second element set as a specific element set according to the type condition table 925 shown in Fig. 13, and associates non-occurring data with the identified specific element set. As a result, the data processing sequence Sq that is a candidate for the specific data processing sequence DSq has a configuration in which the data output layer out is connected to the output side of the second specific data processing layer. Therefore, when the purpose of data processing using the specific data processing sequence DSq is to output a scalar quantity according to input data, a data processing sequence Sq according to the purpose can be generated as a candidate, and therefore a data processing sequence DSq that satisfies the reference condition can be efficiently identified.
[0112] Furthermore, by setting the order of the data processing steps using reference table 88 so that the output layer out is connected to the output side of the first specific data processing layer that outputs the discrimination result, and the second specific data processing layer that outputs the scalar quantity, it is possible to output data processing results such as discrimination results and scalar quantities that are easy for users to understand from the output layer out.
[0113] Furthermore, according to the above embodiment, the individual generation unit 32 can easily generate a plurality of individuals IV that are the basis of the data processing sequence Sq by using a genetic algorithm, as shown in Fig. 5. Furthermore, by previously associating non-occurring data by the reference table 88, the user can easily identify an element set that does not appear as a component of the data processing sequence Sq by referring to the reference table 88.
[0114] B. Other embodiments: B-1. Alternative embodiment 1: In the above embodiment, the processing results were evaluated sequentially for each of the multiple data processing sequences Sq indicated by the multiple individuals IV belonging to one generation G. However, the processing results may also be evaluated in parallel for the multiple data processing sequences Sq using multiple generation devices 20.
[0115] B-2. Alternative embodiment 2: In the above embodiment, the data processing sequence Sq is generated by generating the individual IV using a genetic algorithm, but the present invention is not limited to this. For example, multiple data processing sequences Sq may be generated by randomly arranging multiple sequence elements.
[0116] B-3. Alternative embodiment 3: In the above embodiment, the average value ARV of the connection reference value RV is set in the reference table 88 as shown in Fig. 7 except for the element set to which "-1" which is non-occurrence data is set, but this is not limited to this. For example, in step S103 of Fig. 10, the reference table generating unit 55 may associate a certain numerical value as a fixed value with the element sets other than the element set to which "-1" which is non-occurrence data is set, so that they appear with equal probability. In this case, the processes of steps S123 to S133 of Fig. 9 can be omitted.
[0117] B-4. Alternative embodiment 4: In the above embodiment, in step S318 in Fig. 16, the gene translation unit 34 generates occurrence range tables 889a-889d shown in Fig. 18-21 using the reference table 88 and the selection algorithm to select input side sequence elements, but the method of selecting input side sequence elements is not limited to this. For example, the reference table generation unit 55 may generate occurrence range tables for all element sets in advance using the reference table 88 after the generation process of the reference table 88 shown in Fig. 9 and the above-mentioned selection algorithm, and store them in the storage device 70.
[0118] B-5. Alternative embodiment 5: In the above embodiment, the gene translator 34 uses the reference table 88 and formulas (1) to (3) to generate a plurality of data processing sequences so that the input sequence element with a higher connection reference value RV has a higher probability of being connected to the output sequence element, but the present invention is not limited to this. For example, the gene translator 34 does not need to use formulas (1) to (3) as long as the gene translator 34 can generate a plurality of data processing sequences so as to have the above-mentioned probability relationship. For example, the gene translator 34 may generate a plurality of data processing sequences so as to have the above-mentioned probability relationship by gradually increasing the numerical range in which the input sequence element appears as the connection reference value RV increases.
[0119] C. Other forms: The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various forms without departing from the spirit of the present disclosure. For example, the present disclosure can be realized in the following aspects. The technical features in the above-mentioned embodiments corresponding to the technical features in each aspect described below can be appropriately replaced or combined in order to solve some or all of the problems of the present disclosure, or to achieve some or all of the effects of the present disclosure. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted.
[0120] (1) According to a first aspect of the present disclosure, there is provided a method for generating a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements including (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. This generation method includes the steps of (a) generating a reference table used to generate a plurality of the data processing sequences that are candidates for the specific data processing sequence, (b) generating the plurality of data processing sequences using the reference table, and (c) identifying the specific data processing sequence that satisfies the reference condition from among the plurality of data processing sequences, wherein the step (a) includes the steps of (a1) associating, in the reference table, non-occurrence data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, and (a2) associating, among the plurality of element sets, an element set different from the specific element set with which the non-occurrence data is associated, with a connection reference value indicating an occurrence probability of the element set appearing as the component of the data processing sequence. According to this embodiment, by associating non-occurrence data indicating that a specific element set is not to appear as a component of the data processing sequence with the specific element set in the reference table, it is possible to easily set in advance the element set that is not to appear as a component of the data processing sequence. For example, by previously associating non-occurring data with an element set that has a low contribution to achieving the purpose of data processing, a data processing sequence that satisfies a criterion condition can be efficiently identified.
[0121] (2) In the above embodiment, the specific data processing sequence includes a plurality of data processing steps using at least one of the data processing layers, and the order of the plurality of data processing steps is predetermined as a set order, and the step (a1) may include a step of identifying the element set in an order different from the set order as the specific element set, and a step of associating non-occurrence data indicating that the identified specific element set is not to appear as a component of the data processing sequence. According to this embodiment, by associating non-occurrence data with the element set in an order different from the set order, it is possible to easily prevent the order of the plurality of data processing steps from being different from the set order in the data processing sequence. As a result, for example, by associating non-occurrence data with the specific element set so that the order of the data processing steps that has a low contribution to achieving the purpose of the data processing does not appear in the data processing sequence, it is possible to efficiently identify a data processing sequence that satisfies a reference condition.
[0122] (3) In the above embodiment, the method further includes the step of (d) receiving inputs of the plurality of data processing layers that are candidates for the sequence elements of the specific data processing sequence, the step (a1) including the step of (a1a) determining the types of the plurality of data processing layers received in the step (d) and identifying the specific element set according to the determined types. According to this embodiment, non-occurring data can be associated with the specific element set according to the type of data processing layer.
[0123] (4) In the above embodiment, when the determined type is a first type indicating a first specific data processing layer that determines the type of the input data and outputs the data, the step (a1a) may identify, among the plurality of element sets, an element set different from the first element set as the specific element set, and the sequence element on the input side of the first element set may be the first specific data processing layer, and the sequence element on the output side of the first element set may be the data output layer. According to this embodiment, the data processing sequence that is a candidate for the specific data processing sequence has a configuration in which a data output layer is connected to the output side of the first specific data processing layer. In this way, when the purpose of data processing using the specific data processing sequence is to determine the type of input data, a data processing sequence according to the purpose can be generated as a candidate, and therefore a data processing sequence that satisfies a reference condition can be efficiently identified.
[0124] (5) In the above embodiment, when the determined type is a second type indicating a second specific data processing layer that outputs a scalar quantity according to the input data, the step (a1a) may identify, among the plurality of element sets, the element set different from the second element set as the specific element set, and the second element set may have the sequence element on the input side as the second specific data processing layer and the sequence element on the output side as the data output layer. According to this embodiment, the data processing sequence that is a candidate for the specific data processing sequence has a configuration in which a data output layer is connected to the output side of the second specific data processing layer. As a result, when the purpose of data processing using the specific data processing sequence is to output a scalar quantity according to the input data, a data processing sequence according to the purpose can be generated as a candidate, and a data processing sequence that satisfies a reference condition can be efficiently identified.
[0125] (6) In the above embodiment, the non-occurrence data associated in step (a1) may be a value outside a preset range of values that the connection reference value may take. According to this embodiment, it is possible to easily distinguish the non-occurrence data from the connection reference value.
[0126] (7) In the above embodiment, the step (b) may include a step of generating a sequence set composed of the plurality of data processing sequences having different combinations of the sequence elements, and a step of generating the sequence set using at least an individual in which a plurality of genes corresponding to each of the data input layer and the data processing layer are arranged, and the reference table, and the step (c) may include a step of (c1) processing learning data using each of the plurality of data processing sequences, and generating output data, which is data after the data processing, for each of the plurality of data processing sequences, (c2) comparing the output data with target data associated with the learning data for each of the plurality of data processing sequences, and calculating an evaluation value indicating a similarity between the output data and the target data, and (c3) specifying the specific data processing sequence that satisfies the reference condition using a plurality of similarities indicated by a plurality of the evaluation values corresponding to each of the plurality of data processing sequences. According to this embodiment, a plurality of individuals that are the source of the data processing sequence can be easily generated using a genetic algorithm. Also, according to this embodiment, a data processing sequence that satisfies the reference condition can be easily specified using the similarity between the output data and the target data.
[0127] (8) According to a second aspect of the present disclosure, there is provided an apparatus for generating a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements including (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. The generating device includes a reference table generating unit that generates a reference table used to generate a plurality of the data processing sequences that are candidates for the specific data processing sequence, a sequence generating unit that generates the plurality of data processing sequences using the reference table, and a specifying unit that specifies the specific data processing sequence that satisfies the criterion condition from the plurality of data processing sequences, and the reference table generating unit associates, in the reference table, non-occurrence data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, with a specific element set that is prohibited from being connected, and associates, among the plurality of element sets, a connection reference value indicating an occurrence probability that the element set that is different from the specific element set with which the non-occurrence data is associated, with a connection reference value indicating an occurrence probability that the element set appears as the component of the data processing sequence. According to this embodiment, by associating, in the reference table, non-occurrence data indicating that a specific element set is not to be allowed to appear as a component of the data processing sequence, it is possible to easily set an element set that is not allowed to appear as a component of the data processing sequence in advance. For example, by associating non-occurrence data in advance with an element set that has a low contribution to achieving a purpose of data processing, it is possible to efficiently specify a data processing sequence that satisfies the criterion condition.
[0128] (9) According to a third aspect of the present disclosure, there is provided a computer program for causing a computer to execute generation of a data processing sequence that satisfies a predetermined criterion condition. The data processing sequence is composed of sequence elements including (i) a data input layer that inputs data, (ii) at least two of a plurality of data processing layers, and (iii) a data output layer that outputs the data after data processing. The data processing sequence that satisfies the criterion condition is a specific data processing sequence. This computer program causes a computer to execute (a) a function of generating a reference table used to generate a plurality of the data processing sequences that are candidates for the specific data processing sequence, (b) a function of generating the plurality of data processing sequences using the reference table, and (c) a function of identifying the specific data processing sequence that satisfies the reference condition from among the plurality of data processing sequences, and the function (a) comprises: (a1) a function of associating, in the reference table, non-occurrence data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, with non-occurrence data indicating that the specific element set is not to appear as a component of the data processing sequence, and (a2) a function of associating, among the plurality of element sets, an element set that is different from the specific element set with which the non-occurrence data is associated, with a connection reference value indicating an occurrence probability that the specific element set appears as a component of the data processing sequence. According to this embodiment, by associating non-occurrence data indicating that the specific element set is not to appear as a component of the data processing sequence in the reference table, it is possible to easily set in advance an element set that is not to appear as a component of the data processing sequence. For example, by previously associating non-occurring data with an element set that has a low contribution to achieving the purpose of data processing, a data processing sequence that satisfies a criterion condition can be efficiently identified.
[0129] The present disclosure may be realized in various forms other than those described above. For example, the present disclosure may be realized in the form of a non-transitory storage medium having a computer program recorded thereon. [Explanation of symbols]
[0130] 10...generation system, 20...generation device, 25...processor, 30...sequence generation unit, 32...individual generation unit, 34...gene translation unit, 40...data processing unit, 46...evaluation and judgment unit, 50...identification unit, 55...reference table generation unit, 60...display control unit, 70...storage device, 74...learning data, 80...sequence element group, 82...gene table, 84...individual group, 88...reference table, 92...various conditions, 94...various programs, 150...input unit, 160... Display unit, 200... sensor device, 889a to 889d... appearance range table, 925... type condition table, ARV... average value, DA... defective part, DSq... specific data processing sequence, EV... evaluation value, FtA to FtE... data processing layer, IV, IV1 to IV5, IVa... individual, LM... learning data, PM... output data, RV... connection reference value, Rt1 to Rt5... processing routine, SM... learning set, Sq, Sq1... data processing sequence, TM... target image
Claims
1. 1. A method for generating a data processing sequence that satisfies a predetermined criteria condition, comprising the steps of: The data processing sequence is composed of sequence elements: (i) a data input layer that inputs data; (ii) at least two of a plurality of data processing layers; and (iii) a data output layer that outputs the data after data processing; the data processing sequence that satisfies the criteria condition is a specific data processing sequence; The method for producing the same comprises: (a) generating a look-up table for use in generating a plurality of candidate data processing sequences for the particular data processing sequence; (b) generating the plurality of data processing sequences using the look-up table; (c) identifying the specific data processing sequence that satisfies the criteria condition from among the plurality of data processing sequences, The step (a) includes, in the lookup table, (a1) associating non-appearance data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, with the specific element set not to be made to appear as a component of the data processing sequence; (a2) a step of associating a connection reference value indicating an occurrence probability of an element set appearing as a component of the data processing sequence with an element set among the plurality of element sets that is different from the specific element set to which the non-occurring data is associated.
2. The method of claim 1 , further comprising: the specific data processing sequence includes a plurality of data processing steps using at least one of the data processing layers; In the case where the order of the plurality of data processing steps is predetermined as a set order, The step (a1) identifying the element set having an order different from the set order as the specific element set; and associating non-occurrence data indicating that the identified set of specific elements is not to appear as the component of the data processing sequence.
3. The method of claim 1 further comprising: (d) a step of receiving inputs of the plurality of data processing layers that are candidates for the sequence element of the specific data processing sequence, the step being executed prior to the step (a); The step (a1) (a1a) a generating method comprising the steps of: determining a type of each of the plurality of data processing layers received in step (d); and identifying the specific element set according to the determined type.
4. 4. The method of claim 3, further comprising: When the determined type is a first type indicating a first specific data processing layer that determines a type of the input data and outputs the data, the step (a1a) includes: identifying, as the specific element set, an element set different from a first element set among the plurality of element sets; A generation method, wherein the first element set has sequence elements on the input side that are the first specific data processing layer and sequence elements on the output side that are the data output layer.
5. 4. The method of claim 3, further comprising: When the determined type is a second type indicating a second specific data processing layer that outputs a scalar quantity according to the input data, the step (a1a) includes identifying, as the specific element set, an element set among the plurality of element sets that is different from a second element set; A generation method, wherein the second element set has sequence elements on the input side that are the second specific data processing layer and sequence elements on the output side that are the data output layer.
6. The method of claim 1 , further comprising: A generation method, wherein the non-occurrence data associated in step (a1) is a value outside a preset numerical range that the connection reference value can take.
7. The method of claim 1 , further comprising: The step (b) is a step of generating a sequence set constituted by the plurality of data processing sequences having different combinations of the sequence elements, and includes a step of generating the sequence set by using at least an individual in which a plurality of genes corresponding to each of the data input layer and the data processing layer are arranged, and the reference table; The step (c) (c1) processing learning data by each of the plurality of data processing sequences, and generating output data, which is data after the data processing, for each of the plurality of data processing sequences; (c2) comparing the output data with target data associated with the learning data for each of the plurality of data processing sequences, and calculating an evaluation value indicating a similarity between the output data and the target data; (c3) identifying the specific data processing sequence that satisfies the reference condition by using a plurality of the similarities indicated by a plurality of the evaluation values corresponding to each of the plurality of data processing sequences.
8. An apparatus for generating a data processing sequence that satisfies a predetermined criterion condition, comprising: The data processing sequence is composed of sequence elements: (i) a data input layer that inputs data; (ii) at least two of a plurality of data processing layers; and (iii) a data output layer that outputs the data after data processing; the data processing sequence that satisfies the criteria condition is a specific data processing sequence; The generating device comprises: a look-up table generating unit for generating a look-up table used to generate a plurality of data processing sequences that are candidates for the specific data processing sequence; a sequence generator for generating the plurality of data processing sequences using the look-up table; a determination unit that determines the specific data processing sequence that satisfies the reference condition from among the plurality of data processing sequences, The reference table generating unit, in the reference table, associate non-appearance data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, and that indicates that the specific element set is not to be made to appear as a component of the data processing sequence; A generating device that associates a connection reference value indicating an occurrence probability of an element set among the multiple element sets that is different from the specific element set to which the non-occurring data is associated, associating the connection reference value with the element set that is different from the specific element set to which the non-occurring data is associated.
9. A computer program for causing a computer to execute generation of a data processing sequence that satisfies a predetermined criteria condition, the computer program comprising: The data processing sequence is composed of sequence elements: (i) a data input layer that inputs data; (ii) at least two of a plurality of data processing layers; and (iii) a data output layer that outputs the data after data processing; the data processing sequence that satisfies the criteria condition is a specific data processing sequence; The computer program comprises: (a) generating a look-up table for use in generating a plurality of candidate data processing sequences for the particular data processing sequence; (b) generating the plurality of data processing sequences using the look-up table; and (c) identifying the specific data processing sequence that satisfies the criteria condition from among the plurality of data processing sequences; The function (a) includes, in the reference table: (a1) a function of associating non-appearance data indicating that a specific element set that is prohibited from being connected among a plurality of element sets that are a pair of sequence elements on the input side and the output side that are connection candidates, and that indicates that the specific element set is not to be made to appear as a component of the data processing sequence; (a2) a computer program comprising a function of associating a connection reference value indicating an occurrence probability of an element set among the plurality of element sets, the element set being different from the specific element set to which the non-occurrence data is associated, as the element set occurring as the component of the data processing sequence.
Citation Information
Patent Citations
Evolution calculation system and evolution calculation method
JP2007087055A
