# US 2023/0267724 A1 · Device and method for training a machine learning model for generating descriptor images for images of objects

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

- Number: US 2023/0267724 A1
- Document ID: US20230267724A1
- Status: Published application
- Kind: A1
- Application number: 18/167,242
- Filed: 2023-02-10
- Published: 2023-08-24
- Earliest claimed: 2022-02-18
- Applicants: Robert Bosch GmbH
- Inventors: Christian Graf; Andras Gabor Kupcsik; David Adrian
- Web page: https://patentgrep.com/patent/US20230267724A1

## CPC

- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- B25J 9/1664: {characterised by motion, path, trajectory planning}
- B25J 9/1697: {Vision controlled systems}
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06T 3/02: Affine transformations (for image registration G06T3/147; for image mosaicing G06T3/4038)
- G06T 3/60: Rotation of whole images or parts thereof
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T 7/73: using feature-based methods
- G05B 2219/40584: Camera, non-contact sensor mounted on wrist, indep from gripper
- G05B 2219/40607: Fixed camera to observe workspace, object, workpiece, global
- G05B 2219/45063: Pick and place manipulator
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20132: Image cropping
- G06T 2207/30164: Workpiece; Machine component
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- 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})
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- 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)

## Abstract

A method for training a machine learning model for generating descriptor images for images of one or more objects. The method includes recording multiple camera images, each showing one or more objects, and, for each camera image, generating one or more augmented versions of the camera image by applying a respective augmentation to the camera image for each augmented version of the camera image, wherein the augmentation comprises a change in position of pixel values of the camera image, generating pairs of training images each including the camera image and an augmentation of the camera image or two augmented versions of the camera image; and training the machine learning model with contrastive loss using the pairs of training images.

## Claims

### Claim 1

A method for training a machine learning model for generating descriptor images for images of one or more objects, the method comprising:
recording multiple camera images, each of the camera images showing one or more objects;
for each camera image of the camera images:
generating one or more augmented versions of the camera image by applying a respective augmentation to the camera image for each augmented version of the camera image, wherein the augmentation includes a change in position of pixel values of the camera image,
generating one or more pairs of training images which each include the camera image and an augmentation of the camera image or two augmented versions of the camera image, and
determining, for each pair of training images and from pixels of the pair of training image, according to the change in position of pixel values included in the respective augmentation with which the augmented version was generated, if the pair of training images includes an augmented version of the camera image, or, according to the changes in position of pixel values included in the two respective augmentations with which the augmented versions were generated, if the pair of training images includes two augmented versions of the camera image, pixels of the pair of training images which correspond to one another and pixels of the pair of training images which do not correspond to one another; and
training the machine learning model with contrastive loss using the pairs of training images, wherein descriptor values which are generated by the machine learning model for the pixels which correspond to one another are used as positive pairs and descriptor values which are generated by the machine learning model for the pixels which do not correspond to one another are used as negative pairs.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the augmentation includes a rotation, and/or a perspective transformation and/or an affine transformation.

### Claim 3 (depends on 1)

The method according to claim 1, wherein, prior to generating the augmented versions and the pairs of training images, cropping the camera images taking into account object masks of the one or more objects.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the machine learning model is a neural network.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the plurality of camera images are recorded from the same perspective.

### Claim 6

A method for controlling a robot to pick up or process an object, comprising the following steps:
training a machine learning model for generating descriptor images for images of one or more objects, including:
recording multiple camera images, each of the camera images showing one or more objects,
for each camera image of the camera images:
generating one or more augmented versions of the camera image by applying a respective augmentation to the camera image for each augmented version of the camera image, wherein the augmentation includes a change in position of pixel values of the camera image,
generating one or more pairs of training images which each include the camera image and an augmentation of the camera image or two augmented versions of the camera image, and
determining, for each pair of training images and from pixels of the pair of training image, according to the change in position of pixel values included in the respective augmentation with which the augmented version was generated, if the pair of training images includes an augmented version of the camera image, or, according to the changes in position of pixel values included in the two respective augmentations with which the augmented versions were generated, if the pair of training images includes two augmented versions of the camera image, pixels of the pair of training images which correspond to one another and pixels of the pair of training images which do not correspond to one another, and
training the machine learning model with contrastive loss using the pairs of training images, wherein descriptor values which are generated by the machine learning model for the pixels which correspond to one another are used as positive pairs and descriptor values which are generated by the machine learning model for the pixels which do not correspond to one another are used as negative pairs;
recording a camera image which shows the object in a current control scenario;
feeding the camera image which shows the object to the machine learning model to generate a descriptor image;
determining a position of a location for picking up or processing the object in the current control scenario from the descriptor image; and
controlling the robot according to the determined position.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
identifying a reference location in a reference image;
determining a descriptor of the identified reference location by feeding the reference image to the machine learning model;
determining a position of the reference location in the current control scenario by searching for the determined descriptor in the descriptor image generated from the camera image which shows the object; and
determining the position of the location for picking up or processing the object in the current control scenario from the determined position of the reference location.

### Claim 8

A control unit configured to train a machine learning model for generating descriptor images for images of one or more objects, the control unit configured to:
record multiple camera images, each of the camera images showing one or more objects;
for each camera image of the camera images:
generate one or more augmented versions of the camera image by applying a respective augmentation to the camera image for each augmented version of the camera image, wherein the augmentation includes a change in position of pixel values of the camera image,
generate one or more pairs of training images which each include the camera image and an augmentation of the camera image or two augmented versions of the camera image, and
determine, for each pair of training images and from pixels of the pair of training image, according to the change in position of pixel values included in the respective augmentation with which the augmented version was generated, if the pair of training images includes an augmented version of the camera image, or, according to the changes in position of pixel values included in the two respective augmentations with which the augmented versions were generated, if the pair of training images includes two augmented versions of the camera image, pixels of the pair of training images which correspond to one another and pixels of the pair of training images which do not correspond to one another; and
train the machine learning model with contrastive loss using the pairs of training images, wherein descriptor values which are generated by the machine learning model for the pixels which correspond to one another are used as positive pairs and descriptor values which are generated by the machine learning model for the pixels which do not correspond to one another are used as negative pairs.

### Claim 9

A non-transitory computer-readable medium on which are stored instructions for training a machine learning model for generating descriptor images for images of one or more objects, the instructions, when executed by a processor, causing the processor to perform the following steps:
recording multiple camera images, each of the camera images showing one or more objects;
for each camera image of the camera images:
generating one or more augmented versions of the camera image by applying a respective augmentation to the camera image for each augmented version of the camera image, wherein the augmentation includes a change in position of pixel values of the camera image,
generating one or more pairs of training images which each include the camera image and an augmentation of the camera image or two augmented versions of the camera image, and
determining, for each pair of training images and from pixels of the pair of training image, according to the change in position of pixel values included in the respective augmentation with which the augmented version was generated, if the pair of training images includes an augmented version of the camera image, or, according to the changes in position of pixel values included in the two respective augmentations with which the augmented versions were generated, if the pair of training images includes two augmented versions of the camera image, pixels of the pair of training images which correspond to one another and pixels of the pair of training images which do not correspond to one another; and
training the machine learning model with contrastive loss using the pairs of training images, wherein descriptor values which are generated by the machine learning model for the pixels which correspond to one another are used as positive pairs and descriptor values which are generated by the machine learning model for the pixels which do not correspond to one another are used as negative pairs.
