# US 2022/0375113 A1 · Training a machine learnable model to estimate relative object scale

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

- Number: US 2022/0375113 A1
- Document ID: US20220375113A1
- Status: Published application
- Kind: A1
- Application number: 17/662,013
- Filed: 2022-05-04
- Published: 2022-11-24
- Earliest claimed: 2021-05-18
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Ivan Sosnovik; Arnold Smeulders; Konrad Groh
- Web page: https://patentgrep.com/patent/US20220375113A1

## CPC

- G05B 13/0265: {the criterion being a learning criterion}
- G06T 7/60: Analysis of geometric attributes
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- B25J 9/1697: {Vision controlled systems}
- G05B 2219/33034: Online learning, training
- G05B 2219/35074: Display object, recognition of geometric forms
- G05D 1/227: Handing over between remote control and on-board control; Handing over between remote control arrangements
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- B25J: MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES ({manipulators specially adapted for use in surgery A61B34/70; manipulators used in cleaning hollow articles B08B9/04}; manipulators associated with rolling mills B21B39/20; manipulators associated with forging machines B21J13/10; {manipulators associated with picking-up and placing mechanisms B23P19/007}; means for holding wheels or parts thereof B60B30/00; {vehicles with ground-engaging propulsion means, e.g. walking members B62D57/02, B62D57/032; devices for picking-up and depositing articles or materials between conveyors B65G47/90, B65G47/91; manipulators with gripping or holding means for transferring packages B65H67/065}; cranes B66C; {manipulators used in the protection or supervision of pipe-line installations F17D5/00; walking equipment adapted for nuclear steam-generators F22B37/006}; manipulators specially adapted for, or associated with, nuclear reactors G21C; {apparatus used for handling wafers during manufacture or treatment of semiconductor H10P72/50})
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES

## Abstract

A system and computer-implemented method for training a machine learnable model to estimate a relative scale of objects in an image. A feature extractor and a scale estimator comprising a machine learnable model part are provided. The feature extractor may be pretrained, while the scale estimator may be trained by the system and method to transform feature maps generated by the feature extractor into relative scale estimates of objects. For that purpose, the scale estimator may be trained on training data in a specific yet non-supervised manner which may not require scale labels. During inference, the scale estimator may be applied to several image patches of an image. The resulting patch-level scale estimates may be combined into a scene geometry map which may be indicative of a geometry of a scene depicted in the image.

## Claims

### Claim 1

A computer-implemented method of training a machine learnable model to estimate a relative scale of objects in an image, the method comprising the following steps:
providing a feature extractor which is configured to:
receive an image patch of the image as input, and
detect a plurality of features in the image patch to obtain a plurality of feature maps as output, wherein the plurality of features is associated with one or more objects in the image, wherein each respective feature map of the feature maps is generated by applying a filter to image data of the image patch, wherein each respective feature map includes, along a scale dimension, a filter response across a set of different spatial scales;
providing a scale estimator to process the output of the feature extractor, wherein the scale estimator includes a machine learnable model part and is configured to:
aggregate each respective feature map into a feature-level scale estimate,
wherein the aggregation includes identifying a maximum filter response across the different spatial scales, thereby obtaining a plurality of feature-level scale estimates, and
infer, with the machine learnable model part, a patch-level scale estimate from the plurality of feature-level scale estimates;
accessing training data including a set of training images; and
training the machine learnable model part of the scale estimator on the training data to infer the patch-level scale estimate from the plurality of feature-level scale estimates, wherein the training includes:
spatially scaling image data of each image patch of a training image by at least two known scale factors to obtain at least two further image patches,
applying the feature extractor and the scale estimator to the at least two further image patches to obtain at least two patch-level scale estimates, and
optimizing parameters of the machine learnable model part by minimizing an error term of a loss function, wherein the error term expresses a mismatch between an actual relative scale and an estimated relative scale,
wherein the actual relative scale is determined as a difference between the two known scale factors and the estimated relative scale as a difference between the at least two patch-level scale estimates.

### Claim 2 (depends on 1)

The computer-implemented method according to claim 1, wherein each respective feature map includes at least two spatial dimensions and the scale dimension, and wherein the scale estimator is configured to aggregate the respective feature map over the at least two spatial dimensions by averaging, or weighting, or majority selection.

### Claim 3 (depends on 1)

The computer-implemented method according to claim 1, wherein the scale estimator is configured to aggregate the respective feature map over the scale dimension by identifying a spatial scale at which the filter response is maximal and by using an identifier of the spatial scale as or as part of the feature-level scale estimate.

### Claim 4 (depends on 1)

The computer-implemented method according to claim 1, wherein the machine learnable model part of the scale estimator includes a neural network.

### Claim 5 (depends on 4)

The computer-implemented method according to claim 4, wherein the neural network is a shallow neural network having one hidden layer.

### Claim 6 (depends on 1)

The computer-implemented method according to claim 1, wherein the error term defines a mean squared error or mean squared deviation between the actual relative scale and the estimated relative scale.

### Claim 7

A computer-implemented method of estimating a relative scale of objects in an image, comprising the following steps:
providing a feature extractor which is configured to:
receive an image patch of the image as input,
detect a plurality of features in the image patch to obtain a plurality of feature maps as output, wherein the plurality of features is associated with one or more objects in the image, wherein each respective feature map of the feature maps is generated by applying a filter to image data of the image patch, and
wherein each respective feature map includes, along a scale dimension, a filter response across a set of different spatial scales;
providing a scale estimator to process the output of the feature extractor,
wherein the scale estimator includes a trained machine learnable model part, wherein the scale estimator is configured to:
aggregate each respective feature map into a feature-level scale estimate, wherein the aggregation includes identifying a maximum filter response across the different spatial scales, thereby obtaining a plurality of feature-level scale estimates, and
infer, with the machine learnable model part, a patch-level scale estimate from the plurality of feature-level scale estimates;
applying the feature extractor and the scale estimator to at least one image patch of the image to obtain a patch-level scale estimate for the at least one image patch; and
outputting a data representation of the patch-level scale estimate.

### Claim 8 (depends on 7)

The computer-implemented method according to claim 7, wherein the machine learnable model part is trained by:
accessing training data including a set of training images,
spatially scaling image data of each image patch of a training image by at least two known scale factors to obtain at least two further image patches,
applying the feature extractor and the scale estimator to the at least two further image patches to obtain at least two patch-level scale estimates, and
optimizing parameters of the machine learnable model part by minimizing an error term of a loss function, wherein the error term expresses a mismatch between an actual relative scale and an estimated relative scale, herein the actual relative scale is determined as a difference between the two known scale factors and the estimated relative scale as a difference between the at least two patch-level scale estimates.

### Claim 9 (depends on 8)

The computer-implemented method according to claim 8, further comprising generating a scene geometry map indicative of a scene geometry of the image by:
applying the feature extractor and the scale estimator to a plurality of image patches of the image to obtain a plurality of patch-level scale estimates; and
generating the scene geometry map for the image as a representation of the plurality of patch-level scale estimates in relation to the plurality of image patches.

### Claim 10 (depends on 9)

The computer-implemented method according to claim 9, further comprising applying the feature extractor and the scale estimator to overlapping image patches of the image.

### Claim 11 (depends on 9)

The computer-implemented method according to claim 9, further comprising at least one of:
subtracting, from the plurality of patch-level scale estimates in the scene geometry map, a minimum of the plurality of patch-level scale estimates; and
spatially upscaling the scene geometry map to a spatial resolution of the image.

### Claim 12 (depends on 9)

The computer-implemented method according to claim 9, further comprising:
obtaining the image from a sensor which is configured to sense an environment of a computer-controlled entity;
analyzing the scene geometry map of the image; and
generating control data for the computer-controlled entity based on a result of the analysis to adapt control the computer-controlled entity to its environment.

### Claim 13 (depends on 12)

The computer-implemented method according to claim 12, wherein the computer-controlled entity is a robotic system or an autonomous vehicle.

### Claim 14

A non-transitory computer-readable medium on which is stored data representing instructions training a machine learnable model to estimate a relative scale of objects in an image, the instructions, when executed by a processor system, causing the processor system to perform the following steps:
providing a feature extractor which is configured to:
receive an image patch of the image as input, and
detect a plurality of features in the image patch to obtain a plurality of feature maps as output, wherein the plurality of features is associated with one or more objects in the image, wherein each respective feature map of the feature maps is generated by applying a filter to image data of the image patch, wherein each respective feature map includes, along a scale dimension, a filter response across a set of different spatial scales;
providing a scale estimator to process the output of the feature extractor, wherein the scale estimator includes a machine learnable model part and is configured to:
aggregate each respective feature map into a feature-level scale estimate,
wherein the aggregation includes identifying a maximum filter response across the different spatial scales, thereby obtaining a plurality of feature-level scale estimates, and
infer, with the machine learnable model part, a patch-level scale estimate from the plurality of feature-level scale estimates;
accessing training data including a set of training images; and
training the machine learnable model part of the scale estimator on the training data to infer the patch-level scale estimate from the plurality of feature-level scale estimates, wherein the training includes:
spatially scaling image data of each image patch of a training image by at least two known scale factors to obtain at least two further image patches,
applying the feature extractor and the scale estimator to the at least two further image patches to obtain at least two patch-level scale estimates, and
optimizing parameters of the machine learnable model part by minimizing an error term of a loss function, wherein the error term expresses a mismatch between an actual relative scale and an estimated relative scale,
wherein the actual relative scale is determined as a difference between the two known scale factors and the estimated relative scale as a difference between the at least two patch-level scale estimates.

### Claim 15

A system for training a machine learnable model to estimate a relative scale of objects in an image, comprising:
an input interface subsystem configured to access:
training data including a set of training images;
a feature extractor which is configured to:
receive an image patch of the image as input,
detect a plurality of features in the image patch to obtain a plurality of feature maps as output, wherein the plurality of features is associated with one or more objects in the image, wherein a respective feature map is generated by applying a filter to image data of the image patch, and wherein a respective feature map includes, along a scale dimension, a filter response across a set of different spatial scales;
a scale estimator configured to process the output of the feature extractor, wherein the scale estimator includes a machine learnable model part and is configured to:
aggregate a respective feature map into a feature-level scale estimate, wherein the aggregation includes identifying a maximum filter response across the different spatial scales, thereby obtaining a plurality of feature-level scale estimates, and
infer, with the machine learnable model part, a patch-level scale estimate from the plurality of feature-level scale estimates;
a processor subsystem configured to train the machine learnable model part of the scale estimator on the training data to infer the patch-level scale estimate from the plurality of feature-level scale estimates, wherein the training includes:
spatially scale image data of an image patch of a training image by at least two known scale factors to obtain at least two further image patches,
apply the feature extractor and the scale estimator to the at least two further image patches to obtain at least two patch-level scale estimates,
optimize parameters of the machine learnable model part by minimizing an error term of a loss function, wherein the error term expresses a mismatch between an actual relative scale and an estimated relative scale, wherein the actual relative scale is determined as a difference between the two known scale factors and the estimated relative scale as a difference between the at least two patch-level scale estimates.

### Claim 16

A system for estimating a relative scale of objects in an image, comprising:
an input interface subsystem configured to access:
the image,
a feature extractor which is configured to:
receive an image patch of the image as input;
detect a plurality of features in the image patch to obtain a plurality of feature maps as output, wherein the plurality of features is associated with one or more objects in the image, wherein a respective feature map is generated by applying a filter to image data of the image patch, wherein a respective feature map includes, along a scale dimension, a filter response across a set of different spatial scales;
a scale estimator configured to process the output of the feature extractor, wherein the scale estimator includes a trained machine learnable model part, and wherein the scale estimator is configured to:
aggregate a respective feature map into a feature-level scale estimate, wherein the aggregation includes identifying a maximum filter response across the different spatial scales, thereby obtaining a plurality of feature-level scale estimates, and
infer, with the machine learnable model part, a patch-level scale estimate from the plurality of feature-level scale estimates; and
a processor subsystem configured to:
apply the feature extractor and the scale estimator to at least one image patch of the image to obtain a patch-level scale estimate for the at least one image patch, and
output a data representation of the patch-level scale estimate.

### Claim 17 (depends on 16)

The system according to claim 16, wherein the machine learnable model part is trained by a training system configured to:
access training data including a set of training images;
spatially scale image data of each image patch of a training image by at least two known scale factors to obtain at least two further image patches;
apply the feature extractor and the scale estimator to the at least two further image patches to obtain at least two patch-level scale estimates; and
optimize parameters of the machine learnable model part by minimizing an error term of a loss function, wherein the error term expresses a mismatch between an actual relative scale and an estimated relative scale, herein the actual relative scale is determined as a difference between the two known scale factors and the estimated relative scale as a difference between the at least two patch-level scale estimates.
