Method for training a machine learning model

The method filters training data to balance the representation of scenarios in machine learning models, addressing the poor generalization of models trained on imbalanced data sets by emphasizing underrepresented scenarios, thus enhancing the performance of robotic devices in diverse situations.

WO2024213375A1PCT designated stage expired Publication Date: 2024-10-17ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/057651
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-11
Filing Date
2024-03-21
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Machine learning models trained on imbalanced data sets tend to generalize poorly to underrepresented scenarios, leading to poor performance in areas with limited training data, such as rare control actions in robotic devices.

Method used

A method that filters training data by dividing the result space into areas and selecting data points based on an acceptance rate, ensuring that underrepresented scenarios are given more weight during training, thereby reducing overfitting and improving generalization.

Benefits of technology

This approach enhances the generalization ability of machine learning models by balancing the training data distribution, reducing training time, and improving the realism of control strategies in robotic devices by focusing on underrepresented scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024057651_17102024_PF_FP_ABST
    Figure EP2024057651_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Various embodiments provide a method for training a machine learning model (108), comprising, for training data containing a multiplicity of training data elements each indicating a pair comprising a training input and a target processing result for the training input from a result space, dividing the result space into regions (403, 404, 405), determining an acceptance rate depending on the number of regions (403, 404, 405) for each of which the training data (402) have at least one training data element indicating a target processing result that is in the particular region (403, 404, 405); and, for each training iteration, training data elements (406) are selected from the training data (402) depending on the acceptance rate, and the machine learning model (108) is trained using the training data elements selected for the training iteration.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description

[0002] title

[0003] Method for training a machine learning model

[0004] The present disclosure relates to methods for training a machine learning model.

[0005] Machine learning models are trained using training data. The machine learning model adapts to the training data it "sees" during training, i.e., to the training data elements that are fed to it during training and based on which it is evaluated and adapted. If the machine learning model sees little training data for a certain range of scenarios during training (or rarely in relation to other training data), it will be relatively poorly trained for this range of (e.g., control) scenarios compared to other areas and may produce poor results for these areas, i.e., generalise poorly with regard to these areas. Approaches are therefore desirable that enable a machine learning model to be trained so that it has a high level of generalisation capability and thus produces good results across a broad spectrum of scenarios, e.g., traffic situations.

[0006] According to various embodiments, a method for training a machine learning model, in particular for implementing a control strategy for a robot device (ie such that the machine learning model can implement a control strategy for a robot device such asrepresents an autonomous vehicle), comprising: dividing, for training data containing a plurality of training data elements, each indicating a pair of training input, in particular training sensor data describing a state of a robot device and / or an environment of the robot device, and target processing result for the training input from a result space, in particular a robot device control action space, the result space into areas, determining an acceptance rate depending on the number of areas for which it applies in each case that the training data has at least one training data element indicating a target processing result that lies in the respective area; and, for each training iteration,

[0007] • Selecting training data items from the training data by repeatedly o sampling a training data item from the training data; o determining the ratio of the number of training data items selected for the training iteration that indicate target processing results that lie within the range in which the target processing result indicated by the sampled training data item lies to the number of training data items selected for the training iteration, and o selecting the sampled training data item for the training iteration if the determined ratio is smaller than the acceptance rate; and

[0008] • Train the machine learning model using the training data items selected for the training iteration.

[0009] The method described above reduces the risk of overfitting when training the machine learning model to target processing results that are overrepresented in the training data (e.g., areas of scenarios, e.g., types of control actions) (compared to the use of training data without filtering training data elements, as provided for in the described method, by possibly not accepting sampled training data elements). This increases the generalization ability of the machine learning model. Training data elements that are unimportant in the sense that they do not contain any new information (regarding the target processing results) are filtered out, with the filtering depending on the target processing results (e.g., actions) and not on the training input. Thus, the meaning of the input (e.g., a state) is determined by its target processing result (e.g., action), not by the input itself (since, for example,more than one possible action per state). This means, for example, that importance is given to the reaction to a state, not to the state itself. The procedure described above improves the training result and can also reduce training time, since filtering out unimportant training data elements reduces the total number of training data elements, and training for an epoch (with multiple training iterations) over the (thus filtered) training data can thus be shortened. Thus, efficient data utilization can reduce training time by not training on many "similar" training data elements (where "similar" training data elements are, for example, those that contain the same (or very similar) target processing result, e.g., action).

[0010] For example, training involves behavior cloning, e.g., for learning a driving model or a driving strategy. In this case, the described filtering of training data elements through online filtering (e.g., during training, i.e., online, as opposed to filtering during preprocessing, i.e., offline) of the training data in the action space can improve the realism of the driver model or driving strategy by improving the selection of training data elements. In such an application, filtering out overrepresented or unimportant training data elements means that recorded driving behavior that is underrepresented in the training data is given greater consideration during training (compared to sampling from the training data without filtering).

[0011] Behavioral cloning is an example of supervised learning. The method can also be applied to other supervised learning methods. The target processing results can be actions, but the method is not limited to this; the target processing results can also be, for example, labels for supervised learning, e.g., classes for training a machine learning model (e.g., a neural network) for image classification.

[0012] Various examples of implementation are given below.

[0013] Embodiment 1 is a method for training a machine learning model as described above. Embodiment 2 is a method according to Embodiment 1, wherein the acceptance rate is determined such that it is inversely proportional to the number of regions for which the training data has at least one training data item indicating a target processing result that lies within the respective region.

[0014] This ensures that the training data items are evenly distributed across the areas for which the training data contains training data items.

[0015] Embodiment 3 is a method according to embodiment 1 or 2, wherein the result space has multiple dimensions and is divided into the ranges by dividing the value range of each dimension into intervals and defining each range of the result space as a combination of intervals with one interval per dimension.

[0016] The ranges (multidimensional bins) are thus obtained as combinations of (one-dimensional) bins of the individual dimensions. This ensures that the training data elements under consideration (and, for example, the combinations under consideration) are distributed across combinations of cases occurring per dimension.

[0017] Embodiment 4 is a method according to any one of embodiments 1 to 3, wherein for each training data item, the training input contains state information and the target processing result indicates a control action (of an agent).

[0018] Particularly in the application case of learning a control strategy, the method described above ensures that relevant situations that occur relatively rarely in reality (and thus possibly in the training data) (such as accident avoidance maneuvers) are taken into account so frequently during training that the learned control strategy can handle such situations correctly. Embodiment 5 is a method according to one of embodiments 1 to 4, comprising training the machine learning model using the training data elements selected for the training iteration by means of reinforcement learning or supervised learning.

[0019] For example, a loss (i.e., loss or deviation) is calculated for each training iteration, and the machine learning model (e.g., a neural network) is adjusted to reduce the loss. Filtering training data elements as described above has the aforementioned advantages, especially for these training methods.

[0020] Embodiment 6 is a method for controlling a technical system, comprising training a machine learning model for controlling the technical system according to one of embodiments 1 to 5 and controlling the technical system using the trained machine learning model.

[0021] Embodiment 7 is a data processing device configured to carry out the method according to one of the embodiments 1 to 6.

[0022] Embodiment 8 is a computer program including instructions that, when executed by a processor, cause the processor to perform a method according to any one of embodiments 1 to 6.

[0023] Embodiment 9 is a computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform a method according to any one of embodiments 1 to 6.

[0024] In the drawings, like reference characters generally refer to the same parts throughout the several views. The drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the invention. In the following description, various aspects are described with reference to the following drawings. Figure 1 shows a vehicle.

[0025] Figure 2 shows a visualization of the distribution of scenarios of original training data.

[0026] Figure 3 shows a visualization of the distribution of scenarios in training data selected for training according to one embodiment.

[0027] Figure 4 illustrates a training method according to an embodiment.

[0028] Figure 5 shows a flowchart illustrating a method for training a machine learning model according to one embodiment.

[0029] The following detailed description refers to the accompanying drawings, which, by way of illustration, show specific details and aspects of this disclosure in which the invention may be practiced. Other aspects may be utilized, and structural, logical, and electrical changes may be made without departing from the scope of the invention. The various aspects of this disclosure are not necessarily mutually exclusive, as some aspects of this disclosure may be combined with one or more other aspects of this disclosure to form new aspects.

[0030] Various examples are described in more detail below.

[0031] Figure 1 shows a vehicle 101 .

[0032] In the example of Figure 1, a vehicle 101, for example a car or truck, is provided with a vehicle control device (e.g. an Electronic Control Unit (ECU)) 102.

[0033] The vehicle control device 102 has data processing components, e.g., a processor (e.g., a CPU (central processing unit)) 103 and a memory 104 for storing control software 107 according to which the vehicle control device 102 operates, and data processed by the processor 103. The processor 103 executes the control software 107.

[0034] For example, the stored control software (computer program) includes instructions which, when executed by the processor, cause the processor 103 to perform driver assistance functions (or collect driving data) or even control the vehicle autonomously.

[0035] The control software 107 is transferred, for example, from a computer system 105, e.g., via a network 106 (or also with the aid of a storage medium such as a memory card), to the vehicle 101. This can also occur during operation (or at least when the vehicle 101 is with the user), since the control software 107 is updated to new versions over time, for example.

[0036] The control software 107 can be trained, for example, using machine learning (ML). This means that the control software 107 implements an ML model 108 (or "machine learning model") that is trained based on training data 109, in this example from the computer system 105. The computer system 105 thus implements an ML training algorithm for training the ML model 108.

[0037] In the application example shown in Figure 1, the goal is the (data-based) learning of a control strategy for controlling an automated vehicle (use case: ego control strategy) or agents for a simulation (use case: driving model, e.g., for simulating road users for testing or evaluating another control strategy). The training data in this case consists, for example, of recorded sequences from the real world. Each training data element contains (at least) a pair of a training input, in this case an observation, and a target processing result (for the training input).

[0038] Each observation contains information about the state of the agent (in this example, the vehicle) and its environment at a particular time t. An observation can contain, for example, a vector (with velocities, etc.) or one or more rasterized images. The target processing result (also called a label) for an observation in this application example contains the corresponding driving action at time t, which can be represented as low-level action(s) (e.g., steering angle and acceleration) or waypoints (xy-delta with respect to the agent's global position and attitude).

[0039] In the application example of Figure 1, for example, the machine learning model is trained using such training data with the aid of behavioral cloning in such a way that it implements a control strategy which imitates realistic driving behavior as represented by the training data, by minimizing (or at least reducing) the difference between the driving styles predicted by the machine learning model 108 and the respective driving styles as specified by the respective target processing results for each of several batches, each containing a plurality of training data elements, by adapting the machine learning model 108 (e.g. the weights of a neural network).

[0040] This difference is captured by a training loss, which calculates the mean difference across all training data elements of the respective batch, and the machine learning model is optimized towards the decreasing loss.

[0041] Driving actions that are more frequently represented in the training data will therefore have a greater impact on the loss than underrepresented driving actions. This complicates training because real-world datasets contain many similar scenarios. For example, most vehicles on the road travel in the same lane and rarely perform lane changes or emergency maneuvers such as emergency braking or evasive maneuvers. A control strategy trained based on such training data cannot be expected to perform well in underrepresented driving maneuvers or scenarios (such as emergency braking or evasive maneuvers).

[0042] However, the goal of training a data-based driving strategy is to train a control strategy that generalizes well to many different scenarios, including scenarios that occur only with low frequency in the training dataset.

[0043] According to various embodiments, an approach to training a machine learning model is provided that improves the generalization of the machine learning model to scenarios that occur in the training data but are underrepresented compared to other, more frequently occurring scenarios.

[0044] According to various embodiments, the generalization of the machine learning model is improved by selecting for its training a subset of the training data that is more balanced and in which different scenarios (in the use case of Figure 1, for example, defined by their respective driving actions) occur with similar frequency.

[0045] Figure 2 shows a visualization of the distribution of scenarios (driving in a lane 201 , emergency braking 202 , lane change 203) in the original, unbalanced training data.

[0046] Figure 3 shows a visualization of the distribution of scenarios (driving in a lane 301, emergency braking 302, lane change 303) in the selected training data. In these data, the different scenarios are significantly more balanced.

[0047] According to various embodiments, this balancing is achieved by filtering training data elements, i.e., rejecting over-represented scenarios (i.e., corresponding training element samples) in favor of under-represented training element samples at training time. It is assumed that for each training iteration (i.e., e.g., each batch), training elements are sampled from the training data (whereby this can be done purely randomly, but a certain exploration strategy can also be taken into account). As a result, the machine learning model learns more realistic behavior for scenarios (e.g., actions) that are underrepresented (in the original training data), such as lane changes or emergency braking. To achieve the balancing, according to various embodiments, the number of accepted, i.e., non-rejected, sampled training elements is broken down by scenarios (i.e., ranges of target processing results n, e.g.,driving actions) when selecting training data items.

[0048] For example, the training data elements of all training data are divided into bins of discrete size based on the dimensions of the target processing results (e.g., the (driving) action dimensions). Dimensions here refer to the different components: If a target processing result (e.g., a driving action in the current use case) is, for example, a vector of two floating-point numbers, the target processing result has two dimensions (e.g., acceleration and steering angle).

[0049] The target processing outcome dimensions (e.g., action dimensions) need not correspond to the dimensions of the data in the training data items that specify the target processing outcomes.

[0050] For example, each training data item contains an indication of the target processing result in the form of a sequence of waypoints over, for example, five time steps, which, however, do not express the kinematic state (i.e., whether braking or acceleration is currently taking place, or how the vehicle is being steered). In order to use the kinematic state as a basis for filtering the training data items (i.e., to perform action balancing), the waypoints can be mapped (by an appropriate transformation) to acceleration and / or steering actions. These are low-dimensional compared to the waypoints and can thus improve filtering. Nevertheless, any target processing result that is explicitly specified in the form of waypoints in a training data item can also be viewed as an indication of a target processing result in the form of actions (since the actions are specified by an appropriate mapping or transformation through the waypoints).Thus, when reference is made herein to training data items specifying goal processing results in a result space, they may do so explicitly (through elements from the result space) or through elements from another space that specify elements from the result space (e.g., sequences of waypoints that in turn specify steering actions).

[0051] For example, the discretization of each dimension (i.e., the size of each bin per component of the driving action) is calculated as follows: where 8 is the bin size in the respective dimension, x max the maximum value for the driving action component of the respective dimension that occurs in the training data, x mjn is the minimum value for the driving action component of the respective dimension that occurs in the training data, and n is the total number of training data elements in the training data

[0052] For target processing results n with two dimensions, this results in two-dimensional bins, the grid of which is determined in each dimension by the respective 8 determined for that dimension. The grid of bins (two-dimensional or higher) covers the area of ​​the result space (e.g., action space) in which the training data contains target processing results. With more than one dimension, each bin corresponds to a combination of ranges of the individual component (e.g., Bin 1: steering angle between 10 degrees and 11 degrees, acceleration between 2m / s2 and 3m / s2; Bin 2: steering angle between 11 degrees and 12 degrees, acceleration between 2m / s2 and 3m / s2; ...; Bin X: steering angle between 10 degrees and 11 degrees, acceleration between 3m / s2 and 4m / s2 ...).

[0053] Based on this classification, training data items are then selected during training (i.e., an "online filtering" of the training data items from the training data is performed). A training data item sampled from the training data is only accepted if the number of training data items already in the bin to which the training data item belongs (according to its target processing result) is less than an acceptance rate.

[0054] For example, the acceptance rate p is calculated as: where N is the total number of bins to which at least one training data item from the training data belongs.

[0055] The acceptance rate is applied as follows. A training data item belonging to the i-th bin is accepted if where b and öj are the number of training data items selected so far for the current batch that belong to the i-th and j-th bins, respectively, and N' is the total number of bins that contain at least one training data item (according to the previous selection for the current batch).

[0056] For simplicity, it is assumed that the bins are numbered linearly using natural numbers. For a higher-dimensional grid of bins, the indices can also be indexed as a combination of natural numbers.

[0057] In this way, batches of size k are formed from the training data and then used to train an ML model (e.g., through supervised learning or reinforcement learning). Filtering (i.e., acceptance of sampled training data items for training subject to the condition of equation (3)) prevents (or at least limits) overfitting to overrepresented scenarios (i.e., target processing results), as the ML model is trained on a balanced set of training data items. This leads to improved model generalization compared to training based on the unfiltered training data.

[0058] In the use case of Figure 1, as mentioned above, a driving action is represented, for example, by a vector of floating-point numbers (e.g., steering angle, acceleration, or waypoints). The data processing device that performs the training, e.g., computer system 105, thus assigns each driving action to a discrete region and checks whether a currently sampled training data item (i.e., an observation-action pair in the use case of Figure 1) should be accepted based on the number of already selected (i.e., accepted) training data items in this region (see equation (3)). The batches used to train machine learning model 108 are then filled only with the accepted training data items. Each accepted training data item is included once in the batch for the current training iteration.It can also be stipulated that each accepted training data item per epoch (with multiple batches) is included in a batch only (i.e. exactly) once.

[0059] According to one embodiment, the data processing device that performs the training, e.g., the computer system 105, performs the following steps:

[0060] 1 . Determine the parameters 8 and p: a. Load the set of training data b. Iterate over all training data items of the training data c. Record the minimum and maximum values ​​for each dimension of the target processing results (i.e., x mjn and x max for each dimension) d. Calculate θ (Equation (1)) e. Iterate over all training data items and classify the training data items into the appropriate bins (according to their target processing results). f. Determine N and calculate p (Equation (2)).

[0061] 2. Online training data filtering during training for each batch a. Sample a training data item from the training data b. Determine the bin i to which the sampled training data item belongs and the number of training data items already selected for the batch that belong to this bin, bi c. Check whether the training data item is accepted according to the acceptance rate p (equation (3)) d. If the training data item is accepted, add the training data item to the batch (if not, discard the training data item and return to step 2a) and increase the number of b by one (in other words, adjust the histogram of the selected training data items) e. Repeat 2.a. to 2.d. until the batch is filled with accepted training data items up to a specified size k. f. Train the machine learning model using the batch

[0062] Figure 4 illustrates the training procedure given above.

[0063] A training data element 401 is sampled from the training data 402 and assigned to its corresponding bin 405 of (for simplicity) three bins 403, 404, 405. It is assumed that the current batch so far contains two training data elements belonging to the first bin 403 (i.e., b-| = 2), four training data elements (i.e., b2 = 4) belonging to the second bin 404, and one training data element belonging to the third bin 405 (i.e., b = 1). Equation (3) is now checked, specifically whether bß / (b-| -i^+bß) = 1 / (2+4+1) is smaller than the acceptance rate p. If this is not the case, the sampled training data element 401 is discarded and re-sampled. If 1 / (2+4+1) is smaller than the acceptance rate p, the sampled training data element 401 is added to the current batch 406, b3 is increased from 1 to 2 and re-sampled.

[0064] This training procedure can also be applied offline for selecting training data during preprocessing. With online filtering, the selection does not need to take place during such preprocessing. Depending on the situation, the described filtering procedure can be implemented, for example, by a data loading module for training that enables online selection or by a data preprocessing module.

[0065] As described above, the training method can be applied to behavior clones to learn a driver model or a driving strategy for automated driving functions. To improve the generalization of the model, the training patterns are filtered in this training method to obtain more realistic driving behavior. In summary, according to various embodiments, a method is provided as shown in Figure 5.

[0066] Figure 5 shows a flowchart 500 illustrating a method for training a machine learning model according to one embodiment.

[0067] In 501, for (given) training data containing a plurality of training data items, each specifying a pair of training input and target processing result for the training input from a result space, the result space is divided into bins (e.g., evenly).

[0068] In 502, an acceptance rate is determined depending on the number (N in the above example) of the ranges for each of which the training data has at least one training data item that indicates a target processing result that lies in the respective range.

[0069] In 503, in 504, for each training iteration, training data elements are selected from the training data (e.g., a (training) batch is selected), by repeating (i.e., multiple times, e.g., until a predetermined number of selected training data elements (i.e., a certain batch size) is reached):

[0070] • Sampling (i.e., randomly drawing) a training data item from the training data;

[0071] • Determining the ratio of the number (bj in the above example) of training data items selected for the training iteration that indicate target processing results that are in the range in which the target processing result that the sampled training data item indicates lies, to the number of training data items selected for the training iteration (so far) and

[0072] • Selecting the sampled training data item for the training iteration if the determined ratio is smaller than the acceptance rate (and otherwise, for example, discarding the training data item, ie, the training data item is not used for training the training iteration); and in 505, training the machine learning model using the training data items selected for the training iteration.

[0073] In other words, according to various embodiments, training data is filtered based on subsampling and a division of the result space into bins. The division into bins can be based, as described above, on a division of the various dimensions of the target processing results. The target processing results are, for example, (low-dimensional) ones such as one or a combination of speed, steering angle, waypoint(s), coordinates, acceleration, etc.

[0074] The method of Figure 5 can be performed by one or more computers having one or more data processing units. The term “data processing unit” can be understood as any type of entity that enables the processing of data or signals. The data or signals can, for example, be processed according to at least one (i.e., one or more than one) specific function performed by the data processing unit. A data processing unit can comprise or be formed from an analog circuit, a digital circuit, a logic circuit, a microprocessor, a microcontroller, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a programmable gate array (FPGA) integrated circuit, or even quantum sensors and quantum computers, or any combination thereof.Any other way of implementing the respective functions described in more detail herein may also be understood as a data processing unit or logic circuit arrangement. One or more of the method steps described in detail herein may be performed (e.g., implemented) by a data processing unit through one or more specific functions performed by the data processing unit.

[0075] According to various embodiments, the method is therefore particularly computer-implemented. Depending on the type of input and output and the type of machine learning model, training is carried out using the selected training data elements, for example, through supervised learning or behavioral cloning or reinforcement learning. For example, learning a control strategy through off-policy reinforcement learning, in which the selected (i.e., filtered) set of collected experiences for controlling a technical system is used for training in each training iteration.

[0076] After training, the machine learning model can be applied to sensor data obtained from at least one sensor. The output of the machine learning model thus provides a result about a physical state of an environment of the at least one sensor and / or the at least one sensor itself, or the method can include using the output of the trained machine learning model, which it provides in response to an input of sensor data, as such a result.

[0077] For example, a machine learning model representing a control strategy is trained and, after training, used to generate a control signal for a robotic device by feeding it sensor data regarding the robotic device and / or its environment. The term "robotic device" can be understood as referring to any technical system (with a mechanical part whose movement is controlled), such as a computer-controlled machine, a vehicle, a household appliance, a power tool, a manufacturing machine, a personal assistant, or an access control system. For example, a control rule or control strategy for such a technical system is learned, and the technical system is then controlled accordingly.

[0078] Training the control strategy or a machine learning model that represents it can be viewed as training an agent (which acts according to the control strategy). The general term "agent" is used herein, especially for all types of technical systems that can be controlled using the approaches described herein. However, the approaches described herein can be applied to any type of agent (e.g., even to an agent that is only simulated and does not physically exist).

[0079] Various embodiments may receive and use sensor signals from various sensors, such as video, radar, LiDAR, ultrasound, motion, thermal imaging, etc., as training input (or, after training, as input data), for example, to obtain sensor data regarding demonstrations or states of the system (robot and object or objects), configurations, and scenarios. The sensor data may be processed by the machine learning model. This may include classifying the sensor data or performing semantic segmentation on the sensor data, for example, to detect the presence of objects (in the environment in which the sensor data was obtained). Embodiments may be used to train a machine learning system and control a robotic device, e.g., autonomously by robot manipulators, to achieve various manipulation tasks under different scenarios.In particular, embodiments are applicable to the control and monitoring of the execution of manipulation tasks, e.g., in assembly lines.

[0080] The machine learning model can, for example, be trained for measurement and control, i.e., for analyzing (sensor) data (e.g., scalar time series), especially action data, and subsequently operating a respective technical system. An application example is a fail-safe operation, for which the machine learning model is trained (and used after training) to detect significant corner cases by training it on the basis of training data containing such significant corner cases. It can be trained to detect safety-critical corner cases and, for example, output appropriate countermeasures as actions.

[0081] For example, it is typically important to ensure that an automated vehicle does not collide with pedestrians and that it evades other vehicles. Following the approach of Figure 5, the importance of actions underrepresented in the training data, such as collision avoidance, can be increased, so that a machine learning model based on such training data (i.e., in this case, a driver model or driving strategy) is able to generalize to more realistic driving decisions.

[0082] The approach of Figure 5 can also be used for an active selection of data that a data processing system (e.g. corresponding to the computer system 105) implementing a machine learning algorithm uses for testing, verification and / or validation in addition to training. In particular, testing, verification and / or validation is also considered part of training, ie a training iteration can also be a test, verification or validation iteration (since it decides, for example, whether to continue training or not).

[0083] For example, a training dataset was recorded representing driving behavior on public roads. The dataset largely shows similar behavior (driving in the lane, maintaining speed, similar actions), but also contains some corner cases (lane changes, sudden braking, collision avoidance, entering or exiting a road, etc.). The approach in Figure 5 filters the training dataset based on the specified filter criteria and selects a wider variety of driving maneuvers to assist the machine learning algorithm in generalizing to corner cases (besides regular driving behavior).

Claims

Claims 1. A method for training a machine learning model (108), in particular for implementing a control strategy for a robot device, comprising: Dividing, for training data containing a plurality of training data elements, each specifying a pair of training input, in particular training sensor data describing a state of a robot device and / or an environment of the robot device, and target processing result for the training input from a result space, in particular a robot device control action space, the result space into areas (403, 404, 405); Determining an acceptance rate depending on the number of areas (403, 404, 405) for each of which the training data (402) has at least one training data element that indicates a target processing result that lies in the respective area (403, 404, 405); and for each training iteration, Selecting training data elements (406) from the training data by repeated sampling a training data item (401) from the training data; Determining the ratio of the number of training data elements selected for the training iteration that indicate target processing results that lie in the range (403, 404, 405) in which the target processing result that indicates the sampled training data element (401) lies to the number of training data elements selected for the training iteration, and selecting the sampled training data element (401) for the training iteration if the determined ratio is smaller than the acceptance rate; and Training the machine learning model (108) using the training data elements selected for the training iteration.

2. The method according to claim 1, wherein the acceptance rate is determined such that it is inversely proportional to the number of areas (403, 404, 405) for each of which the training data (402) has at least one training data item that indicates a target processing result that lies in the respective area (403, 404, 405).

3. The method according to claim 1 or 2, wherein the result space has multiple dimensions and is divided into the regions (403, 404, 405) by dividing the value range of each dimension into intervals and defining each region (403, 404, 405) of the result space as a combination of intervals, each with one interval per dimension.

4. The method according to any one of claims 1 to 3, wherein for each training data item, the training input includes state information and the target processing result indicates a control action.

5. The method according to any one of claims 1 to 4, comprising training the machine learning model (108) using the training data elements selected for the training iteration by means of reinforcement learning or supervised learning.

6. A method for controlling a technical system, comprising training a machine learning model (108) for controlling the technical system according to one of claims 1 to 5 and controlling the technical system using the trained machine learning model (108).

7. Data processing device (105) configured to carry out the method according to one of claims 1 to 6.

8. A computer program comprising instructions which, when executed by a processor, cause the processor to perform a method according to any one of claims 1 to 6.

9. A computer-readable medium storing instructions which, when executed by a processor, cause the processor to perform a method according to any one of claims 1 to 6.