# US 10,956,727 B1 · Handwritten diagram recognition using deep learning models

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

- Number: US 10,956,727 B1
- Document ID: US10956727B1
- Status: Granted
- Kind: B1
- Application number: 16/567,928
- Filed: 2019-09-11
- Published: 2021-03-11
- Granted: 2021-03-23
- Earliest claimed: 2019-09-11
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Bernhard Schaefer; Andreas Gerber
- Web page: https://patentgrep.com/patent/US10956727B1

## CPC

- G06T 11/26: Drawing of charts or graphs
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06V 10/82: using neural networks
- G06V 30/19173: {Classification techniques}
- G06V 30/36: {Matching; Classification}
- G06V 30/422: Technical drawings; Geographical maps
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06V 30/10: Character recognition
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems, methods, and devices are described herein for handwritten diagram recognition using machine learning. A machine learning component receives a digitally encoded image having a handwritten diagram. The machine learning component localizes and classifies a plurality of objects within the handwritten diagram. A structure recognition component identifies connections between each symbol of the plurality of objects based on content of the respective object. A handwriting recognition component interprets one or more alphanumeric text strings within a portion of the plurality of objects. A digital structured model of the digitally encoded image is automatically generated, without human intervention. The digital structured model has the identified connections among the plurality of objects and is in a computer-readable editable format.

## Claims

### Claim 1

A method implemented by one or more data processors forming part of at least one computing device, the method comprising:
receiving, by a machine learning component, a digitally encoded image comprising a handwritten diagram;
localizing and classifying, by the machine learning component, a plurality of objects within the handwritten diagram by defining a plurality of bounding boxes surrounding the plurality of objects based on a feature map extracted from the digitally encoded image, each bounding box surrounding one object, wherein the feature map is a compressed version of the digitally encoded image having pixels of the digitally encoded image mapped to pixels in the compressed version;
identifying, by a structure recognition component, connections between each symbol of the plurality of objects based on content of the respective object;
interpreting, by a handwriting recognition component, one or more alphanumeric text strings within a portion of the plurality of objects; and
automatically generating, without human intervention, a digital structured model of the digitally encoded image, the digital structured model having the identified connections among the plurality of objects, the digital structured model being in a computer-readable editable format.

### Claim 2 (depends on 1)

The method of claim 1, wherein the localizing and the classifying comprise:
classifying each bounding box as at least one of a terminator block, a process block, an arrow block, a text block, or a decision block.

### Claim 3 (depends on 2)

The method of claim 2, wherein the portion of the plurality of objects comprises each bounding box classified as the text block.

### Claim 4 (depends on 2)

The method of claim 2, further comprising identifying, for each bounding box classified as the arrow block, an arrow head and an arrow tail.

### Claim 5 (depends on 1)

The method of claim 1, further comprising mapping each identified text phrase to a corresponding bounding box based on a spatial location within the digitally encoded image.

### Claim 6 (depends on 1)

The method of claim 1, wherein the connections are identified based on a minimum distance between sides of each bounding box relative to an arrow head or an arrow tail.

### Claim 7 (depends on 1)

The method of claim 1, wherein the machine learning component uses a convolutional neural network (CNN) architecture.

### Claim 8 (depends on 1)

The method of claim 1, wherein the machine learning component is trained using at least one of (i) a plurality of images having random rotational transformations of 0°, 90°, 180°, or 270° or (ii) a plurality of flowcharts having extraneous words scattered throughout each flowchart.

### Claim 9

A system comprising:
one or more data processors; and
memory storing instructions stored on one or more data processors, which when executed perform operations comprising:
receiving, by a machine learning component, a digitally encoded image comprising a handwritten diagram;
localizing and classifying, by the machine learning component, a plurality of objects within the handwritten diagram by defining a plurality of bounding boxes surrounding the plurality of objects based on a feature map extracted from the digitally encoded image, each bounding box surrounding one object, wherein the feature map is a compressed version of the digitally encoded image having pixels of the digitally encoded image mapped to pixels in the compressed version;
identifying, by a structure recognition component, connections between each symbol of the plurality of objects based on content of the respective object;
interpreting, by a handwriting recognition component, one or more alphanumeric text strings within a portion of the plurality of objects; and
automatically generating, without human intervention, a digital structured model of the digitally encoded image, the digital structured model having the identified connections among the plurality of objects, the digital structured model being in a computer-readable editable format.

### Claim 10 (depends on 9)

The system of claim 9, wherein the localizing and the classifying comprise:
classifying each bounding box as at least one of a terminator block, a process block, an arrow block, a text block, or a decision block.

### Claim 11 (depends on 10)

The system of claim 10, wherein the portion of the plurality of objects comprises each bounding box classified as the text block.

### Claim 12 (depends on 10)

The system of claim 10, further comprising identifying, for each bounding box classified as the arrow block, an arrow head and an arrow tail.

### Claim 13 (depends on 10)

The system of claim 10, wherein the machine learning component uses a convolutional neural network (CNN) architecture.

### Claim 14 (depends on 10)

The system of claim 10, wherein the machine learning component is trained using at least one of (i) a plurality of images having random rotational transformations of 0°, 90°, 180°, or 270° or (ii) a plurality of flowcharts having extraneous words scattered throughout each flowchart.

### Claim 15 (depends on 9)

The system of claim 9, further comprising mapping each identified text phrase to a corresponding bounding box based on a spatial location within the digitally encoded image.

### Claim 16 (depends on 9)

The system of claim 9, wherein the connections are identified based on a minimum distance between sides of each bounding box relative to an arrow head or an arrow tail.

### Claim 17

A non-transitory computer program product storing instructions which, when executed by at least one data processor forming part of at least one computing device, implement operations comprising:
receiving, by a machine learning component, a digitally encoded image comprising a handwritten diagram;
localizing and classifying, by the machine learning component, a plurality of objects within the handwritten diagram by defining a plurality of bounding boxes surrounding the plurality of objects based on a feature map extracted from the digitally encoded image, each bounding box surrounding one object, wherein the feature map is a compressed version of the digitally encoded image having pixels of the digitally encoded image mapped to pixels in the compressed version;
identifying, by a structure recognition component, connections between each symbol of the plurality of objects based on content of the respective object;
interpreting, by a handwriting recognition component, one or more alphanumeric text strings within a portion of the plurality of objects; and
automatically generating, without human intervention, a digital structured model of the digitally encoded image, the digital structured model having the identified connections among the plurality of objects, the digital structured model being in a computer-readable editable format.

### Claim 18 (depends on 17)

The non-transitory computer program product of claim 17, wherein the localizing and the classifying comprise:
classifying each bounding box as at least one of a terminator block, a process block, an arrow block, a text block, or a decision block.

### Claim 19 (depends on 17)

The non-transitory computer program product of claim 17, wherein the connections are identified based on a minimum distance between sides of each bounding box relative to an arrow head or an arrow tail.

### Claim 20 (depends on 17)

The non-transitory computer program product of claim 17, wherein the machine learning component uses a convolutional neural network (CNN) architecture.
