# US 2021/0082129 A1 · Discrete Event Simulation with Sequential Decision Making

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

- Number: US 2021/0082129 A1
- Document ID: US20210082129A1
- Status: Published application
- Kind: A1
- Application number: 17/060,957
- Filed: 2020-10-01
- Published: 2021-03-18
- Earliest claimed: 2019-07-01
- Assignees: SAS Institute Inc.
- Applicants: SAS Institute Inc.
- Inventors: Mohammadreza Nazari; Afshin Oroojlooyjadid; Alexander Richard Phelps; Davood Hajinezhad; Bahar Biller; Jonathan Lee Walker; Hamza Mustafa Ghadyali; Kedar Shriram Prabhudesai; Xunlei Wu; Xingqi Du; Jorge Manuel Gomes da Silva; Varunraj Valsaraj; Jinxin Yi
- Web page: https://patentgrep.com/patent/US20210082129A1

## CPC

- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- G05B 13/048: {using a predictor}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/2025: {using centralised failover control functionality}
- G06F 11/203: {using migration}
- G06F 11/2035: {without idle spare hardware}
- G06F 11/2048: {where the redundant components share neither address space nor persistent storage}
- G06F 11/3013: {where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems (testing or monitoring of control systems or parts thereof G05B23/02)}
- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06T 7/0004: {Industrial image inspection}
- G06T 7/277: involving stochastic approaches, e.g. using Kalman filters
- G06T 7/292: Multi-camera tracking
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 20/20: in augmented reality scenes
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06F 2201/805: Real-time
- G06F 2201/86: Event-based monitoring
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20101: Interactive definition of point of interest, landmark or seed
- G06T 2207/30241: Trajectory
- G06V 40/25: {Recognition of walking or running movements, e.g. gait recognition}
- G06V 2201/06: Recognition of objects for industrial automation
- G06V 2201/07: Target detection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A computing system receives historical data. The historical data comprises physical actions taken in an experiment in a physical environment. The experiment comprises user-defined stages. The historical data comprises a recorded outcome, according to user-defined performance indicator(s) related to the user-defined stages, for each physical action taken in the experiment. The system generates, by a discrete event simulator, a computing representation of a simulated environment of the physical environment. The simulated environment comprises processing stages. The system obtains simulation data. The simulation data comprises simulated actions taken by the discrete event simulator. The simulation data comprises a predicted outcome, according to user-defined performance indicator(s) related to the processing stages, for each simulated action taken by the discrete event simulator. The system validates accuracy of the discrete event simulator at predicting the recorded outcome in the experiment. The system trains a computing agent according to a sequential decision-making algorithm.

## Claims

### Claim 1

A computer-program product tangibly embodied in a non-transitory machine-readable storage medium, the computer-program product including computing instructions operable to cause a computing system to:
receive historical data comprising:
multiple physical actions taken in an experiment in a physical environment, wherein the experiment comprises a plurality of user-defined stages; and
a recorded outcome, according to one or more user-defined performance indicators related to the plurality of user-defined stages, for each physical action of the multiple physical actions taken in the experiment;
generate, by a discrete event simulator, a computing representation of a simulated environment of the physical environment, the simulated environment comprising a plurality of processing stages;
obtain simulation data comprising:
multiple simulated actions taken by the discrete event simulator in the simulated environment of the physical environment; and
a predicted outcome, according to one or more user-defined performance indicators related to the plurality of processing stages, for each simulated action of the multiple simulated actions taken by the discrete event simulator;
validate, based on the historical data, accuracy of the discrete event simulator at predicting the recorded outcome in the experiment; and
train a computing agent according to a sequential decision-making algorithm, by:
providing, to the computing agent, a computer policy indicating instruction for the computing agent to take an action according to the sequential decision-making algorithm;
receiving, at the discrete event simulator, from the computing agent, a computer instruction, according to the computer policy, for a simulated action in the discrete event simulator;
responsive to simulating the simulated action according to the computer instruction, generating a new state in the simulated environment, wherein the new state indicates a predicted result if a physical action is conducted in the physical environment according to the simulated action;
computing a predicted performance in the simulated environment associated with the new state; and
transmitting, to the computing agent, the new state with a reward indication based on the predicted performance.

### Claim 2 (depends on 1)

The computer-program product of claim 1, wherein the reward indication is aggregated, by the computing agent, with other reward indications to generate a cumulative reward for determining whether a series of actions by the computing agent improves a baseline performance.

### Claim 3 (depends on 1)

The computer-program product of claim 1,
wherein the sequential decision-making algorithm is a reinforcement learning algorithm; and
wherein the computing system is comprised to further deploy the computing agent trained according to the reinforcement learning algorithm in the physical environment by:
monitoring, by a client node comprising the computing agent, the physical environment for occurrence of one or more of a plurality of learned states according to the reinforcement learning algorithm;
detecting a current state for the physical environment from the plurality of learned states; and
issuing, by the computing agent, based on the current state, a proposed action.

### Claim 4 (depends on 3)

The computer-program product of claim 3,
wherein the monitoring the physical environment comprises:
obtaining image data representing a plurality of images, each of the plurality of images captured over time of a physical environment;
detecting a first object in the image data;
wherein detecting the current state for the physical environment comprises detecting one of a location or trajectory of the first object; and
wherein the issuing the proposed action comprises issuing a recommendation to change a location or trajectory of a second object in the physical environment, wherein the second object is the first object or a different object in the physical environment.

### Claim 5 (depends on 1)

The computer-program product of claim 1, wherein the computing instructions are operable to cause the computing system to:
display a graphical user interface for object-oriented modeling of the physical environment by a user;
receive input, via the graphical user interface, of user selection of objects to represent the physical environment; and
generate the computing representation of the simulated environment in accordance with the user selection.

### Claim 6 (depends on 1)

The computer-program product of claim 1,
wherein the computing system comprises a container with a package of isolated instructions isolated from modeling instructions;
wherein the package of isolated instructions comprise simulator instructions for executing the discrete event simulator in the container; and
wherein the modeling instructions are for executing the sequential decision-making algorithm outside the container.

### Claim 7 (depends on 6)

The computer-program product of claim 6, wherein the computing instructions are operable to cause the computing system to train the computing agent by transmitting from the container:
the new state for a discrete event implemented by the discrete event simulator; and
the reward indication in response to a selected action resulting in the new state.

### Claim 8 (depends on 6)

The computer-program product of claim 6, wherein the container comprises a customized wrapper that emulates the physical environment.

### Claim 9 (depends on 6)

The computer-program product of claim 6,
wherein the container comprises a workspace server for receiving client node requests in a computer language different than the isolated instructions for executing the discrete event simulator; and
wherein the providing, to a computing agent, the computer policy comprises receiving a client node request regarding the computer policy from the workspace server.

### Claim 10 (depends on 6)

The computer-program product of claim 6, wherein the discrete event simulator instructions and the modeling instructions comprises two different computing languages.

### Claim 11 (depends on 1)

The computer-program product of claim 1,
wherein the computing instructions are operable to cause the computing system to generate, by the discrete event simulator, a value that varies as a function of an improvement in the predicted performance over a baseline performance that is a previously predicted performance or threshold predicted performance; and
wherein the transmitting the reward indication comprises transmitting the reward indication to the computing agent indicating the value.

### Claim 12 (depends on 11)

The computer-program product of claim 11, wherein the baseline predicted performance is based on a historical baseline predicted performance corresponding to:
a time period; and
multiple recorded outcomes based on a given action taken by the computing agent according to the sequential decision-making algorithm.

### Claim 13 (depends on 1)

The computer-program product of claim 1,
wherein the receiving, at the discrete event simulator, from the computing agent comprises receiving, from one or more clients nodes, via a Representational State Transfer (REST) Application programming interface (API), input files comprising a starting state vector and a dataset comprising a data representation of a given action recommended by the computing agent; and
wherein the transmitting the new state and the reward indication comprises transmitting via the REST API, a dataset with indicator of the reward and the new state corresponding to the given action.

### Claim 14 (depends on 1)

The computer-program product of claim 1,
wherein the computing instructions are operable to cause the computing system to train the computing agent by receiving, over a communications network, from a first remote server, datasets of the historical data; and
wherein the historical data comprises the multiple physical actions, and recorded outcomes corresponding to the multiple physical actions indexed by time statuses.

### Claim 15 (depends on 14)

The computer-program product of claim 14, wherein the computing instructions are operable to cause the computing system to obtain simulation data of multiple simulated actions taken in the discrete event simulator by generating scenarios in the discrete event simulator for the physical environment without communicating with a given remote server.

### Claim 16 (depends on 1)

The computer-program product of claim 1, wherein the computing system is comprised in one or more edge devices in the physical environment.

### Claim 17 (depends on 1)

The computer-program product of claim 1,
wherein the computing instructions are operable to cause the computing system to track an aspect pertaining to an object in the physical environment, wherein the aspect comprises a position, velocity or region for the object;
wherein the recorded outcome comprises one or more of:
an entry or exit time, of the object, from a given user-defined stage of the plurality of user-defined stages;
a count or length comprising the object;
a waiting or processing time for service to the object at the given user-defined stage of the plurality of user-defined stages;
wherein the new state represents multiple performance indicators at a given processing stage of the plurality of processing stages.

### Claim 18 (depends on 1)

The computer-program product of claim 1, wherein the computing instructions are operable to cause the computing system to receive the historical data by:
wherein the one or more user-defined performance indicators related to the plurality of user-defined stages comprise multiple performance indicators;
selecting, based on the multiple performance indicators, time sequences that provide different values recorded according to the multiple performance indicators for each of the user-defined stages; and
extracting the historical data associated with the time sequences selected.

### Claim 19 (depends on 1)

The computer-program product of claim 1,
wherein the computing instructions are operable to cause the computing system to obtain the simulation data by generating stochastic models for the simulated environment comprising multiple inputs with random variation over a time period of a simulation of the simulated environment;
wherein the multiple inputs with random variation comprise one or more inputs different than one or more inputs observed in the physical environment; and
wherein the multiple simulated actions are responses by the discrete event simulator to the multiple inputs.

### Claim 20

A computer-implemented method comprising:
receiving historical data comprising:
multiple physical actions taken in an experiment in a physical environment, wherein the experiment comprises a plurality of user-defined stages; and
a recorded outcome, according to one or more user-defined performance indicators related to the plurality of user-defined stages, for each physical action of the multiple physical actions taken in the experiment;
generating, by a discrete event simulator, a computing representation of a simulated environment of the physical environment, the simulated environment comprising a plurality of processing stages;
obtaining simulation data comprising:
multiple simulated actions taken by the discrete event simulator in the simulated environment of the physical environment; and
a predicted outcome, according to one or more user-defined performance indicators related to the plurality of processing stages, for each simulated action of the multiple simulated actions taken by the discrete event simulator;
validating, based on the historical data, accuracy of the discrete event simulator at predicting the recorded outcome in the experiment; and
training a computing agent according to a sequential decision-making algorithm, by:
providing, to the computing agent, a computer policy indicating instruction for the computing agent to take an action according to the sequential decision-making algorithm;
receiving, at the discrete event simulator, from the computing agent, a computer instruction, according to the computer policy, for a simulated action in the discrete event simulator;
responsive to simulating the simulated action according to the computer instruction, generating a new state in the simulated environment, wherein the new state indicates a predicted result if a physical action is conducted in the physical environment according to the simulated action;
computing a predicted performance in the simulated environment associated with the new state; and
transmitting, to the computing agent, the new state with a reward indication based on the predicted performance.

### Claim 21 (depends on 20)

The computer-implemented method of claim 20, wherein the reward indication is aggregated, by the computing agent, with other reward indications to generate a cumulative reward for determining whether a series of actions by the computing agent improves a baseline performance.

### Claim 22 (depends on 20)

The computer-implemented method of claim 20,
wherein the sequential decision-making algorithm is a reinforcement learning algorithm; and
wherein the method further comprises deploying the computing agent trained according to the reinforcement learning algorithm in the physical environment by:
monitoring, by a client node comprising the computing agent, the physical environment for occurrence of one or more of a plurality of learned states according to the reinforcement learning algorithm;
detecting a current state for the physical environment from the plurality of learned states; and
issuing, by the computing agent, based on the current state, a proposed action.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22,
wherein the monitoring the physical environment comprises:
obtaining image data representing a plurality of images, each of the plurality of images captured over time of a physical environment;
detecting a first object in the image data;
wherein detecting the current state for the physical environment comprises detecting one of a location or trajectory of the first object; and
wherein the issuing the proposed action comprises issuing a recommendation to change a location or trajectory of a second object in the physical environment, wherein the second object is the first object or a different object in the physical environment.

### Claim 24 (depends on 20)

The computer-implemented method of claim 20, wherein the method further comprises:
displaying a graphical user interface for object-oriented modeling of the physical environment by a user;
receiving input, via the graphical user interface, of user selection of objects to represent the physical environment; and
the generating the computing representation of the simulated environment comprises generating in accordance with the user selection.

### Claim 25 (depends on 20)

The computer-implemented method of claim 20,
wherein the method further comprises generating, by the discrete event simulator, a value that varies as a function of an improvement in the predicted performance over a baseline performance that is a previously predicted performance or threshold predicted performance; and
the transmitting the reward indication comprises transmitting the reward indication to the computing agent indicating the value.

### Claim 26 (depends on 25)

The computer-implemented method of claim 25, wherein the baseline predicted performance is based on a historical baseline predicted performance corresponding to:
a time period; and
multiple recorded outcomes based on a given action taken by the computing agent according to the sequential decision-making algorithm.

### Claim 27 (depends on 20)

The computer-implemented method of claim 20,
wherein the receiving, at the discrete event simulator, from the computing agent comprises receiving, from one or more clients nodes, via a Representational State Transfer (REST) Application programming interface (API), input files comprising a starting state vector and a dataset comprising a data representation of a given action recommended by the computing agent; and
wherein the transmitting the new state and the reward indication comprises transmitting via the REST API, a dataset with indicator of the reward and the new state corresponding to the given action.

### Claim 28 (depends on 20)

The computer-implemented method of claim 20,
wherein the training the computing agent comprises training by receiving, over a communications network, from a first remote server, datasets of the historical data; and
wherein the historical data comprises the multiple physical actions, and recorded outcomes corresponding to the multiple physical actions indexed by time statuses.

### Claim 29 (depends on 28)

The computer-implemented method of claim 28, wherein the obtaining the simulation data comprises obtaining simulation data of multiple simulated actions taken in the discrete event simulator by generating scenarios in the discrete event simulator for the physical environment without communicating with a given remote server.

### Claim 30

A computing system comprising processor and memory, the memory containing instructions executable by the processor wherein the computing system is configured to:
receive historical data comprising:
multiple physical actions taken in an experiment in a physical environment, wherein the experiment comprises a plurality of user-defined stages; and
a recorded outcome, according to one or more user-defined performance indicators related to the plurality of user-defined stages, for each physical action of the multiple physical actions taken in the experiment;
generate, by a discrete event simulator, a computing representation of a simulated environment of the physical environment, the simulated environment comprising a plurality of processing stages;
obtain simulation data comprising:
multiple simulated actions taken by the discrete event simulator in the simulated environment of the physical environment; and
a predicted outcome, according to one or more user-defined performance indicators related to the plurality of processing stages, for each simulated action of the multiple simulated actions taken by the discrete event simulator;
validate, based on the historical data, accuracy of the discrete event simulator at predicting the recorded outcome in the experiment; and
train a computing agent according to a sequential decision-making algorithm, by:
providing, to the computing agent, a computer policy indicating instruction for the computing agent to take an action according to the sequential decision-making algorithm;
receiving, at the discrete event simulator, from the computing agent, a computer instruction, according to the computer policy, for a simulated action in the discrete event simulator;
responsive to simulating the simulated action according to the computer instruction, generating a new state in the simulated environment, wherein the new state indicates a predicted result if a physical action is conducted in the physical environment according to the simulated action;
computing a predicted performance in the simulated environment associated with the new state; and
transmitting, to the computing agent, the new state with a reward indication based on the predicted performance.
