# US 2021/0287049 A1 · Method and system for processing an image and performing instance segmentation using affinity graphs

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

- Number: US 2021/0287049 A1
- Document ID: US20210287049A1
- Status: Published application
- Kind: A1
- Application number: 17/264,164
- Filed: 2018-09-21
- Published: 2021-09-16
- Earliest claimed: 2018-09-21
- Assignees: Toyota Motor Europe; Katholieke Universiteit Leuven
- Applicants: Toyota Motor Europe; Katholieke Universiteit Leuven
- Inventors: Hiroaki SHIMIZU; Bert DE BRABANDERE; Davy NEVEN; Marc PROESMANS; Luc VAN GOOL
- Web page: https://patentgrep.com/patent/US20210287049A1

## CPC

- G06V 20/00: Scenes; Scene-specific elements (control of digital cameras H04N23/60)
- G06F 18/2163: {Partitioning the feature space}
- G06F 18/2413: based on distances to training or reference patterns
- G06F 18/29: {Graphical models, e.g. Bayesian networks}
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 20/56: exterior to a vehicle by using sensors mounted on the vehicle
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A system and a method for processing an image so as to perform instance segmentation. The system/method includes: a—inputting (S1) the image (IMG) to a first neural network configured to output an affinity graph (AF), and b—inputting (S2), to a second neural network, the affinity graph and a predefined seed-map (SM), so as to determine whether other pixels belong to a same instance, and set at a first value the value of the other pixels determined as belonging to the same instance.

## Claims

### Claim 1

A method for processing an image so as to perform instance segmentation, comprising:
a—inputting the image to a first neural network configured to output, for each pixel of the image, an affinity vector wherein the components of the vector are each associated with other pixels of the image at positions relative to the pixel predefined in an affinity pattern, the value of each component being set to a first value if the neural network determines that the other pixel associated with the component belongs to the same instance as the pixel of the image and set to a second value which differs from the first value if the neural network determines that the other pixel associated with the component does not belong to the same instance as the pixel of the image, the affinity vectors of all the pixels of the image forming an affinity graph,
b—inputting to a second neural network, the affinity graph and a predefined seed-map having the resolution of the image and at least one pixel having a value set to the first value, so as to:
determine whether other pixels belong to the same instance as the at least one pixel of the seed-map having a value set to the first value, and
set at the first value the value of the other pixels determined as belonging to the same instance as the at least one pixel of the seed-map having a value set to the first value.

### Claim 2 (depends on 1)

The method of claim 1, comprising iteratively repeating step b using the seed-map modified in the previous iteration.

### Claim 3 (depends on 2)

The method of claim 2, wherein step b comprises:
for each pixel of the seed-map, determining the soft minimum vector of the affinity vector in the affinity graph associated with the pixel of the seed-map, and of a second vector having components which are the values of other pixels of the seed-map at positions relative to the pixel predefined in the affinity pattern,
determining the soft maximum of the values of said soft minimum vector,
setting the value of the pixel to said soft maximum.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first neural network is a deep neural network and the second neural network is a recurrent neural network.

### Claim 5 (depends on 1)

The method of claim 1, wherein the predefined seed-map is generated by the first neural network.

### Claim 6 (depends on 1)

The method of claim 1, comprising a preliminary training step including processing a known template image and determining a loss, so as to back-propagate the loss through at least the first neural network.

### Claim 7

A system for processing an image so as to perform instance segmentation, comprising:
a module for inputting the image to a first neural network configured to output, for each pixel of the image, an affinity vector wherein the components of the vector are each associated with other pixels of the image at positions relative to the pixel predefined in an affinity pattern, the value of each component being set to a first value if the neural network determines that the other pixel associated with the component belongs to the same instance as the pixel of the image and set to a second value which differs from the first value if the neural network determines that the other pixel associated with the component does not belong to the same instance as the pixel of the image, the affinity vectors of all the pixels of the image forming an affinity graph,
a module for inputting, to a second neural network, the affinity graph and a predefined seed-map having the resolution of the image and at least one pixel having a value set to the first value, so as to:
determine whether other pixels belong to the same instance as the at least one pixel of the seed-map having a value set to the first value, and
set at the first value the value of the other pixels determined as belonging to the same instance as the at least one pixel of the seed-map having a value set to the first value.

### Claim 8 (depends on 1)

A computer program including instructions for executing the steps of a method according to claim 1 when said program is executed by a computer.

### Claim 9 (depends on 1)

A recording medium readable by a computer and having recorded thereon a computer program including instructions for executing the steps of a method according to claim 1.
