Method for creating data processing sequence, creation device, and computer program

The method and device enhance data processing sequence generation by associating genes with nodes and parameters in a tree structure, addressing parameter adjustment challenges and improving sequence accuracy.

JP2024143895AInactive Publication Date: 2024-10-11SEIKO EPSON CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023056834
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional genetic programming techniques face difficulties in generating data processing sequences, particularly image processing sequences, due to challenges in easily adjusting parameters for image processing filters, which are also applicable to other data processing scenarios.

Method used

A method and device for generating data processing sequences using a tree structure with input, filter, and output layers, involving a reference table to associate genes with nodes and parameters, and evaluating sequences based on similarity to target data to satisfy reference conditions.

Benefits of technology

Facilitates the generation of data processing sequences that effectively match target data by focusing on parameter adjustments, enhancing the efficiency and accuracy of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143895000001_ABST
    Figure 2024143895000001_ABST
Patent Text Reader

Abstract

To provide a technique that facilitates generation of individuals focusing on a parameter, such as adding a change to a parameter for a specific data processing filter.SOLUTION: A method for creating a data processing sequence includes: a step (a) of creating a group of first generation individuals; a step (b) of, with reference to a reference table in which genes and nodes and parameters are associated with each other, allocating one of an input layer being one of the nodes, a filter layer being another one of the nodes, and the parameter to every gene constituting an individual, thereby creating a data processing sequence according to the individual; a step (c) of comparing output data with target data that is to be a target and associated with object data, and calculating an evaluation value indicating similarity to the target data; and a step (d) of specifying the data processing sequence that satisfies a reference condition by using a plurality of evaluation values corresponding respectively to a plurality of data processing sequences.SELECTED DRAWING: Figure 13
Need to check novelty before this filing date? Find Prior Art

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, genetic programming is used to generate an image processing sequence in which a plurality of image processing filters are combined in a tree structure. [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, multiple image processing sequences are generated by using genetic programming, and an image processing sequence that satisfies a reference condition is specified. In some cases, multiple parameters required for image processing are prepared for each type of parameter in the image processing filter. When an image processing sequence is generated, these parameters are also set. In the technology of Patent Document 1, parameters are added to genes representing image input layers and image filters that constitute individuals. In this case, when generating multiple individuals that represent multiple image processing sequences, it may be difficult to easily generate individuals that focus on parameters, such as by making changes to parameters possessed by an image processing filter. Such issues are not limited to the generation of image processing sequences that process images, but are also common to the generation of data processing sequences that process various data such as images and voltage changes. [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, the data processing sequence having an input layer, a filter layer, and an output layer as nodes. This data processing sequence generation method includes the steps of: (a) generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent either the types of the input layer and the filter layer, or the parameters set in the filter layer; (b) referring to a reference table in which the genes, the nodes, and the parameters are associated with each other, and assigning either the input layer, which is one of the nodes, the filter layer, which is another of the nodes, or the parameters to each of the genes constituting the individuals, thereby generating the data processing sequence corresponding to the individuals; (c) data processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data that is associated with the target data to calculate an evaluation value indicating the similarity between the output data and the target data; and (d) using the evaluation values ​​corresponding to each of the plurality of data processing sequences to identify the data processing sequence that satisfies a predetermined standard condition.

[0006] According to a second aspect of the present disclosure, there is provided a data processing sequence generation device. The data processing sequence has an input layer, a filter layer, and an output layer as nodes. The data processing sequence generation device includes: a population generation unit that generates a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent any one of the types of the input layer and the filter layer and the parameters set in the filter layer; a gene translation unit that refers to a reference table in which the genes, the nodes, and the parameters are associated with each other, and assigns any one of the input layer, which is one of the nodes, the filter layer, which is another of the nodes, and the parameters to each of the genes constituting the individuals, thereby generating the data processing sequence according to the individuals; a calculation unit that performs data processing on target data for each of the plurality of data processing sequences represented by the population, and compares output data output for each of the data processing sequences with target data associated with the target data to calculate an evaluation value indicating a similarity between the output data and the target data; and an identification unit that uses the evaluation values ​​corresponding to each of the plurality of data processing sequences to identify the data processing sequence that satisfies a predetermined reference condition.

[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, the data processing sequence having an input layer, a filter layer and an output layer as nodes. This computer program has: (a) a function for generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent either the types of the input layer and the filter layer, or the parameters set in the filter layer; (b) a function for generating the data processing sequence corresponding to the individuals by referring to a reference table that associates the genes with the nodes and the parameters, and assigning either the input layer, which is one of the nodes, the filter layer, which is another of the nodes, or the parameters, to each of the genes constituting the individuals; (c) a function for processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data that is associated with the target data, to calculate an evaluation value indicating the similarity between the output data and the target data; and (d) a function for identifying the data processing sequence that satisfies a predetermined standard condition, using the plurality of evaluation values ​​corresponding to each of the plurality of data processing sequences. [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 a learning data group. [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 in the generation process. [Figure 7] FIG. 1 is a diagram showing a data processing sequence in a table format and a data processing sequence in a tree structure. [Figure 8]FIG. 4 is a diagram for explaining a connection condition table. [Figure 9] FIG. 4 is a diagram showing an example of a type table. [Figure 10] 11 is a flowchart showing a process executed by the generating device. [Figure 11] 13 is a detailed flowchart of the process of generating a connection condition table in step S10. [Figure 12] FIG. 1 is a first diagram for explaining a process for generating a connection condition table. [Figure 13] FIG. 2 is a second diagram for explaining the process of generating a connection condition table. [Figure 14] FIG. [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. 13 is a diagram showing a threshold table referred to in the process of step S308. [Figure 18] FIG. 11 is a first diagram for explaining step S308. [Figure 19] FIG. 2 is a second diagram for explaining step S308. [Figure 20] FIG. 1 is a diagram showing a data processing sequence in a tabular format. [Figure 21] FIG. 13 is a diagram for explaining a type reference mutation process in the reference individual generation process. [Figure 22] 13 is a flowchart of a utilization process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] A. Embodiment: A-1. Generation system configuration: 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 target data TM after data processing, a connection condition generating function for generating a connection condition table 88 used when executing the sequence generating function, and a data processing function. The target data TM is prepared in advance according to the purpose of data processing by the data processing sequence. For example, when the purpose is to determine the type of input data ID input to the data processing sequence Sq, the target data TM is data indicating the determination result. Also, for example, when it is desired to obtain a physical quantity such as a predetermined voltage or temperature from the input data ID, the target data TM is data indicating a physical quantity. In this embodiment, the target data TM is a target image.

[0011] The data processing function is a function for processing input data ID using a data processing sequence Sq. The generating device 20 of this embodiment automatically generates a data processing sequence DSq for obtaining a desired image for achieving a desired purpose based on a captured image, which is the input data ID. For example, the generating device 20 processes an image of a circuit board, which is an industrial product captured by the sensor device 200, using a 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. For example, the presence or absence and position of defective parts are identified by a user or a device based on this binary image, thereby inspecting the industrial product.

[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 a desired image after image processing from among the generated plurality of data processing sequences Sq.

[0013] The connection condition generation function generates a connection condition table 88 for determining which sequence element corresponds to the numerical value of a gene placed at a gene locus. In this embodiment, the data processing function, sequence generation function, and connection condition generation function are mounted on one generation device 20, but this is not limited to this. In other embodiments, the data processing function, sequence generation function, and connection condition generation function may each be mounted on separate devices, or may exist on the cloud.

[0014] 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 for generating 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 accepts, for example, input of data such as captured images from the sensor device 200, or input of data such as images 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.

[0015] 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 evaluation determination unit 46, a connection condition 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.

[0016] The sequence generation unit 30 generates a sequence set consisting 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 elements include (i) an input layer which is a node for inputting data, (ii) a filter layer which is an intermediate node between the input layer and the output layer and executes data processing, (iii) an output layer which is a node for outputting output data PM which is the final data after data processing, and (iV) parameters of the data processing executed in the filter layer. The data processing sequence Sq includes at least one filter layer. The input layer is the starting node of the data processing sequence Sq. The output layer is the terminal node of the data processing sequence Sq.

[0017] The sequence generation unit 30 includes a population generation unit 32, a gene translation unit 34, and a type table generation unit 36. The population generation unit 32 generates an individual IV composed of a plurality of genes arranged in one dimension. Each gene constituting the individual IV is a numerical value representing one of the input layer, the type of the filter layer, and the parameter value for each parameter of the filter layer among the sequence elements. For each numerical range of the gene indicating the occurrence range, either the input layer or the filter layer, or the parameter value of the parameter is assigned. In this way, in this embodiment, the parameters set in the filter layer are also represented by genes. As described above, the individual IV is generated by arranging genes corresponding to each of the sequence elements except the output layer.

[0018] The population generation unit 32 generates a predetermined number of individuals IV for each generation G. In this embodiment, the population generation unit 32 generates individual IVs of a predetermined gene length by arranging genes in one dimension. The combination of sequence elements of the multiple data processing sequences Sq is different for each generation G. For the first generation G, the population generation unit 32 randomly arranges numbers from 0 to 1 up to the third decimal place as genes at each gene locus of the individual IV to generate a population 84 composed of multiple individual IVs. For the second and subsequent generations G, the population generation unit 32 generates new individual IVs from individual IVs with a high evaluation value EV (to be described later) among the individual IVs of the previous parent generation G using at least one of crossover and mutation, thereby generating a population 84 that is a set of the newly generated individual IVs and the individual IVs maintained in the parent generation G, i.e., the individual IVs of the parent generation G that are duplicated.

[0019] The gene translation unit 34 translates each gene of the individual IV by referring to a gene table 82 and a connection condition 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 connection condition table 88 are tables that define sequence elements 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 connection condition table 88.

[0020] The type table generating unit 36 ​​executes a type table generating step of generating a type table 92 that specifies the type of sequence element represented by each gene of the individual IV for each gene. The type table 92 is used to generate the individual IV that is generated to specify the specific data processing sequence DSq by the sequence generating function. The type table 92 is a table that specifies the decode type, which is the type of sequence element represented by each gene of the individual IV, for each gene. The type table 92 specifies the decode type in association with all gene locus numbers that the individual IV has, 15 in this embodiment. In this way, the type table generating step generates a type table 92 that associates the decode type for distinguishing between the node represented by the gene and the parameter for each gene constituting the individual IV that is the source of the data processing sequence Sq. The type table 92 will be described in detail later.

[0021] The data processing unit 40 processes the input data ID input to the 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 output layer.

[0022] The evaluation and determination unit 46 identifies a specific data processing sequence DSq that satisfies a predetermined reference condition from among a plurality of data processing sequences Sq indicated by a plurality of individuals IV of the first generation G. The evaluation and determination unit 46 includes a calculation unit 47 and a determination unit 49.

[0023] The calculation unit 47 compares output data PM obtained by processing the learning data LM, which is an example of the input data ID, with the data processing sequence Sq indicated by the individual IV, with target data TM, which is a target associated with the learning data LM, to calculate an evaluation value EV indicating a similarity SD between the output data PM and the target data TM. The calculation unit 47 calculates the evaluation value EV for each of the multiple data processing sequences Sq indicated by the multiple individuals IV in one generation G. The calculated evaluation value EV is stored in the storage device 70 in association with the individual IV.

[0024] The identifying unit 49 uses the calculated evaluation value EV to determine whether or not 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.

[0025] 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 EV, 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, data, for example, image data, 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. In addition, when the evaluation value EV indicates the judgment result of whether the output data PM and the target data TM are good or bad, the similarity SD may be, for example, the matching rate of the output data PM and the target data TM corresponding to multiple input data IDs.

[0026] The connection condition table generating unit 55 generates a connection condition table 88 using the evaluation value EV calculated by the evaluation judging unit 46 and the individual IV associated with the evaluation value EV. The connection condition table 88 is a table that defines a connection reference value RV indicating the compatibility of the connection of sequence elements for outputting desired data with the target data TM as the target. Specifically, the connection condition table 88 is a table that defines a connection reference value RV for each element set that is a pair of node elements of a connected input side node element and an output side node element. The connection reference value RV indicates the probability that a pair of element sets will appear as a component of the data processing sequence Sq. The larger the connection reference value RV, the higher the probability that the corresponding element set will appear. A method for generating the connection condition table 88 will be described later.

[0027] 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.

[0028] 2 is a diagram for explaining the storage device 70. The storage device 70 stores a learning data group 74, a node element group 80, a gene table 82, an individual group 84, a connection condition table 88, a type table 92, a various condition table 93, a specific data processing sequence DSq, and various programs 94.

[0029] The various condition tables 93 prescribe the conditions of various processes executed by the generating device 20. For example, the various condition tables 93 prescribe the termination conditions used when executing the generating process of the connection condition table 88, the reference conditions for identifying the specific data processing sequence DSq, and the generating conditions when generating the next generation population. The specific data processing sequence DSq is a data processing sequence Sq that is determined by the identifying unit 49 to satisfy the predetermined reference conditions. The specific data processing sequence DSq is represented, for example, by layer identifiers that identify multiple filter layers, which are multiple data processing layers, and the order of the layer identifiers, i.e., the connection relationship. The various programs 94 are programs executed by the processor 25.

[0030] FIG. 3 is a diagram showing an example of the learning data group 74. The learning data group 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 part DA is represented as a black image and the other parts are represented as a white image. There are two types of target data TM: good product data, which is an image showing a good product, and defective product data, which is an image showing a defective product. The defective product data is generated, for example, by a user setting the defective part DA to a black image and the other parts to a white image with reference to the learning data LM in which the location of the defective part has been specified in advance. Since the good product data does not have a defective part DA, for example, the whole is set to a white image. Each of the plurality of learning data LM is an image of the same type of circuit board having a different serial number, which is captured by the sensor device 200.

[0031] The node element group 80 in Fig. 2 is a set of node elements that constitute a node in the data processing sequence Sq. The node elements are a filter layer and an input layer. Examples of the filter layer 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 data into one data. Note that even if the filter layers are the same type, if the values ​​of parameters such as kernel size and coefficients can be selected, the data processing unit 40 performs data processing by the filter layer in which the selected parameter values ​​are set.

[0032] 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 sequence elements that correspond to the numerical values ​​indicated by the genes.

[0033] FIG. 4 is a diagram for explaining the gene table 82. In the following, for ease of understanding, it is assumed that the node element group 80 is composed of five filter layers FtG to FtL. In reality, more than five filter layers are stored in the node element group 80. The gene table 82 includes a first type gene table 82A and a second type gene table 82B. The first type gene table 82A indicates the correspondence between the input layer in, ConB and the filter layers FtG to FtL, which are node elements constituting the node of the data processing sequence Sq represented by a tree structure, and the numerical value VG indicated by the gene. The input layer in is a layer that accepts the input data ID and outputs it to the output side. The input layer ConB is a layer to which predetermined fixed data is input, for example, the same type of data as the input data ID. If the input data ID is an image, the fixed data is an image.

[0034] The second type gene table 82B indicates the correspondence between the parameter value and the value VG indicated by the gene when the parameter is set in the filter layer. The second type gene table 82B is provided for each filter layer in which a parameter can be set. For example, since two types of parameters FtG_P1 and FtG_P2 can be set in the filter layer FtG, one parameter FtG_P1 is specified in the second type gene table 82B1, and the other parameter FtG_P2 is specified in the second type gene table 82B2.

[0035] In the first type gene table 82A, the number of inputs, the number of parameters, and the appearance range are specified for each node element type indicating the type of input layer and filter layer. The node element type is an identifier that identifies the input layer and the filter layer. The number of inputs indicates the number of sequence elements connected to the input side of the filter layer or the input layer. When the number of inputs is "2", data output from two nodes is input to the filter layer. In this embodiment, the number of outputs, which is the number of nodes connected to the output side of each node, is all "1", and the filter layer and the input layer are connected to one output side node.

[0036] In the second type gene table 82B, the relationship between the parameter value and the appearance range is defined for each node element type for which a parameter is set.

[0037] The range of the gene's numerical value VG is defined as the appearance range of the first type gene table 82A and the second type gene table. For example, in the first type gene table 82A, when the gene's numerical value VG is a value equal to or greater than 0 and less than 0.143, the input layer in is assigned to this gene. In this embodiment, in each of the gene tables 82A, 82B1, 82B2, etc., the numerical values ​​from 0 to 1 are evenly distributed and set as the appearance range so that the node element type or parameter value in each table appears randomly in the data processing sequence Sq with equal probability.

[0038] The population 84 shown in FIG. 2 stores a plurality of individuals IV in one generation G generated by the population 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. 15. The population generation unit 32 randomly arranges genes expressed by a number 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 number from 0 to 1 up to three decimal places.

[0039] 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 in the process of generation generated by the gene translation unit 34. The left side of Fig. 6 shows a tabular data processing sequence TSq representing the tree-structured data processing sequence Sq, and the right side shows the tree-structured data processing sequence Sq. 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.

[0040] In this embodiment, there are two types of generation processes of 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 to generate a connection condition table 88 by executing a connection condition generation function. The specific generation process is a process executed when a sequence generation function using the connection condition table 88 is executed. The gene translation unit 34 of the sequence generation unit 30 refers to the gene table 82 shown in FIG. 4 in the pre-generation process, and refers to the connection condition table 88 and the second type gene table 82B and the type table 92 of the gene table 82 in the specific generation process to generate the data processing sequence Sq. Since the algorithm for generating the data processing sequence Sq from the individual IV in the pre-generation process and the specific generation process is the same, the generation of the data processing sequence Sq in the pre-generation process will be described below first.

[0041] In the pre-generation process, the gene translation unit 34 generates a data processing sequence Sq in a tree structure starting from the output layer out side using the individual IV, the gene table 82, and the node element group 80. As shown on the right side of FIG. 6, the gene translation unit 34 first sets the output layer out as a terminal node that is the end of the output side, and generates the data processing sequence Sq by connecting the nodes 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 translation of the genes is performed according to a depth-first rule. In detail, the data processing sequence Sq is generated according to a rule that the sequence elements, which are node elements and parameters, are set preferentially from the terminal node side in the order of the arrangement of the genes, and that the connection destination on the left side is set preferentially over the connection destination on the right side in the tree structure when the output layer out is placed on the upper side. That is, the filter layer or input layer is arranged from the output layer out side in the order of the arrangement of the genes, and when the input side is branched into multiple branches, the left side is given priority until the sequence on the left side becomes the input layer. In addition, when it is necessary to set a parameter in the filter layer, the next node is set after setting the parameter.

[0042] The gene translation unit 34 refers to "0.899", which is the gene value VG of No. 1 of the individual VI1, and the first type gene table 82A shown in FIG. 4 for setting nodes, and determines that "0.899" is within the appearance range of the filter layer FtL. As a result, the filter layer FtL is connected to the input side of the output layer out. That is, the gene translation unit 34 sets the filter layer FtL to the node element corresponding to node No. 1 in the tabular data processing sequence TSq. Note that, in the tabular data processing sequence TSq, the numbers in parentheses indicate the gene locus No, of the individual IV1 for ease of understanding.

[0043] Next, the gene translation unit 34 refers to the first type gene table 82A and sets a reservation code in the tabular data processing sequence TSq1 according to the number of inputs and the number of parameters of the filter layer FtL set in node No. 1. Specifically, since the number of parameters of the filter layer FtL set in node No. 1 is "1" and the number of inputs is "2," the gene translation unit 34 sets a reservation code to the filter parameter 1 of node No. 1, the first input side node No., and the second input side node No. in the tabular data processing sequence TSq.

[0044] Next, the gene translation unit 34 sets parameters for the reservation codes set as filter parameters among the set reservation codes. Specifically, the gene translation unit 34 refers to the second type gene table 82B corresponding to the filter layer FtL of node No. 1 and the gene value VG2 of the gene of the gene locus No. 2 to select a parameter value to be used in the filter layer FtL. By referring to the gene value VG of the gene locus No. 2 and the second type gene table 82B, the gene translation unit 34 sets the parameter value TL1 in the filter layer FtL as shown in the middle part of FIG. 6.

[0045] After the parameter setting is completed for the filter layer FtL set to node No. 1, the gene translation unit 34 sets the input side node. Specifically, the first input side node is given priority over the second input side node until the first input side node becomes the input layer in or the input layer ConB, which is the starting node. In the example shown in FIG. 6, the gene translation unit 34 assigns node No. 2 to the first input side node No. of the filter layer FtL of node No. 1. Then, the gene translation unit 34 determines the node of node No. 2 by referring to the gene value of the gene locus No. 3 and the first kind gene table 82A. Specifically, since the gene value of the gene locus No. 3 for the individual IV1 is "0.155", the input layer ConB, in which the value "0.155" is within the occurrence range, is set to node No. 2. That is, the input layer ConB is connected to one of the two input sides of the filter layer FtL.

[0046] Since the input layer ConB, which is the starting node, has been set as the first input node of the filter layer FtL, the gene translation unit 34 next sets the second input node to which the reservation code of node No. 1 has been set. The gene translation unit 34 sets sequence elements by referring to the gene values ​​VG of the genes at the loci and the gene table 82 until all inputs are either the input layer in or the input layer ConB.

[0047] When all the input nodes are either the input layer in or the input layer ConB, the gene translation unit 34 ends the generation process of the data processing sequence Sq using the pre-generation process even when 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 nodes are the input layer in or the input layer ConB, the gene translation unit 34 ends the generation process of the data processing sequence Sq by setting a predetermined input layer, the input layer in in this embodiment, to the remaining unconnected input nodes.

[0048] 7 is a diagram showing a tabular data processing sequence TSq1 represented by the individual IV1 in FIG. 5, and a tree-structured data processing sequence Sq1. In the tabular data processing sequence TSq1, the numbers in parentheses are the corresponding gene locus numbers. In the tree-structured data processing sequence Sq1, the number x in [x, y] is the node number of the data processing sequence Sq, and y is the corresponding gene locus number. Since the filter layer FtG has two parameters, a parameter TG1a corresponding to gene locus No. 5 and a parameter TG2b corresponding to gene locus No. 6 are set.

[0049] The storage device 70 will be further described with reference to FIG. 2. The connection condition table 88 shown in FIG. 2 is referred to when the gene translation unit 34 generates a data processing sequence Sq from an individual IV by a specific generation process. FIG. 8 is a diagram for explaining the connection condition table 88. The connection condition table 88 specifies input side node element types indicating the types of input side node elements that are candidates to be placed on the input side, input side node element type identifiers, output side node element types indicating the types of output side node elements that are candidates to be connected to the input side node, output side node element type identifiers, the number of inputs, the number of parameters for each input side node element type, and a connection reference value RV. The input side node elements are the input layers in, ConB and the filter layers FtG to FtL. The output side node elements are the filter layers FtG to FtL and the output layer out. That is, the connection condition table 88 specifies a pair of element sets of connected input side node elements and output side node elements. 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 the input data ID and outputting the desired image targeted at the target data TM. For example, the average value ARV of an element set in which a filter layer FtG is connected to the input side and a filter layer FtH is connected to the output side is "0.680". The average value ARV is determined by the connection condition generation function. A specific method for generating this connection condition table 88 will be described later.

[0050] FIG. 9 is a diagram showing an example of the type table 92. The type table 92 shown in FIG. 9 is generated by the type table generating unit 36 ​​in the process of generating a data processing sequence Sq that is a candidate for the specific data processing sequence DSq by the data processing function. As shown in FIG. 9, the type table 92 is a table in which, for each gene arranged at the gene locus No. for each individual IV, a decode type for distinguishing between a node element and a parameter represented by the gene is associated. The decode type in the type table 92 includes a type for distinguishing between a node and a parameter, as well as a type for distinguishing between an unused gene that was not used in generating the data processing sequence Sq. In FIG. 9, when a gene is used to represent a node element, an identifier of "Node" is set as the decode type. When a gene is used to represent a parameter, an identifier of "Param" is set as the decode type. When a gene is unused, an identifier of "Empty" is set as the decode type. The type table 92 is a part of the reference table 89.

[0051] A-2. Processes performed by the generator: 10 is a flowchart showing the processing executed by the generating device 20. The connection condition generating function of the generating device 20 first executes processing for generating a connection condition table 88 in step S10. Next, the sequence generating function of the generating device 20 executes processing for generating a specific data processing sequence DSq using the connection condition table 88 in step S30. Next, the data processing function of the generating device 20 executes processing for utilizing the specific data processing sequence DSq in step S50.

[0052] Fig. 11 is a detailed flowchart of the process of generating the connection condition table 88 in step S10. Fig. 12 is a first diagram for explaining the process of generating the connection condition table 88. Fig. 13 is a second diagram for explaining the process of generating the connection condition table 88.

[0053] 11, first, in step S100, the storage device 70 stores a plurality of filter layers and an input layer as a node element group 80. Step S100 is executed when a user inputs node elements such as filter layers that are candidates for use in a specific data processing sequence DSq to the generation device 20.

[0054] In addition, in step S101, the storage device 70 stores a training data group 74 configured from a plurality of training sets SM. Step S101 is executed when the training data group 74 is input to the generation device 20 by a user.

[0055] Furthermore, in step S102, the connection condition table generating unit 55 initializes the connection condition table 88. Specifically, the connection condition table generating unit 55 sets all average values ​​ARV, which are values ​​of each element set in the connection condition table 88, to a predetermined value as shown in Fig. 12. The predetermined value can be set to any value between 0 and 1, which is within the range that the average value ARV can take, and is "1" in this embodiment. Note that the order of steps S100, S101, and S102 is not limited to this.

[0056] Next, as shown in FIG. 11, in step S103, the population generation unit 32 generates a population 84 consisting of a plurality of individuals IV for the current generation G. 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. Next, in step S104, 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. The data processing sequence Sq may be stored in the storage device 70 as a data processing sequence TSq in a tabular format as shown in FIG. 7, for example. "Translation" means converting each gene of the individual IV into a sequence element to generate a data processing sequence Sq from the individual IV.

[0057] Next, as shown in FIG. 11, in step S105, the data processing unit 40 processes the plurality of learning data LM using the data processing sequence Sq generated in step S104 to generate a plurality of output data PM.

[0058] Next, in step S109, the calculation unit 47 of the evaluation and judgment unit 46 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 are generated, and calculates multiple evaluation values ​​EV to evaluate the processing result. The calculation unit 47 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 evaluation and judgment unit 46 calculates the connection reference value RV using the final evaluation value EV. In this embodiment, the evaluation and judgment unit 46 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 S110, the connection condition table generating unit 55 executes an update of the connection condition table 88. For example, if the connection reference value RV calculated from the final evaluation value EV of the data processing sequence Sq1 shown in Fig. 7 is "0.800", all element sets of pairs of input side node elements and output side node elements constituting the data processing sequence Sq1 are extracted, and the connection reference value RV of "0.800" is added to the column representing the extracted element set. Here, the average value ARV is specified as the final connection reference value RV in the column representing one element set in the connection condition 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):

[0060] ARV n ={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 there are a plurality of the same element sets in the data processing sequence Sq1, 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 node element and the output side node element is expressed as [input side node element, output side node element], the data processing sequence Sq1 shown in FIG. 7 has the following element sets. For each of the following element sets, the connection condition table generating unit 55 adds the connection reference value "0.800" to the column of each element set in the corresponding connection condition table 88 as shown in FIG. 13, and divides by (n+1) to calculate the average value ARV. In this example, since n=1, the average value ARV is "0.900". [Input side = input layer in, output side = filter layer FtI] [Input side = filter layer FtI, output side = filter layer FtG] [Input side = filter layer FtG, output side = filter layer FtL] [Input side = input layer ConB, output side = filter layer FtL] [Input side = filter layer FtL, output side = output layer out]

[0062] 11, in step S111, connection condition table generating unit 55 determines whether or not the processes of steps S104 to S110 have been executed for all individuals IV of one generation G. If the determination in step S111 is "No," processor 25 selects one of the individuals IV of one generation G for which steps S104 to S110 have not been executed, and executes the processes of steps S104 to S111 again.

[0063] On the other hand, if the determination in step S111 is "Yes," the connection condition table generating unit 55 determines in step S113 whether or not the termination condition is satisfied. The termination condition is a condition that the processing routines of steps S103 to S111 have been executed a predetermined number of times in advance. The predetermined number of times in advance is set, for example, to a number such that the connection reference value RV is added at least once, and preferably twice or more, to all the element set columns in the connection condition table 88. For example, the number of times in advance is set to a number such that the processing routines of steps S104 to S111 are executed for individuals IV that are twice or more the number of element sets defined in the connection condition table 88.

[0064] As described above, the connection condition table 88 is generated by using the similarity SD generated using each of the multiple data processing sequences Sq generated by the process of step S104 as the connection reference value RV so that the node elements have a relationship in which they appear with random probability. In this way, by generating individuals IV using the connection condition table 88, it is possible to increase the possibility that an element set with high connection compatibility will be included in the data processing sequence Sq.

[0065] If the termination condition is not satisfied, the population generation unit 32 executes step S103 again in the next processing routine. m Individual IV m 1~IV 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 population 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 individuals IV generated by the re-execution of step S103 n Then, the process from step S104 onward is executed again on the target.

[0066] On the other hand, if the end condition is satisfied, the connection condition table generating unit 55 outputs the connection condition table 88 at the time when the end condition is satisfied, and stores it in the storage device 70 in step S115.

[0067] FIG. 14 is a diagram showing a connection condition table 88. When the generation process of the connection condition table 88 satisfies a termination condition, the connection condition table 88 as shown in FIG. 14 is stored in the storage device 70. For each element set defined in the connection condition table 88, the average value ARV is defined as the final connection reference value RV. Here, in the specific generation process, in order to generate a data processing sequence Sq that is a candidate for the specific data processing sequence DSq, the sequence generation unit 30 refers to the connection condition table 88 and the second type gene table 82B shown in FIG. 4, as described later. The connection condition table 88 and the second type gene table 82B, together with the type table 92 shown in FIG. 9, constitute a reference table 89.

[0068] Fig. 15 is a detailed flowchart of the generation process of the specific data processing sequence DSq in step S30 shown in Fig. 10. First, in step S300, the storage device 70 stores a plurality of filter layers and an input layer ConB as a node element group 80. Step S300 is executed by inputting node elements such as filter layers that are candidates for use in the specific data processing sequence DSq to the generating device 20 by the user. Note that, when the generation process of the specific data processing sequence DSq is executed by the same device as the generating device 20 that executed the generation process of the connection condition table 88, the node element group 80 has already been stored in the storage device 70 in step S100 of Fig. 11. Therefore, in this case, step S300 can be omitted.

[0069] In addition, in step S301, the storage device 70 stores a learning data group 74 consisting of a plurality of learning sets SM. Step S301 is executed by inputting the learning data group 74 to the generating device 20 by a user. Note that, when the generating process of the specific data processing sequence DSq is executed by the same device as the generating device 20 in which the generating process of the connection condition table 88 is executed, and when the same learning data group 74 is used, the learning data group 74 is already stored in the storage device 70, and step S301 can be omitted. On the other hand, for example, when the learning data group 74 generated based on a circuit board, which is a target product from which the learning data group 74 used in the generating process of the connection condition table 88 is based, is generated based on a circuit board of the same type but manufactured in a different factory, or when the product from which the learning data group 74 is generated is different from the circuit board, which is a target product from which the learning data group 74 is based, but which is manufactured in a different factory, or when the purpose of inspecting the presence or absence of a defective part DA is the same but the product from which the learning data group 74 is generated is the same, step S301 is executed.

[0070] Furthermore, in step S304, the storage device 70 stores the connection condition table 88 generated in the process of generating the connection condition table 88. Note that, when the process of generating the specific data processing sequence DSq is executed by the same device as the generating device 20 in which the process of generating the connection condition table 88 was executed, the connection condition 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 population generation unit 32 generates a plurality of individuals IV to generate a population 84 of one generation. As described above, the individual IV arranges a plurality of genes to represent either the types of the input layer and the filter layer, or the parameters set in the filter layer, as shown in FIG. 5. Step S306, which constitutes a data processing sequence Sq having the input layer, the filter layer, and the output layer as nodes, is the same process as step S103 in FIG. 11. 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 a reference table 89 including the second type gene table 82B and the connection condition table 88 to generate a data processing sequence Sq. That is, in step S308, the gene translation unit 34 refers to the reference table 89 in which the genes of the individual IV are associated with nodes and parameters, and assigns, for each gene constituting the individual IV, either an input layer, which is one of the nodes, a filter layer, which is another of the nodes, or a parameter, to generate a data processing sequence Sq according to the individual IV. The generation of the data processing sequence Sq in step S308 is performed 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 learning data 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 evaluation determination unit 46 compares the multiple output data PM generated in step S350 with the target data TM associated with the learning data LM from which each of the multiple output data PM was generated, and calculates multiple evaluation values ​​EV to evaluate the processing result. The evaluation determination unit 46 uses the average value of the multiple calculated evaluation values ​​EV as the final evaluation value EV indicating the similarity SD between the output data PM and the target data TM.

[0075] Next, in step S354, the evaluation and determination unit 46 determines whether or not the processes of steps S308 to S352 have been performed on all the individuals IV of one generation G. If the determination 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 processes 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 for each of the multiple data processing sequences Sq. Then, the evaluation and determination unit 46 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 49 of the evaluation determination unit 46 determines in step S356 whether or not there is a data processing sequence Sq that satisfies a predetermined standard condition, using the multiple evaluation values ​​EV calculated in the current generation. Specifically, the identification unit 49 of the evaluation determination unit 46 determines that there is a data processing sequence Sq that satisfies the standard 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 standard condition, using 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 specification unit 49 of the evaluation determination unit 46 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 processes of steps S306 to S356 are executed as the next routine. That is, in step S306 of the next routine, the next generation population 84 is generated by the next generation generation process. In the next generation generation process, the population generation unit 32 generates a sequence set by replacing the target data processing sequence Sq, which is one or more data processing sequences Sq with low similarity SD indicated by the evaluation value EV among the multiple individuals IV generated in the previous routine, with a new data processing sequence Sq with different sequence elements. In this embodiment, the population generation unit 32 replaces the individual IV with low similarity SD, i.e., the bottom J-th individual IV, among the multiple individuals IV of the parent generation used in the previous routine, with a new individual IV by performing at least one of crossover and mutation for the individual IV with high similarity SD that does not fall within the bottom J-th individual IV. Also, in the next generation generation process, the population generation unit 32 duplicates the individual IV with high similarity SD that does not fall within the bottom J-th individual IV. A new sequence set is constructed from the duplicated individual IV and an individual IV newly generated by crossover or mutation. Then, the processing of steps S308 to S356 is executed again for the new sequence set. As described above, by replacing one or more individual IVs with low similarity SD with new individual IVs based on individual IVs with high similarity SD, data processing sequences Sq with 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 criterion condition.

[0079] The next generation generation step includes a reference individual generation step of generating a next generation population by performing at least one of crossover and mutation with reference to the species table 92 shown in Fig. 9, and a normal individual generation step of generating a next generation individual IV by performing at least one of crossover and mutation without reference to the species table 92. In the next generation generation step, whether to execute the reference individual generation step or the normal individual generation step for each individual IV is specified in the generation conditions of the various condition table 93 shown in Fig. 2. The generation conditions may be specified by input from the user. The reference individual generation step will be described in detail later.

[0080] 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.

[0081] Fig. 16 is a detailed flowchart of step S308. Fig. 17 is a diagram showing a threshold table 98 referred to in the processing of step S308. Fig. 18 is a first diagram for explaining step S308. Fig. 19 is a second diagram for explaining step S308. Fig. 20 is a diagram showing a tabular data processing sequence TSq2 corresponding to individual IV2. In Fig. 17, the element set in the thick frame portion is the element set that appears as the data processing sequence Sq of individual IV2.

[0082] As shown in FIG. 16, first, the gene translation unit 34 reads the table translation conditions stored in the various condition tables 93 of the storage device 70 in step S310. The table translation conditions are input by the user and define the table to be referred to by the gene translation unit 34 in the process of step S308. The table translation conditions define whether to refer to the first type gene table 82A shown in FIG. 4, in which the nodes of the filter layers FtG to FtL and the input layers in and ConB have an equal probability of appearance, or to refer to the connection condition table 88 shown in FIG. 8, in which the probability of appearance is set based on the compatibility of the connection. If the table translation conditions are not stored in the storage device 70, the gene translation unit 34 refers to the connection condition table 88. Note that the table showing the probability of appearance of the parameter is the second type gene table 82B shown in FIG. 4, regardless of which table translation condition is set. In this embodiment, the table translation conditions define that the table to be referred to by the gene translation unit 34 is the connection condition table 88.

[0083] In addition, when the sequence generation unit 30 executes processing related to the generation of sequence elements of the data processing sequence Sq, such as selecting an input node element or obtaining the number of parameters, in the processing from step S316 onwards, it updates the data processing sequence TSq in tabular form shown in Figure 6 along with the execution of the processing.

[0084] In step S311, the gene translation unit 34 selects one unprocessed individual from among the individuals IV1 to IV5 constituting the current generation G stored in the storage device 70. The following describes the case where the individual IV2 shown in FIG. 5 is selected.

[0085] Next, in step S316, the gene translation unit 34 selects one unconnected output side node element to which no input side node element is connected according to the connection rule. In this embodiment, as shown in FIG. 6, the data processing sequence Sq is generated in the order from the output side to the input side, so that in the first routine, the output layer out is set as the terminal node. Therefore, in step S316 in the first routine, the gene translation unit 34 selects the output layer out as the output side node element. Note that the connection of the node elements is executed according to the connection rule previously determined as described above. For example, the gene translation unit 34 sets the output layer out as the terminal node, which is the end of the output side, and connects the nodes to the input side in the order of the arrangement of the genes of the individual IV, thereby generating the data processing sequence Sq.

[0086] After step S316, in step S318, the gene translation unit 34 determines an input node to be connected to the output node as a connection destination, based on the connection condition table 88 and the genes of the selected individual IV. Specifically, the gene translation unit 34 uses the connection condition table 88 to generate a data processing sequence Sq such that the higher the average value ARV as the connection reference value RV of an input node is, the higher the probability of the input node being connected to the output node has a probability relationship with the output node. The data processing sequence Sq having the above probability relationship is generated by selecting an input node element for an output node element according to the following node selection algorithm.

[0087] <Input side node element selection algorithm> The prerequisites for the node selection algorithm are as follows: ·Gene value··VG (VG is a number between 0 and 1 up to three decimal places) Identifier of output node element j Here, j is represented by an integer equal to or greater than 0, and a different value is assigned to each output side node element. In this embodiment, identifiers j of 0 to 6 are assigned to the output side node elements FtG to out in that order. Identifier of the connected input node element i Here, i is an integer equal to or greater than 0, and ranges from 0 to N f Represented by an identifier up to -1. f is the number of candidates for the input side node element. In this embodiment, as shown in FIG. f The value is 8. Furthermore, identifiers i are assigned numbers from 0 to 7 in the order of input side node elements in to FTL. ·Value of element set of connection condition table 88···t ij t ij is the average value ARV shown in FIG. 14, and the subscript “ij” is an identifier for identifying an element set, and corresponds to the identifier of the input side node element and the output side node element. For example, t 12 indicates 0.738, which is the average ARV of the element set in FIG. 14, in which the input side node elements are the input layer ConB and the output side node elements are the filter layer FtI.

[0088] In the node selection algorithm, the probability P ij is calculated by the following formula (1).

number

[0089] In the node selection algorithm, the upper threshold T ij is calculated using the following formula (2). The lower threshold is set to the upper threshold of the input side node element corresponding to the previous identifier. If there is no previous identifier, the lower threshold is set to "0".

number

[0090] By using the above-mentioned node selection algorithm to determine a numerical range indicating the range of occurrence of genes, a data processing sequence Sq is generated so that the ratio of the average value ARVs, which are the connection reference values ​​of each input node element that is a connection candidate for the same output node element, becomes the ratio of the connection probabilities to be connected to the output node element.

[0091] In this embodiment, the gene translation unit 34 selects the input side node element according to the gene value VG by the node selection algorithm as follows: Regarding the inequality sign, the presence or absence of the equality sign may be changed as long as the gene value VG is included in any of the occurrence ranges. 0≦VG <T 0j In this case, select the input layer in, which is input node element No. 0. T 0j ≦VG≦T 1j In this case, select input layer ConB, which is input side node element No. 1. T 1j <VG≦T 2j In this case, the filter layer FtG, which is input node element No. 2, is selected. T 2j <VG≦T 3j In this case, the filter layer FtH, which is input node element No. 3, is selected. T 3j <VG≦T 4j In this case, the filter layer FtI, which is input node element No. 4, is selected. T 4j <VG≦T 5j In this case, the filter layer FtJ, which is input node element No. 5, is selected. T 5j <VG≦T 6j In this case, the filter layer FtK, which is input node element No. 6, is selected. T 6j <VG≦T 7j In this case, the filter layer FtL, which is input node element No. 7, is selected.

[0092] The threshold table 98 shown in FIG. 17 is a table of the upper threshold T ij The gene translation unit 34 may generate the threshold value table 98 shown in Fig. 17 before the process of step S308 is started, or may generate at least a part of the threshold value table 98 shown in Fig. 17 required for selecting input side node elements when executing step S318.

[0093] In step S318 shown in FIG. 16, the gene translation unit 34 calculates the upper limit threshold value described in the column of the output layer out in the threshold table 98 as the output side node element. ij with the gene value VG1 of the gene at locus No. 1 of individual IV2, which is "0.921." As a result, the gene translation unit 34 selects a filter layer FtL according to the value VG1 as the input side node element. Also, in step S318, the gene translation unit 34 sets the filter layer FtL to the node element corresponding to node No. 1, as shown in the diagram in the upper part of FIG. 18. Note that in the data processing sequence TSq2 in tabular form, the numbers in parentheses of the filter layer FtL indicate the locus No. of individual IV2 for ease of understanding.

[0094] 16, in step S320 following step S318, type table generation unit 36 ​​associates an identifier identifying the node element with the gene locus where the corresponding gene is located, and records it in type table 92. In this embodiment, as shown in the leftmost part of Fig. 19, type table generation unit 36 ​​records an identifier of "Node" indicating a node element as a decode type in type table 92, in association with gene locus No. 1 where the corresponding gene that was the source of translation is located.

[0095] In step S322 following step S320, the gene translation unit 34 refers to the connection condition table 88 to acquire the number of parameters and the number of inputs of the input side node element selected in step S318. In step S322, the gene translation unit 34 sets a reservation code in the tabular data processing sequence Sq2 shown in Fig. 18 according to the acquired number of parameters and the number of inputs. Specifically, since the number of parameters of the filter layer FtL set in node No. 1 is "1" and the number of inputs is "2", the gene translation unit 34 sets a reservation code in the filter parameter 1 of node No. 1, the first input side node No., and the second input side node No. in the tabular data processing sequence TSq.

[0096] As shown in FIG. 16, the gene translation unit 34 determines whether there is an undetermined parameter in step S324. In step S324, the gene translation unit 34 compares the number of parameters acquired in step S322 with the number of parameters translated into sequence elements, and if they do not match, determines that there is an undetermined parameter. Specifically, the gene translation unit 34 determines that there is an undetermined parameter when a reserved code is set in at least one of the filter parameters 1 and the filter parameters 2 in the tabular data processing sequence TSq2. In the example shown in FIG. 18, a reserved code is set in the filter parameter 1 corresponding to the filter layer FtL, so the gene translation unit 34 determines that there is an undetermined parameter and executes step S326.

[0097] In step S326 shown in Fig. 16, the gene translation unit 34 determines parameters using the second type gene table 82B that specifies the range of appearance of parameters and the value of the original gene. For example, as shown in the middle part of Fig. 18, a parameter value TL1 corresponding to the value VG2 of the gene at locus No. 2 is determined as a parameter of the filter layer FtL of node No. 1.

[0098] Next, in step S328, the type table generation unit 36 ​​associates the identifier identifying the parameter with the gene locus number where the corresponding gene is located, and records it in the type table 92. In this embodiment, as shown in the second from the left in Fig. 19, the type table generation unit 36 ​​records the identifier "Param" indicating a parameter as a decode type in the type table 92, in association with gene locus No. 2 where the corresponding gene that was the source of translation is located.

[0099] As shown in Fig. 16, after step S328, the gene translation unit 34 executes step S324 again. As shown in the middle part of Fig. 18, a reservation code is not set in the filter parameters 1 and 2 of the filter layer FtL of node No. 1. In this case, the gene translation unit 34 determines that there are no undetermined parameters, and executes step S330 shown in Fig. 15. In step S330, the gene translation unit 34 determines whether there are any unconnected nodes in the data processing sequence Sq of the generation process. If all the nodes on the input side are input layers in, ConB, the gene translation unit 34 determines that there are no unconnected nodes.

[0100] If the gene translation unit 34 determines that there is an unconnected node, it executes step S316 again. In the example shown in FIG. 18, there are two unconnected input side nodes with reservation codes specified, with the filter layer FtL of node No. 1 as the output side node element. Therefore, in accordance with the connection rule, the gene translation unit 34 selects the input side node No. 1 associated with node No. 1 as the unconnected node. In the next step S318, the gene translation unit 34 refers to the gene value VG3 of the gene locus No. 3 and the threshold table 98, and determines the node element of node No. 2 as the input layer ConB.

[0101] On the other hand, if the gene translation unit 34 determines that there are no unconnected nodes, the type table generation unit 36 ​​in step S332 records the unused identifiers not used in the translation in the type table 92 by associating them with the gene loci where the corresponding genes are located. For example, in generating the data processing sequence Sq2 using the individual IV2, as shown in the type table 92 on the right side of Fig. 19, the genes at gene loci No. 8 to No. 15 were not used in the translation, so the identifier "Empty" is recorded at gene loci No. 8 to No. 15.

[0102] As shown in Fig. 16, after step S332, the gene translation unit 34 outputs the translated data processing sequence Sq in step S334. For example, the output data processing sequence Sq may be a data processing sequence TSq in a table format as shown in Fig. 20. The output data processing sequence Sq is stored in the storage device 70. This completes the generation process in step S308.

[0103] Note that the sequence generation unit 30 executes the following termination process if there are unconnected nodes or undetermined parameters even after using all genes for the individual IV. In the termination process, if there are unconnected nodes, the gene translation unit 34 sets all input layers in to the unconnected nodes. Also, in the termination process, if there are undetermined parameters, the gene translation unit 34 sets a predetermined specific parameter value. In the termination process, if an unconnected node or an undetermined parameter is set, there is no original gene for translation, so the type code is not recorded in the type table 92.

[0104] Next, the details of step S306 executed in the second or later routine will be described in the flowchart shown in FIG. 15. In step S306 in the second or later routine, a population 84 is newly generated using at least one of a reference individual generation process and a normal individual generation process according to a predetermined generation condition. The normal individual generation process is a generation process using a normal genetic algorithm, and generates individuals IV of the population 84 of the next generation by performing at least one of crossover and mutation without referring to the type table 92. The reference individual generation process refers to the type table 92 to determine at least one of a crossover point and a gene to be mutated, and performs at least one of crossover and mutation. In the reference individual generation process, the process of performing mutation is also called a type reference mutation process, and the process of performing crossover is also called a type reference crossover process. In this way, when generating the next generation individual IV, by performing at least one of crossover and mutation on the individual IV of the previous routine with reference to the type table 92, the generation of the next generation individual IV can be easily performed with attention to the parameters of the filter layer. For example, by mutating genes that represent the parameters of an individual IV in a previous routine, it is possible to easily generate a next-generation individual IV with only the parameters changed.

[0105] In the reference individual generation step, when generating an individual IV by mutation, the population generation unit 32 mutates a specific gene associated with a parameter as a decode type among multiple genes possessed by the individual IV to be mutated. In the type reference crossover step, when generating an individual IV by crossover, for example, one-point crossover, the population generation unit 32 sets a crossover point between a specific gene and the next gene among multiple genes possessed by one of the individuals IV to be generated, and performs the crossover. The type reference mutation step will be described below with reference to the drawings.

[0106] 21 is a diagram for explaining the type reference mutation process of the reference individual generation process. In this embodiment, the generation condition is to select individuals IV mThe other individuals with high similarity SD IV m From the individual IV, a new individual is created by mutation or crossover. n In this embodiment, the generation condition includes a condition that, when performing mutation, the individual IV that is the source of the top N data processing sequences Sq is generated. m For the individual IV, the type reference mutation process of the reference individual generation process is executed. m For the data processing sequences Sq with the top N similarities SD, the condition that the individual generation process is normally executed is included. As a result, for the data processing sequences Sq with the top N similarities SD, it is possible to evaluate whether or not the standard conditions are satisfied by changing only the parameters of the filter layer. Note that "N" is an integer equal to or greater than 1, and the upper limit is the number of individuals IV to be replicated. In this embodiment, "N" is set to "1". That is, in this embodiment, m Individual IV m The best individual with the highest similarity SD among them is IV m 1, the species reference mutation process is performed. This results in the best individual IV m Regarding 1, it is possible to evaluate whether the standard conditions are met by changing only the parameter values. The generation conditions also include a condition that the normal individual generation process is executed when crossover is performed. These generation conditions are set, for example, by the user.

[0107] According to the above generation conditions, the population generation unit 32 generates the parent generation G m Individual IV m 1~IV m The second lowest individual IV out of 5 m IV. m For 5, the top three individual IVs m 1~IV m Based on 3, a new individual IV n 4,IV n 5. The population generation unit 32 replaces the individuals IV m 1~IV m 3 is replicated to create the current generation Gn individual IV n 1~IV n Let's say it's 3.

[0108] In addition, the population generation unit 32 selects the parent generation individual IV m 1, the species reference mutation process is performed to obtain the individual IV n Specifically, the population generation unit 32 refers to the type table 92 to identify a gene locus associated with the identifier [Param] as the decode type. In this embodiment, the identifier "Param" is associated with gene locus No. 2. In this case, the population generation unit 32 generates individual IV of the parent generation Gm. m By mutating the gene at locus No. 2 of 1, the current generation Gn individual IV n Generates 4.

[0109] In addition, the population generation unit 32 sets an arbitrary position as a crossover point for the individuals IVm2 and IVm3 of the parent generation Gm without referring to the type table 92, and executes crossover to generate the individuals IVm2 and IVm3 of the current generation Gn. n Generates 5.

[0110] Fig. 22 is a flowchart of the use processing step of step S50 shown in Fig. 10. First, in step S500, the storage device 70 stores the node element group 80 received by the input unit 150. The node element group 80 stored in the use processing step may be only the node elements used in the specific data processing sequence DSq. Note that, when the use processing step and step S30 in Fig. 10 are executed by the same generating device 20, step S200 can be omitted, and the node element group 80 stored in the storage device 70 in step S100 can be used.

[0111] Next, in step S501, the storage device 70 stores the specific data processing sequence DSq identified 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.

[0112] 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 acquired in step S503 is, for example, the same type of data as the learning data LM, and in this embodiment, is an image of an object. 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 the data processing described below is executed.

[0113] Next, in step S504, the data processing unit 40 executes data processing using the specific data processing sequence DSq on the data acquired in step S503. That is, data processing is executed on the image data in accordance with the order and parameter values ​​indicated by the specific data processing sequence DSq.

[0114] 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.

[0115] 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 processing step when the user inputs information indicating the end of data processing or when there is no unprocessed data to be processed remaining in the storage device 70.

[0116] According to the above embodiment, as shown in FIG. 5 and FIG. 7, the genes constituting the individual IV represent the parameters set in the filter layer in addition to the nodes of the input layer in and the filter layer. This allows the generation of individual IVs focusing on parameters in the process of generating the population. For example, genes can be used according to the number of parameters that differ depending on the type of filter layer. Also, for example, an individual IV representing a data processing sequence Sq in which only the parameters of a specific filter layer are changed can be easily generated. Also, according to the above embodiment, by associating a decode type with each gene through the type table generation process executed by steps S320, S328, and S332 shown in FIG. 16, it is possible to easily generate individual IVs focusing on parameters in step S306 shown in FIG. 15 by referring to the type table 92. In particular, as shown in FIG. 21, mutation is performed on genes associated with parameters as decode types to generate individual IVs. n Since 4 is generated, individual IV is the target of mutation. m It is easy to generate an individual IV by changing only the parameters of the filter layer with respect to 1. This makes it possible to generate a data processing sequence Sq by changing only the parameter values ​​and evaluate whether it satisfies the criterion conditions.

[0117] According to the above embodiment, the next generation generation step executes at least one of a reference individual generation step and a normal individual generation step in accordance with a predetermined generation condition. As a result, by setting the generation conditions for generating a data processing sequence Sq that is a candidate for a data processing sequence DSq that satisfies the reference condition, it is possible to generate a data processing sequence generated with attention to parameters and a data processing sequence Sq generated without attention to parameters. In other words, by setting the generation conditions, it is possible to optimize the data processing sequence Sq by adjusting parameters and to optimize the data processing sequence Sq by generating various data processing sequences.

[0118] B. Other embodiments: B-1. Alternative embodiment 1: According to the above embodiment, as shown in FIG. 4, the second type gene table 82B has an appearance range set so that a plurality of parameter values ​​appear evenly for each parameter, but the present invention is not limited to this, and the appearance range may be set unevenly. Also, for example, the second type gene table 82B may be a table in which the gene value VG and the parameter value VA are determined by a function. For example, when the parameter value VA can be set in the range of 0.5 to 1.5, and the gene value VG is set in the range of 0 to 1, the value VA may be expressed by the following linear function, formula (B). The second type gene table 82B may be defined by a function that performs nonlinear conversion. VA=VG+0.5 Equation (B)

[0119] B-2. Alternative embodiment 2: 16, the gene translation unit 34 determines the parameters of the filter layer by referring to the second gene table 82B and the value VG of the gene of the translation source each time as in step S326, but this is not limited to this. For example, the gene translation unit 34 may store the source of the parameter, i.e., the value of the gene of the translation source, in the storage device 70, and after the determination in step S330 is "No," determine the parameter values ​​collectively by referring to the second gene table 82B and the value VG of the gene.

[0120] 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.

[0121] (1) According to a first aspect of the present disclosure, there is provided a method for generating a data processing sequence, the data processing sequence having an input layer, a filter layer, and an output layer as nodes. This data processing sequence generation method includes the steps of: (a) generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent either the type of the input layer and the filter layer or the parameters set in the filter layer, constituting a data processing sequence having an input layer, a filter layer, and an output layer as nodes; (b) referring to a reference table in which the genes, the nodes, and the parameters are associated with each other, and assigning either the input layer, which is one of the nodes, the filter layer, which is another of the nodes, or the parameters to each of the genes constituting the individuals, thereby generating the data processing sequence corresponding to the individuals; (c) data processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data that is associated with the target data to calculate an evaluation value indicating the similarity between the output data and the target data; and (d) using the evaluation values ​​corresponding to each of the plurality of data processing sequences to identify the data processing sequence that satisfies a predetermined standard condition. According to this embodiment, the genes constituting the individual represent the parameters set in the filter layer in addition to the nodes in the input layer and the filter layer. This makes it possible to generate an individual focusing on the parameters in step (a). For example, it is possible to use genes according to the number of parameters, which differ depending on the type of filter layer.

[0122] (2) In the above embodiment, the predetermined criterion condition in the step (d) is a condition that the highest similarity among the multiple similarities indicated by the multiple evaluation values ​​is equal to or higher than a predetermined termination threshold, and the step (a) may include a next-generation generation step of replacing one or more individuals having low similarity among the multiple individuals generated by the previous routine by performing at least one of crossover and mutation on the individuals having high similarity with new individuals, and duplicating the individuals having high similarity to generate the next-generation population to be used in the current routine if the predetermined criterion condition is not satisfied in the step (d). According to this embodiment, by replacing one or more individuals having low similarity with new individuals based on the individuals having high similarity, data processing sequences having low similarity can be excluded from processing targets. This makes it possible to identify data processing sequences that satisfy the criterion condition more efficiently.

[0123] (3) In the above embodiment, the step (b) may include a type table generating step of generating a type table in which, for each of the genes constituting the individual from which the data processing sequence is generated, a decode type for distinguishing between the node represented by the gene and the parameter, and the reference table may include the type table. According to this embodiment, by associating a decode type with each gene in the type table generating step, it is possible to easily generate an individual focusing on parameters in the step (a) by referring to the type table.

[0124] (4) In the above embodiment, the decode type may include a type for distinguishing the unused genes that were not used in generating the data processing sequence, in addition to distinguishing between the nodes and the parameters, and the type table generating step may generate the type table in which, for each gene constituting the individual from which the data processing sequence is generated, the decode type for distinguishing between the node and the parameter represented by the gene and the unused genes is associated with each gene. According to this embodiment, the type table makes it easy to identify unused genes that were not used in generating the data processing sequence.

[0125] (5) In the above embodiment, the next-generation generating step may include a reference individual generating step of determining at least one of a crossover point and the gene to be mutated by referring to the type table, and performing at least one of the crossover and the mutation. According to this embodiment, when generating the next-generation individuals, the type table is referred to and at least one of the crossover and the mutation is performed on the individuals of the previous routine, thereby making it possible to easily generate the next-generation individuals focusing on parameters.

[0126] (6) In the above embodiment, when generating the individual by the mutation, the reference individual generating step may include a type reference mutation step of performing the mutation on the gene associated with the parameter as the decoding type among the multiple genes possessed by the individual to be mutated. According to this embodiment, since an individual is generated by performing a mutation on the gene associated with the parameter as the decoding type, an individual can be easily generated in which only the parameters of the filter layer are changed from the individual to be mutated. This makes it possible to generate a data processing sequence in which only the parameter values ​​are changed and evaluate whether or not the reference condition is satisfied.

[0127] (7) In the above embodiment, the next generation generation step may further include a normal individual generation step of generating the individuals by performing at least one of crossover and mutation without referring to the type table, and the next generation generation step may execute at least one of the reference individual generation step and the normal individual generation step in accordance with predetermined generation conditions. According to this embodiment, by setting generation conditions for generating data processing sequences that are candidates for data processing sequences that satisfy a reference condition, it is possible to generate a data processing sequence generated with a focus on parameters and a data processing sequence generated without a focus on parameters.

[0128] (8) In the above embodiment, the generation condition may be a condition that the type reference mutation step is executed for the individuals that are the generation sources of the data processing sequences having the top N similarities (N is an integer equal to or greater than 1) among the individuals having the highest similarities among the multiple individuals generated by the previous routine. According to this embodiment, for the data processing sequences having the top N similarities, only the parameters of the filter layer can be changed to evaluate whether or not they satisfy the reference condition.

[0129] (9) According to a second aspect of the present disclosure, there is provided an apparatus for generating a data processing sequence, wherein the data processing sequence has an input layer, a filter layer, and an output layer as nodes. This data processing sequence generation device includes a population generation unit that generates a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent either the type of the input layer, the type of the filter layer, or the parameters set in the filter layer, constituting a data processing sequence having an input layer, a filter layer that performs data processing, and an output layer as nodes; a gene translation unit that refers to a reference table that associates the genes, the nodes, and the parameters, and assigns either the input layer, which is one of the nodes, the filter layer, which is another of the nodes, or the parameters to each of the genes constituting the individuals, thereby generating the data processing sequence according to the individuals; a calculation unit that performs data processing on target data for each of the plurality of data processing sequences represented by the population, and compares output data output for each of the data processing sequences with target data that is a target associated with the target data, to calculate an evaluation value indicating the similarity between the output data and the target data; and an identification unit that uses the evaluation values ​​corresponding to each of the plurality of data processing sequences to identify the data processing sequence that satisfies a predetermined standard condition. According to this embodiment, the genes constituting the individual represent the parameters set in the filter layer in addition to the nodes in the input layer and the filter layer. This makes it possible to generate an individual focusing on the parameters in step (a). For example, it is possible to use genes according to the number of parameters, which differ depending on the type of filter layer.

[0130] (10) 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, the data processing sequence having an input layer, a filter layer, and an output layer as nodes. This computer program has: (a) a function for generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent either the type of the input layer and the filter layer or the parameters set in the filter layer, constituting a data processing sequence having an input layer, a filter layer that performs data processing, and an output layer as nodes; (b) a function for generating the data processing sequence according to the individuals by referring to a reference table that associates the genes with the nodes and the parameters, and assigning either the input layer, which is one of the nodes, the filter layer, which is another of the nodes, or the parameters, to each of the genes constituting the individuals; (c) a function for processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data that is associated with the target data, to calculate an evaluation value indicating the similarity between the output data and the target data; and (d) a function for identifying the data processing sequence that satisfies a predetermined standard condition, using the plurality of evaluation values ​​corresponding to each of the plurality of data processing sequences. According to this embodiment, the genes constituting the individual represent the parameters set in the filter layer in addition to the nodes in the input layer and the filter layer. This makes it possible to generate an individual focusing on the parameters in step (a). For example, it is possible to use genes according to the number of parameters, which differ depending on the type of filter layer.

[0131] 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]

[0132] DA...defective part, DSq...specific data processing sequence, Sq...data processing sequence, EV...evaluation value, IV, IV1 to IV5, IVm1 to IVm5, IVn1 to IVn5...individuals, LM...learning data, RV...connection reference value, SD...similarity, SM...learning set, TM...target data, 10...generation system, 20...generation device, 25...processor, 30...sequence generation unit, 32...population generation unit, 34...gene translation unit, 36...type table generation unit, 40...data processing unit, 46...evaluation judgment unit, 47...calculation unit, 49 ...identification unit, 55...connection condition table generation unit, 60...display control unit, 70...storage device, 74...learning data group, 80...node element group, 82...gene table, 82A...first type gene table, 82B, 82B1, 82B2...second type gene table, 84...population, 88...connection condition table, 89...reference table, 92...type table, 93...various condition tables, 94...various programs, 98...threshold table, 150...input unit, 160...display unit, 200...sensor device, ARVn...average value, RVn...connection reference value

Claims

1. 1. A method for generating a data processing sequence, comprising the steps of: The data processing sequence has an input layer, a filter layer, and an output layer as nodes, The method for producing the same comprises: (a) generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent any one of the types of the input layer and the filter layer and the parameters set in the filter layer; (b) referring to a reference table in which the genes, the nodes, and the parameters are associated with each other, and allocating, for each of the genes constituting the individual, the input layer which is one of the nodes, the filter layer which is another of the nodes, or the parameter, thereby generating the data processing sequence according to the individual; (c) processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data associated with the target data to calculate an evaluation value indicating a similarity between the output data and the target data; (d) identifying the data processing sequence that satisfies a predetermined reference condition using a plurality of the evaluation values ​​corresponding to each of the plurality of data processing sequences.

2. The method of claim 1 , further comprising: the predetermined reference condition in the step (d) is a condition that the highest similarity among the plurality of similarities indicated by the plurality of evaluation values ​​is equal to or greater than a predetermined termination threshold; The generation method includes a next-generation generation step of, if the predetermined standard condition is not satisfied in the step (d), replacing one or more of the individuals having a low similarity among the plurality of individuals generated by a previous routine with new individuals by performing at least one of crossover and mutation on the individuals having a high similarity, and duplicating the individuals having a high similarity, thereby generating a next-generation population of individuals to be used in the current routine.

3. The method of claim 2, further comprising the steps of: the step (b) includes a type table generating step of generating a type table in which, for each of the genes constituting the individual from which the data processing sequence is generated, a decode type for distinguishing between the node represented by the gene and the parameter is associated with the gene; The reference table includes the type table.

4. 4. The method of claim 3, further comprising: the decode type includes a type for distinguishing the unused genes that were not used in generating the data processing sequence in addition to distinguishing between the nodes and the parameters, The type table generation process generates the type table for each gene constituting the individual from which the data processing sequence is generated, in which the type table is associated with the node and parameter represented by the gene, and the decode type for distinguishing between the unused genes.

5. A method for producing a signal according to claim 3 or claim 4, comprising the steps of: The generation method includes a reference individual generation step of determining at least one of a crossover point and the gene to be mutated by referring to the type table, and performing at least one of the crossover and the mutation.

6. The method of claim 5, further comprising the steps of: The reference individual generation process, when generating the individual by mutation, includes a type reference mutation process for performing the mutation on a gene, among the multiple genes possessed by the individual to be mutated, with which the parameter is associated as the decoding type.

7. 7. The method of claim 6, further comprising the steps of: the next generation generating step further includes a normal individual generating step of generating the individuals by performing at least one of crossover and mutation without referring to the type table; A generation method, wherein the next generation generating step executes at least one of the reference individual generating step and the normal individual generating step in accordance with predetermined generation conditions.

8. The method of claim 7, further comprising the steps of: The generation condition is a condition that the type reference mutation process is executed for the individuals that are the source of the data processing sequence and have the top N similarities (N is an integer greater than or equal to 1) among the multiple individuals generated by the previous routine, the individuals having the highest similarities.

9. An apparatus for generating a data processing sequence, comprising: The data processing sequence has an input layer, a filter layer, and an output layer as nodes, The generating device comprises: a population generation unit that generates a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent any one of the types of the input layer and the filter layer and the parameters set in the filter layer; a gene translation unit that refers to a reference table that associates the genes with the nodes and the parameters, and assigns, for each of the genes constituting the individual, the input layer which is one of the nodes, the filter layer which is another of the nodes, or the parameters, to generate the data processing sequence according to the individual; a calculation unit that processes target data for each of the plurality of data processing sequences represented by the population, compares output data output for each of the data processing sequences with target data associated with the target data, and calculates an evaluation value indicating a similarity between the output data and the target data; a specification unit that specifies the data processing sequence that satisfies a predetermined reference condition using a plurality of the evaluation values ​​corresponding to each of the plurality of data processing sequences.

10. A computer program for causing a computer to execute generation of a data processing sequence, comprising: The data processing sequence has an input layer, a filter layer, and an output layer as nodes, The computer program comprises: (a) a function of generating a population of one generation by generating a plurality of individuals in which a plurality of genes are arranged to represent any one of the types of the input layer and the filter layer and the parameters set in the filter layer; (b) a function of referring to a reference table in which the genes are associated with the nodes and the parameters, and allocating, for each of the genes constituting the individual, the input layer which is one of the nodes, the filter layer which is another of the nodes, or the parameters, to generate the data processing sequence according to the individual; (c) a function of processing target data for each of the plurality of data processing sequences represented by the population, and comparing output data output for each of the data processing sequences with target data associated with the target data to calculate an evaluation value indicating a similarity between the output data and the target data; (d) a function for identifying the data processing sequence that satisfies a predetermined reference condition by using a plurality of the evaluation values ​​corresponding to each of the plurality of data processing sequences.

Citation Information

Patent Citations

  • Evolution calculation system and evolution calculation method

    JP2007087055A