# US 2022/0292007 A1 · Inserting probabilistic models in deterministic workflows for robotic process automation and supervisor system

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

- Number: US 2022/0292007 A1
- Document ID: US20220292007A1
- Status: Published application
- Kind: A1
- Application number: 17/828,682
- Filed: 2022-05-31
- Published: 2022-09-15
- Earliest claimed: 2019-10-15
- Assignees: UiPath, Inc.
- Applicants: UiPath, Inc.
- Inventors: Prabhdeep Singh; Anton McGonnell
- Web page: https://patentgrep.com/patent/US20220292007A1

## CPC

- G06F 11/327: {Alarm or error message display}
- G06F 11/0754: {by exceeding limits}
- G06F 11/0769: {Readable error formats, e.g. cross-platform generic formats, human understandable formats}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06N 20/00: Machine learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Probabilistic models may be used in a deterministic workflow for robotic process automation (RPA). Machine learning (ML) introduces a probabilistic framework where the outcome is not deterministic, and therefore, the steps are not deterministic. Deterministic workflows may be mixed with probabilistic workflows, or probabilistic activities may be inserted into deterministic workflows, in order to create more dynamic workflows. A supervisor system may be used to monitor an ML model and raise an alarm, disable an RPA robot, bypass an RPA robot, or roll back to a previous version of the ML model when an error is detected by a data drift detector, a concept drift detector, or both.

## Claims

### Claim 1

A computer-implemented method for implementing probabilistic models in a deterministic workflow for robotic process automation (RPA), comprising:
generating a deterministic RPA workflow for RPA robots, by an RPA designer application, the RPA workflow comprising a deterministic activity;
generating an RPA robot configured to execute the deterministic RPA workflow, by the RPA designer application; and
replacing the deterministic activity with a probabilistic activity, wherein
the probabilistic activity is configured to call a machine learning (ML) model.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
combining the deterministic RPA workflow with a probabilistic RPA workflow.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
collecting data from the RPA robot when executing the deterministic RPA workflow, collecting data from computing systems on which the RPA robot is running, or both.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising:
periodically retraining the ML model using the collected data.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the replacing of the deterministic activity in the RPA workflow with the probabilistic activity occurs after the ML model achieves a confidence threshold.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising:
generating an RPA robot configured to execute the RPA workflow comprising the probabilistic activity; and
deploying the RPA robot that is configured to execute the RPA workflow comprising the probabilistic activity.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
monitoring the ML model to ensure that the ML model is operating correctly using metrics on an input side of the ML model via a data drift detector and on an output side of the ML model using a concept drift detector.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, further comprising:
raising an alarm when the data drift detector, the concept drift detector, or both, indicate an error.

### Claim 9 (depends on 7)

The computer-implemented method of claim 7, wherein when the data drift detector, the concept drift detector, or both, indicate an error, the method further comprises:
disabling or bypassing the RPA robot.

### Claim 10 (depends on 7)

The computer-implemented method of claim 7, wherein when the data drift detector, the concept drift detector, or both, indicate an error, the method further comprises:
rolling back to a previous version of the ML model.

### Claim 11

A non-transitory computer-readable medium storing a computer program for implementing probabilistic models in a deterministic workflow for robotic process automation (RPA), the computer program configured to cause at least one processor to:
generate an RPA robot configured to execute a deterministic RPA workflow, by the RPA designer application, the RPA workflow comprising a deterministic activity; and
replace the deterministic activity with a probabilistic activity, by the RPA designer application, wherein
the probabilistic activity is configured to call a machine learning (ML) model.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the computer program is further configured to cause the at least one processor to:
combine the deterministic RPA workflow with a probabilistic RPA workflow.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the computer program is further configured to cause the at least one processor to:
collect data from the generated RPA robot when executing the deterministic RPA workflow, collect data from computing systems on which the RPA robot is running, or both.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the computer program is further configured to cause the at least one processor to:
periodically retrain the ML model using the collected data, wherein
the deterministic activity in the RPA workflow is replaced with the probabilistic activity after the ML model achieves a confidence threshold.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the computer program is further configured to cause the at least one processor to:
monitor the ML model to ensure that the ML model is operating correctly using metrics on an input side of the ML model via a data drift detector and on an output side of the ML model using a concept drift detector.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein when the data drift detector, the concept drift detector, or both, indicate an error, the computer program is further configured to cause the at least one processor to:
disable the RPA robot, bypass the RPA robot, or roll back to a previous version of the ML model.

### Claim 17

A computer-implemented method, comprising:
monitoring, by a supervisor system, a machine learning (ML) model called by a probabilistic activity in an RPA workflow executed by an RPA robot, wherein
the supervisor system is configured to ensure that the ML model is operating correctly using metrics on an input side of the ML model via a data drift detector and on an output side of the ML model using a concept drift detector.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the concept drift detector determines whether the output falls within a predetermined range.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, further comprising:
raising an alarm, by the supervisor system, when the data drift detector, the concept drift detector, or both, indicate an error.

### Claim 20 (depends on 17)

The computer-implemented method of claim 17, wherein when the data drift detector, the concept drift detector, or both, indicate an error, the method further comprises:
disabling the RPA robot, bypassing the RPA robot, or rolling back to a previous version of the ML model, by the supervisor system.
