# US 2022/0283787 A1 · System and method supporting graphical programming based on neuron blocks, and storage medium

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

- Number: US 2022/0283787 A1
- Document ID: US20220283787A1
- Status: Published application
- Kind: A1
- Application number: 17/637,541
- Filed: 2019-08-27
- Published: 2022-09-08
- Earliest claimed: 2019-08-27
- Assignees: Siemens Aktiengesellschaft
- Applicants: Siemens Aktiengesellschaft
- Inventors: Li San TANG; Fei Huang HU; Bing Chao TANG
- Web page: https://patentgrep.com/patent/US20220283787A1

## CPC

- G05B 19/056: {Programming the PLC}
- G06F 8/34: Graphical or visual programming
- G06N 3/10: Interfaces, programming languages or software development kits, e.g. for simulating neural networks
- 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)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A coding system comprises: a neuron block code library storing a program code of each neuron block and a corresponding description file; a programming element library storing a program code of each programming element and a corresponding description file; a graphical management module for extracting the description files from at least one of the neuron block code library or the programming element library, and generating corresponding graphics, wherein the graphics conform to an industrial standard; a graphical modeling interface for presenting the graphics generated by the graphical management module, and receiving an artificial intelligence graphical model established by a user on the basis of the graphics; and a code converter for converting the AI graphical model into a corresponding coding program. The system enables a user who is accustomed to industrial coding such as a PLC to realize the coding of an AI application without barriers.

## Claims

### Claim 1

A system supporting graphical programming based on neuron blocks, the system comprising:
a neuron block code library, which stores program code and a corresponding description file of each neuron block corresponding to each functional element in an AI;
a programming element library, which stores program code and a corresponding description file of each programming element used to implement various decision logics and control logics;
a graphical management module to
extract the description file of each neuron block from the neuron block code library,
generate a corresponding neuron block graphic according to the description file of each neuron block,
extract the description file of each programming element from the programming element library, and
generate a corresponding programming element graphic according to the description file of each programming element; wherein
both the neuron block graphics and the programming element graphics conform to a set industrial standard;
a graphical modeling interface to present the neuron block graphics and the programming element graphics generated by the graphical management module, and to receive a graphical AI model established by at least one of appropriate neuron block graphics or programming element graphics selected by a user based on the set industrial standard; and
a code converter to
extract the program code from at least one of the neuron block code library or the programming element library according to the least one of the appropriate neuron block graphics or programming element graphic, and
generate a complete coded program according to a connection and interface data between adjacent graphics in the at least one of the appropriate neuron block graphics or programming element graphics.

### Claim 2 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein the set industrial standard is IEC61131-3.

### Claim 3 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein
the program code of each neuron block includes, for each neuron block, a plurality of program code segments corresponding to different programming languages and different AI frameworks;
the program code for each programming element includes, for each programming element, a plurality of program code segments corresponding to different programming languages and different AI frameworks; and
the code converter is configured to extract the program code from the at least one of the neuron block code library or the programming element library based on the at least one of the appropriate neuron block graphics or programming element graphics and a target programming language and a target AI framework corresponding to a user-configured target system.

### Claim 4 (depends on 3)

The system supporting graphical programming based on neuron blocks as claimed in claim 3, wherein the different programming languages and different AI frameworks include TensorFLow framework and PyTorch framework in Python, and Caffe framework in C++.

### Claim 5 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein the neuron blocks comprise one or more of:
a two-dimensional convolution function block,
a two-dimensional max pooling block,
a two-dimension to one-dimension flattening block, or
a many-to-few integration and conversion block.

### Claim 6 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein the programming elements include one or more of:
a programming element for performing IF logic,
a programming element for performing loop control logic,
a programming element for performing AND-OR control logic, or
a programming element for performing ENABLE and DISABLE control logic.

### Claim 7 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein the data types used in the program code of each neuron block include:
basic data types conforming to the set industrial standard; and
additional data types of a corresponding AI framework, including TUPLE, TENSOR or NONE.

### Claim 8 (depends on 1)

The system supporting graphical programming based on neuron blocks as claimed in claim 1, wherein the code converter is configured to
receive a coded program of an AI model input by the user,
parse the coded program line by line,
obtain a keyword capable of representing a neuron block or programming element,
determine a corresponding neuron block or programming element according to the keyword,
determine a connection between the corresponding neuron block graphic or programming element graphic and its interface data and an adjacent graphic according to connection and interface data between at least one of adjacent neuron blocks or programming elements,
generate the graphical AI model, and
provide the graphical AI model to the graphical modeling interface for display.

### Claim 9

A method supporting graphical programming based on neuron blocks, the method comprising:
storing, in advance in a neuron block code library, program code and a corresponding description file of each neuron block corresponding to each functional element in AI;
storing, in advance in a programming element library, program code and a corresponding description file of each programming element used to implement various decision logics and control logics;
at start, extracting the description file of each neuron block from the neuron block code library, generating a corresponding neuron block graphic according to the description file of each neuron block, extracting the description file of each programming element from the programming element library, and generating a corresponding programming element graphic according to the description file of each programming element; wherein
both the neuron block graphics and the programming element graphics conform to a set industrial standard;
presenting the neuron block graphics and the programming element graphics in a graphical modeling interface;
receiving a graphical AI model established by at least one of appropriate neuron block graphics or programming element graphics selected by a user based on the set industrial standard; and
extracting the program code from at least one of the neuron block code library or the programming element library according to the at least one of the appropriate neuron block graphics or programming element graphics; and
generating a complete coded program according to a connection and interface data between adjacent graphics in the at least one of the appropriate neuron block graphics or programming element graphics.

### Claim 10 (depends on 9)

The method supporting graphical programming based on neuron blocks as claimed in claim 9, wherein
the program code of each neuron block includes, for each neuron block, a plurality of program code segments corresponding to different programming languages and different AI frameworks;
the program code for each programming element includes, for each programming element, a plurality of program code segments corresponding to different programming languages and different AI frameworks; and
the extracting the program code from at least one of the neuron block code library or the programming element library according to the at least one of the appropriate neuron block graphics or programming element graphics includes
extracting the program code from the at least one of the neuron block code library or the programming element library based on the at least one of the appropriate neuron block graphics or programming element graphics and a target programming language and a target AI framework corresponding to a user-configured target system.

### Claim 11 (depends on 9)

The method supporting graphical programming based on neuron blocks as claimed in claim 9, wherein the programming elements include one or more of:
a programming element for performing IF logic,
a programming element for performing loop control logic,
a programming element for performing AND-OR control logic, or
a programming element for performing ENABLE and DISABLE control logic.

### Claim 12 (depends on 9)

The method supporting graphical programming based on neuron blocks as claimed in claim 9, wherein data types used in the program code of each neuron block include:
basic data types conforming to the set industrial standard; and
additional data types of a corresponding AI framework, including TUPLE, TENSOR or NONE.

### Claim 13 (depends on 9)

The method supporting graphical programming based on neuron blocks as claimed in claim 9, further comprising:
receiving a coded program of an AI model input by the user;
parsing the coded program line by line;
obtaining a keyword capable of representing a neuron block or programming element;
determining a corresponding neuron block or programming element according to the keyword;
determining a connection between the corresponding neuron block graphic or programming element graphic and its interface data and an adjacent graphic according to connection and interface data between at least one of adjacent neuron blocks or programming elements;
generating the graphical AI model; and
displaying the graphical AI model through the graphical modeling interface.

### Claim 14 (depends on 9)

A system supporting graphical programming based on neuron blocks, the system comprising:
at least one memory to store a computer program;
at least one database to provide a neuron block code library and a programming element library, the neuron block code library configured to store program code and a corresponding description file of each neuron block corresponding to each functional element in AI, and the programming element library configured to store program code and a corresponding description file of each programming element used to implement various decision logics and control logics;
a display to provide a graphical modeling interface; and
at least one processor to execute the computer program stored in the at least one memory to perform a method supporting the graphical programming based on the neuron blocks as claimed in claim 9.

### Claim 15 (depends on 9)

A non-transitory computer-readable storage medium, which has a computer program stored thereon, the computer program being executable by a processor to cause the processor to perform a method supporting graphical programming based on neuron blocks as claimed in claim 9.

### Claim 16 (depends on 3)

The system supporting graphical programming based on neuron blocks as claimed in claim 3, wherein the code converter is configured to
receive a coded program of an AI model input by the user,
parse the coded program line by line,
obtain a keyword capable of representing a neuron block or programming element,
determine a corresponding neuron block or programming element according to the keyword,
determine a connection between the corresponding neuron block graphic or programming element graphic and its interface data and an adjacent graphic according to connection and interface data between at least one of adjacent neuron blocks or programming elements,
generate a graphical AI model, and
provide the graphical AI model to the graphical modeling interface for display.

### Claim 17 (depends on 7)

The system supporting graphical programming based on neuron blocks as claimed in claim 7, wherein the code converter is configured to
receive a coded program of an AI model input by the user,
parse the coded program line by line,
obtain a keyword capable of representing a neuron block or programming element,
determine a corresponding neuron block or programming element according to the keyword,
determine a connection between the corresponding neuron block graphic or programming element graphic and its interface data and an adjacent graphic according to connection and interface data between at least one of adjacent neuron blocks or programming elements,
generate the graphical AI model, and
provide the graphical AI model to the graphical modeling interface for display.

### Claim 18 (depends on 10)

The method supporting graphical programming based on neuron blocks as claimed in claim 10, further comprising:
receiving a coded program of an AI model input by the user;
parsing the coded program line by line;
obtaining a keyword capable of representing a neuron block or programming element;
determining a corresponding neuron block or programming element according to the keyword;
determining a connection between the corresponding neuron block graphic or programming element graphic and its interface data and an adjacent graphic according to connection and interface data between at least one of adjacent neuron blocks or programming elements;
generating the graphical AI model; and
displaying the graphical AI model through a graphical modeling interface.

### Claim 19 (depends on 13)

A system supporting graphical programming based on neuron blocks, the system comprising:
at least one memory to store a computer program;
at least one database to provide a neuron block code library and a programming element library, the neuron block code library configured to store program code and a corresponding description file of each neuron block corresponding to each functional element in AI, and the programming element library configured to store program code and a corresponding description file of each programming element used to implement various decision logics and control logics;
a display to provide a graphical modeling interface; and
at least one processor to execute the computer program stored in the at least one memory to perform a method supporting the graphical programming based on the neuron blocks as claimed in claim 13.

### Claim 20 (depends on 13)

A non-transitory computer-readable storage medium, which has a computer program stored thereon, the computer program being executable by a processor to cause the processor to perform a method supporting graphical programming based on neuron blocks as claimed in claim 13.
