# US 2021/0174082 A1 · System and method for providing dominant scene classification by semantic segmentation

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

- Number: US 2021/0174082 A1
- Document ID: US20210174082A1
- Status: Published application
- Kind: A1
- Application number: 17/177,720
- Filed: 2021-02-17
- Published: 2021-06-10
- Earliest claimed: 2018-12-21
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Qingfeng Liu; Mostafa El-Khamy; Rama Mythili Vadali; Tae-ui Kim; Andrea Kang; Dongwoon Bai; Jungwon Lee; Maiyuran Wijay; Jaewon Yoo
- Web page: https://patentgrep.com/patent/US20210174082A1

## CPC

- G06V 20/35: {Categorising the entire scene, e.g. birthday party or wedding scene}
- G06F 18/24: Classification techniques
- 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/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 20/10: Terrestrial scenes (scenes under surveillance with static cameras G06V20/52; scenes perceived from the exterior of a vehicle G06V20/56; scenes perceived from the interior of a vehicle G06V20/59)
- H04N 23/60: Control of cameras or camera modules
- H04N 23/61: based on recognised objects
- H04N 23/62: Control of parameters via user interfaces
- H04N 23/632: {for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters}
- H04N 23/667: Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for computing a dominant class of a scene includes: receiving an input image of a scene; generating a segmentation map of the input image, the segmentation map being labeled with a plurality of corresponding classes of a plurality of classes; computing a plurality of area ratios based on the segmentation map, each of the area ratios corresponding to a different class of the plurality of classes of the segmentation map; and outputting a detected dominant class of the scene based on a plurality of ranked labels based on the area ratios.

## Claims

### Claim 1

A method for computing a dominant class of a scene, comprising:
receiving an input image of a scene;
generating a segmentation map of the input image, the segmentation map being labeled with a plurality of corresponding classes of a plurality of classes;
computing a plurality of area ratios based on the segmentation map, each of the area ratios corresponding to a different class of the plurality of classes of the segmentation map; and
outputting a detected dominant class of the scene based on a plurality of ranked labels based on the area ratios.

### Claim 2 (depends on 1)

The method of claim 1, further comprising determining the detected dominant class based on a highest ranked label of the plurality of area ratios.

### Claim 3 (depends on 1)

The method of claim 1, further comprising using an atrous spatial pyramid pooling module configured to receive an output of a plurality of atrous convolutional layers, and
wherein the segmentation map is computed based on an output of the atrous spatial pyramid pooling module.

### Claim 4 (depends on 1)

The method of claim 1, wherein the computing the area ratios further comprises:
spatially weighting the segmentation map by multiplying each location of the segmentation map by a corresponding one of a plurality of spatial importance weights; and
summing the spatially weighted segmentation map to compute a spatially weighted area ratio for each of the classes,
wherein the spatial importance weights are a weighted combination of Gaussian filters having highest weight in a region corresponding to a middle third of the input image.

### Claim 5 (depends on 1)

The method of claim 1, wherein the computing the area ratios further comprises class weighting the area ratios by multiplying the area ratio for each class by a corresponding class importance weight of a plurality of class importance weights, and
wherein the plurality of class importance weights comprise a foreground group of classes having higher weights than a background group of classes.

### Claim 6 (depends on 5)

The method of claim 5, wherein the foreground group of classes comprise a text class and a person class, and
wherein the background group of classes comprise a sky class and a tree class.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving a sequence of input images before the input image;
computing a softmax over each pixel of each image of the sequence of input images;
performing temporal filtering over each pixel across each image of the sequence of input images to compute a filtered softmax volume; and
computing a maximum across the filtered softmax volume to compute the segmentation map.

### Claim 8 (depends on 7)

The method of claim 7, wherein the temporal filtering is performed with a triple-exponential smoothing filter.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
generating a sequence of weighted area ratios for a sequence of segmentation maps computed from the sequence of input images; and
performing temporal filtering over the sequence of weighted area ratios,
wherein the plurality of ranked labels is computed based on the sequence of weighted area ratios.

### Claim 10 (depends on 9)

The method of claim 9, wherein the detected dominant class is selected by:
evaluating a hysteresis condition that is met when a previously detected dominant class is a second highest ranked label of the plurality of ranked labels and when a difference in weighted area ratio between a highest ranked label and the second highest ranked label is less than a threshold;
in response to determining that the hysteresis condition is met, maintaining the previously detected dominant class as the dominant class; and
in response to determining that the hysteresis condition is not met, setting the highest ranked label as the detected dominant class.

### Claim 11 (depends on 1)

The method of claim 1, wherein each pixel of the segmentation map is associated with one or more corresponding confidence values, each of the one or more corresponding confidence values corresponding to a different one of the plurality of classes, and
wherein the method further comprises thresholding the segmentation map by selecting values from locations of the segmentation map where corresponding locations of the confidence map exceed a threshold corresponding to a class of the location of the segmentation map.

### Claim 12 (depends on 11)

The method of claim 11, wherein the segmentation map is computed from a plurality of logits output by a convolutional neural network, the logits comprising spatial dimensions and a feature dimension, and
wherein the one or more confidence values form a confidence map generated by:
computing a softmax along the feature dimension of the logits; and
computing a maximum of the softmax along the feature dimension of the logits to compute the confidence values corresponding to each location of the confidence map.

### Claim 13 (depends on 1)

The method of claim 1, wherein the segmentation map is generated by a convolutional neural network comprising a global classification head configured to compute a global classification of a class of the input image, and
wherein the convolutional neural network is trained with a loss function comprising a weighted sum of:
a first loss associated with the detected dominant class; and
a second loss associated with the global classification computed by the global classification head.

### Claim 14 (depends on 13)

The method of claim 13, wherein the global classification head is configured to receive input from an output of the convolutional neural network.

### Claim 15 (depends on 13)

The method of claim 13, further comprising an atrous spatial pyramid pooling module configured to receive an output of a plurality of atrous convolutional layers,
wherein the segmentation map is computed based on an output of the atrous spatial pyramid pooling module, and
wherein the global classification head is configured to receive input from the output of the atrous spatial pyramid pooling module.

### Claim 16 (depends on 1)

The method of claim 1, wherein the segmentation map is generated using a convolutional neural network trained to recognize a text class of the plurality of classes with training data comprising images of text and corresponding labels, and
wherein the corresponding labels comprise bounding boxes surrounding text.

### Claim 17 (depends on 1)

The method of claim 1, wherein a class of the plurality of classes comprises a plurality of subclasses, and
wherein the method further comprises assigning a subclass to a region in the segmentation map corresponding to the class by:
detecting a color of each of a plurality of pixels of the input image in the region corresponding to the class;
assigning one of the plurality of subclasses to each of the pixels based on the color of the pixel; and
assigning the subclass to the region based on majority voting among the subclasses assigned to the pixels of the region.

### Claim 18 (depends on 17)

The method of claim 17, wherein the class is water and wherein the subclasses comprise:
low saturation water;
green water;
blue water; and
other water.

### Claim 19 (depends on 1)

The method of claim 1, further comprising:
identifying a portion of the input image of the scene corresponding to the detected dominant class; and
configuring camera settings of a digital camera module in accordance with the identified portion of the input image of the scene.

### Claim 20 (depends on 19)

The method of claim 19, wherein the digital camera module is a component of a mobile device.

### Claim 21

A system comprising:
a processor; and
memory storing instructions that, when executed by the processor, cause the processor to compute a dominant class of a scene by:
receiving an input image of a scene;
generating a segmentation map of the input image, the segmentation map being labeled with a corresponding class of a plurality of classes;
computing a plurality of area ratios based on the segmentation map, each of the area ratios corresponding to a different class of the plurality of classes of the segmentation map; and
outputting a detected dominant class of the scene based on the plurality of ranked labels.

### Claim 22 (depends on 21)

The system of claim 21, wherein the memory further stores instructions for computing the area ratios by:
spatially weighting the segmentation map by multiplying each location of the segmentation map by a corresponding one of a plurality of spatial importance weights; and
summing the spatially weighted segmentation map to compute a spatially weighted area ratio for each of the classes,
wherein the spatial importance weights are a weighted combination of Gaussian filters having highest weight in a region corresponding to a middle third of the input image.

### Claim 23 (depends on 21)

The system of claim 21, wherein the memory further stores instructions for computing the area ratios by class weighting the area ratios by multiplying the area ratio for each class by a corresponding class importance weight of a plurality of class importance weights, and
wherein the plurality of class importance weights comprise a foreground group of classes having higher weights than a background group of classes.

### Claim 24 (depends on 23)

The system of claim 23, wherein the foreground group of classes comprise a text class and a person class, and
wherein the background group of classes comprise a sky class and a tree class.

### Claim 25 (depends on 21)

The system of claim 21, wherein each pixel of the segmentation map is associated with one or more corresponding confidence values, each of the one or more corresponding confidence values corresponding to a different one of the plurality of classes, and
wherein the memory further stores instructions for thresholding the segmentation map by selecting values from locations of the segmentation map where corresponding locations of the confidence map exceed a threshold corresponding to a class of the location of the segmentation map.

### Claim 26 (depends on 21)

The system of claim 21, further comprising a digital camera module, wherein the memory further stores instructions that, when executed by the processor, cause the processor to:
identify a portion of the input image of the scene corresponding to the detected dominant class; and
configure camera settings of the digital camera module in accordance with the identified portion of the input image of the scene.
