Machine learning device and vehicle
The machine learning device improves vehicle detection accuracy by adding noise to images from different positions, using a deep learning method, to enhance the robustness and reduce processing load in vehicle detection systems.
Patent Information
- Application Number
- JP2023064325
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-24
AI Technical Summary
Existing machine learning models for vehicle detection increase processing load and reduce the accuracy of detecting specific objects due to the reliance on multiple imaging devices with different imaging positions.
A machine learning device that includes processors and memories, performing a noise addition process to brightness images taken at different positions, generating a machine learning model using these processed images and teacher images, and utilizing a deep learning method like CNN to improve detection accuracy.
The method enhances the detection accuracy of specific objects by reducing the processing load and improving the robustness of the machine learning model.
Smart Images

Figure 2024151168000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a machine learning device that generates a machine learning model, and a vehicle equipped with a trained machine learning model. [Background technology]
[0002] Conventionally, there is known a technology, such as that disclosed in Patent Document 1, that detects a preceding vehicle located in front of the vehicle and performs following control to reduce damage caused by a collision with the preceding vehicle and to maintain a safe distance between the vehicle and the preceding vehicle. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 3349060 Summary of the Invention [Problem to be solved by the invention]
[0004] For example, a vehicle is equipped with two imaging devices with different imaging positions, and the distance between the vehicle itself and the preceding vehicle is determined based on the parallax between the two captured images. It is also possible to obtain information about a specific object, such as a preceding vehicle, by using a machine learning model that uses the two captured images as input.
[0005] In such machine learning, for example, from two images, two prediction results, a prediction result corresponding to one image and a prediction result corresponding to the other image, are output, and information on the specific object is appropriately extracted from the two prediction results, thereby improving the detection accuracy of the specific object. However, such a machine learning model has a problem of increasing the processing load.
[0006] In view of the above problems, the present invention aims to provide a machine learning device and a vehicle that are capable of improving the detection accuracy of a specific object using a simple method. [Means for solving the problem]
[0007] In order to solve the above problem, the machine learning device of the present invention includes one or more processors and one or more memories connected to the processors, and the processor operates in cooperation with a program included in the memory to execute processes including: acquiring a combination of a plurality of luminance images captured at different imaging positions and a teacher image corresponding to one of the plurality of luminance images multiple times; performing a processing process to process the plurality of luminance images; and generating a machine learning model using the processed plurality of luminance images and the teacher image as inputs, and the processing process includes a noise addition process to add partial noise at different positions to each of the plurality of luminance images in the same combination. Effect of the Invention
[0008] According to the present invention, it is possible to improve the detection accuracy of a specific object using a simple method. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing the connections of the exterior environment recognition system. [Diagram 2] FIG. 2 is a functional block diagram showing a schematic function of the vehicle exterior environment recognition device. [Diagram 3] FIG. 3 is a flowchart showing the flow of the vehicle exterior environment recognition method. [Figure 4] FIG. 4 is an explanatory diagram for explaining the luminance image. [Diagram 5] FIG. 5 is an explanatory diagram for explaining a machine learning framework. [Figure 6] FIG. 6 is an explanatory diagram for explaining a predicted image. [Figure 7] FIG. 7 is an explanatory diagram for explaining a predicted image. [Figure 8] FIG. 8 is an explanatory diagram for explaining a predicted image. [Figure 9]FIG. 9 is a block diagram showing the connections in the machine learning system. [Figure 10] FIG. 10 is a flowchart showing the flow of the machine learning method. [Figure 11] FIG. 11 is an explanatory diagram for explaining machine learning. [Figure 12] FIG. 12 is an explanatory diagram showing a comparative example of a trained machine learning model. [Figure 13] FIG. 13 is an explanatory diagram for explaining noise. [Figure 14] FIG. 14 is an explanatory diagram showing another comparative example of a trained machine learning model. [Figure 15] FIG. 15 is an explanatory diagram for explaining noise. [Figure 16] FIG. 16 is an explanatory diagram illustrating another comparative example of a trained machine learning model. [Figure 17] FIG. 17 is an explanatory diagram showing an example of the scale change process. [Figure 18] FIG. 18 is an explanatory diagram for explaining the vehicle detection accuracy by the processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] A preferred embodiment of the present invention will be described in detail below with reference to the accompanying drawings. The dimensions, materials, and other specific values shown in the embodiment are merely examples for facilitating understanding of the invention, and do not limit the present invention unless otherwise specified. In this specification and drawings, elements having substantially the same functions and configurations are given the same reference numerals to avoid repeated explanations, and elements not directly related to the present invention are not shown.
[0011] (Exterior environment recognition system 100) 1 is a block diagram showing connections in a vehicle exterior environment recognition system 100. The vehicle exterior environment recognition system 100 includes an imaging device 110, an exterior environment recognition device 120, and a vehicle control device .
[0012] The imaging device 110 includes an imaging element such as a charge-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS). The imaging device 110 captures an image of the external environment in front of the vehicle 1. The imaging device 110 can generate a luminance image including at least luminance information, for example, an RGB image, a monochrome image, etc., in units of pixels. The imaging devices 110 are arranged in the traveling direction of the vehicle 1, spaced apart from each other in a substantially horizontal direction, so that the optical axes of the two imaging devices 110 are substantially parallel to each other. The imaging device 110 continuously generates luminance images capturing an image of a three-dimensional object present in a detection area in front of the vehicle 1, for example, every 1 / 60 second frame.
[0013] Furthermore, the vehicle exterior environment recognition device 120 recognizes the environment outside the vehicle through the luminance image acquired from the imaging device 110 and a predicted image generated from the two luminance images. The vehicle exterior environment recognition device 120 performs speed control and steering angle control during traveling of the vehicle 1 based on the recognized vehicle exterior environment and the traveling condition of the vehicle 1. The vehicle exterior environment recognition device 120 will be described in detail later.
[0014] The vehicle control device 130 is composed of an ECU (Electronic Control Unit) and accepts driver's operational inputs through a steering wheel 132, an accelerator pedal 134, and a brake pedal 136, and controls a steering mechanism 142, a drive mechanism 144, and a braking mechanism 146 by referring to information generated by the exterior environment recognition device 120.
[0015] (External environment recognition device 120) 2 is a functional block diagram showing a schematic function of the vehicle exterior environment recognition device 120. As shown in FIG. 2, the vehicle exterior environment recognition device 120 includes an I / F unit 150, a data storage unit 152, and a central control unit 154.
[0016] The I / F unit 150 is an interface for two-way information exchange with the imaging device 110 and the vehicle control device 130. The data storage unit 152 is composed of a RAM, a flash memory, a HDD, etc., and stores various information necessary for the processing of each functional module described below.
[0017] The central control unit 154 is configured with a semiconductor integrated circuit including a processor, a ROM in which programs and the like are stored, a RAM as a work area, and the like, and controls the I / F unit 150, the data holding unit 152, and the like through a system bus 156. In addition, in the present embodiment, the processor in the central control unit 154 works in cooperation with the programs stored in the ROM to function as functional modules such as an image acquisition unit 160, a predicted image generation unit 162, and a specific object identification unit 164.
[0018] (How to recognize the environment outside the vehicle) FIG. 3 is a flowchart showing the flow of the vehicle exterior environment recognition method. The vehicle exterior environment recognition device 120 executes the vehicle exterior environment recognition method at each predetermined interruption time. In the vehicle exterior environment recognition method, first, the image acquisition unit 160 acquires a plurality of luminance images (S100). The predicted image generation unit 162 generates a predicted image from two luminance images (S102). The specific object identification unit 164 identifies specific objects such as a preceding vehicle or a pedestrian based on the predicted image (S104). Here, the three-dimensional objects and specific objects recognized by the vehicle exterior environment recognition device 120 include not only independently existing objects such as bicycles, pedestrians, vehicles, traffic lights, road signs, guardrails, buildings, and side walls on the side of the road, but also objects that can be identified as parts of a vehicle, such as the back or side of a vehicle, or bicycle wheels. Below, each process of the vehicle exterior environment recognition method will be described in detail, and a description of processes unrelated to the features of this embodiment will be omitted.
[0019] (Image acquisition process S100) 4 is an explanatory diagram for explaining a luminance image. The image acquisition unit 160 acquires two luminance images 180 captured at the same timing by the imaging device 110. Specifically, the image acquisition unit 160 acquires a first luminance image 180a captured by the imaging device 110 located relatively to the right of the host vehicle 1, and a second luminance image 180b captured by the imaging device 110 located relatively to the left of the host vehicle 1.
[0020] 4, it can be seen that the positions of the three-dimensional objects included in the first luminance image 180a and the second luminance image 180b are different in the horizontal direction due to the difference in the imaging position of the imaging device 110. For example, the three-dimensional object 186 included in the first luminance image 180a is located relatively to the right in the horizontal direction in the second luminance image 180b, as shown by the dashed line in FIG. 4. Here, the horizontal direction indicates the horizontal direction of the screen of the captured image, and the vertical direction indicates the vertical direction of the screen of the captured image.
[0021] (Predicted image generation process S102) The predicted image generating unit 162 generates a predicted image for identifying a three-dimensional object existing in a detection area in front of the vehicle 1 from the first luminance image 180a and the second luminance image 180b acquired by the image acquiring unit 160. Although details will be described later, in this embodiment, two luminance images captured by the imaging device 110 are input, and machine learning is performed in advance using teacher data. The predicted image generating unit 162 generates a predicted image from the first luminance image 180a and the second luminance image 180b using a trained machine learning model that has been subjected to machine learning in this way.
[0022] FIG. 5 is an explanatory diagram for explaining a machine learning framework. In this embodiment, deep learning is used as the machine learning. Deep learning is a method of providing multiple intermediate layers based on NN (Neural Network) between input and output, and learning rules and patterns for each intermediate layer. In this way, a model in which the structure of NN is used in deep learning is sometimes called DNN (Deep Neural Network). Here, as an example of DNN, CNN (Convolutional Neural Network) using convolutional operation is taken and explained.
[0023] In the example of FIG. 5, for example, a ResNet (Residual Neural Networks) model is used as the backbone of the CNN. The ResNet model is a model that repeats a combination of a convolutional layer L and a Skip connection, or a combination of a convolutional layer L and a Residual connection. Such a convolutional layer L includes a residual block. The Skip connection or the Residual connection directly connects any convolutional layers L to each other, skipping other convolutional layers L located between them. Here, the depth of the convolutional layer L of the ResNet model is, for example, 50 layers.
[0024] In the example of FIG. 5, a pair of ResNet models are prepared. The first luminance image 180a and the second luminance image 180b are input to the pair of ResNet models independently. The weights for deriving the feature amounts are common to the pair of ResNet models. In this case, the optimal weights that minimize the loss function, that is, that reduce the prediction error, may be obtained by a gradient method.
[0025] In the convolution layer L, a block of multiple pixels, for example, 3 pixels x 3 pixels, is extracted in sequence, and a specific feature is activated through a convolution filter. In addition, the feature may be activated using a ReLU (Rectified Linear Unit) function, which sets the output value to 0 if the input value is negative, and sets the output value to the same value as the input value if the input value is 0 or more.
[0026] The features thus activated are simplified by nonlinear downsampling in the pooling layer following the convolutional layer L. This simplification limits the number of parameters that the CNN learns. In the CNN, a series of processes based on the convolutional layer L, pooling layer, etc. are repeated.
[0027] Next, the multiple convolution layers L in the pair of ResNet models are connected by a concatenate function, which is a concatenation function. Note that although the concatenate function is used here as the concatenation function, a Conv3D function that extends CNN to three dimensions may also be used. The multiple connected convolution layers L are upsampled by a decoder function and returned to the image size at the time of input. The prediction result head derived in this way becomes the predicted image.
[0028] Here, we have used the CNN ResNet model and the Concatenate function as machine learning models for generating a predicted image from the first luminance image 180a and the second luminance image 180b, but this is not limited to the above, and various existing technologies related to deep learning can be adopted.
[0029] In this embodiment, the predicted image generating unit 162 generates three types of predicted images 182a, 182b, and 182c according to the task in order to identify a three-dimensional object present in a detection area ahead of the vehicle 1. The predicted images 182a, 182b, and 182c will be described in detail below.
[0030] It is preferable that the predicted images 182a, 182b, and 182c are images similar in configuration to either the first luminance image 180a or the second luminance image 180b. This is because the processing load is smaller when the predicted image 182 is created based on either the first luminance image 180a or the second luminance image 180b. Also, it is easier to evaluate the detection accuracy when the predicted image 182 is similar to either the first luminance image 180a or the second luminance image 180b. Here, the predicted images 182a, 182b, and 182c correspond to the first luminance image 180a, and are configured to have the same resolution, angle of view, and arrangement of three-dimensional objects as the first luminance image 180a.
[0031] FIG. 6 is an explanatory diagram for explaining the predicted image 182a. The predicted image 182a is obtained by dividing an image into a plurality of objects by semantic segmentation. In the predicted image 182a, the task is to identify the objects. Here, semantic segmentation is a deep learning algorithm that associates a label, category, or class with each pixel in the luminance image 180 based on the meaning of the pixel as an image, together with an index indicating the likelihood of the label, category, or class. Here, each pixel of the first luminance image 180a is associated with one of a plurality of classes selected from, for example, a road surface, a lane boundary line, a vehicle, a sidewalk, a fence, a pole, a cone, a shrub, and the sky.
[0032] Specifically, the predicted image generating unit 162 derives probabilities corresponding to a plurality of classes for each pixel of the first luminance image 180a. Hereinafter, the probability corresponding to any class is referred to as reliability. Then, the predicted image generating unit 162 associates the class with the highest reliability for any pixel of the first luminance image 180a with that pixel. In this way, as in the predicted image 182a of FIG. 6, the pixel with the highest reliability that is the road surface is classified into the road surface class 190a. Also, the pixel with the highest reliability that is the lane boundary line is classified into the lane boundary line class 190b. Also, the pixel with the highest reliability that is the vehicle is classified into the vehicle class 190c. Note that the predicted image generating unit 162 may use the average value or median value of the reliability of all pixels included in the collection as the reliability of the entire collection of pixels classified into the same class.
[0033] Such semantic segmentation enables the exterior environment recognition device 120 to integrally recognize a collection of pixels that form a characteristic class, for example, a vehicle class indicating a vehicle, even if one or both of the first luminance image 180a and the second luminance image 180b are partially blurred.
[0034] FIG. 7 is an explanatory diagram for explaining the predicted image 182b. The predicted image 182b represents the parallax of a three-dimensional object on an image. The predicted image 182b has a task of identifying the relative distance of the three-dimensional object. The predicted image generating unit 162 associates the difference between the horizontal position of the first luminance image 180a and the horizontal position of the second luminance image 180b of a pixel or block that is likely to show the same three-dimensional object with each pixel. In this way, each pixel of the predicted image 182b has a parallax in addition to the horizontal position and vertical position on the predicted image 182b. The predicted image generating unit 162 converts the parallax into a relative distance (z) using a so-called stereo method, and can derive three-dimensional position information of each pixel, that is, the horizontal position (x), vertical position (y), and relative distance (z).
[0035] FIG. 8 is an explanatory diagram for explaining the predicted image 182c. The predicted image 182c represents a predetermined area occupied by a three-dimensional object existing in an image. The predicted image 182c has a task of identifying the three-dimensional object itself. The predicted image generating unit 162 groups pixels whose horizontal position (x), vertical position (y), and relative distance (z) are within a predetermined range and determines them as a three-dimensional object. At this time, the predicted image generating unit 162 may group pixels whose movement amount from the previous frame, that is, whose relative speed is within a predetermined range, and determine them as a three-dimensional object. In addition, the predicted image generating unit 162 determines whether or not the three-dimensional object is a three-dimensional object to be extracted based on the size, shape, color, etc. of the three-dimensional object.
[0036] Furthermore, the predicted image generating unit 162 surrounds the three-dimensional object to be extracted with a rectangular frame 192 passing through the left and right ends of the horizontal position and the top and bottom ends of the vertical position of the three-dimensional object, and defines this as the area occupied by the three-dimensional object. Note that if the three-dimensional object is a vehicle and the back and sides can be distinguished, the predicted image generating unit 162 can further independently show the area occupied by the vehicle as an area occupied by the back of the vehicle and an area occupied by the side of the vehicle.
[0037] (Specific object identification process S104) The specific object identification unit 164 first identifies the road surface ahead of the vehicle 1 using the luminance image 180 and the predicted image 182. Then, the specific object identification unit 164 identifies a solid object located vertically above the identified road surface. Specifically, the specific object identification unit 164 sets a block located at a predetermined vertical distance from the road surface, for example, 0.3 m or more, as a candidate for a specific object protruding vertically from the road surface. The specific object identification unit 164 determines whether the candidate for a specific object is a predetermined specific object, such as a preceding vehicle, a pedestrian, or a building. Since various existing technologies can be applied to determine whether such a specific object is present, detailed description thereof will be omitted here. In this way, it becomes possible to identify a specific object, such as a preceding vehicle or a pedestrian, and appropriately avoid a collision with the specific object.
[0038] As described above, in this embodiment, machine learning using CNN is performed, and the machine learning model for which learning has been completed and shown in Fig. 5 is applied to the vehicle exterior environment recognition system 100. Hereinafter, machine learning using CNN will be described.
[0039] (Machine Learning Systems 200) 9 is a block diagram showing the connections of the machine learning system 200. The machine learning system 200 includes a machine learning device 210 and an external device 220. The machine learning device 210 performs machine learning using CNN. The external device 220 transmits input data, i.e., the first luminance image 180a and the second luminance image 180b, to the machine learning device 210 in association with a teacher image, which is an image equivalent to teacher data.
[0040] The machine learning device 210 includes an I / F unit 250, a data storage unit 252, and a central control unit 254. The I / F unit 250 is an interface for inputting a brightness image captured in advance and a teacher image corresponding to the teacher data from the external device 220. The data storage unit 252 is composed of a RAM, a flash memory, a HDD, etc., and stores various information required for the processing of each functional module shown below.
[0041] The central control unit 254 is composed of a semiconductor integrated circuit including a processor, a ROM in which programs and the like are stored, a RAM as a work area, and the like, and controls the I / F unit 250, the data storage unit 252, and the like through a system bus 256. In addition, in this embodiment, in the central control unit 254, the processor works in cooperation with the programs stored in the ROM to function as functional modules such as an information acquisition unit 260 and a machine learning unit 262.
[0042] (Machine learning methods) FIG. 10 is a flowchart showing the flow of the machine learning method. In the machine learning method, first, the information acquisition unit 260 acquires a combination of the first luminance image 180a and the second luminance image 180b captured at different imaging positions from the external device 220, and a teacher image corresponding to one of the first luminance image 180a and the second luminance image 180b, multiple times (S200). The machine learning unit 262 generates a machine learning model that uses the combination of the first luminance image 180a, the second luminance image 180b, and the teacher image as input (S202). The machine learning unit 262 determines whether or not the machine learning model has been sufficiently performed and converged, that is, whether or not the machine learning is completed (S204). If the machine learning model has converged (YES in S204), the machine learning method is terminated, and if the machine learning model has not converged (NO in S204), the information acquisition process S200 and subsequent steps are repeated.
[0043] Fig. 11 is an explanatory diagram for explaining machine learning. As described above, in this embodiment, deep learning by CNN is performed as machine learning. Since the machine learning model of CNN is substantially the same as the machine learning model described in Fig. 5, detailed description thereof will be omitted here, and the description will focus on machine learning.
[0044] As shown in FIG. 11, the machine learning unit 262 inputs the first luminance image 180a to one of a pair of ResNet models, and inputs the second luminance image 180b to the other of the pair of ResNet models. The machine learning unit 262 also inputs a teacher image corresponding to the first luminance image 180a and the second luminance image 180b to the machine learning model. However, the teacher image is input as teacher data (Training Data) to be compared with the predicted images 182a, 182b, and 182c in order to appropriately output the predicted images 182a, 182b, and 182c. In this way, machine learning is performed so that the predicted images 182a, 182b, and 182c approach the teacher image.
[0045] The teacher image is an image having the same resolution, angle of view, and arrangement of three-dimensional objects as the first luminance image 180a, and is created to correspond to each of the predicted images 182a, 182b, and 182c. Therefore, three images are prepared as teacher images: an image obtained by dividing an image into a plurality of objects by semantic segmentation, an image showing the parallax of an object, and an image showing a predetermined area occupied by a three-dimensional object. The exterior environment recognition device 120 can appropriately output the predicted image 182 by using the trained machine learning model generated in this way.
[0046] In this embodiment, a machine learning technique is considered to improve the robustness of the machine learning model. During machine learning, the machine learning unit 262 does not directly input the first luminance image 180a and the second luminance image 180b to the ResNet model of FIG. 11, but inputs them after performing a predetermined processing. The processing of the first luminance image 180a and the second luminance image 180b may be simply called processing. Note that the processing is performed on the first luminance image 180a and the second luminance image 180b, and is not performed on the teacher image corresponding to the teacher data. Here, machine learning is performed using the first luminance image 180a and the second luminance image 180b that have been subjected to such processing as input.
[0047] For example, the machine learning unit 262 does not input either the first luminance image 180a or the second luminance image 180b, or inputs it as no information.
[0048] FIG. 12 is an explanatory diagram showing a comparative example of a trained machine learning model. FIG. 12 shows three predicted images 182a, 182b, and 182c output using a trained machine learning model in three patterns. Here, pattern 1 shows a case where no processing was performed as a comparison target. Pattern 2 shows a case where the first luminance image 180a was not input, that is, machine learning was performed using only the second luminance image 180b. Pattern 3 shows a case where the second luminance image 180b was not input, that is, machine learning was performed using only the first luminance image 180a.
[0049] In this embodiment, the predicted images 182a, 182b, and 182c, which are the output results of machine learning, are images that have the same resolution, angle of view, and arrangement of three-dimensional objects as the first luminance image 180a. Therefore, the predicted images 182a, 182b, and 182c are more dependent on the first luminance image 180a than the second luminance image 180b. In the pattern 1 of FIG. 12, the first luminance image 180a and the second luminance image 180b are input directly to the ResNet model without processing. Therefore, the output result of machine learning is highly dependent on the first luminance image 180a, and the complementing function of the second luminance image 180b does not work sufficiently.
[0050] Furthermore, as can be understood by comparing pattern 1 with patterns 2 and 3 in FIG. 12, if either the first luminance image 180a or the second luminance image 180b is not input, the accuracy of detecting specific objects using the predicted images 182a, 182b, and 182c decreases compared to the case where both the first luminance image 180a and the second luminance image 180b are input.
[0051] For example, in the predicted image 182a of patterns 2 and 3, the shape of the nearest preceding vehicle 270 becomes unclear. In addition, in the predicted image 182b of patterns 2 and 3, there are many parts where the parallax cannot be recognized. In addition, in the predicted image 182c of patterns 2 and 3, a three-dimensional object cannot be properly extracted. This is because one image does not exist at all, so there is less information for deriving the feature amount, and the complementing function of one image complementing the other image does not work sufficiently.
[0052] Moreover, in pattern 2, the detection accuracy is significantly decreased compared to pattern 3. As described above, the predicted images 182a, 182b, and 182c are more dependent on the first luminance image 180a, which has the same resolution, angle of view, and arrangement of three-dimensional objects, than the second luminance image 180b. However, in pattern 2, the predicted images 182a, 182b, and 182c must be output only from the second luminance image 180b without referring to the first luminance image 180a. Therefore, the detection accuracy is decreased by the amount that an image from a different viewpoint must be estimated from an image from an arbitrary viewpoint.
[0053] For example, in predicted image 182a of pattern 2, the preceding vehicle 270, the road surface 272, the lane boundary line 274, and the shrubs 276 are all unclear. In predicted image 182b of pattern 2, the parallax cannot be recognized. In predicted image 182c of pattern 2, the closest preceding vehicle 270 cannot be properly extracted.
[0054] Therefore, the machine learning unit 262 adds partial noise to either the first luminance image 180a or the second luminance image 180b and inputs the image. Processing data to be subjected to machine learning in this manner and expanding the data is sometimes called Data Augmentation.
[0055] FIG. 13 is an explanatory diagram for explaining noise. For example, as shown in FIG. 13, the machine learning unit 262 adds noise to the first luminance image 180a using a Cutout function. The Cutout function is to mask a square area 280 with a fixed value of 0 centered on a random position in the image. Here, for example, the length of the side of the mask is fixed, and a location of 1 is masked at a timing of 1. However, the length of the side of the mask may be changed randomly. Also, two or more different locations may be masked at a timing of 1. Also, the color of the mask may be white, black, or white noise.
[0056] Also, the machine learning unit 262 may add noise to the first luminance image 180a using a random erasing function, for example, as shown in FIG. 13. The random erasing function is to mask an area 282 having a random aspect ratio with a predetermined color, centered on a random position in the image. Here, for example, the color of the mask is white, and one location is masked at one timing. However, the color of the mask may be gray, black, or white noise. The color of the mask may be changed randomly. Two or more different locations may be masked at one timing. The machine learning unit 262 may also use a Blur function or a Sharpness function that blurs an image using a Gaussian function.
[0057] FIG. 14 is an explanatory diagram showing another comparative example of a trained machine learning model. In FIG. 14, as in FIG. 12, three predicted images 182a, 182b, and 182c output using a trained machine learning model in three patterns are shown. Here, pattern 1 is the same as pattern 1 in FIG. 12, and shows a case where no processing was performed as a comparison target. Pattern 2 shows a case where the first luminance image 180a is input with partial noise added, and the second luminance image 180b is input as is and machine learning is performed. Pattern 3 shows a case where the second luminance image 180b is input with partial noise added, and the first luminance image 180a is input as is and machine learning is performed.
[0058] 14, pattern 2 has a slightly lower detection accuracy than pattern 1. This is because while the complementing function of the second luminance image 180b works for some noise in the first luminance image 180a, the complementing function of the first luminance image 180a does not work sufficiently for the second luminance image 180b.
[0059] For example, in predicted image 182a of pattern 2, preceding vehicle 270, road surface 272, lane boundary 274, and shrub 276 are somewhat unclear. In predicted image 182b of pattern 2, the parallax of shrub 276 on the right side of the road surface is unclear. In predicted image 182c of pattern 3, the rear area of the closest preceding vehicle 270 cannot be properly extracted.
[0060] Also, comparing pattern 1 and pattern 3 in FIG. 14, it can be seen that the detection accuracy of pattern 3 is significantly reduced. This is because the complementing function of the first luminance image 180a works for some noise in the second luminance image 180b, while the complementing function of the second luminance image 180b does not work sufficiently for the first luminance image 180a. Therefore, the detection accuracy of the first luminance image 180a, which is highly dependent, is reduced, and the detection accuracy is reduced by the amount that an image of a different viewpoint must be estimated from an image of an arbitrary viewpoint. Therefore, the detection accuracy of pattern 3 is reduced compared to pattern 2.
[0061] For example, in predicted image 182a of pattern 3, the preceding vehicle 270, road surface 272, lane boundary line 274, and shrubbery 276 are all unclear. In predicted image 182b of pattern 3, parallax cannot be recognized. In predicted image 182c of pattern 3, the closest preceding vehicle 270 cannot be properly extracted.
[0062] Therefore, the machine learning unit 262 adds partial noise to both the first luminance image 180a and the second luminance image 180b and inputs them. However, even if noise is added to the first luminance image 180a and the second luminance image 180b at the same position at the same timing, the noise of one image cannot be complemented by the other image. Therefore, the machine learning unit 262 adds partial noise to the first luminance image 180a and the second luminance image 180b at different positions. In this way, the process of adding partial noise to the first luminance image 180a and the second luminance image 180b in the same combination at different positions may be called a noise addition process.
[0063] FIG. 15 is an explanatory diagram for explaining noise. For example, as shown in FIG. 15, the machine learning unit 262 adds noise consisting of a square region 280 to each of the first luminance image 180a and the second luminance image 180b at different positions using a Cutout function. Also, as shown in FIG. 15, the machine learning unit 262 may add noise consisting of a region 282 with a random aspect ratio to each of the first luminance image 180a and the second luminance image 180b at different positions using a Random erasing function. Also, the machine learning unit 262 may use a Blur function or a Sharpness function that blurs an image using a Gaussian function. Also, the noise added to the first luminance image 180a and the second luminance image 180b may be noise by different functions.
[0064] Here, the positions of the noise added to at least the first luminance image 180a and the second luminance image 180b are made different. Here, the position of the noise refers to the central position or the center of gravity position. Note that the machine learning unit 262 may add noise in a partially overlapping state as long as the central position or the center of gravity position is different.
[0065] FIG. 16 is an explanatory diagram showing another comparative example of a trained machine learning model. In FIG. 16, partial noise is added to the first luminance image 180a and the second luminance image 180b at different positions. Here, the complement function of the second luminance image 180b works on a part of the noise in the first luminance image 180a, and the complement function of the first luminance image 180a works on the noise in the second luminance image 180b. Therefore, even if noise is included in either the first luminance image 180a or the second luminance image 180b, it is complemented by the other image, so that it is possible to improve robustness.
[0066] In addition, in Data Augmentation, noise can be added not only to a part of the first luminance image 180a and the second luminance image 180b but also to the entire first luminance image 180a and the second luminance image 180b. For example, the machine learning unit 262 changes the scale of the entire first luminance image 180a and the second luminance image 180b. In this way, processing the data to be subjected to machine learning to change the scale of the data is sometimes called Scale Data Augmentation. In addition, when the scale of the first luminance image 180a and the second luminance image 180b is enlarged, the machine learning unit 262 may cut out a part of it.
[0067] However, in this embodiment, the relative distance (z) to the three-dimensional object is obtained by deriving the parallax of the three-dimensional object as in the predicted image 182a. Such parallax can be appropriately derived by the presence of pixels or blocks that are likely to show the same three-dimensional object in the horizontal direction of the first luminance image 180a and the second luminance image 180b. Therefore, in order to appropriately derive the parallax, it is preferable to make the vertical positional relationship of the three-dimensional object and the ratio of the three-dimensional object equal between the first luminance image 180a and the second luminance image 180b.
[0068] Therefore, the machine learning unit 262 changes the scales of the first luminance image 180a and the second luminance image 180b under the condition that the scale ratio or the angle of view of the first luminance image 180a and the second luminance image 180b are equal and the layout of the first luminance image 180a and the second luminance image 180b is equal. The process of changing the scales of the first luminance image 180a and the second luminance image 180b in this manner may be referred to as a scale change process.
[0069] 17 is an explanatory diagram showing an example of scale change processing. Here, in pattern 1, the first luminance image 180a and the second luminance image 180b are enlarged and cut out to the same scale and input, and in pattern 2, the first luminance image 180a and the second luminance image 180b are reduced. However, in pattern 1, the enlargement ratio and cut-out position of the first luminance image 180a and the second luminance image 180b are equal. Also, in pattern 2, the reduction ratio and arrangement of the first luminance image 180a and the second luminance image 180b are equal.
[0070] In this way, the machine learning unit 262 equalizes the scale ratio and arrangement of the first luminance image 180a and the second luminance image 180b in the scale change process. By doing so, the vertical positional relationship of the three-dimensional object between the first luminance image 180a and the second luminance image 180b and the ratio of the three-dimensional object become equal. Therefore, it becomes possible to appropriately derive the parallax.
[0071] As described above, in this embodiment, as processing, a scale change process for changing the scale of the first luminance image 180a and the second luminance image 180b, and a noise addition process for adding partial noise to different positions of the first luminance image 180a and the second luminance image 180b in the same combination are performed. The detection accuracy of these two processes differs depending on the order.
[0072] FIG. 18 is an explanatory diagram for explaining the vehicle detection accuracy by processing. FIG. 18 shows the average precision AP (Average Precision) for each vehicle size. Note that the average precision is shown here when the overlap rate Iou (Intersection over Union) is 0.5 to 0.95. Here, it can be said that the higher the average precision, the higher the detection precision. Here, a comprehensive evaluation of all vehicles, an evaluation of small vehicles, an evaluation of large vehicles, and an evaluation of vehicles that fall between the two are performed independently.
[0073] As can be seen by referring to Fig. 18, in all cases of vehicle size, the average matching rate is higher when the noise addition process is performed after the scale change process than when the scale change process is performed after the noise addition process. Therefore, the detection accuracy is higher when the noise addition process is performed after the scale change process. This is because the area to which noise is added in the noise addition process is outside the image range in the scale change process. In this way, it is possible to improve the detection accuracy with a simple method.
[0074] Although the preferred embodiment of the present invention has been described above with reference to the accompanying drawings, it goes without saying that the present invention is not limited to such an embodiment. It is clear that a person skilled in the art can think of various modifications or alterations within the scope of the claims, and it is understood that these also naturally belong to the technical scope of the present invention.
[0075] The series of processes performed by each device (e.g., the machine learning device 210, the vehicle 1) according to the present embodiment described above may be realized using software, hardware, or a combination of software and hardware. The programs constituting the software are stored in advance, for example, in a non-transitory storage medium (non-transitory media) provided inside or outside each device. The programs are then read, for example, from the non-transitory storage medium (e.g., ROM) to a transitory storage medium (e.g., RAM) and executed by a processor such as a CPU.
[0076] A program for implementing each function of each of the above devices can be created and installed in the computer of each of the above devices. The processor executes the program stored in the memory, thereby executing each of the above functions. At this time, the program may be shared and executed by multiple processors, or the program may be executed by one processor. Also, each of the above functions of each of the above devices may be implemented by cloud computing using multiple computers connected to each other by a communication network. The program may be provided to the computer of each device by distribution from an external device through a communication network, and installed therein. [Explanation of symbols]
[0077] 1 Vehicle 110 Imaging device 120 External environment recognition device 180a First luminance image 180b Second luminance image 182a, 182b, 182c Prediction images 200 Machine Learning Systems 210 Machine Learning Device 260 Information Acquisition Department 262 Machine Learning Department
Claims
1. one or more processors; one or more memories coupled to the processor; Equipped with The processor operates in conjunction with a program contained in the memory; Obtaining a combination of a plurality of luminance images captured at different imaging positions and a teacher image corresponding to one of the plurality of luminance images a plurality of times; performing a processing process for processing the plurality of luminance images; generating a machine learning model using the processed luminance images and the teacher image as input; Perform a process including A machine learning device, wherein the processing includes a noise addition process that adds partial noise at different positions to each of the multiple luminance images in the same combination.
2. the processing includes a scale change process for changing scales of the plurality of luminance images; The machine learning device according to claim 1 , wherein the processor performs the noise addition process after the scale change process in the processing.
3. The machine learning device according to claim 1 , wherein the processing includes a scale change process that changes the scales of the plurality of luminance images under a condition that the scale ratios and arrangements of the plurality of luminance images are equal to each other.
4. A processor, operating in conjunction with a program contained in the memory; Obtaining a combination of a plurality of luminance images captured at different imaging positions and a teacher image corresponding to one of the plurality of luminance images a plurality of times; performing a noise addition process for adding partial noise at different positions to each of the plurality of luminance images in the same combination; generating a machine learning model using the processed luminance images and the teacher image as input; A vehicle equipped with the machine learning model obtained by executing a process including:
Citation Information
Patent Citations
Stereo camera
JP2019056606A
Image disparity estimation
JP2021531582A
Learning method and learning device employing augmentation
WO2021100818A1
Outside monitoring device
JP3349060B2
