# US 2021/0173638 A1 · Design pattern recognition

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

- Number: US 2021/0173638 A1
- Document ID: US20210173638A1
- Status: Published application
- Kind: A1
- Application number: 16/703,041
- Filed: 2019-12-04
- Published: 2021-06-10
- Earliest claimed: 2019-12-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Zhi Peng JIA; Xiang Yu YANG; Zhi CAO; De Shuo KONG; Jing WU; Rong Fu HE
- Web page: https://patentgrep.com/patent/US20210173638A1

## CPC

- G06F 8/74: Reverse engineering; Extracting design information from source code
- G06F 8/24: {Object-oriented}
- G06F 8/315: {Object-oriented languages}
- G06F 8/33: Intelligent editors
- G06F 8/36: Software reuse
- G06F 8/73: Program documentation
- G06F 8/75: Structural analysis for program understanding
- G06F 8/35: model driven
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods of computer program code or business process design pattern recognition are provided. In embodiments, a method includes identifying, by the computing device, predefined elements and relationships between the elements in a digital industry product based on stored rules; generating, by the computing device, a diagram based on stored image rules, the diagram including graphical notations and text-based information representing the elements and the relationships between the elements; removing, by the computing device, the text-based information from the diagram to produce a modified diagram; and determining, by the computing device, that the modified diagram includes at least one predetermined pattern from a plurality of stored patterns using image object detection.

## Claims

### Claim 1

A computer-implemented method comprising:
identifying, by a computing device, predefined elements and relationships between the elements in a digital industry product based on stored rules;
generating, by the computing device, a diagram based on stored image rules, the diagram including graphical notations and text-based information representing the elements and the relationships between the elements;
removing, by the computing device, the text-based information from the diagram to produce a modified diagram; and
determining, by the computing device, that the modified diagram includes at least one predetermined pattern from a plurality of stored patterns using image object detection.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising generating, by the computing device, a report including information regarding the at least one predetermined pattern.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the report includes characteristics of the predetermined pattern.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, further comprising sending, by the computing device, the report to a user.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the digital industry product comprises one of program code and business process data.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising filtering, by the computing device, the stored patterns to generate a subset of the stored patterns based on the elements, the relationship between the elements, and keywords in the digital industry product, wherein the determining the at least one predetermined pattern comprises determining the at least one predetermined pattern from the subset of the stored patterns.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the graphical notations comprise Unified Modeling Language (UML) notations.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein a service provider at least one of creates, maintains, deploys and supports the computing device.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the removing the text-based information from the diagram to produce a modified diagram and the determining that the modified diagram includes at least one predetermined pattern from a plurality of stored patterns using image object detection are provided by a service provider on a subscription, advertising, and/or fee basis.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the computing device includes software provided as a service in a cloud environment.

### Claim 11

A computer program product, the computer program product comprising one or more computer readable storage media having program instructions collectively stored on the one or more computer readable storage media, the program instructions executable to:
obtain program code;
identify classes and relationships between classes in the program code based on stored rules;
generate a class diagram based on stored image rules, the class diagram including graphical notations and text-based information regarding the program code;
remove the text-based information from the class diagram to produce a modified class diagram;
determine that the modified class diagram includes at least one predetermined pattern from a plurality of stored patterns using image object detection; and
generate a report including information regarding the at least one predetermined pattern.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the report includes characteristics of the predetermined pattern.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the program instructions further cause the computing device to send the report to a remote computing device.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the program instructions further cause the computing device to filter the stored patterns to generate a subset of the stored patterns based on the classes, the relationships between the classes, and keywords in the program code, wherein the determining the at least one predetermined pattern comprises determining the at least one predetermined pattern from the subset of the stored patterns.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the graphical notations comprise Unified Modeling Language (UML) notations.

### Claim 16

A system comprising:
a processor, a computer readable memory, and a computer readable storage medium;
program instructions to obtain a digital industry product from a remote computing device;
program instructions to identify elements and relationships between elements in the digital industry product based on stored rules;
program instructions to generate a diagram based on stored image rules, the diagram including graphical notations and text-based information representing the elements and the relationships between the elements;
program instructions to remove the text-based information from the diagram to produce a modified diagram;
program instructions to determine, by comparing objects in the modified diagram to objects in a plurality of stored patterns using image object detection, that the modified diagram includes at least one predetermined pattern from the plurality of stored patterns; and
program instructions to generate a report including information regarding the at least one predetermined pattern,
wherein the program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.

### Claim 17 (depends on 16)

The system of claim 16, wherein the modified diagram comprising an image without any text, and the report includes characteristics of the predetermined pattern.

### Claim 18 (depends on 16)

The system of claim 16, further comprising program instructions to send the report to a remote participant device, wherein the comparing objects in the modified diagram to objects in the plurality of stored patterns using image object detection utilizes edge matching techniques to detect edges in the modified diagram and match the edges of the modified diagram with edges of the at least one predetermined pattern from the plurality of stored patterns.

### Claim 19 (depends on 16)

The system of claim 16, further comprising program instructions to generate a subset of the stored patterns based on the elements, the relationships between the elements, and keywords in the digital industry product, wherein the determining the at least one predetermined pattern comprises determining the at least one predetermined pattern from the subset of the stored patterns.

### Claim 20 (depends on 16)

The system of claim 16, wherein the graphical notations comprise Unified Modeling Language (UML) notations.
