Training data generation method, training method, training data generation program, training data generation device, on-vehicle device, and training system

The method automates the generation of learning data by detecting unclear class classifications in input images and using them for retraining, addressing the user burden and improving inference accuracy in neural networks.

JP2024135855APending Publication Date: 2024-10-04DENSO TEN LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023046742
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-10-04

AI Technical Summary

Technical Problem

Existing methods for retraining neural networks to improve inference accuracy increase user burden by requiring manual determination of incorrect inference results and creation of similar images for training data.

Method used

A method that automatically generates learning data by detecting unclear class classifications in input images, assigning correct labels to images where class classifications become clear over time, and using these images for retraining the model.

Benefits of technology

Efficiently retrains the model by automating the generation of learning data, reducing user burden and improving inference accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024135855000001_ABST
    Figure 2024135855000001_ABST
Patent Text Reader

Abstract

To provide a technique which allows for efficiently retraining a trained model.SOLUTION: An exemplary training data generation method is a training data generation method to be executed by a device and includes: detecting an identification object in a plurality of input images inputted to the device in time series as a trace object to be traced; estimating class classifications for the trace object in the plurality of input images; and, on the basis of estimation results of the class classifications, giving a class classification of the trace object estimated to be distinct as correct answer data to an image of the trace object in which the class classification of the trace object is estimated to be indistinct, to generate training data.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for re-learning a trained model. [Background technology]

[0002] Conventionally, a technique for detecting an object appearing in an image based on a trained neural network (trained model) is known (see, for example, Patent Document 1).

[0003] Also, it is known that re-learning is conventionally performed to generate a more appropriate inference model (trained model) (see, for example, Patent Document 2). In Patent Document 2, first, first teacher data is created, and deep learning is performed using this first teacher data to generate a first inference model. Then, this first inference model is used to infer an image, and an image in which the inference fails is set as a test data candidate. When the test data candidates reach a predetermined number, this data is used to recreate teacher data, and a second inference model is generated using this recreated teacher data. In this way, re-learning is performed using the recreated teacher data, so that highly reliable inference can be performed. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication No. 2022-079325 [Patent Document 2] JP 2020-119322 A Summary of the Invention [Problem to be solved by the invention]

[0005] In Patent Document 2, a user determines whether or not the inference result of the first inference model is correct, and if the inference result is incorrect, it is set as a test data candidate. In addition, when creating training data for re-learning, a similar image to the test data candidate is made into training data.

[0006] When creating training data for re-learning, a configuration in which the user determines whether the inference result of the trained model is correct may increase the burden on the user. Also, when a similar image of a test data candidate is used as training data, it is necessary to create a similar image, which may increase the burden of creating training data for re-learning.

[0007] In view of the above, an object of the present invention is to provide a technology that can efficiently re-train a trained model. [Means for solving the problem]

[0008] An exemplary learning data generation method of the present invention is a learning data generation method executed by an apparatus, which detects identification objects in a plurality of input images input to the apparatus in a time series as tracing objects to be traced, estimates class classifications for the tracing objects in the plurality of input images, and generates learning data by assigning, as correct answer data, the class classification of the tracing objects whose class classification is estimated to be clear for images of the tracing objects whose class classification is estimated to be unclear based on the results of the class classification estimation. Effect of the Invention

[0009] According to the exemplary embodiment of the present invention, re-learning of a trained model can be performed efficiently. [Brief description of the drawings]

[0010] [Figure 1] Diagram showing an overview of the learning system [Diagram 2] 1 is a flowchart showing an example of a learning method executed by a learning system. [Diagram 3] A block diagram showing the configuration of a training data generating device. [Figure 4A] A schematic diagram of an image before it is input to a trained model. [Figure 4B] A schematic diagram showing an example of inference results output using a trained model. [Diagram 5] A diagram to explain an example in which the classification of a trace target changes from unclear to clear. [Figure 6] 1 is a flowchart illustrating a method for generating training data. [Figure 7] Diagram to explain the concept of generated learning data [Figure 8] FIG. 1 is a diagram showing a typical application scene of the modified example; [Figure 9] A flowchart showing the flow of a training data generating method according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings.

[0012] <1. Overview of learning method> [1-1. Learning System] 1 is a diagram showing an overview of a learning system 100 that executes a learning method according to an embodiment of the present invention. The learning system 100 includes a server device 1 and a terminal device 2. The learning system 100 further includes a camera 3.

[0013] The server device 1 is configured by a computer device. The server device 1 may be a physical server or a cloud server. The server device 1 is provided so as to be connectable to a communication network 4 such as the Internet or a telephone line network by wire or wirelessly.

[0014] The terminal device 2 is provided so as to be able to communicate with the server device 1. In particular, the terminal device 2 is provided so as to be able to be connected to a communication network 4 by wire or wirelessly. The terminal device 2 communicates with the server device 1 via the communication network 4. The terminal device 2 may be, for example, a personal computer (PC) installed in a facility such as a commercial facility, or an in-vehicle device installed in a moving object such as a vehicle. The in-vehicle device may be configured to control the vehicle. The terminal device 2 may also be, for example, a mobile terminal such as a smartphone or a tablet terminal.

[0015] 1, the number of terminal devices 2 that can be connected to the server device 1 via the communication network 4 is one, but this is merely an example. It is preferable that the number of terminal devices 2 that can be connected to the server device 1 via the communication network 4 is multiple.

[0016] The camera 3 is provided so as to be able to capture images continuously in time. That is, the camera 3 is capable of capturing so-called moving images. The camera 3 is connected to the terminal device 2 by wire or wirelessly. When there are a plurality of terminal devices 2 connected to the communication network 4, a camera 3 is provided for each terminal device 2. The camera 3 transmits captured images (image data) to the terminal device 2. In detail, the camera 3 captures images continuously in time and transmits the images to the terminal device 2 periodically. The camera 3 transmits images to the terminal device 2 at time intervals of, for example, 30 or 60 images per second. The camera 3 may be a device separate from the terminal device 2, or may be paired with the terminal device 2 to form one device 5. The device 5 in which the terminal device 2 and the camera 3 are paired may be, for example, a drive recorder that records images in front of and behind the vehicle. The images in front of and behind the vehicle are examples of surrounding images.

[0017] [1-2. Learning Methods] FIG. 2 is a flowchart showing an example of a learning method executed by the learning system 100 according to the embodiment of the present invention.

[0018] In step S1, the terminal device 2 performs inference using the trained model stored in the memory. The trained model may be, for example, one that is distributed from the server device 1 to the terminal device 2 via the communication network 4. The trained model is a model that has been trained in advance by machine learning so as to obtain appropriate output data for certain input data. The trained model includes at least a program that performs calculations from input data to obtaining output data, and weighting coefficients (parameters) that are used in the calculations.

[0019] In detail, an image (data) acquired by the terminal device 2 from the camera 3 is input to the trained model. The trained model performs inference using the input image and outputs the inference result. In detail, the trained model outputs a recognition result of the identification target (more specifically, the object to be identified, more specifically, the object) as the inference result. Images acquired from the camera 3 are input sequentially to the trained model. The trained model outputs an inference result for each image that is input sequentially. The processing of step S2 is performed using the result of inference using the trained model.

[0020] In step S2, the terminal device 2 generates learning data using the inference result obtained in step S1. Based on the inference result, the terminal device 2 automatically extracts images containing classification targets that the trained model has difficulty recognizing as difficult images (candidate learning images). Then, the terminal device 2 automatically assigns correct answer data to the extracted difficult images to generate learning data. In other words, the generated learning data is teacher data in which correct answer labels are attached to images. The method of generating learning data will be described in detail later.

[0021] While the inference using the trained model is being executed, the terminal device 2 continues to generate training data using the inference result. When the execution of the inference using the trained model is finished, the terminal device 2 completes the training data generation process. When the training data generation process is completed, the process proceeds to the next step S3.

[0022] In step S3, the terminal device 2 transmits the generated learning data to the server device 1. The learning data is transmitted to the server device 1 via the communication network 4. When the transmission of the learning data to the server device 1 is completed, the process proceeds to the next step S4.

[0023] When the learning system 100 includes a plurality of terminal devices 2, the above-described processing of steps S1 to S3 is executed for each terminal device 2. In addition, in step S3 described above, the learning data is accumulated until the execution of inference using the trained model is completed, and the accumulated learning data is transmitted to the server device 1 in a lump, but this is merely an example. The learning data may be transmitted to the server device 1 every time it is generated.

[0024] In step S4, the server device 1 re-learns the trained model. In the case where the server device 1 is configured to distribute the trained model, the server device 1 already has the trained model (or information thereof). In the case where the server device 1 does not have the trained model, the trained model may be transmitted from the terminal device 2 to the server device 1.

[0025] The server device 1 incorporates the learning data transmitted from the terminal device 2 into a learning dataset, and performs re-learning using the learning dataset. The learning dataset is a collection of teacher data. The re-learning is performed using a known learning method such as backpropagation, and the parameters of the trained model are updated by the re-learning. When the re-learning is completed, the process proceeds to the next step S5.

[0026] In step S5, the server device 1 transmits the trained model obtained by re-learning to the terminal device 2. The terminal device 2 changes the existing trained model to the newly transmitted trained model. That is, the trained model is updated. Since the trained model stored in the memory of the terminal device 2 is updated to a trained model that has been re-trained using a difficult image, the reliability of inference using the trained model performed by the terminal device 2 can be improved. The trained model after re-learning may be configured to obtain a trained model with higher reliability by repeating the above-described process again.

[0027] In the above-described embodiment, the server device 1 includes a learning device that learns a model. The terminal device 2 includes a learning data generation device that generates learning data. That is, in the above-described learning system 100, the learning device and the learning data generation device are configured as separate devices. However, this is merely an example, and the learning device and the learning data generation device may be configured as a single device.

[0028] For example, the server device may be configured to include a learning device and a learning data generating device. That is, in the learning system 100, the learning data generating method of the present invention may be performed by the server device or the terminal device. In one example of a configuration in which the server device includes a learning device and a learning data generating device, a drive recorder (terminal device) transmits recorded image (video) data to the server device via the communication network 4. The server device generates learning data using the image data received from the drive recorder and performs re-learning using the generated learning data.

[0029] In addition, the configuration in which the learning device and the learning data generating device are one device may be realized by something other than the server device. For example, a drive recorder may be configured to generate learning data and re-learn the model using the generated learning data. In such a learning system, a server device may not be required.

[0030] Furthermore, when the learning device and the learning data generating device are separate devices, the learning device does not have to be a server device, and the learning data generating device does not have to be a terminal device. In such a configuration, the learning data generated by the learning data generating device (included in a drive recorder, etc.) may be stored in a portable memory (such as a USB memory), and the learning device may read the generated learning data from the portable memory. Then, the learning device may be configured to re-learn the trained model using the read learning data.

[0031] <2. Details of training data generation method> [2-1. Learning data generation device] 3 is a block diagram showing a configuration of a learning data generation device 20 according to an embodiment of the present invention. In this embodiment, the learning data generation device 20 is included in a terminal device 2 (see FIG. 1). When the terminal device 2 constitutes a drive recorder, the learning data generation device 20 is included in the drive recorder.

[0032] The training data generating device 20 is configured by a computer device. As shown in Fig. 3, the training data generating device 20 includes a controller 21. The training data generating device 20 further includes a memory unit 22 and a communication unit 23. The training data generating device 20 may be configured to include an input device such as a keyboard and an output device such as a display.

[0033] The controller 21 includes an arithmetic circuit that performs arithmetic processing. More specifically, the controller 21 includes a processor that performs arithmetic processing and the like. The processor includes, for example, a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The controller 21 may be configured with one processor or multiple processors. When configured with multiple processors, the processors only need to be connected to each other so that they can communicate with each other.

[0034] The memory unit 22 includes a volatile memory and a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM). The non-volatile memory may include, for example, a read only memory (ROM), a flash memory, or a hard disk drive. The non-volatile memory stores computer-readable programs and data. In this embodiment, the memory unit 22 stores a trained model 221.

[0035] The communication unit 23 is configured as a communication interface having an interface circuit for connecting to the communication network 4. The communication unit 23 is not an essential component.

[0036] The controller 21 includes, as its functions, an image acquisition unit 211, an inference unit 212, a tracing target detection unit 213, a candidate image storage unit 214, a change detection unit 215, and a data generation unit 216. In this embodiment, the functions of the controller 21 are realized by a processor executing arithmetic processing in accordance with a program stored in the memory unit 22. The number of programs that realize the functions of the controller 21 may be one or more.

[0037] The scope of this embodiment may include a computer program that causes a computer to realize at least a part of the functions of the training data generation device 20. The scope of this embodiment may also include a computer-readable non-volatile recording medium that records such a computer program. The non-volatile recording medium may be, for example, an optical recording medium (e.g., an optical disk), a magneto-optical recording medium (e.g., a magneto-optical disk), a USB memory, or an SD card, in addition to the non-volatile memory described above.

[0038] Further, each of the functional units 211-216 may be realized by one program, or may be realized by a plurality of programs, for example, each functional unit may be realized by a separate program. Further, each of the functional units 211-216 may be realized as a separate device. Further, each of the functional units 211-216 may be realized by having a processor execute a program, that is, by software, as described above, but may be realized by other methods. Each of the functional units 211-216 may be realized by using, for example, an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). That is, each of the functional units 211-216 may be realized by hardware using a dedicated IC or the like. Further, each of the functional units 211-216 may be realized by using both software and hardware. Further, each of the functional units 211-216 is a conceptual component. A function executed by one component may be distributed to multiple components. Further, functions possessed by multiple components may be integrated into one component.

[0039] The image acquisition unit 211 sequentially acquires captured images (data) periodically transmitted from the camera 3. The image acquisition unit 211 appropriately executes image processing on the acquired images. Furthermore, the image acquisition unit 211 appropriately stores the acquired images in the memory unit 22.

[0040] The inference unit 212 performs inference using the trained model 221. Images acquired by the image acquisition unit 211 are sequentially input to the trained model 221. The trained model performs inference for each input image. That is, the controller 21 performs inference using the trained model 221 for the input image. The terminal device 2 performs inference using the trained model 221 for the input image.

[0041] In detail, the inference using the trained model 221 may be an inference using a known object detection (recognition of an object to be identified) algorithm. The known object detection algorithm may be, for example, R-CNN, Fast R-CNN, Faster R-CNN, YOLO, SSD, or the like. In this embodiment, the trained model 221 uses YOLO as an object detection algorithm. The trained model 221 performs a process of identifying a position (area) and a type (class) of an object previously determined as an object to be identified from an input image. The type of object determined as an object to be identified is appropriately determined according to the purpose of object detection. The trained model in this embodiment can be said to be a class classification estimation model that performs class classification of a detected object. In addition, for example, when the terminal device 20 is an in-vehicle device, the estimation result of the class classification estimation model may be used for vehicle control.

[0042] 4A and 4B are diagrams for explaining a specific example of inference using the trained model 221 of this embodiment. FIG. 4A is a diagram that typically illustrates an image before being input to the trained model 221. FIG. 4B is a diagram that typically illustrates an output example of an inference result using the trained model 221. In this example, the types of objects (recognition classes) defined as the identification targets are "car", "truck", and "bus".

[0043] In this example, information in the following format is output as the inference result. format [x,y,w,h,car_conf,track_conf,bus_conf ] x, y : center coordinates of the bounding box w : The horizontal (x) length of the bounding box h : The vertical (y) length of the bounding box car_conf : The inference value (confidence value) of the class "car" track_conf: Inference value (confidence value) of class "track" bus_conf : Inference value (confidence value) of class "bus"

[0044] In the format, x, y, w, and h are information that specifies the area to be identified. The inference value (confidence value) is a confidence score (confidence information) that indicates the probability of the existence of an object. The confidence score is, for example, a numerical value between 0 and 1, and the closer the value is to "1", the higher the confidence level is.

[0045] In the example shown in FIG. 4B, for a classification target whose reliability score exceeds a preset display threshold, a bounding box BBX, which is area information of the classification target, and the class are displayed. For a classification target whose reliability score is low, the reliability of the class classification is low, so the classification target is not displayed. The display threshold may be, for example, 0.4, but it is preferable to determine an appropriate value by performing an experiment, a simulation, or the like. In the example shown in FIG. 4B, two classification targets are recognized as a result of inference, and the respective areas are displayed by bounding boxes BBX. It is also shown that the class of one of the two classification targets (the vehicle on the right) is "car" and the class of the other (the vehicle on the left) is "track."

[0046] The tracing target detection unit 213 detects a tracing target (more specifically, a tracing target object) from within the image based on the result of inference using the trained model 221. That is, the controller 21 detects an image of an identification target to be traced from within the image based on the result of inference. The terminal device 2 detects a tracing target from within the image based on the result of inference. A tracing target is not necessarily detected from each image, but may or may not be detected depending on the result of inference. For the identification target that has become a tracing target, a predetermined process is continuously performed on the inference result obtained for the image of the identification target across multiple images. The predetermined process is a process related to the generation of learning data.

[0047] In this embodiment, the detection of the tracing target is to detect a classification target whose class classification is unclear based on the result of inference. Detecting the tracing target in this manner makes it easier to perform the process of collecting learning candidate images. The classification is unclear when the inference values ​​(confidence values) of at least the top two classes are close in magnitude, and the classes cannot be clearly classified. This is a state in which the difference between the inference value of the class with the largest inference value (maximum inference value) and the inference value of the class with the second largest inference value (second inference value) is smaller than a preset classification threshold.

[0048] Whether or not the class classification is unclear may be determined using the absolute difference between the maximum inference value and the second inference value, but it is preferable to determine it using a relative difference. For example, if the percentage value obtained by dividing the absolute difference between the maximum inference value and the second inference value by the maximum inference value is smaller than 30% (class classification threshold), it may be determined that the class classification is unclear. Note that the class classification threshold may be determined using, for example, an experiment or a simulation. When the tracing target detection unit 213 detects an identification target whose class classification is unclear from the result of inference, the tracing target detection unit 213 sets the identification target as a tracing target.

[0049] For example, suppose that the confidence value of a certain classification object identified in an image is obtained as shown in the following formula (1), and the classification object is classified into the class "car" which has the maximum confidence value. [car_conf,track_conf,bus_conf]=[0.43,0.41,0.16]···(1) In this example, the class is classified as "car", but the difference in inference value between the class "car" and the class "track" is smaller than the classification threshold, and the reliability of the classification is said to be low. In other words, it can be determined that the trained model 221 has difficulty in classifying the classification target. The tracing target detection unit 213 of this embodiment detects, by comparing the inference values, a classification target determined to have difficulty in classifying such a classification target as a tracing target.

[0050] In addition, even if the difference between the inference values ​​of the multiple classes is small, if the magnitude of these inference values ​​is very small, it can be said that it is not appropriate to classify the identification object into any of the classes "car", "track", and "bus" in the first place. That is, in such a case, even if the difference between the inference values ​​of the multiple classes is small, it is not preferable to detect it as a tracing object. Therefore, in this embodiment, the determination of whether the class classification performed to detect the tracing object is unclear or clear is not performed when the inference value is equal to or less than a preset determination permission threshold (e.g., 0.4, etc.).

[0051] The candidate image holding unit 214 holds an image including a tracing target as a learning candidate image. That is, the controller 21 holds an image including a tracing target as a learning candidate image. The terminal device 2 holds an image including a tracing target as a learning candidate image. Holding as a learning candidate image includes holding an image, as well as holding output values ​​(bounding box area and inference value (confidence value) of each class) output by inference for the image of the held target. Holding means storing data in the memory unit 22. These held data are used to generate learning data and judge tracing.

[0052] In this embodiment, the retention of the learning candidate images is started by the detection of the tracing target. As described above, in this embodiment, the tracing target is an identification target whose class classification is unclear. For this reason, by starting the retention of the learning candidate images including the tracing target in response to the detection of the tracing target, it is possible to appropriately start the collection of images that include an identification target whose class classification is low (difficult object).

[0053] The change detection unit 215 detects a change over time in the result of inference for the tracing target. That is, the controller 21 detects a change over time in the result of inference for the tracing target. That is, the terminal device 2 detects a change over time in the result of inference for the tracing target.

[0054] In this embodiment, in detail, the change in the inference result over time is a change that occurs after the start of storing the learning candidate images, so that the collection of the learning candidate images can be terminated at an appropriate timing.

[0055] In this embodiment, the change over time in the result of the inference described above is a change in the classification of the tracing target from unclear to clear. That is, the change detection unit 215 detects a change over time in the determination of the clarity of the tracing target. A clear classification is a state in which there is one class with the highest inference value (confidence value), and the inference value of the highest class is clearly different from the inference values ​​of the other classes. In other words, it is a state in which the difference between the inference value of the class with the highest inference value (maximum inference value) and the inference value of the class with the second highest inference value (second inference value) is equal to or greater than the above-mentioned classification threshold.

[0056] FIG. 5 is a diagram for explaining an example in which the class classification of the tracing target changes from unclear to clear. In FIG. 5, the time when the image in the upper row was acquired is earlier than the time when the image in the lower row was acquired. In the example shown in FIG. 5, the position of the camera 3 approaches the identification target as time passes. Note that in the example shown in FIG. 5, of the two vehicles shown in the image, only the vehicle on the left is the tracing target.

[0057] In the example shown in Fig. 5, the inference result of the traced object in the upper image is the same as the output value shown in the above formula (1). That is, the inference value of the class "car" is 0.43, the inference value of the class "track" is 0.41, and the inference value of the class "bus" is 0.16. The percentage value (about 5%) obtained by dividing the absolute difference between the maximum inference value (0.43) and the second inference value (0.41) by the maximum inference value is smaller than the classification threshold (30%). That is, it can be said that the class classification between the classes "car" and "track" is unclear (ambiguous).

[0058] On the other hand, the inference results of the traced object in the lower image are as follows: the inference value of the class "car" is 0.10, the inference value of the class "track" is 0.81, and the inference value of the class "bus" is 0.09. The percentage value (approximately 88%) obtained by dividing the absolute difference between the maximum inference value (0.81) and the second inference value (0.10) by the maximum inference value is greater than the classification threshold (30%). In other words, the classification of the class "track" can be said to be clear (highly reliable). In the example shown in Figure 5, the class classification of the traced object changes from unclear to clear over time. And the class obtained as the inference result changes from "car" to "track".

[0059] 5 is an example in which the inference result changes over time due to a change in the distance between the camera 3 and the identification target over time. However, examples in which the inference result changes over time are not limited to this. For example, an example in which the inference result changes over time is a change in the angle between the camera 3 and the identification target.

[0060] The data generating unit 216 generates learning data. The learning data is teacher data in which a correct answer label is assigned to an image. In detail, the data generating unit 216 generates learning data in which the result of inference is assigned to the learning candidate image as correct answer data in response to detection of a change over time in the result of the inference described above. That is, the controller 21 generates learning data in which the result of inference is assigned to the learning candidate image as correct answer data in response to detection of a change. The terminal device 2 generates learning data in which the result of inference is assigned to the learning candidate image as correct answer data in response to detection of a change.

[0061] According to this embodiment, while performing inference using a trained model, teacher data, which is training data with a correct answer label, can be automatically generated. According to this embodiment, training data can be automatically generated by directly using images input when performing inference using a trained model. In this embodiment, training data can be automatically obtained by directly using images obtained when, for example, a drive recorder is actually used. According to this embodiment, training data can be efficiently generated, and therefore the learning efficiency of the model can be improved.

[0062] In detail, the correct answer data is assigned using the result of inference of the image in which the above-mentioned change is detected. As described above, in this embodiment, the change accompanying the time change of the inference result is detected by the class classification becoming clear from unclear. In other words, the class classification for the image in which the change is detected is clear, and it can be said that the class obtained by inference is highly reliable. In consideration of this point, in this embodiment, the class obtained at the time when the class classification becomes clear is determined as the correct answer data of the class of the tracing target. Then, the class determined as the correct answer data is assigned to the tracing target image in the learning candidate image in which the class classification was unclear with respect to the tracing target. According to this embodiment, the correct answer label can be automatically and appropriately assigned.

[0063] [2-2. Flow of generating learning data] Next, a procedure for generating training data using the training data generation device 20 configured as above will be described. Fig. 6 is a flowchart illustrating the flow of a training data generation method according to an embodiment of the present invention.

[0064] In step S11, the inference unit 212 performs inference on the image input to the device 20. That is, the learning data generation method of this embodiment includes performing inference on the input image. By performing inference, an area in the image of the identification target (object) and an inference value (confidence value) for each preset class are obtained as the inference result. When the inference result is obtained, the process proceeds to the next step S12.

[0065] In addition, not only one classification target but multiple classification targets may be recognized by the inference in step S11. When multiple classification targets are recognized, the process from step S12 onward is performed for each classification target. In explaining the flowchart in FIG. 6, in order to facilitate understanding, the explanation will be limited to the process for one classification target.

[0066] Moreover, the types of classes obtained as a result of inference are, as an example, "car", "truck", and "bus".

[0067] In step S12, the tracing target detection unit 213 judges whether tracing has already started for the recognized classification target. If tracing has not started for the recognized classification target (No in step S12), the process proceeds to the next step S13. If tracing has started for the recognized classification target (Yes in step S12), the process proceeds to step S15.

[0068] In step S13, the tracing target detection unit 213 judges whether the recognition target satisfies the requirements as a tracing target. In this embodiment, whether the requirements are satisfied is judged based on the result of inference. In detail, in order to satisfy the requirements, at least one of the inference values ​​of each class is required to exceed the above-mentioned judgment permission threshold. In addition, in order to satisfy the requirements, it is required that the difference between the maximum inference value and the second inference value is smaller than the above-mentioned class classification threshold. When the inference result satisfies the two requirements, the tracing target detection unit 213 detects the identification target that satisfies the two requirements as a tracing target. That is, the learning data generation method of this embodiment comprises detecting the tracing target from within the image based on the result of inference. When the tracing target is detected (Yes in step S13), the process proceeds to the next step S14. When the tracing target is not detected (No in step S13), the process returns to step S11.

[0069] 5 corresponds to the state in which the tracing target is detected in step S13. The tracing target is a vehicle classified as a class "car." The class classification is unclear.

[0070] In step S14, tracing is started. Note that tracing of the tracing target (determining the presence or absence of the tracing target in each temporally consecutive image, tracking the position) can be performed by image recognition processing of the tracing target, etc. Furthermore, the candidate image holding unit 214 starts holding learning candidate images. The candidate image holding unit 214 holds an image in which the tracing target is detected as a learning candidate image. That is, the learning data generation method of this embodiment includes holding an image including the tracing target as a learning candidate image. Note that, as described above, holding the learning candidate image also includes the result of inference (coordinates, class, confidence value). Once tracing and holding the learning candidate image are started, the process returns to step S11, and inference of the next image is performed using the trained model 221.

[0071] Step S15 is a process when tracing of an identification target recognized from an image is started. In step S15, the change detection unit 215 judges whether or not the class classification is clear based on the result of inference for the tracing target in the image that is the current inference target. Whether or not the class classification is clear is judged using a class classification threshold as described above. The class classification of the tracing target is unclear at the start of tracing. For this reason, the process of step S15 can be rephrased as detecting a change over time in the result of inference for the tracing target. That is, the learning data generation method of this embodiment includes detecting a change over time in the result of inference for the tracing target. In this embodiment, the change over time in the result of inference for the tracing target is that the class classification of the tracing target changes from unclear to clear.

[0072] If it is determined that the class classification of the tracing target is clear (Yes in step S15), it is determined that a change in the inference result over time has been detected, and the process proceeds to the next step S16. If it is determined that the class classification of the tracing target is unclear (No in step S15), it is determined that a change in the inference result over time has not been detected, and the process returns to step S11. When the process returns to step S11, the image from which the current inference result was obtained is held as a training candidate image. That is, each time the process returns from step S15 to step S11, the number of training candidate images held increases.

[0073] 5 corresponds to the state in which the class classification has been clarified in step S15. The class of the trace target is determined as "track."

[0074] In step S16, the data generating unit 216 converts the training candidate image into training data. In detail, the data generating unit 216 sets the class obtained by inference of the image determined to have a clear class classification of the tracing target as the correct answer value of the tracing target class. Then, the data generating unit 216 assigns the correct answer data to the retained training candidate image. When there are multiple retained training candidate images, the correct answer data is assigned to each of them.

[0075] FIG. 7 is a diagram for explaining an image of the generated learning data. As shown in FIG. 7, according to the learning data generation method shown in FIG. 6, a bundle BOD of learning data DA with a correct answer label is obtained. For example, assume that 30 images are transmitted from the camera 3 to the learning data generation device 20 per second. Assume that it takes 15 seconds for the state shown in the upper part of FIG. 5 to change to the state shown in the lower part. In this case, approximately 450 (=30×15) pieces of learning data are obtained. Note that, since the learning data of images captured at close times is data with a high degree of similarity and may be considered to have low learning efficiency, a process may be performed to appropriately thin out the learning data (for example, in the above example, 15 pieces of learning data of images captured at 1-second intervals) so that the learning data is of images captured at appropriate time intervals.

[0076] As can be seen from the above description, the learning data generation method of this embodiment generates learning data in which the result of inference is assigned to the learning candidate image as correct answer data in response to detection of changes accompanying time changes in the inference result. According to this, while performing inference using a trained model, teacher data, which is learning data with a correct answer label, can be automatically generated. In addition, learning data can be automatically generated using the image input when performing inference using a trained model. By applying this to a product such as a drive recorder, learning data can be automatically obtained using the image obtained when the product is actually used. According to this embodiment, learning data can be efficiently generated, and the learning efficiency of the model can be improved accordingly.

[0077] The learning method of the present embodiment described above is a method that includes the learning data generation method described above and re-learning the trained model 221 using the learning data obtained by the learning data generation method. Learning data with correct answer labels that are automatically created from images that are estimated to be difficult to recognize can be obtained, and re-learning can be performed to efficiently improve the performance of the trained model.

[0078] <3. Modifications> In the embodiment described above, a configuration is adopted in which learning data with a correct answer label is generated by utilizing a phenomenon in which a class classification obtained by inference using a trained model changes from unclear to clear. However, this is merely an example. Learning data with a correct answer label may be generated by utilizing a phenomenon in which a class classification obtained by inference using a trained model changes from clear to unclear. In the modified example described below, learning data is generated by utilizing a phenomenon in which a class classification changes from clear to unclear.

[0079] As an application example of the embodiment described above, a scene in which the identification target approaches the camera 3 is assumed, as described in FIG. 5. The modified example described below can be applied to a scene in which the identification target moves away from the camera 3, as shown in FIG. 8. FIG. 8 is a diagram that shows a schematic diagram of an application scene of the modified example. In FIG. 8, the image in the upper row is acquired at the earliest time, and the image in the lower row is acquired at the latest time. That is, the images are acquired at the latest times in the order of the upper row, the middle row, and the lower row. In the example shown in FIG. 8, for convenience of explanation, only the left vehicle of the two vehicles shown in the image is recognized.

[0080] The configuration of the training data generation device that realizes the training data generation method of the modified example is generally similar to the configuration of the training data generation device 20 of the above-described embodiment, although there are some differences in the functional contents. For this reason, the description will be given using the symbols shown in FIG.

[0081] FIG. 9 is a flowchart illustrating the flow of a training data generating method according to a modified example of the present invention.

[0082] In step S21, the inference unit 212 performs inference on the image input to the device 20. This is the same as in the above-described embodiment. When the inference result is obtained, the process proceeds to the next step S22.

[0083] As in the above embodiment, the inference in step S21 may recognize not only one classification object but also multiple classification objects. Here, for ease of understanding, the description will be limited to the processing of one classification object. Also in this example, the types of classes obtained as a result of the inference are, for example, "car", "track", and "bus".

[0084] In step S22, similarly to the above-described embodiment, the tracing target detection unit 213 judges whether tracing has already started for the recognized identification target. If tracing has not started (No in step S22), the process proceeds to the next step S23. If tracing has started (Yes in step S22), the process proceeds to step S25.

[0085] In step S23, the tracing target detection unit 213 judges whether the identification target satisfies the requirements as a tracing target based on the result of inference. This is the same as in the above-mentioned embodiment. However, in this modified example, the requirement is that the class classification of the identification target is clear. That is, in this modified example, the detection of the tracing target is to detect an identification target whose class classification is clear based on the result of inference. In this respect, it differs from the above-mentioned embodiment. Even with such a configuration, it is possible to automatically generate learning data with a correct answer label. If the tracing target is detected (Yes in step S23), the process proceeds to the next step S24. If the tracing target is not detected (No in step S23), the process returns to step S21.

[0086] The state shown in the upper part of Fig. 8 corresponds to the state in which the tracing target is detected in step S23. The tracing target is a vehicle classified as a class "track". The class classification is clear, and the correct answer data for the class can be determined to be "track".

[0087] In step S24, tracing is started. Once tracing is started, the process returns to step S21, and the next image is inferred using the trained model 221. Note that in this modified example, retention of training candidate images is not started in response to detection of the tracing target. This point differs from the above-described embodiment.

[0088] Step S25 is a process when tracing of an identification target recognized from an image is started. In step S25, it is determined whether or not the class classification is clear based on the result of inference for the tracing target in the image that is the current inference target. If it is determined that the class classification of the tracing target is clear (Yes in step S25), the process returns to step S21. If it is determined that the class classification of the tracing target is unclear (No in step S25), the process proceeds to the next step S26.

[0089] The state shown in the middle of Fig. 8 corresponds to the state where the class classification became unclear in step S25. The class of the tracing target is "car" instead of "track". Note that even if the class remains "track", the class classification may be determined to be unclear.

[0090] In step S26, the candidate image holding unit 214 starts holding the training candidate images. That is, in this modified example, the holding of the training candidate images is started when it is determined that the class classification of the tracing target has changed from clear to unclear based on the result of inference. This point differs from the above-mentioned embodiment. By starting to hold the training candidate images at an appropriate timing, it is possible to appropriately collect images containing classification targets that the trained model 221 has difficulty recognizing. When the holding of the training candidate images is started, the process proceeds to the next step S27.

[0091] In step S27, the change detection unit 215 judges whether the tracing requirements are satisfied based on the result of inference for the tracing target in the image currently being inferred. That is, in this modified example, the change over time in the result of inference for the tracing target is detected by judging that the tracing target no longer satisfies the tracing requirements based on the result of inference. In detail, when the inference value (confidence value) of each class is equal to or less than the above-mentioned judgment permission threshold value based on the result of inference, it is judged that the tracing requirements are not satisfied. Also, when the identification target being traced is no longer recognized, it is judged that the tracing requirements are no longer satisfied.

[0092] If it is determined that the tracing requirements are not satisfied (No in step S27), the process proceeds to the next step S28. If it is determined that the tracing requirements are satisfied (Yes in step S27), the process returns to step S21. When the process returns to step S21, the image from which the current inference result was obtained is held as a learning candidate image. That is, every time the process returns from step S27 to step S11, the number of learning candidate images held increases. In addition, in the process performed after the process returns to step S21, if it is determined that the class classification is unclear in step S25 (No in step S25), the process of step S26 is skipped and the process proceeds to step S27. Also, if it is determined that the class classification is clear in step S25 (Yes in step S25), the process does not return to step S21 but proceeds to step S28 described below.

[0093] The state shown in the lower part of Fig. 8 corresponds to the state where the tracing requirements are no longer satisfied in step S27. In the state where the tracing requirements are not satisfied, the confidence values ​​of each class obtained as a result of inference are small, so the results of class classification are not shown.

[0094] In step S28, the data generating unit 216 converts the learning candidate image into learning data. In detail, the data generating unit 216 sets the class obtained in the image in which the class classification of the tracing target is determined to be clear as the correct value of the class of the tracing target. Then, the data generating unit 216 assigns correct data to each of the retained learning candidate images. That is, in this modified example, the correct data is assigned using the result of inference in the image in which the class classification of the tracing target is determined to be clear. The image in which the class classification of the tracing target is determined to be clear may be, for example, the image in which the tracing target is first detected. In this case, the result of inference in the image in which the tracing target is first detected needs to be retained at the time when the result of the inference is acquired.

[0095] In this modification, it is possible to automatically generate training data with correct answer labels while performing inference using a trained model. Also, it is possible to automatically generate training data by directly using images input when performing inference using a trained model.

[0096] In the modified configuration, when it is determined that the class classification has changed from clear to unclear (Yes in step S25), the training candidate images may be retained and training data may be generated by adding the inference result to the training candidate images as correct answer data. Such a configuration is also included in the scope of the present invention. In such a configuration, the change over time of the inference result for the tracing target in the present invention corresponds to the change of the class classification from clear to unclear.

[0097] <4. Things to keep in mind> Various technical features disclosed in the description of the invention may be modified in various ways without departing from the spirit of the technical creation. Furthermore, the embodiments and modifications disclosed in the description of the invention may be combined to the extent possible. [Explanation of symbols]

[0098] 1. Server device 2. Terminal device 20. Learning data generation device 21. Controller 100···Learning System 221...Pre-trained model

Claims

1. A learning data generation method executed by an apparatus, comprising: Detecting an identification object in a plurality of input images inputted to the device in time series as a tracing object to be traced; Estimating a class classification for the tracing object in the plurality of input images; generating learning data by assigning, as correct answer data, a class classification of the tracing object whose class classification is estimated to be clear to an image of the tracing object whose class classification is estimated to be unclear based on the estimation result of the class classification; How to generate training data

2. The learning data generating method according to claim 1 , further comprising the step of detecting, as the tracing object, an object to be identified whose class classification is unclear based on the estimation result of the class classification.

3. The method for generating training data according to claim 2 , wherein detection of the tracing object initiates retention of the input image including the tracing object as a candidate image of the training data.

4. Detecting changes over time in the determination of the distinctness of the tracing object; The learning data generating method according to claim 3 , wherein the correct answer data is an estimation result of the class classification of the tracing object after the class classification of the tracing object changes from unclear to clear.

5. The learning data generating method according to claim 1 , further comprising the step of detecting, as the tracing object, an identification object whose class classification is clear based on a result of the estimation of the class classification.

6. Detecting changes over time in the determination of the distinctness of the tracing object; The learning data generating method according to claim 5 , wherein the correct answer data is an estimation result of the class classification of the tracing object before the class classification of the tracing object changes from clear to unclear.

7. 7. The learning data generating method according to claim 6, wherein, when it is determined that the class classification of the tracing object has changed from clear to unclear, an input image including the tracing object is started to be held as a candidate image of learning data.

8. tracing the object to be identified detected from the input image against the input images which are sequentially input; A class classification estimation model is used to estimate a class classification for the traced object; generating learning data by assigning a class classification determined to be clear for the input image in which the class classification of the tracing object is determined to be unclear as correct answer data; re-learning the class classification estimation model using the generated learning data; How to learn.

9. tracing the object to be identified detected from the input image against the input images which are sequentially input; Estimating a class classification for the traced object; generating learning data in which a class classification determined to be clear for the input image in which the class classification of the tracing object is determined to be unclear is assigned as correct answer data; A learning data generation program that causes a computer to execute the above.

10. tracing the object to be identified detected from the input image against the input images which are sequentially input; Estimate a class classification for the traced object; generating learning data in which a class classification determined to be clear for the input image in which the class classification of the tracing object is determined to be unclear is assigned as correct answer data; Training data generation device.

11. An in-vehicle device that detects an object from a captured image, has a class classification estimation model that performs class classification of the detected object, and uses an estimation result of the class classification estimation model for vehicle control, tracing the object detected from the input image with respect to the input images which are sequentially input; Estimating a class classification for the traced object using the class classification estimation model; generating learning data in which a class classification determined to be clear for the input image in which the class classification of the tracing object is determined to be unclear is assigned as correct answer data; In-vehicle device.

12. A server device; and a terminal device that is capable of communicating with the server device. A learning system comprising: The terminal device transmits the acquired photographed image to the server device; The server device includes: receiving the captured image from the terminal device; tracing the identification object detected from the received photographed image against the sequentially received photographed images; Estimating a class classification for the traced object; generating learning data in which a class classification determined to be clear for the captured image in which the class classification of the tracing object is determined to be unclear is assigned as correct answer data; Learning system.

Citation Information

Patent Citations

  • Learning requesting device and method for requesting learning

    JP2020119322A

  • Learning device, learning method, and learning program

    JP2022079325A