The present disclosure relates to a data generation device, a data generation method, and a program.
In order to construct a machine learning model, it is necessary to perform training using many pieces of training data. In order to obtain a sufficient amount of training data, a method of increasing the amount of data by data augmentation is used.
For example, Patent Documents 1 to 3 describe a method of generating various training data from limited original data by adding a change to the original training data by data augmentation.
For example, in a case where training data is extended according to a difference in learning environment, it is often possible to assume to some extent what data augmentation is to be performed according to knowledge of a user. However, in the conventional method, there is no mechanism for supporting flexible setting of a data augmentation policy on the basis of knowledge of a user.
The present disclosure has been made in view of the above circumstances, and an object of the present disclosure is to provide a mechanism for supporting determination of a data augmentation policy by a user.
In order to solve the above problem, the present disclosure adopts the following configuration.
A data generation device according to one aspect of the present disclosure is a data generation device configured to generate data in machine learning for making a determination on an object, the data generation device including: an original data displaying unit configured to display, on a displaying unit, first original data on which data augmentation is to be performed, the first original data including the object; a parameter receiver configured to receive an input of a parameter related to the data augmentation; a generated data displaying unit configured to display, on the displaying unit, generated data generated by the data augmentation for something other than the object in the first original data on the basis of the parameter; and an adoptability receiver configured to receive whether or not to adopt the data augmentation based on the parameter. The object is a target of determination as a use purpose of machine learning. Examples of the object include a recognition target (a vehicle or the like in vehicle recognition) in image recognition, voice data excluding noise and environmental sound in voice recognition, text in semantic extraction, and the like, which should be allowed to be recognized by the learning model without being affected by the data acquisition environment and the data acquisition condition.
With the above configuration, it is possible to determine the parameter to be finally adopted while confirming the result of data generation based on the parameter designated by the user. Thus, it is possible to efficiently perform data augmentation based on knowledge of the user.
In addition, in a case where the data augmentation based on the parameter is adopted, a generated data preserver configured to preserve the generated data may be provided. With this configuration, the generated data suitable for the use purpose of the user can be preserved as the training data.
In addition, the parameter may be information regarding the something other than the object and/or a changing method of a data acquisition condition. As a result, it is possible to increase the variation of the training data or convert the training data into the training data according to the use application without changing the object that should be unchanged before and after the data augmentation, such as the recognition target by the learning model or the like.
In addition, the parameter may be information regarding a degree of the changing method. With this configuration, it is possible to flexibly change the strength, magnitude, and the like of the degree of change.
In addition, there may be further provided: a parameter storage configured to store the first original data used when the data augmentation is performed as second original data, and store, in association with the second original data, information of the parameter used when the data augmentation is adopted; and a similarity calculator configured to calculate similarity between the second original data in which the information of the parameter is stored in the parameter storage and the first original data on which the data augmentation is to be performed. The generated data displaying unit may be configured to perform the data augmentation on the basis of the parameter associated with the second original data having highest similarity with the first original data on which the data augmentation is to be performed, and display the generated data on the displaying unit. With this configuration, it is possible to present the same data augmentation parameter for similar data on the basis of past records. Thus, it is possible to further improve efficiency of the work of the user.
In addition, there may be further provided: a use purpose receiver configured to receive an input of a use purpose of the generated data generated by the data augmentation; and a parameter storage configured to store, in association with the use purpose, the information of the parameter used when the data augmentation is adopted. The generated data displaying unit may be configured to perform the data augmentation on the basis of the parameter associated with a use purpose matching the use purpose input, and display the generated data on the displaying unit. With this configuration, it is possible to select the use purpose according to the type or the like of the learning model using the training data and to efficiently determine the data augmentation policy on the basis of the past records.
In addition, the first original data may be image data, and the parameter may be at least one of a change in a photographing distance, a change in a photographing angle, a change in a photographing time, a change in a background image, and a change in a weather condition during photographing. With this configuration, it is possible to efficiently generate training data such as an image recognition model.
In addition, the first original data may be voice data or waveform data, and the parameter may be a changing method of at least one of environmental sound imparting and noise imparting. With this configuration, it is possible to efficiently generate training data such as a voice recognition model.
In addition, the first original data may be text data, and the parameter may be a changing method of at least one of substitution, word order exchange, and exclamation word imparting. With this configuration, it is possible to efficiently generate training data such as a semantic extraction model.
In addition, there may be further provided: an original data storage configured to store one or more data sets including a plurality of pieces of first original data; and a data set designation receiver configured to receive designation of a data set on which the data augmentation is to be performed. The generated data displaying unit may be configured to display a result of the data augmentation performed on one of the plurality of pieces of first original data included in the data set designated; and the generated data preserver is configured to perform, in a case where the data augmentation is adopted, the adopted data augmentation on all pieces of the first original data included in the data set and preserve all pieces of the generated data. With this configuration, data augmentation can be collectively performed on a plurality of pieces of original data obtained under the same environment or acquisition condition.
A data generation method according to one aspect of the present disclosure is a data generation method for a computer to generate data in machine learning for making a determination on an object, the data generation method including: a process in which the computer displays, on a displaying unit, first original data on which data augmentation is to be performed, the first original data including the object; a process in which the computer receives an input of a parameter related to the data augmentation; a process in which the computer displays, on the displaying unit, generated data generated by the data augmentation for something other than the object in the first original data on the basis of the parameter; and a process in which the computer receives whether or not to adopt the data augmentation based on the parameter.
With the above configuration, it is possible to determine the parameter to be finally adopted while confirming the result of data generation based on the parameter designated by the user. Thus, it is possible to efficiently perform data augmentation based on knowledge of the user.
A program according to one aspect of the present disclosure is a program configured to make a computer generating data in machine learning for making a determination on an object function as: an original data displaying unit configured to display, on a displaying unit, first original data on which data augmentation is to be performed, the first original data including the object; a parameter receiver configured to receive an input of a parameter related to the data augmentation; a generated data displaying unit configured to display, on the displaying unit, generated data generated by the data augmentation for something other than the object in the first original data on the basis of the parameter; and an adoptability receiver configured to receive whether or not to adopt the data augmentation based on the parameter.
With the above configuration, it is possible to determine the parameter to be finally adopted while confirming the result of data generation based on the parameter designated by the user. Thus, it is possible to efficiently perform data augmentation based on knowledge of the user.
According to the present disclosure, it is possible to provide a mechanism for supporting determination of a data augmentation policy by a user.
Hereinafter, an embodiment according to one aspect of the present disclosure (hereinafter also referred to as “the embodiment”) will be described with reference to the drawings. However, the embodiment described below is merely an example of the present disclosure in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of the present disclosure. That is, in practicing the present disclosure, a specific configuration according to the embodiment may be adopted as appropriate. Note that, although data appearing in the embodiment is described in a natural language, the data is designated, more specifically, in a pseudo language, a command, a parameter, a machine language, or the like that can be recognized by a computer.
An example of a scene to which the present disclosure is applied will be described first with reference to
The data generation screen includes a data set display area P1, an original data display area P2, a generated data display area P3, a display button P4, an original data selector P5, a conversion method selector P6, a conversion level selector P7, and an adoption button P8 as components. The original data selector P5 and the conversion method selector P6 are, for example, pull-down menus, and the conversion level selector P7 is, for example, a slider.
The user performs an operation of selecting a data set (for example, a data set of images captured at a farm A) to be subjected to data augmentation from among the data sets displayed on a data set display area P1. Further, the original data selector P5 is operated to select image data as a sample from the target data set. Specifically, since the list of image files included in the target data set selected by the user is displayed in the pull-down menu, one file can be selected from the list. In addition, image data stored as original data may be displayed without being selected from the list, and arbitrary image data may be selected from the image data.
When the user operates the display button P4, the original data selected as the sample is displayed in the original data display area P2. In addition, data augmentation is performed on the original data on the basis of the parameter set as an initial value, and the generated image is displayed in the generated data display area P3. For example, when the changing method “photographing distance” and the degree of change “10 m” are set as the initial values, an image assuming that photographing is performed with the photographing distance of 10 m from the subject (for example, a tree) is generated.
The user can confirm the displayed generated data and adjust the parameter of data augmentation. The user operates the conversion method selector P6 when desiring to change the changing method, and operates the conversion level selector P7 when desiring to change the degree of change. For example, the photographing distance can be made further (closer) by operating a slider of the conversion level selector P7. When the display button P4 is operated after the parameter is changed, the image data generated on the basis of the changed parameter is displayed in the generated data display area P3.
When the user confirms the displayed generated data and determines that there is no problem in the changing method and the degree of change, the user selects the adoption button P8. When the adoption button P8 is selected, data augmentation with adopted the parameter is performed on all data included in the target data set, and the generated data is preserved.
Note that, in the embodiment, data augmentation is not performed to change the object itself (“tree” in the example of
The generated data is, for example, data having predetermined structure for domain generalization learning, and is used for training data of domain generalization learning together with the original data. The domain generalization learning may be any method as long as it is a domain generalization learning method, such as meta-learning for domain generalization (MLDG), a multi-task adversarial network (MTAN), or the like.
Next, an example of a hardware configuration of the data generation device 10 according to the embodiment will be described with reference to
The data generation device 10 is a computer system including, as hardware resources, a memory 11, a CPU 12, a video adapter 13, a serial port interface 14, a hard disk drive interface 15, and a hard disk drive 16.
The hard disk drive 16 is a disk medium (for example, a magnetic recording medium or a magneto-optical recording medium). The hard disk drive 16 stores a material required for data augmentation (environment sound material used for extension of voice data, correspondence table of vocabulary conversion used for extension of text data, etc.) in addition to a computer program executed by the CPU 12 and the original data to be subjected to data augmentation.
A display 51 is connected to the video adapter 13. The display 51 displays original data selected as a data augmentation target, data after data augmentation, a user interface for receiving an instruction from the user, and the like.
A mouse 52, a keyboard 53, and a speaker 24 are connected to the serial port interface 14. In addition to the mouse 52 and the keyboard 53, another input device such as a touch pad or the like may be connected. Note that the hardware configuration of the data generation device 10 is not limited to that illustrated in
Next, an example of a functional configuration of the data generation device 10 according to the embodiment will be described with reference to
In the hard disk drive 16, an original data storage 161 and a generated data storage 162 are mounted. The original data storage 161 stores original data of data augmentation for each data set. The generated data storage 162 stores data generated by data augmentation.
Next, a data generation method by the data generation device 10 according to the embodiment will be described with reference to the screen diagram of
In step S101, the original data displaying unit 102 of the data generation device 10 acquires the original data designated by the user from the original data storage 161, and displays the original data in the original data display area P2 of the display 51. The original data to be displayed is image data selected by the user operating the original data selector P5 on the data generation screen illustrated in
When it is detected in step S102 that the user has operated the display button P4, the generated data displaying unit 104 of the data generation device 10 performs data augmentation of the designated original data on the basis of the initial value of the parameter of the data augmentation, and displays the generated image data in the generated data display area P3. The initial value of the parameter is stored in advance in the hard disk drive 16.
In step S103, the data generation device 10 receives whether or not to adopt the result of the data augmentation in step S102. When adopting the result, the user selects the adoption button P8 (YES). When the adoption button P8 is selected, the process proceeds to step S107. On the other hand, in a case of not adopting the result, the user changes the parameter by operating the conversion method selector P6 to change the changing method or operating the conversion level selector P7 to change the degree of change.
In step S104, the parameter receiver 103 of the data generation device 10 receives the changed parameter. Further, in step S105, the generated data displaying unit 104 performs data augmentation on the basis of the changed parameter, and displays the image data generated in step S106 in the generated data display area P3. Thereafter, the process returns to step S103 again, and steps S104 to S106 are repeated until the result of data augmentation is adopted by the user.
When the result is adopted by the operation of the adoption button P8, data augmentation with the parameter adopted for the entire target data set is performed in step S107. Further, in step S108, the generated data is preserved in the generated data storage 162.
Next, another example of the data generation method by the data generation device 10 according to the embodiment will be described with reference to the data generation screen diagrams of
In the example of
When the user wants to change the data by still another method, the user selects the application button P9. As a result, the generation data is temporarily determined by the change according to the initially designated parameter. Further, as illustrated in
Upon detecting that the user has designated an additional parameter in step S201 (YES), the data generation device 10 converts the temporarily determined generated data on the basis of the designated parameter in step S202, and displays the generated data in the generated data display area P3.
Thereafter, the process returns to step S103 again and, similarly to the flowchart of
When the result is adopted by the operation of the adoption button P8, data augmentation with the parameter adopted for the entire target data set is performed in step S107. Further, in step S108, the generated data is preserved in the generated data storage 162.
Next, another example of the data generation method by the data generation device 10 according to the embodiment will be described with reference to the functional configuration diagram of
As illustrated in
In step S101, the data generation device 10 displays the designated original data (first original data) in the original data display area P2. Next, in step S301, the similarity calculator 107 of the data generation device 10 determines whether or not past parameter information is recorded in the parameter storage 163. When the past parameter is recorded (YES), the process proceeds to step S302, and when the past parameter is not recorded (NO), the process proceeds to step S104.
In step S302, the similarity calculator 107 compares the designated original data with each piece of original data (second original data) recorded in the parameter storage 163 to calculate the similarity. An existing method such as feature point matching can be used to calculate the similarity.
In step S303, the generated data displaying unit 104 performs the augmentation of the designated original data with the parameter associated with the original data having the highest similarity.
Thereafter, the process proceeds to step S103 and, similarly to the flowchart of
When the result is adopted by the operation of the adoption button P8, data augmentation with the parameter adopted for the entire target data set is performed in step S107. Further, in step S108, the generated data is preserved in the generated data storage 162.
The flowchart of
Further, when the user performs an operation of selecting one of the plurality of displayed generated data, the parameter is narrowed down to a parameter corresponding to the selected generated data, and then the process proceeds to step S103. Thereafter, similarly to the flowchart of
Next, another example of the data generation method by the data generation device 10 according to the embodiment will be described with reference to the functional configuration diagram of
As illustrated in
As illustrated in
When detecting that the task has been designated in step S501 (YES), the use purpose receiver 108 of the data generation device 10 proceeds to step S502. When the task is not designated (NO), the process proceeds to step S104.
In step S502, the use purpose receiver 108 determines whether or not past parameter information associated with the designated task is recorded in the parameter storage 163. When the past parameter is recorded (YES), the process proceeds to step S503, and when the past parameter is not recorded (NO), the process proceeds to step S104.
In step S503, the generated data displaying unit 104 performs data augmentation with the past parameter associated with the designated task, and displays the generated data in the generated data display area P3.
Thereafter, the process proceeds to step S103 and, similarly to the flowchart of
When the result is adopted by the operation of the adoption button P8, data augmentation with the parameter adopted for the entire target data set is performed in step S107. Further, in step S108, the generated data is preserved in the generated data storage 162.
In the above example, the augmentation of the image data is performed, but the target data may be other than the image data. Hereinafter, a case where the present disclosure is applied to data augmentation of voice data, waveform data, and text data will be described as an example.
In addition, as illustrated in
In the case of imparting the environmental sound (car, train, speaking voice, wind, etc.), first, noise or the environmental sound included in the original voice data may be removed, and then the environmental sound recorded in advance may be superimposed. In addition, the environmental sound may be duplicated and combined in accordance with the length of the original data and then superimposed. The degree of change can be the magnitude of an S/N ratio.
Furthermore, in a case where microphone noise is imparted, noise generated from a Gaussian distribution or a uniform distribution may be imparted after noise or environmental sound included in the original data is removed. The degree of change can be the magnitude of the S/N ratio or a sound pressure.
In addition, as illustrated in
Examples of the changing method of the text data include “substitution,” “word order exchange,” and “exclamation word imparting.” “Substitution” is, for example, processing of converting the ending of a sentence from “da” to “desu,” and substitution may be performed according to a substitution table prepared in advance. “Word order exchange” is processing of dividing original text data into morphemes and replacing the word order of “SOV” with “OSV.” In addition, “exclamation word imparting” is processing of adding a word that does not change the meaning of the original text, such as “Oh!” or “Um . . . ” Note that, since there is no concept of the degree of change in the augmentation of the text data, the conversion level selector P7 may not be displayed.
As described above, according to the embodiment, the original data designated by the user and the generated data obtained by performing the data augmentation on the original data are displayed, and the user can set the data augmentation policy (parameter) while confirming the generated data. As a result, it is possible to determine the parameter to be finally adopted while confirming the result of data generation based on the parameter designated by the user, and thus, it is possible to efficiently perform data augmentation based on knowledge of the user.
In addition, it is possible to designate a data augmentation policy to be performed on something other than an object that is desirably unchanged before and after conversion. As a result, it is possible to increase variations of training data suitable for generalization learning and to convert the training data into training data suitable for use application.
In addition, since the parameter of the data augmentation performed on the data similar to the designated original data is presented from the past records, it is possible to further improve efficiency of the work of the user.
In addition, since the parameter of the data augmentation matching the use purpose designated by the user is presented from the past records, it is possible to improve efficiency of the work of the user who desires to generate data suitable for the use purpose.
Although the embodiment of the present disclosure has been described in detail above, the above description is merely an example of the present disclosure in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of the present disclosure. The above embodiment may also be described partially or entirely as the following appendixes, but are not limited thereto.
A data generation device configured to generate data in machine learning for making a determination on an object, the data generation device including:
The data generation device according to Appendix 1, further including a generated data preserver configured to preserve the generated data in a case where the data augmentation based on the parameter is adopted.
The data generation device according to Appendix 1 or 2, in which the parameter is information regarding the something other than the object and/or a changing method of a data acquisition condition.
The data generation device according to Appendix 3, in which the parameter is information regarding a degree of the changing method.
The data generation device according to any one of Appendixes 1 to 4, further including:
The data generation device according to any one of Appendixes 1 to 5, further including:
The data generation device according to Appendix 3, in which
The data generation device according to Appendix 3, in which
The data generation device according to Appendix 3, in which
The data generation device according to Appendix 2, further including:
A data generation method for a computer to generate data in machine learning for making a determination on an object, the data generation method including:
A program (e.g., comprised of computer-executable instructions contained on a non-transitory computer-readable medium) configured to make a computer generating data in machine learning for making a determination on an object function as:
The various embodiments described above can be combined to provide further embodiments. All of the patents, applications, and publications referred to in this specification and/or listed in the Application Data Sheet are incorporated herein by reference, in their entirety. Aspects of the embodiments can be modified, if necessary to employ concepts of the various patents, applications, and publications to provide yet further embodiments.
These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled.
Number | Date | Country | Kind |
---|---|---|---|
2021-040980 | Mar 2021 | JP | national |
The present application is a U.S. national phase application based on International Application No. PCT/JP2022/007911, filed on Feb. 25, 2022, which claims priority from Japanese Patent Application No. 2021-040980 filed on Mar. 15, 2021, the contents of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2022/007911 | 2/25/2022 | WO |