# US 2022/0350308 A1 · Method for automatically generating a behavior tree program for controlling a machine

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

- Number: US 2022/0350308 A1
- Document ID: US20220350308A1
- Status: Published application
- Kind: A1
- Application number: 17/724,731
- Filed: 2022-04-20
- Published: 2022-11-03
- Earliest claimed: 2021-04-30
- Assignees: Siemens Aktiengesellschaft
- Applicants: Siemens Aktiengesellschaft
- Inventors: Axel Reitinger; Markus Michael Geipel; Johannes Kehrer; Ferdinand Strixner; Dieter Bogdoll
- Web page: https://patentgrep.com/patent/US20220350308A1

## CPC

- G05B 19/042: using digital processors (G05B19/05 takes precedence)
- G05B 19/4155: characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program
- G05B 2219/33051: BBC behavior based control, stand alone module, cognitive, independent agent
- 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)

## Abstract

A computer implemented method for automatically generating a behavior tree program for controlling a machine includes the steps of: transmitting a sequence of machine commands input by a user from a user interface to a controller, receiving supervision data in the user interface from the controller while the machine commands are executed in the controller controlling the machine, observing and copying the machine commands and supervision data transmitted between the controller and the user interface, storing the machine commands and the supervision data in a logging unit, generating a behavior tree program derived from the stored machine commands and the supervision data by statistical inference, and sending the generated behavior tree program to the controller unit to control the machine.

## Claims

### Claim 1

A computer implemented method for automatically generating a behavior tree program for controlling a machine, the method comprising the steps of:
transmitting a sequence of machine commands input by a user from a user interface to a controller,
receiving supervision data in the user interface from the controller while the machine commands are executed in the controller controlling the machine,
observing and copying the machine commands and supervision data transmitted between the controller and the user interface,
storing the machine commands and the supervision data in a logging unit,
generating a behavior tree program derived from the stored machine commands and the supervision data by statistical interference, and
sending the generated behavior tree program to the controller unit to control the machine.

### Claim 2 (depends on 1)

The computer implemented method according to claim 1, wherein the machine command activates a machine behavior, a functionality or an operational state in the machine.

### Claim 3 (depends on 1)

The computer implemented method according to claim 1, wherein the supervision data comprises status information and/or sensor data of the machine when controlled by the controller executing the machine commands.

### Claim 4 (depends on 1)

The computer implemented method according to claim 1, wherein at least one task of the behavior tree program is derived from at least one machine command at the inference unit.

### Claim 5 (depends on 4)

The computer implemented method according to claim 4, wherein the structure of the behavior tree program is inferred by analyzing
which of the derived tasks are executed in which temporal relation to each other,
the return value of the supervision data,
the parameter settings for the task with respect to the execution of the task,
the co-occurrence of supervision data values and changes of supervision data value with task execution, task cancellations and task parametrizations.

### Claim 6 (depends on 5)

The computer implemented method according to claim 5, wherein a composite, combining several tasks of the behavior tree program, is inferred by analyzing a sequence of successfully performed tasks and failed tasks and a transition probability for each pair of tasks in the sequence.

### Claim 7 (depends on 4)

The computer implemented method according to claim 4, wherein the inference unit provides suggestions for further machine commands to the user interface to be entered by the user.

### Claim 8 (depends on 4)

The computer implemented method according to claim 4, wherein the inference unit provides a suggestion for a further behavior tree structure element to the user interface to be entered by the user.

### Claim 9 (depends on 1)

The computer implemented method according to claim 1, wherein the inference unit comprises a semantic model providing domain knowledge on at least one of a sequence of tasks, conditions of the tasks and a transition probability for each pair of tasks in the sequence related to a specific machine operation scenario.

### Claim 10 (depends on 1)

The computer implemented method according to claim 1, wherein the inference unit provides a recommendation for a behavior tree structure element to the user interface based on an assumption with respect to a further intended machine operation for verification or modification of the recommendation.

### Claim 11 (depends on 1)

The computer implemented method according to claim 1, wherein the generated behavior tree program is provided from the inferring unit to the controller for controlling the machine.

### Claim 12

An assistance system for assisted generating a behavior tree program for a machine,
comprising a programming interface, an observer unit, a logging unit and an inference unit, wherein
the interface unit is configured to transmit a sequence of machine commands input by a user from the user interface to a controller, and to receive supervision data from the controller while the machine commands are executed in the controller controlling the machine,
the observer unit is configured to observe and to copy the machine commands and the supervision data transmitted between the controller and the user interface,
the logging unit is configured to store the machine commands and the supervision data, and
the inference unit is configured to generate a behavior tree program derived from the stored machine commands and supervision data by statistical interference, and to send the generated behavior tree program at the controller unit to operate the machine.

### Claim 13 (depends on 12)

The assistance system according to claim 12, wherein the user interface comprises a graphical user interface configured to display the supervision data, a suggestion or a recommendation to the user and/or input the sequence of machine commands or feedback to the suggestion and/or recommendations by the user.

### Claim 14 (depends on 12)

The assistance system according to claim 12, wherein the logging unit is configured as a knowledge graph or a knowledge base.

### Claim 15 (depends on 1)

A computer program product, comprising a computer readable hardware storage device having computer readable program code stored therein, said program code executable by a processor of a computer system to implement a method directly loadable into the internal memory of a digital computer, comprising software code portions for performing the steps according to claim 1 when the product is run on the digital computer.
