# US 2026/0141738 A1 · Computer implemented method for training a machine learning model for semantic image segmentation

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

- Number: US 2026/0141738 A1
- Document ID: US20260141738A1
- Status: Published application
- Kind: A1
- Application number: 19/366,600
- Filed: 2025-10-23
- Published: 2026-05-21
- Earliest claimed: 2023-05-11
- Applicants: Carl Zeiss AG
- Inventors: Simon Reiss; Alexander Freytag; Rainer Stiefelhagen; Constantin Seibold
- Web page: https://patentgrep.com/patent/US20260141738A1

## CPC

- G06F 18/2155: {characterised by the incorporation of unlabelled data, e.g. multiple instance learning [MIL], semi-supervised techniques using expectation-maximisation [EM] or naïve labelling}
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06F 18/2115: by evaluating different subsets according to an optimisation criterion, e.g. class separability, forward selection or backward elimination
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The invention relates to a computer implemented method for training a machine learning model for semantic image segmentation, the method comprising: obtaining training images collectively containing at least three different types of annotations, and training the machine learning model using a loss function, wherein the formulation of the loss function at at least one pixel depends on the types of annotations at the pixel and on the types of annotations within each batch. The invention also relates to a computer implemented method for semantic segmentation making use of the trained machine learning model, and to corresponding systems, computer programs and computer readable media.

## Claims

### Claim 1

A computer implemented method for training a machine learning model for semantic image segmentation, the method comprising:
obtaining training images containing collectively at least three different types of annotations, each annotation comprising one or more pixels of a training image and an indicated class label, the types of annotations being from a group comprising
complete pixel level annotations comprising all pixels of the training image that are assigned to the indicated class, in case the training image is fully labeled,
positive partial pixel level annotations comprising a portion of the pixels of the training image that are assigned to the indicated class,
subset level annotations comprising a subset of the training image, such that a portion of the pixels within the subset is assigned to the indicated class,
positive image level annotations comprising the training image, wherein a portion of the pixels of the training image is assigned to the indicated class;
negative partial pixel level annotations comprising a portion of the pixels of the training image that are not assigned to the indicated class, and
negative image level annotations comprising the training image, wherein none of the pixels of the training image is assigned to the indicated class;
training the machine learning model by iteratively presenting a batch of training images to the machine learning model and modifying the parameters of the machine learning model using a loss function, wherein the formulation of the loss function at at least one pixel depends on the types of annotations at the pixel and on the types of annotations within the batch, for the purpose of using the trained machine learning model for semantic image segmentation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the group consists of complete pixel level annotations, positive partial pixel level annotations, subset level annotations, positive image level annotations, negative partial pixel level annotations and negative image level annotations.

### Claim 3 (depends on 1)

The method of claim 1, wherein the group consists of complete pixel level annotations, positive partial pixel level annotations, subset level annotations, and positive image level annotations.

### Claim 4 (depends on 1)

The method of claim 1, wherein the at least three types of annotations comprise complete pixel level annotations or positive partial pixel level annotations.

### Claim 5 (depends on 4)

The method of claim 4, wherein the at least three types of annotations comprise positive image level annotations.

### Claim 6 (depends on 1)

The method of claim 1, wherein the iteratively presented batches of training images are configured such that for each type of annotation a training image exists, such that all other types of the at least three different types of annotations are contained in at least one training image of the preceding training images.

### Claim 7 (depends on 1)

The method of claim 1, wherein the loss function comprises a contrastive loss function used to learn a pixelwise mapping to a feature space for semantic image segmentation.

### Claim 8 (depends on 7)

The method of claim 7, wherein the contrastive loss function is configured such that the association of the pixels of an annotation to the class indicated by the annotation is encouraged, while the associations of pixels outside the annotation to a class are attenuated if the class is different from the class indicated by the annotation or if the class is equal to the class indicated by the annotation but incompatible with the annotations at the pixels outside the annotation.

### Claim 9 (depends on 8)

The method of claim 8, wherein the way the association of the pixels of an annotation to the class indicated by the annotation is encouraged depends on the type of the annotation.

### Claim 10 (depends on 8)

The method of claim 8, wherein the association of the pixels of an annotation to the class indicated by the annotation is weighted by a weighting factor depending on the type of the annotation.

### Claim 11 (depends on 7)

The method of claim 7, wherein the machine learning model maps each pixel of an input image to an embedding vector of the pixel in the feature space, and wherein the association of a pixel to a class is measured in this feature space.

### Claim 12 (depends on 7)

The method of claim 7, wherein the association of a pixel to a class is measured by the similarity of an embedding vector of the pixel in the feature space and one or more characteristic elements of the class in the feature space.

### Claim 13 (depends on 7)

The method of claim 7, wherein the association of a pixel to a class is measured using a function of the similarities of an embedding vector of the pixel in the feature space and two or more characteristic elements of the class in the feature space.

### Claim 14 (depends on 12)

The method of claim 12, wherein the characteristic elements of each class belong to the parameters of the machine learning model, which are optimized by minimizing the loss function during the iterations of the training.

### Claim 15 (depends on 7)

The method of claim 7, wherein the feature space is used to associate a pixel to a class.

### Claim 16 (depends on 7)

The method of claim 7, wherein the pixelwise mapping to the feature space is configured to group embedding vectors of pixels of annotations with the same class label and to contrast embedding vectors of pixels of annotations with different class labels.

### Claim 17 (depends on 1)

The method of claim 1, further comprising using augmented training images with pseudo-annotations during training of the machine learning model, wherein the augmented training images are generated by modifying training images, and wherein the pseudo-annotations are generated by presenting the augmented training images to the machine learning model and obtaining class labels, and wherein the loss function is configured to filter the pseudo-annotations by preventing the association of a pixel in an augmented training image to the class indicated by the pseudo-annotation at that pixel if the pseudo-annotation is not compatible with an annotation at the corresponding pixel in the training image annotation.

### Claim 18 (depends on 17)

The method of claim 17, wherein the augmented training images are obtained by applying one or more image processing operations from the group comprising flipping, rotation, translation, contrast variation, brightness variation, saturation variation and hue variation to the training images, and wherein for each augmented training image one or more strongly augmented training images are obtained by applying one or more arbitrary image processing operations to the corresponding training image, and wherein the loss function is configured to filter the pseudo-annotations of the augmented training images and to measure the deviation of the machine learning model class associations on the strongly augmented training images from the filtered pseudo-annotations of the corresponding augmented training images.

### Claim 19 (depends on 1)

The method of claim 1, further comprising retraining the machine learning model on a subset of the training images with annotations of increased specificity, wherein the specificity of a positive image level annotation in a training image is increased by adding one or more subset level annotations or one or more complete pixel level annotations or one or more positive partial pixel level annotations with the same class label to the training image, and wherein the specificity of a subset level annotation in a training image is increased by adding one or more positive partial pixel level annotations with the same class label within the subset in the training image.

### Claim 20 (depends on 1)

The method of claim 1, wherein at least one training image contains at least two annotations of different types.

### Claim 21 (depends on 1)

The method of claim 1, wherein at least one pixel of at least one training image belongs to at least two annotations of different types.

### Claim 22 (depends on 1)

A computer implemented method for semantic image segmentation, the method comprising obtaining an image and applying the machine learning model trained according to claim 1 to the obtained image to obtain a semantic image segmentation.

### Claim 23 (depends on 1)

A data processing apparatus, which is configured for carrying out a method of claim 1.

### Claim 24 (depends on 1)

A system for semantic image segmentation comprising
an imaging device configured to provide an image of a scene;
one or more processing devices;
one or more machine-readable hardware storage devices comprising a machine learning model trained using a method of claim 1 and comprising instructions that are executable by one or more processing devices to apply the trained machine learning model to the image of the scene.

### Claim 25 (depends on 1)

A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out a method of claim 1.

### Claim 26 (depends on 1)

A computer-readable medium, on which a computer program executable by a computing device is stored, the computer program comprising code for executing a method of claim 1.

### Claim 27 (depends on 25)

A data carrier signal carrying the computer program of claim 25.
