# US 2017/0287137 A1 · Utilizing deep learning for boundary-aware image segmentation

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

- Number: US 2017/0287137 A1
- Document ID: US20170287137A1
- Status: Published application
- Kind: A1
- Application number: 15/086,590
- Filed: 2016-03-31
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Adobe Systems Incorporated
- Applicants: Adobe Systems Incorporated
- Inventors: Zhe Lin; Yibing Song; Xin Lu; Xiaohui Shen; Jimei Yang
- Web page: https://patentgrep.com/patent/US20170287137A1

## CPC

- G06T 7/11: Region-based segmentation
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06T 7/12: Edge-based segmentation
- G06T 7/13: Edge detection
- G06V 10/28: Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 40/103: {Static body considered as a whole, e.g. static pedestrian or occupant recognition}
- G06T 2207/20076: Probabilistic image processing
- G06T 2207/20081: Training; Learning
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods are disclosed for segmenting a digital image to identify an object portrayed in the digital image from background pixels in the digital image. In particular, in one or more embodiments, the disclosed systems and methods use a first neural network and a second neural network to generate image information used to generate a segmentation mask that corresponds to the object portrayed in the digital image. Specifically, in one or more embodiments, the disclosed systems and methods optimize a fit between a mask boundary of the segmentation mask to edges of the object portrayed in the digital image to accurately segment the object within the digital image.

## Claims

### Claim 1

In a digital medium environment for editing digital visual media, a method of using deep learning to segment objects from digital visual media, the method comprising:
generating, by at least one processor with a first neural network, a probability map for an input image, wherein the probability map indicates object pixels predicted to correspond to an object portrayed in the input image;
generating, by the at least one processor with a second neural network, a boundary map for the input image, wherein the boundary map indicates edge pixels predicted to correspond to edges of the object portrayed in the input image;
based on the probability map and the boundary map, generating, by the at least one processor, a segmentation mask for the object by optimizing a fit between a mask boundary of the object and the edges of the object; and
based on the segmentation mask, identifying, by the at least one processor, a set of pixels corresponding to the object portrayed in the input image.

### Claim 2 (depends on 1)

The method of claim 1, wherein optimizing the fit between the mask boundary of the object and the edges of the object comprises an iterative optimization process using a combination of color modeling and boundary modeling.

### Claim 3 (depends on 1)

The method of claim 1, further comprising generating a boundary refinement map to determine boundary refinement pixels using the probability map and the boundary map, wherein the boundary refinement pixels comprise pixels identified both as object pixels in the probability map and as edge pixels in the boundary map.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
analyzing areas of the input image corresponding to the boundary refinement pixels; and
wherein optimizing the fit between the mask boundary of the segmentation mask and the edges of the object comprises iteratively fitting the mask boundary to the edges of the object based analyzing the areas of the input image corresponding to the boundary refinement pixels.

### Claim 5 (depends on 4)

The method of claim 4, wherein analyzing the areas of the input image corresponding to the boundary refinement pixels comprises performing a color modeling function on the areas using Gaussian mixture models.

### Claim 6 (depends on 1)

The method of claim 1, further comprising training the first neural network with a first plurality of digital training image pairs, wherein each digital training image pair of the first plurality of digital training image pairs comprises an object probability digital training image and a ground mask that identifies pixels corresponding to an object within the object probability digital training image.

### Claim 7 (depends on 6)

The method of claim 6, further comprising training the second neural network with a second plurality of digital training image pairs, wherein each digital training image pair of the second plurality of digital training image pairs comprises an object boundary digital training image and a boundary mask that identifies pixels corresponding to edges of an object within the object boundary digital training image.

### Claim 8 (depends on 7)

The method of claim 7, wherein training the first neural network and training the second neural network comprises fine-tuning the first neural network and fine-tuning the second neural network based on the first plurality of digital training image pairs and the second plurality of digital training image pairs having a related data domain.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
detecting the object portrayed in the input image;
determining a bounded within which the object portrayed in the image is located;
creating a cropped portion of a portion of the input image corresponding to the bounded area;
providing the cropped portion to the first neural network to use in generating the probability map; and
providing the cropped portion to the second neural network to use in generating the boundary map.

### Claim 10

In a digital medium environment for editing digital visual media, a method of using deep learning to segment objects from the digital visual media, the method comprising:
detecting, by at least one processor, an object portrayed within a bounded area of an input image;
determining, by the at least one processor, a portion of the object is located outside of the bounded area based on detecting an indication within a first refinement map;
based on determining the portion of the object is located outside of the bounded area, expanding, by the at least one processor, the bounded area within the input image to include the portion of the object; and
optimizing, by the at least one processor, a segmentation mask for the object by optimizing a fit between a mask boundary of the segmentation mask and edges of the object using a cropped portion of the input image corresponding to the expanded bounded area.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
generating a first probability map using a first neural network;
generating a first boundary map using a second neural network; and
fusing the first probability map with the first boundary map to generate the first refinement map.

### Claim 12 (depends on 11)

The method of claim 11, further comprising generating, using the cropped portion of the input image, a second refinement map, wherein generating the second refinement map comprises:
generating a second probability map using the first neural network;
generating a second boundary map using the second neural network; and
fusing the second probability map with the second boundary map to generate the second refinement map.

### Claim 13 (depends on 12)

The method of claim 12, further comprising generating an initial iteration of the segmentation mask using the second refinement map.

### Claim 14 (depends on 13)

The method of claim 13, wherein optimizing the segmentation mask comprises generating a second iteration of the segmentation mask, wherein the second iteration of the segmentation mask adjusts the fit between the mask boundary and the edges of the object.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
comparing the second iteration of the segmentation mask with the initial iteration to determine a variance between the second iteration of the segmentation mask and the initial iteration of the segmentation mask; and
based on the variance, determining whether the segmentation mask is optimized.

### Claim 16 (depends on 10)

The method of claim 10, wherein detecting an indication within the first refinement map to determine the portion of the object is outside the bounded area comprises detecting that at least one boundary refinement pixel identified in the first refinement map is positioned on an edge of the first refinement map.

### Claim 17 (depends on 16)

The method of claim 16, wherein expanding the bounded area comprises increasing the size of the bounded area in a direction associated with the edge of the refinement map on which the at least one boundary refinement pixel is positioned.

### Claim 18

A system for identifying objects within digital visual media, comprising:
at least one processor; and
at least one non-transitory computer readable storage medium storing instructions thereon, that, when executed by the at least one processor, cause the system to:
generate, using a first neural network, a probability map for an input image, wherein the probability map indicates object pixels predicted to correspond to an object portrayed in the input image;
generate, using a second neural network, a boundary map for the input image, wherein the boundary map indicates boundary pixels corresponding to edges of the object portrayed in the input image;
generate a segmentation mask for the object by optimizing a fit between a boundary of the object determined from the probability map and edges of the object determined from the boundary map; and
generate an output image with a set of pixels corresponding to the object selected based on the segmentation mask.

### Claim 19 (depends on 18)

The system of claim 18, further comprising instructions that, when executed by the at least one processor, cause the system to generate a refinement map by fusing the probability map with the boundary map to identify boundary refinement pixels, wherein the boundary refinement pixels comprise pixels identified both as object pixels in the probability map and as edge pixels in the boundary map.

### Claim 20 (depends on 19)

The system of claim 19, wherein optimizing the fit between the boundary of the object determined from the probability map and edges of the object determined from the boundary map comprises performing an iterative optimization process using a combination of color modeling and boundary modeling, wherein the boundary modeling is based on the refinement map.
