Computer-implemented method for correcting at least one model output of first trained machine learning model
By correcting the machine learning model output, using acceptance testing and correction parameter adjustment, the performance degradation problem caused by domain drift is solved, the reliability of the model output and control stability are improved, the frequency of use of high-guarantee controllers is reduced, and the technology is ensured. Safe operation of the unit or component.
Patent Information
- Application Number
- CN202280087764.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-04
- Filing Date
- 2022-11-30
- Publication Date
- 2024-09-06
AI Technical Summary
The performance of existing machine learning models degrades due to domain drift in real-world scenarios, resulting in unreliable model output and affecting the control stability and safety of technical units or components.
Calibrate by providing the model output of the trained machine learning model, verify the model output using an acceptance test, determine the correction parameters using a second trained model if it fails, adjust the model output to push it back to the safe zone, ensure the accuracy of the model output reliability.
It significantly improves the reliability and control stability of model output, reduces the frequency of use of high-assurance controllers, and avoids safety risks and production quality problems caused by incorrect model output.
Smart Images

Figure CN118613808A
Abstract
Description
Technical Field
[0001] The present invention relates to a computer-implemented method for correcting at least one model output of a first trained machine learning model. Further, the present invention relates to a corresponding computer program product, a corresponding technical system and a correction module. Background Art
[0002] Artificial intelligence ("AI") systems, such as machine learning models, are known from the prior art. AI systems are software programs whose behavior is learned from data, rather than being explicitly programmed. The learning process is called "training", which requires sufficient data and significant computing resources. Thus, a trained AI system solves the specific task for which it was trained, such as the prediction of system properties or anomalies. Unlike traditional software, the learned behavior of an AI system is highly dependent on data, i.e., training data, including parameters used during training.
[0003] For example, the Adaptive Simplex Architecture ("ASA") uses supervised learning models to compute, for example, robot motion planning in real time. The Neural Simplex Architecture ("NSA") uses reinforcement learning models to compute, for example, control parameters for autonomous vehicles.
[0004] When the training data is a representative sample of the data on which the AI system will be applied later in the field, the performance of the AI system will be high. However, in real-world scenarios, domain drift or domain shift is commonly encountered. Domain drift means that the distribution shifts between the training and test or application data. It is common that a trained AI system performs well after training, and its performance degrades over time as the field data becomes increasingly different from the original training data.
[0005] Referring to an exemplary NSA, in the event that a model output of a high performance controller ("HPC") is outside a predefined safety zone, the decision logic switches control from the HPC to an auxiliary high assurance controller ("HAC"). The HAC is in operation until the underlying machine learning model used as the HPC is retrained. Thus, the model output is suitable for or used to control a technical unit or a component of a technical unit, such as an industrial robot, an industrial plant, or an autonomous vehicle. The model output may be equivalently referred to as a control output.
[0006] The disadvantage is that the required retraining of the machine learning model is complex and time consuming. Therefore, prior art solutions suggest running a suboptimal HAC for a longer period of time, resulting in unreliable model output and thus unreliable control of the technical unit or a component of the technical unit.
[0007] Referring to the exemplary ASA, control switches continuously between HPC and HAC according to the reliability of the machine learning model used as HPC. Therefore, the model output of ASA (such as trajectory planning, steering or braking actions) may also be suboptimal in terms of, for example: (a) energy and material consumption, because HAC is used in at most 1% of the control cycle; and (b) stability, because HPC and HAC use different control schemes.
[0008] Unreliable (i.e., not smooth and / or unstable) model outputs are necessary and used to control the technical unit. This incorrect control often leads to serious safety hazards during operation, such as sudden braking and / or direction changes of the autonomous vehicle. A further negative impact is, for example, a reduced quality, throughput and / or availability of the manufactured products in a manufacturing process of an industrial plant. In the worst case, the impact even leads to personal injuries, such as accidents caused by incorrect control of the autonomous vehicle.
[0009] There is a need that AI models deployed and operated, especially for control, are “industry-grade.” This means that AI models must be reliable and robust even when the conditions surrounding their application scenarios may change in order to avoid such negative impacts and personal harm.
[0010] It is therefore an object of the present invention to provide a computer-implemented method for correcting at least one model output of a first trained machine learning model in an efficient and reliable manner. Summary of the invention
[0011] According to one aspect of the invention, the problem is solved by a computer-implemented method for correcting at least one model output of a first trained machine learning model, the computer-implemented method comprising the steps of: a. providing at least one model output of the first trained machine learning model; wherein The first trained machine learning model is configured for determining the at least one model output, the at least one model output comprising at least one control parameter or at least one motion parameter for controlling a technical unit or a component of the technical unit; b. validating the at least one model output using at least one acceptance test, thereby resulting in at least one test verdict related to a failure or a pass of the at least one model output; wherein the at least one test verdict comprising at least one indication related to whether the at least one model output has passed or failed the at least one acceptance test and at least one indication related to a deviation of the at least one model output from at least one expected output; c. if the first trained machine learning model fails the at least one acceptance test, determining at least one correction parameter based on the at least one test verdict and the at least one model output using a second trained machine learning model; d. adjusting the at least one model output of the first trained machine learning model by applying the at least one correction parameter to the at least one model output; and e. Providing at least one adjusted output as at least one corrected model output.
[0012] Accordingly, the present invention relates to a computer-implemented method for correcting at least one model output of a first trained machine learning model.Thus, firstly, the at least one model output is provided as input for validation and other subsequent method steps.
[0013] The input in step a. may be received via one or more input interfaces. The first trained machine learning model is configured to determine or predict the at least one model output. In other words, the model output is the result of the first machine learning model. The model output comprises a control parameter or a motion parameter. The parameter is suitable for or used to control a technical unit or a component of a technical unit, such as an industrial robot, an industrial plant or an autonomous vehicle. The technical unit may also be designed as any other safety control system (SCS).
[0014] Additionally, the model output may include further data or parameters. In addition to the model output, further data and / or the first machine learning model may also be provided. Thus, the input may be extended with further information.
[0015] In a next step, the at least one model output is verified with respect to failing or passing the at least one acceptance test. The verification results in the at least one test verdict.
[0016] The test verdict gives an indication of a failure or a pass of the at least one model output. In other words, the model output may pass or fail one or more acceptance tests.
[0017] In addition to the first indication, the at least one test ruling comprises at least one further second indication. The second indication relates to the deviation of the at least one model output from the at least one expected output. In other words, the test ruling indicates how far the model output is or is separated from an expected safety area or an expected safety zone. The safety area or safety zone may be predefined. The second indication is preferably designed to include a quantitative parameter of the indication.
[0018] The test decision may include additional quantitative parameters and / or other information as input to the next steps.
[0019] In a next step, the at least one correction parameter is determined. Thus, a second trained machine learning model is applied on the provided inputs (ie, model outputs and test verdicts).
[0020] Only this correction or adjustment step is performed, and therefore, the second trained machine learning model is applied in case the first trained machine learning model fails the acceptance test. The advantage of correction is that the model output is pushed back into a safe area or safety zone. The safe area or safety zone can be interpreted as an allowable envelope or recoverable area, which can be determined by an acceptance or safety gate.
[0021] In another case where the model output passes, this correction step is not necessary and is skipped. The model output has passed the acceptance test in this case and is accepted as the correct model output. No further adjustments are performed. The model output remains unchanged.
[0022] The at least one correction parameter is used to correct the at least one model output. A current or previous model output is replaced by the corrected or adjusted model output and provided as an output after the correction performed.
[0023] The at least one adjusted output as at least one corrected model output can be used for controlling the technical unit or a component of the technical unit. An advantage is that the control is based on the corrected model output and is thus significantly more reliable.
[0024] The invention thus ensures safe operation and control of the technical unit.
[0025] In the first aspect, the method further comprises at least one of the following steps: executing the at least one corrected model output by a controller for controlling the technical unit or a component of the technical unit; wherein the controller is preferably a high performance controller; and The at least one corrected model output is transmitted to a controller for executing the at least one corrected model output for controlling the technical unit or a component of the technical unit; wherein the controller is preferably a high performance controller.
[0026] Accordingly, the controller is preferably a high performance controller, which may be interpreted in a general sense and may be abbreviated as HPC. The HPC may be designed, for example, as a path planner, according to which the path planner may calculate or recalculate parameters of a curve-based trajectory of, for example, an end effector of an industrial robot arm or an autonomous vehicle. The controller is configured to: execute the at least one model output, i.e., the at least one corrected model output or the uncorrected originally provided model output.
[0027] The present invention significantly improves the reliability of the high performance branch of the controller compared to prior art solutions such as the Simplex Architecture ("SA") and the Adaptive Simplex Architecture ("ASA"). This also gradually reduces the use of high assurance controllers to zero during the useful life of the system. This enables the development of pure machine learning based controllers for dynamic systems.
[0028] In another aspect, the at least one control parameter or the at least one motion parameter is a parameter selected from the group consisting of: a control law, a control action and a control plan. Accordingly, the parameter is intended to control a technical unit or a component of a technical unit, such as an industrial robot arm or an end effector of an industrial robot arm. Advantageously, the parameter can be selected in a flexible manner according to the specific use case, application, user requirements, underlying technical unit, underlying system or any other condition.
[0029] In another aspect, the validation is performed before the at least one model output is released or forwarded for execution. Accordingly, the model output is validated in view of passing or failing. After validation, correction is made in the case of failing or the model output is maintained in the case of passing, and the model output is released or forwarded for execution. With reference to the example mentioned above, execution means: using the corrected model output to correct the parameters of the curve-based trajectory of the end effector of the industrial robot arm, and using the parameters for actuation.
[0030] In another aspect, in the context of the technological unit or a component of the technological unit, the at least one model output is represented by at least one parameter of a collision avoidance path, any other path or trajectory.
[0031] In another aspect, the at least one correction parameter is added to at least one parameter of the at least one collision avoidance path, the at least one other path or the at least one trajectory during adjustment.
[0032] Accordingly, the model output can be flexibly selected for correction. Referring to the example of a path planner as an HPC and a robot arm as a technical unit, the model output can be designed as parameters of a motion path or trajectory. The path or trajectory is adjusted.
[0033] In a further aspect, method steps b. to e. are performed cyclically based on at least one corrected model output as said model output.
[0034] Accordingly, the method steps are performed as follows: b. validating the at least one corrected model output using at least one acceptance test, thereby resulting in at least one test verdict related to a fail or pass of the at least one corrected model output; wherein the at least one test verdict comprising at least one indication related to whether the at least one corrected model output has passed or failed the at least one acceptance test and at least one indication related to a deviation of the at least one corrected model output from at least one expected output; c. if the first trained machine learning model fails the at least one acceptance test, determining at least one correction parameter using a second trained machine learning model based on the at least one test verdict and the at least one corrected model output; d. adjusting the at least one corrected model output of the first trained machine learning model by applying the at least one correction parameter on the at least one corrected model output; and e. Providing at least one adjusted output as at least one corrected model output.
[0035] Therefore, the most recently provided corrected model output in step e. is used as new input for validation and correction of method steps b. to d.
[0036] The steps may be performed N times to correct the model output of the HPC. In the event of repeated failures, the decision logic ("DL") may switch control to a high assurance controller (HAC) whose performance is lower than that of the corrected HPC model output, but is provably safe. The number N indicates the number of correction cycles.
[0037] The invention allows reducing the number of control cycles (ie executions of the controller) in which the HAC is used to a large extent, which gradually tends to 0 after a sufficiently long duration of system testing and operation. This allows creating a simple and inexpensive HAC.
[0038] In a further aspect, the second machine learning model is a recurrent neural network (e.g., a Long Short Term Memory - LSTM - network or a Gated Relational Network - GRN). Accordingly, in the case of performing method steps in a recurrent manner, recurrent neural networks have proven to be advantageous in view of efficient and reliable solutions.
[0039] A further aspect of the invention is a computer program product directly loadable into the internal memory of a computer, said computer program product comprising software code portions for performing the above mentioned method steps when said computer program product is run on a computer.
[0040] A further aspect of the invention is a technical system comprising a correction module for performing the above mentioned method steps.
[0041] A further aspect of the invention is a correction module for determining at least one correction parameter based on at least one test verdict using a second trained machine learning model when a first trained machine learning model fails at least one acceptance test, the at least one test verdict being generated by at least one corresponding acceptance test and at least one model output of the first trained machine learning model. Advantageously, the correction module can be employed on any version of the simplex architecture and / or the adaptive simplex architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In the following detailed description, currently preferred embodiments of the present invention are further described with reference to the following drawings: Figure 1 A flow chart of a computer-implemented method according to the present invention is illustrated. Figure 2 A schematic representation of a technical system with a correction module according to an embodiment of the present invention is shown. Figure 3 A schematic representation of a technical system with a correction module and a correction cycle according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0043] Figure 1 A flow chart of a method according to the invention having method steps S1 to S5 is shown.
[0044] Figure 2 A simplex architecture with a correction module according to an embodiment of the present invention is shown.
[0045] about Figure 2 Abbreviations: [P1, ...] = a set containing at least one parameter CC=Control Command TV = Test Verdict CP = Control Planning SS = System Status CPA = Correction Parameter Application HPC = High Performance Controller HPA = High Assurance Controller CM = Calibration Model AT = Acceptance Test MLP = Machine Learning Platform.
[0046] According to this embodiment, a control command (CC) channel is connected to a simplex controller. The command may indicate a set point of the simplex controller, which may be a target position of a technical system in motion. The simplex controller may be periodically triggered by a control cycle clock. The control cycle may be, for example, 10 milliseconds long. Whenever the simplex controller is triggered, the control command and the system state (SS) are read from the command channel by a high performance controller ("HPC"), a high assurance controller ("HAC"), and / or an acceptance test module. The HPC module uses a machine learning model. HAC uses human-engineered and manually-coded controller logic. HPC is implemented as a trained machine learning model and may therefore also be referred to as an HPC model. The acceptance test module uses human-engineered test logic that verifies whether the output of the HPC model is within a safe area.
[0047] The HPC model is scored using a machine learning model scorer. The output of the scoring operation (i.e., the prediction of the HPC model) is forwarded to the acceptance test. The output of the HPC model consists of at least one numerical or categorical parameter. The HPC model can thus be a regressor, a classifier, or a combination thereof. In the event that the output of the HPC model fails the acceptance test (AT), the calibration model (CM) uses the AT and the test verdict (TV) of the HPC output (HPCO) to calculate at least one calibration parameter to be applied to the HPC output.
[0048] Testing rulings may include: a. an indication of whether a model output of the first machine learning model has passed or failed the acceptance test; b. A quantitative parameter indicating how far the model output is from the desired safe region; and / or c. Quantitative parameters describing the quantitative or qualitative properties of a physical object (e.g. an obstacle, a human, a car, etc.) or the conditions in the operating context of the technical unit or a component of a technical unit to be controlled by the HPC, which conditions have been determined to have failed the acceptance test.
[0049] In addition, the parameters of the control commands used to train the correction model are extracted from the control commands by the acceptance test and are attached to the output of the acceptance test (ie, the test verdict (TV)).
[0050] In addition, further relevant parameters (eg, system state - SS) required for training the correction model may be obtained from an external sensor system accessible to the test subject.
[0051] The correction parameter (CP) determined by the correction model is applied to the model output of the first machine learning model, for example, added, multiplied, subtracted, etc.
[0052] The model output may be represented by a set of parameters describing a collision avoidance path plan or motion plan for an industrial robot or autonomous vehicle. In this exemplary case, correction parameters may be added to the parameters of the path plan (eg, HPC output).
[0053] After application of the correction parameters, the corrected model output can be used as the new model output in a cyclical manner. This cyclical process can be equivalently referred to as a correction cycle (CRC).
[0054] Figure 3 A schematic representation of a technical system with a correction module and a correction cycle according to an embodiment of the present invention is shown.
[0055] about Figure 3 Abbreviations: [P1, ...] = a set containing at least one parameter CC=Control Command TV = Test Verdict CP = Correction Parameter CRC = Correction Cycle HPC = High Performance Controller HPCO = HPC output CMO = Corrected Model Output CPA = Correction Parameter Application CM = Calibration Model AT = Acceptance Test N = maximum number of calibration cycles i = number of calibration cycles performed.
[0056] The correction cycle may be repeated several times, as indicated by the maximum number of correction cycles N. For example, if the control cycle is 10 ms long and the execution of the acceptance test takes 0.1 ms and the scoring of the CM takes 0.9 ms, then N is upper bounded by 10. The correction module is designed and trained in such a way that the corrected model output is pushed back to the safe zone within a finite number (e.g., 1-3) of correction cycles, taking into account the model output that failed the acceptance test and the test verdict.
[0057] If the number of correction cycles executed, i, exceeds N, the simplex controller generates the HAC output. When no correction cycle is needed because the initial HPC model output passes the acceptance test, the simplex controller generates the HPC model output. Otherwise, the simplex controller generates the corrected model output.
[0058] The training of the correction model uses the model output and the output of the subject test as input data and uses the corrected output as output data.
[0059] Explanation of why and how the calibration model works: The acceptance test acts like an oracle that generates additional training data for supervised training of the correction model. Together with the model output, these additional training data facilitate the correction of the model output by training and applying the correction model. The correction model is only trained for cases where the first model (i.e., the HPC model) fails (e.g., when encountering new situations). The correction model thus alleviates the problem of (catastrophic) forgetting of the first model and the biased training data.
[0060] According to an embodiment, a first machine learning model (HPC) and a second machine learning model (correction model) are trained and / or retrained on a machine learning platform.
[0061] The training or retraining of these models can be performed continuously. The machine learning models can be continuously updated and thus also retrained during the operation of the controlled technical unit.
[0062] The two machine learning models are trained and / or retrained independently of each other.
[0063] Therefore, a test mode and an operational mode may be used. In the test mode, both machine learning models are continuously retrained and thus updated.
[0064] For example, in test mode, the performance statistics output by the model may be as follows: • The first model output was used in approximately 85% of cases at the beginning of the test period and in approximately 98% of cases towards the end of the test period. • The corrected model output was used in approximately 14% of cases at the beginning of the test period and in approximately 2% of cases near the end of the test period.
[0065] In the operating mode, only the second machine learning model (correction model) is retrained on the machine learning platform (MLP) embedded in the controlled technical unit, and the first machine learning model (HPC) is no longer retrained.
[0066] The advantage is that the second machine learning model is simpler than the first machine learning model and thus requires less computing resources for training. The second machine learning model design also ensures that the corrected model output converges towards the safe region within a limited number of correction cycles. For example, this can be ensured by the application of incremental correction parameters that iteratively push the model output towards the safe region.
[0067] Retraining is justified in that the second machine learning model is adapted to new combinations of model outputs and test verdicts that were not covered by the training data.
[0068] Usage According to an exemplary use case, a dynamic path planning problem with obstacle avoidance for a six-degree-of-freedom (6-DOF) manipulator is considered. This problem is also called collision-free or real-time tool path planning. This problem is very important in human-robot collaboration in manufacturing, for Cartesian cranes, for autonomous robots and vehicles, etc.
[0069] According to this embodiment, the HPC is a path planner that recalculates the parameters of the curve-based trajectory of the end effector of the industrial robot arm in each correction cycle so that the tool path avoids any collisions while trying to minimize the total tool path length.
[0070] Mobile obstacles can take any shape and consist of one or more different objects. Mobile obstacles can be humans or human body parts, cars or autonomous vehicles with drivers, robots or units of robots, fixed or moving objects, etc.
[0071] The 3D sensor generates a point cloud or another representation of the moving obstacle, around which a 3D bounding box (or bounding volume) is calculated that is aligned with the axes of the robot's base coordinate system. The moving obstacle representation (e.g., point cloud) and bounding box are updated in real time to facilitate collision avoidance through fast path replanning. The bounding box must be used to accurately determine and track the position of the moving obstacle.
[0072] The tool path (eg, the path of the end effector) is calculated relative to the tool center point of the robot in the robot's base coordinate system. In the case of an autonomous vehicle, the tool path planning problem is similar to the vehicle trajectory planning problem.
[0073] Given an origin and a target point, the problem consists of finding a smooth tool path that avoids moving obstacles while minimizing the length of the path. To solve this problem, an analytical solution based on Lame curves is considered. This approach facilitates a simple formulation of the path planning problem as an optimization problem that can be solved using a machine learning approach.
[0074] The Lame curve takes a variety of shapes depending on the a (semi-major axis), b (semi-minor axis), and n (shape) parameters: (x / a) n +(y / b) n =1 (1) For n = 2, the shape of the curve is an ellipse. For n = 1, the shape of the curve is a rhombus. For n>2, the shape of the curve converges to a rounded rectangle.
[0075] The first equation enables flexible generation of tool paths that avoid collisions with at least one obstacle contained by a bounding box, which is represented by two representative points p1=(x1′, y1′) and p2=(x2′, y2′), in a plane defined by the direct path between the origin and the target and the vertical (Z) axis in the robot's base coordinate system.
[0076] In the second equation, N denotes the number of discrete segments along the elliptical path between the origin and the target; and B denotes the set of representative points on the bounding box B = {p1, p2}, where p1 = (x1′, y1′) and p2 = (x2′, y2′).
[0077] Therefore, the path planning problem can be formulated as an optimization problem as follows:
[0078] As obstacles move, the Lame curve parameters a, b, and n must be recalculated in real time to minimize the path while avoiding obstacles. Parameter a can be set to x′ origin and x′ target To determine the other two parameters, a combinatorial optimization algorithm can be used.
[0079] Considering the input set I = (x′ origin , x′ target , x′ 1 , y′ 1 , x′ 2 , y′ 2 ), a backtracking algorithm can be used to achieve an optimal computational solution to the minimization problem, which solves the optimization mentioned above. As an example solution, Algorithm 1 iterates through all discrete combinations of b and n parameters of the Lame curve that do not violate the inequality, and calculates the arc length by summing the distances between the N discrete points that form the collision-avoiding Lame curve path. If Algorithm 1 is executed continuously as the obstacle moves, new Lame curve parameters will be calculated at the beginning of each control cycle. In this way, the tool path will be adapted to the current position and size of the bounding box surrounding the obstacle. Depending on the size, shape, position and / or orientation of the obstacle, as the end effector moves toward the target, it will transition from one elliptical trajectory to another. These trajectories can also be considered as orbits around obstacles.
[0080] For small increments of b and n (i.e., b_step and n_step), Algorithm 1 produces near-optimal solutions with respect to path length and / or albeit at the expense of high runtime. Therefore, the algorithm is run only on a machine learning platform with small increments for b and n to generate training data that can be used to train a machine learning model that can be used as an HPC in a simplex architecture.
[0081] Take the Test In the context of this use case, the purpose of the acceptance test (AT) is to determine the point pair (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) is inside the Lame curve characterized by the parameters (b,n). This condition guarantees that the robot will avoid any collision with any obstacle contained in the bounding box, which ensures safety.
[0082] The following inequality provides the conditions that enable the acceptance test: |x' / a| n +|y' / b| n <1.
[0083] The input to AT consists of the coordinates of the representative point (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) and the parameters (b,n) of the tested Lame curve. If the first equation holds for a given combination of x' and y', the test verdict is "passed". Otherwise, the test verdict provides the following information: Fields indicating that a test failed. ·Quantitative parameter T≥1, which reflects the representative point of the bounding box (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) and the maximum distance between the Lamé curve, where: оT=max(T 1 ,T 2 ),in оT 1 =|(x' 1 -a) / a| n +|y' 1 / b| n оT 2 =|(x' 2 -a) / a| n +|y'2 / b| n ·The coordinates of the point (x' i ,y' i ), where i = 1 or 2, according to which the representative point (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) is outside the Lamé curve. If both points are outside the curve, then the point farthest from the curve is returned.
[0084] The AT is implemented as a function that takes as input a representative point of the bounding box and the a, b and n parameters of the current Lame curve. The test results in a structure containing the information discussed above. If the remaining results are "passed", the additional information will be discarded, for example, or it will be collected for performance analysis purposes. The execution time of this AT is very short (e.g., less than 0.01ms) because it consists of a fixed number of mathematical operations.
[0085] High Performance Controller (HPC) Artificial neural networks (ANNs) are known to accurately approximate polynomial objective functions. This facilitates the training of ANN models to predict solutions to linear and nonlinear optimization problems using data generated by heuristic or exact human-engineered algorithms designed to solve such problems. Referring to the use case mentioned above, I = (x' origin ,x' target ,x' 1 ,y' 1 ,x' 2 ,y' 2 ) as input and O = (b, n) as output to train a feed-forward ANN to solve Figure 3 For each input I, the computational algorithm described above (Algorithm 1) can be used to find the best combination of b and n, and thus generate data for training a neural network model, which can be used as HPC.
[0086] Calibration Model (CM) The purpose of the correction model (CM) is to correct the output of the high performance controller (HPC) whenever the output fails the acceptance test (AT). To this end, the CM uses the output of the HPC model and the output of the AT. The output of the CM is applied to the output of the HPC model to correct the former. According to this embodiment, the output of the CM is composed of two correction parameters b diff and n diff The two correction parameters b diff and n diffb and n parameters added to the Lamé curve, as predicted by HPC. Correction parameter b diff and n diff Is a positive or negative floating point number. diff and n diff Both cannot be negative at the same time, because this would push the output of the HPC further outside the safe zone. Depending on the situation, the application of the correction parameters can, for example, increase n while reducing b (and vice versa); increase both b and n; or increase one of them while keeping the other unchanged. The correction model can be implemented as a feedforward ANN or a recurrent neural network (RNN). The CM is initially trained on the same training data as the HPC as follows. For example, assume that the initially trained HPC produces a 17.7% failure rate on the training set. This means that: out of 10,000 input sets, 1,770 failed the acceptance test. These 1,770 input cases that include the corresponding outputs of the HPC model are selected to form a training set for training the CM. Therefore, the following data can be used to train the baseline CM: Input: The output of the acceptance test combined with the parameters (b,n) that caused the test to fail. Output: Difference (b opt –b) and (n opt -n), where b opt and n opt is a representation containing (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) are the parameters of the shortest Lame curve between the two, as calculated by Algorithm 1, which is used to generate training data for the HPC model.
[0087] The baseline CM will not be able to correct the output of the HPC in all situations. Therefore, the CM also needs to be retrained using data collected at runtime. The HPC is retrained and redeployed in test-only mode, while the CM is retrained and redeployed in both test and operational modes.
[0088] High Assurance Controller (HAC) According to an embodiment, Algorithm 1 can be used to implement manually encoded HAC. In order to limit its execution time, the parameter b in Algorithm 1 step and n step Must be large enough so that its execution fits within the control cycle.
Claims
1. A computer-implemented method for correcting at least one model output of a first trained machine learning model, comprising the steps of: a. providing at least one model output of the first trained machine learning model (S1); wherein The first trained machine learning model is configured for determining the at least one model output, the at least one model output comprising at least one control parameter or at least one motion parameter for controlling a technical unit or a component of the technical unit; b. verifying the at least one model output using at least one acceptance test, thereby resulting in at least one test verdict (S2) related to a failure or a pass of the at least one model output; in the at least one test verdict comprising at least one indication related to whether the at least one model output has passed or failed the at least one acceptance test and at least one indication related to a deviation of the at least one model output from at least one expected output; c. if the first trained machine learning model fails the at least one acceptance test, determining at least one correction parameter based on the at least one test verdict and the at least one model output using a second trained machine learning model (S3); d. adjusting the at least one model output of the first trained machine learning model by applying the at least one correction parameter on the at least one model output (S4); and e. Providing at least one adjusted output as at least one corrected model output (S5).
2. The computer-implemented method according to claim 1, further comprising at least one of the following steps: executing the at least one corrected model output by a controller for controlling the technical unit or a component of the technical unit; wherein the controller is preferably a high-performance controller; and The at least one corrected model output is transmitted to a controller for executing the at least one corrected model output for controlling the technical unit or a component of the technical unit; wherein the controller is preferably a high performance controller.
3. A computer-implemented method according to claim 1 or claim 2, wherein the at least one control parameter or the at least one motion parameter is a parameter selected from the group consisting of: a control law, a control action and a control plan.
4. The computer-implemented method of any one of the preceding claims, wherein the validation is performed before the at least one model output is released or forwarded for execution.
5. A computer-implemented method according to any of the preceding claims, wherein in the context of the technical unit or a component of the technical unit, the at least one model output is represented by at least one parameter of a collision avoidance path, any other path or trajectory. 6 . The computer-implemented method of claim 5 , wherein the at least one correction parameter is added to at least one parameter of the at least one collision avoidance path, the at least one other path, or the at least one trajectory during adjustment.
7. A computer-implemented method according to any one of the preceding claims, Method steps b. to e. are performed cyclically based on at least one corrected model output as the model output.
8. A computer-implemented method according to claim 7, wherein the second machine learning model is a feed-forward or recurrent neural network, or a long short-term memory network.
9. A computer program product directly loadable into the internal memory of a computer, the computer program product comprising software code portions for performing the steps according to any of the preceding claims when the computer program product is run on a computer.
10. A technical system comprising a correction module for determining at least one correction parameter, the correction module being configured to perform the steps according to any one of claims 1 to 8.
11. A correction module for determining at least one correction parameter based on at least one test decision using a second trained machine learning model when a first trained machine learning model fails at least one acceptance test, wherein the at least one test decision is generated by at least one corresponding acceptance test and at least one model output of the first trained machine learning model.
Citation Information
Patent Citations
Network man-machine verification method and device, equipment and storage medium
CN110768980A
Selecting testing scenarios for evaluating the performance of autonomous vehicles
GB202106859D0
Recurrent neural network and training process for same
US20190197403A1
Collision avoidance system with trajectory validation
US20200189573A1
Technology to apply driving norms for automated vehicle behavior prediction
US20200324794A1
