# US 2024/0202525 A1 · Verification and synthesis of cyber physical systems with machine learning and constraint-solver-driven learning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0202525 A1
- Document ID: US20240202525A1
- Status: Published application
- Kind: A1
- Application number: 16/713,779
- Filed: 2019-12-13
- Published: 2024-06-20
- Earliest claimed: 2019-02-13
- Assignees: Perspecta Labs Inc.
- Applicants: Perspecta Labs Inc.
- Inventors: Sanjai Narain; Emily Chun Mak
- Web page: https://patentgrep.com/patent/US20240202525A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In a computer-implemented method, computer program product, and computer system, program code executing on a processor(s) generates input-output pairs, to form a training set for machine learning and generates a machine learning model of a cyber physical system by utilizing a machine learning algorithm and the training set to train the machine learning model. The program code converts the trained machine learning model into an equivalent constraint and optimizes objective functions subject to the constraint by utilizing one or more constraint solvers to compute an input-output pair. The program code determines if the computed input-output pair, is within an error tolerance and based on determining that it is, either utilizes it as a solution or adds it to the training set (and continues training). If the pair is not within the tolerance, the program code utilizes it as a solution or adds it to the training set (and continues training).

## Claims

### Claim 1

A computer-implemented method comprising:
generating, by one or more processors, input-output pairs, to form a training set for machine learning based on obtaining data from sensing capabilities of a cyber physical system, via communication capabilities of the cyber physical system;
generating, by the one or more processors, a machine learning model of the cyber physical system comprising objective functions, wherein the generating comprises utilizing a machine learning algorithm and the training set to train the machine learning model, and wherein the cyber physical system comprises one or more physical devices with integrated networking capabilities, the communication capabilities, the sensing capabilities, computation capabilities, and control capabilities;
converting, by the one or more processors, the trained machine learning model into an equivalent constraint, wherein the trained machine learning model comprises a neural network and the converting comprises compressing the neural network into the equivalent constraint, wherein the equivalent constraint comprises a mixed integer linear program (MILP);
optimizing, by the one or more processors, the objective functions subject to the constraint, wherein the optimizing comprises utilizing one or more constraint solvers to compute an input-output pair;
determining, by the one or more processors, that the computed input-output pair is not within a pre-defined error tolerance of an input-output pair produced by a cyber physical system evaluator;
based on the determining that the computed input-output pair is not within the pre-defined error tolerance, iteratively repeating a process until reaching an iteration when the computed input-output pair is within the pre-defined tolerance or reaching a pre-determined number of times for training the cyber physical system, the process comprising, for each iteration:
adding the computed input-output pair to the training set to generate new training instances for each of the objective functions;
updating, by the one or more processors, the machine learning model of the cyber physical system, wherein the updating comprises utilizing the machine learning algorithm and the updated training set to re-train the machine learning model;
converting, by the one or more processors, the re-trained machine learning model into the equivalent constraint;
optimizing, by the one or more processors, objective functions subject to the constraint, wherein the optimizing comprises utilizing the one or more constraint solvers to compute a new input-output pair; and
determining, by the one or more processors, if the computed new input-output pair is within the pre-defined error tolerance of an input-output pair produced by the cyber physical system evaluator; and
based on reaching the iteration when the computed input-output pair is within the pre-defined tolerance, the method further comprises:
utilizing the computed new input-output pair as the solution, wherein the utilizing comprises automatically maneuvering, via the control capabilities of the cyber physical system, the cyber physical system, according to a value of each value in the new input-output pair, wherein each value is a navigational value and one navigational value is a position changing maneuver in three-dimensional space.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein based on reaching a pre-determined number of times for training the cyber physical system, the method further comprises:
utilizing the computed input-output pair as the solution.

### Claim 4

(canceled)

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein generating the input-output pairs, to form the training set comprises:
sampling, by the one or more processors, one or more points in the cyber physical system as input points for the input-output pairs; and
utilizing, by the one or more processors, for each point sampled of the one or more points sampled, the cyber physical system evaluator to compute an associated output, wherein the associated outputs comprise output points for the input-output pairs.

### Claim 6

(canceled)

### Claim 7

(canceled)

### Claim 8

(canceled)

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, the method further comprising:
re-optimizing, by the one or more processors, the objective functions subject to the constraint, wherein the re-optimizing comprises utilizing the one or more constraint solvers to compute a new input-output pair.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to converting the compressed trained machine learning model into the equivalent constraint, compressing, by the one or more processors, the trained machine learning model.

### Claim 11

(canceled)

### Claim 12

A computer program product comprising:
a computer readable storage medium readable by one or more processors and storing instructions for execution by the one or more processors for performing a method comprising:
generating, by the one or more processors, input-output pairs, to form a training set for machine learning based on obtaining data from sensing capabilities of a cyber physical system, via communication capabilities of the cyber physical system;
generating, by the one or more processors, a machine learning model of the cyber physical system comprising objective functions, wherein the generating comprises utilizing a machine learning algorithm and the training set to train the machine learning model, and wherein the cyber physical system comprises one or more physical devices with integrated networking capabilities, the communication capabilities, the sensing capabilities, computation capabilities, and control capabilities;
converting, by the one or more processors, the trained machine learning model into an equivalent constraint, wherein the trained machine learning model comprises a neural network and the converting comprises compressing the neural network into the equivalent constraint, wherein the equivalent constraint comprises a mixed integer linear program (MILP);
optimizing, by the one or more processors, the objective functions subject to the constraint, wherein the optimizing comprises utilizing one or more constraint solvers to compute an input-output pair;
determining, by the one or more processors, that the computed input-output pair is not within a pre-defined error tolerance of an input-output pair produced by a cyber physical system evaluator;
based on the determining that the computed input-output pair is not within the pre-defined error tolerance, iteratively repeating a process until reaching an iteration when the computed input-output pair is within the pre-defined tolerance or reaching a pre-determined number of times for training the cyber physical system, the process comprising, for each iteration:
adding the computed input-output pair to the training set to generate new training instances for each of the objective functions;
updating, by the one or more processors, the machine learning model of the cyber physical system, wherein the updating comprises utilizing the machine learning algorithm and the updated training set to re-train the machine learning model;
converting, by the one or more processors, the re-trained machine learning model into the equivalent constraint;
optimizing, by the one or more processors, objective functions subject to the constraint, wherein the optimizing comprises utilizing the one or more constraint solvers to compute a new input-output pair; and
determining, by the one or more processors, if the computed new input-output pair is within the pre-defined error tolerance of an input-output pair produced by the cyber physical system evaluator; and
based on reaching the iteration when the computed input-output pair is within the pre-defined tolerance, the method further comprises:
utilizing the computed new input-output pair as the solution, wherein the utilizing comprises automatically maneuvering, via the control capabilities of the cyber physical system, the cyber physical system, according to a value of each value in the new input-output pair, wherein each value is a navigational value and one navigational value is a position changing maneuver in three-dimensional space.

### Claim 13

(canceled)

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein based on reaching a pre-determined number of times for training the cyber physical system, the method further comprises:
utilizing the computed input-output pair as the solution.

### Claim 15

(canceled)

### Claim 16 (depends on 12)

The computer program product of claim 12, wherein generating the input-output pairs, to form the training set comprises:
sampling, by the one or more processors, one or more points in the cyber physical system as input points for the input-output pairs; and
utilizing, by the one or more processors, for each point sampled of the one or more points sampled, the cyber physical system evaluator to compute an associated output, wherein the associated outputs comprise output points for the input-output pairs.

### Claim 17

(canceled)

### Claim 18

(canceled)

### Claim 19

(canceled)

### Claim 20

A system comprising:
one or more memories;
one or more processors in communication with the one or more memories;
program instructions executable by the one or more processors via the one or more memories to perform a method, the method comprising:
generating, by the one or more processors, input-output pairs, to form a training set for machine learning based on obtaining data from sensing capabilities of a cyber physical system, via communication capabilities of the cyber physical system;
generating, by the one or more processors, a machine learning model of the cyber physical system comprising objective functions, wherein the generating comprises utilizing a machine learning algorithm and the training set to train the machine learning model, and wherein the cyber physical system comprises one or more physical devices with integrated networking capabilities, the communication capabilities, the sensing capabilities, computation capabilities, and control capabilities;
converting, by the one or more processors, the trained machine learning model into an equivalent constraint, wherein the trained machine learning model comprises a neural network and the converting comprises compressing the neural network into the equivalent constraint, wherein the equivalent constraint comprises a mixed integer linear program (MILP);
optimizing, by the one or more processors, the objective functions subject to the constraint, wherein the optimizing comprises utilizing one or more constraint solvers to compute an input-output pair;
determining, by the one or more processors, that the computed input-output pair is not within a pre-defined error tolerance of an input-output pair produced by a cyber physical system evaluator;
based on the determining that the computed input-output pair is not within the pre-defined error tolerance, iteratively repeating a process until reaching an iteration when the computed input-output pair is within the pre-defined tolerance or reaching a pre-determined number of times for training the cyber physical system, the process comprising, for each iteration:
adding the computed input-output pair to the training set to generate new training instances for each of the objective functions;
updating, by the one or more processors, the machine learning model of the cyber physical system, wherein the updating comprises utilizing the machine learning algorithm and the updated training set to re-train the machine learning model;
converting, by the one or more processors, the re-trained machine learning model into the equivalent constraint;
optimizing, by the one or more processors, objective functions subject to the constraint, wherein the optimizing comprises utilizing the one or more constraint solvers to compute a new input-output pair; and
determining, by the one or more processors, if the computed new input-output pair is within the pre-defined error tolerance of an input-output pair produced by the cyber physical system evaluator; and
based on reaching the iteration when the computed input-output pair is within the pre-defined tolerance, the method further comprises:
utilizing the computed new input-output pair as the solution, wherein the utilizing comprises automatically maneuvering, via the control capabilities of the cyber physical system, the cyber physical system, according to a value of each value in the new input-output pair, wherein each value is a navigational value and one navigational value is a position changing maneuver in three-dimensional space.
