Estimation device, estimation method, program, vehicle control device, and vehicle

By calculating correction values for logits based on hyperparameters and prior probabilities, the method enhances the estimation accuracy of machine learning models, addressing the issue of class imbalance in training data.

JP7961306B2Active Publication Date: 2026-12-04HONDA MOTOR CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2025014885
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2024-01-31
Filing Date
2025-01-31
Publication Date
2026-12-04
Estimated Expiration
2045-01-31

AI Technical Summary

Technical Problem

Existing methods for correcting logits in machine learning models to address class imbalance in training data do not achieve high accuracy, leading to reduced model estimation accuracy.

Method used

A method that calculates a correction value for logits using hyperparameters and prior probabilities of class occurrence, and applies this correction to improve logit accuracy, thereby enhancing the estimation accuracy of the machine learning model.

Benefits of technology

The proposed method significantly improves the accuracy of the machine learning model by correcting logits with high precision, mitigating the impact of class imbalance in training data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007961306000021
    Figure 0007961306000021
  • Figure 0007961306000022
    Figure 0007961306000022
  • Figure 0007961306000023
    Figure 0007961306000023
Patent Text Reader

Abstract

To improve the accuracy of a generated machine learning model by correcting a logit output by the machine learning model with high accuracy.SOLUTION: An estimation device includes: a correction unit configured to acquire a logit where at least a portion of input data corresponds to a class that represents a certain type by inputting target data to a machine learning model trained to output the logit, and calculate a correction value for correcting the logit using an output of the machine learning model; and an estimation unit configured to correct the logit on the basis of the calculated correction value, and estimate a class to which at least a portion of the target data corresponds on the basis of the corrected logit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an estimation device, an estimation method, a program, a vehicle control device, and a vehicle.

Background Art

[0002] Conventionally, in the training of a machine learning model that classifies the type of object included in an image by receiving the image as input, there is known a technology that prevents a decrease in the estimation accuracy of the model due to an imbalance in the number of training data (samples) between classes. For example, Non-Patent Document 1 describes a technology that corrects the weight of an error function used for training (the weight of the error function corresponding to each class) and logits (output values of the machine learning model) according to the number of samples corresponding to each class.

Prior Art Documents

Non-Patent Document

[0003]

Non-Patent Document 1

Summary of the Invention

Problem to be Solved by the Invention

[0004] The technology described in Non-Patent Document 1 corrects logits using the total number of samples in the training data and the number of samples in each class. However, with such a simple method, the logits are not corrected with high accuracy, and as a result, the accuracy of the generated machine learning model may be reduced.

[0005] The present invention has been made in view of such circumstances, and an object of the present invention is to provide an estimation device, an estimation method, a program, a vehicle control device, and a vehicle that can improve the accuracy of a generated machine learning model by correcting logits output by the machine learning model with high accuracy. [Means for solving the problem]

[0006] The estimation device, estimation method, program, vehicle control device, and vehicle according to this invention employ the following configuration. (1) An estimation device according to one aspect of the present invention includes: a correction unit that takes data as input and obtains a logit by inputting target data into a machine learning model that has been trained to output a logit corresponding to a class representing a certain type for at least a portion of the data, and calculates a correction value for correcting the logit using the output of the machine learning model; and an estimation unit that corrects the logit based on the calculated correction value and estimates the class to which at least a portion of the target data corresponds based on the corrected logit.

[0007] (2): In the embodiment of (1) above, the correction unit calculates the correction value using the preset hyperparameters and the output of the machine learning model.

[0008] (3) In the embodiment of (2) above, the correction unit calculates the correction value by product of the hyperparameter and the prior probability of the occurrence of the class of samples, which is calculated from the marginal distribution defined by the machine learning model.

[0009] (4) In the embodiment of (1) above, the estimation unit corrects the logit by adding the correction value to the logit, and estimates the class to which at least a portion of the target data corresponds to the class that maximizes the probability value based on the corrected logit.

[0010] (5) In the embodiment of (1) above, the data is an image containing a plurality of pixels, and at least a portion of the data is one or more groups of pixels in the image.

[0011] (6) In the embodiment of (1) above, the data is audio, and at least a portion of the data is a section of the audio.

[0012] (7): A vehicle control device according to another aspect of the present invention comprises an estimation device according to the aspect of (1) above, and a vehicle control unit that controls the movement of the vehicle based on the estimation result from the estimation device.

[0013] (8) A vehicle according to another aspect of this invention is equipped with a vehicle control device according to the aspect of (7) above.

[0014] (9) Another embodiment of the present invention is an estimation method in which a computer obtains a logit by inputting the target data into a machine learning model that has been trained to take the data as input and output a logit corresponding to a class that represents a certain type in which at least part of the data is a type; calculates a correction value for correcting the logit using the output of the machine learning model; corrects the logit based on the calculated correction value; and estimates the class to which at least part of the target data belongs based on the corrected logit.

[0015] (10): A program according to another aspect of the present invention involves inputting target data into a machine learning model that has been trained to take data as input and output logits corresponding to classes representing a certain type for at least a portion of the data, thereby obtaining the logits, using the output of the machine learning model to calculate correction values ​​for correcting the logits, correcting the logits based on the calculated correction values, and estimating the classes to which at least a portion of the target data belongs based on the corrected logits. [Effects of the Invention]

[0016] According to embodiments (1) to (10), the accuracy of the generated machine learning model can be improved by correcting the logit output by the machine learning model with high accuracy. [Brief explanation of the drawing]

[0017] [Figure 1] This is a diagram showing the configuration of the estimation device 100 according to the first embodiment. [Figure 2] This figure shows an example of the structure of training data 130A. [Figure 3] This diagram illustrates the overview of machine learning, which generates a machine learning model 130B based on training data 130A. [Figure 4] This flowchart shows an example of the processing flow performed by the estimation device 100 according to the first embodiment. [Figure 5] This figure shows the configuration of the estimation device 200 according to the second embodiment. [Figure 6] This flowchart shows an example of the processing flow performed by the estimation device 200 according to the second embodiment. [Figure 7] This diagram shows the configuration of the vehicle equipped with a vehicle control device 300 that includes an estimation device. [Modes for carrying out the invention]

[0018] [First Embodiment] Hereinafter, embodiments of the estimation device, estimation method, program, vehicle control device, and vehicle of the present invention will be described with reference to the drawings.

[0019] [composition] Figure 1 shows the configuration of the estimation device 100 according to the first embodiment. The estimation device 100 is an information processing device that takes an image containing multiple pixels as input and estimates the type of one or more pixel groups using a machine learning model that has been trained to output a logit corresponding to a class representing the type of object for one or more pixel groups in the image. The estimation device 100 includes, for example, a correction unit 110, an estimation unit 120, and a storage unit 130. The correction unit 110 and the estimation unit 120 are each realized by a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Furthermore, some or all of these components may be realized by hardware (including circuitry) such as LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), GPU (Graphics Processing Unit), and SOC (System On Chip), or by the cooperation of software and hardware. The program may be stored in advance in a storage device such as the HDD or flash memory of the estimation device 100 (a storage device equipped with a non-transient storage medium), or it may be stored in a removable storage medium such as a DVD or CD-ROM, and installed in the HDD or flash memory of the estimation device 100 when the storage medium (non-transient storage medium) is mounted on a drive device. The storage unit 130 stores, for example, training data 130A and a machine learning model 130B. The storage unit 130 is implemented by, for example, RAM, flash memory, an SD card, etc.

[0020] Figure 2 shows an example of the structure of training data 130A. Training data 130A is, for example, a set of pixels from one or more image IMs, to which a class representing the type of object shown by that set of pixels is associated as the correct class. Here, "type of object" refers to the type of object related to the surrounding environment of a vehicle, and includes, for example, at least two of the following: four-wheeled vehicles, two-wheeled vehicles, pedestrians, fallen objects, traffic lights, road signs, guardrails, median strips, and curbs. Alternatively, "type of object" may be limited to moving objects, and at least two of the following could be considered the types of objects: four-wheeled vehicles, two-wheeled vehicles, and pedestrians.

[0021] For example, in Figure 2, the image IM includes a pixel group P1 representing a four-wheeled vehicle and a pixel group P2 representing a two-wheeled vehicle. In this case, the pixel group P1 is associated with a vector in which, for example, only the component representing the four-wheeled vehicle class is set to 1, and the components of other classes are set to 0, thereby obtaining training data 130A (hereinafter sometimes referred to as a sample) in which the four-wheeled vehicle class is the correct answer class. Similarly, the pixel group P2 is associated with a vector in which, for example, only the component representing the two-wheeled vehicle class is set to 1, and the components of other classes are set to 0, thereby obtaining training data 130A in which the two-wheeled vehicle class is the correct answer class. The memory unit 130 stores the correspondence between these pixel groups and the correct answer classes as training data 130A.

[0022] The training data 130A is generated, for example, by the administrator or operator of the estimation device 100 specifying each pixel of the image IM and the correct class in advance on their terminal, and stored in the storage unit 130. Alternatively, the estimation device 100 may download the training data 130A stored on an external server to the storage unit 130 via the network at the time of training execution.

[0023] Machine learning model 130B is a machine learning model that takes an image containing multiple pixels as input and outputs a logit (probability) that one or more sets of pixels in the image belong to a class representing the type of object. Here, the logit is a value that correlates with the probability that a set of pixels in image IM belongs to a class representing the type of object. Machine learning model 130B is, for example, a convolutional neural network (CNN), and outputs a logit that corresponds to each class by extracting the features of the input pixels.

[0024] [Overview of Machine Learning] Figure 3 is a diagram illustrating the overview of machine learning, which generates a machine learning model 130B based on training data 130A. In Figure 3, C represents the total number of classes to be classified, and Z0 to Z C-1 This represents the logit output by the machine learning model 130B. As shown in Figure 3, by substituting each output logit into the softmax function, the probability values ​​P0 to P0 are normalized to values ​​between 0 and 1. C-1 The values ​​are converted to a specific format, and the error between the converted probability value and the correct vector is calculated using an error function L such as the cross-entropy error. A machine learning model 130B is then trained using a method such as backpropagation to minimize the calculated error.

[0025] In this embodiment, a softmax function is applied in Figure 3 because, as an example, multi-class classification of pixels contained in an image is described. However, the present invention is not limited to such a configuration, and when performing binary classification of pixels contained in an image, a sigmoid function may be applied instead of the softmax function in Figure 3. Furthermore, in that case, the cross-entropy error L may be calculated as a binary cross-entropy error L instead of the softmax cross-entropy error L.

[0026] The machine learning model 130B trained as described above does not account for the imbalance in sample counts across classes in the training data 130A prepared for each class. As a result, during the training process, the machine learning model 130B learns such that classes with a larger number of samples tend to output higher logits, i.e., higher probability values, which may lead to a decrease in the estimation accuracy of the model.

[0027] [Correction by the correction unit 110] Against this background, the correction unit 110 adds correction terms Δ0 to Δ C-1 to the logits Z0 to Z C-1 output by the trained machine learning model 130B, respectively, to calculate corrected logits Z'0 to Z' C-1 . In the estimation stage, the estimation unit 120 substitutes the corrected logits Z'0 to Z' C-1 in place of the logits Z0 to Z C-1 into the softmax function to calculate corrected probability values P'0 to P' C-1 . The estimation unit 120 estimates the class corresponding to the highest probability value among the calculated probability values P'0 to P' C-1 as the object included in the input image.

[0028] More specifically, the correction unit 110 calculates the corrected logit Z' i (where i is any integer from 0 to C-1) according to the following equation (1).

[0029] Z' i =Z i -αlogP(y i ) ···(1)

[0030] In equation (1), α represents a preset hyperparameter, and P(y i ) represents the prior probability that a sample of class i occurs (i.e., class i is predicted) among all samples in the training data 130A. The hyperparameter α is used for the corrected logit Z' iDuring the calculation, the system is tuned using validation data different from the training data 130A. If P(x, y) is the joint probability, then P(y) is calculated according to the following equation (2).

[0031]

number

[0032] In equation (2), P(y|x) represents the conditional probability that class y is predicted given the occurrence of a sample x of a certain class from the training data 130A, and is the output of the trained machine learning model 130B (more specifically, the probability values ​​P0~P output via the trained machine learning model 130B). C-1 This can be calculated using the marginal distribution defined by . For example, P(y|x) can be obtained as the predicted probability of class y obtained by inputting sample x into the trained machine learning model 130B. As mentioned above, the machine learning model 130B is trained on training data 130A which has an imbalance between classes in terms of the number of samples, so the class y with a large number of samples i Therefore, according to equation (2), a larger probability value P(y i It is expected that the output will be ). Therefore, class y, which has a large number of samples i Logit Z i Correction term -αlogP(y i The value is set to a large negative value (i.e., subtracted), which can resolve the imbalance between classes regarding the number of samples.

[0033] Next, with reference to Figure 4, the processing flow performed by the estimation device 100 according to the first embodiment will be described. Figure 4 is a flowchart showing an example of the processing flow performed by the estimation device 100 according to the first embodiment.

[0034] First, the correction unit 110 inputs the image to be estimated into the trained machine learning model 130B, thereby generating logits Z0 to Z C-1The logit Z0~Z is obtained (step S100). Next, the correction unit 110 obtains the logit Z0~Z C-1 The correction term Δ reflects the output of machine learning model 130B. i =-αlogP(y i Add ) and correct logit Z'0~Z' C-1 The calculation is performed (step S102). Next, the estimation unit 120 calculates the corrected logit Z'0~Z'. C-1 Substitute this into the softmax function to obtain the corrected probability values ​​P'0~P'. C-1 The data is obtained and output (step S104). This completes the processing of this flowchart.

[0035] As described above, according to the first embodiment, unlike the technique described in Non-Patent Document 1, which simply calculates the correction term by adding, subtracting, multiplying, and dividing the total number of samples in the training data and the number of samples in each class, the correction term Δ in equation (1) i =-αlogP(y i Prior probability P(y i The logit is calculated using the output of the trained machine learning model 130B. In other words, according to the first embodiment, the logit can be corrected with higher accuracy, and the accuracy of the generated machine learning model can be improved.

[0036] [Second Embodiment] In the first embodiment, a correction term calculated using the output of the machine learning model 130B is added to the logit output by the trained machine learning model 130B to prevent a decrease in the estimation accuracy of the model caused by an imbalance between classes regarding the number of samples. In the second embodiment, during the training process of the machine learning model 130B, the machine learning model 130B may be retrained using an error function L corrected based on the output of the machine learning model 130B that has been trained once, thereby preventing a decrease in the estimation accuracy of the model.

[0037] Figure 5 shows the configuration of the estimation device 200 according to the second embodiment. Similar to the first embodiment, the estimation device 200 is an information processing device that takes an image containing multiple pixels as input and estimates the type of one or more pixel groups in the image using a machine learning model that has been trained to output a logit corresponding to a class representing the type of object for one or more pixel groups in the image. The estimation device 200 includes, for example, a learning unit 202, a correction unit 210, an estimation unit 220, and a storage unit 230. The learning unit 202, the correction unit 210, and the estimation unit 220 are each realized by a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Furthermore, some or all of these components may be implemented by hardware (including circuitry) such as LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), GPU (Graphics Processing Unit), and SOC (System On Chip), or by the collaboration of software and hardware. The program may be stored in advance in a storage device (a storage device with a non-transient storage medium) such as the HDD or flash memory of the estimation device 100, or it may be stored in a removable storage medium such as a DVD or CD-ROM, and installed in the HDD or flash memory of the estimation device 200 when the storage medium (non-transient storage medium) is mounted on a drive device. The storage unit 230 stores, for example, training data 230A, a first machine learning model 230B, and a second machine learning model 230C. The storage unit 230 is implemented by, for example, RAM, flash memory, an SD card, etc. The configurations of the correction unit 210 and estimation unit 220 according to the second embodiment are the same as those of the correction unit 110 and estimation unit 120 according to the first embodiment, so their description is omitted. The learning unit 202 is an example of a "learning device" in the claims.An image containing multiple pixels is an example of “data” in the claims, and one or more groups of pixels in an image is an example of “at least a portion of data” in the claims.

[0038] First, the learning unit 202 generates a first machine learning model 230B by training a machine learning model, such as a convolutional neural network, based on the training data 130A, similar to the machine learning described in Figure 3. The generated first machine learning model 230B is identical to the trained machine learning model 130B in the first embodiment. Next, the learning unit 202, similar to the first embodiment, outputs the trained first machine learning model 230B (more specifically, probability values ​​P0 to P0 output via the trained first machine learning model 230B). C-1 Using the marginal distribution defined by , the prior probability P(y) of a sample belonging to class i occurring in the entire sample of training data 130A is calculated. i Calculate ).

[0039] Next, the correction unit 210 calculates the prior probability P(y i The error function L is redefined and calculated by correcting the error function representing the general cross-entropy error according to equation (3) below. In equation (3), k represents all integers from 0 to C-1.

[0040]

number

[0041] Alternatively, the correction unit 210 may redefine and calculate the error function L according to the following equation (4), which adds an entropy regularization term to equation (3) to increase the entropy of the first machine learning model 230B. By adding an entropy regularization term to the error function L, the retraining of the first machine learning model 230B can be performed while maintaining high entropy, preventing the generation of a model that is biased towards estimating a particular class (i.e., a class with a large amount of training data 130A).

[0042]

number

[0043] In equation (4), λ is a pre-defined hyperparameter, and b i The initial value is logP(y i This represents the bias term, which has the following properties, and all of them are adjusted during the retraining process. The hyperparameter λ determines the degree of influence of the entropy regularization term ε(z). Bias term b i The addition of the entropy regularization term prevents the mismatch between the empirical distribution defined by the training data 130A and the prior distribution estimated by the model from being amplified by the retraining of the first machine learning model 230B. The entropy regularization term ε(z) is calculated, for example, according to equation (5) below.

[0044]

number

[0045] When the correction unit 210 corrects the error function L, the learning unit 202 generates the second machine learning model 130C by retraining the first machine learning model 230B using the redefined error function L. This retraining may be for the entire first machine learning model 230B or for a part of it. Here, training for a part means fine-tuning the classification layer of the first machine learning model 230B, and the classification layer refers to the last few layers (for example, two or three layers) of the first machine learning model 230B, counting from the output side.

[0046] The estimation unit 220, in the estimation stage, inputs the image to be estimated into the second machine learning model 130C, thereby generating the logit Z''0~Z'' C-1 Obtain the obtained logit Z''0~Z'' C-1Substitute this into the softmax function to obtain the probability value P''0~P'' C-1 The logit Z'' is acquired and output. At this time, the correction unit 210 acquires the logit Z''. i Using the second machine learning model 130C, the correction term Δ described in the first embodiment is calculated. i Calculate the logit Z'' i Correction term Δ i By adding it, logit Z'' i This may be corrected. Thus, according to the present invention, the estimation accuracy of the model can be further improved by combining the correction by the correction term described in the first embodiment with the retraining described in the second embodiment.

[0047] Next, with reference to Figure 6, the processing flow performed by the estimation device 200 according to the second embodiment will be described. Figure 6 is a flowchart showing an example of the processing flow performed by the estimation device 200 according to the second embodiment.

[0048] First, the learning unit 202 learns the first machine learning model 230B based on the training data 230A (step S200). Next, the correction unit 210 corrects the error function using a correction term that reflects the output of the first machine learning model 230B (step S202). Next, the learning unit 202 retrains the first machine learning model 230B using the corrected error function to generate the second machine learning model 130C (step S204).

[0049] Next, the estimation unit 220 inputs the image to be estimated into the second machine learning model 230C, thereby generating the logit Z''0~Z'' C-1 The logit Z''0~Z'' is obtained (step S206). Next, the correction unit 110 obtains the logit Z''0~Z'' C-1 The correction term Δ reflects the output of the first machine learning model 230B. i Add the corrected logit Z'''0~Z''' C-1 The calculation is performed (step S208). Next, the estimation unit 120 calculates the corrected logit Z'''0~Z''' C-1Substitute this into the softmax function to obtain the corrected probability values ​​P''0~P'' C-1 The data is obtained and output (step S210). This completes the processing of this flowchart.

[0050] According to the second embodiment described above, the error function L representing the cross-entropy error shown by equation (3) is calculated using the output of the trained first machine learning model 230B. In other words, according to the second embodiment, the error function L used for training the machine learning model is corrected with high accuracy, and the accuracy of the generated machine learning model can be improved.

[0051] In the above embodiments, we have described a case in which the machine learning model is configured and trained to take an image as input and output a logit of the type of object represented by the pixel group of the image. However, the present invention is not limited to such a configuration and can also be applied to cases in which the machine learning model is configured and trained to take other types of data (e.g., audio) as input and output a logit of the type of data. For example, the machine learning model may be configured and trained to take audio as input and output a logit of the type represented by the section of audio. Even if the data being handled is of a type other than an image, the logit correction process by the correction unit 110 (210) described above can be applied similarly, as long as the machine learning model is configured to output a logit. Audio is another example of “data” in the claims, and a section of audio is another example of “at least a portion of the data” in the claims.

[0052] [vehicle] The estimation device 100 (200) described above may be mounted on a vehicle control device and used for controlling the vehicle M. Figure 7 shows the configuration of the vehicle M equipped with a vehicle control device 300 that includes the estimation device.

[0053] The vehicle M includes, for example, a camera 10, an object recognition device 12, a vehicle sensor 14, a driver control unit 20, a steering wheel 22, a driving force output device 30, a brake device 32, a steering device 34, and a vehicle control device 300.

[0054] Camera 10 is a digital camera that uses a solid-state image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor). Camera 10 can be mounted at any location on the vehicle M. When imaging the area in front, camera 10 can be mounted on the top of the front windshield or behind the rearview mirror, etc. Camera 10 periodically and repeatedly images the area around the vehicle M. Camera 10 may also be a stereo camera. Camera 10 transmits the captured images to the object recognition device 12.

[0055] The object recognition device 12 processes the image received from the camera 10 to detect pedestrians, other vehicles, road structures (such as road markings and walls), etc., in the image, and transmits the detection results to the vehicle control device 300. In this case, the detection results refer to the identification of the recognized objects as a group of pixels, as explained with reference to Figure 2.

[0056] The vehicle sensor 14 includes a vehicle speed sensor for detecting the speed of the vehicle M, an acceleration sensor for detecting acceleration, a yaw rate sensor for detecting angular velocity around the vertical axis, and an orientation sensor for detecting the orientation of the vehicle M.

[0057] The driver controls 20 include, for example, a steering wheel 22, as well as an accelerator pedal, brake pedal, shift lever, and other controls. Sensors are attached to the driver controls 20 to detect the amount of operation or whether or not an operation is performed, and the detection results are output to the vehicle control device 300, or to some or all of the driving force output device 30, brake device 32, and steering device 34. The controls do not necessarily have to be ring-shaped, and may take the form of an irregularly shaped steering wheel, joystick, buttons, etc.

[0058] The driving force output device 30 outputs driving force (torque) to the drive wheels for the vehicle M to move. The driving force output device 30 includes, for example, a combination of an internal combustion engine, an electric motor, and a transmission, and an ECU (Electronic Control Unit) that controls them. The ECU controls the above configuration according to information input from the vehicle control device 300 or information input from the driver control device 20.

[0059] The brake system 32 includes, for example, a brake caliper, a cylinder that transmits hydraulic pressure to the brake caliper, an electric motor that generates hydraulic pressure in the cylinder, and a brake ECU. The brake ECU controls the electric motor according to information input from the vehicle control device 300 or from the driver control unit 20, so that brake torque corresponding to the braking operation is output to each wheel. The brake system 32 may also include a backup mechanism that transmits hydraulic pressure generated by the operation of the brake pedal included in the driver control unit 20 to the cylinder via a master cylinder. The brake system 32 is not limited to the configuration described above, and may also be an electronically controlled hydraulic brake system that controls an actuator according to information input from the vehicle control device 300 to transmit hydraulic pressure from the master cylinder to the cylinder.

[0060] The steering device 34 includes, for example, a steering ECU and an electric motor. The electric motor, for example, applies force to a rack and pinion mechanism to change the direction of the steering wheels. The steering ECU drives the electric motor to change the direction of the steering wheels according to information input from the vehicle control device 300 or from the driver control device 20.

[0061] The vehicle control device 300 includes, for example, an estimation device 100 (200) and a vehicle control unit 310. The vehicle control unit 310 is implemented, for example, by a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Some or all of these components may be implemented by hardware (including circuitry) such as an LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or GPU (Graphics Processing Unit), or by the cooperation of software and hardware. The program may be stored in advance in a storage device (a storage device with a non-transient storage medium) such as the HDD or flash memory of the vehicle control device 300, or it may be stored in a removable storage medium such as a DVD or CD-ROM and installed in the HDD or flash memory of the vehicle control device 300 when the storage medium (non-transient storage medium) is mounted on a drive device. The storage unit 320 is implemented by, for example, ROM (Read Only Memory), flash memory, SD card, RAM (Random Access Memory), registers, etc. The storage unit 320 stores the image containing the object recognition result received from the object recognition device 12 as image data 320A.

[0062] The estimation device 100(200) uses the estimation unit 120(220) to estimate the type of object corresponding to the pixel group contained in the image data 320A. More specifically, the estimation device 100(200) estimates the type of object corresponding to the pixel group by selecting the type that takes the maximum value among the probability values ​​output for the pixel group contained in the image data 320A.

[0063] The vehicle control unit 310 controls the driving of its own vehicle M by controlling at least one of the driving force output device 30, the brake device 32, and the steering device 34 based on the estimation result from the estimation device 100 (200). More specifically, for example, if the type of object estimated by the estimation device 100 (200) corresponds to one of the following types: four-wheeled vehicle, two-wheeled vehicle, pedestrian, or fallen object, the vehicle control unit 310 controls the driving of its own vehicle M to avoid the object. Also, for example, if the type of object estimated by the estimation device 100 (200) corresponds to a traffic light or road sign, the vehicle control unit 310 controls the driving of its own vehicle M according to the instruction information indicated by the traffic light or road sign (for example, if the instruction information indicated by the traffic light is recognized as stop (red), the vehicle control unit 310 slows down or stops its own vehicle M). Furthermore, for example, if the type of object estimated by the estimation device 100 (200) corresponds to a guardrail, median strip, or curb, the vehicle control unit 310 controls the vehicle M to travel along the object.

[0064] In another embodiment, the vehicle control unit 310 may display the type of object estimated by the estimation device 100 (200) on a display mounted on the vehicle M without actually controlling the vehicle M itself. In other words, the vehicle control unit 310 may function as a driver assistance unit.

[0065] [Differentiation] Thus, according to the above embodiment, even if there is an imbalance between classes in terms of the number of samples in the training data, the deterioration of the accuracy of the machine learning model caused by the imbalance between classes can be mitigated by correcting the logit or error function using the output of the trained machine learning model. Here, generally, the training process of a machine learning model is performed in the order of learning the network weights using the training data, tuning the hyperparameters using the validation data, and validating the model accuracy using the test data, but the test data is generally more balanced between classes in terms of the number of samples compared to the training data.

[0066] In this regard, research by the inventors of the present invention has shown that a conditional distribution P(y|x) modeled on training data with class imbalance in terms of sample size still exhibits a bias towards higher logit output for classes with larger sample sizes when validated on test data where class equilibrium is observed in terms of sample size.

[0067] Given these circumstances, in this modified example, the marginal distribution P of the test data is t Adjusted distribution P optimized for (y) a We find (y|x). More specifically, the adjustment distribution P a (y|x) can be said to be optimized for the marginal distribution of the test data if it satisfies the following equation (6).

[0068]

number

[0069] A conditional distribution P(y|x) modeled based on training data with class imbalance in sample size is given by P. m When expressed as (y|x), the following Theorem 1, shown by equation (7), holds. Theorem 1 below is P m Using (y|x), the adjustment distribution P is given by equation (7). a This means that the residual bias mentioned above can be mitigated by calculating (y|x).

[0070]

number

[0071] Here, P m (y|x) is expressed by the following equation (8).

number

[0072] Theorem 1, shown by equation (7), is proven by the derivation process shown by equation (9) below.

[0073]

number

[0074] Note that P in equations 1 and 2 above a Regarding the expansion of (y|x), equation (12) can be derived from Bayes' theorem shown by equations (10) and (11) below, and generally, since the training data and test data differ only in the number of samples per class, P(x|y)=P t This utilizes the fact that (x|y) is a possible value.

[0075]

number

[0076]

number

[0077]

number

[0078] One way to reduce model bias is to correct the probability values ​​during training to obtain an unbiased estimator. By rearranging equation (12), we obtain the following equation (13).

[0079]

number

[0080] Using equation (13), we perform two-stage decoupled training. More specifically, the first stage is learning using simple softmax cross-entropy error, and the second stage is learning using equation (3). Within this framework, P t (y|x) is modeled by a DNN (machine learning model), and the predicted probability is P during training. t (y|x) is adjusted to match P(y|x). During inference, the output of the DNN is used as is for P t It is used as a model for (y|x). Since the model probabilities are adjusted during training, logit adjustments are removed during inference.

[0081] Ideally, the output of a DNN trained as described above should be free of bias, but even in this case, it will contain bias due to the distribution of the training data. Below, the distribution with the logit adjusted during training is P m Let (y|x) be the representation, and the distribution with logit adjustment removed during inference is P. m- If we express it as (y|x), then P m- Adjustment distribution P for adjusting (y|x) a (y|x) is given by the following equation (14) (Theorem 2).

[0082]

number

[0083] In equation (14), P m (y|x) and P m- (y|x) is expressed by the following equations (15) and (16).

[0084]

number

[0085]

number

[0086] In proving Theorem 2, first, using equations (8) and (15), P m Expand (y|x) using equation (17).

[0087]

number

[0088] In equation (7) of Theorem 1, P m (y|x) and P m Substituting (y), we obtain equation (18) below.

[0089]

number

[0090] The result of equation (18) is P a By substituting this into (y|x), we obtain equation (19). This completes the proof of Theorem 2.

[0091]

number

[0092] Note that theorems 1 and 2 above are applicable to P m (y) and P m- It is assumed that (y) is calculated, but P m (y) is derived from the training data, P m- (y) is P t From the sample of (x), it can be estimated by the following equations (20) and (21).

[0093]

number

[0094]

number

[0095] As explained above, by using Theorem 1, the conditional distribution P(y|x) modeled on training data with class imbalance in sample size can be expressed as the marginal distribution P(y|x) of test data without class imbalance in sample size. t It can be adjusted to match (y). Furthermore, by using Theorem 2, the conditional distribution P with logit adjustment removed during inference can be obtained. m- (y|x) is the marginal distribution P t It can be adjusted to match (y).

[0096] The embodiments described above can be expressed as follows. A storage medium (memory) that stores computer-readable instructions, A processor connected to the storage medium, The processor executes the computer-readable instructions to: The logit is obtained by inputting the target data into a machine learning model that has been trained to take data as input and output a logit that corresponds to a class representing a certain type, and a correction value for correcting the logit is calculated using the output of the machine learning model. The logit is corrected based on the calculated correction value, and the class to which at least a portion of the target data belongs is estimated based on the corrected logit. An estimation device configured in such a way.

[0097] Although embodiments for carrying out the present invention have been described above using examples, the present invention is not limited in any way to these embodiments, and various modifications and substitutions can be made without departing from the spirit of the present invention. [Explanation of symbols]

[0098] 100, 200 estimation device 110, 210 Correction section 120, 220 Estimation part 130, 230 storage section 130A, 230A training data 130B Machine Learning Model 230B First Machine Learning Model 230C Second Machine Learning Model

Claims

1. A correction unit calculates a correction value for correcting the logit by inputting a sample included in the training data used to train the machine learning model, to a machine learning model that has been trained to take data as input and output a logit corresponding to a class representing a certain type, where at least a portion of the data is a type. The machine learning model includes an estimation unit that obtains the logit by inputting the data to be estimated, corrects the logit based on the calculated correction value, and estimates the class to which at least a portion of the data to be estimated belongs based on the corrected logit, The correction unit calculates the correction value by multiplying a preset hyperparameter by the prior probability of the occurrence of a sample of the class, which is calculated from the marginal distribution defined by the output of the machine learning model. Estimation device.

2. By inputting each of the multiple samples included in the training data used to train the machine learning model into a machine learning model that has been trained to take data as input and output logits corresponding to each of the multiple classes that represent at least a portion of the data as a certain type, the logits corresponding to each of the multiple classes are obtained. For each sample, the obtained logit is normalized across the multiple classes to obtain the conditional probability corresponding to each of the multiple classes. By averaging the obtained conditional probabilities across the multiple samples, the prior probability of a sample of each of the multiple classes occurring is calculated. A correction unit calculates a correction value for correcting the logit for each of the multiple classes based on the calculated prior probabilities, The machine learning model includes an estimation unit that inputs data to be estimated to obtain the logit corresponding to each of the multiple classes, corrects the logit based on the calculated correction value, and estimates the class to which at least a portion of the data to be estimated belongs based on the corrected logit. Estimation device.

3. The estimation unit corrects the logit by adding the correction value to the logit, and estimates the class that maximizes the probability value based on the corrected logit as the class to which at least a portion of the data to be estimated belongs. The estimation device according to claim 1 or 2.

4. The aforementioned data is an image containing multiple pixels, and at least a portion of the aforementioned data is one or more groups of pixels from the aforementioned image. The estimation device according to claim 1 or 2.

5. The aforementioned data is audio, and at least a portion of the aforementioned data is a section of the audio. The estimation device according to claim 1 or 2.

6. The estimation device according to claim 1 or 2, The system includes a vehicle control unit that controls the vehicle's movement based on the estimation results from the estimation device, Vehicle control device.

7. A vehicle control device as described in claim 6, vehicle.

8. Computers A correction value for correcting the logit is calculated by using the output obtained by inputting samples from the training data used to train the machine learning model, which is trained to take data as input and output a logit where at least a portion of the data corresponds to a class representing a certain type, and then multiplying a pre-set hyperparameter by the prior probability of the occurrence of a sample of the said class, calculated from the marginal distribution defined by the output of the machine learning model. The logit is obtained by inputting the data to be estimated into the machine learning model, the logit is corrected based on the calculated correction value, and the class to which at least a portion of the data to be estimated belongs is estimated based on the corrected logit. Estimation method.

9. On the computer, A machine learning model, trained to take data as input and output a logit where at least a portion of the data corresponds to a class representing a certain type, is then used to input samples from the training data used to train the machine learning model. The output obtained from this model is used to calculate a correction value for correcting the logit by multiplying a pre-set hyperparameter by the prior probability of a sample of the class occurring, calculated from the marginal distribution defined by the output of the machine learning model. The logit is obtained by inputting the data to be estimated into the machine learning model, the logit is corrected based on the calculated correction value, and the class to which at least a portion of the data to be estimated belongs is estimated based on the corrected logit. program.

Citation Information

Patent Citations

  • Image processing and image classification method and device, equipment and storage medium

    CN114693993A

  • Identification device, identification method, and program

    JP2020101958A

  • Vehicle control apparatus, vehicle control method, and program

    JP2021149464A

  • Method and apparatus for classifying data

    JP2022104830A

  • Accounting for long-tail training data through logit adjustment

    US20230017505A1